diff --git a/.dockerignore b/.dockerignore index 92564646..02e14153 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,18 +12,22 @@ server/.eslintignore server/.npmrc server/test server/logs +server/.venv server/.tmp server/views/* server/public/* +!server/public/preloaded-favicons +!server/public/favicons +server/public/favicons/* !server/public/user-avatars server/public/user-avatars/* -!server/public/project-background-images -server/public/project-background-images/* +!server/public/background-images +server/public/background-images/* server/private/* !server/private/attachments server/private/attachments/* -client/build +client/dist diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index d656eba5..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,13 +0,0 @@ -# These are supported funding model platforms - -github: meltyshev -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/ISSUE_TEMPLATE/1-bug-report.yml b/.github/ISSUE_TEMPLATE/1-bug-report.yml index 0328ef86..ce158f5f 100644 --- a/.github/ISSUE_TEMPLATE/1-bug-report.yml +++ b/.github/ISSUE_TEMPLATE/1-bug-report.yml @@ -1,5 +1,5 @@ name: "🐛 Bug Report" -description: Report a bug found while using Planka +description: Report a bug found while using PLANKA title: "[Bug]: " labels: ["Type: Bug", "Status: Triage"] body: @@ -27,7 +27,7 @@ body: - type: textarea id: current-behavior attributes: - label: Current behaviour + label: Current behavior description: A description of what is currently happening, including screenshots and other useful information (**DO NOT INCLUDE PRIVATE INFORMATION**). placeholder: Currently... validations: @@ -35,7 +35,7 @@ body: - type: textarea id: desired-behavior attributes: - label: Desired behaviour + label: Desired behavior description: A clear description of what you think should happen. placeholder: In this situation, I expected ... - type: textarea @@ -43,7 +43,7 @@ body: attributes: label: Steps to reproduce description: Clearly describe which steps or actions you have taken to arrive at the problem. If you have some experience with the code, please link to the specific pieces of code. - placeholder: I did X, then Y, before arriving at Z, when ERROR ... + placeholder: I did X, then Y, before arriving at Z, when ERROR... validations: required: true - type: textarea diff --git a/.github/ISSUE_TEMPLATE/2-feature-request.yml b/.github/ISSUE_TEMPLATE/2-feature-request.yml index 25bc11ba..617245a2 100644 --- a/.github/ISSUE_TEMPLATE/2-feature-request.yml +++ b/.github/ISSUE_TEMPLATE/2-feature-request.yml @@ -1,33 +1,33 @@ name: "✨ Feature Request" -description: Suggest a feature or enhancement to improve Planka. +description: Suggest a feature or enhancement to improve PLANKA. labels: ["Type: Idea"] body: - - type: dropdown - id: idea-type - attributes: - label: Is this a feature for the backend or frontend? - multiple: true - options: - - Backend - - Frontend - validations: - required: true - - type: textarea - id: feature - attributes: - label: What would you like? - description: A clear description of the feature or enhancement wanted. - placeholder: I'd like to be able to... - validations: - required: true - - type: textarea - id: reason - attributes: - label: Why is this needed? - description: A clear description of why this would be useful to have. - placeholder: I want this because... - - type: textarea - id: other - attributes: - label: Other information - placeholder: Any other details? + - type: dropdown + id: idea-type + attributes: + label: Is this a feature for the backend or frontend? + multiple: true + options: + - Backend + - Frontend + validations: + required: true + - type: textarea + id: feature + attributes: + label: What would you like? + description: A clear description of the feature or enhancement wanted. + placeholder: I'd like to be able to... + validations: + required: true + - type: textarea + id: reason + attributes: + label: Why is this needed? + description: A clear description of why this would be useful to have. + placeholder: I want this because... + - type: textarea + id: other + attributes: + label: Other information + placeholder: Any other details? diff --git a/.github/workflows/build-and-publish-release-package.yml b/.github/workflows/build-and-publish-release-package.yml new file mode 100644 index 00000000..cd1c4d1c --- /dev/null +++ b/.github/workflows/build-and-publish-release-package.yml @@ -0,0 +1,52 @@ +name: Build and Publish Release Package + +on: + release: + types: [created] + +jobs: + build-and-publish-release-package: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + + - name: Update npm + run: npm install npm --global + + - name: Install client dependencies + run: npm install --omit=dev + working-directory: ./client + + - name: Build client + run: DISABLE_ESLINT_PLUGIN=true npm run build + working-directory: ./client + + - name: Include server into dist + run: mv server dist + + - name: Include built client into dist + run: | + mv dist/* ../dist/public + cp ../dist/public/index.html ../dist/views + working-directory: ./client + + - name: Include LICENSE.md, README.md, SECURITY.md into dist + run: mv LICENSE.md README.md SECURITY.md dist + + - name: Create release package + run: | + mv dist planka + zip -r planka-prebuild.zip planka + + - name: Publish release package + run: gh release upload ${{ github.event.release.tag_name }} planka-prebuild.zip + env: + GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/build-and-push-docker-base-image.yml b/.github/workflows/build-and-push-docker-base-image.yml deleted file mode 100644 index 7e67770f..00000000 --- a/.github/workflows/build-and-push-docker-base-image.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build and push Docker base image - -on: - push: - paths: - - ./Dockerfile.base - branches: - - master - workflow_dispatch: - -env: - ALPINE_VERSION: 3.16 - -jobs: - build-and-push-docker-base-image: - runs-on: self-hosted - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 - file: Dockerfile.base - build-args: ALPINE_VERSION=${{ env.ALPINE_VERSION }} - push: true - tags: | - ghcr.io/${{ github.repository }}:base-latest - ghcr.io/${{ github.repository }}:base-${{ env.ALPINE_VERSION }} diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index d898ea81..07e77cdd 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -1,4 +1,4 @@ -name: Build and push Docker image +name: Build and Push Docker Image on: release: @@ -7,8 +7,9 @@ on: jobs: build-and-push-docker-image: runs-on: self-hosted + steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v4 - name: Set up QEMU @@ -17,21 +18,21 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Login to GitHub Container Registry + - name: Log in to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set version + - name: Set version from release tag uses: actions/github-script@v6 id: set-version with: result-encoding: string script: return context.payload.release.tag_name.replace('v', '') - - name: Generate docker image tags + - name: Generate Docker image tags id: metadata uses: docker/metadata-action@v5 with: @@ -39,9 +40,8 @@ jobs: name=ghcr.io/${{ github.repository }} tags: | type=raw,value=${{ steps.set-version.outputs.result }} - type=raw,value=latest - - name: Build and push + - name: Build and push Docker image uses: docker/build-push-action@v4 with: context: . diff --git a/.github/workflows/build-and-push-docker-image-dev.yml b/.github/workflows/build-and-push-docker-nightly-image.yml similarity index 70% rename from .github/workflows/build-and-push-docker-image-dev.yml rename to .github/workflows/build-and-push-docker-nightly-image.yml index 1001fe1f..0c5f9f23 100644 --- a/.github/workflows/build-and-push-docker-image-dev.yml +++ b/.github/workflows/build-and-push-docker-nightly-image.yml @@ -1,23 +1,21 @@ -# https://docs.docker.com/build/ci/github-actions/multi-platform/ -name: Build and push Docker DEV image +name: Build and Push Docker Nightly Image on: push: paths-ignore: - '.github/**' - 'charts/**' - - 'docker-*.sh' + - 'docker-*.yml' - '*.md' branches: [master] workflow_dispatch: -env: - REGISTRY_IMAGE: ghcr.io/${{ github.repository }} jobs: - build: + build-and-push-docker-nightly-image: runs-on: self-hosted + steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v4 - name: Set up QEMU @@ -26,22 +24,23 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Login to GitHub Container Registry + - name: Log in to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Generate docker image tags + - name: Generate Docker image tags id: metadata uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY_IMAGE }} + images: | + name=ghcr.io/${{ github.repository }} tags: | - type=raw,value=dev + type=raw,value=nightly - - name: Build and push + - name: Build and push Docker image uses: docker/build-push-action@v4 with: context: . diff --git a/.github/workflows/build-and-push-release-package.yml b/.github/workflows/build-and-push-release-package.yml deleted file mode 100644 index f693e8fc..00000000 --- a/.github/workflows/build-and-push-release-package.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Build and publish release package - -on: - release: - types: [created] - -jobs: - build-and-publish-release-package: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'npm' - - - name: Workflow install pnpm - run: npm install pnpm@9 -g - - - name: Client install dependencies - run: pnpm install - - - name: Server install dependencies - run: pnpm install - - - name: Server include into dist - run: mv server/ dist/ - - - name: Client build production - run: | - npm run build - working-directory: ./client - - - name: Client include into dist - run: | - mv build/index.html ../dist/views/index.ejs - mv build/* ../dist/public/ - working-directory: ./client - - - name: Dist include README.md SECURITY.md LICENSE start.sh - run: mv README.md SECURITY.md LICENSE start.sh dist/ - - - name: Dist Remove node modules - run: rm -R dist/node_modules - - - name: Dist create .zip file - run: | - mv dist/ planka/ - zip -r planka-prebuild.zip planka - - - name: Dist upload assets - run: | - gh release upload ${{ github.event.release.tag_name }} planka-prebuild.zip - env: - GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 08f4e3ba..c162e5f5 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,4 +1,4 @@ -name: Build and test +name: Build and Test on: pull_request: @@ -9,23 +9,25 @@ on: - master jobs: - setup: + build-and-test: runs-on: ubuntu-latest + env: - POSTGRES_DB: planka_db + POSTGRES_DB: planka POSTGRES_USER: user POSTGRES_PASSWORD: password - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node.js + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: '18' cache: 'npm' - - name: Setup PostgreSQL + - name: Set up PostgreSQL uses: ikalnytskyi/action-setup-postgres@v5 with: database: ${{ env.POSTGRES_DB }} @@ -40,13 +42,13 @@ jobs: restore-keys: | ${{ runner.os }}-node- - - name: Install dependencies + - name: Install dependencies and build client run: | npm install cd client npm run build - - name: Setup server + - name: Set up and start server for testing env: DEFAULT_ADMIN_EMAIL: demo@demo.demo DEFAULT_ADMIN_PASSWORD: demo @@ -60,14 +62,13 @@ jobs: npm run db:init npm start --prod & - - name: Wait for development server + - name: Wait for server to start run: | sudo apt-get install wait-for-it -y wait-for-it -h localhost -p 1337 -t 10 - name: Run UI tests run: | - cd client - npm install npx playwright install chromium - npm run test:acceptance tests + npm run test:acceptance + working-directory: ./client diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9e3705e6..e98b9ec2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,16 +6,17 @@ on: - master jobs: - setup: + lint: runs-on: ubuntu-latest + steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: '18' cache: 'npm' - name: Cache Node.js modules diff --git a/.github/workflows/helm-chart-release.yml b/.github/workflows/release-helm-chart.yml similarity index 89% rename from .github/workflows/helm-chart-release.yml rename to .github/workflows/release-helm-chart.yml index 44313e1b..b3b53dbb 100644 --- a/.github/workflows/helm-chart-release.yml +++ b/.github/workflows/release-helm-chart.yml @@ -8,14 +8,16 @@ on: - master jobs: - release: + release-helm-chart: # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token permissions: contents: write + runs-on: self-hosted + steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 @@ -28,13 +30,13 @@ jobs: - name: Install Helm uses: azure/setup-helm@v3 - - name: Add repositories + - name: Add Helm chart repositories run: | for dir in $(ls -d charts/*/); do helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done done - - name: Run chart-releaser for stable + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 with: charts_dir: charts diff --git a/.vscode/settings.json b/.vscode/settings.json index b6c599ce..2c607be7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,8 @@ "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "files.trimTrailingWhitespace": true, + "css.format.spaceAroundSelectorSeparator": true, + "scss.format.spaceAroundSelectorSeparator": true, "eslint.format.enable": true, "eslint.workingDirectories": [ "./client", diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index b294848e..159d6f9a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -55,8 +55,8 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at contact@plankanban.org. All -complaints will be reviewed and investigated and will result in a response that +reported by contacting the project team at [github@planka.group](mailto:github@planka.group). +All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 013c56a2..7af7ade2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,10 +1,10 @@ -# Contributing to Planka +# Contributing to PLANKA First off, thanks for taking the time to contribute! ## Code of Conduct -This project and everyone participating in it is governed by the [Planka Code of Conduct](https://github.com/plankanban/planka/blob/master/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. +This project and everyone participating in it is governed by the [PLANKA Code of Conduct](https://github.com/plankanban/planka/blob/master/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. ## How Can I Contribute? @@ -20,7 +20,7 @@ Feel free to create an enhancement suggestion as a new issue on GitHub. Before c Before submitting a pull request please discuss with the core team by creating or commenting in an issue on GitHub – we'd also love to hear from you in the discussions. This way we can ensure that an approach is agreed on before code is written. This will result in a much higher liklihood of your code being accepted. -If you’re looking for ways to get started, here's a list of ways to help us improve Planka: +If you’re looking for ways to get started, here's a list of ways to help us improve PLANKA: - [Translation](https://github.com/plankanban/planka/issues/66) into other languages - Issues with [`good first issue`](https://github.com/plankanban/planka/labels/good%20first%20issue) label diff --git a/CONTRIBUTOR_LICENSE_AGREEMENT.md b/CONTRIBUTOR_LICENSE_AGREEMENT.md new file mode 100644 index 00000000..382477a6 --- /dev/null +++ b/CONTRIBUTOR_LICENSE_AGREEMENT.md @@ -0,0 +1,5 @@ +# PLANKA Contributor License Agreement + +I give PLANKA Software GmbH permission to license my contributions on any terms they like. I am giving them this license in order to make it possible for them to accept my contributions into their project. + +AS FAR AS THE LAW ALLOWS, MY CONTRIBUTIONS COME AS IS, WITHOUT ANY WARRANTY OR CONDITION, AND I WILL NOT BE LIABLE TO ANYONE FOR ANY DAMAGES RELATED TO THIS SOFTWARE OR THIS LICENSE, UNDER ANY KIND OF LEGAL CLAIM. diff --git a/Dockerfile b/Dockerfile index fe28a0c2..349c5ad1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,10 @@ RUN apk -U upgrade \ WORKDIR /app -COPY server/package.json server/package-lock.json ./ +COPY server/package.json server/package-lock.json server/requirements.txt ./ RUN npm install npm --global \ - && npm install pnpm@9 --global \ - && pnpm import \ - && pnpm install --prod + && npm install --omit=dev FROM node:lts AS client @@ -19,33 +17,33 @@ WORKDIR /app COPY client . RUN npm install npm --global \ - && npm install pnpm@9 --global \ - && pnpm import \ - && pnpm install --prod + && npm install --omit=dev RUN DISABLE_ESLINT_PLUGIN=true npm run build FROM node:18-alpine RUN apk -U upgrade \ - && apk add bash --no-cache + && apk add bash python3 --no-cache \ + && npm install npm --global USER node WORKDIR /app -COPY --chown=node:node start.sh . -COPY --chown=node:node healthcheck.js . COPY --chown=node:node server . -RUN mv .env.sample .env +RUN python3 -m venv .venv \ + && .venv/bin/pip3 install -r requirements.txt --no-cache-dir \ + && mv .env.sample .env COPY --from=server-dependencies --chown=node:node /app/node_modules node_modules -COPY --from=client --chown=node:node /app/build public -COPY --from=client --chown=node:node /app/build/index.html views/index.ejs +COPY --from=client --chown=node:node /app/dist public +COPY --from=client --chown=node:node /app/dist/index.html views +VOLUME /app/public/favicons VOLUME /app/public/user-avatars -VOLUME /app/public/project-background-images +VOLUME /app/public/background-images VOLUME /app/private/attachments EXPOSE 1337 diff --git a/Dockerfile.base b/Dockerfile.base deleted file mode 100644 index 06486fb8..00000000 --- a/Dockerfile.base +++ /dev/null @@ -1,22 +0,0 @@ -FROM node:18-alpine - -ARG VIPS_VERSION=8.14.5 - -RUN apk -U upgrade \ - && apk add \ - bash pkgconf \ - libjpeg-turbo libexif librsvg cgif tiff libspng libimagequant \ - --no-cache \ - && apk add \ - build-base gobject-introspection-dev meson \ - libjpeg-turbo-dev libexif-dev librsvg-dev cgif-dev tiff-dev libspng-dev libimagequant-dev \ - --virtual vips-dependencies \ - --no-cache \ - && wget -O- https://github.com/libvips/libvips/releases/download/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.xz | tar xJC /tmp \ - && cd /tmp/vips-${VIPS_VERSION} \ - && meson setup build-dir \ - && cd build-dir \ - && ninja \ - && ninja test \ - && ninja install \ - && rm -rf /tmp/vips-${VIPS_VERSION} diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 00000000..d59e3cf3 --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,8 @@ +FROM node:18-alpine + +RUN apk -U upgrade \ + && apk add bash build-base python3 xdg-utils --no-cache \ + && npm install npm --global + +USER node +WORKDIR /app diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 0ad25db4..00000000 --- a/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 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 Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are 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. - - 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. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - 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 Affero 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. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - 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 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 work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero 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 Affero 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 Affero 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 Affero 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 Affero 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 Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - 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 AGPL, see -. diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..6e4b3298 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,85 @@ +**PLANKA Community License** + +Version 1.0 - Last updated: May 2, 2025 + +Related files in English: +- PLANKA Community License EN.md (this file) +- [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) +- [PLANKA License Guide EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md) + +Related files in German: +- [PLANKA Community License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) +- [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) +- [PLANKA License Guide DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20DE.md) + +--- + +# PLANKA Community License + +Files accessible to and marked for community use are licensed as follows: + +- Content of branches other than the main branch (usually "master" or "main") is not licensed. +- Source code files or other files that contain ".pe." (for "PLANKA Enterprise") in their file names or folder names or are otherwise marked as "PLANKA Enterprise" in their file headers or folders are NOT licensed under the "Fair Use License". These files are "PLANKA Enterprise" files and are licensed under the "PLANKA Enterprise License". +- To use any "PLANKA Enterprise" files or sources, you must own a valid "PLANKA Enterprise License". You can read more about our commercial license in the [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md). +- All third-party components incorporated into our software are licensed under the original license provided by the owner of the applicable component. +- Content outside of the above-mentioned files or restrictions is available under the "Fair Use License" as defined below. + +## Fair Use License + +Version 1.0 + +### Acceptance + +By using the software, you agree to all of the terms and conditions below. + +### Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations below. + +### Trademark + +"You may use the PLANKA name or logo only to describe that your service incorporates the software. Any other trademark use (e.g., in product names, domains, or marketing material) requires our prior written consent." + +### Limitations + +You may use or modify the software (a) for personal, hobby, or educational purposes or (b) inside your own legal entity (including wholly owned subsidiaries) for workflows that are not offered as a paid product or as a cross-company service to a third party. Cross-company services or use between your legal entity and other unrelated third-party legal entities are explicitly prohibited. You may not alter, remove, or obscure any licensing, copyright, or other notices from the software provided by the licensor. Any use of the licensor's trademarks is subject to applicable law. + +### Patents + +The licensor grants you a license, under any patent claims the licensor can license or becomes able to license, to make, have made, use, sell, offer for sale, import, and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company and everyone connected to your company. + +### Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. If you modify the software, you must include in any modified copies of the software a prominent notice stating that you have modified the software. + +### No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +### Termination + +If you use the software in violation of these terms, such use is not licensed, and your license will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your license will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your license to terminate automatically and permanently. + +### Violation + +Violation of our restricted use clauses will constitute a material breach of terms. PLANKA Software GmbH reserves the right to immediately terminate your access to its services and to pursue all available legal and equitable remedies. + +### No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. Additionally, we are not responsible for bugs and mistakes in any third-party submodule or their referring license definition. If you find something problematic, please report it to us. + +### Definitions + +The "licensor" is the entity offering these terms. + +The "software" is the software the licensor makes available under these terms, including any portion of it. + +"You" refers to the individual or entity agreeing to these terms. + +"Your company" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity. + +"Your license" is the license granted to you for the software under these terms. + +"Use" means anything you do with the software requiring your license. + +"Trademark" means trademarks, service marks, and similar rights. diff --git a/LICENSES/PLANKA Community License DE.md b/LICENSES/PLANKA Community License DE.md new file mode 100644 index 00000000..e6ad1e31 --- /dev/null +++ b/LICENSES/PLANKA Community License DE.md @@ -0,0 +1,85 @@ +**PLANKA Community License** + +Version 1.0 - Zuletzt aktualisiert: 2. Mai 2025 + +Zugehörige Dateien in Englisch: +- [PLANKA Community License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) +- [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) +- [PLANKA License Guide EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md) + +Zugehörige Dateien in Deutsch: +- PLANKA Community License DE.md (diese Datei) +- [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) +- [PLANKA License Guide DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20DE.md) + +--- + +# PLANKA-Gemeinnutzungslizenz + +Für die Gemeinschaft zugängliche und gekennzeichnete Dateien sind wie folgt lizenziert: + +- Inhalte von Sourcecode-Branches außer dem Hauptbranch (üblicherweise "master" oder "main") sind nicht zur Gemeinnutzung bestimmt und lizenziert. +- Quellcode-Dateien oder andere Dateien, die ".pe." (für "PLANKA Enterprise") in ihren Datei- oder Ordnernamen enthalten oder anderweitig durch "PLANKA Enterprise" in ihren Dateiköpfen oder Ordnern als Unternehmenslizenz gekennzeichnet sind, sind NICHT unter der "Fair Use Lizenz" lizenziert. Diese Dateien sind "PLANKA Enterprise"-Dateien und sind unter der "PLANKA-Unternehmenslizenz" lizenziert. +- Um "PLANKA Enterprise"-Dateien oder Quellen zu nutzen, müssen Sie eine gültige "PLANKA-Unternehmenslizenz" besitzen. Sie können mehr über unsere kommerzielle Lizenz in der [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) lesen. +- Alle Komponenten von Drittanbietern, die in unsere Software integriert sind, sind unter der ursprünglichen Lizenz lizenziert, die vom Eigentümer der jeweiligen Komponente bereitgestellt wird. +- Inhalte außerhalb der oben genannten Dateien oder Einschränkungen sind unter der "Fair Use Lizenz" verfügbar, wie unten definiert. + +## Fair Use Lizenz + +Version 1.0 + +### Annahme + +Durch die Nutzung der Software stimmen Sie allen unten aufgeführten Bedingungen zu. + +### Urheberrechtslizenz + +Der Lizenzgeber gewährt Ihnen eine nicht-exklusive, gebührenfreie, weltweite, nicht unterlizenzierbare, nicht übertragbare Lizenz zur Nutzung, Kopie, Verteilung, Verfügbarmachung und Erstellung abgeleiteter Werke der Software, in jedem Fall vorbehaltlich der unten genannten Einschränkungen. + +### Marke + +"Sie dürfen den Namen oder das Logo von PLANKA nur verwenden, um zu beschreiben, dass Ihr Dienst die Software enthält. Jede andere Markennutzung (z.B. in Produktnamen, Domains oder Marketingmaterial) bedarf unserer vorherigen schriftlichen Zustimmung." + +### Einschränkungen + +Sie dürfen die Software nutzen oder modifizieren (a) für persönliche, Hobby- oder Bildungszwecke oder (b) innerhalb Ihrer eigenen juristischen Person (einschließlich hundertprozentiger Tochtergesellschaften) für Arbeitsabläufe, die nicht als kostenpflichtiges Produkt oder als unternehmensübergreifender Dienst an Dritte angeboten werden. Unternehmensübergreifende Dienste oder Nutzung zwischen deren juristischen Personen und anderen nicht verbundenen dritten juristischen Personen sind ausdrücklich untersagt. Sie dürfen keine vom Lizenzgeber bereitgestellten Lizenz-, Urheber- oder anderen Hinweise in der Software verändern, entfernen oder verschleiern. Jede Nutzung der Marken des Lizenzgebers unterliegt dem geltenden Recht. + +### Patente + +Der Lizenzgeber gewährt Ihnen eine Lizenz unter allen Patentansprüchen, die der Lizenzgeber lizenzieren kann oder lizenzieren können wird, um die Software herzustellen, herstellen zu lassen, zu nutzen, zu verkaufen, zum Verkauf anzubieten, zu importieren und importieren zu lassen, jeweils vorbehaltlich der Einschränkungen und Bedingungen in dieser Lizenz. Diese Lizenz erstreckt sich nicht auf Patentansprüche, die Sie durch Modifikationen oder Ergänzungen der Software verletzen lassen. Wenn Sie oder Ihr Unternehmen einen schriftlichen Anspruch geltend machen, dass die Software ein Patent verletzt oder zur Verletzung beiträgt, endet Ihre unter diesen Bedingungen gewährte Patentlizenz für die Software sofort. Wenn Ihr Unternehmen einen solchen Anspruch geltend macht, endet Ihre Patentlizenz sofort für Arbeiten im Auftrag Ihres Unternehmens und für alle mit Ihrem Unternehmen verbundenen Personen. + +### Hinweise + +Sie müssen sicherstellen, dass jeder, der eine Kopie eines Teils der Software von Ihnen erhält, auch eine Kopie dieser Bedingungen erhält. Wenn Sie die Software modifizieren, müssen Sie in allen modifizierten Kopien der Software einen auffälligen Hinweis aufnehmen, der besagt, dass Sie die Software modifiziert haben. + +### Keine weiteren Rechte + +Diese Bedingungen implizieren keine anderen Lizenzen als die, die in diesen Bedingungen ausdrücklich gewährt werden. + +### Kündigung + +Wenn Sie die Software unter Verletzung dieser Bedingungen nutzen, ist eine solche Nutzung nicht lizenziert, und Ihre Lizenz wird automatisch gekündigt. Wenn der Lizenzgeber Ihnen eine Mitteilung über Ihre Verletzung zukommen lässt und Sie alle Verletzungen dieser Lizenz spätestens 30 Tage nach Erhalt dieser Mitteilung einstellen, wird Ihre Lizenz rückwirkend wiederhergestellt. Wenn Sie jedoch nach einer solchen Wiederherstellung gegen diese Bedingungen verstoßen, führt jeder weitere Verstoß gegen diese Bedingungen dazu, dass Ihre Lizenz automatisch und dauerhaft gekündigt wird. + +### Verletzung + +Die Verletzung unserer Nutzungsbeschränkungsklauseln stellt eine wesentliche Vertragsverletzung dar. Die PLANKA Software GmbH behält sich das Recht vor, Ihren Zugang zu seinen Diensten sofort zu beenden und alle verfügbaren rechtlichen und durchsetzbaren Rechtsmittel zu verfolgen. + +### Keine Haftung + +Soweit es das Gesetz erlaubt, wird die Software wie sie ist, ohne jegliche Garantie oder Bedingung geliefert, und der Lizenzgeber haftet Ihnen gegenüber nicht für Schäden, die sich aus diesen Bedingungen oder der Nutzung oder Art der Software ergeben, unter keiner Art von Rechtsanspruch. Darüber hinaus sind wir nicht verantwortlich für Fehler und Irrtümer in Submodulen von Drittanbietern oder deren jeweiligen Lizenzdefinitionen. Wenn Sie etwas Problematisches finden, melden Sie es uns bitte. + +### Definitionen + +Der "Lizenzgeber" ist die juristische Person, die diese Bedingungen anbietet. + +Die "Software" ist die Software, die der Lizenzgeber unter diesen Bedingungen verfügbar macht, einschließlich einzelner Teile davon. + +"Sie" bezieht sich auf die natürliche oder juristische Person, die diesen Bedingungen zustimmt. + +"Ihr Unternehmen" ist jede juristische Person, Einzelunternehmen oder eine andere Art von Organisation, für die Sie arbeiten, sowie alle Organisationen, die die Kontrolle über diese Organisation haben, unter der Kontrolle dieser Organisation stehen oder unter gemeinsamer Kontrolle mit dieser Organisation stehen. Kontrolle bedeutet Eigentum an im Wesentlichen allen Vermögenswerten einer Einheit. + +"Ihre Lizenz" ist die Lizenz, die Ihnen unter diesen Bedingungen für die Software gewährt wird. + +"Nutzung" bedeutet alles, was Sie mit der Software tun, wofür Ihre Lizenz erforderlich ist. + +"Marke" bedeutet Marken, Dienstleistungsmarken und ähnliche Rechte. diff --git a/LICENSES/PLANKA Community License EN.md b/LICENSES/PLANKA Community License EN.md new file mode 100644 index 00000000..6e4b3298 --- /dev/null +++ b/LICENSES/PLANKA Community License EN.md @@ -0,0 +1,85 @@ +**PLANKA Community License** + +Version 1.0 - Last updated: May 2, 2025 + +Related files in English: +- PLANKA Community License EN.md (this file) +- [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) +- [PLANKA License Guide EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md) + +Related files in German: +- [PLANKA Community License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) +- [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) +- [PLANKA License Guide DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20DE.md) + +--- + +# PLANKA Community License + +Files accessible to and marked for community use are licensed as follows: + +- Content of branches other than the main branch (usually "master" or "main") is not licensed. +- Source code files or other files that contain ".pe." (for "PLANKA Enterprise") in their file names or folder names or are otherwise marked as "PLANKA Enterprise" in their file headers or folders are NOT licensed under the "Fair Use License". These files are "PLANKA Enterprise" files and are licensed under the "PLANKA Enterprise License". +- To use any "PLANKA Enterprise" files or sources, you must own a valid "PLANKA Enterprise License". You can read more about our commercial license in the [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md). +- All third-party components incorporated into our software are licensed under the original license provided by the owner of the applicable component. +- Content outside of the above-mentioned files or restrictions is available under the "Fair Use License" as defined below. + +## Fair Use License + +Version 1.0 + +### Acceptance + +By using the software, you agree to all of the terms and conditions below. + +### Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations below. + +### Trademark + +"You may use the PLANKA name or logo only to describe that your service incorporates the software. Any other trademark use (e.g., in product names, domains, or marketing material) requires our prior written consent." + +### Limitations + +You may use or modify the software (a) for personal, hobby, or educational purposes or (b) inside your own legal entity (including wholly owned subsidiaries) for workflows that are not offered as a paid product or as a cross-company service to a third party. Cross-company services or use between your legal entity and other unrelated third-party legal entities are explicitly prohibited. You may not alter, remove, or obscure any licensing, copyright, or other notices from the software provided by the licensor. Any use of the licensor's trademarks is subject to applicable law. + +### Patents + +The licensor grants you a license, under any patent claims the licensor can license or becomes able to license, to make, have made, use, sell, offer for sale, import, and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company and everyone connected to your company. + +### Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. If you modify the software, you must include in any modified copies of the software a prominent notice stating that you have modified the software. + +### No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +### Termination + +If you use the software in violation of these terms, such use is not licensed, and your license will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your license will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your license to terminate automatically and permanently. + +### Violation + +Violation of our restricted use clauses will constitute a material breach of terms. PLANKA Software GmbH reserves the right to immediately terminate your access to its services and to pursue all available legal and equitable remedies. + +### No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. Additionally, we are not responsible for bugs and mistakes in any third-party submodule or their referring license definition. If you find something problematic, please report it to us. + +### Definitions + +The "licensor" is the entity offering these terms. + +The "software" is the software the licensor makes available under these terms, including any portion of it. + +"You" refers to the individual or entity agreeing to these terms. + +"Your company" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity. + +"Your license" is the license granted to you for the software under these terms. + +"Use" means anything you do with the software requiring your license. + +"Trademark" means trademarks, service marks, and similar rights. diff --git a/LICENSES/PLANKA Enterprise License DE.md b/LICENSES/PLANKA Enterprise License DE.md new file mode 100644 index 00000000..356ac98f --- /dev/null +++ b/LICENSES/PLANKA Enterprise License DE.md @@ -0,0 +1,33 @@ +**PLANKA Enterprise License** + +Version 1.0 - Zuletzt aktualisiert: 2. Mai 2025 + +Zugehörige Dateien in Englisch: +- [PLANKA Community License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) +- [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) +- [PLANKA License Guide EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md) + +Zugehörige Dateien in Deutsch: +- [PLANKA Community License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) +- PLANKA Enterprise License DE.md (diese Datei) +- [PLANKA License Guide DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20DE.md) + +--- + +# PLANKA-Unternehmenslizenz + +Copyright (c) 2025 von PLANKA Software GmbH. + +Unsere Software und zugehörige Dokumentationsdateien (die "Software") dürfen nur dann produktiv genutzt werden, wenn Sie (und jede juristische Person, die Sie vertreten) eine gültige "PLANKA Enterprise License", also eine "PLANKA-Unternehmenslizenz" besitzen, die Ihrer Nutzung entspricht. Vorbehaltlich des vorstehenden Satzes steht es Ihnen frei, unsere Software zu modifizieren und Patches dafür zu veröffentlichen. Sie stimmen zu, dass die PLANKA Software GmbH und/oder ihre Lizenzgeber (falls zutreffend) alle Rechte, Titel und Ansprüche an und auf alle solche Modifikationen und/oder Patches behalten, und alle solche Modifikationen und/oder Patches dürfen nur mit einer gültigen "PLANKA-Unternehmenslizenz" für die entsprechende Nutzung verwendet, kopiert, modifiziert, angezeigt, verteilt oder anderweitig genutzt werden. Ungeachtet des Vorstehenden dürfen Sie die Software für Entwicklungs- und Testzwecke ohne Abonnement kopieren und modifizieren. Sie stimmen zu, dass PLANKA Software GmbH und/oder ihre Lizenzgeber (falls zutreffend) alle Rechte, Titel und Ansprüche an und auf alle solche Modifikationen behalten. Es werden Ihnen keine anderen Rechte gewährt als die, die hier ausdrücklich genannt sind. Vorbehaltlich des Vorstehenden ist es verboten, die Software zu kopieren, zusammenzuführen, zu veröffentlichen, zu verteilen, zu unterlizenzieren und/oder zu verkaufen. + +#### Komponenten von Drittanbietern + +Für alle Komponenten von Drittanbietern, die in unsere Software integriert sind, werden diese Komponenten unter der ursprünglichen Lizenz lizenziert, die vom Eigentümer der jeweiligen Komponente bereitgestellt wird. + +## PLANKA Enterprise Repositories + +Nach dem Kauf unserer "PLANKA-Unternehmenslizenz" erhalten Sie Zugang zu unseren "PLANKA Enterprise"-Repositories. Hier finden Sie unsere neuesten stabilen Builds, die umfangreiche, eingehende Tests bestanden haben und als kampferprobt gelten. Unter keinen Umständen dürfen Sie Dateien, Quellcode oder Teile aus unseren "PLANKA Enterprise"-Repositories ohne vorherige Genehmigung der PLANKA Software GmbH an Personen weitergeben, die nicht zugangsberechtigt sind-. + +## Eingeschränkte Garantie + +UNSERE SOFTWARE WIRD "WIE SIE IST" BEREITGESTELLT, OHNE JEGLICHE GARANTIE, AUSDRÜCKLICH ODER IMPLIZIERT, EINSCHLIEßLICH, ABER NICHT BESCHRÄNKT AUF DIE GARANTIEN DER MARKTGÄNGIGKEIT, EIGNUNG FÜR EINEN BESTIMMTEN ZWECK UND NICHTVERLETZUNG VON RECHTEN DRITTER. IN KEINEM FALL HAFTEN DIE AUTOREN ODER URHEBERRECHTSINHABER FÜR ANSPRÜCHE, SCHÄDEN ODER ANDERE HAFTUNG, OB AUS VERTRAG, UNERLAUBTER HANDLUNG ODER ANDERWEITIG, DIE SICH AUS, AUS ODER IN VERBINDUNG MIT DER SOFTWARE ODER DER NUTZUNG ODER ANDEREN GESCHÄFTEN MIT DER SOFTWARE ERGEBEN. diff --git a/LICENSES/PLANKA Enterprise License EN.md b/LICENSES/PLANKA Enterprise License EN.md new file mode 100644 index 00000000..0d4e08cb --- /dev/null +++ b/LICENSES/PLANKA Enterprise License EN.md @@ -0,0 +1,33 @@ +**PLANKA Enterprise License** + +Version 1.0 - Last updated: May 2, 2025 + +Related files in English: +- [PLANKA Community License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) +- PLANKA Enterprise License EN.md (this file) +- [PLANKA License Guide EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md) + +Related files in German: +- [PLANKA Community License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) +- [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) +- [PLANKA License Guide DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20DE.md) + +--- + +# PLANKA Enterprise License + +Copyright (c) 2025 to present by PLANKA Software GmbH. + +Our software and associated documentation files (the "Software") may only be used in production if you (and any entity that you represent) hold a valid "PLANKA Enterprise License" corresponding to your usage. Subject to the foregoing sentence, you are free to modify our Software and publish patches for it. You agree that PLANKA Software GmbH and/or its licensors (as applicable) retain all right, title, and interest in and to all such modifications and/or patches, and all such modifications and/or patches may only be used, copied, modified, displayed, distributed, or otherwise exploited with a valid "PLANKA Enterprise License" for the corresponding usage. Notwithstanding the foregoing, you may copy and modify the Software for development and testing purposes without requiring a subscription. You agree that PLANKA Software GmbH and/or its licensors (as applicable) retain all right, title, and interest in and to all such modifications. You are not granted any other rights beyond what is expressly stated herein. Subject to the foregoing, it is forbidden to copy, merge, publish, distribute, sublicense, and/or sell the Software. + +#### Third-Party Components + +For all third-party components incorporated into our Software, those components are licensed under the original license provided by the owner of the applicable component. + +## PLANKA Enterprise Repositories + +After purchasing our "PLANKA Enterprise License", you get access to our "PLANKA Enterprise" repositories. Here you find our latest stable builds, which have passed extensive in-depth tests and are considered battle-proof. Under no circumstances are you allowed to pass files, source code, or any part of it from our "PLANKA Enterprise" repositories to anyone not eligible for access without prior permission from PLANKA Software GmbH. + +## Limited Warranty + +OUR SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/LICENSES/PLANKA License Guide DE.md b/LICENSES/PLANKA License Guide DE.md new file mode 100644 index 00000000..1ba220e5 --- /dev/null +++ b/LICENSES/PLANKA License Guide DE.md @@ -0,0 +1,181 @@ +**PLANKA License Guide** + +Version 1.0 - Zuletzt aktualisiert: 2. Mai 2025 + +Zugehörige Dateien in Englisch: +- [PLANKA Community License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) +- [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) +- [PLANKA License Guide EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md) + +Zugehörige Dateien in Deutsch: +- [PLANKA Community License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) +- [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) +- PLANKA License Guide DE.md (diese Datei) + +--- + +## PLANKAs "Fair Use Lizenz" und "PLANLA-Unternehmenslizenz" (Enterprise License) + +Unsere [Fair Use Lizenz](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) und unsere [PLANKA-Unternehmenslizenz](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) basieren auf dem [fair-code](http://faircode.io)-Modell. + +#### Proprietäre Lizenzen für Unternehmen und die "PLANKA-Bildungslizenz" (Educational License) + +Wir bieten unseren Unternehmenskunden nach Absprache auch proprietäre Lizenzen sowie die "PLANKA-Bildungslizenz" für Schulen und Universitäten an. Bitte kontaktieren Sie uns für detaillierte Informationen unter [license@planka.group](mailto:license@planka.group). + +# Lizenz-FAQs + +### Unter welcher Lizenz wird PLANKA angeboten? + +PLANKA verwendet die [Fair Use Lizenz](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) und die [PLANKA-Unternehmenslizenz](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md). Diese Lizenzen basieren auf dem [fair-code](http://faircode.io)-Modell. + +### Welcher Quellcode ist durch PLANKAs "Fair Use Lizenz" abgedeckt? + +Die [Fair Use Lizenz](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) gilt für unseren Quellcode, der in unserem [GitHub-Hauptrepository](https://github.com/plankanban/planka) gehostet wird, mit folgenden Ausnahmen: + +* Inhalte von Branches außer dem Hauptbranch (üblicherweise "master" oder "main"). + +* Quellcode-Dateien oder andere Dateien, die ".pe." (für "PLANKA Enterprise") in ihren Datei- oder Ordnernamen enthalten. + +* Quellcode-Dateien, die in den Dateien oder Ordnern als "PLANKA Enterprise" gekennzeichnet sind. + +* Quellcode in Ordnern, die separate Lizenzdateien enthalten, die sie eindeutig als "PLANKA Enterprise" kennzeichnen. + +Diese Ausnahmen sind unter der [PLANKA-Unternehmenslizenz](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) lizenziert. + +### Was genau ist die "Fair Use Lizenz"? + +Die "Fair Use Lizenz" fällt in die Kategorie der sogenannten [fair-code](http://faircode.io)-Lizenzen. PLANKAs Lizenz basiert auf und erweitert die "Sustainable Use License", die von [n8n](https://n8n.io) eingeführt wurde und für deren Beratung wir sehr dankbar sind. Mit ähnlichen Zielen vor Augen haben wir beschlossen, deren Beispiel zu folgen und dieses Lizenz-Modell für unsere eigenen Bedürfnisse anzupassen. [Weiter unten](#warum-haben-sie-diese-lizenz-gewählt) können Sie nachlesen, warum wir diese Lizenzart gewählt haben. + +Die Lizenz gewährt unseren Benutzern das kostenlose Recht, die Community Version der Software zu nutzen, zu modifizieren und abgeleitete Werke zu erstellen und weiterzugeben, mit drei Einschränkungen: + +- Sie dürfen die Software nutzen oder modifizieren (a) für persönliche, Freizeit- oder Bildungszwecke oder (b) innerhalb Ihres eigenen Unternehmens bzw. Ihrer juristischen Person (einschließlich hundertprozentiger Tochtergesellschaften) für Arbeitsabläufe, die nicht als kostenpflichtiges Produkt oder als unternehmensübergreifender Dienst für Dritte angeboten werden. + +- Sie dürfen keine Lizenz-, Urheber- oder sonstigen Hinweise des Lizenzgebers in der Software ändern, entfernen oder verschleiern. Jede Verwendung des Namens, bzw. von Marken des Lizenzgebers unterliegen dem geltenden Recht. + +- "Sie dürfen den Namen oder das Logo von PLANKA verwenden, um sachlich zu beschreiben, dass Ihr Dienst die PLANKA-Software enthält oder auf andere Weise nutzt. Jede andere Verwendung der Marke/des Namens (z.B. in Produktnamen oder -marken, Domainnamen oder Marketingmaterial) erfordert unsere vorherige schriftliche Zustimmung." + +### Was ist im Rahmen der Lizenz im Kontext von PLANKAs Produkten erlaubt und was NICHT? + +Unsere Lizenz beschränkt die Nutzung auf "interne Geschäftszwecke". In der Praxis bedeutet dies, dass jegliche Nutzung erlaubt ist, es sei denn, Sie verkaufen ein Produkt, einen Dienst oder ein Modul, bei dem der Wert vollständig oder im Wesentlichen von der PLANKA-Funktionalität abgeleitet wird. + +###### Hier sind einige Beispiele, die nicht erlaubt wären: + +- PLANKA unter einem White-Label anzubieten und es Ihren Kunden oder Partnern gegen Geld anzubieten. + +- PLANKA zu hosten und Dritten für den Zugriff Geld berechnen. + +- PLANKAs API für Dienste zu nutzen, für die Geld verlangt wird. + +- Die Verwendung von PLANKA, um Ihre eigene Organisation mit anderen Organisationen oder Personen außerhalb Ihrer eigenen Organisation zu verbinden. + +- PLANKA zur Durchführung oder Unterstützung illegaler oder rechtswidriger Aktivitäten zu verwenden. + +###### Die folgenden Beispiele sind unter unserer Lizenz erlaubt: + +- Verwendung von PLANKA zur Kontrolle Ihrer internen Prozesse und Verwaltung Ihrer internen Projekte. + +- Integration von PLANKA in andere intern genutzte Produkte, um deren Fähigkeiten zu erweitern. + +- Bereitstellung von Beratungs- oder Bildungsdienstleistungen im Zusammenhang mit PLANKA, zum Beispiel zum Aufbau oder zur Integration von Arbeitsabläufen für oder in Verbindung mit PLANKA oder zur Entwicklung benutzerdefinierter Module zur Erweiterung seiner Funktionalitäten. + +- Unterstützung von PLANKA, zum Beispiel durch Einrichtung oder Wartung auf einem internen Firmenserver. + +### Ist es erlaubt, PLANKA als Backend-Integration zu nutzen? + +Wenn Sie PLANKA und sein Backend sowie zugehörige Dienste außerhalb der Grenzen interner Betriebsabläufe und Integrationen innerhalb Ihrer eigenen Organisation nutzen, müssen Sie eine "PLANKA-Unternehmenslizenz" erwerben. Dies gilt auch, wenn Sie PLANKA als Kern-Backend-Infrastruktur für Drittanbieteranwendungen, -dienste oder ein System nutzen möchten, das an externe Parteien verteilt wird oder von diesen genutzt wird. + +Jede Vereinbarung, welche die Unterlizenzierung, Umlabelung oder anderweitige Bereitstellung von PLANKA für externe Parteien oder die Integration von PLANKA in ein anderes Produkt beinhaltet, um als primärer Dienst für dieses Produkt zu fungieren, erfordert ebenfalls eine gültige "PLANKA-Unternehmenslizenz" oder proprietäre Lizenz, die für unsere Unternehmenskunden ebenfalls verfügbar ist. + +### Können Sie mir einige schnelle Beispiele geben, um kostenlose Nutzung vs. Unternehmensnutzung zu verdeutlichen? + +--- + +##### Beispiel 1: Verwendung der PLANKA-API zur Steuerung oder Reaktion auf Fertigungsprozess-Ereignissen + +Nutzen Sie unsere API, um das Feedback aus Fertigungsschritten in Ihrem Unternehmen anzuzeigen und zu steuern oder um Produktionslinien-Ereignisse durch das Verschieben von Karten zu steuern. + +**ERLAUBT** unter der "Fair Use Lizenz". Sie können PLANKA in Ihre anderen Systeme integrieren, um seine API zur Steuerung Ihrer internen Prozesse zu nutzen. + +##### Beispiel 2: Kommerzielle Beratungs- oder Supportdienste anbieten + +Sie bieten Ihrem Kunden einen Dienst an, der ihm hilft, neue Arbeitsabläufe und Board-Konzepte in einer PLANKA-Instanz zu implementieren. + +**ERLAUBT** unter der "Fair Use Lizenz". Sie können frei kommerzielle Beratungs- oder Integrations- und Supportdienste für PLANKA anbieten, ohne dass eine separate Lizenzvereinbarung mit uns erforderlich ist. + +##### Beispiel 3: PLANKA in einem kostenlosen und öffentlichen Docker-Image bündeln + +Eine Schule oder gemeinnützige Organisation bündelt PLANKA in einem kostenlosen, öffentlichen Docker-Image für Studenten, die PLANKA zur Organisation ihrer Studienbereiche nutzen möchten. + +**ERLAUBT** unter der "Fair Use Lizenz". Da PLANKA kostenlos und ohne kommerzielle Einnahmen im Sinn weitergegeben wird, sind Sie mehr als willkommen, gemeinnützigen Einrichtungen und Schulen einen besseren Zugang zu PLANKA zu ermöglichen. + +**JEDOCH** wenn Sie auch planen, Schülern und Studenten Zugang zu einer zentralen bzw. schulinternen PLANKA-Instanz zu gewähren, würde dies eine "PLANKA-Bildungslizenz" erfordern, die wir sehr gerne auf Anfrage anbieten. + +##### Beispiel 4: PLANKA-Logins für Kunden und Partner bereitstellen + +Um ein besseres Projekt-Feedback zu ermöglichen, bieten Sie Ihrem Kunden oder Jemandem aus einem Partnerunternehmen Zugang zu Projektboards innerhalb Ihres Unternehmens an. Sie können nun z.B. Karten kommentieren und auch von PLANKAs Echtzeit-Update-Funktionen profitieren. + +**NICHT ERLAUBT** unter der "Fair Use Lizenz". Das Anbieten von PLANKA als Teil eines kostenpflichtigen Dienstes für Dritte oder die Bereitstellung von PLANKA-Zugang für Drittbenutzer außerhalb Ihrer eigenen Organisation erfordert, dass Sie eine "PLANKA-Unternehmenslizenz" erwerben. + +##### Beispiel 5: PLANKA als gehostetes Produkt für andere Unternehmen anbieten + +Sie möchten Geld damit verdienen, indem Sie PLANKA anderen Unternehmen, Freiberuflern oder anderen Personen zur Verfügung stellen damit diese Zugriff auf bzw. Kontrolle über ein PLANKA-System erhalten. + +**NICHT ERLAUBT** unter der "Fair Use Lizenz". Der Verkauf PLANKA-basierter Dienste erfordert, dass Sie einer "PLANKA-Wiederverkäuferlizenz" (Hosting License) zustimmen. Wir haben eine spezielle Hosting-Vereinbarung und sehr günstige Hosting Lizenzpreise für diejenigen, die kostenpflichtige PLANKA-Dienste für Kunden anbieten oder einfach als Wiederverkäufer für unsere eigenen "PLANKA Corporate Hosting Services" fungieren möchten. + +--- + +### Was, wenn ich PLANKA für etwas nutzen möchte, das nicht durch die Lizenz erlaubt ist? + +Sie müssen eine separate kommerzielle Vereinbarung mit uns abschließen. Wir ermutigen Softwareintegratoren und technisches Personal dazu, PLANKA in ihre Produkte zu integrieren oder mit ihnen zu verbinden und unsere umfangreiche API zu nutzen, um Prozesse innerhalb ihres Unternehmens zu steuern - wir bitten sie nur, eine Vereinbarung zu unterzeichnen, die die Nutzungsbedingungen und die von PLANKA für die Nutzung des Produkts erforderlichen Lizenzgebühren festlegt. Durch unsere API kann PLANKA externe Systeme steuern oder auf sie reagieren. Sie können [hier](https://docs.planka.cloud/docs/category/api-reference) mehr darüber erfahren oder uns hierüber kontaktieren. + +Wenn Sie sich nicht sicher sind, ob der von Ihnen ins Auge gefasste Anwendungsfall einen internen Geschäftszweck darstellt oder nicht, werfen Sie einen Blick auf die [Beispiele oben](#können-sie-mir-einige-schnelle-beispiele-geben-um-kostenlose-nutzung-vs-unternehmensnutzung-zu-verdeutlichen), und falls Sie immer noch unsicher sind, kontaktieren Sie uns bitte unter [license@planka.group](mailto:license@planka.group). + +### Warum nutzen Sie keine Standard-Open-Source-Lizenz? + +Wir verbringen viel Zeit damit, ein einfaches, aber leistungsstarkes Tool zu erstellen, welches die Kontrolle und Beherrschung von Projekten zu einer angenehmen Erfahrung macht. Außerdem wollten wir, dass PLANKA so weit als möglich frei verfügbar ist, während wir gleichzeitig sicherstellen müssen, dass wir ein nachhaltiges und tragfähiges Geschäft aufbauen können. In dem wir unser Produkt kostenlos, und den Quellcode verfügbar und verteilbar machten, helfen wir allen, auf das Produkt zuzugreifen. Indem wir als Unternehmen tätig sind, können wir neue Funktionen entwickeln und veröffentlichen, Fehler beheben und langfristig zuverlässige Software mit wachsendem Umfang bereitstellen. + +### Warum haben Sie diese Lizenz gewählt? + +Wir glauben, dass die "Fair Use Lizenz" sowohl für die Gemeinschaft als auch für die Entwickler von Vorteil ist. Entwicklung ist ein kostspieliges Unterfangen, und eine Community-Version kostenlos weiterzugeben, ist ein Risiko, welches viele Unternehmen nicht überleben, ohne ihre Software oder ihr Unternehmen zu veräußern. Daher leben viele Open-Source-Unternehmen von Spenden oder Finanzinvestoren. Anstatt unsere Seele zu verkaufen, verkaufen wir Dienstleistungen und Softwarelizenzen. Auf diese Weise können wir weiter wachsen, programmieren und unsere Community unterstützen. Die kurze Antwort lautet also "Leben und leben lassen" - so denken wir über PLANKA. + +Daher helfen wir dabei, [fair-code](https://faircode.io)-Software zu fördern, mit dem Ziel, sie zu einem bekannten Sammelbegriff zu machen, um Softwaremodelle wie Unseres zu beschreiben. Um jegliche Reibung um unsere proprietäre Lizenz auf ein absolutes Minimum zu beschränken, konzentrieren wir uns auf zwei Dinge: + +1. Klare Sprache und minimale Länge - die Lizenz ist in klarem, präzisem Englisch bzw Deutsch geschrieben, mit nur den unbedingt notwendigen Klauseln. + +2. Förderung von fair-code - wir fördern aktiv das fair-code-Modell, damit die Menschen es als unkomplizierte, nachhaltige Möglichkeit erkennen, Software wie PLANKA zu teilen und zu verbessern. + +### Mein Unternehmen hat eine Richtlinie gegen die Verwendung von Code, der die kommerzielle Nutzung einschränkt - kann ich PLANKA trotzdem nutzen? + +Vorausgesetzt, Sie nutzen PLANKA für interne Geschäftszwecke und stellen PLANKA nicht Ihren Kunden oder Partnern zur Verfügung, so sollten Sie natürlich auch PLANKA nutzen können. Wenn Sie sich nicht sicher sind, ob der von Ihnen ins Auge gefasste Anwendungsfall einen internen Geschäftszweck darstellt oder nicht, werfen Sie einen Blick auf die [Beispiele oben](#können-sie-mir-einige-schnelle-beispiele-geben-um-kostenlose-nutzung-vs-unternehmensnutzung-zu-verdeutlichen), und wenn Sie immer noch unsicher sind, schreiben Sie uns eine E-Mail an [license@planka.group](mailto:license@planka.group). + +### Was passiert mit Code, den ich zu PLANKA beitrage, in Bezug auf seine "Fair Use Lizenz"? + +Jeder Code, den Sie auf GitHub beitragen, unterliegt GitHubs [Nutzungsbedingungen](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service#d_user_generated_content). Einfach ausgedrückt bedeutet dies, dass Sie alles, was Sie beitragen, besitzen und dafür verantwortlich sind, dass Sie jedoch anderen GitHub-Benutzern bestimmte Rechte zur Nutzung dieses Codes einräumen. Wenn Sie Code zu einem Repository beitragen, das einen Hinweis auf eine Lizenz enthält, lizenzieren Sie den Code unter denselben Bedingungen. + +PLANKA bittet jeden Mitwirkenden, unsere [Contributor License Agreement](https://github.com/plankanban/planka/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.md) zu unterzeichnen. Zusätzlich zu den oben genannten Punkten gibt dies PLANKA die Möglichkeit, seine Lizenz zu ändern, ohne zusätzliche Genehmigung einzuholen. Es bedeutet auch, dass Sie nicht für Ihre Beiträge haftbar sind (z.B. falls sie den Geschäftsbetrieb einer anderen Person schädigen sollten). + +Es ist einfach, mit den Code-Beiträgen zu PLANKA auf [GitHub](https://github.com/plankanban) zu beginnen, und wir haben weitere Möglichkeiten zur Teilnahme an unserer Community [hier](https://github.com/plankanban/planka/blob/master/CONTRIBUTING.md) aufgelistet. + +### Ist PLANKA Open Source? + +PLANKAs Quellcode ist unter unserer "Fair Use Lizenz" frei verfügbar. Während dies nicht mit der strengen Definition der Open Source Initiative übereinstimmt (die keine Nutzungsbeschränkungen erlaubt), bietet PLANKA den meisten Benutzern, einschließlich Unternehmen, dennoch fast die selben Vorteile wie traditionelle Open-Source-Software. + +Wir befürworten, was oft als 'fair-code'-Modell bezeichnet wird - unser Code ist quelloffen und folgt einer einfachen "Leben und leben lassen"-Philosophie. Dieser Ansatz ermöglicht es uns, ein nachhaltiges Unternehmen zu führen und gleichzeitig Transparenz und Flexibilität für unsere Community zu bieten. Viele Unternehmen übernehmen diesen ausgewogenen Lizenzierungsansatz, der den Geist der Offenheit bewahrt und gleichzeitig die langfristige Lebensfähigkeit des Projekts sicherstellt. Wir sind stolz darauf, Teil dieser Bewegung zu sein! + +### Was ist fair-code, und wie verhält sich die "Fair Use Lizenz" dazu? + +Fair-code ist keine Softwarelizenz. Es beschreibt ein Softwaremodell, bei dem Software: + +- Allgemein frei verfügbar ist und von jedermann verbreitet werden kann. + +- Ihren Quellcode öffentlich verfügbar hat. + +- Von jedermann in öffentlichen und privaten Gemeinschaften erweitert werden kann. + +- Von ihren Autoren kommerziell eingeschränkt wird. + +Unsere "Fair Use Lizenz" ist eine fair-code-Lizenz. Sie können mehr darüber lesen und andere Beispiele für fair-code-Lizenzen [hier](https://faircode.io) sehen. Um mit uns bzgl. Lizenzfragen in Verbindung zu treten, senden Sie bitte eine E-Mail an [license@planka.group](mailto:license@planka.group). + +### Kann ich diese Art der Lizenz für mein eigenes Projekt verwenden? + +Ja! Wir selbst haben die "Fair Use Lizenz" genutzt, indem wir den Fußstapfen anderer folgten, die auf ihrer Website und in ihrer Lizenz offen andere dazu einladen, dem fair-code-Pfad zu folgen. Und auch wir sind gespannt darauf, mehr Software zu sehen, die unsere "Fair Use Lizenz" verwendet. diff --git a/LICENSES/PLANKA License Guide EN.md b/LICENSES/PLANKA License Guide EN.md new file mode 100644 index 00000000..7e77f3cd --- /dev/null +++ b/LICENSES/PLANKA License Guide EN.md @@ -0,0 +1,181 @@ +**PLANKA License Guide** + +Version 1.0 - Last updated: May 2, 2025 + +Related files in English: +- [PLANKA Community License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) +- [PLANKA Enterprise License EN.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) +- PLANKA License Guide EN.md (this file) + +Related files in German: +- [PLANKA Community License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20DE.md) +- [PLANKA Enterprise License DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20DE.md) +- [PLANKA License Guide DE.md](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20DE.md) + +--- + +## PLANKA's "Fair Use License" and the "PLANKA Enterprise License" + +Our [Fair Use License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) and our [PLANKA Enterprise License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md) are based on the [fair-code](http://faircode.io) model. + +#### Proprietary licenses for enterprise and the "PLANKA Educational License" + +We offer proprietary licenses to our enterprise customers, but also the "PLANKA Educational License" for schools and universities. Please contact us for detailed information at [license@planka.group](mailto:license@planka.group). + +# License FAQs + +### What license do you use for PLANKA? + +PLANKA uses the [Fair Use License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) and the [PLANKA Enterprise License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md). These licenses are based on the [fair-code](http://faircode.io) model. + +### What source code is covered by the PLANKA's "Fair Use License"? + +The [Fair Use License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) applies to our source code hosted in our [main GitHub repository](https://github.com/plankanban/planka) except: + +* Content of branches other than the main branch (usually "master" or "main"). + +* Source code files or other files that contain ".pe." (for "PLANKA Enterprise") in their file names or folder names. + +* Source code files that are marked as "PLANKA Enterprise" in their file headers or folders. + +* Source code in folders that contain separate license files that clearly mark them as "PLANKA Enterprise". + +These exceptions are licensed under the [PLANKA Enterprise License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md). + +### What is the "Fair Use License"? + +The "Fair Use License" falls under the so-called [fair-code](http://faircode.io) licenses category. PLANKA's license is based on and extends the "Sustainable Use License" introduced by [n8n](https://n8n.io) who's advice was greatly appreciated. With similar goals in mind, we decided to follow their lead and adopt their model for our own needs. [Further below](#why-did-you-choose-this-license) you can read why we chose this license. + +The license allows you the free right to use, modify, create derivative works, and redistribute with three limitations: + +- You may use or modify the software (a) for personal, hobby, or educational purposes, or (b) inside your own legal entity (including wholly owned subsidiaries) for workflows that are not offered as a paid product or as a cross-company service to any third party. + +- You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +- "You may use the PLANKA name or logo to factually describe that your service incorporates or in other ways uses PLANKA software. Any other trademark use (e.g., in product names or brands, domain names, or marketing material) requires our prior written consent." + +### What is and is NOT allowed under the license in the context of PLANKA's products? + +Our license restricts use to "internal business purposes". In practice this means all use is allowed unless you are selling a product, service, or module in which the value derives entirely or substantially from PLANKA functionality. + +###### Here are some examples that would not be allowed: + +- White-labeling PLANKA and offering it to your customers or affiliates for money. + +- Hosting PLANKA and charging people money to access it. + +- Use PLANKA's API to power services for which money is charged. + +- Use of PLANKA to connect your own legal entity with legal entities or persons outside your own legal entity. + +- Use PLANKA to conduct or support any kind of illegal or unlawful activity. + +###### All of the following examples are allowed under our license: + +- Using PLANKA to control your internal processes and manage your internal projects. + +- Integrate PLANKA into other internally used products to enhance their capabilities. + +- Providing consulting or educational services related to PLANKA, for example, to build or integrate workflows for or in connection with PLANKA or develop custom modules to extend its functionalities. + +- Supporting PLANKA, for example, by setting it up or maintaining it on an internal company server. + +### Is it allowed to use PLANKA as a backend integration? + +If you use PLANKA and its backend and related services outside the boundaries of internal operations and integrations within your own organization, you need to buy a "PLANKA Enterprise License". This also applies if you want to use PLANKA as a core backend infrastructure for third-party applications, services, or a system that is distributed to or accessed by external parties. + +Any arrangement that involves sublicensing, repackaging, or otherwise making PLANKA available to external parties or integrating PLANKA into another product to serve as the primary operational engine for that product also requires a valid "PLANKA Enterprise License" or proprietary license available for our enterprise customers. + +### Can you give me some quick examples to clarify free use vs. enterprise use? + +--- + +##### Example 1: Use PLANKA's API to control or respond to fabrication machinery processes + +Use our API to show and control the feedback coming from fabrication steps inside your company or to control production line events by moving cards. + +**ALLOWED** under the "Fair Use License". You can integrate PLANKA into your other systems to use its API to control your internal processes. + +##### Example 2: Offer commercial consulting or support services + +You provide a service to your client to help them implement new workflows and board concepts into the PLANKA setup. + +**ALLOWED** under the "Fair Use License". You are free to offer commercial consulting or integration and support services for PLANKA without the need for a separate license agreement with us. + +##### Example 3: Bundle PLANKA in a free and public Docker image + +A school or charity bundles PLANKA in a free, public Docker image for students who want to use PLANKA to organize their fields of study. + +**ALLOWED** under the "Fair Use License". Since PLANKA is given away for free and without commercial revenues in mind, you are more than welcome to allow charitable entities and schools better access to PLANKA. + +**HOWEVER** if you also plan to provide students access to an otherwise school's internal PLANKA instance, this would require our "PLANKA Educational License", which we will gladly offer on request. + +##### Example 4: Provide PLANKA logins to clients and affiliates + +To facilitate better project feedback, you offer your client and someone from a joint venture access to project boards inside your company. They can now comment on cards and also benefit from PLANKA's real-time update capabilities. + +**NOT ALLOWED** under the "Fair Use License". Offering PLANKA as part of a paid service to third parties or providing PLANKA access to third-party users outside your own legal entity requires you to register a "PLANKA Enterprise License". + +##### Example 5: Offer PLANKA as a hosted product to other companies + +You want to earn money by providing PLANKA to companies, freelancers, and other people. This way they have easy access to project management and control from everywhere. + +**NOT ALLOWED** under the "Fair Use License". Selling PLANKA-based services requires you to agree to a "PLANKA Reseller License". We have a special hosting agreement for those who want to provide paid PLANKA service to customers or simply act as resellers for our own "PLANKA Corporate Hosting Services". + +--- + +### What if I want to use PLANKA for something that's not permitted by the license? + +You must sign a separate commercial agreement with us. We actively encourage software integrators and technical staff to integrate and connect PLANKA within their other products and use our extensive API to respond to, control, and master processes within their company; we just ask them to sign an agreement laying out the terms of use and the license fees required by PLANKA for using the product. Through PLANKA's API, it is capable of controlling and responding to external systems. You can learn more [here](https://docs.planka.cloud/docs/category/api-reference) or contact us about it. + +If you are unsure whether the use case you have in mind constitutes an internal business purpose or not, take a look at the [examples above](#can-you-give-me-some-quick-examples-to-clarify-free-use-vs-enterprise-use), and if you're still not sure, please contact us at [license@planka.group](mailto:license@planka.group). + +### Why don't you use a default open-source license? + +We spend a lot of time creating an easy yet powerful tool that makes controlling and mastering projects a fun experience. Also, we wanted PLANKA to be as widely and freely available as possible while also ensuring that we can build a sustainable and viable business. By making our product free to use, easy to distribute, and source-available, we help everyone access the product. By operating as a business, we can develop and release new features, fix bugs, and provide reliable software at scale long-term. + +### Why did you choose this license? + +We believe that the "Fair Use License" is beneficial for the community as well as for the developers. Development is a costly enterprise, and giving away a community version for free is a risk that many companies don't survive without selling software or the company. Therefore, many open-source companies live from donations or financial investors. Instead of selling our soul, we sell services and software licenses. This way we continue to grow, code, and support our community. So the short answer is "Live and let live" is how we feel about PLANKA. + +Therefore, we are helping to promote [fair-code](https://faircode.io) software with the goal of making it a well-known umbrella term to describe software models like ours. To keep any friction around our proprietary license to an absolute minimum, we focus on two things: + +1. Plain language, minimal length - the license is written in clear, concise English (a German version exists as well), with only the clauses absolutely needed. + +2. Advocating fair-code - we actively promote the fair-code model so people recognize it as a straightforward, sustainable way to share and improve software like PLANKA. + +### My company has a policy against using code that restricts commercial use - can I still use PLANKA? + +Provided you are using PLANKA for internal business purposes and not making PLANKA available to your customers or affiliates, then of course you should be able to use PLANKA. If you are unsure whether the use case you have in mind constitutes an internal business purpose or not, take a look at the [examples above](#can-you-give-me-some-quick-examples-to-clarify-free-use-vs-enterprise-use), and if you're still unclear, email us at [license@planka.group](mailto:license@planka.group). + +### What happens to code I contribute to PLANKA in regard to its "Fair Use License"? + +Any code you contribute on GitHub is subject to GitHub's [terms of use](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service#d_user_generated_content). In simple terms, this means you own and are responsible for anything you contribute, but that you grant other GitHub users certain rights to use this code. When you contribute code to a repository containing notice of a license, you license the code under the same terms. + +PLANKA asks every contributor to sign our [Contributor License Agreement](https://github.com/plankanban/planka/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.md). In addition to the above, this gives PLANKA the ability to change its license without seeking additional permission. It also means you aren't liable for your contributions (e.g., in case they cause damage to someone else's business). + +It's easy to get started contributing code to PLANKA on [GitHub](https://github.com/plankanban), and we've listed broader ways of participating in our community [here](https://github.com/plankanban/planka/blob/master/CONTRIBUTING.md). + +### Is PLANKA open source? + +PLANKA's source code is freely available under the "Fair Use License". While this doesn't align with the Open Source Initiative's strict definition (which doesn't allow any use limitations), PLANKA still offers nearly all the same benefits as traditionally open-source software to most users, including corporations. + +We embrace what's often called the 'fair-code' model - our code is source-available and follows a simple "Live and let live" philosophy. This approach allows us to maintain a sustainable company while still providing transparency and flexibility to our community. Many companies are adopting this balanced licensing approach that preserves the spirit of openness while ensuring the project's long-term viability. We're proud to be part of this movement! + +### What is fair-code, and how does the "Fair Use License" relate to it? + +Fair-code is not a software license. It describes a software model where software: + +- Is generally free to use and can be distributed by anyone. + +- Has its source code openly available. + +- Can be extended by anyone in public and private communities. + +- Is commercially restricted by its authors. + +The "Fair Use License" is a fair-code license. You can read more about it and see other examples of fair-code licenses [here](https://faircode.io). To get in touch with us about license questions, please email [license@planka.group](mailto:license@planka.group). + +### Can I use the "Fair Use License" for my own project? + +Yes! We ourselves made use of the "Fair Use License" by following others' footsteps who openly invite others on their website and in their license to follow the fair code path. Like them, we're excited to see more software use the "Fair Use License". diff --git a/README.md b/README.md index c96e9c4c..e824b9c9 100644 --- a/README.md +++ b/README.md @@ -1,63 +1,55 @@ -# Planka -#### Elegant open source project tracking. +# PLANKA -![David (path)](https://img.shields.io/github/package-json/v/plankanban/planka) ![Docker Pulls](https://img.shields.io/badge/docker_pulls-5M%2B-%23066da5) ![GitHub](https://img.shields.io/github/license/plankanban/planka) +**Project mastering driven by fun** -![](https://raw.githubusercontent.com/plankanban/planka/master/demo.gif) +![Version](https://img.shields.io/github/package-json/v/plankanban/planka?style=flat-square) ![Docker Pulls](https://img.shields.io/badge/docker_pulls-5M%2B-%23066da5?style=flat-square&color=%23e05d44) ![Contributors](https://img.shields.io/github/contributors/plankanban/planka?style=flat-square) + +![Demo](https://raw.githubusercontent.com/plankanban/planka/master/assets/demo.gif) [**Client demo**](https://plankanban.github.io/planka) (without server features). -## Features +## Key Features -- Create projects, boards, lists, cards, labels and tasks -- Add card members, track time, set due dates, add attachments, write comments -- Markdown support in card description and comments -- Filter by members and labels -- Customize project backgrounds -- Real-time updates -- Internal notifications -- Multiple interface languages -- Single sign-on via OpenID Connect +- **Collaborative Kanban Boards**: Create projects, boards, lists, cards, and manage tasks with an intuitive drag-and-drop interface +- **Real-Time Updates**: Instant syncing across all users, no refresh needed +- **Rich Markdown Support**: Write beautifully formatted card descriptions with a powerful markdown editor +- **Flexible Notifications**: Get alerts through 140+ providers, fully customizable to your workflow +- **Seamless Authentication**: Single sign-on with OpenID Connect integration +- **Multilingual & Easy to Translate**: Full internationalization support for a global audience -## How to deploy Planka +## How to Deploy -There are many ways to install Planka, [check them out](https://docs.planka.cloud/docs/welcome/). +PLANKA is easy to install using multiple methods - learn more in the [installation guide](https://docs.planka.cloud/docs/welcome/). -For configuration, please see the [configuration section](https://docs.planka.cloud/docs/category/configuration/). - -## Mobile app - -Here is the [mobile app repository](https://github.com/LouisHDev/planka_app) maintained by the community, where you can build an app for iOS and Android. - -Alternatively, you can download the [Android APK](https://github.com/LouisHDev/planka_app/releases/latest/download/app-release.apk) directly. - -If you have an iOS device and would like to test the app, you can join [TestFlight](https://testflight.apple.com/join/Uwn41eY4) (limited to 200 participants). - -## Planka postman api - -For external access api use [postman](https://documenter.getpostman.com/view/3360622/2sB2cRCPpU#3caa89a9-995d-4c17-b4ae-5cd136bb713f). +For configuration and environment settings, see the [configuration section](https://docs.planka.cloud/docs/category/configuration/). ## Contact -- If you want to get a hosted version of Planka, you can contact us via email contact@planka.cloud -- For any security issues, please do not create a public issue on GitHub, instead please write to security@planka.cloud +Interested in a hosted version of PLANKA? Email us at [github@planka.group](mailto:github@planka.group). -We do NOT offer any public support via email, please use GitHub. +For any security issues, please do not create a public issue on GitHub - instead, report it privately by emailing [security@planka.group](mailto:security@planka.group). -## Development +**Note:** We do NOT offer any public support via email, please use GitHub. -See the [development section](https://docs.planka.cloud/docs/category/development/). - -## Tech stack - -- React, Redux, Redux-Saga, Redux-ORM, Semantic UI React, react-beautiful-dnd -- Sails.js, Knex.js -- PostgreSQL +**Join our community:** Get help, share ideas, or contribute on our [Discord server](https://discord.gg/WqqYNd7Jvt). ## License -Planka is [AGPL-3.0 licensed](https://github.com/plankanban/planka/blob/master/LICENSE). +PLANKA is [fair-code](https://faircode.io) distributed under the [Fair Use License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Community%20License%20EN.md) and [PLANKA Enterprise License](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20Enterprise%20License%20EN.md). -## Contributors +- **Source Available**: The source code is always visible +- **Self-Hostable**: Deploy and host it anywhere +- **Extensible**: Customize with your own functionality +- **Enterprise Licenses**: Available for additional features and support -[![](https://contrib.rocks/image?repo=plankanban/planka)](https://github.com/plankanban/planka/graphs/contributors) +For more details, check the [License Guide](https://github.com/plankanban/planka/blob/master/LICENSES/PLANKA%20License%20Guide%20EN.md). + +## Contributing + +Found a bug or have a feature request? Check out our [Contributing Guide](https://github.com/plankanban/planka/blob/master/CONTRIBUTING.md) to get started. + +For setting up the project locally, see the [development section](https://docs.planka.cloud/docs/category/development/). + +**Thanks to all our contributors!** + +[![Contributors](https://contrib.rocks/image?repo=plankanban/planka)](https://github.com/plankanban/planka/graphs/contributors) diff --git a/SECURITY.md b/SECURITY.md index ad58aa33..e1fa6245 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,7 +6,7 @@ Most recent release. ## Reporting a Vulnerability -Please report any security issues you discovered to security@planka.cloud. If the issue is confirmed, we will release a patch as soon as possible depending on complexity. +Please report any security issues you discovered to [security@planka.group](mailto:security@planka.group). If the issue is confirmed, we will release a patch as soon as possible depending on complexity. **Do NOT create public issues on GitHub for security vulnerabilities.** diff --git a/demo.gif b/assets/demo.gif similarity index 100% rename from demo.gif rename to assets/demo.gif diff --git a/charts/planka/Chart.lock b/charts/planka/Chart.lock index 41033378..6cb97309 100644 --- a/charts/planka/Chart.lock +++ b/charts/planka/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: postgresql repository: https://charts.bitnami.com/bitnami - version: 12.5.1 -digest: sha256:01dfb2d07ab6800b4a5a6c81f20f3377a758124b2b96b891d0cd6b4f64cf783b -generated: "2023-05-15T00:54:48.1308917+01:00" + version: 16.6.6 +digest: sha256:b52a26ab3fb7ec9415c7e4ab2e8676d964830d71708bffbf975e10b31bbb2cb1 +generated: "2025-04-25T17:38:31.821861+02:00" diff --git a/charts/planka/Chart.yaml b/charts/planka/Chart.yaml index 059a9293..2ac17a0c 100644 --- a/charts/planka/Chart.yaml +++ b/charts/planka/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: planka -description: A Helm chart to deploy Planka and it's dependencies. +description: A Helm chart to deploy PLANKA and it's dependencies. # A chart can be either an 'application' or a 'library' chart. # @@ -15,17 +15,17 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.25 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.26.2" +appVersion: "2.0.0-rc.2" dependencies: - alias: postgresql condition: postgresql.enabled name: postgresql repository: &bitnami-repo https://charts.bitnami.com/bitnami - version: 12.5.1 + version: 16.6.6 diff --git a/charts/planka/README.md b/charts/planka/README.md index 97b2cce6..cb11a3f4 100644 --- a/charts/planka/README.md +++ b/charts/planka/README.md @@ -1,8 +1,8 @@ -# Planka Helm Chart +# PLANKA Helm Chart -[Planka](https://github.com/plankanban/planka) is an OSS alternative to Trello that you can host yourself, and this is a Helm Chart to make it easier to deploy to K8s. +This Helm Chart simplifies the deployment of [PLANKA](https://github.com/plankanban/planka) on Kubernetes. -Shoutout to [this issue](https://github.com/plankanban/planka/issues/192) who have been asking for this Helm Chart. +Shoutout to [this issue](https://github.com/plankanban/planka/issues/192) for requesting a Helm Chart! ## Issues @@ -32,9 +32,9 @@ helm install planka . --set secretkey=$SECRETKEY \ --set admin_username="demo" ``` -> **NOTE:** The command `openssl rand -hex 64` is needed to create a random hexadecimal key for planka. On Windows you can use Git Bash to run that command. +> **Note:** The command `openssl rand -hex 64` is needed to create a random hexadecimal key for planka. On Windows you can use Git Bash to run that command. -To access Planka you can port forward using the following command: +To access PLANKA you can port forward using the following command: ```bash kubectl port-forward $POD_NAME 3000:1337 @@ -42,7 +42,7 @@ kubectl port-forward $POD_NAME 3000:1337 ### Accessing Externally -To access Planka externally you can use the following configuration +To access PLANKA externally you can use the following configuration ```bash # HTTP only @@ -70,7 +70,7 @@ or create a values.yaml file like: ```yaml secretkey: "" -# The admin section needs to be present for new instances of Planka, after the first start you can remove the lines starting with admin_. If you want the admin user to be unchangeable admin_email: has to stay +# The admin section needs to be present for new instances of PLANKA, after the first start you can remove the lines starting with admin_. If you want the admin user to be unchangeable admin_email: has to stay # After changing the config you have to run ```helm upgrade planka . -f values.yaml``` # Admin user @@ -102,7 +102,7 @@ helm install planka . -f values.yaml ### Things to consider if production hosting -If you want to host Planka for more than just playing around with, you might want to do the following things: +If you want to host PLANKA for more than just playing around with, you might want to do the following things: - Create a `values.yaml` with your config, as this will make applying upgrades much easier in the future. - Create your `secretkey` once and store it either in a secure vault, or in your `values.yaml` file so it will be the same for upgrading in the future. diff --git a/charts/planka/templates/deployment.yaml b/charts/planka/templates/deployment.yaml index 47fa5020..0c8ae9ae 100644 --- a/charts/planka/templates/deployment.yaml +++ b/charts/planka/templates/deployment.yaml @@ -50,11 +50,14 @@ spec: path: / port: http volumeMounts: + - mountPath: /app/public/favicons + subPath: favicons + name: planka - mountPath: /app/public/user-avatars subPath: user-avatars name: planka - - mountPath: /app/public/project-background-images - subPath: project-background-images + - mountPath: /app/public/background-images + subPath: background-images name: planka - mountPath: /app/private/attachments subPath: attachments diff --git a/charts/planka/values.yaml b/charts/planka/values.yaml index 03e57a7b..c3d695b8 100644 --- a/charts/planka/values.yaml +++ b/charts/planka/values.yaml @@ -27,7 +27,7 @@ existingSecretkeySecret: "" ## NOTE: When it's set, the `admin_username` and `admin_password` parameters are ignored existingAdminCredsSecret: "" -# Base url for Planka. Will override `ingress.hosts[0].host` +# Base url for PLANKA. Will override `ingress.hosts[0].host` # Defaults to `http://localhost:3000` if ingress is disabled. baseUrl: "" @@ -57,7 +57,7 @@ service: annotations: {} type: ClusterIP port: 1337 - ## @param service.containerPort Planka HTTP container port + ## @param service.containerPort PLANKA HTTP container port ## If empty will default to 1337 ## containerPort: 1337 @@ -176,7 +176,7 @@ oidc: ## @param oidc.scopes A list of scopes required for OIDC client. ## If empty will default to `openid`, `profile` and `email` - ## NOTE: Planka needs the email and name claims + ## NOTE: PLANKA needs the email and name claims ## scopes: [] diff --git a/client/.gitignore b/client/.gitignore index 4d29575d..a547bf36 100755 --- a/client/.gitignore +++ b/client/.gitignore @@ -1,23 +1,24 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - +# Logs +logs +*.log npm-debug.log* yarn-debug.log* yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/client/README.md b/client/README.md deleted file mode 100755 index d1ee58fe..00000000 --- a/client/README.md +++ /dev/null @@ -1 +0,0 @@ -# Planka client diff --git a/client/config-overrides.js b/client/config-overrides.js deleted file mode 100644 index 2ea9da5d..00000000 --- a/client/config-overrides.js +++ /dev/null @@ -1,58 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -const BASE_URL_PLACEHOLDER = 'BASE_URL_PLACEHOLDER'; - -const replaceInFile = (file, search, replace) => { - fs.readFile(file, 'utf8', (readError, data) => { - if (readError) { - throw new Error(`${readError}`); - } - const res = data.replaceAll(search, replace); - fs.writeFile(file, res, 'utf8', (writeError) => { - if (writeError) { - throw new Error(`${writeError}`); - } - }); - }); -}; - -const replaceBaseUrl = (compiler) => { - compiler.hooks.assetEmitted.tap('ReplaceBaseUrlPlaceholder', (file, info) => { - if (info.content.indexOf(BASE_URL_PLACEHOLDER) >= 0) { - if (/\.css$/.exec(info.targetPath)) { - // For CSS 'url(...)' import we can use relative import - const relPath = path - .relative(path.dirname(info.targetPath), info.outputPath) - .replace(/\\/g, '/'); - replaceInFile(info.targetPath, BASE_URL_PLACEHOLDER, `${relPath}/`); - } else if (/\.js$/.exec(info.targetPath)) { - // For JS 'import ... from "some-asset"' we can get the variable injected in the window object - // eslint-disable-next-line no-template-curly-in-string - replaceInFile(info.targetPath, `"${BASE_URL_PLACEHOLDER}"`, '`${window.BASE_URL}/`'); - } else if (/index\.html$/.exec(info.targetPath)) { - // For the main html file, we set a placeholder for sails to inject the correct value as runtime - replaceInFile(info.targetPath, BASE_URL_PLACEHOLDER, '<%= BASE_URL %>'); - } - } - }); -}; - -module.exports = function override(config, env) { - if (env === 'production') { - const plugins = config.plugins.map((plugin) => { - if (plugin.constructor.name === 'InterpolateHtmlPlugin') { - const newPlugin = plugin; - newPlugin.replacements.PUBLIC_URL = BASE_URL_PLACEHOLDER; - return newPlugin; - } - return plugin; - }); - return { - ...config, - output: { ...config.output, publicPath: BASE_URL_PLACEHOLDER }, - plugins: [...plugins, { apply: replaceBaseUrl }], - }; - } - return config; -}; diff --git a/client/index.html b/client/index.html new file mode 100644 index 00000000..5cdaf8ec --- /dev/null +++ b/client/index.html @@ -0,0 +1,18 @@ + + + + + + + + PLANKA + + + + + + +
+ + + diff --git a/client/package-lock.json b/client/package-lock.json index 8188ba1b..a897008c 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -5,90 +5,108 @@ "packages": { "": { "name": "planka-client", + "hasInstallScript": true, "dependencies": { + "@ballerina/highlightjs-ballerina": "^1.0.1", + "@diplodoc/cut-extension": "^0.7.3", + "@diplodoc/transform": "^4.57.2", + "@gravity-ui/markdown-editor": "^15.11.0", + "@gravity-ui/uikit": "^7.11.0", "@juggle/resize-observer": "^3.4.0", + "@vitejs/plugin-react": "^4.4.1", + "browserslist-to-esbuild": "^2.1.1", "classnames": "^2.5.1", "date-fns": "^2.30.0", "dequal": "^2.0.3", - "easymde": "^2.18.0", + "highlight.js": "^11.11.1", + "highlightjs-4d": "^1.0.6", + "highlightjs-alan": "^0.0.2", + "highlightjs-apex": "^1.5.0", + "highlightjs-blade": "^0.1.0", + "highlightjs-cobol": "^0.3.3", + "highlightjs-cshtml-razor": "^2.1.1", + "highlightjs-gf": "^1.0.1", + "highlightjs-jolie": "^0.1.8", + "highlightjs-lean": "^1.2.0", + "highlightjs-lookml": "^1.0.2", + "highlightjs-macaulay2": "^0.2.5", + "highlightjs-mlir": "^0.0.1", + "highlightjs-qsharp": "^1.0.2", + "highlightjs-redbol": "^2.1.2", + "highlightjs-rpm-specfile": "^1.0.0", + "highlightjs-sap-abap": "^0.3.0", + "highlightjs-solidity": "^2.0.6", + "highlightjs-supercollider": "^1.0.0", + "highlightjs-svelte": "^1.0.6", + "highlightjs-xsharp": "^1.0.0", + "highlightjs-zenscript": "^2.0.0", + "hightlightjs-papyrus": "^0.0.4", "history": "^5.3.0", - "i18next": "23.15.2", - "i18next-browser-languagedetector": "^8.0.0", + "i18next": "^23.16.8", + "i18next-browser-languagedetector": "^8.1.0", "initials": "^3.1.2", + "javascript-time-ago": "^2.5.11", "js-cookie": "^3.0.5", "jwt-decode": "^4.0.0", - "linkify-react": "^4.1.4", - "linkifyjs": "^4.1.4", + "linkify-react": "^4.3.1", + "linkifyjs": "^4.3.1", "lodash": "^4.17.21", - "nanoid": "^5.0.9", - "node-sass": "^9.0.0", + "lowlight": "^3.3.0", + "markdown-it": "^13.0.2", + "nanoid": "^5.1.5", + "patch-package": "^8.0.0", "photoswipe": "^5.4.4", "prop-types": "^15.8.1", "react": "18.2.0", - "react-app-rewired": "^2.2.1", "react-beautiful-dnd": "^13.1.1", "react-datepicker": "^4.25.0", "react-dom": "18.2.0", - "react-dropzone": "^14.3.5", - "react-i18next": "^15.1.1", + "react-dropzone": "^14.3.8", + "react-frame-component": "^5.2.7", + "react-hot-toast": "^2.5.2", + "react-i18next": "^15.5.1", "react-input-mask": "^2.0.4", - "react-markdown": "^8.0.7", + "react-intersection-observer": "^9.16.0", "react-photoswipe-gallery": "^2.2.7", "react-redux": "^8.1.3", - "react-router-dom": "^6.28.0", - "react-scripts": "5.0.1", - "react-simplemde-editor": "^5.2.0", - "react-textarea-autosize": "^8.5.5", + "react-router-dom": "^6.30.0", + "react-textarea-autosize": "^8.5.9", + "react-time-ago": "^7.3.3", "redux": "^4.2.1", "redux-logger": "^3.0.6", "redux-orm": "^0.16.2", "redux-saga": "^1.3.0", - "remark-breaks": "^4.0.0", - "remark-gfm": "^3.0.1", "reselect": "^4.1.8", "sails.io.js": "^1.2.1", + "sass-embedded": "^1.87.0", "semantic-ui-react": "^2.1.5", "socket.io-client": "^2.5.0", - "validator": "^13.12.0", - "whatwg-fetch": "^3.6.20", + "validator": "^13.15.0", + "vite": "^5.4.19", + "vite-plugin-commonjs": "^0.10.4", + "vite-plugin-node-polyfills": "^0.23.0", + "vite-plugin-svgr": "^4.3.0", "zxcvbn": "^4.4.2" }, "devDependencies": { - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@cucumber/cucumber": "^7.3.2", + "@babel/eslint-parser": "^7.27.1", + "@babel/preset-env": "^7.27.2", + "@cucumber/cucumber": "^11.2.0", "@cucumber/pretty-formatter": "^1.0.1", - "@playwright/test": "^1.49.0", - "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^15.0.7", - "@testing-library/user-event": "^14.5.2", - "axios": "^1.8.2", + "@playwright/test": "^1.52.0", + "babel-jest": "^29.7.0", "babel-preset-airbnb": "^5.0.0", - "chai": "^4.5.0", - "eslint": "8.57.0", + "eslint": "^8.57.1", "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", - "eslint-plugin-react": "^7.37.2", + "eslint-plugin-prettier": "^5.4.0", + "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^4.6.2", - "playwright": "^1.49.0", - "react-test-renderer": "18.2.0" - } - }, - "node_modules/@adobe/css-tools": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.1.tgz", - "integrity": "sha512-12WGKBQzjUAI4ayyF4IAtfw2QR/IDoqk6jTddXDhtYTJF9ASmoE1zst7cVtP0aL/F1jUJL5r+JxKXKEgHNbEUQ==", - "dev": true - }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "jest": "^29.7.0", + "playwright": "^1.52.0", + "prettier": "3.3.3" } }, "node_modules/@ampproject/remapping": { @@ -104,41 +122,41 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", - "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", + "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" + "picocolors": "^1.1.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.2.tgz", - "integrity": "sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.2.tgz", + "integrity": "sha512-TUtMJYRPyUb/9aU8f3K0mjmjf6M9N5Woshn2CS6nqJSeJtTtQcpLUXjGt9vbF8ZGff0El99sWkLgzwW3VXnxZQ==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", - "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.1.tgz", + "integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.26.0", - "@babel/generator": "^7.26.0", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-module-transforms": "^7.26.0", - "@babel/helpers": "^7.26.0", - "@babel/parser": "^7.26.0", - "@babel/template": "^7.25.9", - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.26.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.1", + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helpers": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/template": "^7.27.1", + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -154,9 +172,10 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.25.9.tgz", - "integrity": "sha512-5UXfgpK0j0Xr/xIdgdLEhOFxaDZ0bRPWJJchRpqOSur/3rZoPbqqki5mm0p4NE2cs28krBEiSM2MB7//afRSQQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.27.1.tgz", + "integrity": "sha512-q8rjOuadH0V6Zo4XLMkJ3RMQ9MSBqwaDByyYB0izsYdaIWGNLmEblbCOf1vyFHICcg16CD7Fsi51vcQnYxmt6Q==", + "dev": true, "dependencies": { "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", "eslint-visitor-keys": "^2.1.0", @@ -170,21 +189,13 @@ "eslint": "^7.5.0 || ^8.0.0 || ^9.0.0" } }, - "node_modules/@babel/eslint-parser/node_modules/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==", - "engines": { - "node": ">=10" - } - }, "node_modules/@babel/generator": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.2.tgz", - "integrity": "sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.1.tgz", + "integrity": "sha512-UnJfnIpc/+JO0/+KRVQNGU+y5taA5vCbwN8+azkX6beii/ZF+enZJSOKo11ZSzGJjlNfJHfQtmQT8H+9TXPG2w==", "dependencies": { - "@babel/parser": "^7.26.2", - "@babel/types": "^7.26.0", + "@babel/parser": "^7.27.1", + "@babel/types": "^7.27.1", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^3.0.2" @@ -194,35 +205,24 @@ } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", - "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.1.tgz", + "integrity": "sha512-WnuuDILl9oOBbKnb4L+DyODx7iC47XfzmNCpTttFsSp6hTG7XZxu60+4IO+2/hPfcGOoKbFiwoI/+zwARbNQow==", + "dev": true, "dependencies": { - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.25.9.tgz", - "integrity": "sha512-C47lC7LIDCnz0h4vai/tpNOI95tCd5ZT3iBt/DBH5lXKHZsyNQv18yf1wIIg2ntiQNgmAvA+DgZ82iW8Qdym8g==", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", - "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", "dependencies": { - "@babel/compat-data": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -232,16 +232,17 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz", - "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.27.1.tgz", + "integrity": "sha512-QwGAmuvM17btKU5VqXfb+Giw4JcN0hjuufz3DYnpeVDvZLAObloM77bhMXiqry3Iio+Ai4phVRDwl6WU10+r5A==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-member-expression-to-functions": "^7.25.9", - "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/traverse": "^7.25.9", + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.27.1", "semver": "^6.3.1" }, "engines": { @@ -252,12 +253,13 @@ } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.9.tgz", - "integrity": "sha512-ORPNZ3h6ZRkOyAa/SaHU+XsLZr0UQzRwuDQ0cczIA17nAzZ+85G5cVkOJIj7QavLZGSe8QXUmNFxSZzjcZF9bw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.27.1.tgz", + "integrity": "sha512-uVDC72XVf8UbrH5qQTc18Agb8emwjTiZrQE11Nv3CuBEZmVvTwwE9CBUEvHku06gQCAyYf8Nv6ja1IN+6LMbxQ==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "regexpu-core": "^6.1.1", + "@babel/helper-annotate-as-pure": "^7.27.1", + "regexpu-core": "^6.2.0", "semver": "^6.3.1" }, "engines": { @@ -268,9 +270,10 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", - "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.4.tgz", + "integrity": "sha512-jljfR1rGnXXNWnmQg2K3+bvhkxB51Rl32QRaOTuwwjviGrHzIbSc8+x9CpraDtbT7mfyjXObULP4w/adunNwAw==", + "dev": true, "dependencies": { "@babel/helper-compilation-targets": "^7.22.6", "@babel/helper-plugin-utils": "^7.22.5", @@ -283,37 +286,38 @@ } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", - "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.27.1.tgz", + "integrity": "sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==", + "dev": true, "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", - "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", - "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.1.tgz", + "integrity": "sha512-9yHn519/8KvTU5BjTVEEeIM3w9/2yXNKoD82JifINImhpKkARMJKPP59kLo+BafpdN5zgNeIcS4jsGDmd3l58g==", "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -323,32 +327,34 @@ } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", - "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", + "dev": true, "dependencies": { - "@babel/types": "^7.25.9" + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", - "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz", - "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", + "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-wrap-function": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -358,13 +364,14 @@ } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.9.tgz", - "integrity": "sha512-IiDqTOTBQy0sWyeXyGSC5TBJpGFXBkRynjBeXsvbhQFKj2viwJC76Epz35YLU1fpe/Am6Vppb7W7zM4fPQzLsQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", + "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", + "dev": true, "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.25.9", - "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -373,87 +380,75 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.25.9.tgz", - "integrity": "sha512-c6WHXuiaRsJTyHYLJV75t9IqsmTbItYfdj99PnzYGQZkYKvan5/2jKJ7gu31J3/BJ/A18grImSPModuyG/Eo0Q==", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", - "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", + "dev": true, "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", - "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", - "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", - "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz", - "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.27.1.tgz", + "integrity": "sha512-NFJK2sHUvrjo8wAU/nQTWU890/zB2jj0qBcCbZbbf+005cAsv6tMjXz31fBign6M5ov1o0Bllu+9nbqkfsjjJQ==", + "dev": true, "dependencies": { - "@babel/template": "^7.25.9", - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/template": "^7.27.1", + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.26.10", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz", - "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.1.tgz", + "integrity": "sha512-FCvFTm0sWV8Fxhpp2McP5/W53GPllQ9QeQ7SiqGWjMf/LVG07lFa5+pgK05IRhVwtvafT22KF+ZSnM9I545CvQ==", "dependencies": { - "@babel/template": "^7.26.9", - "@babel/types": "^7.26.10" + "@babel/template": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.26.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.10.tgz", - "integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==", - "license": "MIT", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.2.tgz", + "integrity": "sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw==", "dependencies": { - "@babel/types": "^7.26.10" + "@babel/types": "^7.27.1" }, "bin": { "parser": "bin/babel-parser.js" @@ -463,12 +458,13 @@ } }, "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz", - "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.27.1.tgz", + "integrity": "sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -478,11 +474,12 @@ } }, "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz", - "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz", + "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -492,11 +489,12 @@ } }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.25.9", - "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.25.9.tgz", - "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==", + "version": "7.27.1", + "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.27.1.tgz", + "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -506,13 +504,14 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz", - "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", + "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/plugin-transform-optional-chaining": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-transform-optional-chaining": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -522,12 +521,13 @@ } }, "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz", - "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.27.1.tgz", + "integrity": "sha512-6BpaYGDavZqkI6yT+KSPdpZFfpnd68UKXbcjI9pJ13pvHhPrCKWOOLp+ysvMeA+DxnhuPpgIaRpxRxo5A9t5jw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -536,43 +536,12 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@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==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-decorators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.25.9.tgz", - "integrity": "sha512-smkNLL/O1ezy9Nhy4CNosc4Va+1wo5w4gzSZeLe6y6dM4mmHfYOCPolXQPHQxonZCF+ZyebxN9vqOolkYrSn5g==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-syntax-decorators": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@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==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" @@ -589,6 +558,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-numeric-separator": "^7.10.4" @@ -642,6 +612,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", @@ -654,34 +625,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@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==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", - "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, "engines": { "node": ">=6.9.0" }, @@ -693,6 +641,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -704,6 +653,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -715,6 +665,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -726,6 +677,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -736,40 +688,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.25.9.tgz", - "integrity": "sha512-ryzI0McXUPJnRCvMo4lumIKZUzhYUO/ScI+Mz4YVaTLt04DHNSjEUjKVvbzQjZFLuod/cYEc07mJWhzl6v4DPg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-flow": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.26.0.tgz", - "integrity": "sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz", - "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz", + "integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -779,11 +704,12 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", - "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -796,6 +722,7 @@ "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -807,6 +734,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -815,11 +743,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", - "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -832,6 +761,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -843,6 +773,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -854,6 +785,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -865,6 +797,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -876,6 +809,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -887,6 +821,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -898,6 +833,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -912,6 +848,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -923,11 +860,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", - "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -940,6 +878,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" @@ -952,11 +891,12 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", - "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", + "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -966,13 +906,14 @@ } }, "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz", - "integrity": "sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.27.1.tgz", + "integrity": "sha512-eST9RrwlpaoJBDHShc+DS2SG4ATTi2MYNb4OxYkf3n+7eb49LWpnS+HSpVfW4x927qQwgk8A2hGNVaajAEw0EA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-remap-async-to-generator": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -982,13 +923,14 @@ } }, "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz", - "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.27.1.tgz", + "integrity": "sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==", + "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-remap-async-to-generator": "^7.25.9" + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -998,11 +940,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.9.tgz", - "integrity": "sha512-toHc9fzab0ZfenFpsyYinOX0J/5dgJVA2fm64xPewu7CoYHWEivIWKxkK2rMi4r3yQqLnVmheMXRdG+k239CgA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", + "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1012,11 +955,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz", - "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.27.1.tgz", + "integrity": "sha512-QEcFlMl9nGTgh1rn2nIeU5bkfb9BAjaQcWbiP4LvKxUot52ABcTkpcyJ7f2Q2U2RuQ84BNLgts3jRme2dTx6Fw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1026,12 +970,13 @@ } }, "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz", - "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.27.1.tgz", + "integrity": "sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==", + "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1041,12 +986,13 @@ } }, "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz", - "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.27.1.tgz", + "integrity": "sha512-s734HmYU78MVzZ++joYM+NkJusItbdRcbm+AGRgJCt3iA+yux0QpD9cBVdz3tKyrjVYWRl7j0mHSmv4lhV0aoA==", + "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1056,15 +1002,16 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", - "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.27.1.tgz", + "integrity": "sha512-7iLhfFAubmpeJe/Wo2TVuDrykh/zlWXLzPNdL0Jqn/Xu8R3QQ8h9ff8FQoISZOsw74/HFqFI7NX63HN7QFIHKA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", - "@babel/traverse": "^7.25.9", + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/traverse": "^7.27.1", "globals": "^11.1.0" }, "engines": { @@ -1075,12 +1022,13 @@ } }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", - "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.27.1.tgz", + "integrity": "sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/template": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/template": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1090,11 +1038,12 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", - "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.27.1.tgz", + "integrity": "sha512-ttDCqhfvpE9emVkXbPD8vyxxh4TWYACVybGkDj+oReOGwnp066ITEivDlLwe0b1R0+evJ13IXQuLNB5w1fhC5Q==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1104,12 +1053,13 @@ } }, "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz", - "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz", + "integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1119,11 +1069,12 @@ } }, "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz", - "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", + "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1133,12 +1084,13 @@ } }, "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz", - "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1148,11 +1100,12 @@ } }, "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz", - "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz", + "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1162,12 +1115,12 @@ } }, "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.25.9.tgz", - "integrity": "sha512-KRhdhlVk2nObA5AYa7QMgTMTVJdfHprfpAk4DjZVtllqRg9qarilstTKEhpVjyt+Npi8ThRyiV8176Am3CodPA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.27.1.tgz", + "integrity": "sha512-uspvXnhHvGKf2r4VVtBpeFnuDWsJLQ6MF6lGJLC89jBR1uoVeqM416AZtTuhTezOfgHicpJQmoD5YUakO/YmXQ==", + "dev": true, "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1177,26 +1130,12 @@ } }, "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz", - "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", + "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-flow-strip-types": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.25.9.tgz", - "integrity": "sha512-/VVukELzPDdci7UUsWQaSkhgnjIWXnIyRpM02ldxaVoFK96c41So8JcKT3m0gYjyv7j5FNPGS5vfELrWalkbDA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-syntax-flow": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1206,12 +1145,13 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz", - "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", + "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1221,13 +1161,14 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", - "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", + "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", + "dev": true, "dependencies": { - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1237,11 +1178,12 @@ } }, "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz", - "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.27.1.tgz", + "integrity": "sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1251,11 +1193,12 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", - "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", + "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1265,11 +1208,12 @@ } }, "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz", - "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.27.1.tgz", + "integrity": "sha512-SJvDs5dXxiae4FbSL1aBJlG4wvl594N6YEVVn9e3JGulwioy6z3oPjx/sQBO3Y4NwUu5HNix6KJ3wBZoewcdbw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1279,11 +1223,12 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", - "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", + "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1293,12 +1238,13 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz", - "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", + "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", + "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1308,13 +1254,13 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.25.9.tgz", - "integrity": "sha512-dwh2Ol1jWwL2MgkCzUSOvfmKElqQcuswAZypBSUsScMXvgdT8Ekq5YA6TtqpTVWH+4903NmboMuH1o9i8Rxlyg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.27.1.tgz", + "integrity": "sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==", + "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-simple-access": "^7.25.9" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1324,14 +1270,15 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz", - "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.27.1.tgz", + "integrity": "sha512-w5N1XzsRbc0PQStASMksmUeqECuzKuTJer7kFagK8AXgpCMkeDMO5S+aaFb7A51ZYDF7XI34qsTX+fkHiIm5yA==", + "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1341,12 +1288,13 @@ } }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz", - "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", + "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", + "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1356,12 +1304,13 @@ } }, "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz", - "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1371,11 +1320,12 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz", - "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", + "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1385,11 +1335,12 @@ } }, "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.9.tgz", - "integrity": "sha512-ENfftpLZw5EItALAD4WsY/KUWvhUlZndm5GC7G3evUsVeSJB6p0pBeLQUnRnBCBx7zV0RKQjR9kCuwrsIrjWog==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.27.1.tgz", + "integrity": "sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1399,11 +1350,12 @@ } }, "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz", - "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.27.1.tgz", + "integrity": "sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1413,13 +1365,15 @@ } }, "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz", - "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.27.2.tgz", + "integrity": "sha512-AIUHD7xJ1mCrj3uPozvtngY3s0xpv7Nu7DoUSnzNY6Xam1Cy4rUznR//pvMHOhQ4AvbCexhbqXCtpxGHOGOO6g==", + "dev": true, "dependencies": { - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-transform-parameters": "^7.25.9" + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-transform-destructuring": "^7.27.1", + "@babel/plugin-transform-parameters": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1429,12 +1383,13 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", - "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", + "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1444,11 +1399,12 @@ } }, "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz", - "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.27.1.tgz", + "integrity": "sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1458,12 +1414,13 @@ } }, "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz", - "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.27.1.tgz", + "integrity": "sha512-BQmKPPIuc8EkZgNKsv0X4bPmOoayeu4F1YCwx2/CfmDSXDbp7GnzlUH+/ul5VGfRg1AoFPsrIThlEBj2xb4CAg==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1473,11 +1430,12 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", - "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.1.tgz", + "integrity": "sha512-018KRk76HWKeZ5l4oTj2zPpSh+NbGdt0st5S6x0pga6HgrjBOJb24mMDHorFopOOd6YHkLgOZ+zaCjZGPO4aKg==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1487,12 +1445,13 @@ } }, "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz", - "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.27.1.tgz", + "integrity": "sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==", + "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1502,13 +1461,14 @@ } }, "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz", - "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.27.1.tgz", + "integrity": "sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1518,11 +1478,12 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", - "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", + "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1532,26 +1493,12 @@ } }, "node_modules/@babel/plugin-transform-property-mutators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-mutators/-/plugin-transform-property-mutators-7.25.9.tgz", - "integrity": "sha512-PSFqCW743UXxScHjpepF2NdovT6FdRQo+diFXVxfNd8zt3S0W4zhYR5IyT31uzD75qax/itfqm2bENRq74Mjhw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-mutators/-/plugin-transform-property-mutators-7.27.1.tgz", + "integrity": "sha512-FisQkuaXAjm+24ZVBcN+p5hlq9jbuOHtBvqqpd2qH/pP2iDyFaYtP6IAMvwIV4XxaaxAVedhT+z/EVnAwbd4jg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-constant-elements": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.25.9.tgz", - "integrity": "sha512-Ncw2JFsJVuvfRsa2lSHiC55kETQVLSnsYGQ1JDDwkUeWGTL/8Tom8aLTnlqgoeuopWrbbGndrc9AlLYrIosrow==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1561,11 +1508,12 @@ } }, "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.25.9.tgz", - "integrity": "sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.27.1.tgz", + "integrity": "sha512-p9+Vl3yuHPmkirRrg021XiP+EETmPMQTLr6Ayjj85RLNEbb3Eya/4VI0vAdzQG9SEAl2Lnt7fy5lZyMzjYoZQQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1575,15 +1523,16 @@ } }, "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.9.tgz", - "integrity": "sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.27.1.tgz", + "integrity": "sha512-2KH4LWGSrJIkVf5tSiBFYuXDAoWRq2MMwgivCf+93dd0GQi8RXLjKA/0EvRnVV5G0hrHczsquXuD01L8s6dmBw==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-syntax-jsx": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1593,11 +1542,40 @@ } }, "node_modules/@babel/plugin-transform-react-jsx-development": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.25.9.tgz", - "integrity": "sha512-9mj6rm7XVYs4mdLIpbZnHOYdpW42uoiBCTVowg7sP1thUOiANgMb4UtpRivR0pp5iL+ocvUv7X4mZgFRpJEzGw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.27.1.tgz", + "integrity": "sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==", + "dev": true, "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.25.9" + "@babel/plugin-transform-react-jsx": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1607,12 +1585,13 @@ } }, "node_modules/@babel/plugin-transform-react-pure-annotations": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.25.9.tgz", - "integrity": "sha512-KQ/Takk3T8Qzj5TppkS1be588lkbTp5uj7w6a0LeQaTMSckU/wK0oJ/pih+T690tkgI5jfmg2TqDJvd41Sj1Cg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.27.1.tgz", + "integrity": "sha512-JfuinvDOsD9FVMTHpzA/pBLisxpv1aSf+OIV8lgH3MuWrks19R27e6a6DipIg4aX1Zm9Wpb04p8wljfKrVSnPA==", + "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1622,12 +1601,12 @@ } }, "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz", - "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.27.1.tgz", + "integrity": "sha512-B19lbbL7PMrKr52BNPjCqg1IyNUIjTcxKj8uX9zHO+PmWN93s19NDr/f69mIkEp2x9nmDJ08a7lgHaTTzvW7mw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "regenerator-transform": "^0.15.2" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1637,12 +1616,13 @@ } }, "node_modules/@babel/plugin-transform-regexp-modifiers": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz", - "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.27.1.tgz", + "integrity": "sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1652,11 +1632,12 @@ } }, "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz", - "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", + "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1666,14 +1647,15 @@ } }, "node_modules/@babel/plugin-transform-runtime": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.25.9.tgz", - "integrity": "sha512-nZp7GlEl+yULJrClz0SwHPqir3lc0zsPrDHQUcxGspSL7AKrexNSEfTbfqnDNJUO13bgKyfuOLMF8Xqtu8j3YQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.27.1.tgz", + "integrity": "sha512-TqGF3desVsTcp3WrJGj4HfKokfCXCLcHpt4PJF0D8/iT6LPd9RS82Upw3KPeyr6B22Lfd3DO8MVrmp0oRkUDdw==", + "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-corejs3": "^0.11.0", "babel-plugin-polyfill-regenerator": "^0.6.1", "semver": "^6.3.1" }, @@ -1685,11 +1667,12 @@ } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", - "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", + "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1699,12 +1682,13 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", - "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.27.1.tgz", + "integrity": "sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1714,11 +1698,12 @@ } }, "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz", - "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", + "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1728,11 +1713,12 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", - "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", + "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1742,29 +1728,12 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.9.tgz", - "integrity": "sha512-v61XqUMiueJROUv66BVIOi0Fv/CUuZuZMl5NkRoCVxLAnMexZ0A3kMe7vvZ0nulxMuMp0Mk6S5hNh48yki08ZA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", + "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.9.tgz", - "integrity": "sha512-7PbZQZP50tzv2KGGnhh82GSyMB01yKY9scIjf1a+GfZCtInOWqUH5+1EBU4t9fyR5Oykkkc9vFTs4OHrhHXljQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/plugin-syntax-typescript": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1774,11 +1743,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz", - "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", + "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1788,12 +1758,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz", - "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.27.1.tgz", + "integrity": "sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1803,12 +1774,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz", - "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", + "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1818,12 +1790,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz", - "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.27.1.tgz", + "integrity": "sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==", + "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1833,78 +1806,79 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.26.0.tgz", - "integrity": "sha512-H84Fxq0CQJNdPFT2DrfnylZ3cf5K43rGfWK4LJGPpjKHiZlk0/RzwEus3PDDZZg+/Er7lCA03MVacueUuXdzfw==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.27.2.tgz", + "integrity": "sha512-Ma4zSuYSlGNRlCLO+EAzLnCmJK2vdstgv+n7aUP+/IKZrOfWHOJVdSJtuub8RzHTj3ahD37k5OKJWvzf16TQyQ==", + "dev": true, "dependencies": { - "@babel/compat-data": "^7.26.0", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/compat-data": "^7.27.2", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.27.1", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.27.1", "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.26.0", - "@babel/plugin-syntax-import-attributes": "^7.26.0", + "@babel/plugin-syntax-import-assertions": "^7.27.1", + "@babel/plugin-syntax-import-attributes": "^7.27.1", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.25.9", - "@babel/plugin-transform-async-generator-functions": "^7.25.9", - "@babel/plugin-transform-async-to-generator": "^7.25.9", - "@babel/plugin-transform-block-scoped-functions": "^7.25.9", - "@babel/plugin-transform-block-scoping": "^7.25.9", - "@babel/plugin-transform-class-properties": "^7.25.9", - "@babel/plugin-transform-class-static-block": "^7.26.0", - "@babel/plugin-transform-classes": "^7.25.9", - "@babel/plugin-transform-computed-properties": "^7.25.9", - "@babel/plugin-transform-destructuring": "^7.25.9", - "@babel/plugin-transform-dotall-regex": "^7.25.9", - "@babel/plugin-transform-duplicate-keys": "^7.25.9", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", - "@babel/plugin-transform-dynamic-import": "^7.25.9", - "@babel/plugin-transform-exponentiation-operator": "^7.25.9", - "@babel/plugin-transform-export-namespace-from": "^7.25.9", - "@babel/plugin-transform-for-of": "^7.25.9", - "@babel/plugin-transform-function-name": "^7.25.9", - "@babel/plugin-transform-json-strings": "^7.25.9", - "@babel/plugin-transform-literals": "^7.25.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", - "@babel/plugin-transform-member-expression-literals": "^7.25.9", - "@babel/plugin-transform-modules-amd": "^7.25.9", - "@babel/plugin-transform-modules-commonjs": "^7.25.9", - "@babel/plugin-transform-modules-systemjs": "^7.25.9", - "@babel/plugin-transform-modules-umd": "^7.25.9", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", - "@babel/plugin-transform-new-target": "^7.25.9", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.9", - "@babel/plugin-transform-numeric-separator": "^7.25.9", - "@babel/plugin-transform-object-rest-spread": "^7.25.9", - "@babel/plugin-transform-object-super": "^7.25.9", - "@babel/plugin-transform-optional-catch-binding": "^7.25.9", - "@babel/plugin-transform-optional-chaining": "^7.25.9", - "@babel/plugin-transform-parameters": "^7.25.9", - "@babel/plugin-transform-private-methods": "^7.25.9", - "@babel/plugin-transform-private-property-in-object": "^7.25.9", - "@babel/plugin-transform-property-literals": "^7.25.9", - "@babel/plugin-transform-regenerator": "^7.25.9", - "@babel/plugin-transform-regexp-modifiers": "^7.26.0", - "@babel/plugin-transform-reserved-words": "^7.25.9", - "@babel/plugin-transform-shorthand-properties": "^7.25.9", - "@babel/plugin-transform-spread": "^7.25.9", - "@babel/plugin-transform-sticky-regex": "^7.25.9", - "@babel/plugin-transform-template-literals": "^7.25.9", - "@babel/plugin-transform-typeof-symbol": "^7.25.9", - "@babel/plugin-transform-unicode-escapes": "^7.25.9", - "@babel/plugin-transform-unicode-property-regex": "^7.25.9", - "@babel/plugin-transform-unicode-regex": "^7.25.9", - "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/plugin-transform-arrow-functions": "^7.27.1", + "@babel/plugin-transform-async-generator-functions": "^7.27.1", + "@babel/plugin-transform-async-to-generator": "^7.27.1", + "@babel/plugin-transform-block-scoped-functions": "^7.27.1", + "@babel/plugin-transform-block-scoping": "^7.27.1", + "@babel/plugin-transform-class-properties": "^7.27.1", + "@babel/plugin-transform-class-static-block": "^7.27.1", + "@babel/plugin-transform-classes": "^7.27.1", + "@babel/plugin-transform-computed-properties": "^7.27.1", + "@babel/plugin-transform-destructuring": "^7.27.1", + "@babel/plugin-transform-dotall-regex": "^7.27.1", + "@babel/plugin-transform-duplicate-keys": "^7.27.1", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.27.1", + "@babel/plugin-transform-dynamic-import": "^7.27.1", + "@babel/plugin-transform-exponentiation-operator": "^7.27.1", + "@babel/plugin-transform-export-namespace-from": "^7.27.1", + "@babel/plugin-transform-for-of": "^7.27.1", + "@babel/plugin-transform-function-name": "^7.27.1", + "@babel/plugin-transform-json-strings": "^7.27.1", + "@babel/plugin-transform-literals": "^7.27.1", + "@babel/plugin-transform-logical-assignment-operators": "^7.27.1", + "@babel/plugin-transform-member-expression-literals": "^7.27.1", + "@babel/plugin-transform-modules-amd": "^7.27.1", + "@babel/plugin-transform-modules-commonjs": "^7.27.1", + "@babel/plugin-transform-modules-systemjs": "^7.27.1", + "@babel/plugin-transform-modules-umd": "^7.27.1", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.27.1", + "@babel/plugin-transform-new-target": "^7.27.1", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1", + "@babel/plugin-transform-numeric-separator": "^7.27.1", + "@babel/plugin-transform-object-rest-spread": "^7.27.2", + "@babel/plugin-transform-object-super": "^7.27.1", + "@babel/plugin-transform-optional-catch-binding": "^7.27.1", + "@babel/plugin-transform-optional-chaining": "^7.27.1", + "@babel/plugin-transform-parameters": "^7.27.1", + "@babel/plugin-transform-private-methods": "^7.27.1", + "@babel/plugin-transform-private-property-in-object": "^7.27.1", + "@babel/plugin-transform-property-literals": "^7.27.1", + "@babel/plugin-transform-regenerator": "^7.27.1", + "@babel/plugin-transform-regexp-modifiers": "^7.27.1", + "@babel/plugin-transform-reserved-words": "^7.27.1", + "@babel/plugin-transform-shorthand-properties": "^7.27.1", + "@babel/plugin-transform-spread": "^7.27.1", + "@babel/plugin-transform-sticky-regex": "^7.27.1", + "@babel/plugin-transform-template-literals": "^7.27.1", + "@babel/plugin-transform-typeof-symbol": "^7.27.1", + "@babel/plugin-transform-unicode-escapes": "^7.27.1", + "@babel/plugin-transform-unicode-property-regex": "^7.27.1", + "@babel/plugin-transform-unicode-regex": "^7.27.1", + "@babel/plugin-transform-unicode-sets-regex": "^7.27.1", "@babel/preset-modules": "0.1.6-no-external-plugins", "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-corejs3": "^0.11.0", "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.38.1", + "core-js-compat": "^3.40.0", "semver": "^6.3.1" }, "engines": { @@ -1914,21 +1888,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/preset-modules": { "version": "0.1.6-no-external-plugins", "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/types": "^7.4.4", @@ -1939,34 +1903,17 @@ } }, "node_modules/@babel/preset-react": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.25.9.tgz", - "integrity": "sha512-D3to0uSPiWE7rBrdIICCd0tJSIGpLaaGptna2+w7Pft5xMqLpA1sz99DK5TZ1TjGbdQ/VI1eCSZ06dv3lT4JOw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.27.1.tgz", + "integrity": "sha512-oJHWh2gLhU9dW9HHr42q0cI0/iHHXTLGe39qvpAZZzagHy0MzYLCnCVV0symeRvzmjHyVU7mw2K06E6u/JwbhA==", + "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", - "@babel/plugin-transform-react-display-name": "^7.25.9", - "@babel/plugin-transform-react-jsx": "^7.25.9", - "@babel/plugin-transform-react-jsx-development": "^7.25.9", - "@babel/plugin-transform-react-pure-annotations": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.26.0.tgz", - "integrity": "sha512-NMk1IGZ5I/oHhoXEElcm+xUnL/szL6xflkFZmoEU9xj1qSJXpiS7rsspYo92B4DRCDvZn2erT5LdsCeXAKNCkg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", - "@babel/plugin-syntax-jsx": "^7.25.9", - "@babel/plugin-transform-modules-commonjs": "^7.25.9", - "@babel/plugin-transform-typescript": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-transform-react-display-name": "^7.27.1", + "@babel/plugin-transform-react-jsx": "^7.27.1", + "@babel/plugin-transform-react-jsx-development": "^7.27.1", + "@babel/plugin-transform-react-pure-annotations": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1976,41 +1923,36 @@ } }, "node_modules/@babel/runtime": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", - "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.1.tgz", + "integrity": "sha512-1x3D2xEk2fRo3PAhwQwu5UubzgiVWSXTBfWpVd2Mx2AzRqJuDJCsgaDVZ7HB5iGzDW1Hl1sWN2mFyKjmR9uAog==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/template": { - "version": "7.26.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz", - "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==", - "license": "MIT", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", "dependencies": { - "@babel/code-frame": "^7.26.2", - "@babel/parser": "^7.26.9", - "@babel/types": "^7.26.9" + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.9.tgz", - "integrity": "sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.1.tgz", + "integrity": "sha512-ZCYtZciz1IWJB4U61UPu4KEaqyfj+r5T1Q5mqPo+IBpcG9kHv30Z0aD8LXPgC1trYa6rK0orRyAhqUgk4MjmEg==", "dependencies": { - "@babel/code-frame": "^7.25.9", - "@babel/generator": "^7.25.9", - "@babel/parser": "^7.25.9", - "@babel/template": "^7.25.9", - "@babel/types": "^7.25.9", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/template": "^7.27.1", + "@babel/types": "^7.27.1", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -2019,652 +1961,499 @@ } }, "node_modules/@babel/types": { - "version": "7.26.10", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz", - "integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.1.tgz", + "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==", "dependencies": { - "@babel/helper-string-parser": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@ballerina/highlightjs-ballerina": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@ballerina/highlightjs-ballerina/-/highlightjs-ballerina-1.0.1.tgz", + "integrity": "sha512-FOgWHYLhNhAk0i9gjB8+K2x52lGN44xLgvCNYduoQzPFG89qwtEtFk3guE8w8v7xRUNno6mlqn2bF6dG316mYg==" + }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" - }, - "node_modules/@csstools/normalize.css": { - "version": "12.1.1", - "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.1.1.tgz", - "integrity": "sha512-YAYeJ+Xqh7fUou1d1j9XHl44BmsuThiTr4iNrgCQ3J27IbhXsxXDGZ1cXv8Qvs99d4rBbLiSKy3+WZiet32PcQ==" - }, - "node_modules/@csstools/postcss-cascade-layers": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz", - "integrity": "sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA==", - "dependencies": { - "@csstools/selector-specificity": "^2.0.2", - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-color-function": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz", - "integrity": "sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-font-format-keywords": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz", - "integrity": "sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-hwb-function": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz", - "integrity": "sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-ic-unit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz", - "integrity": "sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-is-pseudo-class": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz", - "integrity": "sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==", - "dependencies": { - "@csstools/selector-specificity": "^2.0.0", - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-nested-calc": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz", - "integrity": "sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-normalize-display-values": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz", - "integrity": "sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-oklab-function": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz", - "integrity": "sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.3" - } - }, - "node_modules/@csstools/postcss-stepped-value-functions": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz", - "integrity": "sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-text-decoration-shorthand": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz", - "integrity": "sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-trigonometric-functions": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz", - "integrity": "sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-unset-value": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz", - "integrity": "sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==", - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/selector-specificity": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", - "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", - "engines": { - "node": "^14 || ^16 || >=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss-selector-parser": "^6.0.10" - } - }, - "node_modules/@cucumber/create-meta": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@cucumber/create-meta/-/create-meta-5.0.0.tgz", - "integrity": "sha512-Z5kMZkUff00S3/KSnKzB/KOm2UIxMXY1xXmj2dQMlD49lV6v/W8EEvgDMNtQotQNSOQU5bDupmWQpk+o16tXIw==", - "dev": true, - "dependencies": { - "@cucumber/messages": "^16.0.0" - } - }, - "node_modules/@cucumber/create-meta/node_modules/@cucumber/messages": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-16.0.1.tgz", - "integrity": "sha512-80JcaAfQragFqR1rMhRwiqWL9HcR6Z4LDD2mfF0Lxg/lFkCNvmWa9Jl10NUNfFXYD555NKPzP/8xFo55abw8TQ==", - "dev": true, - "dependencies": { - "@types/uuid": "8.3.0", - "class-transformer": "0.4.0", - "reflect-metadata": "0.1.13", - "uuid": "8.3.2" - } - }, - "node_modules/@cucumber/create-meta/node_modules/@types/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@cucumber/create-meta/node_modules/class-transformer": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.4.0.tgz", - "integrity": "sha512-ETWD/H2TbWbKEi7m9N4Km5+cw1hNcqJSxlSYhsLsNjQzWWiZIYA1zafxpK9PwVfaZ6AqR5rrjPVUBGESm5tQUA==", - "dev": true + "node_modules/@bem-react/classname": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@bem-react/classname/-/classname-1.6.0.tgz", + "integrity": "sha512-SFBwUHMcb7TFFK5ld88+JhecoEun3/kHZ6KvLDjj3w5hv/tfRV8mtGHA8N42uMctXLF4bPEcr96xwXXcRFuweg==" }, - "node_modules/@cucumber/create-meta/node_modules/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 + "node_modules/@bem-react/classnames": { + "version": "1.3.10", + "resolved": "https://registry.npmjs.org/@bem-react/classnames/-/classnames-1.3.10.tgz", + "integrity": "sha512-tn+45Ii+S5FcYuO5FMs9YLSMUc355iUho7mwFeMMihi/ZZCQjvdR5AhVexnL9GS7pMtOeV0OsDOPDkW1sXVI3A==" }, - "node_modules/@cucumber/create-meta/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "bin": { - "uuid": "dist/bin/uuid" + "node_modules/@bufbuild/protobuf": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.3.0.tgz", + "integrity": "sha512-WK6zH4MtBp/uesX8KGCnwDDRVnEVHUvwjsigKXcSR57Oo8Oyv1vRS9qyUlSP+6KWRl5z8tNAU5qpf3QodeVYxA==" + }, + "node_modules/@codemirror/autocomplete": { + "version": "6.18.6", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.6.tgz", + "integrity": "sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg==", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0" } }, + "node_modules/@codemirror/commands": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.8.1.tgz", + "integrity": "sha512-KlGVYufHMQzxbdQONiLyGQDUW0itrLZwq3CcY7xpv9ZLRHqzkBSoteocBHtMCoY7/Ci4xhzSrToIeLg7FxHuaw==", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.4.0", + "@codemirror/view": "^6.27.0", + "@lezer/common": "^1.1.0" + } + }, + "node_modules/@codemirror/lang-css": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.3.1.tgz", + "integrity": "sha512-kr5fwBGiGtmz6l0LSJIbno9QrifNMUusivHbnA1H6Dmqy4HZFte3UAICix1VuKo0lMPKQr2rqB+0BkKi/S3Ejg==", + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@lezer/common": "^1.0.2", + "@lezer/css": "^1.1.7" + } + }, + "node_modules/@codemirror/lang-html": { + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-6.4.9.tgz", + "integrity": "sha512-aQv37pIMSlueybId/2PVSP6NPnmurFDVmZwzc7jszd2KAF8qd4VBbvNYPXWQq90WIARjsdVkPbw29pszmHws3Q==", + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/lang-css": "^6.0.0", + "@codemirror/lang-javascript": "^6.0.0", + "@codemirror/language": "^6.4.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0", + "@lezer/css": "^1.1.0", + "@lezer/html": "^1.3.0" + } + }, + "node_modules/@codemirror/lang-javascript": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.3.tgz", + "integrity": "sha512-8PR3vIWg7pSu7ur8A07pGiYHgy3hHj+mRYRCSG8q+mPIrl0F02rgpGv+DsQTHRTc30rydOsf5PZ7yjKFg2Ackw==", + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/language": "^6.6.0", + "@codemirror/lint": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0", + "@lezer/javascript": "^1.0.0" + } + }, + "node_modules/@codemirror/lang-markdown": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.3.2.tgz", + "integrity": "sha512-c/5MYinGbFxYl4itE9q/rgN/sMTjOr8XL5OWnC+EaRMLfCbVUmmubTJfdgpfcSS2SCaT7b+Q+xi3l6CgoE+BsA==", + "dependencies": { + "@codemirror/autocomplete": "^6.7.1", + "@codemirror/lang-html": "^6.0.0", + "@codemirror/language": "^6.3.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "@lezer/common": "^1.2.1", + "@lezer/markdown": "^1.0.0" + } + }, + "node_modules/@codemirror/language": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.11.0.tgz", + "integrity": "sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.23.0", + "@lezer/common": "^1.1.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0", + "style-mod": "^4.0.0" + } + }, + "node_modules/@codemirror/lint": { + "version": "6.8.5", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.5.tgz", + "integrity": "sha512-s3n3KisH7dx3vsoeGMxsbRAgKe4O1vbrnKBClm99PU0fWxmxsx5rR2PfqQgIt+2MMJBHbiJ5rfIdLYfB9NNvsA==", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.35.0", + "crelt": "^1.0.5" + } + }, + "node_modules/@codemirror/search": { + "version": "6.5.10", + "resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.5.10.tgz", + "integrity": "sha512-RMdPdmsrUf53pb2VwflKGHEe1XVM07hI7vV2ntgw1dmqhimpatSJKva4VA9h4TLUDOD4EIF02201oZurpnEFsg==", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "crelt": "^1.0.5" + } + }, + "node_modules/@codemirror/state": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.5.2.tgz", + "integrity": "sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==", + "dependencies": { + "@marijn/find-cluster-break": "^1.0.0" + } + }, + "node_modules/@codemirror/view": { + "version": "6.36.7", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.36.7.tgz", + "integrity": "sha512-kCWGW/chWGPgZqfZ36Um9Iz0X2IVpmCjg1P/qY6B6a2ecXtWRRAigmpJ6YgUQ5lTWXMyyVdfmpzhLZmsZQMbtg==", + "dependencies": { + "@codemirror/state": "^6.5.0", + "style-mod": "^4.1.0", + "w3c-keyname": "^2.2.4" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@cucumber/ci-environment": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@cucumber/ci-environment/-/ci-environment-10.0.1.tgz", + "integrity": "sha512-/+ooDMPtKSmvcPMDYnMZt4LuoipfFfHaYspStI4shqw8FyKcfQAmekz6G+QKWjQQrvM+7Hkljwx58MEwPCwwzg==", + "dev": true + }, "node_modules/@cucumber/cucumber": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/@cucumber/cucumber/-/cucumber-7.3.2.tgz", - "integrity": "sha512-qqptM9w+UqXEYBAkrIGpIVPXDWv+zp0LrS89LiwHZwBp0cJg00su/iPMZ4j8TvCJiKfAwJXsAI1yjrd1POtU+w==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/@cucumber/cucumber/-/cucumber-11.2.0.tgz", + "integrity": "sha512-F69uIPTc7dfgU7/TGAaQaWUz7r/DzoPW39AfJoKQOC7IvBiPQwpvSIo6QEd+63pdpdKNRbtQoVl5vP9IclhhuA==", "dev": true, "dependencies": { - "@cucumber/create-meta": "^5.0.0", - "@cucumber/cucumber-expressions": "^12.1.1", - "@cucumber/gherkin": "^19.0.3", - "@cucumber/gherkin-streams": "^2.0.2", - "@cucumber/html-formatter": "^15.0.2", - "@cucumber/messages": "^16.0.1", - "@cucumber/tag-expressions": "^3.0.1", + "@cucumber/ci-environment": "10.0.1", + "@cucumber/cucumber-expressions": "18.0.1", + "@cucumber/gherkin": "30.0.4", + "@cucumber/gherkin-streams": "5.0.1", + "@cucumber/gherkin-utils": "9.0.0", + "@cucumber/html-formatter": "21.7.0", + "@cucumber/junit-xml-formatter": "0.7.1", + "@cucumber/message-streams": "4.0.1", + "@cucumber/messages": "27.0.2", + "@cucumber/tag-expressions": "6.1.1", "assertion-error-formatter": "^3.0.0", - "bluebird": "^3.7.2", "capital-case": "^1.0.4", - "cli-table3": "0.6.1", - "colors": "1.4.0", - "commander": "^7.0.0", - "create-require": "^1.1.1", - "duration": "^0.2.2", - "durations": "^3.4.2", + "chalk": "^4.1.2", + "cli-table3": "0.6.3", + "commander": "^10.0.0", + "debug": "^4.3.4", + "error-stack-parser": "^2.1.4", "figures": "^3.2.0", - "glob": "^7.1.6", + "glob": "^10.3.10", + "has-ansi": "^4.0.1", "indent-string": "^4.0.0", - "is-generator": "^1.0.3", + "is-installed-globally": "^0.4.0", "is-stream": "^2.0.0", "knuth-shuffle-seeded": "^1.0.6", - "lodash": "^4.17.21", + "lodash.merge": "^4.6.2", + "lodash.mergewith": "^4.6.2", + "luxon": "3.2.1", + "mime": "^3.0.0", + "mkdirp": "^2.1.5", "mz": "^2.7.0", "progress": "^2.0.3", - "resolve": "^1.19.0", + "read-package-up": "^11.0.0", "resolve-pkg": "^2.0.0", - "stack-chain": "^2.0.0", - "stacktrace-js": "^2.0.2", - "string-argv": "^0.3.1", - "tmp": "^0.2.1", + "semver": "7.5.3", + "string-argv": "0.3.1", + "supports-color": "^8.1.1", + "tmp": "0.2.3", + "type-fest": "^4.8.3", "util-arity": "^1.1.0", - "verror": "^1.10.0" + "yaml": "^2.2.2", + "yup": "1.2.0" }, "bin": { - "cucumber-js": "bin/cucumber-js" + "cucumber-js": "bin/cucumber.js" }, "engines": { - "node": ">=10" + "node": "18 || 20 || 22 || >=23" + }, + "funding": { + "url": "https://opencollective.com/cucumber" } }, "node_modules/@cucumber/cucumber-expressions": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/@cucumber/cucumber-expressions/-/cucumber-expressions-12.1.3.tgz", - "integrity": "sha512-LB8MAzE4F/t2KIgsDEz4gZH0xSI4aG0/LmYUPyISPPjUS1pI/yGWWyeX2WsiUQxpSs765WcNIq5Bggt7gGGO3Q==", + "version": "18.0.1", + "resolved": "https://registry.npmjs.org/@cucumber/cucumber-expressions/-/cucumber-expressions-18.0.1.tgz", + "integrity": "sha512-NSid6bI+7UlgMywl5octojY5NXnxR9uq+JisjOrO52VbFsQM6gTWuQFE8syI10KnIBEdPzuEUSVEeZ0VFzRnZA==", "dev": true, "dependencies": { "regexp-match-indices": "1.0.2" } }, "node_modules/@cucumber/cucumber/node_modules/@cucumber/messages": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-16.0.1.tgz", - "integrity": "sha512-80JcaAfQragFqR1rMhRwiqWL9HcR6Z4LDD2mfF0Lxg/lFkCNvmWa9Jl10NUNfFXYD555NKPzP/8xFo55abw8TQ==", + "version": "27.0.2", + "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.0.2.tgz", + "integrity": "sha512-jo2B+vYXmpuLOKh6Gc8loHl2E8svCkLvEXLVgFwVHqKWZJWBTa9yTRCPmZIxrz4fnO7Pr3N3vKQCPu73/gjlVQ==", "dev": true, "dependencies": { - "@types/uuid": "8.3.0", - "class-transformer": "0.4.0", - "reflect-metadata": "0.1.13", - "uuid": "8.3.2" + "@types/uuid": "10.0.0", + "class-transformer": "0.5.1", + "reflect-metadata": "0.2.2", + "uuid": "10.0.0" } }, - "node_modules/@cucumber/cucumber/node_modules/@types/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", - "dev": true + "node_modules/@cucumber/cucumber/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } }, - "node_modules/@cucumber/cucumber/node_modules/class-transformer": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.4.0.tgz", - "integrity": "sha512-ETWD/H2TbWbKEi7m9N4Km5+cw1hNcqJSxlSYhsLsNjQzWWiZIYA1zafxpK9PwVfaZ6AqR5rrjPVUBGESm5tQUA==", - "dev": true - }, - "node_modules/@cucumber/cucumber/node_modules/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 + "node_modules/@cucumber/cucumber/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } }, "node_modules/@cucumber/cucumber/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } }, + "node_modules/@cucumber/cucumber/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/@cucumber/gherkin": { - "version": "19.0.3", - "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-19.0.3.tgz", - "integrity": "sha512-gWdMm8mfRk3P+VugJWvNALaQV5QnT+5RkqWy3tO+4NsMSQZPo5p4V4vXwriQZ/sZR1Wni5TDRztuRsKLgZ3XHA==", + "version": "30.0.4", + "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-30.0.4.tgz", + "integrity": "sha512-pb7lmAJqweZRADTTsgnC3F5zbTh3nwOB1M83Q9ZPbUKMb3P76PzK6cTcPTJBHWy3l7isbigIv+BkDjaca6C8/g==", "dev": true, "dependencies": { - "@cucumber/message-streams": "^2.0.0", - "@cucumber/messages": "^16.0.1" + "@cucumber/messages": ">=19.1.4 <=26" } }, "node_modules/@cucumber/gherkin-streams": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@cucumber/gherkin-streams/-/gherkin-streams-2.0.2.tgz", - "integrity": "sha512-cKmXOBz4OwGlrHMBCc4qCC3KzLaqcEZ11nWWskIbv6jyfvlIRuM2OgEF6VLcNVewczifW1p6DrDj0OO+BeXocA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@cucumber/gherkin-streams/-/gherkin-streams-5.0.1.tgz", + "integrity": "sha512-/7VkIE/ASxIP/jd4Crlp4JHXqdNFxPGQokqWqsaCCiqBiu5qHoKMxcWNlp9njVL/n9yN4S08OmY3ZR8uC5x74Q==", "dev": true, "dependencies": { - "@cucumber/gherkin": "^19.0.1", - "@cucumber/message-streams": "^2.0.0", - "@cucumber/messages": "^16.0.0", - "commander": "7.2.0", - "source-map-support": "0.5.19" + "commander": "9.1.0", + "source-map-support": "0.5.21" }, "bin": { "gherkin-javascript": "bin/gherkin" + }, + "peerDependencies": { + "@cucumber/gherkin": ">=22.0.0", + "@cucumber/message-streams": ">=4.0.0", + "@cucumber/messages": ">=17.1.1" } }, - "node_modules/@cucumber/gherkin-streams/node_modules/@cucumber/messages": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-16.0.1.tgz", - "integrity": "sha512-80JcaAfQragFqR1rMhRwiqWL9HcR6Z4LDD2mfF0Lxg/lFkCNvmWa9Jl10NUNfFXYD555NKPzP/8xFo55abw8TQ==", + "node_modules/@cucumber/gherkin-streams/node_modules/commander": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.1.0.tgz", + "integrity": "sha512-i0/MaqBtdbnJ4XQs4Pmyb+oFQl+q0lsAmokVUH92SlSw4fkeAcG3bVon+Qt7hmtF+u3Het6o4VgrcY3qAoEB6w==", + "dev": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/@cucumber/gherkin-utils": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@cucumber/gherkin-utils/-/gherkin-utils-9.0.0.tgz", + "integrity": "sha512-clk4q39uj7pztZuZtyI54V8lRsCUz0Y/p8XRjIeHh7ExeEztpWkp4ca9q1FjUOPfQQ8E7OgqFbqoQQXZ1Bx7fw==", "dev": true, "dependencies": { - "@types/uuid": "8.3.0", - "class-transformer": "0.4.0", - "reflect-metadata": "0.1.13", - "uuid": "8.3.2" + "@cucumber/gherkin": "^28.0.0", + "@cucumber/messages": "^24.0.0", + "@teppeis/multimaps": "3.0.0", + "commander": "12.0.0", + "source-map-support": "^0.5.21" + }, + "bin": { + "gherkin-utils": "bin/gherkin-utils" } }, - "node_modules/@cucumber/gherkin-streams/node_modules/@types/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", - "dev": true - }, - "node_modules/@cucumber/gherkin-streams/node_modules/class-transformer": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.4.0.tgz", - "integrity": "sha512-ETWD/H2TbWbKEi7m9N4Km5+cw1hNcqJSxlSYhsLsNjQzWWiZIYA1zafxpK9PwVfaZ6AqR5rrjPVUBGESm5tQUA==", - "dev": true - }, - "node_modules/@cucumber/gherkin-streams/node_modules/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 - }, - "node_modules/@cucumber/gherkin-streams/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/gherkin": { + "version": "28.0.0", + "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-28.0.0.tgz", + "integrity": "sha512-Ee6zJQq0OmIUPdW0mSnsCsrWA2PZAELNDPICD2pLfs0Oz7RAPgj80UsD2UCtqyAhw2qAR62aqlktKUlai5zl/A==", "dev": true, + "dependencies": { + "@cucumber/messages": ">=19.1.4 <=24" + } + }, + "node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/messages": { + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-24.1.0.tgz", + "integrity": "sha512-hxVHiBurORcobhVk80I9+JkaKaNXkW6YwGOEFIh/2aO+apAN+5XJgUUWjng9NwqaQrW1sCFuawLB1AuzmBaNdQ==", + "dev": true, + "dependencies": { + "@types/uuid": "9.0.8", + "class-transformer": "0.5.1", + "reflect-metadata": "0.2.1", + "uuid": "9.0.1" + } + }, + "node_modules/@cucumber/gherkin-utils/node_modules/@types/uuid": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", + "dev": true + }, + "node_modules/@cucumber/gherkin-utils/node_modules/commander": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.0.0.tgz", + "integrity": "sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==", + "dev": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@cucumber/gherkin-utils/node_modules/reflect-metadata": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.1.tgz", + "integrity": "sha512-i5lLI6iw9AU3Uu4szRNPPEkomnkjRTaVt9hy/bn5g/oSzekBSMeLZblcjP74AW0vBabqERLLIrz+gR8QYR54Tw==", + "deprecated": "This version has a critical bug in fallback handling. Please upgrade to reflect-metadata@0.2.2 or newer.", + "dev": true + }, + "node_modules/@cucumber/gherkin-utils/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/@cucumber/gherkin/node_modules/@cucumber/messages": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-16.0.1.tgz", - "integrity": "sha512-80JcaAfQragFqR1rMhRwiqWL9HcR6Z4LDD2mfF0Lxg/lFkCNvmWa9Jl10NUNfFXYD555NKPzP/8xFo55abw8TQ==", + "version": "26.0.1", + "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-26.0.1.tgz", + "integrity": "sha512-DIxSg+ZGariumO+Lq6bn4kOUIUET83A4umrnWmidjGFl8XxkBieUZtsmNbLYgH/gnsmP07EfxxdTr0hOchV1Sg==", "dev": true, "dependencies": { - "@types/uuid": "8.3.0", - "class-transformer": "0.4.0", - "reflect-metadata": "0.1.13", - "uuid": "8.3.2" + "@types/uuid": "10.0.0", + "class-transformer": "0.5.1", + "reflect-metadata": "0.2.2", + "uuid": "10.0.0" } }, - "node_modules/@cucumber/gherkin/node_modules/@types/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", - "dev": true - }, - "node_modules/@cucumber/gherkin/node_modules/class-transformer": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.4.0.tgz", - "integrity": "sha512-ETWD/H2TbWbKEi7m9N4Km5+cw1hNcqJSxlSYhsLsNjQzWWiZIYA1zafxpK9PwVfaZ6AqR5rrjPVUBGESm5tQUA==", - "dev": true - }, - "node_modules/@cucumber/gherkin/node_modules/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 - }, "node_modules/@cucumber/gherkin/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/@cucumber/html-formatter": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-15.0.2.tgz", - "integrity": "sha512-j+YGY4ytj78G/v1gZo53D+vuKXlTg/oxNwSCCGvRQo75+AqYDJSkm/vexXJQ5lY1rXAvlbZ9KI6jhg6LDs0YdQ==", + "version": "21.7.0", + "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.7.0.tgz", + "integrity": "sha512-bv211aY8mErp6CdmhN426E+7KIsVIES4fGx5ASMlUzYWiMus6NhSdI9UL3Vswx8JXJMgySeIcJJKfznREUFLNA==", + "dev": true, + "peerDependencies": { + "@cucumber/messages": ">=18" + } + }, + "node_modules/@cucumber/junit-xml-formatter": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@cucumber/junit-xml-formatter/-/junit-xml-formatter-0.7.1.tgz", + "integrity": "sha512-AzhX+xFE/3zfoYeqkT7DNq68wAQfBcx4Dk9qS/ocXM2v5tBv6eFQ+w8zaSfsktCjYzu4oYRH/jh4USD1CYHfaQ==", "dev": true, "dependencies": { - "@cucumber/messages": "^16.0.1", - "commander": "7.2.0", - "source-map-support": "0.5.19" + "@cucumber/query": "^13.0.2", + "@teppeis/multimaps": "^3.0.0", + "luxon": "^3.5.0", + "xmlbuilder": "^15.1.1" }, - "bin": { - "cucumber-html-formatter": "bin/cucumber-html-formatter.js" + "peerDependencies": { + "@cucumber/messages": "*" } }, - "node_modules/@cucumber/html-formatter/node_modules/@cucumber/messages": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-16.0.1.tgz", - "integrity": "sha512-80JcaAfQragFqR1rMhRwiqWL9HcR6Z4LDD2mfF0Lxg/lFkCNvmWa9Jl10NUNfFXYD555NKPzP/8xFo55abw8TQ==", + "node_modules/@cucumber/junit-xml-formatter/node_modules/luxon": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.6.1.tgz", + "integrity": "sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==", "dev": true, - "dependencies": { - "@types/uuid": "8.3.0", - "class-transformer": "0.4.0", - "reflect-metadata": "0.1.13", - "uuid": "8.3.2" - } - }, - "node_modules/@cucumber/html-formatter/node_modules/@types/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", - "dev": true - }, - "node_modules/@cucumber/html-formatter/node_modules/class-transformer": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.4.0.tgz", - "integrity": "sha512-ETWD/H2TbWbKEi7m9N4Km5+cw1hNcqJSxlSYhsLsNjQzWWiZIYA1zafxpK9PwVfaZ6AqR5rrjPVUBGESm5tQUA==", - "dev": true - }, - "node_modules/@cucumber/html-formatter/node_modules/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 - }, - "node_modules/@cucumber/html-formatter/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "bin": { - "uuid": "dist/bin/uuid" + "engines": { + "node": ">=12" } }, "node_modules/@cucumber/message-streams": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@cucumber/message-streams/-/message-streams-2.1.0.tgz", - "integrity": "sha512-Yh3mw3qv6QL9NI/ihkZF8V9MX2GbnR6oktv34kC3uAbrQy9d/b2SZ3HNjG3J9JQqpV4B7Om3SPElJYIeo66TrA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@cucumber/message-streams/-/message-streams-4.0.1.tgz", + "integrity": "sha512-Kxap9uP5jD8tHUZVjTWgzxemi/0uOsbGjd4LBOSxcJoOCRbESFwemUzilJuzNTB8pcTQUh8D5oudUyxfkJOKmA==", "dev": true, - "dependencies": { - "@cucumber/messages": "^16.0.1" - } - }, - "node_modules/@cucumber/message-streams/node_modules/@cucumber/messages": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-16.0.1.tgz", - "integrity": "sha512-80JcaAfQragFqR1rMhRwiqWL9HcR6Z4LDD2mfF0Lxg/lFkCNvmWa9Jl10NUNfFXYD555NKPzP/8xFo55abw8TQ==", - "dev": true, - "dependencies": { - "@types/uuid": "8.3.0", - "class-transformer": "0.4.0", - "reflect-metadata": "0.1.13", - "uuid": "8.3.2" - } - }, - "node_modules/@cucumber/message-streams/node_modules/@types/uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", - "dev": true - }, - "node_modules/@cucumber/message-streams/node_modules/class-transformer": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.4.0.tgz", - "integrity": "sha512-ETWD/H2TbWbKEi7m9N4Km5+cw1hNcqJSxlSYhsLsNjQzWWiZIYA1zafxpK9PwVfaZ6AqR5rrjPVUBGESm5tQUA==", - "dev": true - }, - "node_modules/@cucumber/message-streams/node_modules/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 - }, - "node_modules/@cucumber/message-streams/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "bin": { - "uuid": "dist/bin/uuid" + "peerDependencies": { + "@cucumber/messages": ">=17.1.1" } }, "node_modules/@cucumber/messages": { - "version": "27.0.2", - "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.0.2.tgz", - "integrity": "sha512-jo2B+vYXmpuLOKh6Gc8loHl2E8svCkLvEXLVgFwVHqKWZJWBTa9yTRCPmZIxrz4fnO7Pr3N3vKQCPu73/gjlVQ==", + "version": "27.2.0", + "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz", + "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==", "dev": true, "peer": true, "dependencies": { "@types/uuid": "10.0.0", "class-transformer": "0.5.1", "reflect-metadata": "0.2.2", - "uuid": "10.0.0" + "uuid": "11.0.5" } }, "node_modules/@cucumber/pretty-formatter": { @@ -2683,16 +2472,475 @@ "@cucumber/messages": "*" } }, + "node_modules/@cucumber/query": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/@cucumber/query/-/query-13.2.0.tgz", + "integrity": "sha512-S3g4u+2u/vo444bR1xL0+oVZmF8zb9QZ3MoiNF4GjBt6gG7Kf4S3NyJKjGUAQfESTb8oumOR1YMKHbv79FzA5w==", + "dev": true, + "dependencies": { + "@teppeis/multimaps": "3.0.0" + }, + "peerDependencies": { + "@cucumber/messages": "*" + } + }, "node_modules/@cucumber/tag-expressions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-3.0.1.tgz", - "integrity": "sha512-OGCXaJ1BQXmQ5b9pw+JYsBGumK2/LPZiLmbj1o1JFVeSNs2PY8WPQFSyXrskhrHz5Nd/6lYg7lvGMtFHOncC4w==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.1.1.tgz", + "integrity": "sha512-0oj5KTzf2DsR3DhL3hYeI9fP3nyKzs7TQdpl54uJelJ3W3Hlyyet2Hib+8LK7kNnqJsXENnJg9zahRYyrtvNEg==", "dev": true }, + "node_modules/@diplodoc/cut-extension": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@diplodoc/cut-extension/-/cut-extension-0.7.3.tgz", + "integrity": "sha512-iWKGMdgeB0Z1DCSoh9LixIydmnPUHNYQscoVDavDZDgPqy+I33EHb9LBrj/MSzYK/aBHR08TRsyTCnLa1qikWg==", + "dependencies": { + "@diplodoc/directive": "^0.3.0", + "@diplodoc/utils": "^2.0.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, + "node_modules/@diplodoc/directive": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@diplodoc/directive/-/directive-0.3.2.tgz", + "integrity": "sha512-eIKI0T71FLzqq3UUYncS1U86BmpMVEkMgx+sqpIPcZEFMkGKNHRSzTzVDKdBi4EAEyuGCFoWgE7TLqWH5uH/UQ==", + "dependencies": { + "markdown-it-directive": "2.0.5" + } + }, + "node_modules/@diplodoc/file-extension": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@diplodoc/file-extension/-/file-extension-0.2.1.tgz", + "integrity": "sha512-4m9ZcQwmeHw0t2t5vv5GGxKfUifOdpf4Idb9a/Rfkxl6pqGnk0rnZ0xwXrruQEwinkQIBL4TCl2YN3SKGaBrjQ==", + "dependencies": { + "@diplodoc/directive": "^0.3.0" + }, + "peerDependencies": { + "markdown-it": "^13.0.0" + } + }, + "node_modules/@diplodoc/tabs-extension": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@diplodoc/tabs-extension/-/tabs-extension-3.7.2.tgz", + "integrity": "sha512-dJJe+JnM6HIMc58JS41lIlWIquwaAXDRgOqQuUleNDnxiYFUTDbpOMa6ZYJzg++dqBjTsbL4Y6le7/+mx5Ruzw==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, + "node_modules/@diplodoc/transform": { + "version": "4.57.2", + "resolved": "https://registry.npmjs.org/@diplodoc/transform/-/transform-4.57.2.tgz", + "integrity": "sha512-EKBvf2+RkxYCdO7STV17GxEQA3AtPQwyuvGeYmyrBXxA+b/CtyrZOTE1R34XJqUb6H4wkyLPnWJQNqN7LC9SGg==", + "hasInstallScript": true, + "dependencies": { + "@diplodoc/cut-extension": "^0.7.2", + "@diplodoc/file-extension": "^0.2.1", + "@diplodoc/tabs-extension": "^3.7.2", + "chalk": "^4.1.2", + "cheerio": "^1.0.0", + "css": "^3.0.0", + "cssfilter": "0.0.10", + "get-root-node-polyfill": "1.0.0", + "github-slugger": "^1.5.0", + "js-yaml": "^4.1.0", + "lodash": "4.17.21", + "markdown-it": "^13.0.2", + "markdown-it-attrs": "^4.2.0", + "markdown-it-deflist": "2.1.0", + "markdown-it-meta": "0.0.1", + "markdown-it-sup": "1.0.0", + "markdownlint": "^0.32.1", + "markdownlint-rule-helpers": "0.17.2", + "quick-lru": "^5.1.1", + "sanitize-html": "^2.11.0", + "slugify": "1.6.6", + "svgo": "^3.2.0", + "ts-dedent": "^2.2.0" + }, + "peerDependencies": { + "highlight.js": "^10.0.3 || ^11" + }, + "peerDependenciesMeta": { + "highlight.js": { + "optional": true + } + } + }, + "node_modules/@diplodoc/utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@diplodoc/utils/-/utils-2.1.0.tgz", + "integrity": "sha512-1XfZSb0gPLqSRGwxlLHcXo4c59bcFomcEaDM5v2S/aFDhgNRfZgDGxWEbHwkIijfBB2rvFWuVgKzON0VDp2uqQ==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", - "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", + "dev": true, "dependencies": { "eslint-visitor-keys": "^3.4.3" }, @@ -2706,10 +2954,23 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@eslint-community/regexpp": { "version": "4.12.1", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } @@ -2718,6 +2979,7 @@ "version": "2.1.4", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -2740,6 +3002,7 @@ "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, "dependencies": { "type-fest": "^0.20.2" }, @@ -2754,6 +3017,7 @@ "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==", + "dev": true, "engines": { "node": ">=10" }, @@ -2762,13 +3026,62 @@ } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@floating-ui/core": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.0.tgz", + "integrity": "sha512-FRdBLykrPPA6P76GGGqlex/e7fbe0F1ykgxHYNXQsH/iTEtjMj/f9bpY5oQqbjt5VgZvgz/uKXbGuROijh3VLA==", + "dependencies": { + "@floating-ui/utils": "^0.2.9" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.0.tgz", + "integrity": "sha512-lGTor4VlXcesUMh1cupTUTDoCxMb0V6bm3CnxHzQcw8Eaf1jQbgQX4i02fYgT0vJ82tb5MZ4CZk1LRGkktJCzg==", + "dependencies": { + "@floating-ui/core": "^1.7.0", + "@floating-ui/utils": "^0.2.9" + } + }, + "node_modules/@floating-ui/react": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.27.8.tgz", + "integrity": "sha512-EQJ4Th328y2wyHR3KzOUOoTW2UKjFk53fmyahfwExnFQ8vnsMYqKc+fFPOkeYtj5tcp1DUMiNJ7BFhed7e9ONw==", + "dependencies": { + "@floating-ui/react-dom": "^2.1.2", + "@floating-ui/utils": "^0.2.9", + "tabbable": "^6.0.0" + }, + "peerDependencies": { + "react": ">=17.0.0", + "react-dom": ">=17.0.0" + } + }, + "node_modules/@floating-ui/react-dom": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.2.tgz", + "integrity": "sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==", + "dependencies": { + "@floating-ui/dom": "^1.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", + "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==" + }, "node_modules/@fluentui/react-component-event-listener": { "version": "0.63.1", "resolved": "https://registry.npmjs.org/@fluentui/react-component-event-listener/-/react-component-event-listener-0.63.1.tgz", @@ -2799,18 +3112,167 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, - "node_modules/@gar/promisify": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", - "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==" + "node_modules/@gravity-ui/i18n": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/i18n/-/i18n-1.8.0.tgz", + "integrity": "sha512-bVt/UGjL96Naw0h03QW+3z2tf6t4zvLh1j+eFzpdLlAIMeNu0dRjxn4X6EGtwhwKrfMyIfrlOqmLSroXtCNQAw==" + }, + "node_modules/@gravity-ui/icons": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/icons/-/icons-2.13.0.tgz", + "integrity": "sha512-oHWJTb8rTuZo1czZRBSggEWMmthiXeM5LBpB0GzyS1tCkNE1A7DpEvvrKUwHYVHTxpw/xWIqQCxNj7LIo2R3NQ==", + "peerDependencies": { + "react": "*" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, + "node_modules/@gravity-ui/markdown-editor": { + "version": "15.11.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/markdown-editor/-/markdown-editor-15.11.0.tgz", + "integrity": "sha512-/7PNiokD8OapDnFT8o4BqHiHa3oGTL1pbpcaJzMiTunfDnpTBl4y+mfplxS6PxM6IvSbLL6KlFUuzKkQAQmtvw==", + "dependencies": { + "@bem-react/classname": "^1.6.0", + "@bem-react/classnames": "1.3.10", + "@codemirror/autocomplete": "^6.18.4", + "@codemirror/commands": "^6.8.0", + "@codemirror/lang-markdown": "^6.3.2", + "@codemirror/language": "^6.10.8", + "@codemirror/search": "^6.5.8", + "@codemirror/state": "^6.5.1", + "@codemirror/view": "^6.36.2", + "@diplodoc/utils": "^2.1.0", + "@gravity-ui/i18n": "^1.7.0", + "@gravity-ui/icons": "^2.12.0", + "@lezer/highlight": "^1.2.1", + "@lezer/markdown": "^1.4.0", + "@types/is-number": "^7.0.1", + "@types/markdown-it": "^12.2.3", + "base64-arraybuffer": "1.0.2", + "is-number": "^7.0.0", + "lodash": "^4.17.21", + "markdown-it-attrs": "^4.2.0", + "markdown-it-color": "^2.1.1", + "markdown-it-emoji": "2.0.2", + "markdown-it-ins": "^3.0.1", + "markdown-it-mark": "^3.0.1", + "markdown-it-sub": "^1.0.0", + "prosemirror-autocomplete": "^0.4.3", + "prosemirror-codemark": "^0.4.2", + "prosemirror-commands": "^1.6.2", + "prosemirror-dropcursor": "^1.8.1", + "prosemirror-history": "^1.4.1", + "prosemirror-inputrules": "^1.4.0", + "prosemirror-keymap": "^1.2.2", + "prosemirror-model": "^1.24.1", + "prosemirror-schema-list": "^1.5.0", + "prosemirror-state": "^1.4.3", + "prosemirror-test-builder": "^1.1.1", + "prosemirror-transform": "^1.10.2", + "prosemirror-utils": "^1.2.2", + "prosemirror-view": "^1.38.0", + "react-error-boundary": "^3.1.4", + "react-hotkeys-hook": "4.5.0", + "react-use": "^17.3.2", + "ts-dedent": "2.2.0", + "tslib": "^2.3.1", + "uuid": "11.0.5" + }, + "peerDependencies": { + "@diplodoc/cut-extension": "^0.5.0 || ^0.6.1 || ^0.7.1", + "@diplodoc/file-extension": "^0.2.1", + "@diplodoc/folding-headings-extension": "^0.1.0", + "@diplodoc/html-extension": "^2.3.2", + "@diplodoc/latex-extension": "^1.0.3", + "@diplodoc/mermaid-extension": "^1.0.0", + "@diplodoc/quote-link-extension": "^0.1.1", + "@diplodoc/tabs-extension": "^3.5.1", + "@diplodoc/transform": "^4.43.0", + "@gravity-ui/uikit": "^7.1.0", + "highlight.js": "^11.8.0", + "katex": "^0.16.9", + "lowlight": "^3.0.0", + "markdown-it": "^13.0.0", + "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@diplodoc/folding-headings-extension": { + "optional": true + }, + "@diplodoc/html-extension": { + "optional": true + }, + "@diplodoc/latex-extension": { + "optional": true + }, + "@diplodoc/mermaid-extension": { + "optional": true + }, + "@diplodoc/quote-link-extension": { + "optional": true + }, + "highlight.js": { + "optional": true + }, + "lowlight": { + "optional": true + } + } + }, + "node_modules/@gravity-ui/markdown-editor/node_modules/@types/markdown-it": { + "version": "12.2.3", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", + "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", + "dependencies": { + "@types/linkify-it": "*", + "@types/mdurl": "*" + } + }, + "node_modules/@gravity-ui/uikit": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/uikit/-/uikit-7.11.0.tgz", + "integrity": "sha512-JNU6BnDt2f8kgQGuBp9YvTWURO4rMEN/CLpe9jbE+PouCFMV9aj5qb2Fqp9KOL+suAsjCe6s6Ow4UtpeyVV9KA==", + "dependencies": { + "@bem-react/classname": "^1.6.0", + "@floating-ui/react": "^0.27.7", + "@gravity-ui/i18n": "^1.8.0", + "@gravity-ui/icons": "^2.13.0", + "@tanstack/react-virtual": "^3.13.6", + "blueimp-md5": "^2.19.0", + "lodash": "^4.17.21", + "rc-slider": "^11.1.8", + "react-beautiful-dnd": "^13.1.1", + "react-transition-group": "^4.4.5", + "react-virtualized-auto-sizer": "^1.0.26", + "react-window": "^1.8.11", + "tabbable": "^6.2.0", + "tslib": "^2.8.1" + }, + "peerDependencies": { + "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/@highlightjs/cdn-assets": { + "version": "11.11.1", + "resolved": "https://registry.npmjs.org/@highlightjs/cdn-assets/-/cdn-assets-11.11.1.tgz", + "integrity": "sha512-VEPdHzwelZ12hEX18BHduqxMZGolcUsrbeokHYxOUIm8X2+M7nx5QPtPeQgRxR9XjhdLv4/7DD5BWOlSrJ3k7Q==", + "engines": { + "node": ">=12.0.0" + } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", "deprecated": "Use @eslint/config-array instead", + "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", + "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" }, @@ -2822,6 +3284,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, "engines": { "node": ">=12.22" }, @@ -2834,12 +3297,14 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead" + "deprecated": "Use @eslint/object-schema instead", + "dev": true }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -2856,6 +3321,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, "engines": { "node": ">=12" }, @@ -2863,21 +3329,11 @@ "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -2894,6 +3350,7 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -2904,26 +3361,11 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -2939,26 +3381,16 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "dependencies": { "sprintf-js": "~1.0.2" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -2967,115 +3399,69 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, "engines": { "node": ">=8" } }, "node_modules/@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "ci-info": "^3.2.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", "micromatch": "^4.0.4", - "rimraf": "^3.0.0", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -3087,81 +3473,110 @@ } }, "node_modules/@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "^27.5.1" + "jest-mock": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", "exit": "^0.1.2", - "glob": "^7.1.2", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-instrument": "^6.0.0", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "slash": "^3.0.0", - "source-map": "^0.6.0", "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -3172,131 +3587,158 @@ } } }, - "node_modules/@jest/reporters/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "node_modules/@jest/reporters/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jest/reporters/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/@jest/schemas": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", - "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, "dependencies": { - "@sinclair/typebox": "^0.24.1" + "@sinclair/typebox": "^0.27.8" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/source-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" + "graceful-fs": "^4.2.9" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/source-map/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, "dependencies": { - "@jest/test-result": "^27.5.1", + "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "write-file-atomic": "^4.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/transform/node_modules/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==" - }, - "node_modules/@jest/transform/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, "dependencies": { + "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^16.0.0", + "@types/yargs": "^17.0.8", "chalk": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -3322,15 +3764,6 @@ "node": ">=6.0.0" } }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", - "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25" - } - }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", @@ -3350,39 +3783,80 @@ "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==" }, - "node_modules/@leichtgewicht/ip-codec": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz", - "integrity": "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==" + "node_modules/@lezer/common": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.3.tgz", + "integrity": "sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==" + }, + "node_modules/@lezer/css": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.1.11.tgz", + "integrity": "sha512-FuAnusbLBl1SEAtfN8NdShxYJiESKw9LAFysfea1T96jD3ydBn12oYjaSG1a04BQRIUd93/0D8e5CV1cUMkmQg==", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0" + } + }, + "node_modules/@lezer/highlight": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz", + "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==", + "dependencies": { + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@lezer/html": { + "version": "1.3.10", + "resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.10.tgz", + "integrity": "sha512-dqpT8nISx/p9Do3AchvYGV3qYc4/rKr3IBZxlHmpIKam56P47RSHkSF5f13Vu9hebS1jM0HmtJIwLbWz1VIY6w==", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0" + } + }, + "node_modules/@lezer/javascript": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.5.1.tgz", + "integrity": "sha512-ATOImjeVJuvgm3JQ/bpo2Tmv55HSScE2MTPnKRMRIPx2cLhHGyX2VnqpHhtIV1tVzIjZDbcWQm+NCTF40ggZVw==", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.1.3", + "@lezer/lr": "^1.3.0" + } + }, + "node_modules/@lezer/lr": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz", + "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==", + "dependencies": { + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@lezer/markdown": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.4.3.tgz", + "integrity": "sha512-kfw+2uMrQ/wy/+ONfrH83OkdFNM0ye5Xq96cLlaCy7h5UT9FO54DU4oRoIc0CSBh5NWmWuiIJA7NGLMJbQ+Oxg==", + "dependencies": { + "@lezer/common": "^1.0.0", + "@lezer/highlight": "^1.0.0" + } + }, + "node_modules/@marijn/find-cluster-break": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz", + "integrity": "sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==" }, "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, "dependencies": { "eslint-scope": "5.1.1" } }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -3415,58 +3889,35 @@ "node": ">= 8" } }, - "node_modules/@npmcli/fs": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", - "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", - "dependencies": { - "@gar/promisify": "^1.1.3", - "semver": "^7.3.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/@npmcli/fs/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@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==", - "deprecated": "This functionality has been moved to @npmcli/fs", - "dependencies": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, "optional": true, "engines": { "node": ">=14" } }, + "node_modules/@pkgr/core": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.4.tgz", + "integrity": "sha512-ROFF39F6ZrnzSUEmQQZUar0Jt4xVoP9WnDRdWwF4NNcXs3xBTLgBUDoOwW141y1jP+S8nahIbdxbFC7IShw9Iw==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, "node_modules/@playwright/test": { - "version": "1.49.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.0.tgz", - "integrity": "sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.52.0.tgz", + "integrity": "sha512-uh6W7sb55hl7D6vsAeA+V2p5JnlAqzhqFyF0VcJkKZXkgnFcVG9PziERRHQfPLfNGx1C292a4JqbWzhR8L4R1g==", "dev": true, "dependencies": { - "playwright": "1.49.0" + "playwright": "1.52.0" }, "bin": { "playwright": "cli.js" @@ -3475,53 +3926,6 @@ "node": ">=18" } }, - "node_modules/@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.5.15", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.15.tgz", - "integrity": "sha512-LFWllMA55pzB9D34w/wXUCf8+c+IYKuJDgxiZ3qMhl64KRMBHYM1I3VdGaD2BV5FNPV2/S2596bppxHbv2ZydQ==", - "dependencies": { - "ansi-html": "^0.0.9", - "core-js-pure": "^3.23.3", - "error-stack-parser": "^2.0.6", - "html-entities": "^2.1.0", - "loader-utils": "^2.0.4", - "schema-utils": "^4.2.0", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">= 10.13" - }, - "peerDependencies": { - "@types/webpack": "4.x || 5.x", - "react-refresh": ">=0.10.0 <1.0.0", - "sockjs-client": "^1.4.0", - "type-fest": ">=0.17.0 <5.0.0", - "webpack": ">=4.43.0 <6.0.0", - "webpack-dev-server": "3.x || 4.x || 5.x", - "webpack-hot-middleware": "2.x", - "webpack-plugin-serve": "0.x || 1.x" - }, - "peerDependenciesMeta": { - "@types/webpack": { - "optional": true - }, - "sockjs-client": { - "optional": true - }, - "type-fest": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - }, - "webpack-hot-middleware": { - "optional": true - }, - "webpack-plugin-serve": { - "optional": true - } - } - }, "node_modules/@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -3582,96 +3986,311 @@ "integrity": "sha512-1dgmkh+3so0+LlBWRhGA33ua4MYr7tUOj+a9Si28vUi0IUFNbff1T3sgpeDJI/LaC75bBYnQ0A3wXjn0OrRNBA==" }, "node_modules/@remix-run/router": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.21.0.tgz", - "integrity": "sha512-xfSkCAchbdG5PnbrKqFWwia4Bi61nH+wm8wLEqfHDyp7Y3dZzgqS2itV8i4gAq9pC2HsTpwyBC6Ds8VHZ96JlA==", + "version": "1.23.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.0.tgz", + "integrity": "sha512-O3rHJzAQKamUz1fvE0Qaw0xSFqsA/yafi2iqeE0pvdFtCO1viYx8QL6f3Ln/aCCTLxs68SLf0KPM9eSeM8yBnA==", "engines": { "node": ">=14.0.0" } }, - "node_modules/@rollup/plugin-babel": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", - "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", + "node_modules/@rollup/plugin-inject": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz", + "integrity": "sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==", "dependencies": { - "@babel/helper-module-imports": "^7.10.4", - "@rollup/pluginutils": "^3.1.0" + "@rollup/pluginutils": "^5.0.1", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.3" }, "engines": { - "node": ">= 10.0.0" + "node": ">=14.0.0" }, "peerDependencies": { - "@babel/core": "^7.0.0", - "@types/babel__core": "^7.1.9", - "rollup": "^1.20.0||^2.0.0" + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" }, "peerDependenciesMeta": { - "@types/babel__core": { + "rollup": { "optional": true } } }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "11.2.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", - "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "builtin-modules": "^3.1.0", - "deepmerge": "^4.2.2", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/@rollup/plugin-replace": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", - "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "magic-string": "^0.25.7" - }, - "peerDependencies": { - "rollup": "^1.20.0 || ^2.0.0" - } - }, "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz", + "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==", "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" }, "engines": { - "node": ">= 8.0.0" + "node": ">=14.0.0" }, "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } } }, - "node_modules/@rollup/pluginutils/node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" + "node_modules/@rollup/pluginutils/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.2.tgz", + "integrity": "sha512-JkdNEq+DFxZfUwxvB58tHMHBHVgX23ew41g1OQinthJ+ryhdRk67O31S7sYw8u2lTjHUPFxwar07BBt1KHp/hg==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.2.tgz", + "integrity": "sha512-13unNoZ8NzUmnndhPTkWPWbX3vtHodYmy+I9kuLxN+F+l+x3LdVF7UCu8TWVMt1POHLh6oDHhnOA04n8oJZhBw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.2.tgz", + "integrity": "sha512-Gzf1Hn2Aoe8VZzevHostPX23U7N5+4D36WJNHK88NZHCJr7aVMG4fadqkIf72eqVPGjGc0HJHNuUaUcxiR+N/w==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.2.tgz", + "integrity": "sha512-47N4hxa01a4x6XnJoskMKTS8XZ0CZMd8YTbINbi+w03A2w4j1RTlnGHOz/P0+Bg1LaVL6ufZyNprSg+fW5nYQQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.2.tgz", + "integrity": "sha512-8t6aL4MD+rXSHHZUR1z19+9OFJ2rl1wGKvckN47XFRVO+QL/dUSpKA2SLRo4vMg7ELA8pzGpC+W9OEd1Z/ZqoQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.2.tgz", + "integrity": "sha512-C+AyHBzfpsOEYRFjztcYUFsH4S7UsE9cDtHCtma5BK8+ydOZYgMmWg1d/4KBytQspJCld8ZIujFMAdKG1xyr4Q==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.2.tgz", + "integrity": "sha512-de6TFZYIvJwRNjmW3+gaXiZ2DaWL5D5yGmSYzkdzjBDS3W+B9JQ48oZEsmMvemqjtAFzE16DIBLqd6IQQRuG9Q==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.2.tgz", + "integrity": "sha512-urjaEZubdIkacKc930hUDOfQPysezKla/O9qV+O89enqsqUmQm8Xj8O/vh0gHg4LYfv7Y7UsE3QjzLQzDYN1qg==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.2.tgz", + "integrity": "sha512-KlE8IC0HFOC33taNt1zR8qNlBYHj31qGT1UqWqtvR/+NuCVhfufAq9fxO8BMFC22Wu0rxOwGVWxtCMvZVLmhQg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.2.tgz", + "integrity": "sha512-j8CgxvfM0kbnhu4XgjnCWJQyyBOeBI1Zq91Z850aUddUmPeQvuAy6OiMdPS46gNFgy8gN1xkYyLgwLYZG3rBOg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.2.tgz", + "integrity": "sha512-Ybc/1qUampKuRF4tQXc7G7QY9YRyeVSykfK36Y5Qc5dmrIxwFhrOzqaVTNoZygqZ1ZieSWTibfFhQ5qK8jpWxw==", + "cpu": [ + "loong64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.2.tgz", + "integrity": "sha512-3FCIrnrt03CCsZqSYAOW/k9n625pjpuMzVfeI+ZBUSDT3MVIFDSPfSUgIl9FqUftxcUXInvFah79hE1c9abD+Q==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.2.tgz", + "integrity": "sha512-QNU7BFHEvHMp2ESSY3SozIkBPaPBDTsfVNGx3Xhv+TdvWXFGOSH2NJvhD1zKAT6AyuuErJgbdvaJhYVhVqrWTg==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.2.tgz", + "integrity": "sha512-5W6vNYkhgfh7URiXTO1E9a0cy4fSgfE4+Hl5agb/U1sa0kjOLMLC1wObxwKxecE17j0URxuTrYZZME4/VH57Hg==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.2.tgz", + "integrity": "sha512-B7LKIz+0+p348JoAL4X/YxGx9zOx3sR+o6Hj15Y3aaApNfAshK8+mWZEf759DXfRLeL2vg5LYJBB7DdcleYCoQ==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.2.tgz", + "integrity": "sha512-lG7Xa+BmBNwpjmVUbmyKxdQJ3Q6whHjMjzQplOs5Z+Gj7mxPtWakGHqzMqNER68G67kmCX9qX57aRsW5V0VOng==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.2.tgz", + "integrity": "sha512-tD46wKHd+KJvsmije4bUskNuvWKFcTOIM9tZ/RrmIvcXnbi0YK/cKS9FzFtAm7Oxi2EhV5N2OpfFB348vSQRXA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.2.tgz", + "integrity": "sha512-Bjv/HG8RRWLNkXwQQemdsWw4Mg+IJ29LK+bJPW2SCzPKOUaMmPEppQlu/Fqk1d7+DX3V7JbFdbkh/NMmurT6Pg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.2.tgz", + "integrity": "sha512-dt1llVSGEsGKvzeIO76HToiYPNPYPkmjhMHhP00T9S4rDern8P2ZWvWAQUEJ+R1UdMWJ/42i/QqJ2WV765GZcA==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.2.tgz", + "integrity": "sha512-bwspbWB04XJpeElvsp+DCylKfF4trJDa2Y9Go8O6A7YLX2LIKGcNK/CYImJN6ZP4DcuOHB4Utl3iCbnR62DudA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] }, "node_modules/@rtsao/scc": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", - "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==" - }, - "node_modules/@rushstack/eslint-patch": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz", - "integrity": "sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==" + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true }, "node_modules/@semantic-ui-react/event-stack": { "version": "3.1.3", @@ -3687,174 +4306,187 @@ } }, "node_modules/@sinclair/typebox": { - "version": "0.24.51", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", - "integrity": "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true }, "node_modules/@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, "dependencies": { "type-detect": "4.0.8" } }, - "node_modules/@sinonjs/commons/node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "engines": { - "node": ">=4" - } - }, "node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/@surma/rollup-plugin-off-main-thread": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", - "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", - "dependencies": { - "ejs": "^3.1.6", - "json5": "^2.2.0", - "magic-string": "^0.25.0", - "string.prototype.matchall": "^4.0.6" + "@sinonjs/commons": "^3.0.0" } }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz", - "integrity": "sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz", - "integrity": "sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz", - "integrity": "sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", + "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz", - "integrity": "sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz", + "integrity": "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz", - "integrity": "sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz", + "integrity": "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz", - "integrity": "sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz", + "integrity": "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz", - "integrity": "sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz", + "integrity": "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz", - "integrity": "sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz", + "integrity": "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==", "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/babel-preset": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz", - "integrity": "sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-8.1.0.tgz", + "integrity": "sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==", "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", - "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", - "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", - "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", - "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", - "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", - "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + "@svgr/babel-plugin-add-jsx-attribute": "8.0.0", + "@svgr/babel-plugin-remove-jsx-attribute": "8.0.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "8.0.0", + "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", + "@svgr/babel-plugin-svg-dynamic-title": "8.0.0", + "@svgr/babel-plugin-svg-em-dimensions": "8.0.0", + "@svgr/babel-plugin-transform-react-native-svg": "8.1.0", + "@svgr/babel-plugin-transform-svg-component": "8.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@svgr/core": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz", - "integrity": "sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-8.1.0.tgz", + "integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==", "dependencies": { - "@svgr/plugin-jsx": "^5.5.0", + "@babel/core": "^7.21.3", + "@svgr/babel-preset": "8.1.0", "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.0" + "cosmiconfig": "^8.1.3", + "snake-case": "^3.0.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3873,14 +4505,15 @@ } }, "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", - "integrity": "sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz", + "integrity": "sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==", "dependencies": { - "@babel/types": "^7.12.6" + "@babel/types": "^7.21.3", + "entities": "^4.4.0" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3888,178 +4521,58 @@ } }, "node_modules/@svgr/plugin-jsx": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz", - "integrity": "sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz", + "integrity": "sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==", "dependencies": { - "@babel/core": "^7.12.3", - "@svgr/babel-preset": "^5.5.0", - "@svgr/hast-util-to-babel-ast": "^5.5.0", - "svg-parser": "^2.0.2" + "@babel/core": "^7.21.3", + "@svgr/babel-preset": "8.1.0", + "@svgr/hast-util-to-babel-ast": "8.0.0", + "svg-parser": "^2.0.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@svgr/core": "*" } }, - "node_modules/@svgr/plugin-svgo": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz", - "integrity": "sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ==", + "node_modules/@tanstack/react-virtual": { + "version": "3.13.8", + "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.13.8.tgz", + "integrity": "sha512-meS2AanUg50f3FBSNoAdBSRAh8uS0ue01qm7zrw65KGJtiXB9QXfybqZwkh4uFpRv2iX/eu5tjcH5wqUpwYLPg==", "dependencies": { - "cosmiconfig": "^7.0.0", - "deepmerge": "^4.2.2", - "svgo": "^1.2.2" - }, - "engines": { - "node": ">=10" + "@tanstack/virtual-core": "3.13.8" }, "funding": { "type": "github", - "url": "https://github.com/sponsors/gregberge" + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, - "node_modules/@svgr/webpack": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", - "integrity": "sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==", - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/plugin-transform-react-constant-elements": "^7.12.1", - "@babel/preset-env": "^7.12.1", - "@babel/preset-react": "^7.12.5", - "@svgr/core": "^5.5.0", - "@svgr/plugin-jsx": "^5.5.0", - "@svgr/plugin-svgo": "^5.5.0", - "loader-utils": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, + "node_modules/@tanstack/virtual-core": { + "version": "3.13.8", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.13.8.tgz", + "integrity": "sha512-BT6w89Hqy7YKaWewYzmecXQzcJh6HTBbKYJIIkMaNU49DZ06LoTV3z32DWWEdUsgW6n1xTmwTLs4GtWrZC261w==", "funding": { "type": "github", - "url": "https://github.com/sponsors/gregberge" + "url": "https://github.com/sponsors/tannerlinsley" } }, - "node_modules/@testing-library/dom": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", - "integrity": "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.3.0", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@testing-library/jest-dom": { - "version": "6.6.3", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.6.3.tgz", - "integrity": "sha512-IteBhl4XqYNkM54f4ejhLRJiZNqcSCoXUOG2CPK7qbD322KjQozM4kHQOfkG2oln9b9HTYqs+Sae8vBATubxxA==", - "dev": true, - "dependencies": { - "@adobe/css-tools": "^4.4.0", - "aria-query": "^5.0.0", - "chalk": "^3.0.0", - "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.6.3", - "lodash": "^4.17.21", - "redent": "^3.0.0" - }, - "engines": { - "node": ">=14", - "npm": ">=6", - "yarn": ">=1" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/chalk": { + "node_modules/@teppeis/multimaps": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", - "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", - "dev": true - }, - "node_modules/@testing-library/react": { - "version": "15.0.7", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-15.0.7.tgz", - "integrity": "sha512-cg0RvEdD1TIhhkm1IeYMQxrzy0MtUNfa3minv4MjbgcYzJAZ7yD0i0lwoPOTPr+INtiXFezt2o8xMSnyHhEn2Q==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.12.5", - "@testing-library/dom": "^10.0.0", - "@types/react-dom": "^18.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@types/react": "^18.0.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@testing-library/user-event": { - "version": "14.5.2", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.5.2.tgz", - "integrity": "sha512-YAh82Wh4TIrxYLmfGcixwD18oIjyC1pFQC2Y01F2lzV2HTMiYrI0nze0FD0ocB//CKS/7jIUgae+adPqxK5yCQ==", + "resolved": "https://registry.npmjs.org/@teppeis/multimaps/-/multimaps-3.0.0.tgz", + "integrity": "sha512-ID7fosbc50TbT0MK0EG12O+gAP3W3Aa/Pz4DaTtQtEvlc9Odaqi0de+xuZ7Li2GtK4HzEX7IuRWS/JmZLksR3Q==", "dev": true, "engines": { - "node": ">=12", - "npm": ">=6" - }, - "peerDependencies": { - "@testing-library/dom": ">=7.21.4" - } - }, - "node_modules/@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==", - "engines": { - "node": ">= 10" + "node": ">=14" } }, "node_modules/@trysound/sax": { @@ -4070,12 +4583,6 @@ "node": ">=10.13.0" } }, - "node_modules/@types/aria-query": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", - "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", - "dev": true - }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -4089,9 +4596,9 @@ } }, "node_modules/@types/babel__generator": { - "version": "7.6.8", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", - "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dependencies": { "@babel/types": "^7.0.0" } @@ -4106,171 +4613,60 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", - "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", + "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", "dependencies": { "@babel/types": "^7.20.7" } }, - "node_modules/@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/bonjour": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.13.tgz", - "integrity": "sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/codemirror": { - "version": "5.60.15", - "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.15.tgz", - "integrity": "sha512-dTOvwEQ+ouKJ/rE9LT1Ue2hmP6H1mZv5+CCnNWu2qtiOe2LQa9lCprEY20HxiDmV/Bxh+dXjywmy5aKvoGjULA==", - "dependencies": { - "@types/tern": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect-history-api-fallback": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz", - "integrity": "sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw==", - "dependencies": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "node_modules/@types/debug": { - "version": "4.1.12", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", - "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/eslint": { - "version": "8.56.12", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.12.tgz", - "integrity": "sha512-03ruubjWyOHlmljCVoxSuNDdmfZDzsrrz0P2LeJsOXr+ZwFQ+0yQIwNCwt/GYhV7Z31fgtXJTAEs+FYlEL851g==", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==" - }, - "node_modules/@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.1.tgz", - "integrity": "sha512-CRICJIl0N5cXDONAdlTv5ShATZ4HEwk6kDDIW2/w9qOWKg+NU/5F8wYRWCrONad0/UKkloNSmmyN/wX4rtpbVA==", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/express/node_modules/@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", + "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==" }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/hast": { - "version": "2.3.10", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz", - "integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", "dependencies": { - "@types/unist": "^2" + "@types/unist": "*" } }, "node_modules/@types/hoist-non-react-statics": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.5.tgz", - "integrity": "sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg==", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.6.tgz", + "integrity": "sha512-lPByRJUer/iN/xa4qpyL0qmL11DqNW81iU/IG1S3uvRUq4oKagz8VCxZjiWkumgt66YT3vOdDgZ0o32sGKtCEw==", "dependencies": { "@types/react": "*", "hoist-non-react-statics": "^3.3.0" } }, - "node_modules/@types/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" - }, - "node_modules/@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==" - }, - "node_modules/@types/http-proxy": { - "version": "1.17.15", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.15.tgz", - "integrity": "sha512-25g5atgiVNTIv0LBDTg1H74Hvayx0ajtJPLLcYE3whFv75J0pWNtOBzaXJQgDTmrX1bx5U9YC2w/n65BN1HwRQ==", - "dependencies": { - "@types/node": "*" - } + "node_modules/@types/is-number": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@types/is-number/-/is-number-7.0.5.tgz", + "integrity": "sha512-NGmRpXeZg9qDX+AlmBeq4Xk9ruTMj0KfzspDCxTLAcpbts2EjojAvY6A1eumKHInMwGY4xHM8ILA9CHRHfUUWA==" }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==" + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, "dependencies": { "@types/istanbul-lib-coverage": "*" } @@ -4279,117 +4675,65 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, "dependencies": { "@types/istanbul-lib-report": "*" } }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" + "node_modules/@types/js-cookie": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@types/js-cookie/-/js-cookie-2.2.7.tgz", + "integrity": "sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==" }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true }, - "node_modules/@types/marked": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@types/marked/-/marked-4.3.2.tgz", - "integrity": "sha512-a79Yc3TOk6dGdituy8hmTTJXjOkZ7zsFYV10L337ttq/rec8lRMDBpV7fL3uLx6TgbFCa5DU/h8FmIBQPSbU0w==" + "node_modules/@types/linkify-it": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.5.tgz", + "integrity": "sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==" }, - "node_modules/@types/mdast": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", - "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "node_modules/@types/markdown-it": { + "version": "13.0.9", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-13.0.9.tgz", + "integrity": "sha512-1XPwR0+MgXLWfTn9gCsZ55AHOKW1WN+P9vr0PaQh5aerR9LLQXUbjfEAFhjmEmyoYFWAyuN2Mqkn40MZ4ukjBw==", + "peer": true, "dependencies": { - "@types/unist": "*" + "@types/linkify-it": "^3", + "@types/mdurl": "^1" } }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==" - }, - "node_modules/@types/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==" - }, - "node_modules/@types/ms": { - "version": "0.7.34", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", - "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" + "node_modules/@types/mdurl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.5.tgz", + "integrity": "sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==" }, "node_modules/@types/node": { - "version": "22.9.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.1.tgz", - "integrity": "sha512-p8Yy/8sw1caA8CdRIQBG5tiLHmxtQKObCijiAa9Ez+d4+PRffM4054xbju0msf+cvhJpnFEeNjxmVT/0ipktrg==", + "version": "22.15.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.17.tgz", + "integrity": "sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw==", + "devOptional": true, "dependencies": { - "undici-types": "~6.19.8" - } - }, - "node_modules/@types/node-forge": { - "version": "1.3.11", - "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz", - "integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==", - "dependencies": { - "@types/node": "*" + "undici-types": "~6.21.0" } }, "node_modules/@types/normalize-package-data": { "version": "2.4.4", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", - "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==" - }, - "node_modules/@types/parse-json": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", - "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==" - }, - "node_modules/@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" - }, - "node_modules/@types/prop-types": { - "version": "15.7.13", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", - "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==" - }, - "node_modules/@types/q": { - "version": "1.5.8", - "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.8.tgz", - "integrity": "sha512-hroOstUScF6zhIi+5+x0dzqrHA1EJi+Irri6b1fxolMTqqHIV/Cg77EtnQcZqZCu8hR3mX2BzIxN4/GzI68Kfw==" - }, - "node_modules/@types/qs": { - "version": "6.9.17", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.17.tgz", - "integrity": "sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==" + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", + "dev": true }, "node_modules/@types/react": { - "version": "18.3.12", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", - "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", + "version": "19.1.3", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.3.tgz", + "integrity": "sha512-dLWQ+Z0CkIvK1J8+wrDPwGxEYFA4RAyHoZPxHVGspYmFVnwGSNT24cGIhFJrtfRnWVuW8X7NO52gCXmhkVUWGQ==", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, - "node_modules/@types/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==", - "devOptional": true, - "dependencies": { - "@types/react": "*" - } - }, "node_modules/@types/react-redux": { "version": "7.1.34", "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-7.1.34.tgz", @@ -4401,81 +4745,16 @@ "redux": "^4.0.0" } }, - "node_modules/@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" - }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==" - }, - "node_modules/@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-index": { - "version": "1.9.4", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.4.tgz", - "integrity": "sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug==", - "dependencies": { - "@types/express": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "node_modules/@types/sockjs": { - "version": "0.3.36", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.36.tgz", - "integrity": "sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q==", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==" - }, - "node_modules/@types/tern": { - "version": "0.23.9", - "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.9.tgz", - "integrity": "sha512-ypzHFE/wBzh+BlH6rrBgS5I/Z7RD21pGhZ2rltb/+ZrVM1awdZwjx7hE5XfuYgHWk9uvV5HLZN3SloevCAp3Bw==", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@types/trusted-types": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true }, "node_modules/@types/unist": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", - "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" }, "node_modules/@types/use-sync-external-store": { "version": "0.0.3", @@ -4486,21 +4765,13 @@ "version": "10.0.0", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", - "dev": true, - "peer": true - }, - "node_modules/@types/ws": { - "version": "8.5.13", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", - "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==", - "dependencies": { - "@types/node": "*" - } + "dev": true }, "node_modules/@types/yargs": { - "version": "16.0.9", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.9.tgz", - "integrity": "sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==", + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, "dependencies": { "@types/yargs-parser": "*" } @@ -4508,460 +4779,47 @@ "node_modules/@types/yargs-parser": { "version": "21.0.3", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/experimental-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz", - "integrity": "sha512-RTXpeB3eMkpoclG3ZHft6vG/Z30azNHuqY6wKPBHlVMZFuEvrtlEDe8gMqDb+SO+9hjC/pLekeSCryf9vMZlCw==", - "dependencies": { - "@typescript-eslint/utils": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", - "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", - "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true }, "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true }, - "node_modules/@webassemblyjs/ast": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", - "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", + "node_modules/@vitejs/plugin-react": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.1.tgz", + "integrity": "sha512-IpEm5ZmeXAP/osiBXVVP5KjFMzbWOonMs0NaQQl+xYnUAcq4oHUBsF2+p4MgKWG4YMmFYJU8A6sxRPuowllm6w==", "dependencies": { - "@webassemblyjs/helper-numbers": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", - "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", - "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", - "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", - "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.13.2", - "@webassemblyjs/helper-api-error": "1.13.2", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", - "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", - "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/wasm-gen": "1.14.1" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", - "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", - "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", - "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", - "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/helper-wasm-section": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-opt": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1", - "@webassemblyjs/wast-printer": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", - "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", - "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", - "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-api-error": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", - "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "deprecated": "Use your platform's native atob() and btoa() methods instead" - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" + "@babel/core": "^7.26.10", + "@babel/plugin-transform-react-jsx-self": "^7.25.9", + "@babel/plugin-transform-react-jsx-source": "^7.25.9", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" }, "engines": { - "node": ">= 0.6" + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" } }, - "node_modules/accepts/node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } + "node_modules/@xobotyi/scrollbar-width": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/@xobotyi/scrollbar-width/-/scrollbar-width-1.9.5.tgz", + "integrity": "sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==" + }, + "node_modules/@yarnpkg/lockfile": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", + "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" }, "node_modules/acorn": { - "version": "8.14.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", - "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", "bin": { "acorn": "bin/acorn" }, @@ -4973,81 +4831,21 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/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==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/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==", - "dependencies": { - "loader-utils": "^2.0.0", - "regex-parser": "^2.2.11" - }, - "engines": { - "node": ">=8.9" - } - }, "node_modules/after": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", "integrity": "sha512-QbJ0NTQ/I9DI3uSJA4cbexiwQeRAfjPScqIbSjUDd9TOrcg6pTkdgziesOqxBMBzit8vFCTwrP27t13vFOORRA==" }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/agentkeepalive": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", - "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", - "dependencies": { - "humanize-ms": "^1.2.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -5059,54 +4857,11 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, "dependencies": { "type-fest": "^0.21.3" }, @@ -5121,6 +4876,7 @@ "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, "engines": { "node": ">=10" }, @@ -5128,40 +4884,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ansi-html": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.9.tgz", - "integrity": "sha512-ozbS3LuenHVxNRh/wdnN16QapUHzauqSomAl1jwwJRRsGwFwtj644lIhxfWu0Fy0acCij2+AEgHvjscq3dlVXg==", - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, - "node_modules/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==", - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=6" } }, "node_modules/ansi-styles": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, "engines": { "node": ">=10" }, @@ -5172,12 +4908,14 @@ "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -5186,50 +4924,28 @@ "node": ">= 8" } }, - "node_modules/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==" - }, - "node_modules/are-we-there-yet": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", - "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", - "deprecated": "This package is no longer supported.", - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/aria-query": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", - "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", "dev": true, - "dependencies": { - "dequal": "^2.0.3" + "engines": { + "node": ">= 0.4" } }, "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" }, "engines": { "node": ">= 0.4" @@ -5238,15 +4954,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, "node_modules/array-includes": { "version": "3.1.8", "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -5262,18 +4974,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/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==", - "engines": { - "node": ">=8" - } - }, "node_modules/array.prototype.findlast": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -5290,16 +4995,18 @@ } }, "node_modules/array.prototype.findlastindex": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", - "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", + "es-abstract": "^1.23.9", "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -5309,14 +5016,15 @@ } }, "node_modules/array.prototype.flat": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", - "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -5326,34 +5034,15 @@ } }, "node_modules/array.prototype.flatmap": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", - "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.reduce": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.7.tgz", - "integrity": "sha512-mzmiUCVwtiD4lgxYP8g7IYy8El8p2CSMePvIbTS7gchKir/L1fgJrk0yDKmAX6mnRQFKNADYIk8nNlTris5H1Q==", - "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-array-method-boxes-properly": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "is-string": "^1.0.7" + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -5366,6 +5055,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -5378,18 +5068,18 @@ } }, "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, "dependencies": { "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" }, "engines": { "node": ">= 0.4" @@ -5403,45 +5093,31 @@ "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==" }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" - }, - "node_modules/asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "optional": true, - "peer": true, + "node_modules/asn1.js": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", "dependencies": { - "safer-buffer": "~2.1.0" + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", - "devOptional": true, - "engines": { - "node": ">=0.8" - } + "node_modules/asn1.js/node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==" }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "engines": { - "node": "*" + "node_modules/assert": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", + "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", + "dependencies": { + "call-bind": "^1.0.2", + "is-nan": "^1.3.2", + "object-is": "^1.1.5", + "object.assign": "^4.1.4", + "util": "^0.12.5" } }, "node_modules/assertion-error-formatter": { @@ -5458,26 +5134,18 @@ "node_modules/ast-types-flow": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", - "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==" + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true }, - "node_modules/async": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", - "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" - }, - "node_modules/async-foreach": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", - "integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA==", + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, "engines": { - "node": "*" + "node": ">= 0.4" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -5486,6 +5154,17 @@ "node": ">= 4.0.0" } }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, "node_modules/attr-accept": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.2.5.tgz", @@ -5494,42 +5173,6 @@ "node": ">=4" } }, - "node_modules/autoprefixer": { - "version": "10.4.20", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz", - "integrity": "sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "browserslist": "^4.23.3", - "caniuse-lite": "^1.0.30001646", - "fraction.js": "^4.3.7", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.1", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", @@ -5544,111 +5187,50 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", - "optional": true, - "peer": true, - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", - "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", - "optional": true, - "peer": true - }, "node_modules/axe-core": { - "version": "4.10.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.2.tgz", - "integrity": "sha512-RE3mdQ7P3FRSe7eqCWoeQ/Z9QXrtniSjp1wUjt5nRC3WIpz5rSCve6o3fsZ2aCpJtrZjSZgjwXAoTO5k4tEI0w==", + "version": "4.10.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.3.tgz", + "integrity": "sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg==", + "dev": true, "engines": { "node": ">=4" } }, - "node_modules/axios": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz", - "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, "node_modules/axobject-query": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "dev": true, "engines": { "node": ">= 0.4" } }, "node_modules/babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, "dependencies": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", + "babel-preset-jest": "^29.6.3", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.8.0" } }, - "node_modules/babel-loader": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.4.1.tgz", - "integrity": "sha512-nXzRChX+Z1GoE6yWavBQg6jDslyFF3SDjl2paADuoQtQW10JqShJt62R6eJQ5m/pjJFDT8xgKIWSP85OY8eXeA==", - "dependencies": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^2.0.4", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - }, - "engines": { - "node": ">= 8.9" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "webpack": ">=2" - } - }, - "node_modules/babel-loader/node_modules/schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dependencies": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -5661,48 +5243,28 @@ } }, "node_modules/babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", + "@types/babel__core": "^7.1.14", "@types/babel__traverse": "^7.0.6" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/babel-plugin-macros": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", - "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "cosmiconfig": "^7.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - } - }, - "node_modules/babel-plugin-named-asset-import": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz", - "integrity": "sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q==", - "peerDependencies": { - "@babel/core": "^7.1.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.12", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", - "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.13.tgz", + "integrity": "sha512-3sX/eOms8kd3q2KZ6DAhKPc0dgm525Gqq5NtWKZ7QYYZEv57OQ54KtblzJzH1lQF/eQxO8KjWGIK9IPUJNus5g==", + "dev": true, "dependencies": { "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.3", + "@babel/helper-define-polyfill-provider": "^0.6.4", "semver": "^6.3.1" }, "peerDependencies": { @@ -5710,23 +5272,25 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", - "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz", + "integrity": "sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ==", + "dev": true, "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2", - "core-js-compat": "^3.38.0" + "@babel/helper-define-polyfill-provider": "^0.6.3", + "core-js-compat": "^3.40.0" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz", - "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.4.tgz", + "integrity": "sha512-7gD3pRadPrbjhjLyxebmx/WrFYcuSjZ0XbdUujQMZ/fcE9oeewk2U/7PCvez84UeuK3oSjmPZ0Ch0dlupQvGzw==", + "dev": true, "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.3" + "@babel/helper-define-polyfill-provider": "^0.6.4" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -5735,7 +5299,8 @@ "node_modules/babel-plugin-transform-react-remove-prop-types": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", - "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==" + "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==", + "dev": true }, "node_modules/babel-preset-airbnb": { "version": "5.0.0", @@ -5769,6 +5334,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "dev": true, "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -5791,184 +5357,72 @@ } }, "node_modules/babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, "dependencies": { - "babel-plugin-jest-hoist": "^27.5.1", + "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, - "node_modules/babel-preset-react-app": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz", - "integrity": "sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg==", - "dependencies": { - "@babel/core": "^7.16.0", - "@babel/plugin-proposal-class-properties": "^7.16.0", - "@babel/plugin-proposal-decorators": "^7.16.4", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", - "@babel/plugin-proposal-numeric-separator": "^7.16.0", - "@babel/plugin-proposal-optional-chaining": "^7.16.0", - "@babel/plugin-proposal-private-methods": "^7.16.0", - "@babel/plugin-transform-flow-strip-types": "^7.16.0", - "@babel/plugin-transform-react-display-name": "^7.16.0", - "@babel/plugin-transform-runtime": "^7.16.4", - "@babel/preset-env": "^7.16.4", - "@babel/preset-react": "^7.16.0", - "@babel/preset-typescript": "^7.16.0", - "@babel/runtime": "^7.16.3", - "babel-plugin-macros": "^3.1.0", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24" - } - }, "node_modules/backo2": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", "integrity": "sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA==" }, - "node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-arraybuffer": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", - "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", + "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==", "engines": { "node": ">= 0.6.0" } }, - "node_modules/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==" - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "optional": true, - "peer": true, - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/bfj": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.1.0.tgz", - "integrity": "sha512-I6MMLkn+anzNdCUp9hMRyui1HaNEUCco50lxbvNS4+EyXg8lN3nJ48PjPWtbH8UVS9CuMoaKE9U2V3l29DaRQw==", - "dependencies": { - "bluebird": "^3.7.2", - "check-types": "^11.2.3", - "hoopy": "^0.1.4", - "jsonpath": "^1.1.1", - "tryer": "^1.0.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, "node_modules/blob": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz", "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig==" }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + "node_modules/blueimp-md5": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.19.0.tgz", + "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==" }, - "node_modules/body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/bonjour-service": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.3.0.tgz", - "integrity": "sha512-3YuAUiSkWykd+2Azjgyxei8OWf8thdn8AITIog2M4UICzoqfjlqr64WIjEXZllf/W6vK1goqleSR6brGomxQqA==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" - } + "node_modules/bn.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.2.tgz", + "integrity": "sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==" }, "node_modules/boolbase": { "version": "1.0.0", @@ -5995,15 +5449,135 @@ "node": ">=8" } }, - "node_modules/browser-process-hrtime": { + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + }, + "node_modules/browser-resolve": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", + "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", + "dependencies": { + "resolve": "^1.17.0" + } + }, + "node_modules/browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dependencies": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dependencies": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "node_modules/browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dependencies": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/browserify-rsa": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.1.tgz", + "integrity": "sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ==", + "dependencies": { + "bn.js": "^5.2.1", + "randombytes": "^2.1.0", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/browserify-sign": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.3.tgz", + "integrity": "sha512-JWCZW6SKhfhjJxO8Tyiiy+XYB7cqd2S5/+WeYHsKdNKFlCBhKbblba1A/HN/90YwtxKc8tCErjffZl++UNmGiw==", + "dependencies": { + "bn.js": "^5.2.1", + "browserify-rsa": "^4.1.0", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.5", + "hash-base": "~3.0", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.7", + "readable-stream": "^2.3.8", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/browserify-sign/node_modules/isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/browserify-sign/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/browserify-sign/node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/browserify-sign/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/browserify-sign/node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dependencies": { + "pako": "~1.0.5" + } }, "node_modules/browserslist": { - "version": "4.24.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", - "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", + "version": "4.24.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.5.tgz", + "integrity": "sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw==", "funding": [ { "type": "opencollective", @@ -6019,10 +5593,10 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001669", - "electron-to-chromium": "^1.5.41", - "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.1" + "caniuse-lite": "^1.0.30001716", + "electron-to-chromium": "^1.5.149", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" }, "bin": { "browserslist": "cli.js" @@ -6031,122 +5605,112 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/browserslist-to-esbuild": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/browserslist-to-esbuild/-/browserslist-to-esbuild-2.1.1.tgz", + "integrity": "sha512-KN+mty6C3e9AN8Z5dI1xeN15ExcRNeISoC3g7V0Kax/MMF9MSoYA2G7lkTTcVUFntiEjkpI0HNgqJC1NjdyNUw==", + "dependencies": { + "meow": "^13.0.0" + }, + "bin": { + "browserslist-to-esbuild": "cli/index.js" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "browserslist": "*" + } + }, "node_modules/bser": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, "dependencies": { "node-int64": "^0.4.0" } }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-builder": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/buffer-builder/-/buffer-builder-0.2.0.tgz", + "integrity": "sha512-7VPMEPuYznPSoR21NE1zvd2Xna6c/CloiZCfcMXR1Jny6PjX0N4Nsa38zcBFo/FMK+BlA+FLKbJCQ0i2yxp+Xg==" + }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true }, - "node_modules/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==", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cacache": { - "version": "16.1.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", - "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", - "dependencies": { - "@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" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/cacache/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/cacache/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/cacache/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/cacache/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } + "node_modules/builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==" }, "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", "dependencies": { + "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -6163,62 +5727,19 @@ "node": ">=6" } }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, "node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/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==", - "dependencies": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "dependencies": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, "node_modules/caniuse-lite": { - "version": "1.0.30001683", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001683.tgz", - "integrity": "sha512-iqmNnThZ0n70mNwvxpEC2nBJ037ZHZUoBI5Gorh1Mw6IlEAZujEoU1tXA628iZfzm7R9FvFzxbfdgml82a3k8Q==", + "version": "1.0.30001717", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001717.tgz", + "integrity": "sha512-auPpttCq6BDEG8ZAuHJIplGw6GODhjw+/11e7IjpnYCxZcW/ONgPs0KVBJ0d1bY3e2+7PRe5RCLyP+PfwVgkYw==", "funding": [ { "type": "opencollective", @@ -6245,48 +5766,6 @@ "upper-case-first": "^2.0.2" } }, - "node_modules/case-sensitive-paths-webpack-plugin": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", - "integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "optional": true, - "peer": true - }, - "node_modules/ccount": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", - "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chai": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", - "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", - "dev": true, - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -6316,88 +5795,64 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/char-regex": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", "dev": true, - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/check-types": { - "version": "11.2.3", - "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.3.tgz", - "integrity": "sha512-+67P1GkJRaxQD6PKK0Et9DhwQB+vGg3PM5+aavopCpZT1lj9jeqfvpgTLAWErNj8qApkkmXlu/Ug74kmhagkXg==" - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", "engines": { "node": ">=10" } }, - "node_modules/chrome-trace-event": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", - "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "node_modules/cheerio": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0.tgz", + "integrity": "sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww==", + "dependencies": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.1.0", + "encoding-sniffer": "^0.2.0", + "htmlparser2": "^9.1.0", + "parse5": "^7.1.2", + "parse5-htmlparser2-tree-adapter": "^7.0.0", + "parse5-parser-stream": "^7.1.2", + "undici": "^6.19.5", + "whatwg-mimetype": "^4.0.0" + }, "engines": { - "node": ">=6.0" + "node": ">=18.17" + }, + "funding": { + "url": "https://github.com/cheeriojs/cheerio?sponsor=1" + } + }, + "node_modules/cheerio-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", + "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", + "dependencies": { + "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" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" } }, "node_modules/ci-info": { @@ -6414,54 +5869,39 @@ "node": ">=8" } }, + "node_modules/cipher-base": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.6.tgz", + "integrity": "sha512-3Ek9H3X6pj5TgenXYtNWdaBon1tgYCaebd+XPg0keyjEbEfkD4KkmAxkQ/i1vYvxdcT5nscLBfq9VJRmCBcFSw==", + "dependencies": { + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/cjs-module-lexer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz", - "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==" + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true }, "node_modules/class-transformer": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz", "integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==", - "dev": true, - "peer": true + "dev": true }, "node_modules/classnames": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==" }, - "node_modules/clean-css": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz", - "integrity": "sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==", - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 10.0" - } - }, - "node_modules/clean-css/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "engines": { - "node": ">=6" - } - }, "node_modules/cli-table3": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz", - "integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==", + "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, "dependencies": { "string-width": "^4.2.0" @@ -6470,17 +5910,53 @@ "node": "10.* || >= 12.*" }, "optionalDependencies": { - "colors": "1.4.0" + "@colors/colors": "1.5.0" } }, "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "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, "dependencies": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", + "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/clsx": { @@ -6495,105 +5971,17 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" } }, - "node_modules/coa": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", - "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", - "dependencies": { - "@types/q": "^1.5.1", - "chalk": "^2.4.1", - "q": "^1.1.2" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/coa/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/coa/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/coa/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/coa/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/coa/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/coa/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/coa/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/codemirror": { - "version": "5.65.18", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.18.tgz", - "integrity": "sha512-Gaz4gHnkbHMGgahNt3CA5HBk5lLQBqmD/pBgeB4kQU6OedZmqMBjlRF0LSrp2tJ4wlLNPm2FfaUd1pDy0mdlpA==" - }, - "node_modules/codemirror-spell-checker": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/codemirror-spell-checker/-/codemirror-spell-checker-1.1.2.tgz", - "integrity": "sha512-2Tl6n0v+GJRsC9K3MLCdLaMOmvWL0uukajNJseorZJsslaxZyZMgENocPU8R0DyoTAiKsyqiemSOZo7kjGV0LQ==", - "dependencies": { - "typo-js": "*" - } - }, "node_modules/collect-v8-coverage": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==" + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true }, "node_modules/color-convert": { "version": "2.0.1", @@ -6611,74 +5999,20 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "node_modules/color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "bin": { - "color-support": "bin.js" - } - }, - "node_modules/colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/comma-separated-tokens": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", - "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } + "node_modules/colorjs.io": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/colorjs.io/-/colorjs.io-0.5.2.tgz", + "integrity": "sha512-twmVoizEW7ylZSN32OgKdXRmo1qg+wT5/6C3xu5b9QsWzSFAhHLn2xd8ro0diCsKfCj1RdaTP/nrcW+vAoQPIw==" }, "node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true, "engines": { - "node": ">= 10" + "node": ">=14" } }, - "node_modules/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==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" - }, "node_modules/component-bind": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", @@ -6697,47 +6031,6 @@ "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz", "integrity": "sha512-w+LhYREhatpVqTESyGFg3NlP6Iu0kEKUHETY9GoZP/pQyW4mHFZuFWRUCIqVPZ36ueVLtoOEZaAqbCF2RDndaA==" }, - "node_modules/compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dependencies": { - "mime-db": ">= 1.43.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compression": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.5.tgz", - "integrity": "sha512-bQJ0YRck5ak3LgtnpKkiabX5pNF7tMUh1BSy2ZBOTh0Dim0BUu6aPPwByIns6/A5Prh8PufSPerMDUklpzes2Q==", - "dependencies": { - "bytes": "3.1.2", - "compressible": "~2.0.18", - "debug": "2.6.9", - "negotiator": "~0.6.4", - "on-headers": "~1.0.2", - "safe-buffer": "5.2.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/compression/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -6746,115 +6039,144 @@ "node_modules/confusing-browser-globals": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true }, - "node_modules/connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", - "engines": { - "node": ">=0.8" - } + "node_modules/console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==" }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" - }, - "node_modules/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==", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "engines": { - "node": ">= 0.6" - } + "node_modules/constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==" }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" }, - "node_modules/cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/core-js": { - "version": "3.39.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.39.0.tgz", - "integrity": "sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" + "node_modules/copy-to-clipboard": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz", + "integrity": "sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==", + "dependencies": { + "toggle-selection": "^1.0.6" } }, "node_modules/core-js-compat": { - "version": "3.39.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.39.0.tgz", - "integrity": "sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==", + "version": "3.42.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.42.0.tgz", + "integrity": "sha512-bQasjMfyDGyaeWKBIu33lHh9qlSR0MFE/Nmc6nMjf/iU9b3rSMdAYz1Baxrv4lPdGUsTqZudHA4jIGSJy0SWZQ==", + "dev": true, "dependencies": { - "browserslist": "^4.24.2" + "browserslist": "^4.24.4" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, - "node_modules/core-js-pure": { - "version": "3.39.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.39.0.tgz", - "integrity": "sha512-7fEcWwKI4rJinnK+wLTezeg2smbFFdSBP6E2kQZNbnzM2s1rpKQ6aaRteZSSg7FLU3P0HGGVo/gbpfanU36urg==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", "dependencies": { - "@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" + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dependencies": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + } + }, + "node_modules/create-ecdh/node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==" + }, + "node_modules/create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "node_modules/create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + }, + "node_modules/crelt": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", + "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" }, "node_modules/cross-spawn": { "version": "7.0.6", @@ -6869,29 +6191,39 @@ "node": ">= 8" } }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "node_modules/crypto-browserify": { + "version": "3.12.1", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.1.tgz", + "integrity": "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ==", + "dependencies": { + "browserify-cipher": "^1.0.1", + "browserify-sign": "^4.2.3", + "create-ecdh": "^4.0.4", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "diffie-hellman": "^5.0.3", + "hash-base": "~3.0.4", + "inherits": "^2.0.4", + "pbkdf2": "^3.1.2", + "public-encrypt": "^4.0.3", + "randombytes": "^2.1.0", + "randomfill": "^1.0.4" + }, "engines": { - "node": ">=8" + "node": ">= 0.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/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==", + "node_modules/css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "bin": { - "css-blank-pseudo": "dist/cli.cjs" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" } }, "node_modules/css-box-model": { @@ -6902,178 +6234,41 @@ "tiny-invariant": "^1.0.6" } }, - "node_modules/css-declaration-sorter": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", - "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==", - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.0.9" - } - }, - "node_modules/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==", + "node_modules/css-in-js-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/css-in-js-utils/-/css-in-js-utils-3.1.0.tgz", + "integrity": "sha512-fJAcud6B3rRu+KHYk+Bwf+WFL2MDCJJ1XG9x137tJQ0xYxor7XziQtuGFbWNdqrvF4Tk26O3H73nfVqXt/fW1A==", "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "bin": { - "css-has-pseudo": "dist/cli.cjs" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/css-loader": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.11.0.tgz", - "integrity": "sha512-CTJ+AEQJjq5NzLga5pE39qdiSV56F8ywCIsqNIRF0r7BDgWsN25aazToqAFg7ZrtA/U016xudB3ffgweORxX7g==", - "dependencies": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.33", - "postcss-modules-extract-imports": "^3.1.0", - "postcss-modules-local-by-default": "^4.0.5", - "postcss-modules-scope": "^3.2.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "@rspack/core": "0.x || 1.x", - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "@rspack/core": { - "optional": true - }, - "webpack": { - "optional": true - } - } - }, - "node_modules/css-loader/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/css-minimizer-webpack-plugin": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", - "integrity": "sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==", - "dependencies": { - "cssnano": "^5.0.6", - "jest-worker": "^27.0.2", - "postcss": "^8.3.5", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "@parcel/css": { - "optional": true - }, - "clean-css": { - "optional": true - }, - "csso": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/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==", - "bin": { - "css-prefers-color-scheme": "dist/cli.cjs" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" + "hyphenate-style-name": "^1.0.3" } }, "node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", "dependencies": { "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", "nth-check": "^2.0.1" }, "funding": { "url": "https://github.com/sponsors/fb55" } }, - "node_modules/css-select-base-adapter": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", - "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" - }, "node_modules/css-tree": { - "version": "1.0.0-alpha.37", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", - "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", "dependencies": { - "mdn-data": "2.0.4", + "mdn-data": "2.0.14", "source-map": "^0.6.1" }, "engines": { "node": ">=8.0.0" } }, - "node_modules/css-tree/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/css-what": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", @@ -7085,225 +6280,61 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/css.escape": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", - "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", - "dev": true - }, - "node_modules/cssdb": { - "version": "7.11.2", - "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.11.2.tgz", - "integrity": "sha512-lhQ32TFkc1X4eTefGfYPvgovRSzIMofHkigfH8nWtyRL4XJLsRhJFreRvEgKzept7x1rjBuy3J/MurXLaFxW/A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - } - ] - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", - "dependencies": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/cssnano" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", - "dependencies": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } + "node_modules/cssfilter": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz", + "integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==" }, "node_modules/csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", + "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", "dependencies": { - "css-tree": "^1.1.2" + "css-tree": "~2.2.0" }, "engines": { - "node": ">=8.0.0" + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" } }, "node_modules/csso/node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", + "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" }, "engines": { - "node": ">=8.0.0" + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" } }, "node_modules/csso/node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "node_modules/csso/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", + "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==" }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, - "node_modules/d": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", - "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", - "dev": true, - "dependencies": { - "es5-ext": "^0.10.64", - "type": "^2.7.2" - }, - "engines": { - "node": ">=0.12" - } - }, "node_modules/damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==" - }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "optional": true, - "peer": true, - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true }, "node_modules/data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -7313,27 +6344,29 @@ } }, "node_modules/data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/inspect-js" } }, "node_modules/data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-data-view": "^1.0.1" }, @@ -7360,9 +6393,9 @@ } }, "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "dependencies": { "ms": "^2.1.3" }, @@ -7375,80 +6408,38 @@ } } }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/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==", - "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" - }, - "node_modules/decode-named-character-reference": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", - "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", - "dependencies": { - "character-entities": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "node": ">=0.10" } }, "node_modules/dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } }, "node_modules/deep-diff": { "version": "0.3.8", "resolved": "https://registry.npmjs.org/deep-diff/-/deep-diff-0.3.8.tgz", "integrity": "sha512-yVn6RZmHiGnxRKR9sJb3iVV2XTF1Ghh2DiWRZ3dMnGc43yUdWWF/kX6lQyk3+P84iprfWKU/8zFTrlkvtFm1ug==" }, - "node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", - "dev": true, - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/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==" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, "node_modules/deepmerge": { "version": "4.3.1", @@ -7458,17 +6449,6 @@ "node": ">=0.10.0" } }, - "node_modules/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==", - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">= 10" - } - }, "node_modules/define-data-property": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", @@ -7485,14 +6465,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "engines": { - "node": ">=8" - } - }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -7509,27 +6481,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -7538,57 +6489,24 @@ "node": ">=6" } }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node_modules/des.js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", + "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", + "dependencies": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, - "node_modules/detect-port-alt": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", - "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", - "dependencies": { - "address": "^1.0.1", - "debug": "^2.6.0" - }, - "bin": { - "detect": "bin/detect-port", - "detect-port": "bin/detect-port" - }, - "engines": { - "node": ">= 4.2.1" - } - }, - "node_modules/detect-port-alt/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/detect-port-alt/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, "node_modules/devlop": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", @@ -7601,11 +6519,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" - }, "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -7616,44 +6529,34 @@ } }, "node_modules/diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "node_modules/diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" } }, - "node_modules/dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" - }, - "node_modules/dns-packet": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", - "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==", - "dependencies": { - "@leichtgewicht/ip-codec": "^2.0.1" - }, - "engines": { - "node": ">=6" - } + "node_modules/diffie-hellman/node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==" }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, "dependencies": { "esutils": "^2.0.2" }, @@ -7661,33 +6564,39 @@ "node": ">=6.0.0" } }, - "node_modules/dom-accessibility-api": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", - "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", - "dev": true - }, - "node_modules/dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "node_modules/dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", "dependencies": { - "utila": "~0.4" + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" } }, "node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" }, "funding": { "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, + "node_modules/domain-browser": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-4.22.0.tgz", + "integrity": "sha512-IGBwjF7tNk3cwypFNH/7bfzBcgSCbaMOD3GsaY1AU/JRrnHnYgEM0+9kQt52iZxjNsjBtJYtao146V+f8jFZNw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://bevry.me/fund" + } + }, "node_modules/domelementtype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", @@ -7699,32 +6608,12 @@ } ] }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "deprecated": "Use your platform's native DOMException instead", - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "engines": { - "node": ">=8" - } - }, "node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "dependencies": { - "domelementtype": "^2.2.0" + "domelementtype": "^2.3.0" }, "engines": { "node": ">= 4" @@ -7734,13 +6623,13 @@ } }, "node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" }, "funding": { "url": "https://github.com/fb55/domutils?sponsor=1" @@ -7755,108 +6644,56 @@ "tslib": "^2.0.3" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "engines": { - "node": ">=10" - } - }, - "node_modules/dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" - }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, - "node_modules/duration": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/duration/-/duration-0.2.2.tgz", - "integrity": "sha512-06kgtea+bGreF5eKYgI/36A6pLXggY7oR4p1pq4SmdFBn1ReOL5D8RhG64VrqfTTKNucqqtBAwEj8aB88mcqrg==", - "dev": true, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dependencies": { - "d": "1", - "es5-ext": "~0.10.46" - } - }, - "node_modules/durations": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/durations/-/durations-3.4.2.tgz", - "integrity": "sha512-V/lf7y33dGaypZZetVI1eu7BmvkbC4dItq12OElLRpKuaU5JxQstV2zHwLv8P7cNbQ+KL1WD80zMCTx5dNC4dg==", - "dev": true, + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/easymde": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/easymde/-/easymde-2.18.0.tgz", - "integrity": "sha512-IxVVUxNWIoXLeqtBU4BLc+eS/ScYhT1Dcb6yF5Wchoj1iXAV+TIIDWx+NCaZhY7RcSHqDPKllbYq7nwGKILnoA==", - "dependencies": { - "@types/codemirror": "^5.60.4", - "@types/marked": "^4.0.7", - "codemirror": "^5.63.1", - "codemirror-spell-checker": "1.1.2", - "marked": "^4.1.0" - } - }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "optional": true, - "peer": true, - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/ecc-jsbn/node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", - "optional": true, - "peer": true - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/ejs": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", - "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", - "dependencies": { - "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.5.64", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.64.tgz", - "integrity": "sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==" + "version": "1.5.151", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.151.tgz", + "integrity": "sha512-Rl6uugut2l9sLojjS4H4SAr3A4IgACMLgpuEMPYCVcKydzfyPrn5absNRju38IhQOf/NwjJY8OGWjlteqYeBCA==" + }, + "node_modules/elliptic": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/elliptic/node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==" }, "node_modules/emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sindresorhus/emittery?sponsor=1" @@ -7865,31 +6702,19 @@ "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "optional": true, + "node_modules/encoding-sniffer": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.0.tgz", + "integrity": "sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==", "dependencies": { - "iconv-lite": "^0.6.2" + "iconv-lite": "^0.6.3", + "whatwg-encoding": "^3.1.1" + }, + "funding": { + "url": "https://github.com/fb55/encoding-sniffer?sponsor=1" } }, "node_modules/engine.io-client": { @@ -7935,39 +6760,25 @@ "has-binary2": "~1.0.2" } }, - "node_modules/enhanced-resolve": { - "version": "5.17.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", - "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, + "node_modules/engine.io-parser/node_modules/base64-arraybuffer": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", + "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==", "engines": { - "node": ">=10.13.0" + "node": ">= 0.6.0" } }, "node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/err-code": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", - "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==" - }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -7985,56 +6796,62 @@ } }, "node_modules/es-abstract": { - "version": "1.23.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.5.tgz", - "integrity": "sha512-vlmniQ0WNPwXqA0BnmwV3Ng7HxiGlh6r5U6JcTMNx8OilcAGqVJBHJcPjqOMaczU9fRuRK5Px2BdVyPRnKMMVQ==", + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", + "dev": true, "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", "globalthis": "^1.0.4", - "gopd": "^1.0.1", + "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", "object-inspect": "^1.13.3", "object-keys": "^1.1.1", - "object.assign": "^4.1.5", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", "regexp.prototype.flags": "^1.5.3", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" }, "engines": { "node": ">= 0.4" @@ -8043,18 +6860,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-array-method-boxes-properly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", - "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" - }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "engines": { "node": ">= 0.4" } @@ -8068,39 +6877,41 @@ } }, "node_modules/es-iterator-helpers": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.0.tgz", - "integrity": "sha512-tpxqxncxnpw3c93u8n3VOzACmRFoVmWJqbWXvX/JfKbkhBw1oslgPrUfeSt2psuqyEJFD6N/9lg5i7bsKpoq+Q==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", + "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "es-abstract": "^1.23.3", + "es-abstract": "^1.23.6", "es-errors": "^1.3.0", "es-set-tostringtag": "^2.0.3", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", + "get-intrinsic": "^1.2.6", "globalthis": "^1.0.4", - "gopd": "^1.0.1", + "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.7", - "iterator.prototype": "^1.1.3", - "safe-array-concat": "^1.1.2" + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "iterator.prototype": "^1.1.4", + "safe-array-concat": "^1.1.3" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-module-lexer": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.4.tgz", - "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==" + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==" }, "node_modules/es-object-atoms": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", - "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", "dependencies": { "es-errors": "^1.3.0" }, @@ -8109,34 +6920,41 @@ } }, "node_modules/es-set-tostringtag": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", - "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, "dependencies": { - "get-intrinsic": "^1.2.4", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" }, "engines": { "node": ">= 0.4" @@ -8145,44 +6963,41 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es5-ext": { - "version": "0.10.64", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", - "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", - "dev": true, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", "hasInstallScript": true, - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "esniff": "^2.0.1", - "next-tick": "^1.1.0" + "bin": { + "esbuild": "bin/esbuild" }, "engines": { - "node": ">=0.10" - } - }, - "node_modules/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, - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/es6-symbol": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", - "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", - "dev": true, - "dependencies": { - "d": "^1.0.2", - "ext": "^1.7.0" + "node": ">=12" }, - "engines": { - "node": ">=0.12" + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" } }, "node_modules/escalade": { @@ -8193,11 +7008,6 @@ "node": ">=6" } }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -8209,46 +7019,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -8333,37 +7115,23 @@ "eslint-plugin-import": "^2.25.2" } }, - "node_modules/eslint-config-react-app": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz", - "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==", - "dependencies": { - "@babel/core": "^7.16.0", - "@babel/eslint-parser": "^7.16.3", - "@rushstack/eslint-patch": "^1.1.0", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", - "babel-preset-react-app": "^10.0.1", - "confusing-browser-globals": "^1.0.11", - "eslint-plugin-flowtype": "^8.0.3", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-jest": "^25.3.0", - "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.27.1", - "eslint-plugin-react-hooks": "^4.3.0", - "eslint-plugin-testing-library": "^5.0.1" - }, - "engines": { - "node": ">=14.0.0" + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" }, "peerDependencies": { - "eslint": "^8.0.0" + "eslint": ">=7.0.0" } }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", @@ -8374,6 +7142,7 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { "ms": "^2.1.1" } @@ -8382,6 +7151,7 @@ "version": "2.12.0", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "dev": true, "dependencies": { "debug": "^3.2.7" }, @@ -8398,31 +7168,16 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-flowtype": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", - "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==", - "dependencies": { - "lodash": "^4.17.21", - "string-natural-compare": "^3.0.1" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@babel/plugin-syntax-flow": "^7.14.5", - "@babel/plugin-transform-react-jsx": "^7.14.9", - "eslint": "^8.1.0" - } - }, "node_modules/eslint-plugin-import": { "version": "2.31.0", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "dev": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.8", @@ -8455,6 +7210,7 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { "ms": "^2.1.1" } @@ -8463,6 +7219,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, "dependencies": { "esutils": "^2.0.2" }, @@ -8470,33 +7227,11 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-jest": { - "version": "25.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", - "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", - "dependencies": { - "@typescript-eslint/experimental-utils": "^5.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "@typescript-eslint/eslint-plugin": { - "optional": true - }, - "jest": { - "optional": true - } - } - }, "node_modules/eslint-plugin-jsx-a11y": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", + "dev": true, "dependencies": { "aria-query": "^5.3.2", "array-includes": "^3.1.8", @@ -8521,36 +7256,59 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" } }, - "node_modules/eslint-plugin-jsx-a11y/node_modules/aria-query": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", - "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "node_modules/eslint-plugin-prettier": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.4.0.tgz", + "integrity": "sha512-BvQOvUhkVQM1i63iMETK9Hjud9QhqBnbtT1Zc642p9ynzBuCe5pybkOnvqZIBypXmMlsGcnU4HZ8sCTPfpAexA==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.11.0" + }, "engines": { - "node": ">= 0.4" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } } }, "node_modules/eslint-plugin-react": { - "version": "7.37.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.2.tgz", - "integrity": "sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==", + "version": "7.37.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", + "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "dev": true, "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", - "array.prototype.flatmap": "^1.3.2", + "array.prototype.flatmap": "^1.3.3", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.1.0", + "es-iterator-helpers": "^1.2.1", "estraverse": "^5.3.0", "hasown": "^2.0.2", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", - "object.entries": "^1.1.8", + "object.entries": "^1.1.9", "object.fromentries": "^2.0.8", - "object.values": "^1.2.0", + "object.values": "^1.2.1", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.5", "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.11", + "string.prototype.matchall": "^4.0.12", "string.prototype.repeat": "^1.0.0" }, "engines": { @@ -8564,6 +7322,7 @@ "version": "4.6.2", "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz", "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==", + "dev": true, "engines": { "node": ">=10" }, @@ -8575,6 +7334,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, "dependencies": { "esutils": "^2.0.2" }, @@ -8586,6 +7346,7 @@ "version": "2.0.0-next.5", "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, "dependencies": { "is-core-module": "^2.13.0", "path-parse": "^1.0.7", @@ -8598,25 +7359,42 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-testing-library": { - "version": "5.11.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.1.tgz", - "integrity": "sha512-5eX9e1Kc2PqVRed3taaLnAAqPZGEX75C+M/rXzUAI3wIg/ZxzUm1OVAwfe/O+vE+6YXOLetSe9g5GKD2ecXipw==", + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, "dependencies": { - "@typescript-eslint/utils": "^5.58.0" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0", - "npm": ">=6" - }, - "peerDependencies": { - "eslint": "^7.5.0 || ^8.0.0" + "node": ">=8.0.0" } }, - "node_modules/eslint-scope": { + "node_modules/eslint-scope/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/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==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -8628,10 +7406,11 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-visitor-keys": { + "node_modules/eslint/node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -8639,60 +7418,27 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-webpack-plugin": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz", - "integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==", + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, "dependencies": { - "@types/eslint": "^7.29.0 || ^8.4.1", - "jest-worker": "^28.0.2", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0", - "webpack": "^5.0.0" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint/node_modules/globals": { "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, "dependencies": { "type-fest": "^0.20.2" }, @@ -8703,10 +7449,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/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==", + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, "engines": { "node": ">=10" }, @@ -8714,25 +7464,38 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/esniff": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", - "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.62", - "event-emitter": "^0.3.5", - "type": "^2.7.2" + "p-limit": "^3.0.2" }, "engines": { - "node": ">=0.10" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/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==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, "dependencies": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", @@ -8745,6 +7508,18 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -8761,6 +7536,7 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, "dependencies": { "estraverse": "^5.1.0" }, @@ -8772,6 +7548,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -8783,46 +7560,25 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { "node": ">=4.0" } }, "node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/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, - "dependencies": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, "node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -8831,10 +7587,20 @@ "node": ">=0.8.x" } }, + "node_modules/evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dependencies": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -8853,6 +7619,12 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, "node_modules/exenv": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz", @@ -8862,121 +7634,48 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, "engines": { "node": ">= 0.8.0" } }, "node_modules/expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "license": "MIT", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/ext": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", - "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, "dependencies": { - "type": "^2.7.2" + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "node_modules/extsprintf": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", - "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", - "dev": true, - "engines": [ - "node >=0.6.0" - ] - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" @@ -8996,41 +7695,38 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true }, - "node_modules/fast-uri": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", - "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==" + "node_modules/fast-shallow-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-shallow-equal/-/fast-shallow-equal-1.0.0.tgz", + "integrity": "sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw==" + }, + "node_modules/fastest-stable-stringify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fastest-stable-stringify/-/fastest-stable-stringify-2.0.2.tgz", + "integrity": "sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==" }, "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dependencies": { "reusify": "^1.0.4" } }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, "dependencies": { "bser": "2.1.1" } @@ -9063,6 +7759,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, "dependencies": { "flat-cache": "^3.0.4" }, @@ -9070,46 +7767,10 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/file-loader/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, "node_modules/file-selector": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-2.1.0.tgz", - "integrity": "sha512-ZuXAqGePcSPz4JuerOY06Dzzq0hrmQ6VGoXVzGyFI1npeOfBgqGIKKpznfYWRkSLJlXutkqVC5WvGZtkFVhu9Q==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-2.1.2.tgz", + "integrity": "sha512-QgXo+mXTe8ljeqUFaX3QVHc5osSItJ/Km+xpocx0aSqWGMSCf6qYs/VnzZgS864Pjn5iceMRFigeAV7AfTlaig==", "dependencies": { "tslib": "^2.7.0" }, @@ -9117,41 +7778,6 @@ "node": ">= 12" } }, - "node_modules/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==", - "dependencies": { - "minimatch": "^5.0.1" - } - }, - "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/filelist/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -9163,71 +7789,44 @@ "node": ">=8" } }, - "node_modules/finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/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==", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, "dependencies": { - "locate-path": "^6.0.0", + "locate-path": "^5.0.0", "path-exists": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=8" + } + }, + "node_modules/find-up-simple": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", + "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", + "dev": true, + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/find-yarn-workspace-root": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", + "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", + "dependencies": { + "micromatch": "^4.0.2" + } + }, "node_modules/flat-cache": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.3", @@ -9238,43 +7837,32 @@ } }, "node_modules/flatted": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", - "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==" - }, - "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true }, "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "dependencies": { - "is-callable": "^1.1.3" + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", + "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" }, "engines": { @@ -9284,81 +7872,7 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", - "optional": true, - "peer": true, - "engines": { - "node": "*" - } - }, - "node_modules/fork-ts-checker-webpack-plugin": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", - "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", - "dependencies": { - "@babel/code-frame": "^7.8.3", - "@types/json-schema": "^7.0.5", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "cosmiconfig": "^6.0.0", - "deepmerge": "^4.2.2", - "fs-extra": "^9.0.0", - "glob": "^7.1.6", - "memfs": "^3.1.2", - "minimatch": "^3.0.4", - "schema-utils": "2.7.0", - "semver": "^7.3.2", - "tapable": "^1.0.0" - }, - "engines": { - "node": ">=10", - "yarn": ">=1.0.0" - }, - "peerDependencies": { - "eslint": ">= 6", - "typescript": ">= 2.7", - "vue-template-compiler": "*", - "webpack": ">= 4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - }, - "vue-template-compiler": { - "optional": true - } - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { + "node_modules/fs-extra": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", @@ -9372,122 +7886,15 @@ "node": ">=10" } }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", - "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", - "dependencies": { - "@types/json-schema": "^7.0.4", - "ajv": "^6.12.2", - "ajv-keywords": "^3.4.1" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/form-data": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", - "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://github.com/sponsors/rawify" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs-monkey": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.6.tgz", - "integrity": "sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg==" - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "hasInstallScript": true, "optional": true, "os": [ @@ -9506,14 +7913,17 @@ } }, "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" }, "engines": { "node": ">= 0.4" @@ -9526,40 +7936,11 @@ "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, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/gauge": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", - "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", - "deprecated": "This package is no longer supported.", - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.3", - "console-control-strings": "^1.1.0", - "has-unicode": "^2.0.1", - "signal-exit": "^3.0.7", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/gaze": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", - "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", - "dependencies": { - "globule": "^1.0.0" - }, - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -9572,29 +7953,26 @@ "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, "engines": { "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -9603,31 +7981,37 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, "engines": { "node": ">=8.0.0" } }, - "node_modules/get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, + "node_modules/get-root-node-polyfill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-root-node-polyfill/-/get-root-node-polyfill-1.0.0.tgz", + "integrity": "sha512-AzucsG1DdepagLF8tkxfjUqn3cCQ63MgH/tBWwPSy0BIDt8iLFZYDwnTxA08d+zdgL8l2dkPdZDe+Qkd+RMl9Q==" + }, "node_modules/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, "engines": { "node": ">=10" }, @@ -9636,13 +8020,14 @@ } }, "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, "dependencies": { - "call-bind": "^1.0.5", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -9651,31 +8036,26 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "optional": true, - "peer": true, - "dependencies": { - "assert-plus": "^1.0.0" - } + "node_modules/github-slugger": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", + "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" }, "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, - "engines": { - "node": "*" + "bin": { + "glob": "dist/esm/bin.mjs" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -9685,6 +8065,7 @@ "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, "dependencies": { "is-glob": "^4.0.3" }, @@ -9692,44 +8073,43 @@ "node": ">=10.13.0" } }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "node_modules/global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "node_modules/glob/node_modules/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, "dependencies": { - "global-prefix": "^3.0.0" - }, - "engines": { - "node": ">=6" + "balanced-match": "^1.0.0" } }, - "node_modules/global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, "dependencies": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=6" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "node_modules/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, "dependencies": { - "isexe": "^2.0.0" + "ini": "2.0.0" }, - "bin": { - "which": "bin/which" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/globals": { @@ -9744,6 +8124,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" @@ -9755,75 +8136,20 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globule": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.4.tgz", - "integrity": "sha512-OPTIfhMBh7JbBYDpa5b+Q5ptmMWKwcNcFSR/0c6t8V4f3ZAVBEsKNY37QdVqmLRYSMhOUGYrY0QhSoEpzGr/Eg==", - "dependencies": { - "glob": "~7.1.1", - "lodash": "^4.17.21", - "minimatch": "~3.0.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/globule/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dependencies": { - "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" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globule/node_modules/minimatch": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", - "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" + "node_modules/goober": { + "version": "2.1.16", + "resolved": "https://registry.npmjs.org/goober/-/goober-2.1.16.tgz", + "integrity": "sha512-erjk19y1U33+XAMe1VTvIONHYoSqE4iS7BYUZfHaqeohLmnC0FdxEh7rQU+6MZ4OajItzjZFSRtVANrQwNq6/g==", + "peerDependencies": { + "csstype": "^3.0.10" } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -9837,69 +8163,29 @@ "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true }, - "node_modules/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==", + "node_modules/has-ansi": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-4.0.1.tgz", + "integrity": "sha512-Qr4RtTm30xvEdqUXbSBVWDu+PrTokJOwe/FU+VdfJPk+MXAPoeOzKpRyrDTnZIJwAkQ4oBLTU53nu0HrkF/Z2A==", + "dev": true, "dependencies": { - "duplexer": "^0.1.2" + "ansi-regex": "^4.1.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/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==" - }, - "node_modules/har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", - "optional": true, - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", - "optional": true, - "peer": true, - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/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==", - "engines": { - "node": ">=6" - } - }, - "node_modules/harmony-reflect": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", - "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==" - }, "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -9942,9 +8228,13 @@ } }, "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -9953,9 +8243,9 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "engines": { "node": ">= 0.4" }, @@ -9977,10 +8267,26 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + "node_modules/hash-base": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.5.tgz", + "integrity": "sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg==", + "dependencies": { + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } }, "node_modules/hasown": { "version": "2.0.2", @@ -9993,23 +8299,151 @@ "node": ">= 0.4" } }, - "node_modules/hast-util-whitespace": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz", - "integrity": "sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "node_modules/highlight.js": { + "version": "11.11.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz", + "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", + "engines": { + "node": ">=12.0.0" } }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "bin": { - "he": "bin/he" + "node_modules/highlightjs-4d": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/highlightjs-4d/-/highlightjs-4d-1.0.6.tgz", + "integrity": "sha512-CLLwv21UNx4T7lXL6+cjMMGUOvLwupCc9qPVrZNEHofsuWmvQTGmA0A2lmNNk1vgoWeTitaV7vsmOq58HDT6SQ==" + }, + "node_modules/highlightjs-alan": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/highlightjs-alan/-/highlightjs-alan-0.0.2.tgz", + "integrity": "sha512-k5h0z9wBne1DMqJPjjVKKO1lzUA/v5px7992Rlw+Gw751hPQSkL8f9NpM5pa7gfw+kCdUalw9Ba2fTp51KSNEw==" + }, + "node_modules/highlightjs-apex": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/highlightjs-apex/-/highlightjs-apex-1.5.0.tgz", + "integrity": "sha512-UxZ1R+UEuN/w63SRoN847RHRW/SJA5RBniWDtatajGYCrYXgrr9sboLmf1LFYolC4GM0vOyUFTvA6tB2YlHEnw==", + "dependencies": { + "@highlightjs/cdn-assets": "^11.11.1" } }, + "node_modules/highlightjs-blade": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/highlightjs-blade/-/highlightjs-blade-0.1.0.tgz", + "integrity": "sha512-c0fbvyHhiL5wi9rnVZ/Su8qM7TE5JXU2T1Urm7qHkQDRp3BFcAASbleQFQC7bQskeZ/9cuJ3QUommcVPN2VKaQ==" + }, + "node_modules/highlightjs-cobol": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/highlightjs-cobol/-/highlightjs-cobol-0.3.3.tgz", + "integrity": "sha512-sdEHzA1UQM9Fjx6wMkWLq8VN70SHascq84aFJJzenOF2TwHE4nwtKCbhHGzOWQKN0AUnn0yAHfXQqaH8i2C8YA==", + "dependencies": { + "minimist": ">=1.2.6", + "mkdirp": "^1.0.4" + } + }, + "node_modules/highlightjs-cobol/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/highlightjs-cshtml-razor": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/highlightjs-cshtml-razor/-/highlightjs-cshtml-razor-2.1.1.tgz", + "integrity": "sha512-EhJrk42Lp6UJyQTQBts4i8Hdd/eu3+3LPF5gg1xwNq+boGSyVbfFYD+AXSaP0u6YQfgQEYecQlqUPOi3hRlh0A==", + "dependencies": { + "minimist": "^1.2.5" + } + }, + "node_modules/highlightjs-gf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/highlightjs-gf/-/highlightjs-gf-1.0.1.tgz", + "integrity": "sha512-0SQsWarXLKiCwEpLChL7xOWusctsTyEXm6OL+vi4kpn1xm+k10OWeT2uiXBVUTPiZaItEE0uyBrVIEiXR8aCZA==" + }, + "node_modules/highlightjs-jolie": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/highlightjs-jolie/-/highlightjs-jolie-0.1.8.tgz", + "integrity": "sha512-ruvbry4xz3m8cPpxXyD3o3QEZWC1kuqdRBa9Fy9d+X2kY6ejfx0N0xVL2e5hjcwYdz6UId1sk3dEix3E51w0TQ==" + }, + "node_modules/highlightjs-lean": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/highlightjs-lean/-/highlightjs-lean-1.2.0.tgz", + "integrity": "sha512-GH4tsvbzzZVZiHfrZ7FyaSecnY1ba54XSZB19Iz7VG0N+YYeOPLf2vi0v7Sds+/shaTtRqqxK5Oss9f4wro+uQ==" + }, + "node_modules/highlightjs-lookml": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/highlightjs-lookml/-/highlightjs-lookml-1.0.2.tgz", + "integrity": "sha512-jeFnieizlMZr6gi7eFxvjrl/3dc+OpfK+w9thI1GIY7tDk7X8H1/1rRXyJn1ofIFC8mNw++l4XofF4CvlhPu4g==" + }, + "node_modules/highlightjs-macaulay2": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/highlightjs-macaulay2/-/highlightjs-macaulay2-0.2.5.tgz", + "integrity": "sha512-U1wvC+oDcjwD5pTeKwlXeRZz7e64wq4u5kuqcbybund7edI08++fWaIFBFhJFpTveYZzX56BwFnSD2Qcfp9koQ==", + "dependencies": { + "highlight.js": "^11.11.1" + } + }, + "node_modules/highlightjs-mlir": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/highlightjs-mlir/-/highlightjs-mlir-0.0.1.tgz", + "integrity": "sha512-t51Y269CD4IGR+E7149mQWBi2JztIeaksSqTfsWbpGULn9aVuhVUODua4OBzm58D0FQibnfIzOFUUribMnpMgA==" + }, + "node_modules/highlightjs-qsharp": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/highlightjs-qsharp/-/highlightjs-qsharp-1.0.2.tgz", + "integrity": "sha512-jqV0AeZ8wzEeajKslloHSWxr1ulug1aeq+nq/MLLTZ0jw5SJCoq1xlo4rB8JU26XnM1g9Z7Tx4j4c2weeDk2Cg==" + }, + "node_modules/highlightjs-redbol": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/highlightjs-redbol/-/highlightjs-redbol-2.1.2.tgz", + "integrity": "sha512-MMhBycvOQawsPj26sVmUOH09urnYoVlZVKWS5cYA8ah2lg7v9PLMC9y07QHOyoUkQ0AhKDyuyOncMQ/Cvr/G0A==", + "dependencies": { + "highlight.js": "^11.9.0" + } + }, + "node_modules/highlightjs-rpm-specfile": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/highlightjs-rpm-specfile/-/highlightjs-rpm-specfile-1.0.0.tgz", + "integrity": "sha512-zezqMRVHjo2MIvk9W/esBS2aU5vi5zDy4oP5AdTPMrZKQK4ourH1DTm8xnfrNkLgivyTxT/Hx6kP7oo5Zp98xQ==" + }, + "node_modules/highlightjs-sap-abap": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/highlightjs-sap-abap/-/highlightjs-sap-abap-0.3.0.tgz", + "integrity": "sha512-nSiUvEOCycjtFA3pHaTowrbAAk5+lciBHyoVkDsd6FTRBtW9sT2dt42o2jAKbXjZVUidtacdk+j0Y2xnd233Mw==" + }, + "node_modules/highlightjs-solidity": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/highlightjs-solidity/-/highlightjs-solidity-2.0.6.tgz", + "integrity": "sha512-DySXWfQghjm2l6a/flF+cteroJqD4gI8GSdL4PtvxZSsAHie8m3yVe2JFoRg03ROKT6hp2Lc/BxXkqerNmtQYg==" + }, + "node_modules/highlightjs-supercollider": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/highlightjs-supercollider/-/highlightjs-supercollider-1.0.0.tgz", + "integrity": "sha512-VhzbMrcqYOuOeOIbeqyPEZUmd1ZPFXF7fhlIrgu9j2aBRRiKaIplu6T0XhMEl7RR0a7fdEDx8rTw9vop/5zzbA==" + }, + "node_modules/highlightjs-svelte": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/highlightjs-svelte/-/highlightjs-svelte-1.0.6.tgz", + "integrity": "sha512-aXuBPz8df3sOXg90q8rRcBLyxIR8ozPU39a6tJ2rpJUjjd9brRIr55aC0IccW4gsPhQxZ+B3rFugdXsg9/ckDw==" + }, + "node_modules/highlightjs-xsharp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/highlightjs-xsharp/-/highlightjs-xsharp-1.0.0.tgz", + "integrity": "sha512-K5MQuzs0Fr1GlW3lbjL0I/WKF/pqu1LYLciJmKiBD63w23Keg5iyY+/ZOa0WC1EOEn4Y1WnUXxM0f73DudP8/Q==" + }, + "node_modules/highlightjs-zenscript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/highlightjs-zenscript/-/highlightjs-zenscript-2.0.0.tgz", + "integrity": "sha512-e5frdS5T1y0lrEJF6jibEDKA68637kBEX7f1yHPhTUsjU/IgwsT+geG//t+WTZWK2Gx6vg729I27hKJcwC/HFw==" + }, + "node_modules/hightlightjs-papyrus": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/hightlightjs-papyrus/-/hightlightjs-papyrus-0.0.4.tgz", + "integrity": "sha512-WquP5WmSHzsnXeTurhKcROpY+OEolkzeWZOMMM7QfmHFsZ/wUow7rlV5zyyQ4njbENKZ4f4G+CdsPAmijOxHjA==" + }, "node_modules/history": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz", @@ -10018,6 +8452,16 @@ "@babel/runtime": "^7.7.6" } }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, "node_modules/hoist-non-react-statics": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", @@ -10031,142 +8475,29 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, - "node_modules/hoopy": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", - "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==", - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/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==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "lru-cache": "^10.0.1" }, "engines": { - "node": ">=10" + "node": "^16.14.0 || >=18.0.0" } }, "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/hosted-git-info/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "dependencies": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "node_modules/hpack.js/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/hpack.js/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/hpack.js/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/hpack.js/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/html-entities": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.5.2.tgz", - "integrity": "sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/mdevils" - }, - { - "type": "patreon", - "url": "https://patreon.com/mdevils" - } - ] + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" - }, - "node_modules/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", - "dependencies": { - "camel-case": "^4.1.2", - "clean-css": "^5.2.2", - "commander": "^8.3.0", - "he": "^1.2.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.10.0" - }, - "bin": { - "html-minifier-terser": "cli.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/html-minifier-terser/node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "engines": { - "node": ">= 12" - } + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true }, "node_modules/html-parse-stringify": { "version": "3.0.1", @@ -10176,41 +8507,10 @@ "void-elements": "3.1.0" } }, - "node_modules/html-webpack-plugin": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.6.3.tgz", - "integrity": "sha512-QSf1yjtSAsmf7rYBV7XX86uua4W/vkhIt0xNXKbsi2foEeW7vjJQz4bhnpL3xH+l1ryl1680uNv968Z+X6jSYg==", - "dependencies": { - "@types/html-minifier-terser": "^6.0.0", - "html-minifier-terser": "^6.0.2", - "lodash": "^4.17.21", - "pretty-error": "^4.0.0", - "tapable": "^2.0.0" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/html-webpack-plugin" - }, - "peerDependencies": { - "@rspack/core": "0.x || 1.x", - "webpack": "^5.20.0" - }, - "peerDependenciesMeta": { - "@rspack/core": { - "optional": true - }, - "webpack": { - "optional": true - } - } - }, "node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.1.0.tgz", + "integrity": "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -10219,151 +8519,35 @@ } ], "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.1.0", + "entities": "^4.5.0" } }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, - "node_modules/http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" - }, - "node_modules/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==", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/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==" - }, - "node_modules/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==", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/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==", - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/http-proxy-middleware": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.9.tgz", - "integrity": "sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q==", - "license": "MIT", - "dependencies": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@types/express": "^4.17.13" - }, - "peerDependenciesMeta": { - "@types/express": { - "optional": true - } - } - }, - "node_modules/http-proxy-middleware/node_modules/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==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "optional": true, - "peer": true, - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } + "node_modules/https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==" }, "node_modules/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, "engines": { "node": ">=10.17.0" } }, - "node_modules/humanize-ms": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", - "dependencies": { - "ms": "^2.0.0" - } + "node_modules/hyphenate-style-name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.1.0.tgz", + "integrity": "sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==" }, "node_modules/i18next": { - "version": "23.15.2", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.15.2.tgz", - "integrity": "sha512-zcPSWzCvw6uKnuYHIqs4W7hTuB9e3AFcSdZgvCWoPXIZsBjBd4djN2/2uOHIB+1DFFkQnMBXvhNg7J3WyCuywQ==", + "version": "23.16.8", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.16.8.tgz", + "integrity": "sha512-06r/TitrM88Mg5FdUXAKL96dJMzgqLE5dv3ryBAra4KCwD9mJ4ndOTS95ZuymIGoE+2hzfdaMak2X11/es7ZWg==", "funding": [ { "type": "individual", @@ -10383,9 +8567,9 @@ } }, "node_modules/i18next-browser-languagedetector": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.0.0.tgz", - "integrity": "sha512-zhXdJXTTCoG39QsrOCiOabnWj2jecouOqbchu3EfhtSHxIB5Uugnm9JaizenOy39h7ne3+fLikIjeW88+rgszw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.1.0.tgz", + "integrity": "sha512-mHZxNx1Lq09xt5kCauZ/4bsXOEA2pfpwSoU11/QTJB+pD94iONFwp+ohqi///PwiFvjFOxe1akYCdHyFo1ng5Q==", "dependencies": { "@babel/runtime": "^7.23.2" } @@ -10401,49 +8585,38 @@ "node": ">=0.10.0" } }, - "node_modules/icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/idb": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", - "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" - }, - "node_modules/identity-obj-proxy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", - "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", - "dependencies": { - "harmony-reflect": "^1.4.6" - }, - "engines": { - "node": ">=4" - } + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, "engines": { "node": ">= 4" } }, - "node_modules/immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } + "node_modules/immutable": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.2.tgz", + "integrity": "sha512-qHKXW1q6liAk1Oys6umoaZbDRqjcjgSrbnrifHsfsttza7zcvRAsL7mMV6xWcyhwQy7Xj5v4hhbr6b+iDYwlmQ==" }, "node_modules/immutable-ops": { "version": "0.7.0", @@ -10455,9 +8628,9 @@ } }, "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -10469,10 +8642,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, "node_modules/import-local": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -10491,6 +8673,7 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, "engines": { "node": ">=0.8.19" } @@ -10499,20 +8682,28 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, "engines": { "node": ">=8" } }, + "node_modules/index-to-position": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.1.0.tgz", + "integrity": "sha512-XPdx9Dq4t9Qk1mTMbWONJqU7boCoumEH7fRET37HX5+khDUl3J2W6PdALxhILYlIYx2amlwYcRPp28p0tSiojg==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/indexof": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", "integrity": "sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg==" }, - "node_modules/infer-owner": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==" - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -10529,28 +8720,36 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true, + "engines": { + "node": ">=10" + } }, "node_modules/initials": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/initials/-/initials-3.1.2.tgz", "integrity": "sha512-Sltg35nx8+GX1w4U86rmbxFEmqFiSuMJviS6cB2KChB+jcT2/8Td+nlImXD74HkqpZF5PMv8hN57AyrA/7ltXw==" }, - "node_modules/inline-style-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", - "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" + "node_modules/inline-style-prefixer": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/inline-style-prefixer/-/inline-style-prefixer-7.0.1.tgz", + "integrity": "sha512-lhYo5qNTQp3EvSSp3sRvXMbVQTLrvGV6DycRMJ5dm2BLMiJ30wpXKdDdgX+GmJZ5uQMucwRKHamXSst3Sj/Giw==", + "dependencies": { + "css-in-js-utils": "^3.1.0" + } }, "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, "dependencies": { "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -10564,33 +8763,30 @@ "loose-envify": "^1.0.0" } }, - "node_modules/ip-address": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "node_modules/is-arguments": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { - "node": ">= 12" - } - }, - "node_modules/ipaddr.js": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.2.0.tgz", - "integrity": "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==", - "engines": { - "node": ">= 10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -10605,11 +8801,16 @@ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" }, "node_modules/is-async-function": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", - "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -10619,34 +8820,12 @@ } }, "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/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==", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "has-bigints": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -10655,26 +8834,20 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, "engines": { - "node": ">=4" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-callable": { @@ -10689,9 +8862,9 @@ } }, "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dependencies": { "hasown": "^2.0.2" }, @@ -10703,10 +8876,13 @@ } }, "node_modules/is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", "is-typed-array": "^1.1.13" }, "engines": { @@ -10717,11 +8893,13 @@ } }, "node_modules/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==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -10753,11 +8931,15 @@ } }, "node_modules/is-finalizationregistry": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", - "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -10767,30 +8949,29 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/is-generator": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-generator/-/is-generator-1.0.3.tgz", - "integrity": "sha512-G56jBpbJeg7ds83HW1LuShNs8J73Fv3CPz/bmROHOHlnKkN8sWb9ujiagjmxxMUywftgq48HlBZELKKqFLk0oA==", - "dev": true - }, "node_modules/is-generator-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, "engines": { "node": ">=6" } }, "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -10810,15 +8991,27 @@ "node": ">=0.10.0" } }, - "node_modules/is-lambda": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", - "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==" + "node_modules/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, + "dependencies": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/is-map": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -10826,15 +9019,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "node_modules/is-nan": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", + "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + }, "engines": { "node": ">= 0.4" }, @@ -10851,11 +9043,13 @@ } }, "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -10864,42 +9058,32 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/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==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/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==", + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" - }, "node_modules/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==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -10908,26 +9092,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-root": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", - "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", - "engines": { - "node": ">=6" - } - }, "node_modules/is-set": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -10936,11 +9105,12 @@ } }, "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7" + "call-bound": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -10953,6 +9123,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, "engines": { "node": ">=8" }, @@ -10961,11 +9132,13 @@ } }, "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -10975,11 +9148,14 @@ } }, "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, "dependencies": { - "has-symbols": "^1.0.2" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -10989,11 +9165,11 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "dependencies": { - "which-typed-array": "^1.1.14" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -11002,15 +9178,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, "node_modules/is-weakmap": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -11019,23 +9191,28 @@ } }, "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-weakset": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", - "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -11065,17 +9242,19 @@ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", - "optional": true, - "peer": true + "node_modules/isomorphic-timers-promises": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/isomorphic-timers-promises/-/isomorphic-timers-promises-1.0.1.tgz", + "integrity": "sha512-u4sej9B1LPSxTGKB/HiuzvEQnXH0ECYkSVQU39koSwmFAxhlEAFl9RdTvLv4TOTQUgBS5O3O5fwUxk6byBZ+IQ==", + "engines": { + "node": ">=10" + } }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, "engines": { "node": ">=8" } @@ -11084,6 +9263,7 @@ "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, "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -11099,6 +9279,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -11108,35 +9289,23 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-report/node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "semver": "^7.5.3" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/istanbul-lib-report/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" + "node": ">=8" } }, "node_modules/istanbul-lib-source-maps": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -11146,18 +9315,11 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-source-maps/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/istanbul-reports": { "version": "3.1.7", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -11167,15 +9329,17 @@ } }, "node_modules/iterator.prototype": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.3.tgz", - "integrity": "sha512-FW5iMbeQ6rBGm/oKgzq2aW4KvAGpxPzYES8N4g4xNXUKpL1mclMvOe+76AcLDTvD+Ze+sOpVhgdAQEKF4L9iGQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", + "dev": true, "dependencies": { - "define-properties": "^1.2.1", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "reflect.getprototypeof": "^1.0.4", - "set-function-name": "^2.0.1" + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -11185,6 +9349,7 @@ "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -11195,37 +9360,30 @@ "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/jake": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", - "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "node_modules/javascript-time-ago": { + "version": "2.5.11", + "resolved": "https://registry.npmjs.org/javascript-time-ago/-/javascript-time-ago-2.5.11.tgz", + "integrity": "sha512-Zeyf5R7oM1fSMW9zsU3YgAYwE0bimEeF54Udn2ixGd8PUwu+z1Yc5t4Y8YScJDMHD6uCx6giLt3VJR5K4CMwbg==", "dependencies": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.4", - "minimatch": "^3.1.2" - }, - "bin": { - "jake": "bin/cli.js" - }, - "engines": { - "node": ">=10" + "relative-time-format": "^1.1.6" } }, "node_modules/jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, "dependencies": { - "@jest/core": "^27.5.1", + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", "import-local": "^3.0.2", - "jest-cli": "^27.5.1" + "jest-cli": "^29.7.0" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -11237,70 +9395,73 @@ } }, "node_modules/jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", "execa": "^5.0.0", - "throat": "^6.0.1" + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.5.1", + "dedent": "^1.0.0", "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" + "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, "dependencies": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "chalk": "^4.0.0", + "create-jest": "^29.7.0", "exit": "^0.1.2", - "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "prompts": "^2.0.1", - "yargs": "^16.2.0" + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -11312,241 +9473,232 @@ } }, "node_modules/jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { + "@types/node": "*", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "ts-node": { "optional": true } } }, - "node_modules/jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "node_modules/jest-config/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, "dependencies": { "detect-newline": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.3", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "micromatch": "^4.0.4", - "walker": "^1.0.7" + "walker": "^1.0.8" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "optionalDependencies": { "fsevents": "^2.3.2" } }, - "node_modules/jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, "node_modules/jest-leak-detector": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, "dependencies": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, "dependencies": { "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.3", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-pnp-resolver": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, "engines": { "node": ">=6" }, @@ -11560,157 +9712,179 @@ } }, "node_modules/jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", + "jest-haste-map": "^29.7.0", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", + "resolve.exports": "^2.0.0", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "emittery": "^0.13.1", "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, "node_modules/jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", "chalk": "^4.0.0", "cjs-module-lexer": "^1.0.0", "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "node_modules/jest-runtime/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.9" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, "dependencies": { - "@babel/core": "^7.7.2", + "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^27.5.1", + "expect": "^29.7.0", "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, "bin": { "semver": "bin/semver.js" }, @@ -11719,11 +9893,12 @@ } }, "node_modules/jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -11731,29 +9906,31 @@ "picomatch": "^2.2.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.3", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", + "jest-get-type": "^29.6.3", "leven": "^3.1.0", - "pretty-format": "^27.5.1" + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, "engines": { "node": ">=10" }, @@ -11761,326 +9938,40 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-watch-typeahead": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz", - "integrity": "sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw==", - "dependencies": { - "ansi-escapes": "^4.3.1", - "chalk": "^4.0.0", - "jest-regex-util": "^28.0.0", - "jest-watcher": "^28.0.0", - "slash": "^4.0.0", - "string-length": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "jest": "^27.0.0 || ^28.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/console": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", - "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", - "dependencies": { - "@jest/types": "^28.1.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", - "slash": "^3.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/console/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/test-result": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", - "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", - "dependencies": { - "@jest/console": "^28.1.3", - "@jest/types": "^28.1.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/types": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", - "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", - "dependencies": { - "@jest/schemas": "^28.1.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-watch-typeahead/node_modules/emittery": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", - "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-message-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", - "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.1.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-message-util/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-regex-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", - "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", - "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", - "dependencies": { - "@jest/types": "^28.1.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-watcher": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", - "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", - "dependencies": { - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.10.2", - "jest-util": "^28.1.3", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/pretty-format": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", - "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", - "dependencies": { - "@jest/schemas": "^28.1.3", - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" - }, - "node_modules/jest-watch-typeahead/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watch-typeahead/node_modules/string-length": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", - "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", - "dependencies": { - "char-regex": "^2.0.0", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watch-typeahead/node_modules/string-length/node_modules/char-regex": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.2.tgz", - "integrity": "sha512-cbGOjAptfM2LVmWhwRFHEKTPkLwNddVmuqYZQt895yXwAsWsXObCG+YN4DGQ/JBtT4GP1a1lPPdio2z413LmTg==", - "engines": { - "node": ">=12.20" - } - }, - "node_modules/jest-watch-typeahead/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/strip-ansi/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, "node_modules/jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, "dependencies": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^27.5.1", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", "string-length": "^4.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, "dependencies": { "@types/node": "*", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, "engines": { - "node": ">= 10.13.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/jiti": { - "version": "1.21.6", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", - "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/js-base64": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", - "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==" - }, "node_modules/js-cookie": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", @@ -12105,94 +9996,10 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" - }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/jsdom/node_modules/form-data": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.2.tgz", - "integrity": "sha512-sJe+TQb2vIaIyO783qN6BlMYWMw3WBOHA1Ay2qxsnjuafEOQFJ2JakedOQirT6D5XPRxDvS7AHYyem9fTpb4LQ==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/jsdom/node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "bin": { "jsesc": "bin/jsesc" }, @@ -12203,34 +10010,43 @@ "node_modules/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==" + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz", + "integrity": "sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "isarray": "^2.0.5", + "jsonify": "^0.0.1", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/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==" - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "optional": true, - "peer": true + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true }, "node_modules/json5": { "version": "2.2.3", @@ -12254,81 +10070,19 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/jsonpath": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", - "integrity": "sha512-l6Cg7jRpixfbgoWgkrl77dgEj8RPvND0wMH6TwQmi9Qs4TFfS9u5cUFnbeKTwj5ga5Y3BTGGNI28k117LJ009w==", - "dependencies": { - "esprima": "1.2.2", - "static-eval": "2.0.2", - "underscore": "1.12.1" - } - }, - "node_modules/jsonpath/node_modules/esprima": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.2.2.tgz", - "integrity": "sha512-+JpPZam9w5DuJ3Q67SqsMGtiHKENSMRVoxvArfJZK01/BfLEObtZ6orJa/MtoGNR/rfMgp5837T41PAmTwAv/A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "optional": true, - "peer": true, - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/jsprim/node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", - "engines": [ - "node >=0.6.0" - ], - "optional": true, - "peer": true - }, - "node_modules/jsprim/node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", - "engines": [ - "node >=0.6.0" - ], - "optional": true, - "peer": true, - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "node_modules/jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/jsx-ast-utils": { "version": "3.3.5", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, "dependencies": { "array-includes": "^3.1.6", "array.prototype.flat": "^1.3.1", @@ -12347,6 +10101,31 @@ "node": ">=18" } }, + "node_modules/katex": { + "version": "0.16.22", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.22.tgz", + "integrity": "sha512-XCHRdUw4lf3SKBaJe4EvgqIuWwkPSo9XoeO8GjQW94Bp7TWv9hNhzZjZ+OH9yf1UmLygb7DIT5GSFQiyt16zYg==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "peer": true, + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "peer": true, + "engines": { + "node": ">= 12" + } + }, "node_modules/keyboard-key": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/keyboard-key/-/keyboard-key-1.1.0.tgz", @@ -12356,34 +10135,28 @@ "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, "dependencies": { "json-buffer": "3.0.1" } }, - "node_modules/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==", - "engines": { - "node": ">=0.10.0" + "node_modules/klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", + "dependencies": { + "graceful-fs": "^4.1.11" } }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/klona": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", - "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", - "engines": { - "node": ">= 8" - } - }, "node_modules/knuth-shuffle-seeded": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/knuth-shuffle-seeded/-/knuth-shuffle-seeded-1.0.6.tgz", @@ -12396,12 +10169,14 @@ "node_modules/language-subtag-registry": { "version": "0.3.23", "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", - "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==" + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true }, "node_modules/language-tags": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, "dependencies": { "language-subtag-registry": "^0.3.20" }, @@ -12409,19 +10184,11 @@ "node": ">=0.10" } }, - "node_modules/launch-editor": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.9.1.tgz", - "integrity": "sha512-Gcnl4Bd+hRO9P9icCP/RVVT2o8SFlPXofuCxvA2SaZuH45whSvf5p8x5oih5ftLiVhEI4sp5xDY+R+b3zJBh5w==", - "dependencies": { - "picocolors": "^1.0.0", - "shell-quote": "^1.8.1" - } - }, "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, "engines": { "node": ">=6" } @@ -12430,6 +10197,7 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -12438,66 +10206,43 @@ "node": ">= 0.8.0" } }, - "node_modules/lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", - "engines": { - "node": ">=10" - } - }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, + "node_modules/linkify-it": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz", + "integrity": "sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==", + "dependencies": { + "uc.micro": "^1.0.1" + } + }, "node_modules/linkify-react": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/linkify-react/-/linkify-react-4.1.4.tgz", - "integrity": "sha512-UI9nqHtFzHYRUvVRrYeua5GIXkc0Jy3RpLsJBWEht7HwqjAa2qSaIksGmNSLqclNpO/5AkwaxUJv71I/pQsk9Q==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/linkify-react/-/linkify-react-4.3.1.tgz", + "integrity": "sha512-w8ahBdCwF9C/doS4V3nE93QF1oyORmosvi8UEUbpHYws077eGzhkxUzJQcE2/SU5Q2K7SD80M4ybwwZGHErx5Q==", "peerDependencies": { "linkifyjs": "^4.0.0", "react": ">= 15.0.0" } }, "node_modules/linkifyjs": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.1.4.tgz", - "integrity": "sha512-0/NxkHNpiJ0k9VrYCkAn9OtU1eu8xEr1tCCpDtSsVRm/SF0xAak2Gzv3QimSfgUgqLBCDlfhMbu73XvaEHUTPQ==" - }, - "node_modules/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==", - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/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==", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.3.1.tgz", + "integrity": "sha512-DRSlB9DKVW04c4SUdGvKK5FR6be45lTU9M76JnngqPeeGDqPwYc0zdUErtsNVMtxPXgUWV4HbXbnC4sNyBxkYg==" }, "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, "dependencies": { - "p-locate": "^5.0.0" + "p-locate": "^4.1.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/lodash": { @@ -12513,36 +10258,20 @@ "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true }, "node_modules/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==" + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true }, - "node_modules/lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "node_modules/longest-streak": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", - "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } + "node_modules/lodash.mergewith": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", + "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==", + "dev": true }, "node_modules/loose-envify": { "version": "1.4.0", @@ -12555,15 +10284,6 @@ "loose-envify": "cli.js" } }, - "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.1" - } - }, "node_modules/lower-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", @@ -12572,6 +10292,20 @@ "tslib": "^2.0.3" } }, + "node_modules/lowlight": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.3.0.tgz", + "integrity": "sha512-0JNhgFoPvP6U6lE/UdVsSq99tn6DhjjpAj5MxG49ewd2mOBVtwWYIT8ClyABhq198aXXODMU6Ox8DrGy/CpTZQ==", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.0.0", + "highlight.js": "~11.11.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -12580,534 +10314,30 @@ "yallist": "^3.0.2" } }, - "node_modules/lz-string": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", - "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "node_modules/luxon": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.2.1.tgz", + "integrity": "sha512-QrwPArQCNLAKGO/C+ZIilgIuDnEnKx5QYODdDtbFaxzsbZcc/a7WFq7MhsVYgRlwawLtvOUESTlfJ+hc/USqPg==", "dev": true, - "bin": { - "lz-string": "bin/bin.js" + "engines": { + "node": ">=12" } }, "node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", "dependencies": { - "sourcemap-codec": "^1.4.8" + "@jridgewell/sourcemap-codec": "^1.5.0" } }, "node_modules/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==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/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==", - "dependencies": { - "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" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/make-fetch-happen/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/markdown-table": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", - "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/marked": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", - "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/mdast-util-definitions": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz", - "integrity": "sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "unist-util-visit": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-definitions/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-find-and-replace": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.1.tgz", - "integrity": "sha512-SG21kZHGC3XRTSUhtofZkBzZTJNM5ecCi0SK2IMKmSXR8vO3peL+kb1O0z7Zl83jKtutG4k5Wv/W7V3/YHvzPA==", - "dependencies": { - "@types/mdast": "^4.0.0", - "escape-string-regexp": "^5.0.0", - "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz", - "integrity": "sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "mdast-util-to-string": "^3.1.0", - "micromark": "^3.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-decode-string": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "unist-util-stringify-position": "^3.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-gfm": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-2.0.2.tgz", - "integrity": "sha512-qvZ608nBppZ4icQlhQQIAdc6S3Ffj9RGmzwUKUWuEICFnd1LVkN3EktF7ZHAgfcEdvZB5owU9tQgt99e2TlLjg==", - "dependencies": { - "mdast-util-from-markdown": "^1.0.0", - "mdast-util-gfm-autolink-literal": "^1.0.0", - "mdast-util-gfm-footnote": "^1.0.0", - "mdast-util-gfm-strikethrough": "^1.0.0", - "mdast-util-gfm-table": "^1.0.0", - "mdast-util-gfm-task-list-item": "^1.0.0", - "mdast-util-to-markdown": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-1.0.3.tgz", - "integrity": "sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA==", - "dependencies": { - "@types/mdast": "^3.0.0", - "ccount": "^2.0.0", - "mdast-util-find-and-replace": "^2.0.0", - "micromark-util-character": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/mdast-util-find-and-replace": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.2.tgz", - "integrity": "sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw==", - "dependencies": { - "@types/mdast": "^3.0.0", - "escape-string-regexp": "^5.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-footnote": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-1.0.2.tgz", - "integrity": "sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ==", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-to-markdown": "^1.3.0", - "micromark-util-normalize-identifier": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-footnote/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-gfm-strikethrough": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-1.0.3.tgz", - "integrity": "sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ==", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-to-markdown": "^1.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-strikethrough/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-gfm-table": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-1.0.7.tgz", - "integrity": "sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg==", - "dependencies": { - "@types/mdast": "^3.0.0", - "markdown-table": "^3.0.0", - "mdast-util-from-markdown": "^1.0.0", - "mdast-util-to-markdown": "^1.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-table/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-gfm-task-list-item": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-1.0.2.tgz", - "integrity": "sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ==", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-to-markdown": "^1.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-task-list-item/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-newline-to-break": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-newline-to-break/-/mdast-util-newline-to-break-2.0.0.tgz", - "integrity": "sha512-MbgeFca0hLYIEx/2zGsszCSEJJ1JSCdiY5xQxRcLDDGa8EPvlLPupJ4DSajbMPAnC0je8jfb9TiUATnxxrHUog==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-find-and-replace": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz", - "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==", - "dependencies": { - "@types/mdast": "^3.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-phrasing/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-hast": { - "version": "12.3.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz", - "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==", - "dependencies": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-definitions": "^5.0.0", - "micromark-util-sanitize-uri": "^1.1.0", - "trim-lines": "^3.0.0", - "unist-util-generated": "^2.0.0", - "unist-util-position": "^4.0.0", - "unist-util-visit": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-hast/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz", - "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^3.0.0", - "mdast-util-to-string": "^3.0.0", - "micromark-util-decode-string": "^1.0.0", - "unist-util-visit": "^4.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdast-util-to-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", - "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", - "dependencies": { - "@types/mdast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-string/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/mdn-data": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", - "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==" - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/memfs": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.3.tgz", - "integrity": "sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==", - "dependencies": { - "fs-monkey": "^1.0.4" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/memoize-one": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", - "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" - }, - "node_modules/meow": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", - "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", - "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "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" + "semver": "^7.5.3" }, "engines": { "node": ">=10" @@ -13116,10 +10346,207 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "node_modules/make-dir/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/markdown-it": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-13.0.2.tgz", + "integrity": "sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==", + "dependencies": { + "argparse": "^2.0.1", + "entities": "~3.0.1", + "linkify-it": "^4.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "bin": { + "markdown-it": "bin/markdown-it.js" + } + }, + "node_modules/markdown-it-attrs": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/markdown-it-attrs/-/markdown-it-attrs-4.3.1.tgz", + "integrity": "sha512-/ko6cba+H6gdZ0DOw7BbNMZtfuJTRp9g/IrGIuz8lYc/EfnmWRpaR3CFPnNbVz0LDvF8Gf1hFGPqrQqq7De0rg==", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "markdown-it": ">= 9.0.0" + } + }, + "node_modules/markdown-it-color": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/markdown-it-color/-/markdown-it-color-2.1.1.tgz", + "integrity": "sha512-GqXOSjT+RdGvxjdmPfRS/9XDr5dg4e2kC/mXbXK5Y1lbh/rVepoeaUGaD0Lmi1qS5M6cnbm9GrC8bu9YY8rRKQ==" + }, + "node_modules/markdown-it-deflist": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/markdown-it-deflist/-/markdown-it-deflist-2.1.0.tgz", + "integrity": "sha512-3OuqoRUlSxJiuQYu0cWTLHNhhq2xtoSFqsZK8plANg91+RJQU1ziQ6lA2LzmFAEes18uPBsHZpcX6We5l76Nzg==" + }, + "node_modules/markdown-it-directive": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/markdown-it-directive/-/markdown-it-directive-2.0.5.tgz", + "integrity": "sha512-hpLYmcVeKR6hbXRK3OlJm4oVaFaBJg6JQ5E7j5Xo7K3QbTMbMqeLXvHdAr1MDIe3iNogJNamTaNycjkOUJg7cg==", + "peerDependencies": { + "@types/markdown-it": "^12.0.0 || ^13.0.0", + "markdown-it": "^12.0.0 || ^13.0.0" + } + }, + "node_modules/markdown-it-emoji": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/markdown-it-emoji/-/markdown-it-emoji-2.0.2.tgz", + "integrity": "sha512-zLftSaNrKuYl0kR5zm4gxXjHaOI3FAOEaloKmRA5hijmJZvSjmxcokOLlzycb/HXlUFWzXqpIEoyEMCE4i9MvQ==" + }, + "node_modules/markdown-it-ins": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/markdown-it-ins/-/markdown-it-ins-3.0.1.tgz", + "integrity": "sha512-32SSfZqSzqyAmmQ4SHvhxbFqSzPDqsZgMHDwxqPzp+v+t8RsmqsBZRG+RfRQskJko9PfKC2/oxyOs4Yg/CfiRw==" + }, + "node_modules/markdown-it-mark": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/markdown-it-mark/-/markdown-it-mark-3.0.1.tgz", + "integrity": "sha512-HyxjAu6BRsdt6Xcv6TKVQnkz/E70TdGXEFHRYBGLncRE9lBFwDNLVtFojKxjJWgJ+5XxUwLaHXy+2sGBbDn+4A==" + }, + "node_modules/markdown-it-meta": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/markdown-it-meta/-/markdown-it-meta-0.0.1.tgz", + "integrity": "sha512-sCQG7mHJM3i4l6MztgzxE8t3aTQB5CSCO0wq8k6CEaqud40eryWXqPesq5AyztbYgwnxJcNIsmFsKDRkrl6Zuw==", + "dependencies": { + "js-yaml": "^3.8.1" + } + }, + "node_modules/markdown-it-meta/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/markdown-it-meta/node_modules/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==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/markdown-it-sub": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/markdown-it-sub/-/markdown-it-sub-1.0.0.tgz", + "integrity": "sha512-z2Rm/LzEE1wzwTSDrI+FlPEveAAbgdAdPhdWarq/ZGJrGW/uCQbKAnhoCsE4hAbc3SEym26+W2z/VQB0cQiA9Q==" + }, + "node_modules/markdown-it-sup": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/markdown-it-sup/-/markdown-it-sup-1.0.0.tgz", + "integrity": "sha512-E32m0nV9iyhRR7CrhnzL5msqic7rL1juWre6TQNxsnApg7Uf+F97JOKxUijg5YwXz86lZ0mqfOnutoryyNdntQ==" + }, + "node_modules/markdown-it/node_modules/entities": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", + "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/markdownlint": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.32.1.tgz", + "integrity": "sha512-3sx9xpi4xlHlokGyHO9k0g3gJbNY4DI6oNEeEYq5gQ4W7UkiJ90VDAnuDl2U+yyXOUa6BX+0gf69ZlTUGIBp6A==", + "dependencies": { + "markdown-it": "13.0.2", + "markdownlint-micromark": "0.1.7" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/DavidAnson" + } + }, + "node_modules/markdownlint-micromark": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/markdownlint-micromark/-/markdownlint-micromark-0.1.7.tgz", + "integrity": "sha512-BbRPTC72fl5vlSKv37v/xIENSRDYL/7X/XoFzZ740FGEbs9vZerLrIkFRY0rv7slQKxDczToYuMmqQFN61fi4Q==", + "engines": { + "node": ">=16" + } + }, + "node_modules/markdownlint-rule-helpers": { + "version": "0.17.2", + "resolved": "https://registry.npmjs.org/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.17.2.tgz", + "integrity": "sha512-XaeoW2NYSlWxMCZM2B3H7YTG6nlaLfkEZWMBhr4hSPlq9MuY2sy83+Xr89jXOqZMZYjvi5nBCGoFh7hHoPKZmA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" + }, + "node_modules/meow": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz", + "integrity": "sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==", + "engines": { + "node": ">=18" + }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } @@ -13127,7 +10554,8 @@ "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "node_modules/merge2": { "version": "1.4.1", @@ -13137,549 +10565,6 @@ "node": ">= 8" } }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromark": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz", - "integrity": "sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "micromark-core-commonmark": "^1.0.1", - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-core-commonmark": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz", - "integrity": "sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-factory-destination": "^1.0.0", - "micromark-factory-label": "^1.0.0", - "micromark-factory-space": "^1.0.0", - "micromark-factory-title": "^1.0.0", - "micromark-factory-whitespace": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-classify-character": "^1.0.0", - "micromark-util-html-tag-name": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-extension-gfm": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-2.0.3.tgz", - "integrity": "sha512-vb9OoHqrhCmbRidQv/2+Bc6pkP0FrtlhurxZofvOEy5o8RtuuvTq+RQ1Vw5ZDNrVraQZu3HixESqbG+0iKk/MQ==", - "dependencies": { - "micromark-extension-gfm-autolink-literal": "^1.0.0", - "micromark-extension-gfm-footnote": "^1.0.0", - "micromark-extension-gfm-strikethrough": "^1.0.0", - "micromark-extension-gfm-table": "^1.0.0", - "micromark-extension-gfm-tagfilter": "^1.0.0", - "micromark-extension-gfm-task-list-item": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-types": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-autolink-literal": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-1.0.5.tgz", - "integrity": "sha512-z3wJSLrDf8kRDOh2qBtoTRD53vJ+CWIyo7uyZuxf/JAbNJjiHsOpG1y5wxk8drtv3ETAHutCu6N3thkOOgueWg==", - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-footnote": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-1.1.2.tgz", - "integrity": "sha512-Yxn7z7SxgyGWRNa4wzf8AhYYWNrwl5q1Z8ii+CSTTIqVkmGZF1CElX2JI8g5yGoM3GAman9/PVCUFUSJ0kB/8Q==", - "dependencies": { - "micromark-core-commonmark": "^1.0.0", - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-strikethrough": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-1.0.7.tgz", - "integrity": "sha512-sX0FawVE1o3abGk3vRjOH50L5TTLr3b5XMqnP9YDRb34M0v5OoZhG+OHFz1OffZ9dlwgpTBKaT4XW/AsUVnSDw==", - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-classify-character": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-table": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-1.0.7.tgz", - "integrity": "sha512-3ZORTHtcSnMQEKtAOsBQ9/oHp9096pI/UvdPtN7ehKvrmZZ2+bbWhi0ln+I9drmwXMt5boocn6OlwQzNXeVeqw==", - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-tagfilter": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-1.0.2.tgz", - "integrity": "sha512-5XWB9GbAUSHTn8VPU8/1DBXMuKYT5uOgEjJb8gN3mW0PNW5OPHpSdojoqf+iq1xo7vWzw/P8bAHY0n6ijpXF7g==", - "dependencies": { - "micromark-util-types": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-task-list-item": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-1.0.5.tgz", - "integrity": "sha512-RMFXl2uQ0pNQy6Lun2YBYT9g9INXtWJULgbt01D/x8/6yJ2qpKyzdZD3pi6UIkzF++Da49xAelVKUeUMqd5eIQ==", - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-factory-destination": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz", - "integrity": "sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-label": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz", - "integrity": "sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-factory-space": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz", - "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-title": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz", - "integrity": "sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-whitespace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz", - "integrity": "sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-character": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz", - "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-chunked": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz", - "integrity": "sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-classify-character": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz", - "integrity": "sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-combine-extensions": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz", - "integrity": "sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz", - "integrity": "sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-decode-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz", - "integrity": "sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz", - "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-html-tag-name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz", - "integrity": "sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-normalize-identifier": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz", - "integrity": "sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-resolve-all": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz", - "integrity": "sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz", - "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-subtokenize": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz", - "integrity": "sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-util-symbol": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz", - "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz", - "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", @@ -13692,76 +10577,54 @@ "node": ">=8.6" } }, + "node_modules/miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dependencies": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "bin": { + "miller-rabin": "bin/miller-rabin" + } + }, + "node_modules/miller-rabin/node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==" + }, "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "dev": true, "bin": { "mime": "cli.js" }, "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" + "node": ">=10.0.0" } }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/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==", - "engines": { - "node": ">=4" - } - }, - "node_modules/mini-css-extract-plugin": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.9.2.tgz", - "integrity": "sha512-GJuACcS//jtq4kCtd5ii/M0SZf7OZRH+BxdqXZHaJfb8TJiVl+NgQRPwiYt2EuqeSkNydn/7vP+bcE27C5mb9w==", - "dependencies": { - "schema-utils": "^4.0.0", - "tapable": "^2.2.1" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, "node_modules/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==" }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -13781,129 +10644,28 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" } }, - "node_modules/minipass-collect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", - "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-fetch": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz", - "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==", - "dependencies": { - "minipass": "^3.1.6", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, - "node_modules/minipass-flush": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", - "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-pipeline": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", - "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", - "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minizlib/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-2.1.6.tgz", + "integrity": "sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==", + "dev": true, "bin": { - "mkdirp": "bin/cmd.js" + "mkdirp": "dist/cjs/src/bin.js" }, "engines": { "node": ">=10" - } - }, - "node_modules/mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "engines": { - "node": ">=4" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/ms": { @@ -13911,44 +10673,46 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, - "node_modules/multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", - "dependencies": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" - }, - "bin": { - "multicast-dns": "cli.js" - } - }, "node_modules/mz": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, - "node_modules/nan": { - "version": "2.22.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.0.tgz", - "integrity": "sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==" + "node_modules/nano-css": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/nano-css/-/nano-css-5.6.2.tgz", + "integrity": "sha512-+6bHaC8dSDGALM1HJjOHVXpuastdu2xFoZlC77Jh4cg+33Zcgm+Gxd+1xsnpZK14eyHObSp82+ll5y3SX75liw==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15", + "css-tree": "^1.1.2", + "csstype": "^3.1.2", + "fastest-stable-stringify": "^2.0.2", + "inline-style-prefixer": "^7.0.1", + "rtl-css-js": "^1.16.1", + "stacktrace-js": "^2.0.2", + "stylis": "^4.3.0" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*" + } }, "node_modules/nanoid": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.9.tgz", - "integrity": "sha512-Aooyr6MXU6HpvvWXKoVoXwKMs/KyVakWwg7xQfv5/S/RIgJMy0Ifa45H9qqYy7pTCszrHzP21Uk4PZq2HpEM8Q==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.5.tgz", + "integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "bin": { "nanoid": "bin/nanoid.js" }, @@ -13959,30 +10723,7 @@ "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" - }, - "node_modules/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==" - }, - "node_modules/negotiator": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", - "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node_modules/next-tick": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, "node_modules/no-case": { @@ -13994,288 +10735,132 @@ "tslib": "^2.0.3" } }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", - "engines": { - "node": ">= 6.13.0" - } - }, - "node_modules/node-gyp": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", - "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", - "dependencies": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.6", - "make-fetch-happen": "^9.1.0", - "nopt": "^5.0.0", - "npmlog": "^6.0.0", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.2", - "which": "^2.0.2" - }, - "bin": { - "node-gyp": "bin/node-gyp.js" - }, - "engines": { - "node": ">= 10.12.0" - } - }, - "node_modules/node-gyp/node_modules/@npmcli/fs": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", - "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", - "dependencies": { - "@gar/promisify": "^1.0.1", - "semver": "^7.3.5" - } - }, - "node_modules/node-gyp/node_modules/@npmcli/move-file": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", - "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", - "deprecated": "This functionality has been moved to @npmcli/fs", - "dependencies": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-gyp/node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/node-gyp/node_modules/cacache": { - "version": "15.3.0", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", - "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", - "dependencies": { - "@npmcli/fs": "^1.0.0", - "@npmcli/move-file": "^1.0.1", - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "glob": "^7.1.4", - "infer-owner": "^1.0.4", - "lru-cache": "^6.0.0", - "minipass": "^3.1.1", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.2", - "mkdirp": "^1.0.3", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^8.0.1", - "tar": "^6.0.2", - "unique-filename": "^1.1.1" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/node-gyp/node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/node-gyp/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-gyp/node_modules/make-fetch-happen": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", - "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", - "dependencies": { - "agentkeepalive": "^4.1.3", - "cacache": "^15.2.0", - "http-cache-semantics": "^4.1.0", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^6.0.0", - "minipass": "^3.1.3", - "minipass-collect": "^1.0.2", - "minipass-fetch": "^1.3.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.2", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^6.0.0", - "ssri": "^8.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/node-gyp/node_modules/minipass-fetch": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", - "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", - "dependencies": { - "minipass": "^3.1.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "optionalDependencies": { - "encoding": "^0.1.12" - } - }, - "node_modules/node-gyp/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-gyp/node_modules/socks-proxy-agent": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", - "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", - "dependencies": { - "agent-base": "^6.0.2", - "debug": "^4.3.3", - "socks": "^2.6.2" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/node-gyp/node_modules/ssri": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", - "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", - "dependencies": { - "minipass": "^3.1.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/node-gyp/node_modules/unique-filename": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", - "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "dependencies": { - "unique-slug": "^2.0.0" - } - }, - "node_modules/node-gyp/node_modules/unique-slug": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", - "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "dependencies": { - "imurmurhash": "^0.1.4" - } - }, - "node_modules/node-gyp/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true }, "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==" + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==" }, - "node_modules/node-sass": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-9.0.0.tgz", - "integrity": "sha512-yltEuuLrfH6M7Pq2gAj5B6Zm7m+gdZoG66wTqG6mIZV/zijq3M2OO2HswtT6oBspPyFhHDcaxWpsBm0fRNDHPg==", - "deprecated": "Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.", - "hasInstallScript": true, + "node_modules/node-stdlib-browser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-stdlib-browser/-/node-stdlib-browser-1.3.1.tgz", + "integrity": "sha512-X75ZN8DCLftGM5iKwoYLA3rjnrAEs97MkzvSd4q2746Tgpg8b8XWiBGiBG4ZpgcAqBgtgPHTiAc8ZMCvZuikDw==", "dependencies": { - "async-foreach": "^0.1.3", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "lodash": "^4.17.15", - "make-fetch-happen": "^10.0.4", - "meow": "^9.0.0", - "nan": "^2.17.0", - "node-gyp": "^8.4.1", - "sass-graph": "^4.0.1", - "stdout-stream": "^1.4.0", - "true-case-path": "^2.2.1" - }, - "bin": { - "node-sass": "bin/node-sass" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/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==", - "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" + "assert": "^2.0.0", + "browser-resolve": "^2.0.0", + "browserify-zlib": "^0.2.0", + "buffer": "^5.7.1", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "create-require": "^1.1.1", + "crypto-browserify": "^3.12.1", + "domain-browser": "4.22.0", + "events": "^3.0.0", + "https-browserify": "^1.0.0", + "isomorphic-timers-promises": "^1.0.1", + "os-browserify": "^0.3.0", + "path-browserify": "^1.0.1", + "pkg-dir": "^5.0.0", + "process": "^0.11.10", + "punycode": "^1.4.1", + "querystring-es3": "^0.2.1", + "readable-stream": "^3.6.0", + "stream-browserify": "^3.0.0", + "stream-http": "^3.2.0", + "string_decoder": "^1.0.0", + "timers-browserify": "^2.0.4", + "tty-browserify": "0.0.1", + "url": "^0.11.4", + "util": "^0.12.4", + "vm-browserify": "^1.0.1" }, "engines": { "node": ">=10" } }, + "node_modules/node-stdlib-browser/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/node-stdlib-browser/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/node-stdlib-browser/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/node-stdlib-browser/node_modules/pkg-dir": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz", + "integrity": "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==", + "dependencies": { + "find-up": "^5.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-stdlib-browser/node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" + }, + "node_modules/normalize-package-data": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-6.0.2.tgz", + "integrity": "sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==", + "dev": true, + "dependencies": { + "hosted-git-info": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, "bin": { "semver": "bin/semver.js" }, @@ -14287,33 +10872,16 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/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==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/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, "dependencies": { "path-key": "^3.0.0" }, @@ -14321,21 +10889,6 @@ "node": ">=8" } }, - "node_modules/npmlog": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", - "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", - "deprecated": "This package is no longer supported.", - "dependencies": { - "are-we-there-yet": "^3.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^4.0.3", - "set-blocking": "^2.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, "node_modules/nth-check": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", @@ -14347,21 +10900,6 @@ "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "node_modules/nwsapi": { - "version": "2.2.13", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.13.tgz", - "integrity": "sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==" - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "optional": true, - "peer": true, - "engines": { - "node": "*" - } - }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -14370,18 +10908,25 @@ "node": ">=0.10.0" } }, - "node_modules/object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "engines": { - "node": ">= 6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object-inspect": { - "version": "1.13.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", - "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", + "node_modules/object-is": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", + "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1" + }, "engines": { "node": ">= 0.4" }, @@ -14398,13 +10943,15 @@ } }, "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", "object-keys": "^1.1.1" }, "engines": { @@ -14415,13 +10962,15 @@ } }, "node_modules/object.entries": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", - "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", + "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" + "es-object-atoms": "^1.1.1" }, "engines": { "node": ">= 0.4" @@ -14431,6 +10980,7 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -14444,30 +10994,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.getownpropertydescriptors": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.8.tgz", - "integrity": "sha512-qkHIGe4q0lSYMv0XI4SsBTJz3WaURhLvd0lKSgtVuOsJ2krg4SgMw3PIRQFMp07yi++UR3se2mkcLqsBNpBb/A==", - "dependencies": { - "array.prototype.reduce": "^1.0.6", - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0", - "gopd": "^1.0.1", - "safe-array-concat": "^1.1.2" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object.groupby": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -14478,11 +11009,13 @@ } }, "node_modules/object.values": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.0.tgz", - "integrity": "sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" }, @@ -14493,30 +11026,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/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==", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -14529,6 +11038,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, "dependencies": { "mimic-fn": "^2.1.0" }, @@ -14540,16 +11050,15 @@ } }, "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" }, "engines": { - "node": ">=12" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -14559,6 +11068,7 @@ "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -14571,6 +11081,41 @@ "node": ">= 0.8.0" } }, + "node_modules/orderedmap": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz", + "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==" + }, + "node_modules/os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==" + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -14586,57 +11131,37 @@ } }, "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "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, "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" + "p-limit": "^2.2.0" }, "engines": { "node": ">=8" } }, - "node_modules/p-retry/node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, "engines": { - "node": ">= 4" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, "engines": { "node": ">=6" } @@ -14644,7 +11169,8 @@ "node_modules/package-json-from-dist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==" + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true }, "node_modules/pad-right": { "version": "0.2.2", @@ -14658,14 +11184,10 @@ "node": ">=0.10.0" } }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, "node_modules/parent-module": { "version": "1.0.1", @@ -14678,6 +11200,22 @@ "node": ">=6" } }, + "node_modules/parse-asn1": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.7.tgz", + "integrity": "sha512-CTM5kuWR3sx9IFamcl5ErfPl6ea/N8IYwiJ+vpeB2g+1iknv7zBl5uPwbMbRVznRVbrNY6lGuDoE5b30grmbqg==", + "dependencies": { + "asn1.js": "^4.10.1", + "browserify-aes": "^1.2.0", + "evp_bytestokey": "^1.0.3", + "hash-base": "~3.0", + "pbkdf2": "^3.1.2", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -14695,10 +11233,55 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parse-srcset": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz", + "integrity": "sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==" + }, "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-htmlparser2-tree-adapter": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz", + "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==", + "dependencies": { + "domhandler": "^5.0.3", + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-parser-stream": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz", + "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==", + "dependencies": { + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5/node_modules/entities": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.0.tgz", + "integrity": "sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } }, "node_modules/parseqs": { "version": "0.0.6", @@ -14710,23 +11293,102 @@ "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.6.tgz", "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==" }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "node_modules/patch-package": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", + "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", + "dependencies": { + "@yarnpkg/lockfile": "^1.1.0", + "chalk": "^4.1.2", + "ci-info": "^3.7.0", + "cross-spawn": "^7.0.3", + "find-yarn-workspace-root": "^2.0.0", + "fs-extra": "^9.0.0", + "json-stable-stringify": "^1.0.2", + "klaw-sync": "^6.0.0", + "minimist": "^1.2.6", + "open": "^7.4.2", + "rimraf": "^2.6.3", + "semver": "^7.5.3", + "slash": "^2.0.0", + "tmp": "^0.0.33", + "yaml": "^2.2.2" + }, + "bin": { + "patch-package": "index.js" + }, "engines": { - "node": ">= 0.8" + "node": ">=14", + "npm": ">5" } }, - "node_modules/pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "node_modules/patch-package/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/patch-package/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/patch-package/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/patch-package/node_modules/slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/patch-package/node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -14760,6 +11422,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -14774,21 +11437,8 @@ "node_modules/path-scurry/node_modules/lru-cache": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" - }, - "node_modules/path-scurry/node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "license": "MIT" + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true }, "node_modules/path-type": { "version": "4.0.0", @@ -14798,13 +11448,19 @@ "node": ">=8" } }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true, + "node_modules/pbkdf2": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", + "dependencies": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + }, "engines": { - "node": "*" + "node": ">=0.12" } }, "node_modules/performance-now": { @@ -14836,18 +11492,11 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, "engines": { "node": ">= 6" } @@ -14856,6 +11505,7 @@ "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, "dependencies": { "find-up": "^4.0.0" }, @@ -14863,128 +11513,13 @@ "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" - } - }, "node_modules/playwright": { - "version": "1.49.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.0.tgz", - "integrity": "sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.52.0.tgz", + "integrity": "sha512-JAwMNMBlxJ2oD1kce4KPtMkDeKGHQstdpFPcPH3maElAXon/QZeTvtsfXmTMRyO9TslfoYOXkSsvao2nE1ilTw==", "dev": true, "dependencies": { - "playwright-core": "1.49.0" + "playwright-core": "1.52.0" }, "bin": { "playwright": "cli.js" @@ -14997,9 +11532,9 @@ } }, "node_modules/playwright-core": { - "version": "1.49.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.0.tgz", - "integrity": "sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.52.0.tgz", + "integrity": "sha512-l2osTgLXSMeuLZOML9qYODUQoPPnUsKsb5/P6LJ2e6uPKXUdPK5WYhN4z03G+YNbWmGDY4YENauNu4ZKczreHg==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -15008,18 +11543,32 @@ "node": ">=18" } }, + "node_modules/playwright/node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", "engines": { "node": ">= 0.4" } }, "node_modules/postcss": { - "version": "8.4.49", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", - "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", + "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", "funding": [ { "type": "opencollective", @@ -15035,7 +11584,7 @@ } ], "dependencies": { - "nanoid": "^3.3.7", + "nanoid": "^3.3.8", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -15043,1215 +11592,10 @@ "node": "^10 || ^12 || >=14" } }, - "node_modules/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==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-browser-comments": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz", - "integrity": "sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg==", - "engines": { - "node": ">=8" - }, - "peerDependencies": { - "browserslist": ">=4", - "postcss": ">=8" - } - }, - "node_modules/postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", - "dependencies": { - "postcss-selector-parser": "^6.0.9", - "postcss-value-parser": "^4.2.0" - }, - "peerDependencies": { - "postcss": "^8.2.2" - } - }, - "node_modules/postcss-clamp": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz", - "integrity": "sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": ">=7.6.0" - }, - "peerDependencies": { - "postcss": "^8.4.6" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "colord": "^2.9.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.3" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.3" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/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==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/postcss-flexbugs-fixes": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz", - "integrity": "sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==", - "peerDependencies": { - "postcss": "^8.1.4" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/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==", - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/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==", - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-import": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", - "dependencies": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/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==", - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-js": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", - "dependencies": { - "camelcase-css": "^2.0.1" - }, - "engines": { - "node": "^12 || ^14 || >= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.4.21" - } - }, - "node_modules/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==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-load-config": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", - "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "lilconfig": "^3.0.0", - "yaml": "^2.3.4" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/postcss-load-config/node_modules/lilconfig": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", - "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/postcss-load-config/node_modules/yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/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==", - "dependencies": { - "cosmiconfig": "^7.0.0", - "klona": "^2.0.5", - "semver": "^7.3.5" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "postcss": "^7.0.0 || ^8.0.1", - "webpack": "^5.0.0" - } - }, - "node_modules/postcss-loader/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/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==", - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/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==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", - "dependencies": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", - "dependencies": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-modules-extract-imports": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz", - "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-local-by-default": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.1.0.tgz", - "integrity": "sha512-rm0bdSv4jC3BDma3s9H19ZddW0aHX6EoqwDYU2IfZhRN+53QrufTRo2IdkAbRqLx4R2IYbZnbjKKxg4VN5oU9Q==", - "dependencies": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^7.0.0", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", - "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-modules-scope": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz", - "integrity": "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==", - "dependencies": { - "postcss-selector-parser": "^7.0.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-scope/node_modules/postcss-selector-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", - "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/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==", - "dependencies": { - "icss-utils": "^5.0.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-nested": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", - "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "postcss-selector-parser": "^6.1.1" - }, - "engines": { - "node": ">=12.0" - }, - "peerDependencies": { - "postcss": "^8.2.14" - } - }, - "node_modules/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==", - "dependencies": { - "@csstools/selector-specificity": "^2.0.0", - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-normalize": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz", - "integrity": "sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA==", - "dependencies": { - "@csstools/normalize.css": "*", - "postcss-browser-comments": "^4", - "sanitize.css": "*" - }, - "engines": { - "node": ">= 12" - }, - "peerDependencies": { - "browserslist": ">= 4", - "postcss": ">= 8" - } - }, - "node_modules/postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", - "dependencies": { - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-opacity-percentage": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz", - "integrity": "sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A==", - "funding": [ - { - "type": "kofi", - "url": "https://ko-fi.com/mrcgrtz" - }, - { - "type": "liberapay", - "url": "https://liberapay.com/mrcgrtz" - } - ], - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", - "dependencies": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/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==", - "peerDependencies": { - "postcss": "^8" - } - }, - "node_modules/postcss-place": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", - "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-preset-env": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz", - "integrity": "sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag==", - "dependencies": { - "@csstools/postcss-cascade-layers": "^1.1.1", - "@csstools/postcss-color-function": "^1.1.1", - "@csstools/postcss-font-format-keywords": "^1.0.1", - "@csstools/postcss-hwb-function": "^1.0.2", - "@csstools/postcss-ic-unit": "^1.0.1", - "@csstools/postcss-is-pseudo-class": "^2.0.7", - "@csstools/postcss-nested-calc": "^1.0.0", - "@csstools/postcss-normalize-display-values": "^1.0.1", - "@csstools/postcss-oklab-function": "^1.1.1", - "@csstools/postcss-progressive-custom-properties": "^1.3.0", - "@csstools/postcss-stepped-value-functions": "^1.0.1", - "@csstools/postcss-text-decoration-shorthand": "^1.0.0", - "@csstools/postcss-trigonometric-functions": "^1.0.2", - "@csstools/postcss-unset-value": "^1.0.2", - "autoprefixer": "^10.4.13", - "browserslist": "^4.21.4", - "css-blank-pseudo": "^3.0.3", - "css-has-pseudo": "^3.0.4", - "css-prefers-color-scheme": "^6.0.3", - "cssdb": "^7.1.0", - "postcss-attribute-case-insensitive": "^5.0.2", - "postcss-clamp": "^4.1.0", - "postcss-color-functional-notation": "^4.2.4", - "postcss-color-hex-alpha": "^8.0.4", - "postcss-color-rebeccapurple": "^7.1.1", - "postcss-custom-media": "^8.0.2", - "postcss-custom-properties": "^12.1.10", - "postcss-custom-selectors": "^6.0.3", - "postcss-dir-pseudo-class": "^6.0.5", - "postcss-double-position-gradients": "^3.1.2", - "postcss-env-function": "^4.0.6", - "postcss-focus-visible": "^6.0.4", - "postcss-focus-within": "^5.0.4", - "postcss-font-variant": "^5.0.0", - "postcss-gap-properties": "^3.0.5", - "postcss-image-set-function": "^4.0.7", - "postcss-initial": "^4.0.1", - "postcss-lab-function": "^4.2.1", - "postcss-logical": "^5.0.4", - "postcss-media-minmax": "^5.0.0", - "postcss-nesting": "^10.2.0", - "postcss-opacity-percentage": "^1.1.2", - "postcss-overflow-shorthand": "^3.0.4", - "postcss-page-break": "^3.0.4", - "postcss-place": "^7.0.5", - "postcss-pseudo-class-any-link": "^7.1.6", - "postcss-replace-overflow-wrap": "^4.0.0", - "postcss-selector-not": "^6.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/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==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/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==", - "peerDependencies": { - "postcss": "^8.0.3" - } - }, - "node_modules/postcss-selector-not": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz", - "integrity": "sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", - "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-svgo/node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/postcss-svgo/node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "node_modules/postcss-svgo/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-svgo/node_modules/svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", - "dependencies": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" - }, - "bin": { - "svgo": "bin/svgo" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/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==" - }, "node_modules/postcss/node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", "funding": [ { "type": "github", @@ -16269,41 +11613,58 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, "engines": { "node": ">= 0.8.0" } }, - "node_modules/pretty-bytes": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", - "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, "engines": { - "node": ">=6" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/pretty-error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", - "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "node_modules/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, "dependencies": { - "lodash": "^4.17.20", - "renderkid": "^3.0.0" + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, "dependencies": { - "ansi-regex": "^5.0.1", + "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" + "react-is": "^18.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" } }, "node_modules/process-nextick-args": { @@ -16320,35 +11681,11 @@ "node": ">=0.4.0" } }, - "node_modules/promise": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", - "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", - "dependencies": { - "asap": "~2.0.6" - } - }, - "node_modules/promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==" - }, - "node_modules/promise-retry": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", - "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", - "dependencies": { - "err-code": "^2.0.2", - "retry": "^0.12.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -16372,73 +11709,204 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, - "node_modules/property-information": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.5.0.tgz", - "integrity": "sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "node_modules/property-expr": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz", + "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==", "dev": true }, - "node_modules/psl": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.13.0.tgz", - "integrity": "sha512-BFwmFXiJoFqlUpZ5Qssolv15DMyc84gTBds1BjsV1BfXEo1UyyD7GsmN67n7J77uRhoSNW1AXtXKPLcBFQn9Aw==", + "node_modules/prosemirror-autocomplete": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/prosemirror-autocomplete/-/prosemirror-autocomplete-0.4.3.tgz", + "integrity": "sha512-a4w/SOzgrTjXaWpSYMrai6H3KHSUBuADZC/DBm4VApiD9LGHpv98zQbHzsHgInrEoWcBGzYVT0HUD3tLgrsEVQ==", "dependencies": { - "punycode": "^2.3.1" + "prosemirror-inputrules": "^1.2.0", + "prosemirror-state": "^1.4.1", + "prosemirror-view": "^1.27.0" } }, + "node_modules/prosemirror-codemark": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/prosemirror-codemark/-/prosemirror-codemark-0.4.2.tgz", + "integrity": "sha512-4n+PnGQToa/vTjn0OiivUvE8/moLtguUAfry8UA4Q8p47MhqT2Qpf2zBLustX5Upi4mSp3z1ZYBqLLovZC6abA==", + "peerDependencies": { + "prosemirror-inputrules": "^1.2.0", + "prosemirror-model": "^1.18.1", + "prosemirror-state": "^1.4.1", + "prosemirror-view": "^1.26.2" + } + }, + "node_modules/prosemirror-commands": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.1.tgz", + "integrity": "sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.10.2" + } + }, + "node_modules/prosemirror-dropcursor": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.2.tgz", + "integrity": "sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0", + "prosemirror-view": "^1.1.0" + } + }, + "node_modules/prosemirror-history": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.4.1.tgz", + "integrity": "sha512-2JZD8z2JviJrboD9cPuX/Sv/1ChFng+xh2tChQ2X4bB2HeK+rra/bmJ3xGntCcjhOqIzSDG6Id7e8RJ9QPXLEQ==", + "dependencies": { + "prosemirror-state": "^1.2.2", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.31.0", + "rope-sequence": "^1.3.0" + } + }, + "node_modules/prosemirror-inputrules": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.5.0.tgz", + "integrity": "sha512-K0xJRCmt+uSw7xesnHmcn72yBGTbY45vm8gXI4LZXbx2Z0jwh5aF9xrGQgrVPu0WbyFVFF3E/o9VhJYz6SQWnA==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-keymap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz", + "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "w3c-keyname": "^2.2.0" + } + }, + "node_modules/prosemirror-model": { + "version": "1.25.1", + "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.1.tgz", + "integrity": "sha512-AUvbm7qqmpZa5d9fPKMvH1Q5bqYQvAZWOGRvxsB6iFLyycvC9MwNemNVjHVrWgjaoxAfY8XVg7DbvQ/qxvI9Eg==", + "dependencies": { + "orderedmap": "^2.0.0" + } + }, + "node_modules/prosemirror-schema-basic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/prosemirror-schema-basic/-/prosemirror-schema-basic-1.2.4.tgz", + "integrity": "sha512-ELxP4TlX3yr2v5rM7Sb70SqStq5NvI15c0j9j/gjsrO5vaw+fnnpovCLEGIcpeGfifkuqJwl4fon6b+KdrODYQ==", + "dependencies": { + "prosemirror-model": "^1.25.0" + } + }, + "node_modules/prosemirror-schema-list": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.5.1.tgz", + "integrity": "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.7.3" + } + }, + "node_modules/prosemirror-state": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.3.tgz", + "integrity": "sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.27.0" + } + }, + "node_modules/prosemirror-test-builder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/prosemirror-test-builder/-/prosemirror-test-builder-1.1.1.tgz", + "integrity": "sha512-DJ1+4TNTE9ZcYN/ozXCaWJVrGA99UttMoVvZuidvAotRg7FaiNtEYxL/vlDwfZDRnzJDXNYhmM3XPv3EweK7yA==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-schema-basic": "^1.0.0", + "prosemirror-schema-list": "^1.0.0" + } + }, + "node_modules/prosemirror-transform": { + "version": "1.10.4", + "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.10.4.tgz", + "integrity": "sha512-pwDy22nAnGqNR1feOQKHxoFkkUtepoFAd3r2hbEDsnf4wp57kKA36hXsB3njA9FtONBEwSDnDeCiJe+ItD+ykw==", + "dependencies": { + "prosemirror-model": "^1.21.0" + } + }, + "node_modules/prosemirror-utils": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/prosemirror-utils/-/prosemirror-utils-1.2.2.tgz", + "integrity": "sha512-7a2MPf99oCW8/587rQYI1/snX71Ban40+apr1hLkY8TmU9YXd7JeR6QsmktcTisJURO3WRjxIia4lTMsYgZVOw==", + "peerDependencies": { + "prosemirror-model": "^1.19.2", + "prosemirror-state": "^1.4.3" + } + }, + "node_modules/prosemirror-view": { + "version": "1.39.2", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.39.2.tgz", + "integrity": "sha512-BmOkml0QWNob165gyUxXi5K5CVUgVPpqMEAAml/qzgKn9boLUWVPzQ6LtzXw8Cn1GtRQX4ELumPxqtLTDaAKtg==", + "dependencies": { + "prosemirror-model": "^1.20.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0" + } + }, + "node_modules/public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dependencies": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/public-encrypt/node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==" + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", - "deprecated": "You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.\n\n(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)", - "engines": { - "node": ">=0.6.0", - "teleport": ">=0.2.0" - } + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] }, "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", "dependencies": { - "side-channel": "^1.0.6" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -16447,10 +11915,13 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + "node_modules/querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", + "engines": { + "node": ">=0.4.x" + } }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -16472,11 +11943,14 @@ ] }, "node_modules/quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/raf": { @@ -16505,37 +11979,43 @@ "safe-buffer": "^5.1.0" } }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" + "node_modules/randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dependencies": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" } }, - "node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "node_modules/rc-slider": { + "version": "11.1.8", + "resolved": "https://registry.npmjs.org/rc-slider/-/rc-slider-11.1.8.tgz", + "integrity": "sha512-2gg/72YFSpKP+Ja5AjC5DPL1YnV8DEITDQrcc1eASrUYjl0esptaBVJBh5nLTXCCp15eD8EuGjwezVGSHhs9tQ==", "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" + "@babel/runtime": "^7.10.1", + "classnames": "^2.2.5", + "rc-util": "^5.36.0" }, "engines": { - "node": ">= 0.8" + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" } }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "node_modules/rc-util": { + "version": "5.44.4", + "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-5.44.4.tgz", + "integrity": "sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w==", "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" + "@babel/runtime": "^7.18.3", + "react-is": "^18.2.0" }, - "engines": { - "node": ">=0.10.0" + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" } }, "node_modules/re-reselect": { @@ -16557,49 +12037,6 @@ "node": ">=0.10.0" } }, - "node_modules/react-app-polyfill": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz", - "integrity": "sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w==", - "dependencies": { - "core-js": "^3.19.2", - "object-assign": "^4.1.1", - "promise": "^8.1.0", - "raf": "^3.4.1", - "regenerator-runtime": "^0.13.9", - "whatwg-fetch": "^3.6.2" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/react-app-polyfill/node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "node_modules/react-app-rewired": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/react-app-rewired/-/react-app-rewired-2.2.1.tgz", - "integrity": "sha512-uFQWTErXeLDrMzOJHKp0h8P1z0LV9HzPGsJ6adOtGlA/B9WfT6Shh4j2tLTTGlXOfiVx6w6iWpp7SOC5pvk+gA==", - "dependencies": { - "semver": "^5.6.0" - }, - "bin": { - "react-app-rewired": "bin/index.js" - }, - "peerDependencies": { - "react-scripts": ">=2.1.3" - } - }, - "node_modules/react-app-rewired/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/react-beautiful-dnd": { "version": "13.1.1", "resolved": "https://registry.npmjs.org/react-beautiful-dnd/-/react-beautiful-dnd-13.1.1.tgz", @@ -16619,6 +12056,11 @@ "react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0" } }, + "node_modules/react-beautiful-dnd/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, "node_modules/react-beautiful-dnd/node_modules/react-redux": { "version": "7.2.9", "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.2.9.tgz", @@ -16660,48 +12102,6 @@ "react-dom": "^16.9.0 || ^17 || ^18" } }, - "node_modules/react-dev-utils": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", - "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", - "dependencies": { - "@babel/code-frame": "^7.16.0", - "address": "^1.1.2", - "browserslist": "^4.18.1", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "detect-port-alt": "^1.1.6", - "escape-string-regexp": "^4.0.0", - "filesize": "^8.0.6", - "find-up": "^5.0.0", - "fork-ts-checker-webpack-plugin": "^6.5.0", - "global-modules": "^2.0.0", - "globby": "^11.0.4", - "gzip-size": "^6.0.0", - "immer": "^9.0.7", - "is-root": "^2.1.0", - "loader-utils": "^3.2.0", - "open": "^8.4.0", - "pkg-up": "^3.1.0", - "prompts": "^2.4.2", - "react-error-overlay": "^6.0.11", - "recursive-readdir": "^2.2.2", - "shell-quote": "^1.7.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/react-dev-utils/node_modules/loader-utils": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.3.1.tgz", - "integrity": "sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg==", - "engines": { - "node": ">= 12.13.0" - } - }, "node_modules/react-dom": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", @@ -16715,9 +12115,9 @@ } }, "node_modules/react-dropzone": { - "version": "14.3.5", - "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-14.3.5.tgz", - "integrity": "sha512-9nDUaEEpqZLOz5v5SUcFA0CjM4vq8YbqO0WRls+EYT7+DvxUdzDPKNCPLqGfj3YL9MsniCLCD4RFA6M95V6KMQ==", + "version": "14.3.8", + "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-14.3.8.tgz", + "integrity": "sha512-sBgODnq+lcA4P296DY4wacOZz3JFpD99fp+hb//iBO2HHnyeZU3FwWyXJ6salNpqQdsZrgMrotuko/BdJMV8Ug==", "dependencies": { "attr-accept": "^2.2.4", "file-selector": "^2.1.0", @@ -16730,27 +12130,73 @@ "react": ">= 16.8 || 18.0.0" } }, - "node_modules/react-error-overlay": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", - "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" + "node_modules/react-error-boundary": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz", + "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "peerDependencies": { + "react": ">=16.13.1" + } }, "node_modules/react-fast-compare": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" }, + "node_modules/react-frame-component": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/react-frame-component/-/react-frame-component-5.2.7.tgz", + "integrity": "sha512-ROjHtSLoSVYUBfTieazj/nL8jIX9rZFmHC0yXEU+dx6Y82OcBEGgU9o7VyHMrBFUN9FuQ849MtIPNNLsb4krbg==", + "peerDependencies": { + "prop-types": "^15.5.9", + "react": ">= 16.3", + "react-dom": ">= 16.3" + } + }, + "node_modules/react-hot-toast": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/react-hot-toast/-/react-hot-toast-2.5.2.tgz", + "integrity": "sha512-Tun3BbCxzmXXM7C+NI4qiv6lT0uwGh4oAfeJyNOjYUejTsm35mK9iCaYLGv8cBz9L5YxZLx/2ii7zsIwPtPUdw==", + "dependencies": { + "csstype": "^3.1.3", + "goober": "^2.1.16" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": ">=16", + "react-dom": ">=16" + } + }, + "node_modules/react-hotkeys-hook": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-4.5.0.tgz", + "integrity": "sha512-Samb85GSgAWFQNvVt3PS90LPPGSf9mkH/r4au81ZP1yOIFayLC3QAvqTgGtJ8YEDMXtPmaVBs6NgipHO6h4Mug==", + "peerDependencies": { + "react": ">=16.8.1", + "react-dom": ">=16.8.1" + } + }, "node_modules/react-i18next": { - "version": "15.1.1", - "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-15.1.1.tgz", - "integrity": "sha512-R/Vg9wIli2P3FfeI8o1eNJUJue5LWpFsQePCHdQDmX0Co3zkr6kdT8gAseb/yGeWbNz1Txc4bKDQuZYsC0kQfw==", + "version": "15.5.1", + "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-15.5.1.tgz", + "integrity": "sha512-C8RZ7N7H0L+flitiX6ASjq9p5puVJU1Z8VyL3OgM/QOMRf40BMZX+5TkpxzZVcTmOLPX5zlti4InEX5pFyiVeA==", "dependencies": { "@babel/runtime": "^7.25.0", "html-parse-stringify": "^3.0.1" }, "peerDependencies": { "i18next": ">= 23.2.3", - "react": ">= 16.8.0" + "react": ">= 16.8.0", + "typescript": "^5" }, "peerDependenciesMeta": { "react-dom": { @@ -16758,6 +12204,9 @@ }, "react-native": { "optional": true + }, + "typescript": { + "optional": true } } }, @@ -16774,50 +12223,29 @@ "react-dom": ">=0.14.0" } }, - "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" - }, - "node_modules/react-markdown": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz", - "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==", - "dependencies": { - "@types/hast": "^2.0.0", - "@types/prop-types": "^15.0.0", - "@types/unist": "^2.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-whitespace": "^2.0.0", - "prop-types": "^15.0.0", - "property-information": "^6.0.0", - "react-is": "^18.0.0", - "remark-parse": "^10.0.0", - "remark-rehype": "^10.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-object": "^0.4.0", - "unified": "^10.0.0", - "unist-util-visit": "^4.0.0", - "vfile": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, + "node_modules/react-intersection-observer": { + "version": "9.16.0", + "resolved": "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-9.16.0.tgz", + "integrity": "sha512-w9nJSEp+DrW9KmQmeWHQyfaP6b03v+TdXynaoA964Wxt7mdR3An11z4NNCQgL4gKSK7y1ver2Fq+JKH6CWEzUA==", "peerDependencies": { - "@types/react": ">=16", - "react": ">=16" + "react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } } }, - "node_modules/react-markdown/node_modules/react-is": { + "node_modules/react-is": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/react-onclickoutside": { - "version": "6.13.1", - "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.13.1.tgz", - "integrity": "sha512-LdrrxK/Yh9zbBQdFbMTXPp3dTSN9B+9YJQucdDu3JNKRrbdU+H+/TVONJoWtOwy4II8Sqf1y/DTI6w/vGPYW0w==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.13.2.tgz", + "integrity": "sha512-h6Hbf1c8b7tIYY4u90mDdBLY4+AGQVMFtIE89HgC0DtVCh/JfKl477gYqUtGLmjZBKK3MJxomP/lFiLbz4sq9A==", "funding": { "type": "individual", "url": "https://github.com/Pomax/react-onclickoutside/blob/master/FUNDING.md" @@ -16889,25 +12317,20 @@ } } }, - "node_modules/react-redux/node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" - }, "node_modules/react-refresh": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", - "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", "engines": { "node": ">=0.10.0" } }, "node_modules/react-router": { - "version": "6.28.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.28.0.tgz", - "integrity": "sha512-HrYdIFqdrnhDw0PqG/AKjAqEqM7AvxCz0DQ4h2W8k6nqmc5uRBYDag0SBxx9iYz5G8gnuNVLzUe13wl9eAsXXg==", + "version": "6.30.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.0.tgz", + "integrity": "sha512-D3X8FyH9nBcTSHGdEKurK7r8OYE1kKFn3d/CF+CoxbSHkxU7o37+Uh7eAHRXr6k2tSExXYO++07PeXJtA/dEhQ==", "dependencies": { - "@remix-run/router": "1.21.0" + "@remix-run/router": "1.23.0" }, "engines": { "node": ">=14.0.0" @@ -16917,12 +12340,12 @@ } }, "node_modules/react-router-dom": { - "version": "6.28.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.28.0.tgz", - "integrity": "sha512-kQ7Unsl5YdyOltsPGl31zOjLrDv+m2VcIEcIHqYYD3Lp0UppLjrzcfJqDJwXxFw3TH/yvapbnUvPlAj7Kx5nbg==", + "version": "6.30.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.0.tgz", + "integrity": "sha512-x30B78HV5tFk8ex0ITwzC9TTZMua4jGyA9IUlH1JLQYQTFyxr/ZxwOJq7evg1JX1qGVUcvhsmQSKdPncQrjTgA==", "dependencies": { - "@remix-run/router": "1.21.0", - "react-router": "6.28.0" + "@remix-run/router": "1.23.0", + "react-router": "6.30.0" }, "engines": { "node": ">=14.0.0" @@ -16932,280 +12355,10 @@ "react-dom": ">=16.8" } }, - "node_modules/react-scripts": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", - "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", - "dependencies": { - "@babel/core": "^7.16.0", - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", - "@svgr/webpack": "^5.5.0", - "babel-jest": "^27.4.2", - "babel-loader": "^8.2.3", - "babel-plugin-named-asset-import": "^0.3.8", - "babel-preset-react-app": "^10.0.1", - "bfj": "^7.0.2", - "browserslist": "^4.18.1", - "camelcase": "^6.2.1", - "case-sensitive-paths-webpack-plugin": "^2.4.0", - "css-loader": "^6.5.1", - "css-minimizer-webpack-plugin": "^3.2.0", - "dotenv": "^10.0.0", - "dotenv-expand": "^5.1.0", - "eslint": "^8.3.0", - "eslint-config-react-app": "^7.0.1", - "eslint-webpack-plugin": "^3.1.1", - "file-loader": "^6.2.0", - "fs-extra": "^10.0.0", - "html-webpack-plugin": "^5.5.0", - "identity-obj-proxy": "^3.0.0", - "jest": "^27.4.3", - "jest-resolve": "^27.4.2", - "jest-watch-typeahead": "^1.0.0", - "mini-css-extract-plugin": "^2.4.5", - "postcss": "^8.4.4", - "postcss-flexbugs-fixes": "^5.0.2", - "postcss-loader": "^6.2.1", - "postcss-normalize": "^10.0.1", - "postcss-preset-env": "^7.0.1", - "prompts": "^2.4.2", - "react-app-polyfill": "^3.0.0", - "react-dev-utils": "^12.0.1", - "react-refresh": "^0.11.0", - "resolve": "^1.20.0", - "resolve-url-loader": "^4.0.0", - "sass-loader": "^12.3.0", - "semver": "^7.3.5", - "source-map-loader": "^3.0.0", - "style-loader": "^3.3.1", - "tailwindcss": "^3.0.2", - "terser-webpack-plugin": "^5.2.5", - "webpack": "^5.64.4", - "webpack-dev-server": "^4.6.0", - "webpack-manifest-plugin": "^4.0.2", - "workbox-webpack-plugin": "^6.4.1" - }, - "bin": { - "react-scripts": "bin/react-scripts.js" - }, - "engines": { - "node": ">=14.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - }, - "peerDependencies": { - "react": ">= 16", - "typescript": "^3.2.1 || ^4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/react-scripts/node_modules/are-we-there-yet": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", - "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "deprecated": "This package is no longer supported.", - "optional": true, - "peer": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/react-scripts/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-scripts/node_modules/gauge": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", - "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "deprecated": "This package is no longer supported.", - "optional": true, - "peer": true, - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/react-scripts/node_modules/node-sass": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-7.0.3.tgz", - "integrity": "sha512-8MIlsY/4dXUkJDYht9pIWBhMil3uHmE8b/AdJPjmFn1nBx9X9BASzfzmsCy0uCCb8eqI3SYYzVPDswWqSx7gjw==", - "deprecated": "Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.", - "hasInstallScript": true, - "optional": true, - "peer": true, - "dependencies": { - "async-foreach": "^0.1.3", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "lodash": "^4.17.15", - "meow": "^9.0.0", - "nan": "^2.13.2", - "node-gyp": "^8.4.1", - "npmlog": "^5.0.0", - "request": "^2.88.0", - "sass-graph": "^4.0.1", - "stdout-stream": "^1.4.0", - "true-case-path": "^1.0.2" - }, - "bin": { - "node-sass": "bin/node-sass" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/react-scripts/node_modules/npmlog": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", - "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "deprecated": "This package is no longer supported.", - "optional": true, - "peer": true, - "dependencies": { - "are-we-there-yet": "^2.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^3.0.0", - "set-blocking": "^2.0.0" - } - }, - "node_modules/react-scripts/node_modules/sass-loader": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", - "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==", - "dependencies": { - "klona": "^2.0.4", - "neo-async": "^2.6.2" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "fibers": ">= 3.1.0", - "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", - "sass": "^1.3.0", - "sass-embedded": "*", - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "fibers": { - "optional": true - }, - "node-sass": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - } - } - }, - "node_modules/react-scripts/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/react-scripts/node_modules/true-case-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", - "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", - "optional": true, - "peer": true, - "dependencies": { - "glob": "^7.1.2" - } - }, - "node_modules/react-shallow-renderer": { - "version": "16.15.0", - "resolved": "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz", - "integrity": "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==", - "dev": true, - "dependencies": { - "object-assign": "^4.1.1", - "react-is": "^16.12.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependencies": { - "react": "^16.0.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-simplemde-editor": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/react-simplemde-editor/-/react-simplemde-editor-5.2.0.tgz", - "integrity": "sha512-GkTg1MlQHVK2Rks++7sjuQr/GVS/xm6y+HchZ4GPBWrhcgLieh4CjK04GTKbsfYorSRYKa0n37rtNSJmOzEDkQ==", - "dependencies": { - "@types/codemirror": "~5.60.5" - }, - "peerDependencies": { - "easymde": ">= 2.0.0 < 3.0.0", - "react": ">=16.8.2", - "react-dom": ">=16.8.2" - } - }, - "node_modules/react-test-renderer": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-18.2.0.tgz", - "integrity": "sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==", - "dev": true, - "dependencies": { - "react-is": "^18.2.0", - "react-shallow-renderer": "^16.15.0", - "scheduler": "^0.23.0" - }, - "peerDependencies": { - "react": "^18.2.0" - } - }, - "node_modules/react-test-renderer/node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true - }, "node_modules/react-textarea-autosize": { - "version": "8.5.5", - "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.5.tgz", - "integrity": "sha512-CVA94zmfp8m4bSHtWwmANaBR8EPsKy2aZ7KwqhoS4Ftib87F9Kvi7XQhOixypPLMc6kVYgOXvKFuuzZDpHGRPg==", + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.9.tgz", + "integrity": "sha512-U1DGlIQN5AwgjTyOEnI1oCcMuEr1pv1qOtklB2l4nyMGbHzWrI0eFsYK0zos2YWqAolJyG0IWJaqWmWj5ETh0A==", "dependencies": { "@babel/runtime": "^7.20.13", "use-composed-ref": "^1.3.0", @@ -17215,135 +12368,161 @@ "node": ">=10" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, - "node_modules/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==", + "node_modules/react-time-ago": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/react-time-ago/-/react-time-ago-7.3.3.tgz", + "integrity": "sha512-5kh2Kuu/UhHzcZrGvf3GUrF2d+IXjkIXif5MR2iDWIfSqQuBW27/ejN/tmzJBRyPiryYTgbDIG6AZFJ4RW3yfw==", "dependencies": { - "pify": "^2.3.0" + "memoize-one": "^6.0.0", + "prop-types": "^15.8.1", + "raf": "^3.4.1" + }, + "peerDependencies": { + "javascript-time-ago": "^2.3.7", + "react": ">=0.16.8", + "react-dom": ">=0.16.8" + } + }, + "node_modules/react-time-ago/node_modules/memoize-one": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz", + "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==" + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/react-universal-interface": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/react-universal-interface/-/react-universal-interface-0.6.2.tgz", + "integrity": "sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==", + "peerDependencies": { + "react": "*", + "tslib": "*" + } + }, + "node_modules/react-use": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/react-use/-/react-use-17.6.0.tgz", + "integrity": "sha512-OmedEScUMKFfzn1Ir8dBxiLLSOzhKe/dPZwVxcujweSj45aNM7BEGPb9BEVIgVEqEXx6f3/TsXzwIktNgUR02g==", + "dependencies": { + "@types/js-cookie": "^2.2.6", + "@xobotyi/scrollbar-width": "^1.9.5", + "copy-to-clipboard": "^3.3.1", + "fast-deep-equal": "^3.1.3", + "fast-shallow-equal": "^1.0.0", + "js-cookie": "^2.2.1", + "nano-css": "^5.6.2", + "react-universal-interface": "^0.6.2", + "resize-observer-polyfill": "^1.5.1", + "screenfull": "^5.1.0", + "set-harmonic-interval": "^1.0.1", + "throttle-debounce": "^3.0.1", + "ts-easing": "^0.2.0", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*" + } + }, + "node_modules/react-use/node_modules/js-cookie": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz", + "integrity": "sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==" + }, + "node_modules/react-virtualized-auto-sizer": { + "version": "1.0.26", + "resolved": "https://registry.npmjs.org/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.26.tgz", + "integrity": "sha512-CblNyiNVw2o+hsa5/49NH2ogGxZ+t+3aweRvNSq7TVjDIlwk7ir4lencEg5HxHeSzwNarSkNkiu0qJSOXtxm5A==", + "peerDependencies": { + "react": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/react-window": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/react-window/-/react-window-1.8.11.tgz", + "integrity": "sha512-+SRbUVT2scadgFSWx+R1P754xHPEqvcfSfVX10QYg6POOz+WNgkN48pS+BtZNIMGiL1HYrSEiCkwsMS15QogEQ==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "memoize-one": ">=3.1.1 <6" + }, + "engines": { + "node": ">8.0.0" + }, + "peerDependencies": { + "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/read-package-up": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/read-package-up/-/read-package-up-11.0.0.tgz", + "integrity": "sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==", + "dev": true, + "dependencies": { + "find-up-simple": "^1.0.0", + "read-pkg": "^9.0.0", + "type-fest": "^4.6.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", + "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", + "dev": true, "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "@types/normalize-package-data": "^2.4.3", + "normalize-package-data": "^6.0.0", + "parse-json": "^8.0.0", + "type-fest": "^4.6.0", + "unicorn-magic": "^0.1.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/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==", - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/read-pkg/node_modules/parse-json": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", + "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", + "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "@babel/code-frame": "^7.26.2", + "index-to-position": "^1.1.0", + "type-fest": "^4.39.1" }, "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg/node_modules/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==" - }, - "node_modules/read-pkg/node_modules/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==", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/read-pkg/node_modules/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==", - "engines": { - "node": ">=8" - } - }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -17357,40 +12536,6 @@ "node": ">= 6" } }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "dependencies": { - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dependencies": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/redux": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", @@ -17436,21 +12581,22 @@ "version": "0.2.2", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", - "dev": true, - "peer": true + "dev": true }, "node_modules/reflect.getprototypeof": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz", - "integrity": "sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", - "es-abstract": "^1.23.1", + "es-abstract": "^1.23.9", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "globalthis": "^1.0.3", - "which-builtin-type": "^1.1.3" + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -17462,12 +12608,14 @@ "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true }, "node_modules/regenerate-unicode-properties": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", + "dev": true, "dependencies": { "regenerate": "^1.4.2" }, @@ -17475,24 +12623,6 @@ "node": ">=4" } }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regex-parser": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.3.0.tgz", - "integrity": "sha512-TVILVSz2jY5D47F4mA4MppkBrafEaiUWJO/TcZHEIuI13AqoZMkK1WMA4Om1YkYbTx+9Ki1/tSUXbceyr9saRg==" - }, "node_modules/regexp-match-indices": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/regexp-match-indices/-/regexp-match-indices-1.0.2.tgz", @@ -17512,13 +12642,16 @@ } }, "node_modules/regexp.prototype.flags": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz", - "integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", "set-function-name": "^2.0.2" }, "engines": { @@ -17532,6 +12665,7 @@ "version": "6.2.0", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.2.0.tgz", "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", + "dev": true, "dependencies": { "regenerate": "^1.4.2", "regenerate-unicode-properties": "^10.2.0", @@ -17547,12 +12681,14 @@ "node_modules/regjsgen": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==" + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "dev": true }, "node_modules/regjsparser": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", + "dev": true, "dependencies": { "jsesc": "~3.0.2" }, @@ -17560,179 +12696,22 @@ "regjsparser": "bin/parser" } }, - "node_modules/relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "node_modules/regjsparser/node_modules/jsesc": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, "engines": { - "node": ">= 0.10" + "node": ">=6" } }, - "node_modules/remark-breaks": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/remark-breaks/-/remark-breaks-4.0.0.tgz", - "integrity": "sha512-IjEjJOkH4FuJvHZVIW0QCDWxcG96kCq7An/KVH2NfJe6rKZU2AsHeB3OEjPNRxi4QC34Xdx7I2KGYn6IpT7gxQ==", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-newline-to-break": "^2.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-breaks/node_modules/@types/unist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" - }, - "node_modules/remark-breaks/node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/remark-breaks/node_modules/unified": { - "version": "11.0.5", - "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", - "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", - "dependencies": { - "@types/unist": "^3.0.0", - "bail": "^2.0.0", - "devlop": "^1.0.0", - "extend": "^3.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-breaks/node_modules/unist-util-stringify-position": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", - "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-breaks/node_modules/vfile": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", - "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", - "dependencies": { - "@types/unist": "^3.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-breaks/node_modules/vfile-message": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", - "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-gfm": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-3.0.1.tgz", - "integrity": "sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-gfm": "^2.0.0", - "micromark-extension-gfm": "^2.0.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-gfm/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/remark-parse": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz", - "integrity": "sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-from-markdown": "^1.0.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-parse/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/remark-rehype": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz", - "integrity": "sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==", - "dependencies": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-to-hast": "^12.1.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype/node_modules/@types/mdast": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", - "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/renderkid": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", - "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", - "dependencies": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^6.0.1" - } + "node_modules/relative-time-format": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/relative-time-format/-/relative-time-format-1.1.6.tgz", + "integrity": "sha512-aCv3juQw4hT1/P/OrVltKWLlp15eW1GRcwP1XdxHrPdZE9MtgqFpegjnTjLhi2m2WI9MT/hQQtE+tjEWG1hgkQ==" }, "node_modules/repeat-string": { "version": "1.6.1", @@ -17743,127 +12722,40 @@ "node": ">=0.10" } }, - "node_modules/request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", - "optional": true, - "peer": true, - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "optional": true, - "peer": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/request/node_modules/qs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "optional": true, - "peer": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/request/node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "optional": true, - "peer": true, - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/request/node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "optional": true, - "peer": true, - "bin": { - "uuid": "bin/uuid" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, "node_modules/reselect": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==" }, + "node_modules/resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" + }, "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -17872,6 +12764,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, "dependencies": { "resolve-from": "^5.0.0" }, @@ -17879,22 +12772,15 @@ "node": ">=8" } }, - "node_modules/resolve-cwd/node_modules/resolve-from": { + "node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "engines": { - "node": ">=4" - } - }, "node_modules/resolve-pkg": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/resolve-pkg/-/resolve-pkg-2.0.0.tgz", @@ -17907,96 +12793,19 @@ "node": ">=8" } }, - "node_modules/resolve-pkg/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-url-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", - "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", - "dependencies": { - "adjust-sourcemap-loader": "^4.0.0", - "convert-source-map": "^1.7.0", - "loader-utils": "^2.0.0", - "postcss": "^7.0.35", - "source-map": "0.6.1" - }, - "engines": { - "node": ">=8.9" - }, - "peerDependencies": { - "rework": "1.0.1", - "rework-visit": "1.0.0" - }, - "peerDependenciesMeta": { - "rework": { - "optional": true - }, - "rework-visit": { - "optional": true - } - } - }, - "node_modules/resolve-url-loader/node_modules/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==" - }, - "node_modules/resolve-url-loader/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" - }, - "node_modules/resolve-url-loader/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/resolve-url-loader/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/resolve.exports": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", - "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, "engines": { "node": ">=10" } }, - "node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "engines": { - "node": ">= 4" - } - }, "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -18007,6 +12816,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, "dependencies": { "glob": "^7.1.3" }, @@ -18017,54 +12827,85 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, "node_modules/rollup": { - "version": "2.79.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", - "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", + "version": "4.40.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.2.tgz", + "integrity": "sha512-tfUOg6DTP4rhQ3VjOO6B4wyrJnGOX85requAXvqYTHsOgb2TFJdZ3aWpT8W2kPoypSGP7dZUyzxJ9ee4buM5Fg==", + "dependencies": { + "@types/estree": "1.0.7" + }, "bin": { "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=10.0.0" + "node": ">=18.0.0", + "npm": ">=8.0.0" }, "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.40.2", + "@rollup/rollup-android-arm64": "4.40.2", + "@rollup/rollup-darwin-arm64": "4.40.2", + "@rollup/rollup-darwin-x64": "4.40.2", + "@rollup/rollup-freebsd-arm64": "4.40.2", + "@rollup/rollup-freebsd-x64": "4.40.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.40.2", + "@rollup/rollup-linux-arm-musleabihf": "4.40.2", + "@rollup/rollup-linux-arm64-gnu": "4.40.2", + "@rollup/rollup-linux-arm64-musl": "4.40.2", + "@rollup/rollup-linux-loongarch64-gnu": "4.40.2", + "@rollup/rollup-linux-powerpc64le-gnu": "4.40.2", + "@rollup/rollup-linux-riscv64-gnu": "4.40.2", + "@rollup/rollup-linux-riscv64-musl": "4.40.2", + "@rollup/rollup-linux-s390x-gnu": "4.40.2", + "@rollup/rollup-linux-x64-gnu": "4.40.2", + "@rollup/rollup-linux-x64-musl": "4.40.2", + "@rollup/rollup-win32-arm64-msvc": "4.40.2", + "@rollup/rollup-win32-ia32-msvc": "4.40.2", + "@rollup/rollup-win32-x64-msvc": "4.40.2", "fsevents": "~2.3.2" } }, - "node_modules/rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", - "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - }, - "peerDependencies": { - "rollup": "^2.0.0" - } + "node_modules/rope-sequence": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz", + "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==" }, - "node_modules/rollup-plugin-terser/node_modules/jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "node_modules/rtl-css-js": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/rtl-css-js/-/rtl-css-js-1.16.1.tgz", + "integrity": "sha512-lRQgou1mu19e+Ya0LsTvKrVJ5TYUbqCVPAiImX3UfLTenarvPUl1QFdvu5Z3PYmHT9RCcwIfbjRQBntExyj3Zg==", "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/rollup-plugin-terser/node_modules/serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "dependencies": { - "randombytes": "^2.1.0" + "@babel/runtime": "^7.1.2" } }, "node_modules/run-parallel": { @@ -18089,25 +12930,24 @@ "queue-microtask": "^1.2.2" } }, - "node_modules/sade": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", - "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", "dependencies": { - "mri": "^1.1.0" - }, - "engines": { - "node": ">=6" + "tslib": "^2.1.0" } }, "node_modules/safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", "isarray": "^2.0.5" }, "engines": { @@ -18136,14 +12976,30 @@ } ] }, - "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, "dependencies": { - "call-bind": "^1.0.6", "es-errors": "^1.3.0", - "is-regex": "^1.1.4" + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -18162,80 +13018,378 @@ "resolved": "https://registry.npmjs.org/sails.io.js/-/sails.io.js-1.2.1.tgz", "integrity": "sha512-Dd53Q4G8RRo3wZW7nSf49F88Y83qG/fkDSB7z7qb3qBd2vXiNodOAAv+tjKJuUsZ3osWIrlpaIxQUYMC4eR+cg==" }, - "node_modules/sanitize.css": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", - "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" - }, - "node_modules/sass-graph": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-4.0.1.tgz", - "integrity": "sha512-5YCfmGBmxoIRYHnKK2AKzrAkCoQ8ozO+iumT8K4tXJXRVCPf+7s1/9KxTSW3Rbvf+7Y7b4FR3mWyLnQr3PHocA==", + "node_modules/sanitize-html": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.16.0.tgz", + "integrity": "sha512-0s4caLuHHaZFVxFTG74oW91+j6vW7gKbGD6CD2+miP73CE6z6YtOBN0ArtLd2UGyi4IC7K47v3ENUbQX4jV3Mg==", "dependencies": { - "glob": "^7.0.0", - "lodash": "^4.17.11", - "scss-tokenizer": "^0.4.3", - "yargs": "^17.2.1" + "deepmerge": "^4.2.2", + "escape-string-regexp": "^4.0.0", + "htmlparser2": "^8.0.0", + "is-plain-object": "^5.0.0", + "parse-srcset": "^1.0.2", + "postcss": "^8.3.11" + } + }, + "node_modules/sanitize-html/node_modules/htmlparser2": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "entities": "^4.4.0" + } + }, + "node_modules/sass-embedded": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.87.0.tgz", + "integrity": "sha512-1IA3iTJNh4BkkA/nidKiVwbmkxr9o6LsPegycHMX/JYs255zpocN5GdLF1+onohQCJxbs5ldr8osKV7qNaNBjg==", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0", + "buffer-builder": "^0.2.0", + "colorjs.io": "^0.5.0", + "immutable": "^5.0.2", + "rxjs": "^7.4.0", + "supports-color": "^8.1.1", + "sync-child-process": "^1.0.2", + "varint": "^6.0.0" }, "bin": { - "sassgraph": "bin/sassgraph" + "sass": "dist/bin/sass.js" }, "engines": { - "node": ">=12" - } - }, - "node_modules/sass-graph/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" + "node": ">=16.0.0" }, - "engines": { - "node": ">=12" + "optionalDependencies": { + "sass-embedded-android-arm": "1.87.0", + "sass-embedded-android-arm64": "1.87.0", + "sass-embedded-android-ia32": "1.87.0", + "sass-embedded-android-riscv64": "1.87.0", + "sass-embedded-android-x64": "1.87.0", + "sass-embedded-darwin-arm64": "1.87.0", + "sass-embedded-darwin-x64": "1.87.0", + "sass-embedded-linux-arm": "1.87.0", + "sass-embedded-linux-arm64": "1.87.0", + "sass-embedded-linux-ia32": "1.87.0", + "sass-embedded-linux-musl-arm": "1.87.0", + "sass-embedded-linux-musl-arm64": "1.87.0", + "sass-embedded-linux-musl-ia32": "1.87.0", + "sass-embedded-linux-musl-riscv64": "1.87.0", + "sass-embedded-linux-musl-x64": "1.87.0", + "sass-embedded-linux-riscv64": "1.87.0", + "sass-embedded-linux-x64": "1.87.0", + "sass-embedded-win32-arm64": "1.87.0", + "sass-embedded-win32-ia32": "1.87.0", + "sass-embedded-win32-x64": "1.87.0" } }, - "node_modules/sass-graph/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, + "node_modules/sass-embedded-android-arm": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.87.0.tgz", + "integrity": "sha512-Z20u/Y1kFDpMbgiloR5YPLxNuMVeKQRC8e/n68oAAxf3u7rDSmNn2msi7USqgT1f2zdBBNawn/ifbFEla6JiHw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=12" + "node": ">=14.0.0" } }, - "node_modules/sass-graph/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "node_modules/sass-embedded-android-arm64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.87.0.tgz", + "integrity": "sha512-uqeZoBuXm3W2KhxolScAAfWOLHL21e50g7AxlLmG0he7WZsWw6e9kSnmq301iLIFp4kvmXYXbXbNKAeu9ItRYA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=12" + "node": ">=14.0.0" } }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dependencies": { - "xmlchars": "^2.2.0" - }, + "node_modules/sass-embedded-android-ia32": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.87.0.tgz", + "integrity": "sha512-hSWTqo2Igdig528cUb1W1+emw9d1J4+nqOoR4tERS04zcwRRFNDiuBT0o5meV7nkEwE982F+h57YdcRXj8gTtg==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=10" + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-android-riscv64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-android-riscv64/-/sass-embedded-android-riscv64-1.87.0.tgz", + "integrity": "sha512-kBAPSjiTBLy5ua/0LRNAJwOAARhzFU7gP35fYORJcdBuz1lkIVPVnid1lh9qQ6Ce9MOJcr7VKFtGnTuqVeig5A==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-android-x64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.87.0.tgz", + "integrity": "sha512-ZHMrNdtdMSpJUYco2MesnlPwDTZftD3pqkkOMI2pbqarPoFUKJtP5k80nwCM0sJGtqfNE+O16w9yPght0CMiJg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-darwin-arm64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.87.0.tgz", + "integrity": "sha512-7TK1JWJdCIRSdZv5CJv/HpDz/wIfwUy2FoPz9sVOEj1pDTH0N+VfJd5VutCddIdoQN9jr0ap8vwkc65FbAxV2A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-darwin-x64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.87.0.tgz", + "integrity": "sha512-2JiQzt7FmgUC4MYT2QvbeH/Bi3e76WEhaYoc5P3WyTW8unsHksyTdMuTuYe0Qf9usIyt6bmm5no/4BBw7c8Cig==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-arm": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.87.0.tgz", + "integrity": "sha512-z5P6INMsGXiUcq1sRRbksyQUhalFFYjTEexuxfSYdK3U2YQMADHubQh8pGzkWvFRPOpnh83RiGuwvpaARYHnsw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-arm64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.87.0.tgz", + "integrity": "sha512-5z+mwJCbGZcg+q+MwdEVSh0ogFK7OSAe175Gsozzr/Izw34Q+RGUw9O82jsV2c4YNuTAQvzEHgIO5cvNvt3Quw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-ia32": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.87.0.tgz", + "integrity": "sha512-Xzcp+YPp0iakGL148Jl57CO+MxLuj2jsry3M+rc1cSnDlvkjNVs6TMxaL70GFeV5HdU2V60voYcgE7adDUtJjw==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-musl-arm": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.87.0.tgz", + "integrity": "sha512-4PyqOWhRzyu06RRmpCCBOJdF4BOv7s446wrV6yODtEyyfSIDx3MJabo3KT0oJ1lTWSI/aU3R89bKx0JFXcIHHw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-musl-arm64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.87.0.tgz", + "integrity": "sha512-HWE5eTRCoKzFZWsxOjDMTF5m4DDTQ0n7NJxSYiUXPBDydr9viPXbGOMYG7WVJLjiF7upr7DYo/mfp/SNTMlZyg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-musl-ia32": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.87.0.tgz", + "integrity": "sha512-aQaPvlRn3kh93PLQvl6BcFKu8Ji92+42blFEkg6nMVvmugD5ZwH2TGFrX25ibx4CYxRpMS4ssF7a0i7vy5HB1Q==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-musl-riscv64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-riscv64/-/sass-embedded-linux-musl-riscv64-1.87.0.tgz", + "integrity": "sha512-o5DxcqiFzET3KRWo+futHr/lhAMBP3tJGGx8YIgpHQYfvDMbsvE0hiFC+nZ/GF9dbcGd+ceIQwfvE5mcc7Gsjw==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-musl-x64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.87.0.tgz", + "integrity": "sha512-dKxWsu9Wu/CyfzQmHdeiGqrRSzJ85VUjbSx+aP1/7ttmps3SSg+YW95PuqnCOa7GSuSreC3dKKpXHTywUxMLQA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-riscv64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-riscv64/-/sass-embedded-linux-riscv64-1.87.0.tgz", + "integrity": "sha512-Sy3ESZ4FwBiijvmTA9n+0p0w3MNCue1AgINVPzpAY27EFi0h49eqQm9SWfOkFqmkFS2zFRYowdQOr5Bbr2gOXA==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-linux-x64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.87.0.tgz", + "integrity": "sha512-+UfjakOcHHKTnEqB3EZ+KqzezQOe1emvy4Rs+eQhLyfekpYuNze/qlRvYxfKTmrtvDiUrIto8MXsyZfMLzkuMA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-win32-arm64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-arm64/-/sass-embedded-win32-arm64-1.87.0.tgz", + "integrity": "sha512-m1DS6FYUE0/fv+vt38uQB/kxR4UjnyD+2zcSc298pFmA0aYh/XZIPWw7RxG1HL3KLE1ZrGyu3254MPoxRhs3ig==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-win32-ia32": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.87.0.tgz", + "integrity": "sha512-JztXLo59GMe2E6g+kCsyiERYhtZgkcyDYx6CrXoSTE5WaE+RbxRiCCCv8/1+hf406f08pUxJ8G0Ody7M5urtBA==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-embedded-win32-x64": { + "version": "1.87.0", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.87.0.tgz", + "integrity": "sha512-4nQErpauvhgSo+7ClumGdjdf9sGx+U9yBgvhI0+zUw+D5YvraVgvA0Lk8Wuwntx2PqnvKUk8YDr/vxHJostv4Q==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=14.0.0" } }, "node_modules/scheduler": { @@ -18246,62 +13400,15 @@ "loose-envify": "^1.1.0" } }, - "node_modules/schema-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", - "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, + "node_modules/screenfull": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-5.2.0.tgz", + "integrity": "sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==", "engines": { - "node": ">= 12.13.0" + "node": ">=0.10.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/schema-utils/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/schema-utils/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/schema-utils/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/scss-tokenizer": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.4.3.tgz", - "integrity": "sha512-raKLgf1LI5QMQnG+RxHz6oK0sL3x3I4FN2UDLqgLOGO8hodECNnNh5BXn7fAyBxrA8zVzdQizQ6XjNJQ+uBwMw==", - "dependencies": { - "js-base64": "^2.4.9", - "source-map": "^0.7.3" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/seed-random": { @@ -18310,23 +13417,6 @@ "integrity": "sha512-34EQV6AAHQGhoc0tn/96a9Fsi6v2xdqe/dMUwljGRaFOzR3EgRmECvD0O8vi8X+/uQ50LGHfkNu/Eue5TPKZkQ==", "dev": true }, - "node_modules/select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" - }, - "node_modules/selfsigned": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz", - "integrity": "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==", - "dependencies": { - "@types/node-forge": "^1.3.0", - "node-forge": "^1" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/semantic-ui-react": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-2.1.5.tgz", @@ -18359,147 +13449,6 @@ "semver": "bin/semver.js" } }, - "node_modules/send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/send/node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "dependencies": { - "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" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-index/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-index/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "node_modules/serve-index/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/serve-index/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "node_modules/serve-index/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" - }, "node_modules/set-function-length": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", @@ -18520,6 +13469,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -18530,10 +13480,44 @@ "node": ">= 0.4" } }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + "node_modules/set-harmonic-interval": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-harmonic-interval/-/set-harmonic-interval-1.0.1.tgz", + "integrity": "sha512-AhICkFV84tBP1aWqPwLZqFvAwqEoVA9kxNMniGEUvzOlm4vLmOFLiTT3UZ6bziJTy4bOVpzWGTfSCbmaayGx8g==", + "engines": { + "node": ">=6.9" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/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==" + }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } }, "node_modules/shallowequal": { "version": "1.1.0", @@ -18559,23 +13543,66 @@ "node": ">=8" } }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", "dependencies": { - "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -18585,30 +13612,47 @@ } }, "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "node_modules/slugify": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz", + "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" + "node": ">=8.0.0" + } + }, + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" } }, "node_modules/socket.io-client": { @@ -18670,61 +13714,12 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "dependencies": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } - }, - "node_modules/sockjs/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/socks": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", - "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", - "dependencies": { - "ip-address": "^9.0.5", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/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==", - "dependencies": { - "agent-base": "^6.0.2", - "debug": "^4.3.3", - "socks": "^2.6.2" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" - }, "node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "engines": { - "node": ">= 8" + "node": ">=0.10.0" } }, "node_modules/source-map-js": { @@ -18735,62 +13730,31 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-loader": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz", - "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==", + "node_modules/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==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", "dependencies": { - "abab": "^2.0.5", - "iconv-lite": "^0.6.3", - "source-map-js": "^1.0.1" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0" } }, "node_modules/source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "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, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "deprecated": "Please use @jridgewell/sourcemap-codec instead" - }, - "node_modules/space-separated-tokens": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", - "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/spdx-correct": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -18799,116 +13763,34 @@ "node_modules/spdx-exceptions": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", - "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==" + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", + "dev": true }, "node_modules/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, "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, "node_modules/spdx-license-ids": { - "version": "3.0.20", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.20.tgz", - "integrity": "sha512-jg25NiDV/1fLtSgEgyvVyDunvaNHbuwF9lfNV17gSmPFAlYzdfNBlLtLzXTevwkPj7DhGbmN9VnmJIgLnhvaBw==" - }, - "node_modules/spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dependencies": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/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==", - "dependencies": { - "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" - } + "version": "3.0.21", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz", + "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==", + "dev": true }, "node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" - }, - "node_modules/sshpk": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", - "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", - "optional": true, - "peer": true, - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sshpk/node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", - "optional": true, - "peer": true - }, - "node_modules/ssri": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", - "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", - "dependencies": { - "minipass": "^3.1.1" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" - }, - "node_modules/stack-chain": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/stack-chain/-/stack-chain-2.0.0.tgz", - "integrity": "sha512-GGrHXePi305aW7XQweYZZwiRwR7Js3MWoK/EHzzB9ROdc75nCnjSJVi21rdAGxFl+yCx2L2qdfl5y7NO4lTyqg==", - "dev": true + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, "node_modules/stack-generator": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/stack-generator/-/stack-generator-2.0.10.tgz", "integrity": "sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==", - "dev": true, "dependencies": { "stackframe": "^1.3.4" } @@ -18917,6 +13799,7 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -18928,6 +13811,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, "engines": { "node": ">=8" } @@ -18941,7 +13825,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/stacktrace-gps/-/stacktrace-gps-3.1.2.tgz", "integrity": "sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==", - "dev": true, "dependencies": { "source-map": "0.5.6", "stackframe": "^1.3.4" @@ -18951,7 +13834,6 @@ "version": "0.5.6", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz", "integrity": "sha512-MjZkVp0NHr5+TPihLcadqnlVoGIoWo4IBHptutGh9wI3ttUYvCG26HkSuDi+K6lsZ25syXJXcctwgyVCt//xqA==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -18960,152 +13842,30 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/stacktrace-js/-/stacktrace-js-2.0.2.tgz", "integrity": "sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==", - "dev": true, "dependencies": { "error-stack-parser": "^2.0.6", "stack-generator": "^2.0.5", "stacktrace-gps": "^3.0.4" } }, - "node_modules/static-eval": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz", - "integrity": "sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==", + "node_modules/stream-browserify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", + "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", "dependencies": { - "escodegen": "^1.8.1" + "inherits": "~2.0.4", + "readable-stream": "^3.5.0" } }, - "node_modules/static-eval/node_modules/escodegen": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "node_modules/stream-http": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", + "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=4.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/static-eval/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/static-eval/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/static-eval/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "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" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/static-eval/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/static-eval/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-eval/node_modules/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==", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stdout-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", - "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", - "dependencies": { - "readable-stream": "^2.0.1" - } - }, - "node_modules/stdout-stream/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/stdout-stream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/stdout-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/stdout-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "xtend": "^4.0.2" } }, "node_modules/string_decoder": { @@ -19117,9 +13877,9 @@ } }, "node_modules/string-argv": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", - "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.1.tgz", + "integrity": "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==", "dev": true, "engines": { "node": ">=0.6.19" @@ -19129,6 +13889,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -19137,15 +13898,11 @@ "node": ">=10" } }, - "node_modules/string-natural-compare": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", - "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" - }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -19160,6 +13917,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -19172,17 +13930,20 @@ "node_modules/string-width-cjs/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "node_modules/string-width/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "node_modules/string.prototype.includes": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -19193,22 +13954,24 @@ } }, "node_modules/string.prototype.matchall": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz", - "integrity": "sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==", + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", + "es-abstract": "^1.23.6", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.7", - "regexp.prototype.flags": "^1.5.2", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", "set-function-name": "^2.0.2", - "side-channel": "^1.0.6" + "side-channel": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -19221,20 +13984,25 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, "dependencies": { "define-properties": "^1.1.3", "es-abstract": "^1.17.5" } }, "node_modules/string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -19244,14 +14012,19 @@ } }, "node_modules/string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -19260,6 +14033,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -19272,23 +14046,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "dependencies": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -19301,6 +14063,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -19308,45 +14071,47 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/strip-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", - "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==", - "engines": { - "node": ">=10" - } - }, "node_modules/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, "engines": { "node": ">=6" } }, - "node_modules/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==", - "dependencies": { - "min-indent": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/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==", + "dev": true, "engines": { "node": ">=8" }, @@ -19354,143 +14119,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/style-loader": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.4.tgz", - "integrity": "sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w==", - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } + "node_modules/style-mod": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz", + "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==" }, - "node_modules/style-to-object": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.4.tgz", - "integrity": "sha512-HYNoHZa2GorYNyqiCaBgsxvcJIn7OHq6inEga+E6Ke3m5JkoqpQbnFssk4jwe+K7AhGa2fcha4wSOf1Kn01dMg==", - "dependencies": { - "inline-style-parser": "0.1.1" - } - }, - "node_modules/stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/sucrase": { - "version": "3.35.0", - "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", - "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.2", - "commander": "^4.0.0", - "glob": "^10.3.10", - "lines-and-columns": "^1.1.6", - "mz": "^2.7.0", - "pirates": "^4.0.1", - "ts-interface-checker": "^0.1.9" - }, - "bin": { - "sucrase": "bin/sucrase", - "sucrase-node": "bin/sucrase-node" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/sucrase/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/sucrase/node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/sucrase/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/sucrase/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/sucrase/node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } + "node_modules/stylis": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", + "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==" }, "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" + "node": ">=10" }, - "engines": { - "node": ">=8" + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -19510,407 +14160,99 @@ "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" }, "node_modules/svgo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", - "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", - "deprecated": "This SVGO version is no longer supported. Upgrade to v2.x.x.", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.3.2.tgz", + "integrity": "sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==", "dependencies": { - "chalk": "^2.4.1", - "coa": "^2.0.2", - "css-select": "^2.0.0", - "css-select-base-adapter": "^0.1.1", - "css-tree": "1.0.0-alpha.37", - "csso": "^4.0.2", - "js-yaml": "^3.13.1", - "mkdirp": "~0.5.1", - "object.values": "^1.1.0", - "sax": "~1.2.4", - "stable": "^0.1.8", - "unquote": "~1.1.1", - "util.promisify": "~1.0.0" + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^5.1.0", + "css-tree": "^2.3.1", + "css-what": "^6.1.0", + "csso": "^5.0.5", + "picocolors": "^1.0.0" }, "bin": { "svgo": "bin/svgo" }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/svgo/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/svgo/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/svgo/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/svgo/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/svgo/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/svgo/node_modules/css-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", - "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^3.2.1", - "domutils": "^1.7.0", - "nth-check": "^1.0.2" - } - }, - "node_modules/svgo/node_modules/css-what": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", - "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/svgo/node_modules/dom-serializer": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", - "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", - "dependencies": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" - } - }, - "node_modules/svgo/node_modules/domutils": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", - "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", - "dependencies": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "node_modules/svgo/node_modules/domutils/node_modules/domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" - }, - "node_modules/svgo/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/svgo/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/svgo/node_modules/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==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/svgo/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/svgo/node_modules/nth-check": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", - "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", - "dependencies": { - "boolbase": "~1.0.0" - } - }, - "node_modules/svgo/node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/svgo/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" - }, - "node_modules/tailwindcss": { - "version": "3.4.15", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.15.tgz", - "integrity": "sha512-r4MeXnfBmSOuKUWmXe6h2CcyfzJCEk4F0pptO5jlnYSIViUkVmsawj80N5h2lO3gwcmSb4n3PuN+e+GC1Guylw==", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "arg": "^5.0.2", - "chokidar": "^3.6.0", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.3.2", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "jiti": "^1.21.6", - "lilconfig": "^2.1.0", - "micromatch": "^4.0.8", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.1.1", - "postcss": "^8.4.47", - "postcss-import": "^15.1.0", - "postcss-js": "^4.0.1", - "postcss-load-config": "^4.0.2", - "postcss-nested": "^6.2.0", - "postcss-selector-parser": "^6.1.2", - "resolve": "^1.22.8", - "sucrase": "^3.35.0" - }, - "bin": { - "tailwind": "lib/cli.js", - "tailwindcss": "lib/cli.js" - }, "engines": { "node": ">=14.0.0" - } - }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/tar/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/tempy": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", - "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", - "dependencies": { - "is-stream": "^2.0.0", - "temp-dir": "^2.0.0", - "type-fest": "^0.16.0", - "unique-string": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/tempy/node_modules/type-fest": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", - "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/terser": { - "version": "5.36.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz", - "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", - "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.20", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.26.0" - }, - "engines": { - "node": ">= 10.13.0" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } + "url": "https://opencollective.com/svgo" } }, - "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "node_modules/svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/svgo/node_modules/css-tree": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" }, "engines": { - "node": ">= 10.13.0" + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/svgo/node_modules/mdn-data": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==" + }, + "node_modules/sync-child-process": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/sync-child-process/-/sync-child-process-1.0.2.tgz", + "integrity": "sha512-8lD+t2KrrScJ/7KXCSyfhT3/hRq78rC0wBFqNJXv3mZyn6hW2ypM05JmlSvtqRbeq6jqA94oHbxAr2vYsJ8vDA==", + "dependencies": { + "sync-message-port": "^1.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/sync-message-port": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sync-message-port/-/sync-message-port-1.1.3.tgz", + "integrity": "sha512-GTt8rSKje5FilG+wEdfCkOcLL7LWqpMlr2c3LRuKt/YXxcJ52aGSbGBAdI4L3aaqfrBt6y711El53ItyH1NWzg==", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/synckit": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.4.tgz", + "integrity": "sha512-Q/XQKRaJiLiFIBNN+mndW7S/RHxvwzuZS6ZwmRzUBqJBv/5QIKCEwkBC8GBf8EQJKYnaFs0wOZbKTXBPj8L9oQ==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.2.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "url": "https://opencollective.com/synckit" } }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/terser/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/terser/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } + "node_modules/tabbable": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", + "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -19920,15 +14262,38 @@ "node": ">=8" } }, + "node_modules/test-exclude/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/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==" + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, "dependencies": { "any-promise": "^1.0.0" } @@ -19937,6 +14302,7 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, "dependencies": { "thenify": ">= 3.1.0 < 4" }, @@ -19944,15 +14310,30 @@ "node": ">=0.8" } }, - "node_modules/throat": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", - "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==" + "node_modules/throttle-debounce": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-3.0.1.tgz", + "integrity": "sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==", + "engines": { + "node": ">=10" + } }, - "node_modules/thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" + "node_modules/timers-browserify": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", + "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", + "dependencies": { + "setimmediate": "^1.0.4" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/tiny-case": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz", + "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q==", + "dev": true }, "node_modules/tiny-invariant": { "version": "1.3.3", @@ -19971,7 +14352,8 @@ "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true }, "node_modules/to-array": { "version": "0.1.4", @@ -19989,101 +14371,35 @@ "node": ">=8.0" } }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } + "node_modules/toggle-selection": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", + "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==" }, - "node_modules/tough-cookie": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", - "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tough-cookie/node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/trim-lines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", - "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/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==", - "engines": { - "node": ">=8" - } - }, - "node_modules/trough": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", - "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/true-case-path": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-2.2.1.tgz", - "integrity": "sha512-0z3j8R7MCjy10kc/g+qg7Ln3alJTodw9aDuVWZa3uiWqfuBMKeAeP2ocWcxoyM3D73yz3Jt/Pu4qPr4wHSdB/Q==" - }, - "node_modules/tryer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", - "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" + "node_modules/toposort": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", + "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==", + "dev": true }, "node_modules/ts-dedent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==", - "dev": true, "engines": { "node": ">=6.10" } }, - "node_modules/ts-interface-checker": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" + "node_modules/ts-easing": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/ts-easing/-/ts-easing-0.2.0.tgz", + "integrity": "sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==" }, "node_modules/tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", @@ -20095,6 +14411,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, "dependencies": { "minimist": "^1.2.0" }, @@ -20106,6 +14423,7 @@ "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, "engines": { "node": ">=4" } @@ -20115,55 +14433,16 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "optional": true, - "peer": true, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", - "optional": true, - "peer": true - }, - "node_modules/type": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", - "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", - "dev": true + "node_modules/tty-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", + "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==" }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, "dependencies": { "prelude-ls": "^1.2.1" }, @@ -20172,60 +14451,51 @@ } }, "node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", + "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==", "dev": true, "engines": { "node": ">=4" } }, "node_modules/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==", + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, "engines": { - "node": ">=10" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/typed-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", - "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" } }, "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -20235,17 +14505,18 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.3.tgz", - "integrity": "sha512-GsvTyUHTriq6o/bHcTd0vM7OQ9JEdlvluu9YISaA7+KzDzPaIzEeDFNkTfhdE3MYcNhNi0vq/LlegYgIs5yPAw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "reflect.getprototypeof": "^1.0.6" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" }, "engines": { "node": ">= 0.4" @@ -20255,16 +14526,17 @@ } }, "node_modules/typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-proto": "^1.0.3", "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" }, "engines": { "node": ">= 0.4" @@ -20273,27 +14545,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/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==", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "node_modules/typescript-compare": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/typescript-compare/-/typescript-compare-0.0.2.tgz", @@ -20315,39 +14566,48 @@ "typescript-compare": "^0.0.2" } }, - "node_modules/typo-js": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/typo-js/-/typo-js-1.2.4.tgz", - "integrity": "sha512-Oy/k+tFle5NAA3J/yrrYGfvEnPVrDZ8s8/WCwjUE75k331QyKIsFss7byQ/PzBmXLY6h1moRnZbnaxWBe3I3CA==" + "node_modules/uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==" }, "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", + "call-bound": "^1.0.3", "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/underscore": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", - "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" + "node_modules/undici": { + "version": "6.21.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.2.tgz", + "integrity": "sha512-uROZWze0R0itiAKVPsYhFov9LxrPMHLMEQFszeI2gCN6bnIIZ8twzBCJcN2LJrBBLfrP0t1FW0g+JmKVl8Vk1g==", + "engines": { + "node": ">=18.17" + } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==" + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "devOptional": true }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "dev": true, "engines": { "node": ">=4" } @@ -20356,6 +14616,7 @@ "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, "dependencies": { "unicode-canonical-property-names-ecmascript": "^2.0.0", "unicode-property-aliases-ecmascript": "^2.0.0" @@ -20368,6 +14629,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", + "dev": true, "engines": { "node": ">=4" } @@ -20376,179 +14638,23 @@ "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, "engines": { "node": ">=4" } }, - "node_modules/unified": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", - "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", - "dependencies": { - "@types/unist": "^2.0.0", - "bail": "^2.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unified/node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "node_modules/unicorn-magic": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", + "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", + "dev": true, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/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==", - "dependencies": { - "unique-slug": "^3.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/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==", - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/unist-util-generated": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz", - "integrity": "sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-is": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", - "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-is/node_modules/@types/unist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" - }, - "node_modules/unist-util-position": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz", - "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", - "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents/node_modules/@types/unist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" - }, - "node_modules/unist-util-visit/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -20557,32 +14663,10 @@ "node": ">= 10.0.0" } }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/unquote": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", - "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" - }, - "node_modules/upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "engines": { - "node": ">=4", - "yarn": "*" - } - }, "node_modules/update-browserslist-db": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", - "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", "funding": [ { "type": "opencollective", @@ -20599,7 +14683,7 @@ ], "dependencies": { "escalade": "^3.2.0", - "picocolors": "^1.1.0" + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -20621,33 +14705,47 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "dependencies": { "punycode": "^2.1.0" } }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "node_modules/url": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz", + "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" + "punycode": "^1.4.1", + "qs": "^6.12.3" + }, + "engines": { + "node": ">= 0.4" } }, + "node_modules/url/node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" + }, "node_modules/use-composed-ref": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz", - "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.4.0.tgz", + "integrity": "sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/use-isomorphic-layout-effect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz", - "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.0.tgz", + "integrity": "sha512-q6ayo8DWoPZT0VdG4u3D3uxcgONP3Mevx2i2b0434cwWBoL+aelL1DzkXI6w3PhTZzUeR2kaVlZn70iCiseP6w==", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "@types/react": { @@ -20656,14 +14754,14 @@ } }, "node_modules/use-latest": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz", - "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.3.0.tgz", + "integrity": "sha512-mhg3xdm9NaM8q+gLT8KryJPnRFOz1/5XPBhmDEVZK1webPzDjrPk7f/mbpeLqTgB9msytYWANxgALOCJKnLvcQ==", "dependencies": { "use-isomorphic-layout-effect": "^1.1.1" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "@types/react": { @@ -20680,11 +14778,23 @@ } }, "node_modules/use-sync-external-store": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", - "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz", + "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" } }, "node_modules/util-arity": { @@ -20698,164 +14808,166 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/util.promisify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", - "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.2", - "has-symbols": "^1.0.1", - "object.getownpropertydescriptors": "^2.1.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", - "dev": true, + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz", + "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "peer": true, "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/uvu": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", - "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", - "dependencies": { - "dequal": "^2.0.0", - "diff": "^5.0.0", - "kleur": "^4.0.3", - "sade": "^1.7.3" - }, - "bin": { - "uvu": "bin.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/uvu/node_modules/diff": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", - "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/uvu/node_modules/kleur": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", - "engines": { - "node": ">=6" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^2.0.0" }, "engines": { "node": ">=10.12.0" } }, - "node_modules/v8-to-istanbul/node_modules/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==" - }, "node_modules/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, "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" } }, "node_modules/validator": { - "version": "13.12.0", - "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", - "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", + "version": "13.15.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz", + "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==", "engines": { "node": ">= 0.10" } }, - "node_modules/vary": { + "node_modules/varint": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", + "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" + }, + "node_modules/vite": { + "version": "5.4.19", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz", + "integrity": "sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-commonjs": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/vite-plugin-commonjs/-/vite-plugin-commonjs-0.10.4.tgz", + "integrity": "sha512-eWQuvQKCcx0QYB5e5xfxBNjQKyrjEWZIR9UOkOV6JAgxVhtbZvCOF+FNC2ZijBJ3U3Px04ZMMyyMyFBVWIJ5+g==", + "dependencies": { + "acorn": "^8.12.1", + "magic-string": "^0.30.11", + "vite-plugin-dynamic-import": "^1.6.0" + } + }, + "node_modules/vite-plugin-dynamic-import": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/vite-plugin-dynamic-import/-/vite-plugin-dynamic-import-1.6.0.tgz", + "integrity": "sha512-TM0sz70wfzTIo9YCxVFwS8OA9lNREsh+0vMHGSkWDTZ7bgd1Yjs5RV8EgB634l/91IsXJReg0xtmuQqP0mf+rg==", + "dependencies": { + "acorn": "^8.12.1", + "es-module-lexer": "^1.5.4", + "fast-glob": "^3.3.2", + "magic-string": "^0.30.11" + } + }, + "node_modules/vite-plugin-node-polyfills": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.23.0.tgz", + "integrity": "sha512-4n+Ys+2bKHQohPBKigFlndwWQ5fFKwaGY6muNDMTb0fSQLyBzS+jjUNRZG9sKF0S/Go4ApG6LFnUGopjkILg3w==", + "dependencies": { + "@rollup/plugin-inject": "^5.0.5", + "node-stdlib-browser": "^1.2.0" + }, + "funding": { + "url": "https://github.com/sponsors/davidmyersdev" + }, + "peerDependencies": { + "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" + } + }, + "node_modules/vite-plugin-svgr": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/vite-plugin-svgr/-/vite-plugin-svgr-4.3.0.tgz", + "integrity": "sha512-Jy9qLB2/PyWklpYy0xk0UU3TlU0t2UMpJXZvf+hWII1lAmRHrOUKi11Uw8N3rxoNk7atZNYO3pR3vI1f7oi+6w==", + "dependencies": { + "@rollup/pluginutils": "^5.1.3", + "@svgr/core": "^8.1.0", + "@svgr/plugin-jsx": "^8.1.0" + }, + "peerDependencies": { + "vite": ">=2.6.0" + } + }, + "node_modules/vm-browserify": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/verror": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", - "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/vfile": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", - "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile-message": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", - "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==" }, "node_modules/void-elements": { "version": "3.1.0", @@ -20865,30 +14977,16 @@ "node": ">=0.10.0" } }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } + "node_modules/w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==" }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, "dependencies": { "makeerror": "1.0.12" } @@ -20901,320 +14999,23 @@ "loose-envify": "^1.0.0" } }, - "node_modules/watchpack": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", - "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dependencies": { - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "engines": { - "node": ">=10.4" - } - }, - "node_modules/webpack": { - "version": "5.96.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.96.1.tgz", - "integrity": "sha512-l2LlBSvVZGhL4ZrPwyr8+37AunkcYj5qh8o6u2/2rzoPc8gxFJkLj1WxNgooi9pnoc06jh0BjuXnamM4qlujZA==", - "dependencies": { - "@types/eslint-scope": "^3.7.7", - "@types/estree": "^1.0.6", - "@webassemblyjs/ast": "^1.12.1", - "@webassemblyjs/wasm-edit": "^1.12.1", - "@webassemblyjs/wasm-parser": "^1.12.1", - "acorn": "^8.14.0", - "browserslist": "^4.24.0", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.1", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.11", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.2.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.10", - "watchpack": "^2.4.1", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-middleware": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz", - "integrity": "sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q==", - "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/webpack-dev-server": { - "version": "4.15.2", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.2.tgz", - "integrity": "sha512-0XavAZbNJ5sDrCbkpWL8mia0o5WPOd2YGtxrEiZkBK9FjLppIUK2TgxK6qGD2P3hUXTJNNPVibrerKcx5WkR1g==", - "dependencies": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.5", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.4", - "ws": "^8.13.0" - }, - "bin": { - "webpack-dev-server": "bin/webpack-dev-server.js" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.37.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - }, - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/webpack-manifest-plugin": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz", - "integrity": "sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow==", - "dependencies": { - "tapable": "^2.0.0", - "webpack-sources": "^2.2.0" - }, - "engines": { - "node": ">=12.22.0" - }, - "peerDependencies": { - "webpack": "^4.44.2 || ^5.47.0" - } - }, - "node_modules/webpack-manifest-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack-manifest-plugin/node_modules/webpack-sources": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", - "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", - "dependencies": { - "source-list-map": "^2.0.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/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==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/webpack/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/webpack/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/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==", - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", + "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-encoding/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" + "iconv-lite": "0.6.3" }, "engines": { - "node": ">=0.10.0" + "node": ">=18" } }, - "node_modules/whatwg-fetch": { - "version": "3.6.20", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", - "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==" - }, "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", "engines": { - "node": ">=10" + "node": ">=18" } }, "node_modules/which": { @@ -21232,37 +15033,43 @@ } }, "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/which-builtin-type": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.4.tgz", - "integrity": "sha512-bppkmBSsHFmIMSl8BO9TbsyzsvGjVoppt8xUiGzwiu/bhDCGxnpOKCxgqj6GuyHE0mINMDecBFPlOm2hzY084w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, "dependencies": { + "call-bound": "^1.0.2", "function.prototype.name": "^1.1.6", "has-tostringtag": "^1.0.2", "is-async-function": "^2.0.0", - "is-date-object": "^1.0.5", - "is-finalizationregistry": "^1.0.2", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", "is-generator-function": "^1.0.10", - "is-regex": "^1.1.4", + "is-regex": "^1.2.1", "is-weakref": "^1.0.2", "isarray": "^2.0.5", - "which-boxed-primitive": "^1.0.2", + "which-boxed-primitive": "^1.1.0", "which-collection": "^1.0.2", - "which-typed-array": "^1.1.15" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -21275,6 +15082,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, "dependencies": { "is-map": "^2.0.3", "is-set": "^2.0.3", @@ -21289,14 +15097,16 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" }, "engines": { @@ -21306,329 +15116,27 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/workbox-background-sync": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.0.tgz", - "integrity": "sha512-jkf4ZdgOJxC9u2vztxLuPT/UjlH7m/nWRQ/MgGL0v8BJHoZdVGJd18Kck+a0e55wGXdqyHO+4IQTk0685g4MUw==", - "dependencies": { - "idb": "^7.0.1", - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-broadcast-update": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.0.tgz", - "integrity": "sha512-nm+v6QmrIFaB/yokJmQ/93qIJ7n72NICxIwQwe5xsZiV2aI93MGGyEyzOzDPVz5THEr5rC3FJSsO3346cId64Q==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-build": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.0.tgz", - "integrity": "sha512-Tjf+gBwOTuGyZwMz2Nk/B13Fuyeo0Q84W++bebbVsfr9iLkDSo6j6PST8tET9HYA58mlRXwlMGpyWO8ETJiXdQ==", - "dependencies": { - "@apideck/better-ajv-errors": "^0.3.1", - "@babel/core": "^7.11.1", - "@babel/preset-env": "^7.11.0", - "@babel/runtime": "^7.11.2", - "@rollup/plugin-babel": "^5.2.0", - "@rollup/plugin-node-resolve": "^11.2.1", - "@rollup/plugin-replace": "^2.4.1", - "@surma/rollup-plugin-off-main-thread": "^2.2.3", - "ajv": "^8.6.0", - "common-tags": "^1.8.0", - "fast-json-stable-stringify": "^2.1.0", - "fs-extra": "^9.0.1", - "glob": "^7.1.6", - "lodash": "^4.17.20", - "pretty-bytes": "^5.3.0", - "rollup": "^2.43.1", - "rollup-plugin-terser": "^7.0.0", - "source-map": "^0.8.0-beta.0", - "stringify-object": "^3.3.0", - "strip-comments": "^2.0.1", - "tempy": "^0.6.0", - "upath": "^1.2.0", - "workbox-background-sync": "6.6.0", - "workbox-broadcast-update": "6.6.0", - "workbox-cacheable-response": "6.6.0", - "workbox-core": "6.6.0", - "workbox-expiration": "6.6.0", - "workbox-google-analytics": "6.6.0", - "workbox-navigation-preload": "6.6.0", - "workbox-precaching": "6.6.0", - "workbox-range-requests": "6.6.0", - "workbox-recipes": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0", - "workbox-streams": "6.6.0", - "workbox-sw": "6.6.0", - "workbox-window": "6.6.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/workbox-build/node_modules/@apideck/better-ajv-errors": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", - "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", - "dependencies": { - "json-schema": "^0.4.0", - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "ajv": ">=8" - } - }, - "node_modules/workbox-build/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/workbox-build/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/workbox-build/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/workbox-build/node_modules/source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "dependencies": { - "whatwg-url": "^7.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/workbox-build/node_modules/tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/workbox-build/node_modules/webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, - "node_modules/workbox-build/node_modules/whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/workbox-cacheable-response": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.0.tgz", - "integrity": "sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==", - "deprecated": "workbox-background-sync@6.6.0", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-core": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.0.tgz", - "integrity": "sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==" - }, - "node_modules/workbox-expiration": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.0.tgz", - "integrity": "sha512-baplYXcDHbe8vAo7GYvyAmlS4f6998Jff513L4XvlzAOxcl8F620O91guoJ5EOf5qeXG4cGdNZHkkVAPouFCpw==", - "dependencies": { - "idb": "^7.0.1", - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-google-analytics": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.0.tgz", - "integrity": "sha512-p4DJa6OldXWd6M9zRl0H6vB9lkrmqYFkRQ2xEiNdBFp9U0LhsGO7hsBscVEyH9H2/3eZZt8c97NB2FD9U2NJ+Q==", - "deprecated": "It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained", - "dependencies": { - "workbox-background-sync": "6.6.0", - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "node_modules/workbox-navigation-preload": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.0.tgz", - "integrity": "sha512-utNEWG+uOfXdaZmvhshrh7KzhDu/1iMHyQOV6Aqup8Mm78D286ugu5k9MFD9SzBT5TcwgwSORVvInaXWbvKz9Q==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-precaching": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.0.tgz", - "integrity": "sha512-eYu/7MqtRZN1IDttl/UQcSZFkHP7dnvr/X3Vn6Iw6OsPMruQHiVjjomDFCNtd8k2RdjLs0xiz9nq+t3YVBcWPw==", - "dependencies": { - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "node_modules/workbox-range-requests": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.0.tgz", - "integrity": "sha512-V3aICz5fLGq5DpSYEU8LxeXvsT//mRWzKrfBOIxzIdQnV/Wj7R+LyJVTczi4CQ4NwKhAaBVaSujI1cEjXW+hTw==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-recipes": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.0.tgz", - "integrity": "sha512-TFi3kTgYw73t5tg73yPVqQC8QQjxJSeqjXRO4ouE/CeypmP2O/xqmB/ZFBBQazLTPxILUQ0b8aeh0IuxVn9a6A==", - "dependencies": { - "workbox-cacheable-response": "6.6.0", - "workbox-core": "6.6.0", - "workbox-expiration": "6.6.0", - "workbox-precaching": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "node_modules/workbox-routing": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.0.tgz", - "integrity": "sha512-x8gdN7VDBiLC03izAZRfU+WKUXJnbqt6PG9Uh0XuPRzJPpZGLKce/FkOX95dWHRpOHWLEq8RXzjW0O+POSkKvw==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-strategies": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.0.tgz", - "integrity": "sha512-eC07XGuINAKUWDnZeIPdRdVja4JQtTuc35TZ8SwMb1ztjp7Ddq2CJ4yqLvWzFWGlYI7CG/YGqaETntTxBGdKgQ==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-streams": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.0.tgz", - "integrity": "sha512-rfMJLVvwuED09CnH1RnIep7L9+mj4ufkTyDPVaXPKlhi9+0czCu+SJggWCIFbPpJaAZmp2iyVGLqS3RUmY3fxg==", - "dependencies": { - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0" - } - }, - "node_modules/workbox-sw": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.0.tgz", - "integrity": "sha512-R2IkwDokbtHUE4Kus8pKO5+VkPHD2oqTgl+XJwh4zbF1HyjAbgNmK/FneZHVU7p03XUt9ICfuGDYISWG9qV/CQ==" - }, - "node_modules/workbox-webpack-plugin": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.0.tgz", - "integrity": "sha512-xNZIZHalboZU66Wa7x1YkjIqEy1gTR+zPM+kjrYJzqN7iurYZBctBLISyScjhkJKYuRrZUP0iqViZTh8rS0+3A==", - "dependencies": { - "fast-json-stable-stringify": "^2.1.0", - "pretty-bytes": "^5.4.1", - "upath": "^1.2.0", - "webpack-sources": "^1.4.3", - "workbox-build": "6.6.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "webpack": "^4.4.0 || ^5.9.0" - } - }, - "node_modules/workbox-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/workbox-webpack-plugin/node_modules/webpack-sources": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", - "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", - "dependencies": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - } - }, - "node_modules/workbox-window": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.0.tgz", - "integrity": "sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==", - "dependencies": { - "@types/trusted-types": "^2.0.2", - "workbox-core": "6.6.0" - } - }, "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/chalk/wrap-ansi?sponsor=1" @@ -21639,6 +15147,7 @@ "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, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -21655,6 +15164,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -21665,36 +15175,86 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/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==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, "dependencies": { "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, "node_modules/ws": { "version": "7.5.10", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", @@ -21715,15 +15275,14 @@ } } }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "engines": { + "node": ">=8.0" + } }, "node_modules/xmlhttprequest-ssl": { "version": "1.6.3", @@ -21733,10 +15292,19 @@ "node": ">=0.4.0" } }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, "engines": { "node": ">=10" } @@ -21747,36 +15315,41 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", + "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", + "bin": { + "yaml": "bin.mjs" + }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, "dependencies": { - "cliui": "^7.0.2", + "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "string-width": "^4.2.0", + "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "yargs-parser": "^21.1.1" }, "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/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==", + "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, "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/yeast": { @@ -21795,13 +15368,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/zwitch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", - "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "node_modules/yup": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/yup/-/yup-1.2.0.tgz", + "integrity": "sha512-PPqYKSAXjpRCgLgLKVGPA33v5c/WgEx3wi6NFjIiegz90zSwyMpvTFp/uGcVnnbx6to28pgnzp/q8ih3QRjLMQ==", + "dev": true, + "dependencies": { + "property-expr": "^2.0.5", + "tiny-case": "^1.0.3", + "toposort": "^2.0.2", + "type-fest": "^2.19.0" + } + }, + "node_modules/yup/node_modules/type-fest": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", + "dev": true, + "engines": { + "node": ">=12.20" + }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/zxcvbn": { diff --git a/client/package.json b/client/package.json old mode 100644 new mode 100755 index d2e89541..29f3df8b --- a/client/package.json +++ b/client/package.json @@ -1,24 +1,18 @@ { "name": "planka-client", "private": true, + "type": "module", "scripts": { - "build": "react-app-rewired build", - "eject": "react-scripts eject", - "lint": "eslint --ext js,jsx src config-overrides.js", - "start": "react-app-rewired start", - "test": "react-app-rewired test", - "test:acceptance": "cucumber-js --require tests/acceptance/cucumber.conf.js --require tests/acceptance/stepDefinitions/**/*.js --format @cucumber/pretty-formatter" + "build": "vite build", + "postinstall": "patch-package", + "lint": "eslint --ext js,jsx src --report-unused-disable-directives", + "start": "vite", + "test": "jest", + "test:acceptance": "cucumber-js --import tests/acceptance/cucumber.conf.js --import tests/acceptance/steps/**/*.js --format @cucumber/pretty-formatter tests" }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" + "babel": { + "presets": [ + "@babel/preset-env" ] }, "eslintConfig": { @@ -35,96 +29,154 @@ }, "requireConfigFile": false }, + "plugins": [ + "prettier" + ], "extends": [ "airbnb", "airbnb/hooks", - "../package.json" + "plugin:prettier/recommended" ], "rules": { - "no-unused-vars": "warn", - "import/no-extraneous-dependencies": [ + "import/no-unresolved": [ "error", { - "devDependencies": [ - "src/setupTests.js", - "**/*.test.js" + "ignore": [ + "\\.svg\\?react$" ] } ], "prettier/prettier": [ "error", { - "endOfLine": "auto" + "endOfLine": "auto", + "printWidth": 100, + "singleQuote": true, + "trailingComma": "all" } ] + }, + "overrides": [ + { + "files": [ + "tests/acceptance/**/*.js" + ], + "rules": { + "import/extensions": "off" + }, + "globals": { + "browser": "readonly", + "context": "readonly", + "page": "readonly" + } + } + ] + }, + "jest": { + "transform": { + "^.+\\.(js|jsx)$": "babel-jest" } }, "dependencies": { + "@ballerina/highlightjs-ballerina": "^1.0.1", + "@diplodoc/cut-extension": "^0.7.3", + "@diplodoc/transform": "^4.57.2", + "@gravity-ui/markdown-editor": "^15.11.0", + "@gravity-ui/uikit": "^7.11.0", "@juggle/resize-observer": "^3.4.0", + "@vitejs/plugin-react": "^4.4.1", + "browserslist-to-esbuild": "^2.1.1", "classnames": "^2.5.1", "date-fns": "^2.30.0", "dequal": "^2.0.3", - "easymde": "^2.18.0", + "highlight.js": "^11.11.1", + "highlightjs-4d": "^1.0.6", + "highlightjs-alan": "^0.0.2", + "highlightjs-apex": "^1.5.0", + "highlightjs-blade": "^0.1.0", + "highlightjs-cobol": "^0.3.3", + "highlightjs-cshtml-razor": "^2.1.1", + "highlightjs-gf": "^1.0.1", + "highlightjs-jolie": "^0.1.8", + "highlightjs-lean": "^1.2.0", + "highlightjs-lookml": "^1.0.2", + "highlightjs-macaulay2": "^0.2.5", + "highlightjs-mlir": "^0.0.1", + "highlightjs-qsharp": "^1.0.2", + "highlightjs-redbol": "^2.1.2", + "highlightjs-rpm-specfile": "^1.0.0", + "highlightjs-sap-abap": "^0.3.0", + "highlightjs-solidity": "^2.0.6", + "highlightjs-supercollider": "^1.0.0", + "highlightjs-svelte": "^1.0.6", + "highlightjs-xsharp": "^1.0.0", + "highlightjs-zenscript": "^2.0.0", + "hightlightjs-papyrus": "^0.0.4", "history": "^5.3.0", - "i18next": "23.15.2", - "i18next-browser-languagedetector": "^8.0.0", + "i18next": "^23.16.8", + "i18next-browser-languagedetector": "^8.1.0", "initials": "^3.1.2", + "javascript-time-ago": "^2.5.11", "js-cookie": "^3.0.5", "jwt-decode": "^4.0.0", - "linkify-react": "^4.1.4", - "linkifyjs": "^4.1.4", + "linkify-react": "^4.3.1", + "linkifyjs": "^4.3.1", "lodash": "^4.17.21", - "nanoid": "^5.0.9", - "node-sass": "^9.0.0", + "lowlight": "^3.3.0", + "markdown-it": "^13.0.2", + "nanoid": "^5.1.5", + "patch-package": "^8.0.0", "photoswipe": "^5.4.4", "prop-types": "^15.8.1", "react": "18.2.0", - "react-app-rewired": "^2.2.1", "react-beautiful-dnd": "^13.1.1", "react-datepicker": "^4.25.0", "react-dom": "18.2.0", - "react-dropzone": "^14.3.5", - "react-i18next": "^15.1.1", + "react-dropzone": "^14.3.8", + "react-frame-component": "^5.2.7", + "react-hot-toast": "^2.5.2", + "react-i18next": "^15.5.1", "react-input-mask": "^2.0.4", - "react-markdown": "^8.0.7", + "react-intersection-observer": "^9.16.0", "react-photoswipe-gallery": "^2.2.7", "react-redux": "^8.1.3", - "react-router-dom": "^6.28.0", - "react-scripts": "5.0.1", - "react-simplemde-editor": "^5.2.0", - "react-textarea-autosize": "^8.5.5", + "react-router-dom": "^6.30.0", + "react-textarea-autosize": "^8.5.9", + "react-time-ago": "^7.3.3", "redux": "^4.2.1", "redux-logger": "^3.0.6", "redux-orm": "^0.16.2", "redux-saga": "^1.3.0", - "remark-breaks": "^4.0.0", - "remark-gfm": "^3.0.1", "reselect": "^4.1.8", "sails.io.js": "^1.2.1", + "sass-embedded": "^1.87.0", "semantic-ui-react": "^2.1.5", "socket.io-client": "^2.5.0", - "validator": "^13.12.0", - "whatwg-fetch": "^3.6.20", + "validator": "^13.15.0", + "vite": "^5.4.19", + "vite-plugin-commonjs": "^0.10.4", + "vite-plugin-node-polyfills": "^0.23.0", + "vite-plugin-svgr": "^4.3.0", "zxcvbn": "^4.4.2" }, "devDependencies": { - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@cucumber/cucumber": "^7.3.2", + "@babel/eslint-parser": "^7.27.1", + "@babel/preset-env": "^7.27.2", + "@cucumber/cucumber": "^11.2.0", "@cucumber/pretty-formatter": "^1.0.1", - "@playwright/test": "^1.49.0", - "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^15.0.7", - "@testing-library/user-event": "^14.5.2", - "axios": "^1.8.2", + "@playwright/test": "^1.52.0", + "babel-jest": "^29.7.0", "babel-preset-airbnb": "^5.0.0", - "chai": "^4.5.0", - "eslint": "8.57.0", + "eslint": "^8.57.1", "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", - "eslint-plugin-react": "^7.37.2", + "eslint-plugin-prettier": "^5.4.0", + "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^4.6.2", - "playwright": "^1.49.0", - "react-test-renderer": "18.2.0" + "jest": "^29.7.0", + "playwright": "^1.52.0", + "prettier": "3.3.3" } } diff --git a/client/patches/@gravity-ui+markdown-editor+15.11.0.patch b/client/patches/@gravity-ui+markdown-editor+15.11.0.patch new file mode 100644 index 00000000..38acafcd --- /dev/null +++ b/client/patches/@gravity-ui+markdown-editor+15.11.0.patch @@ -0,0 +1,53 @@ +diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js b/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js +index 2152fd6..ceda0c1 100644 +--- a/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js ++++ b/node_modules/@gravity-ui/markdown-editor/build/esm/bundle/wysiwyg-preset.js +@@ -101,7 +101,6 @@ export const BundlePreset = (builder, opts) => { + enableNewImageSizeCalculation: opts.enableNewImageSizeCalculation, + ...opts.imgSize, + }, +- checkbox: { checkboxLabelPlaceholder: () => i18nPlaceholder('checkbox'), ...opts.checkbox }, + deflist: { + deflistTermPlaceholder: () => i18nPlaceholder('deflist_term'), + deflistDescPlaceholder: () => i18nPlaceholder('deflist_desc'), +@@ -118,11 +117,6 @@ export const BundlePreset = (builder, opts) => { + ...opts.yfmNote, + }, + yfmTable: { yfmTableCellPlaceholder: () => i18nPlaceholder('table_cell'), ...opts.yfmTable }, +- yfmFile: { +- fileUploadHandler: opts.fileUploadHandler, +- needToSetDimensionsForUploadedImages: opts.needToSetDimensionsForUploadedImages, +- ...opts.yfmFile, +- }, + yfmHeading: { + h1Key: f.toPM(A.Heading1), + h2Key: f.toPM(A.Heading2), +diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js b/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js +index ed2a9db..f95b693 100644 +--- a/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js ++++ b/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js +@@ -1,5 +1,5 @@ + import { Deflist, Subscript, Superscript, Underline, } from "../extensions/markdown/index.js"; +-import { Checkbox, ImgSize, Monospace, Video, YfmConfigs, YfmCut, YfmFile, YfmHeading, YfmNote, YfmTable, YfmTabs, } from "../extensions/yfm/index.js"; ++import { ImgSize, Monospace, Video, YfmConfigs, YfmCut, YfmHeading, YfmNote, YfmTable } from "../extensions/yfm/index.js"; + import { DefaultPreset } from "./default.js"; + export const YfmPreset = (builder, opts) => { + builder.use(DefaultPreset, { ...opts, image: false, heading: false }); +@@ -8,16 +8,13 @@ export const YfmPreset = (builder, opts) => { + .use(Subscript) + .use(Superscript) + .use(Underline, opts.underline ?? {}) +- .use(Checkbox, opts.checkbox ?? {}) + .use(ImgSize, opts.imgSize ?? {}) + .use(Monospace) + .use(Video, opts.video ?? {}) + .use(YfmConfigs, opts.yfmConfigs ?? {}) + .use(YfmCut, opts.yfmCut ?? {}) + .use(YfmNote, opts.yfmNote ?? {}) +- .use(YfmFile, opts.yfmFile ?? {}) + .use(YfmHeading, opts.yfmHeading ?? {}) +- .use(YfmTable, opts.yfmTable ?? {}) +- .use(YfmTabs); ++ .use(YfmTable, opts.yfmTable ?? {}); + }; + //# sourceMappingURL=yfm.js.map diff --git a/client/patches/redux-orm+0.16.2.patch b/client/patches/redux-orm+0.16.2.patch new file mode 100644 index 00000000..f2bd300e --- /dev/null +++ b/client/patches/redux-orm+0.16.2.patch @@ -0,0 +1,2543 @@ +diff --git a/node_modules/redux-orm/dist/redux-orm.js b/node_modules/redux-orm/dist/redux-orm.js +index 9298fea..d53d03e 100644 +--- a/node_modules/redux-orm/dist/redux-orm.js ++++ b/node_modules/redux-orm/dist/redux-orm.js +@@ -103,7 +103,7 @@ return /******/ (function(modules) { // webpackBootstrap + /*! no static exports found */ + /***/ (function(module, exports) { + +-eval("function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5TGlrZVRvQXJyYXkuanM/NWE0MyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBOztBQUVBLHdDQUF3QyxTQUFTO0FBQ2pEO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5TGlrZVRvQXJyYXkuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfYXJyYXlMaWtlVG9BcnJheShhcnIsIGxlbikge1xuICBpZiAobGVuID09IG51bGwgfHwgbGVuID4gYXJyLmxlbmd0aCkgbGVuID0gYXJyLmxlbmd0aDtcblxuICBmb3IgKHZhciBpID0gMCwgYXJyMiA9IG5ldyBBcnJheShsZW4pOyBpIDwgbGVuOyBpKyspIHtcbiAgICBhcnIyW2ldID0gYXJyW2ldO1xuICB9XG5cbiAgcmV0dXJuIGFycjI7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2FycmF5TGlrZVRvQXJyYXk7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\n"); ++eval("function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5TGlrZVRvQXJyYXkuanM/NWE0MyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBOztBQUVBLHdDQUF3QyxTQUFTO0FBQ2pEO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvYXJyYXlMaWtlVG9BcnJheS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9hcnJheUxpa2VUb0FycmF5KGFyciwgbGVuKSB7XG4gIGlmIChsZW4gPT0gbnVsbCB8fCBsZW4gPiBhcnIubGVuZ3RoKSBsZW4gPSBhcnIubGVuZ3RoO1xuXG4gIGZvciAodmFyIGkgPSAwLCBhcnIyID0gbmV3IEFycmF5KGxlbik7IGkgPCBsZW47IGkrKykge1xuICAgIGFycjJbaV0gPSBhcnJbaV07XG4gIH1cblxuICByZXR1cm4gYXJyMjtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfYXJyYXlMaWtlVG9BcnJheTtcbm1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzLCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\n"); + + /***/ }), + +@@ -114,7 +114,7 @@ eval("function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.len + /*! no static exports found */ + /***/ (function(module, exports, __webpack_require__) { + +-eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5V2l0aG91dEhvbGVzLmpzPzIyMzYiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCLG1CQUFPLENBQUMscUZBQW9COztBQUVuRDtBQUNBO0FBQ0E7O0FBRUEiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hcnJheVdpdGhvdXRIb2xlcy5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciBhcnJheUxpa2VUb0FycmF5ID0gcmVxdWlyZShcIi4vYXJyYXlMaWtlVG9BcnJheVwiKTtcblxuZnVuY3Rpb24gX2FycmF5V2l0aG91dEhvbGVzKGFycikge1xuICBpZiAoQXJyYXkuaXNBcnJheShhcnIpKSByZXR1cm4gYXJyYXlMaWtlVG9BcnJheShhcnIpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9hcnJheVdpdGhvdXRIb2xlczsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\n"); ++eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5V2l0aG91dEhvbGVzLmpzPzIyMzYiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCLG1CQUFPLENBQUMsd0ZBQXVCOztBQUV0RDtBQUNBO0FBQ0E7O0FBRUE7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5V2l0aG91dEhvbGVzLmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIGFycmF5TGlrZVRvQXJyYXkgPSByZXF1aXJlKFwiLi9hcnJheUxpa2VUb0FycmF5LmpzXCIpO1xuXG5mdW5jdGlvbiBfYXJyYXlXaXRob3V0SG9sZXMoYXJyKSB7XG4gIGlmIChBcnJheS5pc0FycmF5KGFycikpIHJldHVybiBhcnJheUxpa2VUb0FycmF5KGFycik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2FycmF5V2l0aG91dEhvbGVzO1xubW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\n"); + + /***/ }), + +@@ -125,7 +125,7 @@ eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./n + /*! no static exports found */ + /***/ (function(module, exports) { + +-eval("function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2NyZWF0ZUNsYXNzLmpzPzViYzMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxpQkFBaUIsa0JBQWtCO0FBQ25DO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUEiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9jcmVhdGVDbGFzcy5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9kZWZpbmVQcm9wZXJ0aWVzKHRhcmdldCwgcHJvcHMpIHtcbiAgZm9yICh2YXIgaSA9IDA7IGkgPCBwcm9wcy5sZW5ndGg7IGkrKykge1xuICAgIHZhciBkZXNjcmlwdG9yID0gcHJvcHNbaV07XG4gICAgZGVzY3JpcHRvci5lbnVtZXJhYmxlID0gZGVzY3JpcHRvci5lbnVtZXJhYmxlIHx8IGZhbHNlO1xuICAgIGRlc2NyaXB0b3IuY29uZmlndXJhYmxlID0gdHJ1ZTtcbiAgICBpZiAoXCJ2YWx1ZVwiIGluIGRlc2NyaXB0b3IpIGRlc2NyaXB0b3Iud3JpdGFibGUgPSB0cnVlO1xuICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIGRlc2NyaXB0b3Iua2V5LCBkZXNjcmlwdG9yKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBfY3JlYXRlQ2xhc3MoQ29uc3RydWN0b3IsIHByb3RvUHJvcHMsIHN0YXRpY1Byb3BzKSB7XG4gIGlmIChwcm90b1Byb3BzKSBfZGVmaW5lUHJvcGVydGllcyhDb25zdHJ1Y3Rvci5wcm90b3R5cGUsIHByb3RvUHJvcHMpO1xuICBpZiAoc3RhdGljUHJvcHMpIF9kZWZpbmVQcm9wZXJ0aWVzKENvbnN0cnVjdG9yLCBzdGF0aWNQcm9wcyk7XG4gIHJldHVybiBDb25zdHJ1Y3Rvcjtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfY3JlYXRlQ2xhc3M7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/createClass.js\n"); ++eval("function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2NyZWF0ZUNsYXNzLmpzPzViYzMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxpQkFBaUIsa0JBQWtCO0FBQ25DO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2NyZWF0ZUNsYXNzLmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2RlZmluZVByb3BlcnRpZXModGFyZ2V0LCBwcm9wcykge1xuICBmb3IgKHZhciBpID0gMDsgaSA8IHByb3BzLmxlbmd0aDsgaSsrKSB7XG4gICAgdmFyIGRlc2NyaXB0b3IgPSBwcm9wc1tpXTtcbiAgICBkZXNjcmlwdG9yLmVudW1lcmFibGUgPSBkZXNjcmlwdG9yLmVudW1lcmFibGUgfHwgZmFsc2U7XG4gICAgZGVzY3JpcHRvci5jb25maWd1cmFibGUgPSB0cnVlO1xuICAgIGlmIChcInZhbHVlXCIgaW4gZGVzY3JpcHRvcikgZGVzY3JpcHRvci53cml0YWJsZSA9IHRydWU7XG4gICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwgZGVzY3JpcHRvci5rZXksIGRlc2NyaXB0b3IpO1xuICB9XG59XG5cbmZ1bmN0aW9uIF9jcmVhdGVDbGFzcyhDb25zdHJ1Y3RvciwgcHJvdG9Qcm9wcywgc3RhdGljUHJvcHMpIHtcbiAgaWYgKHByb3RvUHJvcHMpIF9kZWZpbmVQcm9wZXJ0aWVzKENvbnN0cnVjdG9yLnByb3RvdHlwZSwgcHJvdG9Qcm9wcyk7XG4gIGlmIChzdGF0aWNQcm9wcykgX2RlZmluZVByb3BlcnRpZXMoQ29uc3RydWN0b3IsIHN0YXRpY1Byb3BzKTtcbiAgcmV0dXJuIENvbnN0cnVjdG9yO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9jcmVhdGVDbGFzcztcbm1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzLCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/createClass.js\n"); + + /***/ }), + +@@ -134,9 +134,9 @@ eval("function _defineProperties(target, props) {\n for (var i = 0; i < props.l + !*** ./node_modules/@babel/runtime/helpers/inheritsLoose.js ***! + \**************************************************************/ + /*! no static exports found */ +-/***/ (function(module, exports) { ++/***/ (function(module, exports, __webpack_require__) { + +-eval("function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nmodule.exports = _inheritsLoose;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2luaGVyaXRzTG9vc2UuanM/NTViNSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvaW5oZXJpdHNMb29zZS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9pbmhlcml0c0xvb3NlKHN1YkNsYXNzLCBzdXBlckNsYXNzKSB7XG4gIHN1YkNsYXNzLnByb3RvdHlwZSA9IE9iamVjdC5jcmVhdGUoc3VwZXJDbGFzcy5wcm90b3R5cGUpO1xuICBzdWJDbGFzcy5wcm90b3R5cGUuY29uc3RydWN0b3IgPSBzdWJDbGFzcztcbiAgc3ViQ2xhc3MuX19wcm90b19fID0gc3VwZXJDbGFzcztcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfaW5oZXJpdHNMb29zZTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/inheritsLoose.js\n"); ++eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inheritsLoose;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2luaGVyaXRzTG9vc2UuanM/NTViNSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQkFBcUIsbUJBQU8sQ0FBQyxvRkFBcUI7O0FBRWxEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2luaGVyaXRzTG9vc2UuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgc2V0UHJvdG90eXBlT2YgPSByZXF1aXJlKFwiLi9zZXRQcm90b3R5cGVPZi5qc1wiKTtcblxuZnVuY3Rpb24gX2luaGVyaXRzTG9vc2Uoc3ViQ2xhc3MsIHN1cGVyQ2xhc3MpIHtcbiAgc3ViQ2xhc3MucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShzdXBlckNsYXNzLnByb3RvdHlwZSk7XG4gIHN1YkNsYXNzLnByb3RvdHlwZS5jb25zdHJ1Y3RvciA9IHN1YkNsYXNzO1xuICBzZXRQcm90b3R5cGVPZihzdWJDbGFzcywgc3VwZXJDbGFzcyk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2luaGVyaXRzTG9vc2U7XG5tb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/inheritsLoose.js\n"); + + /***/ }), + +@@ -147,7 +147,7 @@ eval("function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Ob + /*! no static exports found */ + /***/ (function(module, exports) { + +-eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2l0ZXJhYmxlVG9BcnJheS5qcz8xMWIwIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTs7QUFFQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2l0ZXJhYmxlVG9BcnJheS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9pdGVyYWJsZVRvQXJyYXkoaXRlcikge1xuICBpZiAodHlwZW9mIFN5bWJvbCAhPT0gXCJ1bmRlZmluZWRcIiAmJiBTeW1ib2wuaXRlcmF0b3IgaW4gT2JqZWN0KGl0ZXIpKSByZXR1cm4gQXJyYXkuZnJvbShpdGVyKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfaXRlcmFibGVUb0FycmF5OyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/iterableToArray.js\n"); ++eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2l0ZXJhYmxlVG9BcnJheS5qcz8xMWIwIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvaXRlcmFibGVUb0FycmF5LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2l0ZXJhYmxlVG9BcnJheShpdGVyKSB7XG4gIGlmICh0eXBlb2YgU3ltYm9sICE9PSBcInVuZGVmaW5lZFwiICYmIGl0ZXJbU3ltYm9sLml0ZXJhdG9yXSAhPSBudWxsIHx8IGl0ZXJbXCJAQGl0ZXJhdG9yXCJdICE9IG51bGwpIHJldHVybiBBcnJheS5mcm9tKGl0ZXIpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9pdGVyYWJsZVRvQXJyYXk7XG5tb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/iterableToArray.js\n"); + + /***/ }), + +@@ -158,7 +158,18 @@ eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" & + /*! no static exports found */ + /***/ (function(module, exports) { + +-eval("function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL25vbkl0ZXJhYmxlU3ByZWFkLmpzPzA2NzYiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBOztBQUVBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvbm9uSXRlcmFibGVTcHJlYWQuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfbm9uSXRlcmFibGVTcHJlYWQoKSB7XG4gIHRocm93IG5ldyBUeXBlRXJyb3IoXCJJbnZhbGlkIGF0dGVtcHQgdG8gc3ByZWFkIG5vbi1pdGVyYWJsZSBpbnN0YW5jZS5cXG5JbiBvcmRlciB0byBiZSBpdGVyYWJsZSwgbm9uLWFycmF5IG9iamVjdHMgbXVzdCBoYXZlIGEgW1N5bWJvbC5pdGVyYXRvcl0oKSBtZXRob2QuXCIpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9ub25JdGVyYWJsZVNwcmVhZDsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js\n"); ++eval("function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL25vbkl0ZXJhYmxlU3ByZWFkLmpzPzA2NzYiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBOztBQUVBO0FBQ0EiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9ub25JdGVyYWJsZVNwcmVhZC5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9ub25JdGVyYWJsZVNwcmVhZCgpIHtcbiAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIkludmFsaWQgYXR0ZW1wdCB0byBzcHJlYWQgbm9uLWl0ZXJhYmxlIGluc3RhbmNlLlxcbkluIG9yZGVyIHRvIGJlIGl0ZXJhYmxlLCBub24tYXJyYXkgb2JqZWN0cyBtdXN0IGhhdmUgYSBbU3ltYm9sLml0ZXJhdG9yXSgpIG1ldGhvZC5cIik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX25vbkl0ZXJhYmxlU3ByZWFkO1xubW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js\n"); ++ ++/***/ }), ++ ++/***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js": ++/*!***************************************************************!*\ ++ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! ++ \***************************************************************/ ++/*! no static exports found */ ++/***/ (function(module, exports) { ++ ++eval("function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3NldFByb3RvdHlwZU9mLmpzPzRhNGIiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3NldFByb3RvdHlwZU9mLmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX3NldFByb3RvdHlwZU9mKG8sIHApIHtcbiAgbW9kdWxlLmV4cG9ydHMgPSBfc2V0UHJvdG90eXBlT2YgPSBPYmplY3Quc2V0UHJvdG90eXBlT2YgfHwgZnVuY3Rpb24gX3NldFByb3RvdHlwZU9mKG8sIHApIHtcbiAgICBvLl9fcHJvdG9fXyA9IHA7XG4gICAgcmV0dXJuIG87XG4gIH07XG5cbiAgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlO1xuICByZXR1cm4gX3NldFByb3RvdHlwZU9mKG8sIHApO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9zZXRQcm90b3R5cGVPZjtcbm1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzLCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js\n"); + + /***/ }), + +@@ -169,7 +180,7 @@ eval("function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt t + /*! no static exports found */ + /***/ (function(module, exports, __webpack_require__) { + +-eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ \"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray */ \"./node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ \"./node_modules/@babel/runtime/helpers/nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;//#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NwcmVhZCgpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF90b0NvbnN1bWFibGVBcnJheTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/toConsumableArray.js\n"); ++eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ \"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ \"./node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ \"./node_modules/@babel/runtime/helpers/nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3RvQ29uc3VtYWJsZUFycmF5LmpzPzQ0OGEiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsd0JBQXdCLG1CQUFPLENBQUMsMEZBQXdCOztBQUV4RCxzQkFBc0IsbUJBQU8sQ0FBQyxzRkFBc0I7O0FBRXBELGlDQUFpQyxtQkFBTyxDQUFDLDRHQUFpQzs7QUFFMUUsd0JBQXdCLG1CQUFPLENBQUMsMEZBQXdCOztBQUV4RDtBQUNBO0FBQ0E7O0FBRUE7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3RvQ29uc3VtYWJsZUFycmF5LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIGFycmF5V2l0aG91dEhvbGVzID0gcmVxdWlyZShcIi4vYXJyYXlXaXRob3V0SG9sZXMuanNcIik7XG5cbnZhciBpdGVyYWJsZVRvQXJyYXkgPSByZXF1aXJlKFwiLi9pdGVyYWJsZVRvQXJyYXkuanNcIik7XG5cbnZhciB1bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheSA9IHJlcXVpcmUoXCIuL3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5LmpzXCIpO1xuXG52YXIgbm9uSXRlcmFibGVTcHJlYWQgPSByZXF1aXJlKFwiLi9ub25JdGVyYWJsZVNwcmVhZC5qc1wiKTtcblxuZnVuY3Rpb24gX3RvQ29uc3VtYWJsZUFycmF5KGFycikge1xuICByZXR1cm4gYXJyYXlXaXRob3V0SG9sZXMoYXJyKSB8fCBpdGVyYWJsZVRvQXJyYXkoYXJyKSB8fCB1bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheShhcnIpIHx8IG5vbkl0ZXJhYmxlU3ByZWFkKCk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX3RvQ29uc3VtYWJsZUFycmF5O1xubW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/toConsumableArray.js\n"); + + /***/ }), + +@@ -180,7 +191,7 @@ eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ \". + /*! no static exports found */ + /***/ (function(module, exports) { + +-eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3R5cGVvZi5qcz83MDM3Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSxHQUFHO0FBQ0g7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3R5cGVvZi5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF90eXBlb2Yob2JqKSB7XG4gIFwiQGJhYmVsL2hlbHBlcnMgLSB0eXBlb2ZcIjtcblxuICBpZiAodHlwZW9mIFN5bWJvbCA9PT0gXCJmdW5jdGlvblwiICYmIHR5cGVvZiBTeW1ib2wuaXRlcmF0b3IgPT09IFwic3ltYm9sXCIpIHtcbiAgICBtb2R1bGUuZXhwb3J0cyA9IF90eXBlb2YgPSBmdW5jdGlvbiBfdHlwZW9mKG9iaikge1xuICAgICAgcmV0dXJuIHR5cGVvZiBvYmo7XG4gICAgfTtcbiAgfSBlbHNlIHtcbiAgICBtb2R1bGUuZXhwb3J0cyA9IF90eXBlb2YgPSBmdW5jdGlvbiBfdHlwZW9mKG9iaikge1xuICAgICAgcmV0dXJuIG9iaiAmJiB0eXBlb2YgU3ltYm9sID09PSBcImZ1bmN0aW9uXCIgJiYgb2JqLmNvbnN0cnVjdG9yID09PSBTeW1ib2wgJiYgb2JqICE9PSBTeW1ib2wucHJvdG90eXBlID8gXCJzeW1ib2xcIiA6IHR5cGVvZiBvYmo7XG4gICAgfTtcbiAgfVxuXG4gIHJldHVybiBfdHlwZW9mKG9iaik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX3R5cGVvZjsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/typeof.js\n"); ++eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3R5cGVvZi5qcz83MDM3Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSxHQUFHO0FBQ0g7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvdHlwZW9mLmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX3R5cGVvZihvYmopIHtcbiAgXCJAYmFiZWwvaGVscGVycyAtIHR5cGVvZlwiO1xuXG4gIGlmICh0eXBlb2YgU3ltYm9sID09PSBcImZ1bmN0aW9uXCIgJiYgdHlwZW9mIFN5bWJvbC5pdGVyYXRvciA9PT0gXCJzeW1ib2xcIikge1xuICAgIG1vZHVsZS5leHBvcnRzID0gX3R5cGVvZiA9IGZ1bmN0aW9uIF90eXBlb2Yob2JqKSB7XG4gICAgICByZXR1cm4gdHlwZW9mIG9iajtcbiAgICB9O1xuXG4gICAgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlO1xuICB9IGVsc2Uge1xuICAgIG1vZHVsZS5leHBvcnRzID0gX3R5cGVvZiA9IGZ1bmN0aW9uIF90eXBlb2Yob2JqKSB7XG4gICAgICByZXR1cm4gb2JqICYmIHR5cGVvZiBTeW1ib2wgPT09IFwiZnVuY3Rpb25cIiAmJiBvYmouY29uc3RydWN0b3IgPT09IFN5bWJvbCAmJiBvYmogIT09IFN5bWJvbC5wcm90b3R5cGUgPyBcInN5bWJvbFwiIDogdHlwZW9mIG9iajtcbiAgICB9O1xuXG4gICAgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlO1xuICB9XG5cbiAgcmV0dXJuIF90eXBlb2Yob2JqKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfdHlwZW9mO1xubW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/typeof.js\n"); + + /***/ }), + +@@ -191,7 +202,7 @@ eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Sy + /*! no static exports found */ + /***/ (function(module, exports, __webpack_require__) { + +-eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5LmpzPzY2MTMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCLG1CQUFPLENBQUMscUZBQW9COztBQUVuRDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvdW5zdXBwb3J0ZWRJdGVyYWJsZVRvQXJyYXkuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgYXJyYXlMaWtlVG9BcnJheSA9IHJlcXVpcmUoXCIuL2FycmF5TGlrZVRvQXJyYXlcIik7XG5cbmZ1bmN0aW9uIF91bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheShvLCBtaW5MZW4pIHtcbiAgaWYgKCFvKSByZXR1cm47XG4gIGlmICh0eXBlb2YgbyA9PT0gXCJzdHJpbmdcIikgcmV0dXJuIGFycmF5TGlrZVRvQXJyYXkobywgbWluTGVuKTtcbiAgdmFyIG4gPSBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwobykuc2xpY2UoOCwgLTEpO1xuICBpZiAobiA9PT0gXCJPYmplY3RcIiAmJiBvLmNvbnN0cnVjdG9yKSBuID0gby5jb25zdHJ1Y3Rvci5uYW1lO1xuICBpZiAobiA9PT0gXCJNYXBcIiB8fCBuID09PSBcIlNldFwiKSByZXR1cm4gQXJyYXkuZnJvbShvKTtcbiAgaWYgKG4gPT09IFwiQXJndW1lbnRzXCIgfHwgL14oPzpVaXxJKW50KD86OHwxNnwzMikoPzpDbGFtcGVkKT9BcnJheSQvLnRlc3QobikpIHJldHVybiBhcnJheUxpa2VUb0FycmF5KG8sIG1pbkxlbik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5OyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\n"); ++eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb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cblxubW9kdWxlLmV4cG9ydHMgPSBfdW5zdXBwb3J0ZWRJdGVyYWJsZVRvQXJyYXk7XG5tb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\n"); + + /***/ }), + +@@ -262,6 +273,17 @@ eval("/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _ + + /***/ }), + ++/***/ "./node_modules/lodash/_baseGet.js": ++/*!*****************************************!*\ ++ !*** ./node_modules/lodash/_baseGet.js ***! ++ \*****************************************/ ++/*! no static exports found */ ++/***/ (function(module, exports) { ++ ++eval("/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9sb2Rhc2gvX2Jhc2VHZXQuanM/NjU2YiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVcsT0FBTztBQUNsQixXQUFXLE9BQU87QUFDbEIsYUFBYSxFQUFFO0FBQ2Y7QUFDQTtBQUNBO0FBQ0E7O0FBRUEiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbG9kYXNoL19iYXNlR2V0LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZXRzIHRoZSB2YWx1ZSBhdCBga2V5YCBvZiBgb2JqZWN0YC5cbiAqXG4gKiBAcHJpdmF0ZVxuICogQHBhcmFtIHtPYmplY3R9IFtvYmplY3RdIFRoZSBvYmplY3QgdG8gcXVlcnkuXG4gKiBAcGFyYW0ge3N0cmluZ30ga2V5IFRoZSBrZXkgb2YgdGhlIHByb3BlcnR5IHRvIGdldC5cbiAqIEByZXR1cm5zIHsqfSBSZXR1cm5zIHRoZSBwcm9wZXJ0eSB2YWx1ZS5cbiAqL1xuZnVuY3Rpb24gZ2V0VmFsdWUob2JqZWN0LCBrZXkpIHtcbiAgcmV0dXJuIG9iamVjdCA9PSBudWxsID8gdW5kZWZpbmVkIDogb2JqZWN0W2tleV07XG59XG5cbm1vZHVsZS5leHBvcnRzID0gZ2V0VmFsdWU7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/lodash/_baseGet.js\n"); ++ ++/***/ }), ++ + /***/ "./node_modules/lodash/_baseIteratee.js": + /*!**********************************************!*\ + !*** ./node_modules/lodash/_baseIteratee.js ***! +@@ -291,7 +313,7 @@ eval("/**\n * A specialized version of `_.map` for arrays without support for it + /*! no static exports found */ + /***/ (function(module, exports, __webpack_require__) { + +-eval("var arrayMap = __webpack_require__(/*! ./_arrayMap */ \"./node_modules/lodash/_arrayMap.js\"),\n baseIteratee = __webpack_require__(/*! ./_baseIteratee */ \"./node_modules/lodash/_baseIteratee.js\"),\n baseMap = __webpack_require__(/*! ./_baseMap */ \"./node_modules/lodash/_baseMap.js\"),\n baseSortBy = __webpack_require__(/*! ./_baseSortBy */ \"./node_modules/lodash/_baseSortBy.js\"),\n baseUnary = __webpack_require__(/*! ./_baseUnary */ \"./node_modules/lodash/_baseUnary.js\"),\n compareMultiple = __webpack_require__(/*! ./_compareMultiple */ \"./node_modules/lodash/_compareMultiple.js\"),\n identity = __webpack_require__(/*! ./identity */ \"./node_modules/lodash/identity.js\");\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9sb2Rhc2gvX2Jhc2VPcmRlckJ5LmpzPzZhNWMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSxtQkFBTyxDQUFDLHVEQUFhO0FBQ3BDLG1CQUFtQixtQkFBTyxDQUFDLCtEQUFpQjtBQUM1QyxjQUFjLG1CQUFPLENBQUMscURBQVk7QUFDbEMsaUJBQWlCLG1CQUFPLENBQUMsMkRBQWU7QUFDeEMsZ0JBQWdCLG1CQUFPLENBQUMseURBQWM7QUFDdEMsc0JBQXNCLG1CQUFPLENBQUMscUVBQW9CO0FBQ2xELGVBQWUsbUJBQU8sQ0FBQyxxREFBWTs7QUFFbkM7QUFDQTtBQUNBO0FBQ0E7QUFDQSxXQUFXLGFBQWE7QUFDeEIsV0FBVyw2QkFBNkI7QUFDeEMsV0FBVyxTQUFTO0FBQ3BCLGFBQWEsTUFBTTtBQUNuQjtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0wsWUFBWTtBQUNaLEdBQUc7O0FBRUg7QUFDQTtBQUNBLEdBQUc7QUFDSDs7QUFFQSIsImZpbGUiOiIuL25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YXRlZXMgPSBhcnJheU1hcChpdGVyYXRlZXMubGVuZ3RoID8gaXRlcmF0ZWVzIDogW2lkZW50aXR5XSwgYmFzZVVuYXJ5KGJhc2VJdGVyYXRlZSkpO1xuXG4gIHZhciByZXN1bHQgPSBiYXNlTWFwKGNvbGxlY3Rpb24sIGZ1bmN0aW9uKHZhbHVlLCBrZXksIGNvbGxlY3Rpb24pIHtcbiAgICB2YXIgY3JpdGVyaWEgPSBhcnJheU1hcChpdGVyYXRlZXMsIGZ1bmN0aW9uKGl0ZXJhdGVlKSB7XG4gICAgICByZXR1cm4gaXRlcmF0ZWUodmFsdWUpO1xuICAgIH0pO1xuICAgIHJldHVybiB7ICdjcml0ZXJpYSc6IGNyaXRlcmlhLCAnaW5kZXgnOiArK2luZGV4LCAndmFsdWUnOiB2YWx1ZSB9O1xuICB9KTtcblxuICByZXR1cm4gYmFzZVNvcnRCeShyZXN1bHQsIGZ1bmN0aW9uKG9iamVjdCwgb3RoZXIpIHtcbiAgICByZXR1cm4gY29tcGFyZU11bHRpcGxlKG9iamVjdCwgb3RoZXIsIG9yZGVycyk7XG4gIH0pO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGJhc2VPcmRlckJ5O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/lodash/_baseOrderBy.js\n"); ++eval("var arrayMap = __webpack_require__(/*! ./_arrayMap */ \"./node_modules/lodash/_arrayMap.js\"),\n baseGet = __webpack_require__(/*! ./_baseGet */ \"./node_modules/lodash/_baseGet.js\"),\n baseIteratee = __webpack_require__(/*! ./_baseIteratee */ \"./node_modules/lodash/_baseIteratee.js\"),\n baseMap = __webpack_require__(/*! ./_baseMap */ \"./node_modules/lodash/_baseMap.js\"),\n baseSortBy = __webpack_require__(/*! ./_baseSortBy */ \"./node_modules/lodash/_baseSortBy.js\"),\n baseUnary = __webpack_require__(/*! ./_baseUnary */ \"./node_modules/lodash/_baseUnary.js\"),\n compareMultiple = __webpack_require__(/*! ./_compareMultiple */ \"./node_modules/lodash/_compareMultiple.js\"),\n identity = __webpack_require__(/*! ./identity */ \"./node_modules/lodash/identity.js\"),\n isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\");\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9sb2Rhc2gvX2Jhc2VPcmRlckJ5LmpzPzZhNWMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSxtQkFBTyxDQUFDLHVEQUFhO0FBQ3BDLGNBQWMsbUJBQU8sQ0FBQyxxREFBWTtBQUNsQyxtQkFBbUIsbUJBQU8sQ0FBQywrREFBaUI7QUFDNUMsY0FBYyxtQkFBTyxDQUFDLHFEQUFZO0FBQ2xDLGlCQUFpQixtQkFBTyxDQUFDLDJEQUFlO0FBQ3hDLGdCQUF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XJhdGVlcywgYmFzZVVuYXJ5KGJhc2VJdGVyYXRlZSkpO1xuXG4gIHZhciByZXN1bHQgPSBiYXNlTWFwKGNvbGxlY3Rpb24sIGZ1bmN0aW9uKHZhbHVlLCBrZXksIGNvbGxlY3Rpb24pIHtcbiAgICB2YXIgY3JpdGVyaWEgPSBhcnJheU1hcChpdGVyYXRlZXMsIGZ1bmN0aW9uKGl0ZXJhdGVlKSB7XG4gICAgICByZXR1cm4gaXRlcmF0ZWUodmFsdWUpO1xuICAgIH0pO1xuICAgIHJldHVybiB7ICdjcml0ZXJpYSc6IGNyaXRlcmlhLCAnaW5kZXgnOiArK2luZGV4LCAndmFsdWUnOiB2YWx1ZSB9O1xuICB9KTtcblxuICByZXR1cm4gYmFzZVNvcnRCeShyZXN1bHQsIGZ1bmN0aW9uKG9iamVjdCwgb3RoZXIpIHtcbiAgICByZXR1cm4gY29tcGFyZU11bHRpcGxlKG9iamVjdCwgb3RoZXIsIG9yZGVycyk7XG4gIH0pO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGJhc2VPcmRlckJ5O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/lodash/_baseOrderBy.js\n"); + + /***/ }), + +@@ -467,7 +489,7 @@ eval("var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ \"./node_modul + /*! no static exports found */ + /***/ (function(module, exports, __webpack_require__) { + +-eval("var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ \"./node_modules/lodash/_baseFlatten.js\"),\n baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ \"./node_modules/lodash/_baseOrderBy.js\"),\n baseRest = __webpack_require__(/*! ./_baseRest */ \"./node_modules/lodash/_baseRest.js\"),\n isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ \"./node_modules/lodash/_isIterateeCall.js\");\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9sb2Rhc2gvc29ydEJ5LmpzP2M3MDciXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0JBQWtCLG1CQUFPLENBQUMsNkRBQWdCO0FBQzFDLGtCQUFrQixtQkFBTyxDQUFDLDZEQUFnQjtBQUMxQyxlQUFlLG1CQUFPLENBQUMsdURBQWE7QUFDcEMscUJBQXFCLG1CQUFPLENBQUMsbUVBQW1COztBQUVoRDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVc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1bmN0aW9uKGNvbGxlY3Rpb24sIGl0ZXJhdGVlcykge1xuICBpZiAoY29sbGVjdGlvbiA9PSBudWxsKSB7XG4gICAgcmV0dXJuIFtdO1xuICB9XG4gIHZhciBsZW5ndGggPSBpdGVyYXRlZXMubGVuZ3RoO1xuICBpZiAobGVuZ3RoID4gMSAmJiBpc0l0ZXJhdGVlQ2FsbChjb2xsZWN0aW9uLCBpdGVyYXRlZXNbMF0sIGl0ZXJhdGVlc1sxXSkpIHtcbiAgICBpdGVyYXRlZXMgPSBbXTtcbiAgfSBlbHNlIGlmIChsZW5ndGggPiAyICYmIGlzSXRlcmF0ZWVDYWxsKGl0ZXJhdGVlc1swXSwgaXRlcmF0ZWVzWzFdLCBpdGVyYXRlZXNbMl0pKSB7XG4gICAgaXRlcmF0ZWVzID0gW2l0ZXJhdGVlc1swXV07XG4gIH1cbiAgcmV0dXJuIGJhc2VPcmRlckJ5KGNvbGxlY3Rpb24sIGJhc2VGbGF0dGVuKGl0ZXJhdGVlcywgMSksIFtdKTtcbn0pO1xuXG5tb2R1bGUuZXhwb3J0cyA9IHNvcnRCeTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/lodash/sortBy.js\n"); ++eval("var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ \"./node_modules/lodash/_baseFlatten.js\"),\n baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ \"./node_modules/lodash/_baseOrderBy.js\"),\n baseRest = __webpack_require__(/*! ./_baseRest */ \"./node_modules/lodash/_baseRest.js\"),\n isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ \"./node_modules/lodash/_isIterateeCall.js\");\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9sb2Rhc2gvc29ydEJ5LmpzP2M3MDciXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0JBQWtCLG1CQUFPLENBQUMsNkRBQWdCO0FBQzFDLGtCQUFrQixtQkFBTyxDQUFDLDZEQUFnQjtBQUMxQyxlQUFlLG1CQUFPLENBQUMsdURBQWE7QUFDcEMscUJBQXFCLG1CQUFPLENBQUMsbUVBQW1COztBQUVoRDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVcsYUFBYTtBQUN4QixXQUFXLHlCQUF5QjtBQUNwQztBQUNBLGFBQWEsTUFBTTtBQUNuQjtBQUNBO0FBQ0E7QUFDQSxNQUF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uIFtdO1xuICB9XG4gIHZhciBsZW5ndGggPSBpdGVyYXRlZXMubGVuZ3RoO1xuICBpZiAobGVuZ3RoID4gMSAmJiBpc0l0ZXJhdGVlQ2FsbChjb2xsZWN0aW9uLCBpdGVyYXRlZXNbMF0sIGl0ZXJhdGVlc1sxXSkpIHtcbiAgICBpdGVyYXRlZXMgPSBbXTtcbiAgfSBlbHNlIGlmIChsZW5ndGggPiAyICYmIGlzSXRlcmF0ZWVDYWxsKGl0ZXJhdGVlc1swXSwgaXRlcmF0ZWVzWzFdLCBpdGVyYXRlZXNbMl0pKSB7XG4gICAgaXRlcmF0ZWVzID0gW2l0ZXJhdGVlc1swXV07XG4gIH1cbiAgcmV0dXJuIGJhc2VPcmRlckJ5KGNvbGxlY3Rpb24sIGJhc2VGbGF0dGVuKGl0ZXJhdGVlcywgMSksIFtdKTtcbn0pO1xuXG5tb2R1bGUuZXhwb3J0cyA9IHNvcnRCeTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/lodash/sortBy.js\n"); + + /***/ }), + +@@ -4426,7 +4448,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _int + /*! no static exports found */ + /***/ (function(module, exports, __webpack_require__) { + +-eval("(function (global, factory) {\n true ? factory(exports, __webpack_require__(/*! reselect */ \"./node_modules/reselect/lib/index.js\")) :\n undefined;\n}(this, function (exports, reselect) { 'use strict';\n\n function isStringOrNumber(value) {\n return typeof value === 'string' || typeof value === 'number';\n }\n\n var FlatObjectCache =\n /*#__PURE__*/\n function () {\n function FlatObjectCache() {\n this._cache = {};\n }\n\n var _proto = FlatObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FlatObjectCache;\n }();\n\n var defaultCacheCreator = FlatObjectCache;\n\n var defaultCacheKeyValidator = function defaultCacheKeyValidator() {\n return true;\n };\n\n function createCachedSelector() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return function (polymorphicOptions, legacyOptions) {\n // @NOTE Versions 0.x/1.x accepted \"options\" as a function\n if (typeof legacyOptions === 'function') {\n throw new Error('[re-reselect] Second argument \"options\" must be an object. Please use \"options.selectorCreator\" to provide a custom selectorCreator.');\n }\n\n var options = {};\n\n if (typeof polymorphicOptions === 'function') {\n Object.assign(options, legacyOptions, {\n keySelector: polymorphicOptions\n }); // @TODO add legacyOptions deprecation notice in next major release\n } else {\n Object.assign(options, polymorphicOptions);\n } // https://github.com/reduxjs/reselect/blob/v4.0.0/src/index.js#L54\n\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : [].concat(funcs);\n\n var resultFuncWithRecomputations = function resultFuncWithRecomputations() {\n recomputations++;\n return resultFunc.apply(void 0, arguments);\n };\n\n funcs.push(resultFuncWithRecomputations);\n var cache = options.cacheObject || new defaultCacheCreator();\n var selectorCreator = options.selectorCreator || reselect.createSelector;\n var isValidCacheKey = cache.isValidCacheKey || defaultCacheKeyValidator;\n\n if (options.keySelectorCreator) {\n options.keySelector = options.keySelectorCreator({\n keySelector: options.keySelector,\n inputSelectors: dependencies,\n resultFunc: resultFunc\n });\n } // Application receives this function\n\n\n var selector = function selector() {\n var cacheKey = options.keySelector.apply(options, arguments);\n\n if (isValidCacheKey(cacheKey)) {\n var cacheResponse = cache.get(cacheKey);\n\n if (cacheResponse === undefined) {\n cacheResponse = selectorCreator.apply(void 0, funcs);\n cache.set(cacheKey, cacheResponse);\n }\n\n return cacheResponse.apply(void 0, arguments);\n }\n\n console.warn(\"[re-reselect] Invalid cache key \\\"\" + cacheKey + \"\\\" has been returned by keySelector function.\");\n return undefined;\n }; // Further selector methods\n\n\n selector.getMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments); // @NOTE It might update cache hit count in LRU-like caches\n\n return cache.get(cacheKey);\n };\n\n selector.removeMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments);\n cache.remove(cacheKey);\n };\n\n selector.clearCache = function () {\n cache.clear();\n };\n\n selector.resultFunc = resultFunc;\n selector.dependencies = dependencies;\n selector.cache = cache;\n\n selector.recomputations = function () {\n return recomputations;\n };\n\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n\n selector.keySelector = options.keySelector;\n return selector;\n };\n }\n\n function createStructuredCachedSelector(selectors) {\n return reselect.createStructuredSelector(selectors, createCachedSelector);\n }\n\n function validateCacheSize(cacheSize) {\n if (cacheSize === undefined) {\n throw new Error('Missing the required property \"cacheSize\".');\n }\n\n if (!Number.isInteger(cacheSize) || cacheSize <= 0) {\n throw new Error('The \"cacheSize\" property must be a positive integer value.');\n }\n }\n\n var FifoObjectCache =\n /*#__PURE__*/\n function () {\n function FifoObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._cacheOrdering.push(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FifoObjectCache;\n }();\n\n var LruObjectCache =\n /*#__PURE__*/\n function () {\n function LruObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._registerCacheHit(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n this._registerCacheHit(key);\n\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n this._deleteCacheHit(key);\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto._registerCacheHit = function _registerCacheHit(key) {\n this._deleteCacheHit(key);\n\n this._cacheOrdering.push(key);\n };\n\n _proto._deleteCacheHit = function _deleteCacheHit(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return LruObjectCache;\n }();\n\n var FlatMapCache =\n /*#__PURE__*/\n function () {\n function FlatMapCache() {\n this._cache = new Map();\n }\n\n var _proto = FlatMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FlatMapCache;\n }();\n\n var FifoMapCache =\n /*#__PURE__*/\n function () {\n function FifoMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FifoMapCache;\n }();\n\n var LruMapCache =\n /*#__PURE__*/\n function () {\n function LruMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n var value = this._cache.get(key); // Register cache hit\n\n\n if (this._cache.has(key)) {\n this.remove(key);\n\n this._cache.set(key, value);\n }\n\n return value;\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return LruMapCache;\n }();\n\n exports.FifoCacheObject = FifoObjectCache;\n exports.FifoMapCache = FifoMapCache;\n exports.FifoObjectCache = FifoObjectCache;\n exports.FlatCacheObject = FlatObjectCache;\n exports.FlatMapCache = FlatMapCache;\n exports.FlatObjectCache = FlatObjectCache;\n exports.LruCacheObject = LruMapCache;\n exports.LruMapCache = LruMapCache;\n exports.LruObjectCache = LruObjectCache;\n exports.createStructuredCachedSelector = createStructuredCachedSelector;\n exports.default = createCachedSelector;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n//# sourceMappingURL=index.js.map\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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GUnLCB7IHZhbHVlOiB0cnVlIH0pO1xuXG59KSk7XG4vLyMgc291cmNlTWFwcGluZ1VSTD1pbmRleC5qcy5tYXBcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/re-reselect/dist/index.js\n"); ++eval("(function (global, factory) {\n true ? factory(exports, __webpack_require__(/*! reselect */ \"./node_modules/reselect/lib/index.js\")) :\n undefined;\n}(this, (function (exports, reselect) { 'use strict';\n\n function isStringOrNumber(value) {\n return typeof value === 'string' || typeof value === 'number';\n }\n\n var FlatObjectCache = /*#__PURE__*/function () {\n function FlatObjectCache() {\n this._cache = {};\n }\n\n var _proto = FlatObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FlatObjectCache;\n }();\n\n var defaultCacheCreator = FlatObjectCache;\n\n var defaultCacheKeyValidator = function defaultCacheKeyValidator() {\n return true;\n };\n\n function createCachedSelector() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return function (polymorphicOptions, legacyOptions) {\n if (legacyOptions) {\n throw new Error('[re-reselect] \"options\" as second argument is not supported anymore. Please provide an option object as single argument.');\n }\n\n var options = typeof polymorphicOptions === 'function' ? {\n keySelector: polymorphicOptions\n } : Object.assign({}, polymorphicOptions); // https://github.com/reduxjs/reselect/blob/v4.0.0/src/index.js#L54\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : [].concat(funcs);\n\n var resultFuncWithRecomputations = function resultFuncWithRecomputations() {\n recomputations++;\n return resultFunc.apply(void 0, arguments);\n };\n\n funcs.push(resultFuncWithRecomputations);\n var cache = options.cacheObject || new defaultCacheCreator();\n var selectorCreator = options.selectorCreator || reselect.createSelector;\n var isValidCacheKey = cache.isValidCacheKey || defaultCacheKeyValidator;\n\n if (options.keySelectorCreator) {\n options.keySelector = options.keySelectorCreator({\n keySelector: options.keySelector,\n inputSelectors: dependencies,\n resultFunc: resultFunc\n });\n } // Application receives this function\n\n\n var selector = function selector() {\n var cacheKey = options.keySelector.apply(options, arguments);\n\n if (isValidCacheKey(cacheKey)) {\n var cacheResponse = cache.get(cacheKey);\n\n if (cacheResponse === undefined) {\n cacheResponse = selectorCreator.apply(void 0, funcs);\n cache.set(cacheKey, cacheResponse);\n }\n\n return cacheResponse.apply(void 0, arguments);\n }\n\n console.warn(\"[re-reselect] Invalid cache key \\\"\" + cacheKey + \"\\\" has been returned by keySelector function.\");\n return undefined;\n }; // Further selector methods\n\n\n selector.getMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments); // @NOTE It might update cache hit count in LRU-like caches\n\n return cache.get(cacheKey);\n };\n\n selector.removeMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments);\n cache.remove(cacheKey);\n };\n\n selector.clearCache = function () {\n cache.clear();\n };\n\n selector.resultFunc = resultFunc;\n selector.dependencies = dependencies;\n selector.cache = cache;\n\n selector.recomputations = function () {\n return recomputations;\n };\n\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n\n selector.keySelector = options.keySelector;\n return selector;\n };\n }\n\n function createStructuredCachedSelector(selectors) {\n return reselect.createStructuredSelector(selectors, createCachedSelector);\n }\n\n function validateCacheSize(cacheSize) {\n if (cacheSize === undefined) {\n throw new Error('Missing the required property \"cacheSize\".');\n }\n\n if (!Number.isInteger(cacheSize) || cacheSize <= 0) {\n throw new Error('The \"cacheSize\" property must be a positive integer value.');\n }\n }\n\n var FifoObjectCache = /*#__PURE__*/function () {\n function FifoObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._cacheOrdering.push(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FifoObjectCache;\n }();\n\n var LruObjectCache = /*#__PURE__*/function () {\n function LruObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._registerCacheHit(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n this._registerCacheHit(key);\n\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n this._deleteCacheHit(key);\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto._registerCacheHit = function _registerCacheHit(key) {\n this._deleteCacheHit(key);\n\n this._cacheOrdering.push(key);\n };\n\n _proto._deleteCacheHit = function _deleteCacheHit(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return LruObjectCache;\n }();\n\n var FlatMapCache = /*#__PURE__*/function () {\n function FlatMapCache() {\n this._cache = new Map();\n }\n\n var _proto = FlatMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FlatMapCache;\n }();\n\n var FifoMapCache = /*#__PURE__*/function () {\n function FifoMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FifoMapCache;\n }();\n\n var LruMapCache = /*#__PURE__*/function () {\n function LruMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n var value = this._cache.get(key); // Register cache hit\n\n\n if (this._cache.has(key)) {\n this.remove(key);\n\n this._cache.set(key, value);\n }\n\n return value;\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return LruMapCache;\n }();\n\n exports.FifoMapCache = FifoMapCache;\n exports.FifoObjectCache = FifoObjectCache;\n exports.FlatMapCache = FlatMapCache;\n exports.FlatObjectCache = FlatObjectCache;\n exports.LruMapCache = LruMapCache;\n exports.LruObjectCache = LruObjectCache;\n exports.createCachedSelector = createCachedSelector;\n exports.createStructuredCachedSelector = createStructuredCachedSelector;\n exports.default = createCachedSelector;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=index.js.map\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL25vZGVfbW9kdWxlcy9yZS1yZXNlbGVjdC9kaXN0L2luZGV4LmpzP2YyM2QiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxFQUFFLEtBQTRELG9CQUFvQixtQkFBTyxDQUFDLHNEQUFVO0FBQ3BHLEVBQUUsU0FDK0U7QUFDakYsQ0FBQyxzQ0FBc0M7O0FBRXZDO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0EsR0FBRzs7QUFFSDs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSx3RUFBd0UsYUFBYTtBQUNyRjtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQSxPQUFPLG1CQUFtQixzQkFBc0I7O0FBRWhEO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs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Ll9jYWNoZS5jbGVhcigpO1xuICAgIH07XG5cbiAgICByZXR1cm4gTHJ1TWFwQ2FjaGU7XG4gIH0oKTtcblxuICBleHBvcnRzLkZpZm9NYXBDYWNoZSA9IEZpZm9NYXBDYWNoZTtcbiAgZXhwb3J0cy5GaWZvT2JqZWN0Q2FjaGUgPSBGaWZvT2JqZWN0Q2FjaGU7XG4gIGV4cG9ydHMuRmxhdE1hcENhY2hlID0gRmxhdE1hcENhY2hlO1xuICBleHBvcnRzLkZsYXRPYmplY3RDYWNoZSA9IEZsYXRPYmplY3RDYWNoZTtcbiAgZXhwb3J0cy5McnVNYXBDYWNoZSA9IExydU1hcENhY2hlO1xuICBleHBvcnRzLkxydU9iamVjdENhY2hlID0gTHJ1T2JqZWN0Q2FjaGU7XG4gIGV4cG9ydHMuY3JlYXRlQ2FjaGVkU2VsZWN0b3IgPSBjcmVhdGVDYWNoZWRTZWxlY3RvcjtcbiAgZXhwb3J0cy5jcmVhdGVTdHJ1Y3R1cmVkQ2FjaGVkU2VsZWN0b3IgPSBjcmVhdGVTdHJ1Y3R1cmVkQ2FjaGVkU2VsZWN0b3I7XG4gIGV4cG9ydHMuZGVmYXVsdCA9IGNyZWF0ZUNhY2hlZFNlbGVjdG9yO1xuXG4gIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAnX19lc01vZHVsZScsIHsgdmFsdWU6IHRydWUgfSk7XG5cbn0pKSk7XG4vLyMgc291cmNlTWFwcGluZ1VSTD1pbmRleC5qcy5tYXBcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/re-reselect/dist/index.js\n"); + + /***/ }), + +@@ -4450,7 +4472,7 @@ eval("\n\nexports.__esModule = true;\nexports.defaultMemoize = defaultMemoize;\n + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Session */ \"./src/Session.js\");\n/* harmony import */ var _QuerySet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./QuerySet */ \"./src/QuerySet.js\");\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fields */ \"./src/fields/index.js\");\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _fields_OneToOne__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fields/OneToOne */ \"./src/fields/OneToOne.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n\n\n\n\n\n\n\n\n/**\n * Generates a query specification to get the instance's\n * corresponding table row using its primary key.\n *\n * @private\n * @returns {Object}\n */\n\nfunction getByIdQuery(modelInstance) {\n const modelClass = modelInstance.getClass();\n const {\n idAttribute,\n modelName\n } = modelClass;\n return {\n table: modelName,\n clauses: [{\n type: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FILTER\"],\n payload: {\n [idAttribute]: modelInstance.getId()\n }\n }]\n };\n}\n/**\n * The heart of an ORM, the data model.\n *\n * The fields you specify to the Model will be used to generate\n * a schema to the database, related property accessors, and\n * possibly through models.\n *\n * In each {@link Session} you instantiate from an {@link ORM} instance,\n * you will receive a session-specific subclass of this Model. The methods\n * you define here will be available to you in sessions.\n *\n * An instance of {@link Model} represents a record in the database, though\n * it is possible to generate multiple instances from the same record in the database.\n *\n * To create data models in your schema, subclass {@link Model}. To define\n * information about the data model, override static class methods. Define instance\n * logic by defining prototype methods (without `static` keyword).\n */\n\n\nconst Model = /*#__PURE__*/function () {\n /**\n * Creates a Model instance from it's properties.\n * Don't use this to create a new record; Use the static method {@link Model#create}.\n * @param {Object} props - the properties to instantiate with\n */\n function Model(props) {\n this._initFields(props);\n }\n\n var _proto = Model.prototype;\n\n _proto._initFields = function _initFields(props) {\n const propsObj = Object(props);\n this._fields = { ...propsObj\n };\n Object.keys(propsObj).forEach(fieldName => {\n // In this case, we got a prop that wasn't defined as a field.\n // Assuming it's an arbitrary data field, making an instance-specific\n // descriptor for it.\n // Using the in operator as the property could be defined anywhere\n // on the prototype chain.\n if (!(fieldName in this)) {\n Object.defineProperty(this, fieldName, {\n get: () => this._fields[fieldName],\n set: value => this.set(fieldName, value),\n configurable: true,\n enumerable: true\n });\n }\n });\n };\n\n Model.toString = function toString() {\n return `ModelClass: ${this.modelName}`;\n }\n /**\n * Returns the options object passed to the database for the table that represents\n * this Model class.\n *\n * Returns an empty object by default, which means the database\n * will use default options. You can either override this function to return the options\n * you want to use, or assign the options object as a static property of the same name to the\n * Model class.\n *\n * @return {Object} the options object passed to the database for the table\n * representing this Model class.\n */\n ;\n\n Model.options = function options() {\n return {};\n }\n /**\n * Manually mark individual instances as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.<*>} ids - Array of primary key values\n * @return {undefined}\n */\n ;\n\n Model.markAccessed = function markAccessed(ids) {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to mark rows of the ${this.modelName} model as accessed without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].markAccessed\\` instead.`].join(\"\"));\n }\n\n this.session.markAccessed(this.modelName, ids);\n }\n /**\n * Manually mark this model's table as scanned.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @return {undefined}\n */\n ;\n\n Model.markFullTableScanned = function markFullTableScanned() {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to mark the ${this.modelName} model as full table scanned without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].markFullTableScanned\\` instead.`].join(\"\"));\n }\n\n this.session.markFullTableScanned(this.modelName);\n }\n /**\n * Manually mark indexes as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.>} indexes - Array of column-value pairs\n * @return {undefined}\n */\n ;\n\n Model.markAccessedIndexes = function markAccessedIndexes(indexes) {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to mark indexes for the ${this.modelName} model as accessed without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].markAccessedIndexes\\` instead.`].join(\"\"));\n }\n\n this.session.markAccessedIndexes(indexes.map(([attribute, value]) => [this.modelName, attribute, value]));\n }\n /**\n * Returns the id attribute of this {@link Model}.\n *\n * @return {string} The id attribute of this {@link Model}.\n */\n ;\n\n /**\n * Connect the model class to a {@link Session}.\n *\n * @private\n * @param {Session} session - The session to connect to.\n */\n Model.connect = function connect(session) {\n if (!(session instanceof _Session__WEBPACK_IMPORTED_MODULE_1__[\"default\"])) {\n throw new Error(\"A model can only be connected to instances of Session.\");\n }\n\n this._session = session;\n }\n /**\n * Get the current {@link Session} instance.\n *\n * @private\n * @return {Session} The current {@link Session} instance.\n */\n ;\n\n /**\n * Returns an instance of the model's `querySetClass` field.\n * By default, this will be an empty {@link QuerySet}.\n *\n * @return {Object} An instance of the model's `querySetClass`.\n */\n Model.getQuerySet = function getQuerySet() {\n const {\n querySetClass: QuerySetClass\n } = this;\n return new QuerySetClass(this);\n }\n /**\n * @return {undefined}\n */\n ;\n\n Model.invalidateClassCache = function invalidateClassCache() {\n this.isSetUp = undefined;\n this.virtualFields = {};\n }\n /**\n * @see {@link Model.getQuerySet}\n */\n ;\n\n /**\n * Returns parameters to be passed to {@link Table} instance.\n *\n * @private\n */\n Model.tableOptions = function tableOptions() {\n if (typeof this.backend === \"function\") {\n Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"warnDeprecated\"])(\"`Model.backend` has been deprecated. Please rename to `.options`.\");\n return this.backend();\n }\n\n if (this.backend) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"warnDeprecated\"])(\"`Model.backend` has been deprecated. Please rename to `.options`.\");\n return this.backend;\n }\n\n if (typeof this.options === \"function\") {\n return this.options();\n }\n\n return this.options;\n }\n /**\n * Creates a new record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the new {@link Model}'s properties.\n * @return {Model} a new {@link Model} instance.\n */\n ;\n\n Model.create = function create(userProps) {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to create a ${this.modelName} model instance without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].create\\` instead.`].join(\"\"));\n }\n\n const props = { ...userProps\n };\n const m2mRelations = {};\n const declaredFieldNames = Object.keys(this.fields);\n const declaredVirtualFieldNames = Object.keys(this.virtualFields);\n declaredFieldNames.forEach(key => {\n const field = this.fields[key];\n const valuePassed = userProps.hasOwnProperty(key);\n\n if (!(field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"])) {\n if (valuePassed) {\n const value = userProps[key];\n props[key] = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"normalizeEntity\"])(value);\n } else if (field.getDefault) {\n props[key] = field.getDefault();\n }\n } else if (valuePassed) {\n // Save for later processing\n m2mRelations[key] = userProps[key];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete props[key];\n }\n }\n }); // add backward many-many if required\n\n declaredVirtualFieldNames.forEach(key => {\n if (!m2mRelations.hasOwnProperty(key)) {\n const field = this.virtualFields[key];\n\n if (userProps.hasOwnProperty(key) && field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // If a value is supplied for a ManyToMany field,\n // discard them from props and save for later processing.\n m2mRelations[key] = userProps[key];\n delete props[key];\n }\n }\n });\n const newEntry = this.session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_7__[\"CREATE\"],\n table: this.modelName,\n payload: props\n });\n const ThisModel = this;\n const instance = new ThisModel(newEntry);\n\n instance._refreshMany2Many(m2mRelations); // eslint-disable-line no-underscore-dangle\n\n\n return instance;\n }\n /**\n * Creates a new or update existing record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the required {@link Model}'s properties.\n * @return {Model} a {@link Model} instance.\n */\n ;\n\n Model.upsert = function upsert(userProps) {\n if (typeof this.session === \"undefined\") {\n throw new Error([`Tried to upsert a ${this.modelName} model instance without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].upsert\\` instead.`].join(\"\"));\n }\n\n const {\n idAttribute\n } = this;\n\n if (userProps.hasOwnProperty(idAttribute)) {\n const id = userProps[idAttribute];\n\n if (this.idExists(id)) {\n const model = this.withId(id);\n model.update(userProps);\n return model;\n }\n }\n\n return this.create(userProps);\n }\n /**\n * Returns a {@link Model} instance for the object with id `id`.\n * Returns `null` if the model has no instance with id `id`.\n *\n * You can use {@link Model#idExists} to check for existence instead.\n *\n * @param {*} id - the `id` of the object to get\n * @throws If object with id `id` doesn't exist\n * @return {Model|null} {@link Model} instance with id `id`\n */\n ;\n\n Model.withId = function withId(id) {\n return this.get({\n [this.idAttribute]: id\n });\n }\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n *\n * @since 0.11.0\n */\n ;\n\n Model.idExists = function idExists(id) {\n return this.exists({\n [this.idAttribute]: id\n });\n }\n /**\n * Returns a boolean indicating if an entity\n * with the given props exists in the state.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n */\n ;\n\n Model.exists = function exists(lookupObj) {\n if (typeof this.session === \"undefined\") {\n throw new Error([`Tried to check if a ${this.modelName} model instance exists without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].exists\\` instead.`].join(\"\"));\n }\n\n return Boolean(this._findDatabaseRows(lookupObj).length);\n }\n /**\n * Gets the {@link Model} instance that matches properties in `lookupObj`.\n * Throws an error if {@link Model} if multiple records match\n * the properties.\n *\n * @param {Object} lookupObj - the properties used to match a single entity.\n * @throws {Error} If more than one entity matches the properties in `lookupObj`.\n * @return {Model} a {@link Model} instance that matches the properties in `lookupObj`.\n */\n ;\n\n Model.get = function get(lookupObj) {\n const ThisModel = this;\n\n const rows = this._findDatabaseRows(lookupObj);\n\n if (rows.length === 0) {\n return null;\n }\n\n if (rows.length > 1) {\n throw new Error(`Expected to find a single row in \\`${this.modelName}.get\\`. Found ${rows.length}.`);\n }\n\n return new ThisModel(rows[0]);\n }\n /**\n * Gets the {@link Model} class or subclass constructor (the class that\n * instantiated this instance).\n *\n * @return {Model} The {@link Model} class or subclass constructor used to instantiate\n * this instance.\n */\n ;\n\n _proto.getClass = function getClass() {\n return this.constructor;\n }\n /**\n * Gets the id value of the current instance by looking up the id attribute.\n * @return {*} The id value of the current instance.\n */\n ;\n\n _proto.getId = function getId() {\n return this._fields[this.getClass().idAttribute];\n }\n /**\n * Returns a reference to the plain JS object in the store.\n * It contains all the properties that you pass when creating the model,\n * except for primary keys of many-to-many relationships with a custom accessor.\n *\n * Make sure never to mutate this.\n *\n * @return {Object} a reference to the plain JS object in the store\n */\n ;\n\n /**\n * Finds all rows in this model's table that match the given `lookupObj`.\n * If no `lookupObj` is passed, all rows in the model's table will be returned.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n * @private\n */\n Model._findDatabaseRows = function _findDatabaseRows(lookupObj) {\n const querySpec = {\n table: this.modelName\n };\n\n if (lookupObj) {\n querySpec.clauses = [{\n type: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FILTER\"],\n payload: lookupObj\n }];\n }\n\n return this.session.query(querySpec).rows;\n }\n /**\n * Returns a string representation of the {@link Model} instance.\n *\n * @return {string} A string representation of this {@link Model} instance.\n */\n ;\n\n _proto.toString = function toString() {\n const ThisModel = this.getClass();\n const className = ThisModel.modelName;\n const fieldNames = Object.keys(ThisModel.fields);\n const fields = fieldNames.map(fieldName => {\n const field = ThisModel.fields[fieldName];\n\n if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n const ids = this[fieldName].toModelArray().map(model => model.getId());\n return `${fieldName}: [${ids.join(\", \")}]`;\n }\n\n const val = this._fields[fieldName];\n return `${fieldName}: ${val}`;\n }).join(\", \");\n return `${className}: {${fields}}`;\n }\n /**\n * Returns a boolean indicating if `otherModel` equals this {@link Model} instance.\n * Equality is determined by shallow comparing their attributes.\n *\n * This equality is used when you call {@link Model#update}.\n * You can prevent model updates by returning `true` here.\n * However, a model will always be updated if its relationships are changed.\n *\n * @param {Model} otherModel - a {@link Model} instance to compare\n * @return {Boolean} a boolean indicating if the {@link Model} instance's are equal.\n */\n ;\n\n _proto.equals = function equals(otherModel) {\n // eslint-disable-next-line no-underscore-dangle\n return Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"objectShallowEquals\"])(this._fields, otherModel._fields);\n }\n /**\n * Updates a property name to given value for this {@link Model} instance.\n * The values are immediately committed to the database.\n *\n * @param {string} propertyName - name of the property to set\n * @param {*} value - value assigned to the property\n * @return {undefined}\n */\n ;\n\n _proto.set = function set(propertyName, value) {\n this.update({\n [propertyName]: value\n });\n }\n /**\n * Assigns multiple fields and corresponding values to this {@link Model} instance.\n * The updates are immediately committed to the database.\n *\n * @param {Object} userMergeObj - an object that will be merged with this instance.\n * @return {undefined}\n */\n ;\n\n _proto.update = function update(userMergeObj) {\n const ThisModel = this.getClass();\n\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error([`Tried to update a ${ThisModel.modelName} model instance without a session. `, \"You cannot call `.update` on an instance that you did not receive from the database.\"].join(\"\"));\n }\n\n const mergeObj = { ...userMergeObj\n };\n const {\n fields,\n virtualFields\n } = ThisModel;\n const m2mRelations = {}; // If an array of entities or id's is supplied for a\n // many-to-many related field, clear the old relations\n // and add the new ones.\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (const mergeKey in mergeObj) {\n const isRealField = fields.hasOwnProperty(mergeKey);\n\n if (isRealField) {\n const field = fields[mergeKey];\n\n if (field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_4__[\"default\"] || field instanceof _fields_OneToOne__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n // update one-one/fk relations\n mergeObj[mergeKey] = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"normalizeEntity\"])(mergeObj[mergeKey]);\n } else if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // field is forward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete mergeObj[mergeKey];\n }\n }\n } else if (virtualFields.hasOwnProperty(mergeKey)) {\n const field = virtualFields[mergeKey];\n\n if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // field is backward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n delete mergeObj[mergeKey];\n }\n }\n }\n\n const mergedFields = { ...this._fields,\n ...mergeObj\n };\n const updatedModel = new ThisModel(mergedFields); // only update fields if they have changed (referentially)\n\n if (!this.equals(updatedModel)) {\n this._initFields(mergedFields);\n\n ThisModel.session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_7__[\"UPDATE\"],\n query: getByIdQuery(this),\n payload: mergeObj\n });\n } // update virtual fields\n\n\n this._refreshMany2Many(m2mRelations);\n }\n /**\n * Updates {@link Model} instance attributes to reflect the\n * database state in the current session.\n * @return {undefined}\n */\n ;\n\n _proto.refreshFromState = function refreshFromState() {\n this._initFields(this.ref);\n }\n /**\n * Deletes the record for this {@link Model} instance.\n * You'll still be able to access fields and values on the instance.\n *\n * @return {undefined}\n */\n ;\n\n _proto.delete = function _delete() {\n const ThisModel = this.getClass();\n\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error([`Tried to delete a ${ThisModel.modelName} model instance without a session. `, \"You cannot call `.delete` on an instance that you did not receive from the database.\"].join(\"\"));\n }\n\n this._onDelete();\n\n ThisModel.session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_7__[\"DELETE\"],\n query: getByIdQuery(this)\n });\n }\n /**\n * Update many-many relations for model.\n * @param relations\n * @return undefined\n * @private\n */\n ;\n\n _proto._refreshMany2Many = function _refreshMany2Many(relations) {\n const ThisModel = this.getClass();\n const {\n fields,\n virtualFields,\n modelName\n } = ThisModel;\n Object.keys(relations).forEach(name => {\n const reverse = !fields.hasOwnProperty(name);\n const field = virtualFields[name];\n const values = relations[name];\n\n if (!Array.isArray(values)) {\n throw new TypeError(`Failed to resolve many-to-many relationship: ${modelName}[${name}] must be an array (passed: ${values})`);\n }\n\n const normalizedNewIds = values.map(_utils__WEBPACK_IMPORTED_MODULE_8__[\"normalizeEntity\"]);\n const uniqueIds = [...new Set(normalizedNewIds)];\n\n if (normalizedNewIds.length !== uniqueIds.length) {\n throw new Error(`Found duplicate id(s) when passing \"${normalizedNewIds}\" to ${ThisModel.modelName}.${name} value`);\n }\n\n const throughModelName = field.through || Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"m2mName\"])(ThisModel.modelName, name);\n const ThroughModel = ThisModel.session[throughModelName];\n let fromField;\n let toField;\n\n if (!reverse) {\n ({\n from: fromField,\n to: toField\n } = field.throughFields);\n } else {\n ({\n from: toField,\n to: fromField\n } = field.throughFields);\n }\n\n const currentIds = ThroughModel.filter(through => through[fromField] === this[ThisModel.idAttribute]).toRefArray().map(ref => ref[toField]);\n const diffActions = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"arrayDiffActions\"])(currentIds, normalizedNewIds);\n\n if (diffActions) {\n const {\n delete: idsToDelete,\n add: idsToAdd\n } = diffActions;\n\n if (idsToDelete.length > 0) {\n this[field.as || name].remove(...idsToDelete);\n }\n\n if (idsToAdd.length > 0) {\n this[field.as || name].add(...idsToAdd);\n }\n }\n });\n }\n /**\n * @return {undefined}\n * @private\n */\n ;\n\n _proto._onDelete = function _onDelete() {\n const {\n virtualFields\n } = this.getClass(); // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (const key in virtualFields) {\n const field = virtualFields[key];\n\n if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // Delete any many-to-many rows the entity is included in.\n const descriptorKey = field.as || key;\n this[descriptorKey].clear();\n } else if (field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n const relatedQs = this[key];\n\n if (relatedQs.exists()) {\n relatedQs.update({\n [field.relatedName]: null\n });\n }\n } else if (field instanceof _fields_OneToOne__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n // Set null to any foreign keys or one to ones pointed to\n // this instance.\n if (this[key] !== null) {\n this[key][field.relatedName] = null;\n }\n }\n }\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n * @deprecated Please use {@link Model.idExists} instead.\n */\n ;\n\n Model.hasId = function hasId(id) {\n console.warn(\"`Model.hasId` has been deprecated. Please use `Model.idExists` instead.\");\n return this.idExists(id);\n }\n /**\n * @deprecated See the 0.9 migration guide on the GitHub repo.\n * @throws {Error} Due to deprecation.\n */\n ;\n\n _proto.getNextState = function getNextState() {\n throw new Error(\"`Model.prototype.getNextState` has been removed. See the 0.9 \" + \"migration guide on the GitHub repo.\");\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Model, [{\n key: \"ref\",\n get: function () {\n const ThisModel = this.getClass(); // eslint-disable-next-line no-underscore-dangle\n\n return ThisModel._findDatabaseRows({\n [ThisModel.idAttribute]: this.getId()\n })[0];\n }\n }], [{\n key: \"idAttribute\",\n get: function () {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to get the ${this.modelName} model's id attribute without a session. `, \"Create a session using `session = orm.session()` and access \", `\\`session[\"${this.modelName}\"].idAttribute\\` instead.`].join(\"\"));\n }\n\n return this.session.db.describe(this.modelName).idAttribute;\n }\n }, {\n key: \"session\",\n get: function () {\n return this._session;\n }\n }, {\n key: \"query\",\n get: function () {\n return this.getQuerySet();\n }\n }]);\n\n return Model;\n}();\n\nModel.fields = {\n id: Object(_fields__WEBPACK_IMPORTED_MODULE_3__[\"attr\"])()\n};\nModel.virtualFields = {};\nModel.querySetClass = _QuerySet__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Model);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9Nb2RlbC5qcz9m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hwcm9wcyk7XG4gICAgfVxuXG4gICAgX2luaXRGaWVsZHMocHJvcHMpIHtcbiAgICAgICAgY29uc3QgcHJvcHNPYmogPSBPYmplY3QocHJvcHMpO1xuICAgICAgICB0aGlzLl9maWVsZHMgPSB7IC4uLnByb3BzT2JqIH07XG5cbiAgICAgICAgT2JqZWN0LmtleXMocHJvcHNPYmopLmZvckVhY2goZmllbGROYW1lID0+IHtcbiAgICAgICAgICAgIC8vIEluIHRoaXMgY2FzZSwgd2UgZ290IGEgcHJvcCB0aGF0IHdhc24ndCBkZWZpbmVkIGFzIGEgZmllbGQuXG4gICAgICAgICAgICAvLyBBc3N1bWluZyBpdCdzIGFuIGFyYml0cmFyeSBkYXRhIGZpZWxkLCBtYWtpbmcgYW4gaW5zdGFuY2Utc3BlY2lmaWNcbiAgICAgICAgICAgIC8vIGRlc2NyaXB0b3IgZm9yIGl0LlxuICAgICAgICAgICAgLy8gVXNpbmcgdGhlIGluIG9wZXJhdG9yIGFzIHRoZSBwcm9wZXJ0eSBjb3VsZCBiZSBkZWZpbmVkIGFueXdoZXJlXG4gICAgICAgICAgICAvLyBvbiB0aGUgcHJvdG90eXBlIGNoYWluLlxuICAgICAgICAgICAgaWYgKCEoZmllbGROYW1lIGluIHRoaXMpKSB7XG4gICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsIGZpZWxkTmFtZSwge1xuICAgICAgICAgICAgICAgICAgICBnZXQ6ICgpID0+IHRoaXMuX2ZpZWxkc1tmaWVsZE5hbWVdLFxuICAgICAgICAgICAgICAgICAgICBzZXQ6IHZhbHVlID0+IHRoaXMuc2V0KGZpZWxkTmFtZSwgdmFsdWUpLFxuICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxu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gICAgIHRoaXMudmlydHVhbEZpZWxkcyA9IHt9O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEBzZWUge0BsaW5rIE1vZGVsLmdldFF1ZXJ5U2V0fVxuICAgICAqL1xuICAgIHN0YXRpYyBnZXQgcXVlcnkoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmdldFF1ZXJ5U2V0KCk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBwYXJhbWV0ZXJzIHRvIGJlIHBhc3NlZCB0byB7QGxpbmsgVGFibGV9IGluc3RhbmNlLlxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBzdGF0aWMgdGFibGVPcHRpb25zKCkge1xuICAgICAgICBpZiAodHlwZW9mIHRoaXMuYmFja2VuZCA9PT0gXCJmdW5jdGlvblwiKSB7XG4gICAgICAgICAgICB3YXJuRGVwcmVjYXRlZChcbiAgICAgICAgICAgICAgICBcImBNb2RlbC5iYWNrZW5kYCBoYXMgYmVlbiBkZXByZWNhdGVkLiBQbGVhc2UgcmVuYW1lIHRvIGAub3B0aW9uc2AuXCJcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5iYWNrZW5kKCk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMuYmFja2VuZCkge1xuICAgICAgICAgICAgd2FybkRlcHJlY2F0ZWQoXG4gICAgICAgICAgICAgICAgXCJgTW9kZWwuYmFja2VuZGAgaGFzIGJlZW4gZGVwcmVjYXRlZC4gUGxlYXNlIHJlbmFtZSB0byBgLm9wdGlvbnNgLlwiXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuYmFja2VuZDtcbiAgICAgICAgfVxuICAgICAgICBpZiAodHlwZW9mIHRoaXMub3B0aW9ucyA9PT0gXCJmdW5jdGlvblwiKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5vcHRpb25zKCk7XG4gICAgICAgIH1cbiA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gICAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IHByb3BzID0geyAuLi51c2VyUHJvcHMgfTtcblxuICAgICAgICBjb25zdCBtMm1SZWxhdGlvbnMgPSB7fTtcblxuICAgICAgICBjb25zdCBkZWNsYXJlZEZpZWxkTmFtZXMgPSBPYmplY3Qua2V5cyh0aGlzLmZpZWxkcyk7XG4gICAgICAgIGNvbnN0IGRlY2xhcmVkVmlydHVhbEZpZWxkTmFtZXMgPSBPYmplY3Qua2V5cyh0aGlzLnZpcnR1YWxGaWVsZHMpO1xuXG4gICAgICAgIGRlY2xhcmVkRmllbGROYW1lcy5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgICAgICBjb25zdCBmaWVsZCA9IHRoaXMuZmllbGRzW2tleV07XG4gICAgICAgICAgICBjb25zdCB2YWx1ZVBhc3NlZCA9IHVzZXJQcm9wcy5oYXNPd25Qcm9wZXJ0eShrZXkpO1xuICAgICAgICAgICAgaWYgKCEoZmllbGQgaW5zdGFuY2VvZiBNYW55VG9NYW55KSkge1xuICAgICAgICAgICAgICAgIGlmICh2YWx1ZVBhc3NlZCkge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHVzZXJQcm9wc1trZXldO1xuICAgICAgICAgICAgICAgICAgICBwcm9wc1trZXldID0gbm9ybWFsaXplRW50aXR5KHZhbHVlKTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGZpZWxkLmdldERlZmF1bHQpIHtcbiAgICAgICAgICAgICAgICAgICAgcHJvcHNba2V5XSA9IGZpZWxkLmdldERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHZhbHVlUGFzc2VkKSB7XG4gICAgICAgICAgICAgICAgLy8gU2F2ZSBmb3IgbGF0ZXIgcHJvY2Vzc2luZ1xuICAgICAgICAgICAgICAgIG0ybVJlbGF0aW9uc1trZXldID0gdXNlclByb3BzW2tleV07XG5cbiAgICAgICAgICAgICAgICBpZiAoIWZpZWxkLmFzKSB7XG4gICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgKiBUaGUgcmVsYXRpb25zaGlwIGRvZXMgbm90IGhhdmUgYW4gYWNjZXNzb3JcbiAgICAgICAgICAgICAgICAgICAgICogRGlzY2FyZCB0aGUgdmFsdWUgZnJvbSBwcm9wcyBhcyB0aGUgZmllbGQgd2lsbCBiZSBwb3B1bGF0ZWQgbGF0ZXIgd2l0aCBpbnN0YW5jZXNcbiAgICAgICAgICAgICAgICAgICAgICogZnJvbSB0aGUgdGFyZ2V0IG1vZGVscyB3aGVuIHJlZnJlc2hpbmcgdGhlIE0yTSByZWxhdGlvbnMuXG4gICAgICAgICAgICAgICAgICAgICAqIElmIHRoZSByZWxhdGlvbnNoaXAgZG9lcyBoYXZlIGFuIGFjY2Vzc29yIChgYXNgKSBmaWVsZCB0aGVuIHdlIGRvIHdhbnQgdG8ga2VlcCB0aGlzXG4gICAgICAgICAgICAgICAgICAgICAqIG9yaWdpbmFsIHZhbHVlIGluIHRoZSBwcm9wcyB0byBleHBvc2UgdGhlIHJhdyBsaXN0IG9mIElEcyBmcm9tIHRoZSBpbnN0YW5jZS5cbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBwcm9wc1trZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgLy8gYWRkIGJhY2t3YXJkIG1hbnktbWFueSBpZiByZXF1aXJlZFxuICAgICAgICBkZWNsYXJlZFZpcnR1YWxGaWVsZE5hbWVzLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgICAgIGlmICghbTJtUmVsYXRpb25zLmhhc093blByb3BlcnR5KGtleSkpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBmaWVsZCA9IHRoaXMudmlydHVhbEZpZWxkc1trZXldO1xuICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgdXNlclByb3BzLmhhc093blByb3BlcnR5KGtleSkgJiZcbiAgICAgICAgICAgICAgICAgICAgZmllbGQgaW5zdGFuY2VvZiBNYW55VG9NYW55XG4gICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIElmIGEgdmFsdWUgaXMgc3VwcGxpZWQgZm9yIGEgTWFueVRvTWFueSBmaWVsZCxcbiAgICAgICAgICAgICAgICAgICAgLy8gZGlzY2FyZCB0aGVtIGZyb20gcHJvcHMgYW5kIHNhdmUgZm9yIGxhdGVyIHByb2Nlc3NpbmcuXG4gICAgICAgICAgICAgICAgICAgIG0ybVJlbGF0aW9uc1trZXldID0gdXNlclByb3BzW2tleV07XG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBwcm9wc1trZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgY29uc3QgbmV3RW50cnkgPSB0aGlzLnNlc3Npb24uYXBwbHlVcGRhdGUoe1xuICAgICAgICAgICAgYWN0aW9uOiBDUkVBVEUsXG4gICAgICAgICAgICB0YWJsZTogdGhpcy5tb2RlbE5hbWUsXG4gICAgICAgICAgICBwYXlsb2FkOiBwcm9wcyxcbiAgICAgICAgfSk7XG5cbiAgICAgICAgY29uc3QgVGhpc01vZGVsID0gdGhpcztcbiAgICAgICAgY29uc3QgaW5zdGFuY2UgPSBuZXcgVGhpc01vZGVsKG5ld0VudHJ5KTtcbiAgICAgICAgaW5zdGFuY2UuX3JlZnJlc2hNYW55Mk1hbnkobTJtUmVsYXRpb25zKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby11bmRlcnNjb3JlLWRhbmdsZVxuICAgICAgICByZXR1cm4gaW5zdGFuY2U7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQ3JlYXRlcyBhIG5ldyBvciB1cGRhdGUgZXhpc3RpbmcgcmVjb3J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vb2t1cE9iamAuXG4gICAgICogQHJldHVybiB7TW9kZWx9IGEge0BsaW5rIE1vZGVsfSBpbnN0YW5jZSB0aGF0IG1hdGNoZXMgdGhlIHByb3BlcnRpZXMgaW4gYGxvb2t1cE9iamAuXG4gICAgICovXG4gICAgc3RhdGljIGdldChsb29rdXBPYmopIHtcbiAgICAgICAgY29uc3QgVGhpc01vZGVsID0gdGhpcztcblxuICAgICAgICBjb25zdCByb3dzID0gdGhpcy5fZmluZERhdGFiYXNlUm93cyhsb29rdXBPYmopO1xuICAgICAgICBpZiAocm93cy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG4gICAgICAgIGlmIChyb3dzLmxlbmd0aCA+IDEpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICBgRXhwZWN0ZWQgdG8gZmluZCBhIHNpbmdsZSByb3cgaW4gXFxgJHt0aGlzLm1vZGVsTmFtZX0uZ2V0XFxgLiBGb3VuZCAke3Jvd3MubGVuZ3RofS5gXG4gICAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG5ldyBUaGlzTW9kZWwocm93c1swXSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogR2V0cyB0aGUge0BsaW5rIE1vZGVsfSBjbGFzcyBvciBzdWJjbGFzcyBjb25zdHJ1Y3RvciAodGhlIGNsYXNzIHRoYXRcbiAgICAgKiBpbnN0YW50aWF0ZWQgdGhpcyBpbnN0YW5jZSkuXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtNb2RlbH0gVGhlIHtAbGluayBNb2RlbH0gY2xhc3Mgb3Igc3ViY2xhc3MgY29uc3RydWN0b3IgdXNlZCB0byBpbnN0YW50aWF0ZVxuICAgICAqICAgICAgICAgICAgICAgICB0aGlzIGluc3RhbmNlLlxuICAgICAqL1xuICAgIGdldENsYXNzKCkge1xuICAgICAgICByZXR1cm4gdGh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Jvd3M7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIHN0cmluZyByZXByZXNlbnRhdGlvbiBvZiB0aGUge0BsaW5rIE1vZGVsfSBpbnN0YW5jZS5cbiAgICAgKlxuICAgICAqIEByZXR1cm4ge3N0cmluZ30gQSBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhpcyB7QGxpbmsgTW9kZWx9IGluc3RhbmNlLlxuICAgICAqL1xuICAgIHRvU3RyaW5nKCkge1xuICAgICAgICBjb25zdCBUaGlzTW9kZWwgPSB0aGlzLmdldENsYXNzKCk7XG4gICAgICAgIGNvbnN0IGNsYXNzTmFtZSA9IFRoaXNNb2RlbC5tb2RlbE5hbWU7XG4gICAgICAgIGNvbnN0IGZpZWxkTmFtZXMgPSBPYmplY3Qua2V5cyhUaGlzTW9kZWwuZmllbGRzKTtcbiAgICAgICAgY29uc3QgZmllbGRzID0gZmllbGROYW1lc1xuICAgICAgICAgICAgLm1hcChmaWVsZE5hbWUgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGZpZWxkID0gVGhpc01vZGVsLmZpZWxkc1tmaWVsZE5hbWVdO1xuICAgICAgICAgICAgICAgIGlmIChmaWVsZCBpbnN0YW5jZW9mIE1hbnlUb01hbnkpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaWRzID0gdGhpc1tmaWVsZE5hbWVdXG4gICAgICAgICAgICAgICAgICAgICAgICAudG9Nb2RlbEFycmF5KClcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAobW9kZWwgPT4gbW9kZWwuZ2V0SWQoKSk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBgJHtmaWVsZE5hbWV9OiBbJHtpZHMuam9pbihcIiwgXCIpfV1gO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zdCB2YWwgPSB0aGlzLl9maWVsZHNbZmllbGROYW1lXTtcbiAgICAgICAgICAgICAgICByZXR1cm4gYCR7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0IGlzUmVhbEZpZWxkID0gZmllbGRzLmhhc093blByb3BlcnR5KG1lcmdlS2V5KTtcblxuICAgICAgICAgICAgaWYgKGlzUmVhbEZpZWxkKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgZmllbGQgPSBmaWVsZHNbbWVyZ2VLZXldO1xuXG4gICAgICAgICAgICAgICAgaWYgKGZpZWxkIGluc3RhbmNlb2YgRm9yZWlnbktleSB8fCBmaWVsZCBpbnN0YW5jZW9mIE9uZVRvT25lKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHVwZGF0ZSBvbmUtb25lL2ZrIHJlbGF0aW9uc1xuICAgICAgICAgICAgICAgICAgICBtZXJnZU9ialttZXJnZUtleV0gPSBub3JtYWxpemVFbnRpdHkobWVyZ2VPYmpbbWVyZ2VLZXldKTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGZpZWxkIGluc3RhbmNlb2YgTWFueVRvTWFueSkge1xuICAgICAgICAgICAgICAgICAgICAvLyBmaWVsZCBpcyBmb3J3YXJkIHJlbGF0aW9uXG4gICAgICAgICAgICAgICAgICAgIG0ybVJlbGF0aW9uc1ttZXJnZUtleV0gPSBtZXJnZU9ialttZXJnZUtleV07XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKCFmaWVsZC5hcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBUaGUgcmVsYXRpb25zaGlwIGRvZXMgbm90IGhhdmUgYW4gYWNjZXNzb3JcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIERpc2NhcmQgdGhlIHZhbHVlIGZyb20gcHJvcHMgYXMgdGhlIGZpZWxkIHdpbGwgYmUgcG9wdWxhdGVkIGxhdGVyIHdpdGggaW5zdGFuY2VzXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBmcm9tIHRoZSB0YXJnZXQgbW9kZWxzIHdoZW4gcmVmcmVzaGluZyB0aGUgTTJNIHJlbGF0aW9ucy5cbiAgICAgICAgICAgICAgICAgICAgICAgICAqIElmIHRoZSByZWxhdGlvbnNoaXAgZG9lcyBoYXZlIGFuIGFjY2Vzc29yIChgYXNgKSBmaWVsZCB0aGVuIHdlIGRvIHdhbnQgdG8ga2VlcCB0aGlzXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBvcmlnaW5hbCB2YWx1ZSBpbiB0aGUgcHJvcHMgdG8gZXhwb3NlIHRoZSByYXcgbGlzdCBvZiBJRHMgZnJvbSB0aGUgaW5zdGFuY2UuXG4gICAgICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBtZXJnZU9ialttZXJnZUtleV07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHZpcnR1YWxGaWVsZHMuaGFzT3duUHJvcGVydHkobWVyZ2VLZXkpKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgZmllbGQgPSB2aXJ0dWFsRmllbGRzW21lcmdlS2V5XTtcbiAgICAgICAgICAgICAgICBpZiAoZmllbGQgaW5zdGFuY2VvZiBNYW55VG9NYW55KSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGZpZWxkIGlzIGJhY2t3YXJkIHJlbGF0aW9uXG4gICAgICAgICAgICAgICAgICAgIG0ybVJlbGF0aW9uc1ttZXJnZUtleV0gPSBtZXJnZU9ialttZXJnZUtleV07XG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBtZXJnZU9ialttZXJnZUtleV07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgbWVyZ2VkRmllbGRzID0ge1xuICAgICAgICAgICAgLi4udGhpcy5fZmllbGRzLFxuICAgICAgICAgICAgLi4ubWVyZ2VPYmosXG4gICAgICAgIH07XG5cbiAgICAgICAgY29uc3QgdXBkYXRlZE1vZGVsID0gbmV3IFRoa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xuICAgICAqXG4gICAgICogQHJldHVybiB7dW5kZWZpbmVkfVxuICAgICAqL1xuICAgIGRlbGV0ZSgpIHtcbiAgICAgICAgY29uc3QgVGhpc01vZGVsID0gdGhpcy5nZXRDbGFzcygpO1xuICAgICAgICBpZiAodHlwZW9mIFRoaXNNb2RlbC5zZXNzaW9uID09PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICBgVHJpZWQgdG8gZGVsZXRlIGEgJHtUaGlzTW9kZWwubW9kZWxOYW1lfSBtb2RlbCBpbnN0YW5jZSB3aXRob3V0IGEgc2Vzc2lvbi4gYCxcbiAgICAgICAgICAgICAgICAgICAgXCJZb3UgY2Fubm90IGNhbGwgYC5kZWxldGVgIG9uIGFuIGluc3RhbmNlIHRoYXQgeW91IGRpZCBub3QgcmVjZWl2ZSBmcm9tIHRoZSBkYXRhYmFzZS5cIixcbiAgICAgICAgICAgICAgICBdLmpvaW4oXCJcIilcbiAgICAgICAgICAgICk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLl9vbkRlbGV0ZSgpO1xuICAgICAgICBUaGlzTW9kZWwuc2Vzc2lvbi5hcHBseVVwZGF0ZSh7XG4gICAgICAgICAgICBhY3Rpb246IERFTEVURSxcbiAgICAgICAgICAgIHF1ZXJ5OiBnZXRCeUlkUXVlcnkodGhpcyksXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFVwZGF0ZSBtYW55LW1hbnkgcmVsYXRpb25zIGZvciBtb2RlbC5cbiAgICAgKiBAcGFyYW0gcmVsYXRpb25zXG4gICAgICogQHJldHVybiB1bmRlZmluZWRcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIF9yZWZyZXNoTWFueTJNYW55KHJlbGF0aW9ucykge1xuICAgICAgICBjb25zdCBUaGlzTW9kZWwgPSB0aGlzLmdldENsYXNzKCk7XG4gICAgICAgIGNvbnN0IHsgZmllbGRzLCB2aXJ0dWFsRmllbGRzLCBtb2RlbE5hbWUgfSA9IFRoaXNNb2RlbDtcblxuICAgICAgICBPYmplY3Qua2V5cyhyZWxhdGlvbnMpLmZvckVhY2gobmFtZSA9PiB7XG4gICAgICAgICAgICBjb25zdCByZXZlcnNlID0gIWZpZWxkcy5oYXNPd25Qcm9wZXJ0eShuYW1lKTtcbiAgICAgICAgICAgIGNvbnN0IGZpZWxkID0gdmlydHVhbEZpZWxkc1tuYW1lXTtcbiAgICAgICAgICAgIGNvbnN0IHZhbHVlcyA9IHJlbGF0aW9uc1tuYW1lXTtcblxuICAgICAgICAgICAgaWYgKCFBcnJheS5pc0FycmF5KHZhbHVlcykpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFxuICAgICAgICAgICAgICAgICAgICBgRmFpbGVkIHRvIHJlc29sdmUgbWFueS10by1tYW55IHJlbGF0aW9uc2hpcDogJHttb2RlbE5hbWV9WyR7bmFtZX1dIG11c3QgYmUgYW4gYXJyYXkgKHBhc3NlZDogJHt2YWx1ZXN9KWBcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCBub3JtYWxpemVkTmV3SWRzID0gdmFsdWVzLm1hcChub3JtYWxpemVFbnRpdHkpO1xuICAgICAgICAgICAgY29uc3QgdW5pcXVlSWRzID0gWy4uLm5ldyBTZXQobm9ybWFsaXplZE5ld0lkcyldO1xuXG4gICAgICAgICAgICBpZiAobm9ybWFsaXplZE5ld0lkcy5sZW5ndGggIT09IHVuaXF1ZUlkcy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgIGBGb3VuZCBkdXBsaWNhdGUgaWQocykgd2hlbiBwYXNzaW5nIFwiJHtub3JtYWxpemVkTmV3SWRzfVwiIHRvICR7VGhpc01vZGVsLm1vZGVsTmFtZX0uJHtuYW1lfSB2YWx1ZWBcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCB0aHJvdWdoTW9kZWxOYW1lID1cbiAgICAgICAgICAgICAgICBmaWVsZC50aHJvdWdoIHx8IG0ybU5hbWUoVGhpc01vZGVsLm1vZGVsTmFtZSwgbmFtZSk7XG4gICAgICAgICAgICBjb25zdCBUaHJvdWdoTW9kZWwgPSBUaGlzTW9kZWwuc2Vzc2lvblt0aHJvdWdoTW9kZWxOYW1lXTtcblxuICAgICAgICAgICAgbGV0IGZyb21GaWVsZDtcbiAgICAgICAgICAgIGxldCB0b0ZpZWxkO1xuXG4gICAgICAgICAgICBpZiAoIXJldmVyc2UpIHtcbiAgICAgICAgICAgICAgICAoeyBmcm9tOiBmcm9tRmllbGQsIHRvOiB0b0ZpZWxkIH0gPSBmaWVsZC50aHJvdWdoRmllbGRzKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgKHsgZnJvbTogdG9GaWVsZCwgdG86IGZyb21GaWVsZCB9ID0gZmllbGQudGhyb3VnaEZpZWxkcyk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnN0IGN1cnJlbnRJZHMgPSBUaHJvdWdoTW9kZWwuZmlsdGVyKFxuICAgICAgICAgICAgICAgIHRocm91Z2ggPT4gdGhyb3VnaFtmcm9tRmllbGRdID09PSB0aGlzW1RoaXNNb2RlbC5pZEF0dHJpYnV0ZV1cbiAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAudG9SZWZBcnJheSgpXG4gICAgICAgICAgICAgICAgLm1hcChyZWYgPT4gcmVmW3RvRmllbGRdKTtcblxuICAgICAgICAgICAgY29uc3QgZGlmZkFjdGlvbnMgPSBhcnJheURpZmZBY3Rpb25zKGN1cnJlbnRJZHMsIG5vcm1hbGl6ZWROZXdJZHMpO1xuXG4gICAgICAgICAgICBpZiAoZGlmZkFjdGlvbnMpIHtcbiAgICAgICAgICAgICAgICBjb25zdCB7IGRlbGV0ZTogaWRzVG9EZWxldGUsIGFkZDogaWRzVG9BZGQgfSA9IGRpZmZBY3Rpb25zO1xuICAgICAgICAgICAgICAgIGlmIChpZHNUb0RlbGV0ZS5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXNbZmllbGQuYXMgfHwgbmFtZV0ucmVtb3ZlKC4uLmlkc1RvRGVsZXRlKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoaWRzVG9BZGQubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzW2ZpZWxkLmFzIHx8IG5hbWVdLmFkZCguLi5pZHNUb0FkZCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBAcmV0dXJuIHt1bmRlZmluZWR9XG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBfb25EZWxldGUoKSB7XG4gICAgICAgIGNvbnN0IHsgdmlydHVhbEZpZWxkcyB9ID0gdGhpcy5nZXRDbGFzcygpO1xuICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZ3VhcmQtZm9yLWluLCBuby1yZXN0cmljdGVkLXN5bnRheFxuICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiB2aXJ0dWFsRmllbGRzKSB7XG4gICAgICAgICAgICBjb25zdCBmaWVsZCA9IHZpcnR1YWxGaWVsZHNba2V5XTtcbiAgICAgICAgICAgIGlmIChmaWVsZCBpbnN0YW5jZW9mIE1hbnlUb01hbnkpIHtcbiAgICAgICAgICAgICAgICAvLyBEZWxldGUgYW55IG1hbnktdG8tbWFueSByb3dzIHRoZSBlbnRpdHkgaXMgaW5jbHVkZWQgaW4uXG4gICAgICAgICAgICAgICAgY29uc3QgZGVzY3JpcHRvcktleSA9IGZpZWxkLmFzIHx8IGtleTtcbiAgICAgICAgICAgICAgICB0aGlzW2Rlc2NyaXB0b3JLZXldLmNsZWFyKCk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGZpZWxkIGluc3RhbmNlb2YgRm9yZWlnbktleSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IHJlbGF0ZWRRcyA9IHRoaXNba2V5XTtcbiAgICAgICAgICAgICAgICBpZiAocmVsYXRlZFFzLmV4aXN0cygpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlbGF0ZWRRcy51cGRhdGUoeyBbZmllbGQucmVsYXRlZE5hbWVdOiBudWxsIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAoZmllbGQgaW5zdGFuY2VvZiBPbmVUb09uZSkge1xuICAgICAgICAgICAgICAgIC8vIFNldCBudWxsIHRvIGFueSBmb3JlaWduIGtleXMgb3Igb25lIHRvIG9uZXMgcG9pbnRlZCB0b1xuICAgICAgICAgICAgICAgIC8vIHRoaXMgaW5zdGFuY2UuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXNba2V5XSAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzW2tleV1bZmllbGQucmVsYXRlZE5hbWVdID0gbnVsbDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvLyBERVBSRUNBVEVEIEFORCBSRU1PVkVEIE1FVEhPRFNcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgYSBib29sZWFuIGluZGljYXRpbmcgaWYgYW4gZW50aXR5XG4gICAgICogd2l0aCB0aGUgaWQgYGlkYCBleGlzdHMgaW4gdGhlIHN0YXRlLlxuICAgICAqXG4gICAgICogQHBhcmFtICB7Kn0gIGlkIC0gYSB2YWx1ZSBjb3JyZXNwb25kaW5nIHRvIHRoZSBpZCBhdHRyaWJ1dGUgb2YgdGhlIHtAbGluayBNb2RlbH0gY2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iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Model.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Session */ \"./src/Session.js\");\n/* harmony import */ var _QuerySet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./QuerySet */ \"./src/QuerySet.js\");\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fields */ \"./src/fields/index.js\");\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _fields_OneToOne__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fields/OneToOne */ \"./src/fields/OneToOne.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n\n\n\n\n\n\n\n\n/**\n * Generates a query specification to get the instance's\n * corresponding table row using its primary key.\n *\n * @private\n * @returns {Object}\n */\n\nfunction getByIdQuery(modelInstance) {\n const modelClass = modelInstance.getClass();\n const {\n idAttribute,\n modelName\n } = modelClass;\n return {\n table: modelName,\n clauses: [{\n type: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FILTER\"],\n payload: {\n [idAttribute]: modelInstance.getId()\n }\n }]\n };\n}\n/**\n * The heart of an ORM, the data model.\n *\n * The fields you specify to the Model will be used to generate\n * a schema to the database, related property accessors, and\n * possibly through models.\n *\n * In each {@link Session} you instantiate from an {@link ORM} instance,\n * you will receive a session-specific subclass of this Model. The methods\n * you define here will be available to you in sessions.\n *\n * An instance of {@link Model} represents a record in the database, though\n * it is possible to generate multiple instances from the same record in the database.\n *\n * To create data models in your schema, subclass {@link Model}. To define\n * information about the data model, override static class methods. Define instance\n * logic by defining prototype methods (without `static` keyword).\n */\n\n\nconst Model = /*#__PURE__*/function () {\n /**\n * Creates a Model instance from it's properties.\n * Don't use this to create a new record; Use the static method {@link Model#create}.\n * @param {Object} props - the properties to instantiate with\n */\n function Model(props) {\n this._initFields(props);\n }\n\n var _proto = Model.prototype;\n\n _proto._initFields = function _initFields(props) {\n const propsObj = Object(props);\n this._fields = { ...propsObj\n };\n Object.keys(propsObj).forEach(fieldName => {\n // In this case, we got a prop that wasn't defined as a field.\n // Assuming it's an arbitrary data field, making an instance-specific\n // descriptor for it.\n // Using the in operator as the property could be defined anywhere\n // on the prototype chain.\n if (!(fieldName in this)) {\n Object.defineProperty(this, fieldName, {\n get: () => this._fields[fieldName],\n set: value => this.set(fieldName, value),\n configurable: true,\n enumerable: true\n });\n }\n });\n };\n\n Model.toString = function toString() {\n return `ModelClass: ${this.modelName}`;\n }\n /**\n * Returns the options object passed to the database for the table that represents\n * this Model class.\n *\n * Returns an empty object by default, which means the database\n * will use default options. You can either override this function to return the options\n * you want to use, or assign the options object as a static property of the same name to the\n * Model class.\n *\n * @return {Object} the options object passed to the database for the table\n * representing this Model class.\n */\n ;\n\n Model.options = function options() {\n return {};\n }\n /**\n * Manually mark individual instances as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.<*>} ids - Array of primary key values\n * @return {undefined}\n */\n ;\n\n Model.markAccessed = function markAccessed(ids) {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to mark rows of the ${this.modelName} model as accessed without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].markAccessed\\` instead.`].join(\"\"));\n }\n\n this.session.markAccessed(this.modelName, ids);\n }\n /**\n * Manually mark this model's table as scanned.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @return {undefined}\n */\n ;\n\n Model.markFullTableScanned = function markFullTableScanned() {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to mark the ${this.modelName} model as full table scanned without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].markFullTableScanned\\` instead.`].join(\"\"));\n }\n\n this.session.markFullTableScanned(this.modelName);\n }\n /**\n * Manually mark indexes as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.>} indexes - Array of column-value pairs\n * @return {undefined}\n */\n ;\n\n Model.markAccessedIndexes = function markAccessedIndexes(indexes) {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to mark indexes for the ${this.modelName} model as accessed without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].markAccessedIndexes\\` instead.`].join(\"\"));\n }\n\n this.session.markAccessedIndexes(indexes.map(([attribute, value]) => [this.modelName, attribute, value]));\n }\n /**\n * Returns the id attribute of this {@link Model}.\n *\n * @return {string} The id attribute of this {@link Model}.\n */\n ;\n\n /**\n * Connect the model class to a {@link Session}.\n *\n * @private\n * @param {Session} session - The session to connect to.\n */\n Model.connect = function connect(session) {\n if (!(session instanceof _Session__WEBPACK_IMPORTED_MODULE_1__[\"default\"])) {\n throw new Error(\"A model can only be connected to instances of Session.\");\n }\n\n this._session = session;\n }\n /**\n * Get the current {@link Session} instance.\n *\n * @private\n * @return {Session} The current {@link Session} instance.\n */\n ;\n\n /**\n * Returns an instance of the model's `querySetClass` field.\n * By default, this will be an empty {@link QuerySet}.\n *\n * @return {Object} An instance of the model's `querySetClass`.\n */\n Model.getQuerySet = function getQuerySet() {\n const {\n querySetClass: QuerySetClass\n } = this;\n return new QuerySetClass(this);\n }\n /**\n * @return {undefined}\n */\n ;\n\n Model.invalidateClassCache = function invalidateClassCache() {\n this.isSetUp = undefined;\n this.virtualFields = {};\n }\n /**\n * @see {@link Model.getQuerySet}\n */\n ;\n\n /**\n * Returns parameters to be passed to {@link Table} instance.\n *\n * @private\n */\n Model.tableOptions = function tableOptions() {\n if (typeof this.backend === \"function\") {\n Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"warnDeprecated\"])(\"`Model.backend` has been deprecated. Please rename to `.options`.\");\n return this.backend();\n }\n\n if (this.backend) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"warnDeprecated\"])(\"`Model.backend` has been deprecated. Please rename to `.options`.\");\n return this.backend;\n }\n\n if (typeof this.options === \"function\") {\n return this.options();\n }\n\n return this.options;\n }\n /**\n * Creates a new record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the new {@link Model}'s properties.\n * @return {Model} a new {@link Model} instance.\n */\n ;\n\n Model.create = function create(userProps) {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to create a ${this.modelName} model instance without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].create\\` instead.`].join(\"\"));\n }\n\n const props = { ...userProps\n };\n const m2mRelations = {};\n const declaredFieldNames = Object.keys(this.fields);\n const declaredVirtualFieldNames = Object.keys(this.virtualFields);\n declaredFieldNames.forEach(key => {\n const field = this.fields[key];\n const valuePassed = userProps.hasOwnProperty(key);\n\n if (!(field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"])) {\n if (valuePassed) {\n const value = userProps[key];\n props[key] = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"normalizeEntity\"])(value);\n } else if (field.getDefault) {\n props[key] = field.getDefault(userProps);\n }\n } else if (valuePassed) {\n // Save for later processing\n m2mRelations[key] = userProps[key];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete props[key];\n }\n }\n }); // add backward many-many if required\n\n declaredVirtualFieldNames.forEach(key => {\n if (!m2mRelations.hasOwnProperty(key)) {\n const field = this.virtualFields[key];\n\n if (userProps.hasOwnProperty(key) && field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // If a value is supplied for a ManyToMany field,\n // discard them from props and save for later processing.\n m2mRelations[key] = userProps[key];\n delete props[key];\n }\n }\n });\n const newEntry = this.session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_7__[\"CREATE\"],\n table: this.modelName,\n payload: props\n });\n const ThisModel = this;\n const instance = new ThisModel(newEntry);\n\n instance._refreshMany2Many(m2mRelations); // eslint-disable-line no-underscore-dangle\n\n\n return instance;\n }\n /**\n * Creates a new or update existing record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the required {@link Model}'s properties.\n * @return {Model} a {@link Model} instance.\n */\n ;\n\n Model.upsert = function upsert(userProps) {\n if (typeof this.session === \"undefined\") {\n throw new Error([`Tried to upsert a ${this.modelName} model instance without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].upsert\\` instead.`].join(\"\"));\n }\n\n const {\n idAttribute\n } = this;\n\n if (userProps.hasOwnProperty(idAttribute)) {\n const id = userProps[idAttribute];\n\n if (this.idExists(id)) {\n const model = this.withId(id);\n model.update(userProps);\n return model;\n }\n }\n\n return this.create(userProps);\n }\n /**\n * Returns a {@link Model} instance for the object with id `id`.\n * Returns `null` if the model has no instance with id `id`.\n *\n * You can use {@link Model#idExists} to check for existence instead.\n *\n * @param {*} id - the `id` of the object to get\n * @throws If object with id `id` doesn't exist\n * @return {Model|null} {@link Model} instance with id `id`\n */\n ;\n\n Model.withId = function withId(id) {\n return this.get({\n [this.idAttribute]: id\n });\n }\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n *\n * @since 0.11.0\n */\n ;\n\n Model.idExists = function idExists(id) {\n return this.exists({\n [this.idAttribute]: id\n });\n }\n /**\n * Returns a boolean indicating if an entity\n * with the given props exists in the state.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n */\n ;\n\n Model.exists = function exists(lookupObj) {\n if (typeof this.session === \"undefined\") {\n throw new Error([`Tried to check if a ${this.modelName} model instance exists without a session. `, \"Create a session using `session = orm.session()` and call \", `\\`session[\"${this.modelName}\"].exists\\` instead.`].join(\"\"));\n }\n\n return Boolean(this._findDatabaseRows(lookupObj).length);\n }\n /**\n * Gets the {@link Model} instance that matches properties in `lookupObj`.\n * Throws an error if {@link Model} if multiple records match\n * the properties.\n *\n * @param {Object} lookupObj - the properties used to match a single entity.\n * @throws {Error} If more than one entity matches the properties in `lookupObj`.\n * @return {Model} a {@link Model} instance that matches the properties in `lookupObj`.\n */\n ;\n\n Model.get = function get(lookupObj) {\n const ThisModel = this;\n\n const rows = this._findDatabaseRows(lookupObj);\n\n if (rows.length === 0) {\n return null;\n }\n\n if (rows.length > 1) {\n throw new Error(`Expected to find a single row in \\`${this.modelName}.get\\`. Found ${rows.length}.`);\n }\n\n return new ThisModel(rows[0]);\n }\n /**\n * Gets the {@link Model} class or subclass constructor (the class that\n * instantiated this instance).\n *\n * @return {Model} The {@link Model} class or subclass constructor used to instantiate\n * this instance.\n */\n ;\n\n _proto.getClass = function getClass() {\n return this.constructor;\n }\n /**\n * Gets the id value of the current instance by looking up the id attribute.\n * @return {*} The id value of the current instance.\n */\n ;\n\n _proto.getId = function getId() {\n return this._fields[this.getClass().idAttribute];\n }\n /**\n * Returns a reference to the plain JS object in the store.\n * It contains all the properties that you pass when creating the model,\n * except for primary keys of many-to-many relationships with a custom accessor.\n *\n * Make sure never to mutate this.\n *\n * @return {Object} a reference to the plain JS object in the store\n */\n ;\n\n /**\n * Finds all rows in this model's table that match the given `lookupObj`.\n * If no `lookupObj` is passed, all rows in the model's table will be returned.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n * @private\n */\n Model._findDatabaseRows = function _findDatabaseRows(lookupObj) {\n const querySpec = {\n table: this.modelName\n };\n\n if (lookupObj) {\n querySpec.clauses = [{\n type: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FILTER\"],\n payload: lookupObj\n }];\n }\n\n return this.session.query(querySpec).rows;\n }\n /**\n * Returns a string representation of the {@link Model} instance.\n *\n * @return {string} A string representation of this {@link Model} instance.\n */\n ;\n\n _proto.toString = function toString() {\n const ThisModel = this.getClass();\n const className = ThisModel.modelName;\n const fieldNames = Object.keys(ThisModel.fields);\n const fields = fieldNames.map(fieldName => {\n const field = ThisModel.fields[fieldName];\n\n if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n const ids = this[fieldName].toModelArray().map(model => model.getId());\n return `${fieldName}: [${ids.join(\", \")}]`;\n }\n\n const val = this._fields[fieldName];\n return `${fieldName}: ${val}`;\n }).join(\", \");\n return `${className}: {${fields}}`;\n }\n /**\n * Returns a boolean indicating if `otherModel` equals this {@link Model} instance.\n * Equality is determined by shallow comparing their attributes.\n *\n * This equality is used when you call {@link Model#update}.\n * You can prevent model updates by returning `true` here.\n * However, a model will always be updated if its relationships are changed.\n *\n * @param {Model} otherModel - a {@link Model} instance to compare\n * @return {Boolean} a boolean indicating if the {@link Model} instance's are equal.\n */\n ;\n\n _proto.equals = function equals(otherModel) {\n // eslint-disable-next-line no-underscore-dangle\n return Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"objectShallowEquals\"])(this._fields, otherModel._fields);\n }\n /**\n * Updates a property name to given value for this {@link Model} instance.\n * The values are immediately committed to the database.\n *\n * @param {string} propertyName - name of the property to set\n * @param {*} value - value assigned to the property\n * @return {undefined}\n */\n ;\n\n _proto.set = function set(propertyName, value) {\n this.update({\n [propertyName]: value\n });\n }\n /**\n * Assigns multiple fields and corresponding values to this {@link Model} instance.\n * The updates are immediately committed to the database.\n *\n * @param {Object} userMergeObj - an object that will be merged with this instance.\n * @return {undefined}\n */\n ;\n\n _proto.update = function update(userMergeObj) {\n const ThisModel = this.getClass();\n\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error([`Tried to update a ${ThisModel.modelName} model instance without a session. `, \"You cannot call `.update` on an instance that you did not receive from the database.\"].join(\"\"));\n }\n\n const mergeObj = { ...userMergeObj\n };\n const {\n fields,\n virtualFields\n } = ThisModel;\n const m2mRelations = {}; // If an array of entities or id's is supplied for a\n // many-to-many related field, clear the old relations\n // and add the new ones.\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (const mergeKey in mergeObj) {\n const isRealField = fields.hasOwnProperty(mergeKey);\n\n if (isRealField) {\n const field = fields[mergeKey];\n\n if (field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_4__[\"default\"] || field instanceof _fields_OneToOne__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n // update one-one/fk relations\n mergeObj[mergeKey] = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"normalizeEntity\"])(mergeObj[mergeKey]);\n } else if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // field is forward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete mergeObj[mergeKey];\n }\n }\n } else if (virtualFields.hasOwnProperty(mergeKey)) {\n const field = virtualFields[mergeKey];\n\n if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // field is backward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n delete mergeObj[mergeKey];\n }\n }\n }\n\n const mergedFields = { ...this._fields,\n ...mergeObj\n };\n const updatedModel = new ThisModel(mergedFields); // only update fields if they have changed (referentially)\n\n if (!this.equals(updatedModel)) {\n this._initFields(mergedFields);\n\n ThisModel.session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_7__[\"UPDATE\"],\n query: getByIdQuery(this),\n payload: mergeObj\n });\n } // update virtual fields\n\n\n this._refreshMany2Many(m2mRelations);\n }\n /**\n * Updates {@link Model} instance attributes to reflect the\n * database state in the current session.\n * @return {undefined}\n */\n ;\n\n _proto.refreshFromState = function refreshFromState() {\n this._initFields(this.ref);\n }\n /**\n * Deletes the record for this {@link Model} instance.\n * You'll still be able to access fields and values on the instance.\n *\n * @return {undefined}\n */\n ;\n\n _proto.delete = function _delete() {\n const ThisModel = this.getClass();\n\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error([`Tried to delete a ${ThisModel.modelName} model instance without a session. `, \"You cannot call `.delete` on an instance that you did not receive from the database.\"].join(\"\"));\n }\n\n this._onDelete();\n\n ThisModel.session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_7__[\"DELETE\"],\n query: getByIdQuery(this)\n });\n }\n /**\n * Update many-many relations for model.\n * @param relations\n * @return undefined\n * @private\n */\n ;\n\n _proto._refreshMany2Many = function _refreshMany2Many(relations) {\n const ThisModel = this.getClass();\n const {\n fields,\n virtualFields,\n modelName\n } = ThisModel;\n Object.keys(relations).forEach(name => {\n const reverse = !fields.hasOwnProperty(name);\n const field = virtualFields[name];\n const values = relations[name];\n\n if (!Array.isArray(values)) {\n throw new TypeError(`Failed to resolve many-to-many relationship: ${modelName}[${name}] must be an array (passed: ${values})`);\n }\n\n const normalizedNewIds = values.map(_utils__WEBPACK_IMPORTED_MODULE_8__[\"normalizeEntity\"]);\n const uniqueIds = [...new Set(normalizedNewIds)];\n\n if (normalizedNewIds.length !== uniqueIds.length) {\n throw new Error(`Found duplicate id(s) when passing \"${normalizedNewIds}\" to ${ThisModel.modelName}.${name} value`);\n }\n\n const throughModelName = field.through || Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"m2mName\"])(ThisModel.modelName, name);\n const ThroughModel = ThisModel.session[throughModelName];\n let fromField;\n let toField;\n\n if (!reverse) {\n ({\n from: fromField,\n to: toField\n } = field.throughFields);\n } else {\n ({\n from: toField,\n to: fromField\n } = field.throughFields);\n }\n\n const currentIds = ThroughModel.filter(through => through[fromField] === this[ThisModel.idAttribute]).toRefArray().map(ref => ref[toField]);\n const diffActions = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"arrayDiffActions\"])(currentIds, normalizedNewIds);\n\n if (diffActions) {\n const {\n delete: idsToDelete,\n add: idsToAdd\n } = diffActions;\n\n if (idsToDelete.length > 0) {\n this[field.as || name].remove(...idsToDelete);\n }\n\n if (idsToAdd.length > 0) {\n this[field.as || name].add(...idsToAdd);\n }\n }\n });\n }\n /**\n * @return {undefined}\n * @private\n */\n ;\n\n _proto._onDelete = function _onDelete() {\n const {\n virtualFields\n } = this.getClass(); // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (const key in virtualFields) {\n const field = virtualFields[key];\n\n if (field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // Delete any many-to-many rows the entity is included in.\n const descriptorKey = field.as || key;\n this[descriptorKey].clear();\n } else if (field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n const relatedQs = this[key];\n\n if (relatedQs.exists()) {\n relatedQs.update({\n [field.relatedName]: null\n });\n }\n } else if (field instanceof _fields_OneToOne__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n // Set null to any foreign keys or one to ones pointed to\n // this instance.\n if (this[key] !== null) {\n this[key][field.relatedName] = null;\n }\n }\n }\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n * @deprecated Please use {@link Model.idExists} instead.\n */\n ;\n\n Model.hasId = function hasId(id) {\n console.warn(\"`Model.hasId` has been deprecated. Please use `Model.idExists` instead.\");\n return this.idExists(id);\n }\n /**\n * @deprecated See the 0.9 migration guide on the GitHub repo.\n * @throws {Error} Due to deprecation.\n */\n ;\n\n _proto.getNextState = function getNextState() {\n throw new Error(\"`Model.prototype.getNextState` has been removed. See the 0.9 \" + \"migration guide on the GitHub repo.\");\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Model, [{\n key: \"ref\",\n get: function () {\n const ThisModel = this.getClass(); // eslint-disable-next-line no-underscore-dangle\n\n return ThisModel._findDatabaseRows({\n [ThisModel.idAttribute]: this.getId()\n })[0];\n }\n }], [{\n key: \"idAttribute\",\n get: function () {\n if (typeof this._session === \"undefined\") {\n throw new Error([`Tried to get the ${this.modelName} model's id attribute without a session. `, \"Create a session using `session = orm.session()` and access \", `\\`session[\"${this.modelName}\"].idAttribute\\` instead.`].join(\"\"));\n }\n\n return this.session.db.describe(this.modelName).idAttribute;\n }\n }, {\n key: \"session\",\n get: function () {\n return this._session;\n }\n }, {\n key: \"query\",\n get: function () {\n return this.getQuerySet();\n }\n }]);\n\n return Model;\n}();\n\nModel.fields = {\n id: Object(_fields__WEBPACK_IMPORTED_MODULE_3__[\"attr\"])()\n};\nModel.virtualFields = {};\nModel.querySetClass = _QuerySet__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (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gICAgICAgICAgIGNvbnN0IHZhbHVlID0gdXNlclByb3BzW2tleV07XG4gICAgICAgICAgICAgICAgICAgIHByb3BzW2tleV0gPSBub3JtYWxpemVFbnRpdHkodmFsdWUpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZmllbGQuZ2V0RGVmYXVsdCkge1xuICAgICAgICAgICAgICAgICAgICBwcm9wc1trZXldID0gZmllbGQuZ2V0RGVmYXVsdCh1c2VyUHJvcHMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAodmFsdWVQYXNzZWQpIHtcbiAgICAgICAgICAgICAgICAvLyBTYXZlIGZvciBsYXRlciBwcm9jZXNzaW5nXG4gICAgICAgICAgICAgICAgbTJtUmVsYXRpb25zW2tleV0gPSB1c2VyUHJvcHNba2V5XTtcblxuICAgICAgICAgICAgICAgIGlmICghZmllbGQuYXMpIHtcbiAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAqIFRoZSByZWxhdGlvbnNoaXAgZG9lcyBub3QgaGF2ZSBhbiBhY2Nlc3NvclxuICAgICAgICAgICAgICAgICAgICAgKiBEaXNjYXJkIHRoZSB2YWx1ZSBmcm9tIHByb3BzIGFzIHRoZSBmaWVsZCB3aWxsIGJlIHBvcHVsYXRlZCBsYXRlciB3aXRoIGluc3RhbmNlc1xuICAgICAgICAgICAgICAgICAgICAgKiBmcm9tIHRoZSB0YXJnZXQgbW9kZWxzIHdoZW4gcmVmcmVzaGluZyB0aGUgTTJNIHJlbGF0aW9ucy5cbiAgICAgICAgICAgICAgICAgICAgICogSWYgdGhlIHJlbGF0aW9uc2hpcCBkb2VzIGhhdmUgYW4gYWNjZXNzb3IgKGBhc2ApIGZpZWxkIHRoZW4gd2UgZG8gd2FudCB0byBrZWVwIHRoaXNcbiAgICAgICAgICAgICAgICAgICAgICogb3JpZ2luYWwgdmFsdWUgaW4gdGhlIHByb3BzIHRvIGV4cG9zZSB0aGUgcmF3IGxpc3Qgb2YgSURzIGZyb20gdGhlIGluc3RhbmNlLlxuICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlIHByb3BzW2tleV07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICAvLyBhZGQgYmFja3dhcmQgbWFueS1tYW55IGlmIHJlcXVpcmVkXG4gICAgICAgIGRlY2xhcmVkVmlydHVhbEZpZWxkTmFtZXMuZm9yRWFjaCgoa2V5KSA9PiB7XG4gICAgICAgICAgICBpZiAoIW0ybVJlbGF0aW9ucy5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgZmllbGQgPSB0aGlzLnZpcnR1YWxGaWVsZHNba2V5XTtcbiAgICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgICAgIHVzZXJQcm9wcy5oYXNPd25Qcm9wZXJ0eShrZXkpICYmXG4gICAgICAgICAgICAgICAgICAgIGZpZWxkIGluc3RhbmNlb2YgTWFueVRvTWFueVxuICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAvLyBJZiBhIHZhbHVlIGlzIHN1cHBsaWVkIGZvciBhIE1hbnlUb01hbnkgZmllbGQsXG4gICAgICAgICAgICAgICAgICAgIC8vIGRpc2NhcmQgdGhlbSBmcm9tIHByb3BzIGFuZCBzYXZlIGZvciBsYXRlciBwcm9jZXNzaW5nLlxuICAgICAgICAgICAgICAgICAgICBtMm1SZWxhdGlvbnNba2V5XSA9IHVzZXJQcm9wc1trZXldO1xuICAgICAgICAgICAgICAgICAgICBkZWxldGUgcHJvcHNba2V5XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IG5ld0VudHJ5ID0gdGhpcy5zZXNzaW9uLmFwcGx5VXBkYXRlKHtcbiAgICAgICAgICAgIGF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kaWNhdGluZyBpZiBlbnRpdHkgd2l0aCBgcHJvcHNgIGV4aXN0cyBpbiB0aGUgc3RhdGVcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIHN0YXRpYyBfZmluZERhdGFiYXNlUm93cyhsb29rdXBPYmopIHtcbiAgICAgICAgY29uc3QgcXVlcnlTcGVjID0ge1xuICAgICAgICAgICAgdGFibGU6IHRoaXMubW9kZWxOYW1lLFxuICAgICAgICB9O1xuICAgICAgICBpZiAobG9va3VwT2JqKSB7XG4gICAgICAgICAgICBxdWVyeVNwZWMuY2xhdXNlcyA9IFtcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIHR5cGU6IEZJTFRFUixcbiAgICAgICAgICAgICAgICAgICAgcGF5bG9hZDogbG9va3VwT2JqLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBdO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLnNlc3Npb24ucXVlcnkocXVlcnlTcGVjKS5yb3dzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgYSBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhlIHtAbGluayBNb2RlbH0gaW5zdGFuY2UuXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtzdHJpbmd9IEEgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMge0BsaW5rIE1vZGVsfSBpbnN0YW5jZS5cbiAgICAgKi9cbiAgICB0b1N0cmluZygpIHtcbiAgICAgICAgY29uc3QgVGhpc01vZGVsID0gdGhpcy5nZXRDbGFzcygpO1xuICAgICAgICBjb25zdCBjbGFzc05hbWUgPSBUaGlzTW9kZWwubW9kZWxOYW1lO1xuICAgICAgICBjb25zdCBmaWVsZE5hbWVzID0gT2JqZWN0LmtleXMoVGhpc01vZGVsLmZpZWxkcyk7XG4gICAgICAgIGNvbnN0IGZpZWxkcyA9IGZpZWxkTmFtZXNcbiAgICAgICA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Bjb25zdCBtZXJnZU9iaiA9IHsgLi4udXNlck1lcmdlT2JqIH07XG5cbiAgICAgICAgY29uc3QgeyBmaWVsZHMsIHZpcnR1YWxGaWVsZHMgfSA9IFRoaXNNb2RlbDtcblxuICAgICAgICBjb25zdCBtMm1SZWxhdGlvbnMgPSB7fTtcblxuICAgICAgICAvLyBJZiBhbiBhcnJheSBvZiBlbnRpdGllcyBvciBpZCdzIGlzIHN1cHBsaWVkIGZvciBhXG4gICAgICAgIC8vIG1hbnktdG8tbWFueSByZWxhdGVkIGZpZWxkLCBjbGVhciB0aGUgb2xkIHJlbGF0aW9uc1xuICAgICAgICAvLyBhbmQgYWRkIHRoZSBuZXcgb25lcy5cbiAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIGd1YXJkLWZvci1pbiwgbm8tcmVzdHJpY3RlZC1zeW50YXhcbiAgICAgICAgZm9yIChjb25zdCBtZXJnZUtleSBpbiBtZXJnZU9iaikge1xuICAgICAgICAgICAgY29uc3QgaXNSZWFsRmllbGQgPSBmaWVsZHMuaGFzT3duUHJvcGVydHkobWVyZ2VLZXkpO1xuXG4gICAgICAgICAgICBpZiAoaXNSZWFsRmllbGQpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBmaWVsZCA9IGZpZWxkc1ttZXJnZUtleV07XG5cbiAgICAgICAgICAgICAgICBpZiAoZmllbGQgaW5zdGFuY2VvZiBGb3JlaWduS2V5IHx8IGZpZWxkIGluc3RhbmNlb2YgT25lVG9PbmUpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gdXBkYXRlIG9uZS1vbmUvZmsgcmVsYXRpb25zXG4gICAgICAgICAgICAgICAgICAgIG1lcmdlT2JqW21lcmdlS2V5XSA9IG5vcm1hbGl6ZUVudGl0eShtZXJnZU9ialttZXJnZUtleV0pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZmllbGQgaW5zdGFuY2VvZiBNYW55VG9NYW55KSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGZpZWxkIGlzIGZvcndhcmQgcmVsYXRpb25cbiAgICAgICAgICAgICAgICAgICAgbTJtUmVsYXRpb25zW21lcmdlS2V5XSA9IG1lcmdlT2JqW21lcmdlS2V5XTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoIWZpZWxkLmFzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIFRoZSByZWxhdGlvbnNoaXAgZG9lcyBub3QgaGF2ZSBhbiBhY2Nlc3NvclxuICAgICAgICAgICAgICAgICAgICAgICAgICogRGlzY2FyZCB0aGUgdmFsdWUgZnJvbSBwcm9wcyBhcyB0aGUgZmllbGQgd2lsbCBiZSBwb3B1bGF0ZWQgbGF0ZXIgd2l0aCBpbnN0YW5jZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIGZyb20gdGhlIHRhcmdldCBtb2RlbHMgd2hlbiByZWZyZXNoaW5nIHRoZSBNMk0gcmVsYXRpb25zLlxuICAgICAgICAgICAgICAgICAgICAgICAgICogSWYgdGhlIHJlbGF0aW9uc2hpcCBkb2VzIGhhdmUgYW4gYWNjZXNzb3IgKGBhc2ApIGZpZWxkIHRoZW4gd2UgZG8gd2FudCB0byBrZWVwIHRoaXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIG9yaWdpbmFsIHZhbHVlIGluIHRoZSBwcm9wcyB0byBleHBvc2UgdGhlIHJhdyBsaXN0IG9mIElEcyBmcm9tIHRoZSBpbnN0YW5jZS5cbiAgICAgICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlIG1lcmdlT2JqW21lcmdlS2V5XTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAodmlydHVhbEZpZWxkcy5oYXNPd25Qcm9wZXJ0eShtZXJnZUtleSkpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBmaWVsZCA9IHZpcnR1YWxGaWVsZHNbbWVyZ2VLZXldO1xuICAgICAgICAgICAgICAgIGlmIChmaWVsZCBpbnN0YW5jZW9mIE1hbnlUb01hbnkpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gZmllbGQgaXMgYmFja3dhcmQgcmVsYXRpb25cbiAgICAgICAgICAgICAgICAgICAgbTJtUmVsYXRpb25zW21lcmdlS2V5XSA9IG1lcmdlT2JqW21lcmdlS2V5XTtcbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlIG1lcmdlT2JqW21lcmdlS2V5XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBtZXJnZWRGaWVsZHMgPSB7XG4gICAgICAgICAgICAuLi50aGlzLl9maWVsZHMsXG4gICAgICAgICAgICAuLi5tZXJnZU9iaixcbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCB1cGRhdGVkTW9kZWwgPSBuZXcgVGhpc01vZGVsKG1lcmdlZEZpZWxkcyk7XG4gICAgICAgIC8vIG9ubHkgdXBkYXRlIGZpZWxkcyBpZiB0aGV5IGhhdmUgY2hhbmdlZCAocmVmZXJlbnRpYWxseSlcbiAgICAgICAgaWYgKCF0aGlzLmVxdWFscyh1cGRhdGVkTW9kZWwpKSB7XG4gICAgICAgICAgICB0aGlzLl9pbml0RmllbGRzKG1lcmdlZEZpZWxkcyk7XG4gICAgICAgICAgICBUaGlzTW9kZWwuc2Vzc2lvbi5hcHBseVVwZGF0ZSh7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiBVUERBVEUsXG4gICAgICAgICAgICAgICAgcXVlcnk6IGdldEJ5SWRRdWVyeSh0aGlzKSxcbiAgICAgICAgICAgICAgICBwYXlsb2FkOiBtZXJnZU9iaixcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gdXBkYXRlIHZpcnR1YWwgZmllbGRzXG4gICAgICAgIHRoa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gICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICh7IGZyb206IHRvRmllbGQsIHRvOiBmcm9tRmllbGQgfSA9IGZpZWxkLnRocm91Z2hGaWVsZHMpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCBjdXJyZW50SWRzID0gVGhyb3VnaE1vZGVsLmZpbHRlcihcbiAgICAgICAgICAgICAgICAodGhyb3VnaCkgPT4gdGhyb3VnaFtmcm9tRmllbGRdID09PSB0aGlzW1RoaXNNb2RlbC5pZEF0dHJpYnV0ZV1cbiAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAudG9SZWZBcnJheSgpXG4gICAgICAgICAgICAgICAgLm1hcCgocmVmKSA9PiByZWZbdG9GaWVsZF0pO1xuXG4gICAgICAgICAgICBjb25zdCBkaWZmQWN0aW9ucyA9IGFycmF5RGlmZkFjdGlvbnMoY3VycmVudElkcywgbm9ybWFsaXplZE5ld0lkcyk7XG5cbiAgICAgICAgICAgIGlmIChkaWZmQWN0aW9ucykge1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgZGVsZXRlOiBpZHNUb0RlbGV0ZSwgYWRkOiBpZHNUb0FkZCB9ID0gZGlmZkFjdGlvbnM7XG4gICAgICAgICAgICAgICAgaWYgKGlkc1RvRGVsZXRlLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpc1tmaWVsZC5hcyB8fCBuYW1lXS5yZW1vdmUoLi4uaWRzVG9EZWxldGUpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChpZHNUb0FkZC5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXNbZmllbGQuYXMgfHwgbmFtZV0uYWRkKC4uLmlkc1RvQWRkKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEByZXR1cm4ge3VuZGVmaW5lZH1cbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIF9vbkRlbGV0ZSgpIHtcbiAgICAgICAgY29uc3QgeyB2aXJ0dWFsRmllbGRzIH0gPSB0aGlzLmdldENsYXNzKCk7XG4gICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBndWFyZC1mb3ItaW4sIG5vLXJlc3RyaWN0ZWQtc3ludGF4XG4gICAgICAgIGZvciAoY29uc3Qga2V5IGluIHZpcnR1YWxGaWVsZHMpIHtcbiAgICAgICAgICAgIGNvbnN0IGZpZWxkID0gdmlydHVhbEZpZWxkc1trZXldO1xuICAgICAgICAgICAgaWYgKGZpZWxkIGluc3RhbmNlb2YgTWFueVRvTWFueSkge1xuICAgICAgICAgICAgICAgIC8vIERlbGV0ZSBhbnkgbWFueS10by1tYW55IHJvd3MgdGhlIGVudGl0eSBpcyBpbmNsdWRlZCBpbi5cbiAgICAgICAgICAgICAgICBjb25zdCBkZXNjcmlwdG9yS2V5ID0gZmllbGQuYXMgfHwga2V5O1xuICAgICAgICAgICAgICAgIHRoaXNbZGVzY3JpcHRvcktleV0uY2xlYXIoKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoZmllbGQgaW5zdGFuY2VvZiBGb3JlaWduS2V5KSB7XG4gICAgICAgICAgICAgICAgY29uc3QgcmVsYXRlZFFzID0gdGhpc1trZXldO1xuICAgICAgICAgICAgICAgIGlmIChyZWxhdGVkUXMuZXhpc3RzKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVsYXRlZFFzLnVwZGF0ZSh7IFtmaWVsZC5yZWxhdGVkTmFtZV06IG51bGwgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmIChmaWVsZCBpbnN0YW5jZW9mIE9uZVRvT25lKSB7XG4gICAgICAgICAgICAgICAgLy8gU2V0IG51bGwgdG8gYW55IGZvcmVpZ24ga2V5cyBvciBvbmUgdG8gb25lcyBwb2ludGVkI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ZWUgdGhlIDAuOSBtaWdyYXRpb24gZ3VpZGUgb24gdGhlIEdpdEh1YiByZXBvLlxuICAgICAqIEB0aHJvd3Mge0Vycm9yfSBEdWUgdG8gZGVwcmVjYXRpb24uXG4gICAgICovXG4gICAgZ2V0TmV4dFN0YXRlKCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICBcImBNb2RlbC5wcm90b3R5cGUuZ2V0TmV4dFN0YXRlYCBoYXMgYmVlbiByZW1vdmVkLiBTZWUgdGhlIDAuOSBcIiArXG4gICAgICAgICAgICAgICAgXCJtaWdyYXRpb24gZ3VpZGUgb24gdGhlIEdpdEh1YiByZXBvLlwiXG4gICAgICAgICk7XG4gICAgfVxufTtcblxuTW9kZWwuZmllbGRzID0ge1xuICAgIGlkOiBhdHRyKCksXG59O1xuTW9kZWwudmlydHVhbEZpZWxkcyA9IHt9O1xuTW9kZWwucXVlcnlTZXRDbGFzcyA9IFF1ZXJ5U2V0O1xuXG5leHBvcnQgZGVmYXVsdCBNb2RlbDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Model.js\n"); + + /***/ }), + +@@ -4462,7 +4484,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DeprecatedSchema\", function() { return DeprecatedSchema; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ORM\", function() { return ORM; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Session__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Session */ \"./src/Session.js\");\n/* harmony import */ var _Model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Model */ \"./src/Model.js\");\n/* harmony import */ var _db__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./db */ \"./src/db/index.js\");\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fields */ \"./src/fields/index.js\");\n/* harmony import */ var _fields_Field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fields/Field */ \"./src/fields/Field.js\");\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./selectors */ \"./src/selectors/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n\n\n/* eslint-disable max-classes-per-file */\n\n\n\n\n\n\n\n\n\nconst ORM_DEFAULTS = {\n createDatabase: _db__WEBPACK_IMPORTED_MODULE_4__[\"createDatabase\"]\n};\nconst RESERVED_TABLE_OPTIONS = [\"indexes\", \"meta\"];\n\nconst isReservedTableOption = word => RESERVED_TABLE_OPTIONS.includes(word);\n/**\n * ORM - the Object Relational Mapper.\n *\n * Use instances of this class to:\n *\n * - Register your {@link Model} classes using {@link ORM#register}\n * - Get the empty state for the underlying database with {@link ORM#getEmptyState}\n * - Start an immutable database session with {@link ORM#session}\n * - Start a mutating database session with {@link ORM#mutableSession}\n *\n * Internally, this class handles generating a schema specification from models\n * to the database.\n */\n\n\nlet ORM = /*#__PURE__*/function () {\n /**\n * Creates a new ORM instance.\n *\n * @param {Object} [opts]\n * @param {Function} [opts.stateSelector] - function that given a Redux state tree\n * will return the ORM state's subtree,\n * e.g. `state => state.orm`\n * (necessary if you want to use selectors)\n * @param {Function} [opts.createDatabase] - function that creates a database\n */\n function ORM(opts) {\n const {\n createDatabase\n } = { ...ORM_DEFAULTS,\n ...(opts || {})\n };\n this.createDatabase = createDatabase;\n this.registry = [];\n this.implicitThroughModels = [];\n this.installedFields = {};\n this.stateSelector = opts ? opts.stateSelector : null;\n }\n /**\n * Registers a {@link Model} class to the ORM.\n *\n * If the model has declared any ManyToMany fields, their\n * through models will be generated and registered with\n * this call, unless a custom through model has been specified.\n *\n * @param {...Model} models - a {@link Model} class to register\n * @return {undefined}\n */\n\n\n var _proto = ORM.prototype;\n\n _proto.register = function register(...models) {\n models.forEach(model => {\n if (model.modelName === undefined) {\n throw new Error(\"A model was passed that doesn't have a modelName set\");\n }\n\n model.invalidateClassCache();\n this.registerManyToManyModelsFor(model);\n this.registry.push(model);\n Object.defineProperty(this, model.modelName, {\n get: () => {\n // make sure virtualFields are set up\n this._setupModelPrototypes(this.registry);\n\n return Object(_selectors__WEBPACK_IMPORTED_MODULE_9__[\"createModelSelectorSpec\"])({\n model,\n orm: this\n });\n }\n });\n });\n };\n\n _proto.registerManyToManyModelsFor = function registerManyToManyModelsFor(model) {\n const {\n fields\n } = model;\n const thisModelName = model.modelName;\n Object.entries(fields).forEach(([fieldName, fieldInstance]) => {\n if (!(fieldInstance instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_8__[\"default\"])) {\n return;\n }\n\n let toModelName;\n\n if (fieldInstance.toModelName === \"this\") {\n toModelName = thisModelName;\n } else {\n toModelName = fieldInstance.toModelName; // eslint-disable-line prefer-destructuring\n }\n\n const selfReferencing = thisModelName === toModelName;\n const fromFieldName = Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"m2mFromFieldName\"])(thisModelName);\n const toFieldName = Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"m2mToFieldName\"])(toModelName);\n\n if (fieldInstance.through) {\n if (selfReferencing && !fieldInstance.throughFields) {\n throw new Error(\"Self-referencing many-to-many relationship at \" + `\"${thisModelName}.${fieldName}\" using custom ` + `model \"${fieldInstance.through}\" has no ` + \"throughFields key. Cannot determine which \" + \"fields reference the instances partaking \" + \"in the relationship.\");\n }\n } else {\n const Through = /*#__PURE__*/function (_Model) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ThroughModel, _Model);\n\n function ThroughModel() {\n return _Model.apply(this, arguments) || this;\n }\n\n return ThroughModel;\n }(_Model__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n\n Through.modelName = Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"m2mName\"])(thisModelName, fieldName);\n\n const PlainForeignKey = /*#__PURE__*/function (_ForeignKey) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(PlainForeignKey, _ForeignKey);\n\n function PlainForeignKey() {\n return _ForeignKey.apply(this, arguments) || this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PlainForeignKey, [{\n key: \"installsBackwardsVirtualField\",\n get: function () {\n return false;\n }\n }, {\n key: \"installsBackwardsDescriptor\",\n get: function () {\n return false;\n }\n }]);\n\n return PlainForeignKey;\n }(_fields_ForeignKey__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n const ForeignKeyClass = selfReferencing ? PlainForeignKey : _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\n Through.fields = {\n id: Object(_fields__WEBPACK_IMPORTED_MODULE_5__[\"attr\"])(),\n [fromFieldName]: new ForeignKeyClass(thisModelName),\n [toFieldName]: new ForeignKeyClass(toModelName)\n };\n Through.invalidateClassCache();\n this.implicitThroughModels.push(Through);\n }\n });\n }\n /**\n * Gets a {@link Model} class by its name from the registry.\n * @param {string} modelName - the name of the {@link Model} class to get\n * @throws If {@link Model} class is not found.\n * @return {Model} the {@link Model} class, if found\n */\n ;\n\n _proto.get = function get(modelName) {\n const allModels = this.registry.concat(this.implicitThroughModels);\n const found = Object.values(allModels).find(model => model.modelName === modelName);\n\n if (typeof found === \"undefined\") {\n throw new Error(`Did not find model ${modelName} from registry.`);\n }\n\n return found;\n };\n\n _proto.getModelClasses = function getModelClasses() {\n this._setupModelPrototypes(this.registry);\n\n this._setupModelPrototypes(this.implicitThroughModels);\n\n return this.registry.concat(this.implicitThroughModels);\n };\n\n _proto.generateSchemaSpec = function generateSchemaSpec() {\n const models = this.getModelClasses();\n const tables = models.reduce((spec, modelClass) => {\n const tableName = modelClass.modelName;\n const tableSpec = modelClass.tableOptions();\n Object.keys(tableSpec).filter(isReservedTableOption).forEach(key => {\n throw new Error(`Reserved keyword \\`${key}\\` used in ${tableName}.options.`);\n });\n spec[tableName] = {\n fields: { ...modelClass.fields\n },\n ...tableSpec\n };\n return spec;\n }, {});\n return {\n tables\n };\n };\n\n _proto.getDatabase = function getDatabase() {\n if (!this.db) {\n this.db = this.createDatabase(this.generateSchemaSpec());\n }\n\n return this.db;\n }\n /**\n * Returns the empty database state.\n * @return {Object} the empty state\n */\n ;\n\n _proto.getEmptyState = function getEmptyState() {\n return this.getDatabase().getEmptyState();\n }\n /**\n * Begins an immutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n ;\n\n _proto.session = function session(state) {\n return new _Session__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this, this.getDatabase(), state);\n }\n /**\n * Begins a mutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n ;\n\n _proto.mutableSession = function mutableSession(state) {\n return new _Session__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this, this.getDatabase(), state, true);\n }\n /**\n * @private\n */\n ;\n\n _proto._setupModelPrototypes = function _setupModelPrototypes(models) {\n models.filter(model => !model.isSetUp).forEach(model => {\n const {\n fields,\n modelName,\n querySetClass\n } = model;\n Object.entries(fields).forEach(([fieldName, field]) => {\n if (!(field instanceof _fields_Field__WEBPACK_IMPORTED_MODULE_6__[\"default\"])) {\n throw new Error(`${modelName}.${fieldName} is of type \"${typeof field}\" ` + \"but must be an instance of Field. Please use the \" + \"`attr`, `fk`, `oneToOne` and `many` \" + \"functions to define fields.\");\n }\n\n if (!this._isFieldInstalled(modelName, fieldName)) {\n this._installField(field, fieldName, model);\n\n this._setFieldInstalled(modelName, fieldName);\n }\n });\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"attachQuerySetMethods\"])(model, querySetClass);\n model.isSetUp = true;\n });\n }\n /**\n * @private\n */\n ;\n\n _proto._isFieldInstalled = function _isFieldInstalled(modelName, fieldName) {\n return this.installedFields.hasOwnProperty(modelName) ? !!this.installedFields[modelName][fieldName] : false;\n }\n /**\n * @private\n */\n ;\n\n _proto._setFieldInstalled = function _setFieldInstalled(modelName, fieldName) {\n if (!this.installedFields.hasOwnProperty(modelName)) {\n this.installedFields[modelName] = {};\n }\n\n this.installedFields[modelName][fieldName] = true;\n }\n /**\n * Installs a field on a model and its related models if necessary.\n * @private\n */\n ;\n\n _proto._installField = function _installField(field, fieldName, model) {\n const FieldInstaller = field.installerClass;\n new FieldInstaller({\n field,\n fieldName,\n model,\n orm: this\n }).run();\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Use {@link ORM#mutableSession} instead.\n */\n ;\n\n _proto.withMutations = function withMutations(state) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"warnDeprecated\"])(\"`ORM.prototype.withMutations` has been deprecated. \" + \"Use `ORM.prototype.mutableSession` instead.\");\n return this.mutableSession(state);\n }\n /**\n * @deprecated Use {@link ORM#session} instead.\n */\n ;\n\n _proto.from = function from(state) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"warnDeprecated\"])(\"`ORM.prototype.from` has been deprecated. \" + \"Use `ORM.prototype.session` instead.\");\n return this.session(state);\n }\n /**\n * @deprecated Use {@link ORM#getEmptyState} instead.\n */\n ;\n\n _proto.getDefaultState = function getDefaultState() {\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"warnDeprecated\"])(\"`ORM.prototype.getDefaultState` has been deprecated. Use \" + \"`ORM.prototype.getEmptyState` instead.\");\n return this.getEmptyState();\n }\n /**\n * @deprecated Define a Model class instead.\n */\n ;\n\n _proto.define = function define() {\n throw new Error(\"`ORM.prototype.define` has been removed. Please define a Model class.\");\n };\n\n return ORM;\n}();\n\nfunction DeprecatedSchema() {\n throw new Error(\"Schema has been renamed to ORM. Please import ORM instead of Schema \" + \"from Redux-ORM.\");\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ORM);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9PUk0uanM/YWE0ZSJdLCJuYW1lcyI6WyJPUk1fREVGQVVMVFMiLCJjcmVhdGVEYXRhYmFzZSIsImRlZmF1bHRDcmVhdGVEYXRhYmFzZSIsIlJFU0VSVkVEX1RBQkxFX09QVElPTlMiLCJpc1Jlc2VydmVkVGFibGVPcHRpb24iLCJ3b3JkIiwiaW5jbHVkZXMiLCJPUk0iLCJvcHRzIiwicmVnaXN0cnkiLCJpbXBsaWNpdFRocm91Z2hNb2RlbHMiLCJpbnN0YWxsZWRGaWVsZHMiL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xuICAgICAqIEByZXR1cm4ge3VuZGVmaW5lZH1cbiAgICAgKi9cbiAgICByZWdpc3RlciguLi5tb2RlbHMpIHtcbiAgICAgICAgbW9kZWxzLmZvckVhY2gobW9kZWwgPT4ge1xuICAgICAgICAgICAgaWYgKG1vZGVsLm1vZGVsTmFtZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgICAgICAgICBcIkEgbW9kZWwgd2FzIHBhc3NlZCB0aGF0IGRvZXNuJ3QgaGF2ZSBhIG1vZGVsTmFtZSBzZXRcIlxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIG1vZGVsLmludmFsaWRhdGVDbGFzc0NhY2hlKCk7XG5cbiAgICAgICAgICAgIHRoaXMucmVnaXN0ZXJNYW55VG9NYW55TW9kZWxzRm9yKG1vZGVsKTtcbiAgICAgICAgICAgIHRoaXMucmVnaXN0cnkucHVzaChtb2RlbCk7XG5cbiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0aGlzLCBtb2RlbC5tb2RlbE5hbWUsIHtcbiAgICAgICAgICAgICAgICBnZXQ6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgLy8gbWFrZSBzdXJlIHZpcnR1YWxGaWVsZHMgYXJlIHNldCB1cFxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9zZXR1cE1vZGVsUHJvdG90eXBlcyh0aGlzLnJlZ2lzdHJ5KTtcblxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gY3JlYXRlTW9kZWxTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICBvcm06IHRoaXMsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcmVnaXN0ZXJNYW55VG9NYW55TW9kZWxzRm9yKG1vZGVsKSB7XG4gICAgICAgIGNvbnN0IHsgZmllbGRzIH0gPSBtb2RlbDtcbiAgICAgICAgY29uc3QgdGhpc01vZGVsTmFtZSA9IG1vZGVsLm1vZGVsTmFtZTtcblxuICAgICAgICBPYmplY3QuZW50cmllcyhmaWVsZHMpLmZvckVhY2goKFtmaWVsZE5hbWUsIGZpZWxkSW5zdGFuY2VdKSA9PiB7XG4gICAgICAgICAgICBpZiAoIShmaWVsZEluc3RhbmNlIGluc3RhbmNlb2YgTWFueVRvTWFueSkpIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGxldCB0b01vZGVsTmFtZTtcbiAgICAgICAgICAgIGlmIChmaWVsZEluc3RhbmNlLnRvTW9kZWxOYW1lID09PSBcInRoaXNcIikge1xuICAgICAgICAgICAgICAgIHRvTW9kZWxOYW1lID0gdGhpc01vZGVsTmFtZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdG9Nb2RlbE5hbWUgPSBmaWVsZEluc3RhbmNlLnRvTW9kZWxOYW1lOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIHByZWZlci1kZXN0cnVjdHVyaW5nXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnN0IHNlbGZSZWZlcmVuY2luZyA9IHRoaXNNb2RlbE5hbWUgPT09IHRvTW9kZWxOYW1lO1xuICAgICAgICAgICAgY29uc3QgZnJvbUZpZWxkTmFtZSA9IG0ybUZyb21GaWVsZE5hbWUodGhpc01vZGVsTmFtZSk7XG4gICAgICAgICAgICBjb25zdCB0b0ZpZWxkTmFtZSA9IG0ybVRvRmllbGROYW1lKHRvTW9kZWxOYW1lKTtcblxuICAgICAgICAgICAgaWYgKGZpZWxkSW5zdGFuY2UudGhyb3VnaCkge1xuICAgICAgICAgICAgICAgIGlmIChzZWxmUmVmZXJlbmNpbmcgJiYgIWZpZWxkSW5zdGFuY2UudGhyb3VnaEZpZWxkcykge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICBcIlNlbGYtcmVmZXJlbmNpbmcgbWFueS10by1tYW55IHJlbGF0aW9uc2hpcCBhdCBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYFwiJHt0aGlzTW9kZWxOYW1lfS4ke2ZpZWxkTmFtZX1cIiB1c2luZyBjdXN0b20gYCArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYG1vZGVsIFwiJHtmaWVsZEluc3RhbmNlLnRocm91Z2h9XCIgaGFzIG5vIGAgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwidGhyb3VnaEZpZWxkcyBrZXkuIENhbm5vdCBkZXRlcm1pbmUgd2hpY2ggXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZmllbGRzIHJlZmVyZW5jZSB0aGUgaW5zdGFuY2VzIHBhcnRha2luZyBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJpbiB0aGUgcmVsYXRpb25zaGlwLlwiXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb25zdCBUaHJvdWdoID0gY2xhc3MgVGhyb3VnaE1vZGVsIGV4dGVuZHMgTW9kZWwge307XG5cbiAgICAgICAgICAgICAgICBUaHJvdWdoLm1vZGVsTmFtZSA9IG0ybU5hbWUodGhpc01vZGVsTmFtZSwgZmllbGROYW1lKTtcblxuICAgICAgICAgICAgICAgIGNvbnN0IFBsYWluRm9yZWlnbktleSA9IGNsYXNzIFBsYWluRm9yZWlnbktleSBleHRlbmRzIEZvcmVpZ25LZXkge1xuICAgICAgICAgICAgICAgICAgICBnZXQgaW5zdGFsbHNCYWNrd2FyZHNWaXJ0dWFsRmllbGQoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBnZXQgaW5zdGFsbHNCYWNrd2FyZHNEZXNjcmlwdG9yKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICBjb25zdCBGb3JlaWduS2V5Q2xhc3MgPSBzZWxmUmVmZXJlbmNpbmdcbiAgICAgICAgICAgICAgICAgICAgPyBQbGFpbkZvcmVpZ25LZXlcbiAgICAgICAgICAgICAgICAgICAgOiBGb3JlaWduS2V5O1xuICAgICAgICAgICAgICAgIFRocm91Z2guZmllbGRzID0ge1xuICAgICAgICAgICAgICAgICAgICBpZDogYXR0cigpLFxuICAgICAgICAgICAgICAgICAgICBbZnJvbUZpZWxkTmFtZV06IG5ldyBGb3JlaWduS2V5Q2xhc3ModGhpc01vZGVsTmFtZSksXG4gICAgICAgICAgICAgICAgICAgIFt0b0ZpZWxkTmFtZV06IG5ldyBGb3JlaWduS2V5Q2xhc3ModG9Nb2RlbE5hbWUpLFxuICAgICAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgICAgICBUaHJvdWdoLmludmFsaWRhdGVDbGFzc0NhY2hlKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5pbXBsaWNpdFRocm91Z2hNb2RlbHMucHVzaChUaHJvdWdoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogR2V0cyBhIHtAbGluayBNb2RlbH0gY2xhc3MgYnkgaXRzIG5hbWUgZnJvbSB0aGUgcmVnaXN0cnkuXG4gICAgICogQHBhcmFtICB7c3RyaW5nfSBtb2RlbE5hbWUgLSB0aGUgbmFtZSBvZiB0aGUge0BsaW5rIE1vZGVsfSB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N0IHRhYmxlcyA9IG1vZGVscy5yZWR1Y2UoKHNwZWMsIG1vZGVsQ2xhc3MpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHRhYmxlTmFtZSA9IG1vZGVsQ2xhc3MubW9kZWxOYW1lO1xuICAgICAgICAgICAgY29uc3QgdGFibGVTcGVjID0gbW9kZWxDbGFzcy50YWJsZU9wdGlvbnMoKTtcbiAgICAgICAgICAgIE9iamVjdC5rZXlzKHRhYmxlU3BlYylcbiAgICAgICAgICAgICAgICAuZmlsdGVyKGlzUmVzZXJ2ZWRUYWJsZU9wdGlvbilcbiAgICAgICAgICAgICAgICAuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICBgUmVzZXJ2ZWQga2V5d29yZCBcXGAke2tleX1cXGAgdXNlZCBpbiAke3RhYmxlTmFtZX0ub3B0aW9ucy5gXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBzcGVjW3RhYmxlTmFtZV0gPSB7XG4gICAgICAgICAgICAgICAgZmllbGRzOiB7IC4uLm1vZGVsQ2xhc3MuZmllbGRzIH0sXG4gICAgICAgICAgICAgICAgLi4udGFibGVTcGVjLFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIHJldHVybiBzcGVjO1xuICAgICAgICB9LCB7fSk7XG4gICAgICAgIHJldHVybiB7IHRhYmxlcyB9O1xuICAgIH1cblxuICAgIGdldERhdGFiYXNlKCkge1xuICAgICAgICBpZiAoIXRoaXMuZGIpIHtcbiAgICAgICAgICAgIHRoaXMuZGIgPSB0aGlzLmNyZWF0ZURhdGFiYXNlKHRoaXMuZ2VuZXJhdGVTY2hlbWFTcGVjKCkpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLmRiO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGVt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gICAgbW9kZWxzXG4gICAgICAgICAgICAuZmlsdGVyKG1vZGVsID0+ICFtb2RlbC5pc1NldFVwKVxuICAgICAgICAgICAgLmZvckVhY2gobW9kZWwgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgZmllbGRzLCBtb2RlbE5hbWUsIHF1ZXJ5U2V0Q2xhc3MgfSA9IG1vZGVsO1xuICAgICAgICAgICAgICAgIE9iamVjdC5lbnRyaWVzKGZpZWxkcykuZm9yRWFjaCgoW2ZpZWxkTmFtZSwgZmllbGRdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghKGZpZWxkIGluc3RhbmNlb2YgRmllbGQpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYCR7bW9kZWxOYW1lfS4ke2ZpZWxkTmFtZX0gaXMgb2YgdHlwZSBcIiR7dHlwZW9mIGZpZWxkfVwiIGAgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImJ1dCBtdXN0IGJlIGFuIGluc3RhbmNlIG9mIEZpZWxkLiBQbGVhc2UgdXNlIHRoZSBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYGF0dHJgLCBgZmtgLCBgb25lVG9PbmVgIGFuZCBgbWFueWAgXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImZ1bmN0aW9ucyB0byBkZWZpbmUgZmllbGRzLlwiXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5faXNGaWVsZEluc3RhbGxlZChtb2RlbE5hbWUsIGZpZWxkTmFtZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2luc3RhbGxGaWVsZChmaWVsZCwgZmllbGROYW1lLCBtb2RlbCk7XG4gICAgICAgICAgICAgICAgICAgICA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blxuZXhwb3J0IGRlZmF1bHQgT1JNO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/ORM.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DeprecatedSchema\", function() { return DeprecatedSchema; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ORM\", function() { return ORM; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Session__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Session */ \"./src/Session.js\");\n/* harmony import */ var _Model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Model */ \"./src/Model.js\");\n/* harmony import */ var _db__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./db */ \"./src/db/index.js\");\n/* harmony import */ var _fields__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fields */ \"./src/fields/index.js\");\n/* harmony import */ var _fields_Field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fields/Field */ \"./src/fields/Field.js\");\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./selectors */ \"./src/selectors/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n\n\n/* eslint-disable max-classes-per-file */\n\n\n\n\n\n\n\n\n\nconst ORM_DEFAULTS = {\n createDatabase: _db__WEBPACK_IMPORTED_MODULE_4__[\"createDatabase\"]\n};\nconst RESERVED_TABLE_OPTIONS = [\"indexes\", \"meta\"];\n\nconst isReservedTableOption = word => RESERVED_TABLE_OPTIONS.includes(word);\n/**\n * ORM - the Object Relational Mapper.\n *\n * Use instances of this class to:\n *\n * - Register your {@link Model} classes using {@link ORM#register}\n * - Get the empty state for the underlying database with {@link ORM#getEmptyState}\n * - Start an immutable database session with {@link ORM#session}\n * - Start a mutating database session with {@link ORM#mutableSession}\n *\n * Internally, this class handles generating a schema specification from models\n * to the database.\n */\n\n\nlet ORM = /*#__PURE__*/function () {\n /**\n * Creates a new ORM instance.\n *\n * @param {Object} [opts]\n * @param {Function} [opts.stateSelector] - function that given a Redux state tree\n * will return the ORM state's subtree,\n * e.g. `state => state.orm`\n * (necessary if you want to use selectors)\n * @param {Function} [opts.createDatabase] - function that creates a database\n */\n function ORM(opts) {\n const {\n createDatabase\n } = { ...ORM_DEFAULTS,\n ...(opts || {})\n };\n this.createDatabase = createDatabase;\n this.registry = [];\n this.implicitThroughModels = [];\n this.installedFields = {};\n this.stateSelector = opts ? opts.stateSelector : null;\n }\n /**\n * Registers a {@link Model} class to the ORM.\n *\n * If the model has declared any ManyToMany fields, their\n * through models will be generated and registered with\n * this call, unless a custom through model has been specified.\n *\n * @param {...Model} models - a {@link Model} class to register\n * @return {undefined}\n */\n\n\n var _proto = ORM.prototype;\n\n _proto.register = function register(...models) {\n models.forEach(model => {\n if (model.modelName === undefined) {\n throw new Error(\"A model was passed that doesn't have a modelName set\");\n }\n\n model.invalidateClassCache();\n this.registerManyToManyModelsFor(model);\n this.registry.push(model);\n Object.defineProperty(this, model.modelName, {\n get: () => {\n // make sure virtualFields are set up\n this._setupModelPrototypes(this.registry);\n\n return Object(_selectors__WEBPACK_IMPORTED_MODULE_9__[\"createModelSelectorSpec\"])({\n model,\n orm: this\n });\n }\n });\n });\n };\n\n _proto.registerManyToManyModelsFor = function registerManyToManyModelsFor(model) {\n const {\n fields\n } = model;\n const thisModelName = model.modelName;\n Object.entries(fields).forEach(([fieldName, fieldInstance]) => {\n if (!(fieldInstance instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_8__[\"default\"])) {\n return;\n }\n\n let toModelName;\n\n if (fieldInstance.toModelName === \"this\") {\n toModelName = thisModelName;\n } else {\n toModelName = fieldInstance.toModelName; // eslint-disable-line prefer-destructuring\n }\n\n const selfReferencing = thisModelName === toModelName;\n const fromFieldName = Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"m2mFromFieldName\"])(thisModelName);\n const toFieldName = Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"m2mToFieldName\"])(toModelName);\n\n if (fieldInstance.through) {\n if (selfReferencing && !fieldInstance.throughFields) {\n throw new Error(\"Self-referencing many-to-many relationship at \" + `\"${thisModelName}.${fieldName}\" using custom ` + `model \"${fieldInstance.through}\" has no ` + \"throughFields key. Cannot determine which \" + \"fields reference the instances partaking \" + \"in the relationship.\");\n }\n } else {\n const Through = /*#__PURE__*/function (_Model) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ThroughModel, _Model);\n\n function ThroughModel() {\n return _Model.apply(this, arguments) || this;\n }\n\n return ThroughModel;\n }(_Model__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n\n Through.modelName = Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"m2mName\"])(thisModelName, fieldName);\n\n const PlainForeignKey = /*#__PURE__*/function (_ForeignKey) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(PlainForeignKey, _ForeignKey);\n\n function PlainForeignKey() {\n return _ForeignKey.apply(this, arguments) || this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(PlainForeignKey, [{\n key: \"installsBackwardsVirtualField\",\n get: function () {\n return false;\n }\n }, {\n key: \"installsBackwardsDescriptor\",\n get: function () {\n return false;\n }\n }]);\n\n return PlainForeignKey;\n }(_fields_ForeignKey__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n const ForeignKeyClass = selfReferencing ? PlainForeignKey : _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\n Through.fields = {\n id: Object(_fields__WEBPACK_IMPORTED_MODULE_5__[\"attr\"])(),\n [fromFieldName]: new ForeignKeyClass(thisModelName),\n [toFieldName]: new ForeignKeyClass(toModelName)\n };\n Through.invalidateClassCache();\n this.implicitThroughModels.push(Through);\n }\n });\n }\n /**\n * Gets a {@link Model} class by its name from the registry.\n * @param {string} modelName - the name of the {@link Model} class to get\n * @throws If {@link Model} class is not found.\n * @return {Model} the {@link Model} class, if found\n */\n ;\n\n _proto.get = function get(modelName) {\n const allModels = this.registry.concat(this.implicitThroughModels);\n const found = Object.values(allModels).find(model => model.modelName === modelName);\n\n if (typeof found === \"undefined\") {\n throw new Error(`Did not find model ${modelName} from registry.`);\n }\n\n return found;\n };\n\n _proto.getModelClasses = function getModelClasses() {\n this._setupModelPrototypes(this.registry);\n\n this._setupModelPrototypes(this.implicitThroughModels);\n\n return this.registry.concat(this.implicitThroughModels);\n };\n\n _proto.generateSchemaSpec = function generateSchemaSpec() {\n const models = this.getModelClasses();\n const tables = models.reduce((spec, modelClass) => {\n const tableName = modelClass.modelName;\n const tableSpec = modelClass.tableOptions();\n Object.keys(tableSpec).filter(isReservedTableOption).forEach(key => {\n throw new Error(`Reserved keyword \\`${key}\\` used in ${tableName}.options.`);\n });\n spec[tableName] = {\n fields: { ...modelClass.fields\n },\n ...tableSpec\n };\n return spec;\n }, {});\n return {\n tables\n };\n };\n\n _proto.getDatabase = function getDatabase() {\n if (!this.db) {\n this.db = this.createDatabase(this.generateSchemaSpec());\n }\n\n return this.db;\n }\n /**\n * Returns the empty database state.\n * @return {Object} the empty state\n */\n ;\n\n _proto.getEmptyState = function getEmptyState() {\n return this.getDatabase().getEmptyState();\n }\n /**\n * Begins an immutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n ;\n\n _proto.session = function session(state) {\n return new _Session__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this, this.getDatabase(), state);\n }\n /**\n * Begins a mutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n ;\n\n _proto.mutableSession = function mutableSession(state) {\n return new _Session__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this, this.getDatabase(), state, true);\n }\n /**\n * @private\n */\n ;\n\n _proto._setupModelPrototypes = function _setupModelPrototypes(models) {\n models.filter(model => !model.isSetUp).forEach(model => {\n const {\n fields,\n modelName,\n querySetClass\n } = model;\n Object.entries(fields).forEach(([fieldName, field]) => {\n if (!(field instanceof _fields_Field__WEBPACK_IMPORTED_MODULE_6__[\"default\"])) {\n throw new Error(`${modelName}.${fieldName} is of type \"${typeof field}\" ` + \"but must be an instance of Field. Please use the \" + \"`attr`, `fk`, `oneToOne` and `many` \" + \"functions to define fields.\");\n }\n\n if (!this._isFieldInstalled(modelName, fieldName)) {\n this._installField(field, fieldName, model);\n\n this._setFieldInstalled(modelName, fieldName);\n }\n });\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"attachQuerySetMethods\"])(model, querySetClass);\n model.isSetUp = true;\n });\n }\n /**\n * @private\n */\n ;\n\n _proto._isFieldInstalled = function _isFieldInstalled(modelName, fieldName) {\n return this.installedFields.hasOwnProperty(modelName) ? !!this.installedFields[modelName][fieldName] : false;\n }\n /**\n * @private\n */\n ;\n\n _proto._setFieldInstalled = function _setFieldInstalled(modelName, fieldName) {\n if (!this.installedFields.hasOwnProperty(modelName)) {\n this.installedFields[modelName] = {};\n }\n\n this.installedFields[modelName][fieldName] = true;\n }\n /**\n * Installs a field on a model and its related models if necessary.\n * @private\n */\n ;\n\n _proto._installField = function _installField(field, fieldName, model) {\n const FieldInstaller = field.installerClass;\n new FieldInstaller({\n field,\n fieldName,\n model,\n orm: this\n }).run();\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Use {@link ORM#mutableSession} instead.\n */\n ;\n\n _proto.withMutations = function withMutations(state) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"warnDeprecated\"])(\"`ORM.prototype.withMutations` has been deprecated. \" + \"Use `ORM.prototype.mutableSession` instead.\");\n return this.mutableSession(state);\n }\n /**\n * @deprecated Use {@link ORM#session} instead.\n */\n ;\n\n _proto.from = function from(state) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"warnDeprecated\"])(\"`ORM.prototype.from` has been deprecated. \" + \"Use `ORM.prototype.session` instead.\");\n return this.session(state);\n }\n /**\n * @deprecated Use {@link ORM#getEmptyState} instead.\n */\n ;\n\n _proto.getDefaultState = function getDefaultState() {\n Object(_utils__WEBPACK_IMPORTED_MODULE_10__[\"warnDeprecated\"])(\"`ORM.prototype.getDefaultState` has been deprecated. Use \" + \"`ORM.prototype.getEmptyState` instead.\");\n return this.getEmptyState();\n }\n /**\n * @deprecated Define a Model class instead.\n */\n ;\n\n _proto.define = function define() {\n throw new Error(\"`ORM.prototype.define` has been removed. Please define a Model class.\");\n };\n\n return ORM;\n}();\n\nfunction DeprecatedSchema() {\n throw new Error(\"Schema has been renamed to ORM. Please import ORM instead of Schema \" + \"from Redux-ORM.\");\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ORM);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9PUk0uanM/YWE0ZSJdLCJuYW1lcyI6WyJPUk1fREVGQVVMVFMiLCJjcmVhdGVEYXRhYmFzZSIsImRlZmF1bHRDcmVhdGVEYXRhYmFzZSIsIlJFU0VSVkVEX1RBQkxFX09QVElPTlMiLCJpc1Jlc2VydmVkVGFibGVPcHRpb24iLCJ3b3JkIiwiaW5jbHVkZXMiLCJPUk0iLCJvcHRzIiwicmVnaXN0cnkiLCJpbXBsaWNpdFRocm91Z2hNb2RlbHMiLCJpbnN0YWxsZWRGaWVsZHMiLCJzdGF0ZVNlbGVjdG9yIiwicmVnaXN0ZXIiLCJtb2RlbHMiLCJmb3JFYWNoIiwibW9kZWwiLCJtb2RlbE5hbWUiLCJ1bmRlZmluZWQiLCJFcnJvciIsImludmFsaWRhdGVDbGFzc0NhY2hlIiwicmVnaXN0ZXJNYW55VG9NYW55TW9kZWxzRm9yIiwicHVzaCIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwiZ2V0IiwiX3NldHVwTW9kZWxQcm90b3R5cGVzIiwiY3JlYXRlTW9kZWxTZWxlY3RvclNwZWMiLCJvcm0iLCJmaWVsZHMiLCJ0aGlzTW9kZWxOYW1lIiwiZW50cmllcyIsImZpZWxkTmFtZSIsImZpZWxkSW5zdGFuY2UiLCJNYW55VG9NYW55IiwidG9Nb2RlbE5hbWUiLCJzZWxmUmVmZXJlbmNpbmciLCJmcm9tRmllbGROYW1lIiwibTJtRnJvbUZpZWxkTmFtZSIsInRvRmllbGROYW1lIiwibTJtVG9GaWVsZE5hbWUiLCJ0aHJvdWdoIiwidGhyb3VnaEZpZWxkcyIsIlRocm91Z2giLCJNb2RlbCIsIm0ybU5hbWUiLCJQbGFpbkZvcmVpZ25LZX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dyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgIFwiQSBtb2RlbCB3YXMgcGFzc2VkIHRoYXQgZG9lc24ndCBoYXZlIGEgbW9kZWxOYW1lIHNldFwiXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbW9kZWwuaW52YWxpZGF0ZUNsYXNzQ2FjaGUoKTtcblxuICAgICAgICAgICAgdGhpcy5yZWdpc3Rlck1hbnlUb01hbnlNb2RlbHNGb3IobW9kZWwpO1xuICAgICAgICAgICAgdGhpcy5yZWdpc3RyeS5wdXNoKG1vZGVsKTtcblxuICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsIG1vZGVsLm1vZGVsTmFtZSwge1xuICAgICAgICAgICAgICAgIGdldDogKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAvLyBtYWtlIHN1cmUgdmlydHVhbEZpZWxkcyBhcmUgc2V0IHVwXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3NldHVwTW9kZWxQcm90b3R5cGVzKHRoaXMucmVnaXN0cnkpO1xuXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBjcmVhdGVNb2RlbFNlbGVjdG9yU3BlYyh7XG4gICAgICAgICAgICAgICAgICAgICAgICBtb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG9ybTogdGhpcyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICByZWdpc3Rlck1hbnlUb01hbnlNb2RlbHNGb3IobW9kZWwpIHtcbiAgICAgICAgY29uc3QgeyBmaWVsZHMgfSA9IG1vZGVsO1xuICAgICAgICBjb25zdCB0aGlzTW9kZWxOYW1lID0gbW9kZWwubW9kZWxOYW1lO1xuXG4gICAgICAgIE9iamVjdC5lbnRyaWVzKGZpZWxkcykuZm9yRWFjaCgoW2ZpZWxkTmFtZSwgZmllbGRJbnN0YW5jZV0pID0+IHtcbiAgICAgICAgICAgIGlmICghKGZpZWxkSW5zdGFuY2UgaW5zdGFuY2VvZiBNYW55VG9NYW55KSkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbGV0IHRvTW9kZWxOYW1lO1xuICAgICAgICAgICAgaWYgKGZpZWxkSW5zdGFuY2UudG9Nb2RlbE5hbWUgPT09IFwidGhpc1wiKSB7XG4gICAgICAgICAgICAgICAgdG9Nb2RlbE5hbWUgPSB0aGlzTW9kZWxOYW1lO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0b01vZGVsTmFtZSA9IGZpZWxkSW5zdGFuY2UudG9Nb2RlbE5hbWU7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgcHJlZmVyLWRlc3RydWN0dXJpbmdcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY29uc3Qgc2VsZlJlZmVyZW5jaW5nID0gdGhpc01vZGVsTmFtZSA9PT0gdG9Nb2RlbE5hbWU7XG4gICAgICAgICAgICBjb25zdCBmcm9tRmllbGROYW1lID0gbTJtRnJvbUZpZWxkTmFtZSh0aGlzTW9kZWxOYW1lKTtcbiAgICAgICAgICAgIGNvbnN0IHRvRmllbGROYW1lID0gbTJtVG9GaWVsZE5hbWUodG9Nb2RlbE5hbWUpO1xuXG4gICAgICAgICAgICBpZiAoZmllbGRJbnN0YW5jZS50aHJvdWdoKSB7XG4gICAgICAgICAgICAgICAgaWYgKHNlbGZSZWZlcmVuY2luZyAmJiAhZmllbGRJbnN0YW5jZS50aHJvdWdoRmllbGRzKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiU2VsZi1yZWZlcmVuY2luZyBtYW55LXRvLW1hbnkgcmVsYXRpb25zaGlwIGF0IFwiICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBgXCIke3RoaXNNb2RlbE5hbWV9LiR7ZmllbGROYW1lfVwiIHVzaW5nIGN1c3RvbSBgICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBgbW9kZWwgXCIke2ZpZWxkSW5zdGFuY2UudGhyb3VnaH1cIiBoYXMgbm8gYCArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJ0aHJvdWdoRmllbGRzIGtleS4gQ2Fubm90IGRldGVybWluZSB3aGljaCBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJmaWVsZHMgcmVmZXJlbmNlIHRoZSBpbnN0YW5jZXMgcGFydGFraW5nIFwiICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImluIHRoZSByZWxhdGlvbnNoaXAuXCJcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbnN0IFRocm91Z2ggPSBjbGFzcyBUaHJvdWdoTW9kZWwgZXh0ZW5kcyBNb2RlbCB7fTtcblxuICAgICAgICAgICAgICAgIFRocm91Z2gubW9kZWxOYW1lID0gbTJtTmFtZSh0aGlzTW9kZWxOYW1lLCBmaWVsZE5hbWUpO1xuXG4gICAgICAgICAgICAgICAgY29uc3QgUGxhaW5Gb3JlaWduS2V5ID0gY2xhc3MgUGxhaW5Gb3JlaWduS2V5IGV4dGVuZHMgRm9yZWlnbktleSB7XG4gICAgICAgICAgICAgICAgICAgIGdldCBpbnN0YWxsc0JhY2t3YXJkc1ZpcnR1YWxGaWVsZCgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGdldCBpbnN0YWxsc0JhY2t3YXJkc0Rlc2NyaXB0b3IoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGNvbnN0IEZvcmVpZ25LZXlDbGFzcyA9IHNlbGZSZWZlcmVuY2luZ1xuICAgICAgICAgICAgICAgICAgICA/IFBsYWluRm9yZWlnbktleVxuICAgICAgICAgICAgICAgICAgICA6IEZvcmVpZ25LZXk7XG4gICAgICAgICAgICAgICAgVGhyb3VnaC5maWVsZHMgPSB7XG4gICAgICAgICAgICAgICAgICAgIGlkOiBhdHRyKCksXG4gICAgICAgICAgICAgICAgICAgIFtmcm9tRmllbGROYW1lXTogbmV3IEZvcmVpZ25LZXlDbGFzcyh0aGlzTW9kZWxOYW1lKSxcbiAgICAgICAgICAgICAgICAgICAgW3RvRmllbGROYW1lXTogbmV3IEZvcmVpZ25LZXlDbGFzcyh0b01vZGVsTmFtZSksXG4gICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgIFRocm91Z2guaW52YWxpZGF0ZUNsYXNzQ2FjaGUoKTtcbiAgICAgICAgICAgICAgICB0aGlzLmltcGxpY2l0VGhyb3VnaE1vZGVscy5wdXNoKFRocm91Z2gpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBHZXRzIGEge0BsaW5rIE1vZGVsfSBjbGFzcyBieSBpdHMgbmFtZSBmcm9tIHRoZSByZWdpc3RyeS5cbiAgICAgKiBAcGFyYW0gIHtzdHJpbmd9IG1vZGVsTmFtZSAtIHRoZSBuYW1lIG9mIHRoZSB7QGxpbmsgTW9kZWx9IGNsYXNzIHRvIGdldFxuICAgICAqIEB0aHJvd3MgSWYge0BsaW5rIE1vZGVsfSBjbGFzcyBpcyBub3QgZm91bmQuXG4gICAgICogQHJldHVybiB7TW9kZWx9IHRoZSB7QGxpbmsgTW9kZWx9IGNsYXNzLCBpZiBmb3VuZFxuICAgICAqL1xuICAgIGdldChtb2RlbE5hbWUpIHtcbiA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7XG4gICAgICAgICAgICBPYmplY3Qua2V5cyh0YWJsZVNwZWMpXG4gICAgICAgICAgICAgICAgLmZpbHRlcihpc1Jlc2VydmVkVGFibGVPcHRpb24pXG4gICAgICAgICAgICAgICAgLmZvckVhY2goKGtleSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICBgUmVzZXJ2ZWQga2V5d29yZCBcXGAke2tleX1cXGAgdXNlZCBpbiAke3RhYmxlTmFtZX0ub3B0aW9ucy5gXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBzcGVjW3RhYmxlTmFtZV0gPSB7XG4gICAgICAgICAgICAgICAgZmllbGRzOiB7IC4uLm1vZGVsQ2xhc3MuZmllbGRzIH0sXG4gICAgICAgICAgICAgICAgLi4udGFibGVTcGVjLFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIHJldHVybiBzcGVjO1xuICAgICAgICB9LCB7fSk7XG4gICAgICAgIHJldHVybiB7IHRhYmxlcyB9O1xuICAgIH1cblxuICAgIGdldERhdGFiYXNlKCkge1xuICAgICAgICBpZiAoIXRoaXMuZGIpIHtcbiAgICAgICAgICAgIHRoaXMuZGIgPSB0aGlzLmNyZWF0ZURhdGFiYXNlKHRoaXMuZ2VuZXJhdGVTY2hlbWFTcGVjKCkpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLmRiO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGVtcHR5IGRhdGFiYXNlIHN0YXRlLlxuICAgICAqIEByZXR1cm4ge09iamVjdH0gdGhlIGVtcHR5IHN0YXRlXG4gICAgICovXG4gICAgZ2V0RW1wdHlTdGF0ZSgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0RGF0YWJhc2UoKS5nZXRFbXB0eVN0YXRlKCk7XG4gICAgfVxuXG4gICAgLy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gICAgICAgICBPYmplY3QuZW50cmllcyhmaWVsZHMpLmZvckVhY2goKFtmaWVsZE5hbWUsIGZpZWxkXSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIShmaWVsZCBpbnN0YW5jZW9mIEZpZWxkKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGAke21vZGVsTmFtZX0uJHtmaWVsZE5hbWV9IGlzIG9mIHR5cGUgXCIke3R5cGVvZiBmaWVsZH1cIiBgICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJidXQgbXVzdCBiZSBhbiBpbnN0YW5jZSBvZiBGaWVsZC4gUGxlYXNlIHVzZSB0aGUgXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImBhdHRyYCwgYGZrYCwgYG9uZVRvT25lYCBhbmQgYG1hbnlgIFwiICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJmdW5jdGlvbnMgdG8gZGVmaW5lIGZpZWxkcy5cIlxuICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBpZiAoIXRoaXMuX2lzRmllbGRJbnN0YWxsZWQobW9kZWxOYW1lLCBmaWVsZE5hbWUpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9pbnN0YWxsRmllbGQoZmllbGQsIGZpZWxkTmFtZSwgbW9kZWwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2V0RmllbGRJbnN0YWxsZWQobW9kZWxOYW1lLCBmaWVsZE5hbWUpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgYXR0YWNoUXVlcnlTZXRNZXRob2RzKG1vZGVsLCBxdWVyeVNldENsYXNzKTtcbiAgICAgICAgICAgICAgICBtb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AgIGdldERlZmF1bHRTdGF0ZSgpIHtcbiAgICAgICAgd2FybkRlcHJlY2F0ZWQoXG4gICAgICAgICAgICBcImBPUk0ucHJvdG90eXBlLmdldERlZmF1bHRTdGF0ZWAgaGFzIGJlZW4gZGVwcmVjYXRlZC4gVXNlIFwiICtcbiAgICAgICAgICAgICAgICBcImBPUk0ucHJvdG90eXBlLmdldEVtcHR5U3RhdGVgIGluc3RlYWQuXCJcbiAgICAgICAgKTtcbiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0RW1wdHlTdGF0ZSgpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEBkZXByZWNhdGVkIERlZmluZSBhIE1vZGVsIGNsYXNzIGluc3RlYWQuXG4gICAgICovXG4gICAgZGVmaW5lKCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICBcImBPUk0ucHJvdG90eXBlLmRlZmluZWAgaGFzIGJlZW4gcmVtb3ZlZC4gUGxlYXNlIGRlZmluZSBhIE1vZGVsIGNsYXNzLlwiXG4gICAgICAgICk7XG4gICAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gRGVwcmVjYXRlZFNjaGVtYSgpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgIFwiU2NoZW1hIGhhcyBiZWVuIHJlbmFtZWQgdG8gT1JNLiBQbGVhc2UgaW1wb3J0IE9STSBpbnN0ZWFkIG9mIFNjaGVtYSBcIiArXG4gICAgICAgICAgICBcImZyb20gUmVkdXgtT1JNLlwiXG4gICAgKTtcbn1cblxuZXhwb3J0IHsgT1JNIH07XG5cbmV4cG9ydCBkZWZhdWx0IE9STTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/ORM.js\n"); + + /***/ }), + +@@ -4474,7 +4496,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n\n\n\n/**\n * This class is used to build and make queries to the database\n * and operating the resulting set (such as updating attributes\n * or deleting the records).\n *\n * The queries are built lazily. For example:\n *\n * ```javascript\n * const qs = Book.all()\n * .filter(book => book.releaseYear > 1999)\n * .orderBy('name');\n * ```\n *\n * Doesn't execute a query. The query is executed only when\n * you need information from the query result, such as {@link QuerySet#count},\n * {@link QuerySet#toRefArray}. After the query is executed, the resulting\n * set is cached in the QuerySet instance.\n *\n * QuerySet instances also return copies, so chaining filters doesn't\n * mutate the previous instances.\n */\n\nconst QuerySet = /*#__PURE__*/function () {\n /**\n * Creates a QuerySet. The constructor is mainly for internal use;\n * You should access QuerySet instances from {@link Model}.\n *\n * @param {Model} modelClass - the model class of objects in this QuerySet.\n * @param {any[]} clauses - query clauses needed to evaluate the set.\n * @param {Object} [opts] - additional options\n */\n function QuerySet(modelClass, clauses, opts) {\n Object.assign(this, {\n modelClass,\n clauses: clauses || []\n });\n this._opts = opts;\n }\n\n QuerySet.addSharedMethod = function addSharedMethod(methodName) {\n this.sharedMethods = this.sharedMethods.concat(methodName);\n };\n\n var _proto = QuerySet.prototype;\n\n _proto._new = function _new(clauses, userOpts) {\n const opts = { ...this._opts,\n ...userOpts\n };\n return new this.constructor(this.modelClass, clauses, opts);\n };\n\n _proto.toString = function toString() {\n this._evaluate();\n\n const contents = this.rows.map(({\n id\n }) => this.modelClass.withId(id).toString()).join(\"\\n - \");\n return `QuerySet contents:\\n - ${contents}`;\n }\n /**\n * Returns an array of the plain objects represented by the QuerySet.\n * The plain objects are direct references to the store.\n *\n * @return {Object[]} references to the plain JS objects represented by\n * the QuerySet\n */\n ;\n\n _proto.toRefArray = function toRefArray() {\n return this._evaluate();\n }\n /**\n * Returns an array of {@link Model} instances represented by the QuerySet.\n * @return {Model[]} model instances represented by the QuerySet\n */\n ;\n\n _proto.toModelArray = function toModelArray() {\n const {\n modelClass: ModelClass\n } = this;\n return this._evaluate().map(props => new ModelClass(props));\n }\n /**\n * Returns the number of {@link Model} instances represented by the QuerySet.\n *\n * @return {number} length of the QuerySet\n */\n ;\n\n _proto.count = function count() {\n this._evaluate();\n\n return this.rows.length;\n }\n /**\n * Checks if the {@link QuerySet} instance has any records matching the query\n * in the database.\n *\n * @return {Boolean} `true` if the {@link QuerySet} instance contains entities, else `false`.\n */\n ;\n\n _proto.exists = function exists() {\n return Boolean(this.count());\n }\n /**\n * Returns the {@link Model} instance at index `index` in the {@link QuerySet} instance if\n * `withRefs` flag is set to `false`, or a reference to the plain JavaScript\n * object in the model state if `true`.\n *\n * @param {number} index - index of the model instance to get\n * @return {Model|undefined} a {@link Model} instance at index\n * `index` in the {@link QuerySet} instance,\n * or undefined if the index is out of bounds.\n */\n ;\n\n _proto.at = function at(index) {\n const {\n modelClass: ModelClass\n } = this;\n\n const rows = this._evaluate();\n\n if (index >= 0 && index < rows.length) {\n return new ModelClass(rows[index]);\n }\n\n return undefined;\n }\n /**\n * Returns the {@link Model} instance at index 0 in the {@link QuerySet} instance.\n * @return {Model}\n */\n ;\n\n _proto.first = function first() {\n return this.at(0);\n }\n /**\n * Returns the {@link Model} instance at index `QuerySet.count() - 1`\n * @return {Model}\n */\n ;\n\n _proto.last = function last() {\n const rows = this._evaluate();\n\n return this.at(rows.length - 1);\n }\n /**\n * Returns a new {@link QuerySet} instance with the same entities.\n * @return {QuerySet} a new QuerySet with the same entities.\n */\n ;\n\n _proto.all = function all() {\n return this._new(this.clauses);\n }\n /**\n * Returns a new {@link QuerySet} instance with entities that match properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to match objects with. Can also be a function.\n * It works the same as [Lodash filter](https://lodash.com/docs/#filter).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that passed the filter.\n */\n ;\n\n _proto.filter = function filter(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj = typeof lookupObj === \"object\" ? Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"mapValues\"])(lookupObj, _utils__WEBPACK_IMPORTED_MODULE_1__[\"normalizeEntity\"]) : lookupObj;\n const filterDescriptor = {\n type: _constants__WEBPACK_IMPORTED_MODULE_2__[\"FILTER\"],\n payload: normalizedLookupObj\n };\n /**\n * create a new QuerySet\n * including only rows matching the lookupObj\n */\n\n return this._new(this.clauses.concat(filterDescriptor));\n }\n /**\n * Returns a new {@link QuerySet} instance with entities that do not match\n * properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to unmatch objects with. Can also be a function.\n * It works the same as [Lodash reject](https://lodash.com/docs/#reject).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that did not pass the filter.\n */\n ;\n\n _proto.exclude = function exclude(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj = typeof lookupObj === \"object\" ? Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"mapValues\"])(lookupObj, _utils__WEBPACK_IMPORTED_MODULE_1__[\"normalizeEntity\"]) : lookupObj;\n const excludeDescriptor = {\n type: _constants__WEBPACK_IMPORTED_MODULE_2__[\"EXCLUDE\"],\n payload: normalizedLookupObj\n };\n /**\n * create a new QuerySet\n * excluding all rows matching the lookupObj\n */\n\n return this._new(this.clauses.concat(excludeDescriptor));\n }\n /**\n * Performs the actual database query.\n * @private\n * @return {Array} rows corresponding to the QuerySet's clauses\n */\n ;\n\n _proto._evaluate = function _evaluate() {\n if (typeof this.modelClass.session === \"undefined\") {\n throw new Error([`Tried to query the ${this.modelClass.modelName} model's table without a session. `, \"Create a session using `session = orm.session()` and use \", `\\`session[\"${this.modelClass.modelName}\"]\\` for querying instead.`].join(\"\"));\n }\n\n if (!this._evaluated) {\n const {\n session,\n modelName: table\n } = this.modelClass;\n const querySpec = {\n table,\n clauses: this.clauses\n };\n this.rows = session.query(querySpec).rows;\n this._evaluated = true;\n }\n\n return this.rows;\n }\n /**\n * Returns a new {@link QuerySet} instance with entities ordered by `iteratees` in ascending\n * order, unless otherwise specified. Delegates to [Lodash orderBy](https://lodash.com/docs/#orderBy).\n *\n * @param {string[]|Function[]} iteratees - an array where each item can be a string or a\n * function. If a string is supplied, it should\n * correspond to property on the entity that will\n * determine the order. If a function is supplied,\n * it should return the value to order by.\n * @param {Array} [orders] - the sort orders of `iteratees`. If unspecified, all iteratees\n * will be sorted in ascending order. `true` and `'asc'`\n * correspond to ascending order, and `false` and `'desc'`\n * to descending order.\n * @return {QuerySet} a new {@link QuerySet} with objects ordered by `iteratees`.\n */\n ;\n\n _proto.orderBy = function orderBy(iteratees, orders) {\n const orderByDescriptor = {\n type: _constants__WEBPACK_IMPORTED_MODULE_2__[\"ORDER_BY\"],\n payload: [iteratees, orders]\n };\n /**\n * create a new QuerySet\n * sorting all rows according to the passed arguments\n */\n\n return this._new(this.clauses.concat(orderByDescriptor));\n }\n /**\n * Records an update specified with `mergeObj` to all the objects\n * in the {@link QuerySet} instance.\n *\n * @param {Object} mergeObj - an object to merge with all the objects in this\n * queryset.\n * @return {undefined}\n */\n ;\n\n _proto.update = function update(mergeObj) {\n const {\n session,\n modelName: table\n } = this.modelClass;\n session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_2__[\"UPDATE\"],\n query: {\n table,\n clauses: this.clauses\n },\n payload: mergeObj\n });\n this._evaluated = false;\n }\n /**\n * Records a deletion of all the objects in this {@link QuerySet} instance.\n * @return {undefined}\n */\n ;\n\n _proto.delete = function _delete() {\n const {\n session,\n modelName: table\n } = this.modelClass;\n this.toModelArray().forEach(model => model._onDelete() // eslint-disable-line no-underscore-dangle\n );\n session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_2__[\"DELETE\"],\n query: {\n table,\n clauses: this.clauses\n }\n });\n this._evaluated = false;\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated\n * Use {@link QuerySet#toModelArray} or predicate functions that\n * instantiate Models from refs, e.g. `new Model(ref)`.\n */\n ;\n\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to map.\n */\n _proto.map = function map() {\n throw new Error(\"`QuerySet.prototype.map` has been removed. \" + \"Call `.toModelArray()` or `.toRefArray()` first to map.\");\n }\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to iterate.\n */\n ;\n\n _proto.forEach = function forEach() {\n throw new Error(\"`QuerySet.prototype.forEach` has been removed. \" + \"Call `.toModelArray()` or `.toRefArray()` first to iterate.\");\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(QuerySet, [{\n key: \"withModels\",\n get: function () {\n throw new Error(\"`QuerySet.prototype.withModels` has been removed. \" + \"Use `.toModelArray()` or predicate functions that \" + \"instantiate Models from refs, e.g. `new Model(ref)`.\");\n }\n /**\n * @deprecated Query building operates on refs only now.\n */\n\n }, {\n key: \"withRefs\",\n get: function () {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"warnDeprecated\"])(\"`QuerySet.prototype.withRefs` has been deprecated. \" + \"Query building operates on refs only now.\");\n return undefined;\n }\n }]);\n\n return QuerySet;\n}();\n\nQuerySet.sharedMethods = [\"count\", \"at\", \"all\", \"last\", \"first\", \"filter\", \"exclude\", \"orderBy\", \"update\", \"delete\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (QueryS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hhcyBiZWVuIHJlbW92ZWQuIFwiICtcbiAgICAgICAgICAgICAgICBcIkNhbGwgYC50b01vZGVsQXJyYXkoKWAgb3IgYC50b1JlZkFycmF5KClgIGZpcnN0IHRvIG1hcC5cIlxuICAgICAgICApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEBkZXByZWNhdGVkXG4gICAgICogQ2FsbCB7QGxpbmsgUXVlcnlTZXQjdG9Nb2RlbEFycmF5fSBvciB7QGxpbmsgUXVlcnlTZXQjdG9SZWZBcnJheX0gZmlyc3QgdG8gaXRlcmF0ZS5cbiAgICAgKi9cbiAgICBmb3JFYWNoKCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICBcImBRdWVyeVNldC5wcm90b3R5cGUuZm9yRWFjaGAgaGFzIGJlZW4gcmVtb3ZlZC4gXCIgK1xuICAgICAgICAgICAgICAgIFwiQ2FsbCBgLnRvTW9kZWxBcnJheSgpYCBvciBgLnRvUmVmQXJyYXkoKWAgZmlyc3QgdG8gaXRlcmF0ZS5cIlxuICAgICAgICApO1xuICAgIH1cbn07XG5cblF1ZXJ5U2V0LnNoYXJlZE1ldGhvZHMgPSBbXG4gICAgXCJjb3VudFwiLFxuICAgIFwiYXRcIixcbiAgICBcImFsbFwiLFxuICAgIFwibGFzdFwiLFxuICAgIFwiZmlyc3RcIixcbiAgICBcImZpbHRlclwiLFxuICAgIFwiZXhjbHVkZVwiLFxuICAgIFwib3JkZXJCeVwiLFxuICAgIFwidXBkYXRlXCIsXG4gICAgXCJkZWxldGVcIixcbl07XG5cbmV4cG9ydCBkZWZhdWx0IFF1ZXJ5U2V0O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/QuerySet.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n\n\n\n/**\n * This class is used to build and make queries to the database\n * and operating the resulting set (such as updating attributes\n * or deleting the records).\n *\n * The queries are built lazily. For example:\n *\n * ```javascript\n * const qs = Book.all()\n * .filter(book => book.releaseYear > 1999)\n * .orderBy('name');\n * ```\n *\n * Doesn't execute a query. The query is executed only when\n * you need information from the query result, such as {@link QuerySet#count},\n * {@link QuerySet#toRefArray}. After the query is executed, the resulting\n * set is cached in the QuerySet instance.\n *\n * QuerySet instances also return copies, so chaining filters doesn't\n * mutate the previous instances.\n */\n\nconst QuerySet = /*#__PURE__*/function () {\n /**\n * Creates a QuerySet. The constructor is mainly for internal use;\n * You should access QuerySet instances from {@link Model}.\n *\n * @param {Model} modelClass - the model class of objects in this QuerySet.\n * @param {any[]} clauses - query clauses needed to evaluate the set.\n * @param {Object} [opts] - additional options\n */\n function QuerySet(modelClass, clauses, opts) {\n Object.assign(this, {\n modelClass,\n clauses: clauses || []\n });\n this._opts = opts;\n }\n\n QuerySet.addSharedMethod = function addSharedMethod(methodName) {\n this.sharedMethods = this.sharedMethods.concat(methodName);\n };\n\n var _proto = QuerySet.prototype;\n\n _proto._new = function _new(clauses, userOpts) {\n const opts = { ...this._opts,\n ...userOpts\n };\n return new this.constructor(this.modelClass, clauses, opts);\n };\n\n _proto.toString = function toString() {\n this._evaluate();\n\n const contents = this.rows.map(({\n id\n }) => this.modelClass.withId(id).toString()).join(\"\\n - \");\n return `QuerySet contents:\\n - ${contents}`;\n }\n /**\n * Returns an array of the plain objects represented by the QuerySet.\n * The plain objects are direct references to the store.\n *\n * @return {Object[]} references to the plain JS objects represented by\n * the QuerySet\n */\n ;\n\n _proto.toRefArray = function toRefArray() {\n return this._evaluate();\n }\n /**\n * Returns an array of {@link Model} instances represented by the QuerySet.\n * @return {Model[]} model instances represented by the QuerySet\n */\n ;\n\n _proto.toModelArray = function toModelArray() {\n const {\n modelClass: ModelClass\n } = this;\n return this._evaluate().map(props => new ModelClass(props));\n }\n /**\n * Returns the number of {@link Model} instances represented by the QuerySet.\n *\n * @return {number} length of the QuerySet\n */\n ;\n\n _proto.count = function count() {\n this._evaluate();\n\n return this.rows.length;\n }\n /**\n * Checks if the {@link QuerySet} instance has any records matching the query\n * in the database.\n *\n * @return {Boolean} `true` if the {@link QuerySet} instance contains entities, else `false`.\n */\n ;\n\n _proto.exists = function exists() {\n return Boolean(this.count());\n }\n /**\n * Returns the {@link Model} instance at index `index` in the {@link QuerySet} instance if\n * `withRefs` flag is set to `false`, or a reference to the plain JavaScript\n * object in the model state if `true`.\n *\n * @param {number} index - index of the model instance to get\n * @return {Model|undefined} a {@link Model} instance at index\n * `index` in the {@link QuerySet} instance,\n * or undefined if the index is out of bounds.\n */\n ;\n\n _proto.at = function at(index) {\n const {\n modelClass: ModelClass\n } = this;\n\n const rows = this._evaluate();\n\n if (index >= 0 && index < rows.length) {\n return new ModelClass(rows[index]);\n }\n\n return undefined;\n }\n /**\n * Returns the {@link Model} instance at index 0 in the {@link QuerySet} instance.\n * @return {Model}\n */\n ;\n\n _proto.first = function first() {\n return this.at(0);\n }\n /**\n * Returns the {@link Model} instance at index `QuerySet.count() - 1`\n * @return {Model}\n */\n ;\n\n _proto.last = function last() {\n const rows = this._evaluate();\n\n return this.at(rows.length - 1);\n }\n /**\n * Returns a new {@link QuerySet} instance with the same entities.\n * @return {QuerySet} a new QuerySet with the same entities.\n */\n ;\n\n _proto.all = function all() {\n return this._new(this.clauses);\n }\n /**\n * Returns a new {@link QuerySet} instance with entities that match properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to match objects with. Can also be a function.\n * It works the same as [Lodash filter](https://lodash.com/docs/#filter).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that passed the filter.\n */\n ;\n\n _proto.filter = function filter(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj = typeof lookupObj === \"object\" ? Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"mapValues\"])(lookupObj, _utils__WEBPACK_IMPORTED_MODULE_1__[\"normalizeEntity\"]) : lookupObj;\n const filterDescriptor = {\n type: _constants__WEBPACK_IMPORTED_MODULE_2__[\"FILTER\"],\n payload: normalizedLookupObj\n };\n /**\n * create a new QuerySet\n * including only rows matching the lookupObj\n */\n\n return this._new(this.clauses.concat(filterDescriptor));\n }\n /**\n * Returns a new {@link QuerySet} instance with entities that do not match\n * properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to unmatch objects with. Can also be a function.\n * It works the same as [Lodash reject](https://lodash.com/docs/#reject).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that did not pass the filter.\n */\n ;\n\n _proto.exclude = function exclude(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj = typeof lookupObj === \"object\" ? Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"mapValues\"])(lookupObj, _utils__WEBPACK_IMPORTED_MODULE_1__[\"normalizeEntity\"]) : lookupObj;\n const excludeDescriptor = {\n type: _constants__WEBPACK_IMPORTED_MODULE_2__[\"EXCLUDE\"],\n payload: normalizedLookupObj\n };\n /**\n * create a new QuerySet\n * excluding all rows matching the lookupObj\n */\n\n return this._new(this.clauses.concat(excludeDescriptor));\n }\n /**\n * Performs the actual database query.\n * @private\n * @return {Array} rows corresponding to the QuerySet's clauses\n */\n ;\n\n _proto._evaluate = function _evaluate() {\n if (typeof this.modelClass.session === \"undefined\") {\n throw new Error([`Tried to query the ${this.modelClass.modelName} model's table without a session. `, \"Create a session using `session = orm.session()` and use \", `\\`session[\"${this.modelClass.modelName}\"]\\` for querying instead.`].join(\"\"));\n }\n\n if (!this._evaluated) {\n const {\n session,\n modelName: table\n } = this.modelClass;\n const querySpec = {\n table,\n clauses: this.clauses\n };\n this.rows = session.query(querySpec).rows;\n this._evaluated = true;\n }\n\n return this.rows;\n }\n /**\n * Returns a new {@link QuerySet} instance with entities ordered by `iteratees` in ascending\n * order, unless otherwise specified. Delegates to [Lodash orderBy](https://lodash.com/docs/#orderBy).\n *\n * @param {string[]|Function[]} iteratees - an array where each item can be a string or a\n * function. If a string is supplied, it should\n * correspond to property on the entity that will\n * determine the order. If a function is supplied,\n * it should return the value to order by.\n * @param {Array} [orders] - the sort orders of `iteratees`. If unspecified, all iteratees\n * will be sorted in ascending order. `true` and `'asc'`\n * correspond to ascending order, and `false` and `'desc'`\n * to descending order.\n * @return {QuerySet} a new {@link QuerySet} with objects ordered by `iteratees`.\n */\n ;\n\n _proto.orderBy = function orderBy(iteratees, orders) {\n const orderByDescriptor = {\n type: _constants__WEBPACK_IMPORTED_MODULE_2__[\"ORDER_BY\"],\n payload: [iteratees, orders]\n };\n /**\n * create a new QuerySet\n * sorting all rows according to the passed arguments\n */\n\n return this._new(this.clauses.concat(orderByDescriptor));\n }\n /**\n * Records an update specified with `mergeObj` to all the objects\n * in the {@link QuerySet} instance.\n *\n * @param {Object} mergeObj - an object to merge with all the objects in this\n * queryset.\n * @return {undefined}\n */\n ;\n\n _proto.update = function update(mergeObj) {\n const {\n session,\n modelName: table\n } = this.modelClass;\n session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_2__[\"UPDATE\"],\n query: {\n table,\n clauses: this.clauses\n },\n payload: mergeObj\n });\n this._evaluated = false;\n }\n /**\n * Records a deletion of all the objects in this {@link QuerySet} instance.\n * @return {undefined}\n */\n ;\n\n _proto.delete = function _delete() {\n const {\n session,\n modelName: table\n } = this.modelClass;\n this.toModelArray().forEach(model => model._onDelete() // eslint-disable-line no-underscore-dangle\n );\n session.applyUpdate({\n action: _constants__WEBPACK_IMPORTED_MODULE_2__[\"DELETE\"],\n query: {\n table,\n clauses: this.clauses\n }\n });\n this._evaluated = false;\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated\n * Use {@link QuerySet#toModelArray} or predicate functions that\n * instantiate Models from refs, e.g. `new Model(ref)`.\n */\n ;\n\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to map.\n */\n _proto.map = function map() {\n throw new Error(\"`QuerySet.prototype.map` has been removed. \" + \"Call `.toModelArray()` or `.toRefArray()` first to map.\");\n }\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to iterate.\n */\n ;\n\n _proto.forEach = function forEach() {\n throw new Error(\"`QuerySet.prototype.forEach` has been removed. \" + \"Call `.toModelArray()` or `.toRefArray()` first to iterate.\");\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(QuerySet, [{\n key: \"withModels\",\n get: function () {\n throw new Error(\"`QuerySet.prototype.withModels` has been removed. \" + \"Use `.toModelArray()` or predicate functions that \" + \"instantiate Models from refs, e.g. `new Model(ref)`.\");\n }\n /**\n * @deprecated Query building operates on refs only now.\n */\n\n }, {\n key: \"withRefs\",\n get: function () {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"warnDeprecated\"])(\"`QuerySet.prototype.withRefs` has been deprecated. \" + \"Query building operates on refs only now.\");\n return undefined;\n }\n }]);\n\n return QuerySet;\n}();\n\nQuerySet.sharedMethods = [\"count\", \"at\", \"all\", \"last\", \"first\", \"filter\", \"exclude\", \"orderBy\", \"update\", \"delete\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (QuerySet);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL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ICAgICogQHJldHVybiB7TW9kZWx8dW5kZWZpbmVkfSBhIHtAbGluayBNb2RlbH0gaW5zdGFuY2UgYXQgaW5kZXhcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgIGBpbmRleGAgaW4gdGhlIHtAbGluayBRdWVyeVNldH0gaW5zdGFuY2UsXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICBvciB1bmRlZmluZWQgaWYgdGhlIGluZGV4IGlzIG91dCBvZiBib3VuZHMuXG4gICAgICovXG4gICAgYXQoaW5kZXgpIHtcbiAgICAgICAgY29uc3QgeyBtb2RlbENsYXNzOiBNb2RlbENsYXNzIH0gPSB0aGlzO1xuXG4gICAgICAgIGNvbnN0IHJvd3MgPSB0aGlzLl9ldmFsdWF0ZSgpO1xuICAgICAgICBpZiAoaW5kZXggPj0gMCAmJiBpbmRleCA8IHJvd3MubGVuZ3RoKSB7XG4gICAgICAgICAgICByZXR1cm4gbmV3IE1vZGVsQ2xhc3Mocm93c1tpbmRleF0pO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIHRoZSB7QGxpbmsgTW9kZWx9IGluc3RhbmNlIGF0IGluZGV4IDAgaW4gdGhlIHtAbGluayBRdWVyeVNldH0gaW5zdGFuY2UuXG4gICAgICogQHJldHVybiB7TW9kZWx9XG4gICAgICovXG4gICAgZmlyc3QoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmF0KDApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIHtAbGluayBNb2RlbH0gaW5zdGFuY2UgYXQgaW5kZXggYFF1ZXJ5U2V0LmNvdW50KCkgLSAxYFxuICAgICAqIEByZXR1cm4ge01vZGVsfVxuICAgICAqL1xuICAgIGxhc3QoKSB7XG4gICAgICAgIGNvbnN0IHJvd3MgPSB0aGlzLl9ldmFsdWF0ZSgpO1xuICAgICAgIC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cm0gbW9kZWwgaW5zdGFuY2VzIHRvIHRoZWlyIHByaW1hcnkga2V5c1xuICAgICAgICAgKi9cbiAgICAgICAgY29uc3Qgbm9ybWFsaXplZExvb2t1cE9iaiA9XG4gICAgICAgICAgICB0eXBlb2YgbG9va3VwT2JqID09PSBcIm9iamVjdFwiXG4gICAgICAgICAgICAgICAgPyBtYXBWYWx1ZXMobG9va3VwT2JqLCBub3JtYWxpemVFbnRpdHkpXG4gICAgICAgICAgICAgICAgOiBsb29rdXBPYmo7XG5cbiAgICAgICAgY29uc3QgZmlsdGVyRGVzY3JpcHRvciA9IHtcbiAgICAgICAgICAgIHR5cGU6IEZJTFRFUixcbiAgICAgICAgICAgIHBheWxvYWQ6IG5vcm1hbGl6ZWRMb29rdXBPYmosXG4gICAgICAgIH07XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBjcmVhdGUgYSBuZXcgUXVlcnlTZXRcbiAgICAgICAgICogaW5jbHVkaW5nIG9ubHkgcm93cyBtYXRjaGluZyB0aGUgbG9va3VwT2JqXG4gICAgICAgICAqL1xuICAgICAgICByZXR1cm4gdGhpcy5fbmV3KHRoaXMuY2xhdXNlcy5jb25jYXQoZmlsdGVyRGVzY3JpcHRvcikpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgYSBuZXcge0BsaW5rIFF1ZXJ5U2V0fSBpbnN0YW5jZSB3aXRoIGVudGl0aWVzIHRoYXQgZG8gbm90IG1hdGNoXG4gICAgICogcHJvcGVydGllcyBpbiBgbG9va3VwT2JqYC5cbiAgICAgKlxuICAgICAqIEBwYXJhbSAge09iamVjdH0gbG9va3VwT2JqIC0gdGhlIHByb3BlcnRpZXMgdG8gdW5tYXRjaCBvYmplY3RzIHdpdGguIENhbiBhbHNvIGJlIGEgZnVuY3Rpb24uXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBJdCB3b3JrcyB0aGUgc2FtZSBhcyBbTG9kYXNoIHJlamVjdF0oaHR0cHM6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nByb3RvdHlwZS5mb3JFYWNoYCBoYXMgYmVlbiByZW1vdmVkLiBcIiArXG4gICAgICAgICAgICAgICAgXCJDYWxsIGAudG9Nb2RlbEFycmF5KClgIG9yIGAudG9SZWZBcnJheSgpYCBmaXJzdCB0byBpdGVyYXRlLlwiXG4gICAgICAgICk7XG4gICAgfVxufTtcblxuUXVlcnlTZXQuc2hhcmVkTWV0aG9kcyA9IFtcbiAgICBcImNvdW50XCIsXG4gICAgXCJhdFwiLFxuICAgIFwiYWxsXCIsXG4gICAgXCJsYXN0XCIsXG4gICAgXCJmaXJzdFwiLFxuICAgIFwiZmlsdGVyXCIsXG4gICAgXCJleGNsdWRlXCIsXG4gICAgXCJvcmRlckJ5XCIsXG4gICAgXCJ1cGRhdGVcIixcbiAgICBcImRlbGV0ZVwiLFxuXTtcblxuZXhwb3J0IGRlZmF1bHQgUXVlcnlTZXQ7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/QuerySet.js\n"); + + /***/ }), + +@@ -4486,7 +4508,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n\n\n\n\nconst Session = /*#__PURE__*/function () {\n /**\n * Creates a new Session.\n *\n * @param {Database} db - a {@link Database} instance\n * @param {Object} state - the database state\n * @param {Boolean} [withMutations] - whether the session should mutate data\n * @param {Object} [batchToken] - used by the backend to identify objects that can be\n * mutated.\n */\n function Session(schema, db, state, withMutations, batchToken) {\n this.schema = schema;\n this.db = db;\n this.state = state || db.getEmptyState();\n this.initialState = this.state;\n this.withMutations = Boolean(withMutations);\n this.batchToken = batchToken || Object(immutable_ops__WEBPACK_IMPORTED_MODULE_1__[\"getBatchToken\"])();\n this.modelData = {};\n this.models = schema.getModelClasses();\n this.sessionBoundModels = this.models.map(modelClass => {\n function SessionBoundModel() {\n return Reflect.construct(modelClass, arguments, SessionBoundModel); // eslint-disable-line prefer-rest-params\n }\n\n Reflect.setPrototypeOf(SessionBoundModel.prototype, modelClass.prototype);\n Reflect.setPrototypeOf(SessionBoundModel, modelClass);\n Object.defineProperty(this, modelClass.modelName, {\n get: () => SessionBoundModel\n });\n SessionBoundModel.connect(this);\n return SessionBoundModel;\n });\n }\n\n var _proto = Session.prototype;\n\n _proto.getDataForModel = function getDataForModel(modelName) {\n if (!this.modelData[modelName]) {\n this.modelData[modelName] = {};\n }\n\n return this.modelData[modelName];\n };\n\n _proto.getModelData = function getModelData() {\n return this.modelData;\n };\n\n _proto.markAccessed = function markAccessed(modelName, modelIds) {\n const data = this.getDataForModel(modelName);\n\n if (!data.accessedInstances) {\n data.accessedInstances = {};\n }\n\n modelIds.forEach(id => {\n data.accessedInstances[id] = true;\n });\n };\n\n _proto.markFullTableScanned = function markFullTableScanned(modelName) {\n const data = this.getDataForModel(modelName);\n data.fullTableScanned = true;\n };\n\n _proto.markAccessedIndexes = function markAccessedIndexes(indexes) {\n indexes.forEach(([table, attr, value]) => {\n const data = this.getDataForModel(table);\n\n if (!data.accessedIndexes) {\n data.accessedIndexes = {};\n }\n\n data.accessedIndexes[attr] = [...(data.accessedIndexes[attr] || []), value];\n });\n };\n\n /**\n * Applies update to a model state.\n *\n * @private\n * @param {Object} update - the update object. Must have keys\n * `type`, `payload`.\n */\n _proto.applyUpdate = function applyUpdate(updateSpec) {\n const tx = this._getTransaction(updateSpec);\n\n const result = this.db.update(updateSpec, tx, this.state);\n const {\n status,\n state,\n payload\n } = result;\n\n if (status !== _constants__WEBPACK_IMPORTED_MODULE_2__[\"SUCCESS\"]) {\n throw new Error(`Applying update failed with status ${status}. Payload: ${payload}`);\n }\n\n this.state = state;\n return payload;\n };\n\n _proto.query = function query(querySpec) {\n const result = this.db.query(querySpec, this.state);\n\n this._markAccessedByQuery(querySpec, result);\n\n return result;\n };\n\n _proto._getTransaction = function _getTransaction(updateSpec) {\n const {\n withMutations\n } = this;\n const {\n action\n } = updateSpec;\n let {\n batchToken\n } = this;\n\n if ([_constants__WEBPACK_IMPORTED_MODULE_2__[\"UPDATE\"], _constants__WEBPACK_IMPORTED_MODULE_2__[\"DELETE\"]].includes(action)) {\n batchToken = Object(immutable_ops__WEBPACK_IMPORTED_MODULE_1__[\"getBatchToken\"])();\n }\n\n return {\n batchToken,\n withMutations\n };\n };\n\n _proto._markAccessedByQuery = function _markAccessedByQuery(querySpec, result) {\n const {\n table,\n clauses\n } = querySpec;\n const {\n rows\n } = result;\n const {\n idAttribute\n } = this[table];\n const accessedIds = new Set(rows.map(row => row[idAttribute]));\n const anyClauseFilteredByPk = clauses.some(clause => {\n if (!Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"clauseFiltersByAttribute\"])(clause, idAttribute)) {\n return false;\n }\n /**\n * We previously knew which row we wanted to access,\n * so there was no need to scan the entire table.\n */\n\n\n accessedIds.add(clause.payload[idAttribute]);\n return true;\n });\n const accessedIndexes = [];\n const {\n indexes\n } = this.state[table];\n clauses.forEach(clause => {\n Object.keys(indexes).forEach(attr => {\n if (!Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"clauseFiltersByAttribute\"])(clause, attr)) {\n return;\n }\n\n const value = clause.payload[attr];\n accessedIndexes.push([table, attr, value]);\n });\n });\n\n if (anyClauseFilteredByPk) {\n /**\n * The clauses have been ordered so that an indexed one was\n * the first to have been evaluated, and thus only the row\n * with the specified PK value has actually been accessed.\n */\n this.markAccessed(table, accessedIds);\n } else if (accessedIndexes.length) {\n /**\n * At least one clause was optimized using indexes.\n */\n this.markAccessed(table, accessedIds);\n this.markAccessedIndexes(accessedIndexes);\n } else {\n /**\n * At least one clause could not be efficiently optimized\n * or no clause was specified at all.\n */\n this.markFullTableScanned(table);\n }\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Access {@link Session#state} instead.\n */\n ;\n\n _proto.getNextState = function getNextState() {\n Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"warnDeprecated\"])(\"`Session.prototype.getNextState` has been deprecated. Access \" + \"the `Session.prototype.state` property instead.\");\n return this.state;\n }\n /**\n * @deprecated\n * The Redux integration API is now decoupled from ORM and Session.
\n * See the 0.9 migration guide in the GitHub repo.\n */\n ;\n\n _proto.reduce = function reduce() {\n throw new Error(\"`Session.prototype.reduce` has been removed. The Redux integration API \" + \"is now decoupled from ORM and Session - see the 0.9 migration guide \" + \"in the GitHub repo.\");\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Session, [{\n key: \"accessedModelInstances\",\n get: function () {\n return Object.entries(this.getModelData()).reduce((result, [key, value]) => {\n if (value.accessedInstances) {\n result[key] = value.accessedInstances;\n }\n\n return result;\n }, {});\n }\n }, {\n key: \"fullTableScannedModels\",\n get: function () {\n return Object.entries(this.getModelData()).reduce((result, [key, value]) => {\n if (value.fullTableScanned) {\n result.push(key);\n }\n\n return result;\n }, []);\n }\n }, {\n key: \"accessedIndexes\",\n get: function () {\n return Object.entries(this.getModelData()).reduce((result, [key, value]) => {\n if (value.accessedIndexes) {\n result[key] = value.accessedIndexes;\n }\n\n return result;\n }, {});\n }\n }]);\n\n return Session;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Session);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9TZXNzaW9uLmpzPzU5MWMiXSwibmFtZXMiOlsiU2Vzc2lvbiIsInNjaGVtYSIsImRiIiwic3RhdGUiLCJ3aXRoTXV0YXRpb25zIiwiYmF0Y2hUb2tlbiIsImdldEVtcHR5U3RhdGUiLCJpbml0aWFsU3RhdGUiLCJCb29sZWFuIiwiZ2V0QmF0Y2hUb2tlbiIsIm1vZGVsRGF0YSIsIm1vZGVscyIsImdldE1vZGVsQ2xhc3NlcyIsInNlc3Npb25Cb3VuZE1vZGVscyIsIm1hcCIsIm1vZGVsQ2xhc3MiLCJTZXNzaW9uQm91bmRNb2RlbCIsIlJlZmxlY3QiLCJjb25zdHJ1Y3QiLCJhcmd1bWVudHMiLCJzZXRQcm90b3R5cGVPZiIsInByb3RvdHlwZSIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwibW9kZWxOYW1lIiwiZ2V0IiwiY29ubmVjdCIsImdldERhdGFGb3JNb2RlbCIsImdldE1vZGVsRGF0YSIsIm1hcmtBY2Nlc3NlZCIsIm1vZGVsSWRzIiwiZGF0YSIsImFjY2Vzc2VkSW5zdGFuY2VzIiwiZm9yRWFjaCIsImlkIiwibWFya0Z1bGxUYWJsZVNjYW5uZWQiLCJmdWxsVGFibGVTY2FubmVkIiwibWFya0FjY2Vzc2VkSW5kZXhlcyIsImluZGV4ZXMiLCJ0YWJsZSIsImF0dHIiLCJ2YWx1ZSIsImFjY2Vzc2VkSW5kZXhlcyIsImFwcGx5VXBkYXRlIiwidXBkYXRlU3BlYyIsInR4IiwiX2dldFRyYW5zYWN0aW9uIiwicmVzdWx0IiwidXBkYXRlIiwic3RhdHVzIiwicGF5bG9hZCIsIlNVQ0NFU1MiLCJFcnJvciIsIn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Vzc2VkTW9kZWxJbnN0YW5jZXMoKSB7XG4gICAgICAgIHJldHVybiBPYmplY3QuZW50cmllcyh0aGlzLmdldE1vZGVsRGF0YSgpKS5yZWR1Y2UoXG4gICAgICAgICAgICAocmVzdWx0LCBba2V5LCB2YWx1ZV0pID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodmFsdWUuYWNjZXNzZWRJbnN0YW5jZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0W2tleV0gPSB2YWx1ZS5hY2Nlc3NlZEluc3RhbmNlcztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7fVxuICAgICAgICApO1xuICAgIH1cblxuICAgIG1hcmtGdWxsVGFibGVTY2FubmVkKG1vZGVsTmFtZSkge1xuICAgICAgICBjb25zdCBkYXRhID0gdGhpcy5nZXREYXRhRm9yTW9kZWwobW9kZWxOYW1lKTtcbiAgICAgICAgZGF0YS5mdWxsVGFibGVTY2FubmVkID0gdHJ1ZTtcbiAgICB9XG5cbiAgICBnZXQgZnVsbFRhYmxlU2Nhbm5lZE1vZGVscygpIHtcbiAgICAgICAgcmV0dXJuIE9iamVjdC5lbnRyaWVzKHRoaXMuZ2V0TW9kZWxEYXRhKCkpLnJlZHVjZShcbiAgICAgICAgICAgIChyZXN1bHQsIFtrZXksIHZhbHVlXSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh2YWx1ZS5mdWxsVGFibGVTY2FubmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKGtleSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW11cbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBtYXJrQWNjZXNzZWRJbmRleGVzKGluZGV4ZXMpIHtcbiAgICAgICAgaW5kZXhlcy5mb3JFYWNoKChbdGFibGUsIGF0dHIsIHZhbHVlXSkgPT4ge1xuICAgICAgICAgICAgY29uc3QgZGF0YSA9IHRoaXMuZ2V0RGF0YUZvck1vZGVsKHRhYmxlKTtcbiAgICAgICAgICAgIGlmICghZGF0YS5hY2Nlc3NlZEluZGV4ZXMpIHtcbiAgICAgICAgICAgICAgICBkYXRhLmFjY2Vzc2VkSW5kZXhlcyA9IHt9O1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGF0YS5hY2Nlc3NlZEluZGV4ZXNbYXR0cl0gPSBbXG4gICAgICAgICAgICAgICAgLi4uKGRhdGEuYWNjZXNzZWRJbmRleGVzW2F0dHJdIHx8IFtdKSxcbiAgICAgICAgICAgICAgICB2YWx1ZSxcbiAgICAgICAgICAgIF07XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGdldCBhY2Nlc3NlZEluZGV4ZXMoKSB7XG4gICAgICAgIHJldHVybiBPYmplY3QuZW50cmllcyh0aGlzLmdldE1vZGVsRGF0YSgpKS5yZWR1Y2UoXG4gICAgICAgICAgICAocmVzdWx0LCBba2V5LCB2YWx1ZV0pID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodmFsdWUuYWNjZXNzZWRJbmRleGVzKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdFtrZXldID0gdmFsdWUuYWNjZXNzZWRJbmRleGVzO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHt9XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQXBwbGllcyB1cGRhdGUgdG8gYSBtb2RlbCBzdGF0ZS5cbiAgICAgKlxuICAgICAqIEBwcml2YXRlXG4gICAgICogQHBhcmFtIHtPYmplY3R9IHVwZGF0ZSAtIHRoZSB1cGRhdGUgb2JqZWN0LiBNdXN0IGhhdmUga2V5c1xuICAgICAqICAg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ogQGRlcHJlY2F0ZWRcbiAgICAgKiBUaGUgUmVkdXggaW50ZWdyYXRpb24gQVBJIGlzIG5vdyBkZWNvdXBsZWQgZnJvbSBPUk0gYW5kIFNlc3Npb24uPGJyPlxuICAgICAqIFNlZSB0aGUgMC45IG1pZ3JhdGlvbiBndWlkZSBpbiB0aGUgR2l0SHViIHJlcG8uXG4gICAgICovXG4gICAgcmVkdWNlKCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICBcImBTZXNzaW9uLnByb3RvdHlwZS5yZWR1Y2VgIGhhcyBiZWVuIHJlbW92ZWQuIFRoZSBSZWR1eCBpbnRlZ3JhdGlvbiBBUEkgXCIgK1xuICAgICAgICAgICAgICAgIFwiaXMgbm93IGRlY291cGxlZCBmcm9tIE9STSBhbmQgU2Vzc2lvbiAtIHNlZSB0aGUgMC45IG1pZ3JhdGlvbiBndWlkZSBcIiArXG4gICAgICAgICAgICAgICAgXCJpbiB0aGUgR2l0SHViIHJlcG8uXCJcbiAgICAgICAgKTtcbiAgICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBTZXNzaW9uO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/Session.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n\n\n\n\nconst Session = /*#__PURE__*/function () {\n /**\n * Creates a new Session.\n *\n * @param {Database} db - a {@link Database} instance\n * @param {Object} state - the database state\n * @param {Boolean} [withMutations] - whether the session should mutate data\n * @param {Object} [batchToken] - used by the backend to identify objects that can be\n * mutated.\n */\n function Session(schema, db, state, withMutations, batchToken) {\n this.schema = schema;\n this.db = db;\n this.state = state || db.getEmptyState();\n this.initialState = this.state;\n this.withMutations = Boolean(withMutations);\n this.batchToken = batchToken || Object(immutable_ops__WEBPACK_IMPORTED_MODULE_1__[\"getBatchToken\"])();\n this.modelData = {};\n this.models = schema.getModelClasses();\n this.sessionBoundModels = this.models.map(modelClass => {\n function SessionBoundModel() {\n return Reflect.construct(modelClass, arguments, SessionBoundModel); // eslint-disable-line prefer-rest-params\n }\n\n Reflect.setPrototypeOf(SessionBoundModel.prototype, modelClass.prototype);\n Reflect.setPrototypeOf(SessionBoundModel, modelClass);\n Object.defineProperty(this, modelClass.modelName, {\n get: () => SessionBoundModel\n });\n SessionBoundModel.connect(this);\n return SessionBoundModel;\n });\n }\n\n var _proto = Session.prototype;\n\n _proto.getDataForModel = function getDataForModel(modelName) {\n if (!this.modelData[modelName]) {\n this.modelData[modelName] = {};\n }\n\n return this.modelData[modelName];\n };\n\n _proto.getModelData = function getModelData() {\n return this.modelData;\n };\n\n _proto.markAccessed = function markAccessed(modelName, modelIds) {\n const data = this.getDataForModel(modelName);\n\n if (!data.accessedInstances) {\n data.accessedInstances = {};\n }\n\n modelIds.forEach(id => {\n data.accessedInstances[id] = true;\n });\n };\n\n _proto.markFullTableScanned = function markFullTableScanned(modelName) {\n const data = this.getDataForModel(modelName);\n data.fullTableScanned = true;\n };\n\n _proto.markAccessedIndexes = function markAccessedIndexes(indexes) {\n indexes.forEach(([table, attr, value]) => {\n const data = this.getDataForModel(table);\n\n if (!data.accessedIndexes) {\n data.accessedIndexes = {};\n }\n\n data.accessedIndexes[attr] = [...(data.accessedIndexes[attr] || []), value];\n });\n };\n\n /**\n * Applies update to a model state.\n *\n * @private\n * @param {Object} update - the update object. Must have keys\n * `type`, `payload`.\n */\n _proto.applyUpdate = function applyUpdate(updateSpec) {\n const tx = this._getTransaction(updateSpec);\n\n const result = this.db.update(updateSpec, tx, this.state);\n const {\n status,\n state,\n payload\n } = result;\n\n if (status !== _constants__WEBPACK_IMPORTED_MODULE_2__[\"SUCCESS\"]) {\n throw new Error(`Applying update failed with status ${status}. Payload: ${payload}`);\n }\n\n this.state = state;\n return payload;\n };\n\n _proto.query = function query(querySpec) {\n const result = this.db.query(querySpec, this.state);\n\n this._markAccessedByQuery(querySpec, result);\n\n return result;\n };\n\n _proto._getTransaction = function _getTransaction(updateSpec) {\n const {\n withMutations\n } = this;\n const {\n action\n } = updateSpec;\n let {\n batchToken\n } = this;\n\n if ([_constants__WEBPACK_IMPORTED_MODULE_2__[\"UPDATE\"], _constants__WEBPACK_IMPORTED_MODULE_2__[\"DELETE\"]].includes(action)) {\n batchToken = Object(immutable_ops__WEBPACK_IMPORTED_MODULE_1__[\"getBatchToken\"])();\n }\n\n return {\n batchToken,\n withMutations\n };\n };\n\n _proto._markAccessedByQuery = function _markAccessedByQuery(querySpec, result) {\n const {\n table,\n clauses\n } = querySpec;\n const {\n rows\n } = result;\n const {\n idAttribute\n } = this[table];\n const accessedIds = new Set(rows.map(row => row[idAttribute]));\n const anyClauseFilteredByPk = clauses.some(clause => {\n if (!Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"clauseFiltersByAttribute\"])(clause, idAttribute)) {\n return false;\n }\n /**\n * We previously knew which row we wanted to access,\n * so there was no need to scan the entire table.\n */\n\n\n accessedIds.add(clause.payload[idAttribute]);\n return true;\n });\n const accessedIndexes = [];\n const {\n indexes\n } = this.state[table];\n clauses.forEach(clause => {\n Object.keys(indexes).forEach(attr => {\n if (!Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"clauseFiltersByAttribute\"])(clause, attr)) {\n return;\n }\n\n const value = clause.payload[attr];\n accessedIndexes.push([table, attr, value]);\n });\n });\n\n if (anyClauseFilteredByPk) {\n /**\n * The clauses have been ordered so that an indexed one was\n * the first to have been evaluated, and thus only the row\n * with the specified PK value has actually been accessed.\n */\n this.markAccessed(table, accessedIds);\n } else if (accessedIndexes.length) {\n /**\n * At least one clause was optimized using indexes.\n */\n this.markAccessed(table, accessedIds);\n this.markAccessedIndexes(accessedIndexes);\n } else {\n /**\n * At least one clause could not be efficiently optimized\n * or no clause was specified at all.\n */\n this.markFullTableScanned(table);\n }\n } // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Access {@link Session#state} instead.\n */\n ;\n\n _proto.getNextState = function getNextState() {\n Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"warnDeprecated\"])(\"`Session.prototype.getNextState` has been deprecated. Access \" + \"the `Session.prototype.state` property instead.\");\n return this.state;\n }\n /**\n * @deprecated\n * The Redux integration API is now decoupled from ORM and Session.
\n * See the 0.9 migration guide in the GitHub repo.\n */\n ;\n\n _proto.reduce = function reduce() {\n throw new Error(\"`Session.prototype.reduce` has been removed. The Redux integration API \" + \"is now decoupled from ORM and Session - see the 0.9 migration guide \" + \"in the GitHub repo.\");\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Session, [{\n key: \"accessedModelInstances\",\n get: function () {\n return Object.entries(this.getModelData()).reduce((result, [key, value]) => {\n if (value.accessedInstances) {\n result[key] = value.accessedInstances;\n }\n\n return result;\n }, {});\n }\n }, {\n key: \"fullTableScannedModels\",\n get: function () {\n return Object.entries(this.getModelData()).reduce((result, [key, value]) => {\n if (value.fullTableScanned) {\n result.push(key);\n }\n\n return result;\n }, []);\n }\n }, {\n key: \"accessedIndexes\",\n get: function () {\n return Object.entries(this.getModelData()).reduce((result, [key, value]) => {\n if (value.accessedIndexes) {\n result[key] = value.accessedIndexes;\n }\n\n return result;\n }, {});\n }\n }]);\n\n return Session;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Session);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9TZXNzaW9uLmpzPzU5MWMiXSwibmFtZXMiOlsiU2Vzc2lvbiIsInNjaGVtYSIsImRiIiwic3RhdGUiLCJ3aXRoTXV0YXRpb25zIiwiYmF0Y2hUb2tlbiIsImdldEVtcHR5U3RhdGUiLCJpbml0aWFsU3RhdGUiLCJCb29sZWFuIiwiZ2V0QmF0Y2hUb2tlbiIsIm1vZGVsRGF0YSIsIm1vZGVscyIsImdldE1vZGVsQ2xhc3NlcyIsInNlc3Npb25Cb3VuZE1vZGVscyIsIm1hcCIsIm1vZGVsQ2xhc3MiLCJTZXNzaW9uQm91bmRNb2RlbCIsIlJlZmxlY3QiLCJjb25zdHJ1Y3QiLCJhcmd1bWVudHMiLCJzZXRQcm90b3R5cGVPZiIsInByb3RvdHlwZSIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwibW9kZWxOYW1lIiwiZ2V0IiwiY29ubmVjdCIsImdldERhdGFGb3JNb2RlbCIsImdldE1vZGVsRGF0YSIsIm1hcmtBY2Nlc3NlZCIsIm1vZGVsSWRzIiwiZGF0YSIsImFjY2Vzc2VkSW5zdGFuY2VzIiwiZm9yRWFjaCIsImlkIiwibWFya0Z1bGxUYWJsZVNjYW5uZWQiLCJmdWxsVGFibGVTY2FubmVkIiwibWFya0FjY2Vzc2VkSW5kZXhlcyIsImluZGV4ZXMiLCJ0YWJsZSIsImF0dHIiLCJ2YWx1ZSIsImFjY2Vzc2VkSW5kZXhlcyIsImFwcGx5VXBkYXRlIiwidXBkYXRlU3BlYyIsInR4IiwiX2dldFRyYW5zYWN0aW9uIiwicmVzdWx0IiwidXBkYXRlIiwic3RhdHVzIiwicGF5bG9hZC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ICAgIGRhdGEuYWNjZXNzZWRJbnN0YW5jZXMgPSB7fTtcbiAgICAgICAgfVxuICAgICAgICBtb2RlbElkcy5mb3JFYWNoKChpZCkgPT4ge1xuICAgICAgICAgICAgZGF0YS5hY2Nlc3NlZEluc3RhbmNlc1tpZF0gPSB0cnVlO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBnZXQgYWNjZXNzZWRNb2RlbEluc3RhbmNlcygpIHtcbiAgICAgICAgcmV0dXJuIE9iamVjdC5lbnRyaWVzKHRoaXMuZ2V0TW9kZWxEYXRhKCkpLnJlZHVjZShcbiAgICAgICAgICAgIChyZXN1bHQsIFtrZXksIHZhbHVlXSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh2YWx1ZS5hY2Nlc3NlZEluc3RhbmNlcykge1xuICAgICAgICAgICAgICAgICAgICByZXN1bHRba2V5XSA9IHZhbHVlLmFjY2Vzc2VkSW5zdGFuY2VzO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHt9XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgbWFya0Z1bGxUYWJsZVNjYW5uZWQobW9kZWxOYW1lKSB7XG4gICAgICAgIGNvbnN0IGRhdGEgPSB0aGlzLmdldERhdGFGb3JNb2RlbChtb2RlbE5hbWUpO1xuICAgICAgICBkYXRhLmZ1bGxUYWJsZVNjYW5uZWQgPSB0cnVlO1xuICAgIH1cblxuICAgIGdldCBmdWxsVGFibGVTY2FubmVkTW9kZWxzKCkge1xuICAgICAgICByZXR1cm4gT2JqZWN0LmVudHJpZXModGhpcy5nZXRNb2RlbERhdGEoKSkucmVkdWNlKFxuICAgICAgICAgICAgKHJlc3VsdCwgW2tleSwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHZhbHVlLmZ1bGxUYWJsZVNjYW5uZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goa2V5KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbXVxuICAgICAgICApO1xuICAgIH1cblxuICAgIG1hcmtBY2Nlc3NlZEluZGV4ZXMoaW5kZXhlcykge1xuICAgICAgICBpbmRleGVzLmZvckVhY2goKFt0YWJsZSwgYXR0ciwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBkYXRhID0gdGhpcy5nZXREYXRhRm9yTW9kZWwodGFibGUpO1xuICAgICAgICAgICAgaWYgKCFkYXRhLmFjY2Vzc2VkSW5kZXhlcykge1xuICAgICAgICAgICAgICAgIGRhdGEuYWNjZXNzZWRJbmRleGVzID0ge307XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBkYXRhLmFjY2Vzc2VkSW5kZXhlc1thdHRyXSA9IFtcbiAgICAgICAgICAgICAgICAuLi4oZGF0YS5hY2Nlc3NlZEluZGV4ZXNbYXR0cl0gfHwgW10pLFxuICAgICAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgXTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgZ2V0IGFjY2Vzc2VkSW5kZXhlcygpIHtcbiAgICAgICAgcmV0dXJuIE9iamVjdC5lbnRyaWVzKHRoaXMuZ2V0TW9kZWxEYXRhKCkpLnJlZHVjZShcbiAgICAgICAgICAgIChyZXN1bHQsIFtrZXksIHZhbHVlXSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh2YWx1ZS5hY2Nlc3NlZEluZGV4ZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0W2tleV0gPSB2YWx1ZS5hY2Nlc3NlZEluZGV4ZXM7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAge31cbiAgICAgICAgKTtcb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HJlY2F0ZWQuIEFjY2VzcyBcIiArXG4gICAgICAgICAgICAgICAgXCJ0aGUgYFNlc3Npb24ucHJvdG90eXBlLnN0YXRlYCBwcm9wZXJ0eSBpbnN0ZWFkLlwiXG4gICAgICAgICk7XG4gICAgICAgIHJldHVybiB0aGlzLnN0YXRlO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEBkZXByZWNhdGVkXG4gICAgICogVGhlIFJlZHV4IGludGVncmF0aW9uIEFQSSBpcyBub3cgZGVjb3VwbGVkIGZyb20gT1JNIGFuZCBTZXNzaW9uLjxicj5cbiAgICAgKiBTZWUgdGhlIDAuOSBtaWdyYXRpb24gZ3VpZGUgaW4gdGhlIEdpdEh1YiByZXBvLlxuICAgICAqL1xuICAgIHJlZHVjZSgpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgXCJgU2Vzc2lvbi5wcm90b3R5cGUucmVkdWNlYCBoYXMgYmVlbiByZW1vdmVkLiBUaGUgUmVkdXggaW50ZWdyYXRpb24gQVBJIFwiICtcbiAgICAgICAgICAgICAgICBcImlzIG5vdyBkZWNvdXBsZWQgZnJvbSBPUk0gYW5kIFNlc3Npb24gLSBzZWUgdGhlIDAuOSBtaWdyYXRpb24gZ3VpZGUgXCIgK1xuICAgICAgICAgICAgICAgIFwiaW4gdGhlIEdpdEh1YiByZXBvLlwiXG4gICAgICAgICk7XG4gICAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgU2Vzc2lvbjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Session.js\n"); + + /***/ }), + +@@ -4510,7 +4532,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createDatabase\", function() { return createDatabase; });\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ \"./src/constants.js\");\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table */ \"./src/db/Table.js\");\n\n\n\nconst BASE_EMPTY_STATE = {};\nObject.defineProperty(BASE_EMPTY_STATE, _constants__WEBPACK_IMPORTED_MODULE_1__[\"STATE_FLAG\"], {\n enumerable: true,\n value: true\n});\n/** @private */\n\nfunction replaceTableState(tableName, newTableState, tx, state) {\n const {\n batchToken,\n withMutations\n } = tx;\n\n if (withMutations) {\n state[tableName] = newTableState;\n return state;\n }\n\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.set(batchToken, tableName, newTableState, state);\n}\n/** @private */\n\n\nfunction query(tables, querySpec, state) {\n const {\n table: tableName,\n clauses\n } = querySpec;\n const table = tables[tableName];\n const rows = table.query(state[tableName], clauses);\n return {\n rows\n };\n}\n/** @private */\n\n\nfunction update(tables, updateSpec, tx, state) {\n const {\n action,\n payload\n } = updateSpec;\n let tableName;\n let nextTableState;\n let resultPayload;\n\n if (action === _constants__WEBPACK_IMPORTED_MODULE_1__[\"CREATE\"]) {\n ({\n table: tableName\n } = updateSpec);\n const table = tables[tableName];\n const currTableState = state[tableName];\n const result = table.insert(tx, currTableState, payload);\n nextTableState = result.state;\n resultPayload = result.created;\n } else {\n const {\n query: querySpec\n } = updateSpec;\n ({\n table: tableName\n } = querySpec);\n const {\n rows\n } = query(tables, querySpec, state);\n const table = tables[tableName];\n const currTableState = state[tableName];\n\n if (action === _constants__WEBPACK_IMPORTED_MODULE_1__[\"UPDATE\"]) {\n nextTableState = table.update(tx, currTableState, rows, payload); // return updated rows\n\n resultPayload = query(tables, querySpec, state).rows;\n } else if (action === _constants__WEBPACK_IMPORTED_MODULE_1__[\"DELETE\"]) {\n nextTableState = table.delete(tx, currTableState, rows); // return original rows that we just deleted\n\n resultPayload = rows;\n } else {\n throw new Error(`Database received unknown update type: ${action}`);\n }\n }\n\n const nextDBState = replaceTableState(tableName, nextTableState, tx, state);\n return {\n status: _constants__WEBPACK_IMPORTED_MODULE_1__[\"SUCCESS\"],\n state: nextDBState,\n payload: resultPayload\n };\n}\n/**\n * @memberof db\n * @param {Object} schemaSpec\n * @return Object database\n */\n\n\nfunction createDatabase(schemaSpec) {\n const {\n tables: tableSpecs\n } = schemaSpec;\n const tables = Object.entries(tableSpecs).reduce((map, [tableName, tableSpec]) => ({ ...map,\n [tableName]: new _Table__WEBPACK_IMPORTED_MODULE_2__[\"default\"](tableSpec)\n }), {});\n\n const getEmptyState = () => Object.entries(tables).reduce((map, [tableName, table]) => ({ ...map,\n [tableName]: table.getEmptyState()\n }), BASE_EMPTY_STATE);\n\n return {\n getEmptyState,\n query: query.bind(null, tables),\n update: update.bind(null, tables),\n // Used to inspect the schema.\n describe: tableName => tables[tableName]\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (createDatabase);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kYi9EYXRhYmFzZS5qcz9lZjAxIl0sIm5hbWVzIjpbIkJBU0VfRU1QVFlfU1RBVEUiLCJPYmplY3QiLCJkZWZpbmVQcm9wZXJ0eSIsIlNUQVRFX0ZMQUciLCJlbnVtZXJhYmxlIiwidmFsdWUiLCJyZXBsYWNlVGFibGVTdGF0ZSIsInRhYmxlTmFtZSIsIm5ld1RhYmxlU3RhdGUiLCJ0eCIsInN0YXRlIiwiYmF0Y2hUb2tlbiIsIndpdGhNdXRhdGlvbnMiLCJvcHMiLCJiYXRjaCIsInNldCIsInF1ZXJ5IiwidGFibGVzIiwicXVlcnlTcGVjIiwidGFibGUiLCJjbGF1c2VzIiwic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mJpbmQobnVsbCwgdGFibGVzKSxcbiAgICAgICAgLy8gVXNlZCB0byBpbnNwZWN0IHRoZSBzY2hlbWEuXG4gICAgICAgIGRlc2NyaWJlOiB0YWJsZU5hbWUgPT4gdGFibGVzW3RhYmxlTmFtZV0sXG4gICAgfTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgY3JlYXRlRGF0YWJhc2U7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/db/Database.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createDatabase\", function() { return createDatabase; });\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ \"./src/constants.js\");\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table */ \"./src/db/Table.js\");\n\n\n\nconst BASE_EMPTY_STATE = {};\nObject.defineProperty(BASE_EMPTY_STATE, _constants__WEBPACK_IMPORTED_MODULE_1__[\"STATE_FLAG\"], {\n enumerable: true,\n value: true\n});\n/** @private */\n\nfunction replaceTableState(tableName, newTableState, tx, state) {\n const {\n batchToken,\n withMutations\n } = tx;\n\n if (withMutations) {\n state[tableName] = newTableState;\n return state;\n }\n\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.set(batchToken, tableName, newTableState, state);\n}\n/** @private */\n\n\nfunction query(tables, querySpec, state) {\n const {\n table: tableName,\n clauses\n } = querySpec;\n const table = tables[tableName];\n const rows = table.query(state[tableName], clauses);\n return {\n rows\n };\n}\n/** @private */\n\n\nfunction update(tables, updateSpec, tx, state) {\n const {\n action,\n payload\n } = updateSpec;\n let tableName;\n let nextTableState;\n let resultPayload;\n\n if (action === _constants__WEBPACK_IMPORTED_MODULE_1__[\"CREATE\"]) {\n ({\n table: tableName\n } = updateSpec);\n const table = tables[tableName];\n const currTableState = state[tableName];\n const result = table.insert(tx, currTableState, payload);\n nextTableState = result.state;\n resultPayload = result.created;\n } else {\n const {\n query: querySpec\n } = updateSpec;\n ({\n table: tableName\n } = querySpec);\n const {\n rows\n } = query(tables, querySpec, state);\n const table = tables[tableName];\n const currTableState = state[tableName];\n\n if (action === _constants__WEBPACK_IMPORTED_MODULE_1__[\"UPDATE\"]) {\n nextTableState = table.update(tx, currTableState, rows, payload); // return updated rows\n\n resultPayload = query(tables, querySpec, state).rows;\n } else if (action === _constants__WEBPACK_IMPORTED_MODULE_1__[\"DELETE\"]) {\n nextTableState = table.delete(tx, currTableState, rows); // return original rows that we just deleted\n\n resultPayload = rows;\n } else {\n throw new Error(`Database received unknown update type: ${action}`);\n }\n }\n\n const nextDBState = replaceTableState(tableName, nextTableState, tx, state);\n return {\n status: _constants__WEBPACK_IMPORTED_MODULE_1__[\"SUCCESS\"],\n state: nextDBState,\n payload: resultPayload\n };\n}\n/**\n * @memberof db\n * @param {Object} schemaSpec\n * @return Object database\n */\n\n\nfunction createDatabase(schemaSpec) {\n const {\n tables: tableSpecs\n } = schemaSpec;\n const tables = Object.entries(tableSpecs).reduce((map, [tableName, tableSpec]) => ({ ...map,\n [tableName]: new _Table__WEBPACK_IMPORTED_MODULE_2__[\"default\"](tableSpec)\n }), {});\n\n const getEmptyState = () => Object.entries(tables).reduce((map, [tableName, table]) => ({ ...map,\n [tableName]: table.getEmptyState()\n }), BASE_EMPTY_STATE);\n\n return {\n getEmptyState,\n query: query.bind(null, tables),\n update: update.bind(null, tables),\n // Used to inspect the schema.\n describe: tableName => tables[tableName]\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (createDatabase);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy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5lbnRyaWVzKHRhYmxlcykucmVkdWNlKFxuICAgICAgICAgICAgKG1hcCwgW3RhYmxlTmFtZSwgdGFibGVdKSA9PiAoe1xuICAgICAgICAgICAgICAgIC4uLm1hcCxcbiAgICAgICAgICAgICAgICBbdGFibGVOYW1lXTogdGFibGUuZ2V0RW1wdHlTdGF0ZSgpLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBCQVNFX0VNUFRZX1NUQVRFXG4gICAgICAgICk7XG5cbiAgICByZXR1cm4ge1xuICAgICAgICBnZXRFbXB0eVN0YXRlLFxuICAgICAgICBxdWVyeTogcXVlcnkuYmluZChudWxsLCB0YWJsZXMpLFxuICAgICAgICB1cGRhdGU6IHVwZGF0ZS5iaW5kKG51bGwsIHRhYmxlcyksXG4gICAgICAgIC8vIFVzZWQgdG8gaW5zcGVjdCB0aGUgc2NoZW1hLlxuICAgICAgICBkZXNjcmliZTogKHRhYmxlTmFtZSkgPT4gdGFibGVzW3RhYmxlTmFtZV0sXG4gICAgfTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgY3JlYXRlRGF0YWJhc2U7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/db/Database.js\n"); + + /***/ }), + +@@ -4522,7 +4544,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Table\", function() { return Table; });\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/filter */ \"./node_modules/lodash/filter.js\");\n/* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/orderBy */ \"./node_modules/lodash/orderBy.js\");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_reject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/reject */ \"./node_modules/lodash/reject.js\");\n/* harmony import */ var lodash_reject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_reject__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/sortBy */ \"./node_modules/lodash/sortBy.js\");\n/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_sortBy__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ \"./src/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n\n\n\n\nconst DEFAULT_TABLE_OPTIONS = {\n idAttribute: \"id\",\n arrName: \"items\",\n mapName: \"itemsById\",\n fields: {}\n};\n/**\n * @private\n * @param {*} _currMax - the current max id\n * @param {*} userPassedId - the new id passed to the create action\n *\n * Both may be undefined. The current max id in the case that this is the first Model\n * being created, and the new id if the id was not explicitly passed to the\n * database.\n *\n * @return {Array} the new max id and the id to use to create the new row\n *\n * If the id's are strings, the id must be passed explicitly every time.\n * In this case, the current max id will remain `NaN` due to `Math.max`, but that's fine.\n */\n\nfunction idSequencer(_currMax, userPassedId) {\n let currMax = _currMax;\n let newMax;\n let newId;\n\n if (currMax === undefined) {\n currMax = -1;\n }\n\n if (userPassedId === undefined) {\n newMax = currMax + 1;\n newId = newMax;\n } else {\n newMax = Math.max(currMax + 1, userPassedId);\n newId = userPassedId;\n }\n\n return [newMax, // new max id\n newId // id to use for row creation\n ];\n}\n/**\n * Adapt order directions array to @{lodash.orderBy} API.\n *\n * @private\n *\n * @param {Array} orders? - an array of optional order query directions as provided to {@Link {QuerySet.orderBy}}\n * @return {Array<'asc'|'desc'>|undefined} A normalized ordering array or undefined if none was provided.\n */\n\n\nfunction normalizeOrders(orders) {\n if (orders === undefined) {\n return undefined;\n }\n\n const convert = order => {\n if ([\"desc\", false].includes(order)) {\n return \"desc\";\n }\n\n return \"asc\";\n };\n\n return Array.isArray(orders) ? orders.map(convert) : convert(orders);\n}\n/**\n * Handles the underlying data structure for a {@link Model} class.\n * @private\n */\n\n\nlet Table = /*#__PURE__*/function () {\n /**\n * Creates a new {@link Table} instance.\n * @param {Object} userOpts - options to use.\n * @param {string} [userOpts.idAttribute=id] - the id attribute of the entity.\n * @param {string} [userOpts.arrName=items] - the state attribute where an array of\n * entity id's are stored\n * @param {string} [userOpts.mapName=itemsById] - the state attribute where the entity objects\n * are stored in a id to entity object\n * map.\n * @param {string} [userOpts.fields={}] - mapping of field key to {@link Field} object\n */\n function Table(userOpts) {\n Object.assign(this, DEFAULT_TABLE_OPTIONS, userOpts);\n }\n /**\n * Returns a reference to the object at index `id`\n * in state `branch`.\n *\n * @param {Object} branch - the state\n * @param {Number} id - the id of the object to get\n * @return {Object|undefined} A reference to the raw object in the state or\n * `undefined` if not found.\n */\n\n\n var _proto = Table.prototype;\n\n _proto.accessId = function accessId(branch, id) {\n return branch[this.mapName][id];\n };\n\n _proto.accessIds = function accessIds(branch, ids) {\n const map = branch[this.mapName];\n return ids.map(id => map[id]);\n };\n\n _proto.idExists = function idExists(branch, id) {\n return branch[this.mapName].hasOwnProperty(id);\n };\n\n _proto.accessIdList = function accessIdList(branch) {\n return branch[this.arrName];\n };\n\n _proto.accessList = function accessList(branch) {\n return this.accessIds(branch, this.accessIdList(branch));\n };\n\n _proto.getMaxId = function getMaxId(branch) {\n return this.getMeta(branch, \"maxId\");\n };\n\n _proto.setMaxId = function setMaxId(tx, branch, newMaxId) {\n return this.setMeta(tx, branch, \"maxId\", newMaxId);\n };\n\n _proto.nextId = function nextId(id) {\n return id + 1;\n }\n /**\n * Returns the default state for the data structure.\n * @return {Object} The default state for this {@link ORM} instance's data structure\n */\n ;\n\n _proto.getEmptyState = function getEmptyState() {\n const pkIndex = {\n [this.arrName]: [],\n [this.mapName]: {}\n };\n const attrIndexes = Object.keys(this.fields).filter(attr => attr !== this.idAttribute).filter(attr => this.fields[attr].index).reduce((indexes, attr) => ({ ...indexes,\n [attr]: {}\n }), {});\n return { ...pkIndex,\n indexes: attrIndexes,\n meta: {}\n };\n };\n\n _proto.setMeta = function setMeta(tx, branch, key, value) {\n const {\n batchToken,\n withMutations\n } = tx;\n\n if (withMutations) {\n const res = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.setIn([\"meta\", key], value, branch);\n return res;\n }\n\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.setIn(batchToken, [\"meta\", key], value, branch);\n };\n\n _proto.getMeta = function getMeta(branch, key) {\n return branch.meta[key];\n };\n\n _proto.query = function query(branch, clauses) {\n if (clauses.length === 0) {\n return this.accessList(branch);\n }\n\n const {\n idAttribute\n } = this;\n const optimallyOrderedClauses = lodash_sortBy__WEBPACK_IMPORTED_MODULE_4___default()(clauses, clause => {\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseFiltersByAttribute\"])(clause, idAttribute)) {\n return 1;\n }\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseReducesResultSetSize\"])(clause)) {\n return 2;\n }\n\n return 3;\n });\n\n const reducer = (rows, clause) => {\n const {\n type,\n payload\n } = clause;\n\n if (!rows) {\n /**\n * First time this reducer is called during query.\n * This is where we apply query optimizations.\n */\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseFiltersByAttribute\"])(clause, idAttribute)) {\n /**\n * Payload specified a primary key. Use PK index\n * to look up the single row identified by the PK.\n */\n const id = payload[idAttribute];\n const remainingPayload = Object.keys(payload).reduce((withoutPkAttr, filterAttr) => {\n if (filterAttr !== idAttribute) {\n withoutPkAttr[filterAttr] = payload[filterAttr];\n }\n\n return withoutPkAttr;\n }, {});\n const ids = this.idExists(branch, id) ? [id] : [];\n\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-PK columns.\n * Filter accessed row by remaining payload (if one was found).\n */\n return reducer(this.accessIds(branch, ids), { ...clause,\n payload: remainingPayload\n });\n }\n /**\n * No need to filter these rows any further.\n * The primary key value satisfies this clause's conditions.\n */\n\n\n return this.accessIds(branch, ids);\n }\n\n if (type === _constants__WEBPACK_IMPORTED_MODULE_5__[\"FILTER\"] && typeof payload === \"object\") {\n const indexes = Object.entries(branch.indexes);\n const accessedIndexes = [];\n const indexAttrs = [];\n indexes.forEach(([attr, index]) => {\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseFiltersByAttribute\"])(clause, attr)) {\n /**\n * Payload specified an indexed attribute. Use index\n * to potentially decrease amount of accessed rows.\n */\n if (index.hasOwnProperty(payload[attr])) {\n accessedIndexes.push(index[payload[attr]]);\n indexAttrs.push(attr);\n }\n }\n });\n /**\n * Calculate set of unique PK values corresponding to each\n * foreign key's attribute value. Then retrieve all those rows.\n */\n\n if (accessedIndexes.length) {\n const lastIndex = accessedIndexes.pop();\n const indexedIds = accessedIndexes.reduce((result, index) => {\n const indexSet = new Set(index);\n return result.filter(Set.prototype.has, indexSet);\n }, lastIndex);\n const remainingPayload = Object.keys(payload).reduce((withoutIndexAttrs, filterAttr) => {\n if (!indexAttrs.includes(filterAttr)) {\n withoutIndexAttrs[filterAttr] = payload[filterAttr];\n }\n\n return withoutIndexAttrs;\n }, {});\n\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-indexed columns.\n * Filter indexed rows by remaining payload (if any were found).\n */\n return reducer(this.accessIds(branch, indexedIds), { ...clause,\n payload: remainingPayload\n });\n }\n /**\n * No need to filter these rows any further.\n * The used indexes satisfy this clause's conditions.\n */\n\n\n return this.accessIds(branch, indexedIds);\n }\n } // Give up optimization: Retrieve all rows (full table scan).\n\n\n return reducer(this.accessList(branch), clause);\n }\n\n switch (type) {\n case _constants__WEBPACK_IMPORTED_MODULE_5__[\"FILTER\"]:\n {\n return lodash_filter__WEBPACK_IMPORTED_MODULE_1___default()(rows, payload);\n }\n\n case _constants__WEBPACK_IMPORTED_MODULE_5__[\"EXCLUDE\"]:\n {\n return lodash_reject__WEBPACK_IMPORTED_MODULE_3___default()(rows, payload);\n }\n\n case _constants__WEBPACK_IMPORTED_MODULE_5__[\"ORDER_BY\"]:\n {\n const [iteratees, orders] = payload;\n return lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default()(rows, iteratees, normalizeOrders(orders));\n }\n\n default:\n return rows;\n }\n };\n\n return optimallyOrderedClauses.reduce(reducer, undefined);\n }\n /**\n * Returns the data structure including a new object `entry`\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object} entry - the object to insert\n * @return {Object} an object with two keys: `state` and `created`.\n * `state` is the new table state and `created` is the\n * row that was created.\n */\n ;\n\n _proto.insert = function insert(tx, branch, entry) {\n const {\n batchToken,\n withMutations\n } = tx;\n const hasId = entry.hasOwnProperty(this.idAttribute);\n let workingState = branch; // This will not affect string id's.\n\n const [newMaxId, id] = idSequencer(this.getMaxId(branch), entry[this.idAttribute]);\n workingState = this.setMaxId(tx, branch, newMaxId);\n const finalEntry = hasId ? entry : immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.set(batchToken, this.idAttribute, id, entry);\n const indexesToAppendTo = Object.keys(workingState.indexes).filter(fkAttr => entry.hasOwnProperty(fkAttr) && entry[fkAttr] !== null).map(fkAttr => [fkAttr, entry[fkAttr]]);\n\n if (withMutations) {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.push(id, workingState[this.arrName]);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.set(id, finalEntry, workingState[this.mapName]); // add id to indexes\n\n indexesToAppendTo.forEach(([attr, value]) => {\n const attrIndex = workingState.indexes[attr];\n\n if (attrIndex.hasOwnProperty(value)) {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.push(id, attrIndex[value]);\n } else {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.set(value, [id], attrIndex);\n }\n });\n return {\n state: workingState,\n created: finalEntry\n };\n }\n\n const nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, indexesToAppendTo.reduce((indexMap, [attr, value]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [value]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.push(batchToken, id, indexMap[attr][value] || [])\n }, indexMap[attr]);\n return indexMap;\n }, { ...workingState.indexes\n }), workingState.indexes);\n const nextState = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [this.arrName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.push(batchToken, id, workingState[this.arrName]),\n [this.mapName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [id]: finalEntry\n }, workingState[this.mapName]),\n indexes: nextIndexes\n }, workingState);\n return {\n state: nextState,\n created: finalEntry\n };\n }\n /**\n * Returns the data structure with objects where `rows`\n * are merged with `mergeObj`.\n *\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @param {Object} mergeObj - The object to merge with each row.\n * @return {Object}\n */\n ;\n\n _proto.update = function update(tx, branch, rows, mergeObj) {\n const {\n batchToken,\n withMutations\n } = tx;\n\n const mergeObjInto = row => {\n const merge = withMutations ? immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.merge : immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken);\n return merge(mergeObj, row);\n };\n\n const set = withMutations ? immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.set : immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.set(batchToken);\n const indexedAttrs = Object.keys(branch.indexes).filter(attr => mergeObj.hasOwnProperty(attr));\n const indexIdsToAdd = [];\n const indexIdsToDelete = [];\n const nextMap = rows.reduce((map, row) => {\n const prevAttrValues = indexedAttrs.reduce((valueMap, attr) => ({ ...valueMap,\n [attr]: row[attr]\n }), {});\n const result = mergeObjInto(row);\n const nextAttrValues = indexedAttrs.reduce((valueMap, attr) => ({ ...valueMap,\n [attr]: result[attr]\n }), {});\n const id = result[this.idAttribute];\n const nextRow = set(id, result, map);\n indexedAttrs.forEach(attr => {\n const {\n [attr]: prevValue\n } = prevAttrValues;\n const {\n [attr]: nextValue\n } = nextAttrValues;\n\n if (prevValue === nextValue) {\n // attribute has not changed, no need to update any index\n return;\n }\n\n if (prevValue !== null && typeof prevValue !== \"undefined\") {\n // remove id from attribute's index for its old value\n indexIdsToDelete.push([attr, prevValue, id]);\n }\n\n if (nextValue !== null) {\n // add id to attribute's index for its new value\n indexIdsToAdd.push([attr, nextValue, id]);\n }\n });\n return nextRow;\n }, branch[this.mapName]);\n let nextIndexes = branch.indexes;\n\n if (withMutations) {\n indexIdsToDelete.forEach(([attr, value, id]) => {\n const arr = nextIndexes[attr][value];\n const idx = arr.indexOf(id);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.splice(idx, 1, [], arr);\n });\n indexIdsToAdd.forEach(([attr, value, id]) => {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.push(id, nextIndexes[attr][value]);\n });\n } else {\n if (indexIdsToAdd.length) {\n nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, indexIdsToAdd.reduce((indexMap, [attr, value, id]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [value]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.push(batchToken, id, indexMap[attr][value] || [])\n }, indexMap[attr]);\n return indexMap;\n }, { ...nextIndexes\n }), nextIndexes);\n }\n\n if (indexIdsToDelete.length) {\n nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, indexIdsToDelete.reduce((indexMap, [attr, value, id]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [value]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.filter(batchToken, rowId => rowId !== id, indexMap[attr][value])\n }, indexMap[attr]);\n return indexMap;\n }, { ...nextIndexes\n }), nextIndexes);\n }\n }\n\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [this.mapName]: nextMap,\n indexes: nextIndexes\n }, branch);\n }\n /**\n * Returns the data structure without rows `rows`.\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @return {Object} the data structure without ids in `idsToDelete`.\n */\n ;\n\n _proto.delete = function _delete(tx, branch, rows) {\n const {\n batchToken,\n withMutations\n } = tx;\n const {\n arrName,\n mapName\n } = this;\n const arr = branch[arrName];\n const idsToDelete = rows.map(row => row[this.idAttribute]);\n\n if (withMutations) {\n idsToDelete.forEach(id => {\n const idx = arr.indexOf(id);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.splice(idx, 1, [], arr);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.omit(id, branch[mapName]);\n }); // delete ids from all indexes\n\n Object.values(branch.indexes).forEach(attrIndex => Object.values(attrIndex).forEach(valueIndex => idsToDelete.forEach(id => {\n const idx = valueIndex.indexOf(id);\n\n if (idx !== -1) {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.splice(idx, 1, [], valueIndex);\n }\n })));\n return branch;\n }\n\n const nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, Object.entries(branch.indexes).reduce((indexMap, [attr, attrIndex]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, Object.entries(attrIndex).reduce((attrIndexMap, [value, valueIndex]) => {\n attrIndexMap[value] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.filter(batchToken, id => !idsToDelete.includes(id), valueIndex);\n return attrIndexMap;\n }, { ...indexMap[attr]\n }), indexMap[attr]);\n return indexMap;\n }, { ...branch.indexes\n }), branch.indexes);\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [arrName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.filter(batchToken, id => !idsToDelete.includes(id), branch[arrName]),\n [mapName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.omit(batchToken, idsToDelete, branch[mapName]),\n indexes: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, nextIndexes, branch.indexes)\n }, branch);\n };\n\n return Table;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kYi9UYWJsZS5qcz83NDk3Il0sIm5hbWVzIjpbIkRFRkFVTFRfVEFCTEVfT1BUSU9OUyIsImlkQX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W1lPWl0ZW1zQnlJZF0gLSB0aGUgc3RhdGUgYXR0cmlidXRlIHdoZXJlIHRoZSBlbnRpdHkgb2JqZWN0c1xuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFyZSBzdG9yZWQgaW4gYSBpZCB0byBlbnRpdHkgb2JqZWN0XG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLlxuICAgICAqIEBwYXJhbSAge3N0cmluZ30gW3VzZXJPcHRzLmZpZWxkcz17fV0gLSBtYXBwaW5nIG9mIGZpZWxkIGtleSB0byB7QGxpbmsgRmllbGR9IG9iamVjdFxuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKHVzZXJPcHRzKSB7XG4gICAgICAgIE9iamVjdC5hc3NpZ24odGhpcywgREVGQVVMVF9UQUJMRV9PUFRJT05TLCB1c2VyT3B0cyk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIHJlZmVyZW5jZSB0byB0aGUgb2JqZWN0IGF0IGluZGV4IGBpZGBcbiAgICAgKiBpbiBzdGF0ZSBgYnJhbmNoYC5cbiAgICAgKlxuICAgICAqIEBwYXJhbSAge09iamVjdH0gYnJhbmNoIC0gdGhlIHN0YXRlXG4gICAgICogQHBhcmFtICB7TnVtYmVyfSBpZCAtIHRoZSBpZCBvZiB0aGUgb2JqZWN0IHRvIGdldFxuICAgICAqIEByZXR1cm4ge09iamVjdHx1bmRlZmluZWR9IEEgcmVmZXJlbmNlIHRvIHRoZSByYXcgb2JqZWN0IGluIHRoZSBzdGF0ZSBvclxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgIGB1bmRlZmluZWRgIGlmIG5vdCBmb3VuZC5cbiAgICAgKi9cbiAgICBhY2Nlc3NJZChicmFuY2gsIGlkKSB7XG4gICAgICAgIHJldHVybiBicmFuY2hbdGhpcy5tYXBOYW1lXVtpZF07XG4gICAgfVx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gICAgICAgIGNvbnN0IHBrSW5kZXggPSB7XG4gICAgICAgICAgICBbdGhpcy5hcnJOYW1lXTogW10sXG4gICAgICAgICAgICBbdGhpcy5tYXBOYW1lXToge30sXG4gICAgICAgIH07XG4gICAgICAgIGNvbnN0IGF0dHJJbmRleGVzID0gT2JqZWN0LmtleXModGhpcy5maWVsZHMpXG4gICAgICAgICAgICAuZmlsdGVyKGF0dHIgPT4gYXR0ciAhPT0gdGhpcy5pZEF0dHJpYnV0ZSlcbiAgICAgICAgICAgIC5maWx0ZXIoYXR0ciA9PiB0aGlzLmZpZWxkc1thdHRyXS5pbmRleClcbiAgICAgICAgICAgIC5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKGluZGV4ZXMsIGF0dHIpID0+ICh7XG4gICAgICAgICAgICAgICAgICAgIC4uLmluZGV4ZXMsXG4gICAgICAgICAgICAgICAgICAgIFthdHRyXToge30sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAge31cbiAgICAgICAgICAgICk7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAuLi5wa0luZGV4LFxuICAgICAgICAgICAgaW5kZXhlczogYXR0ckluZGV4ZXMsXG4gICAgICAgICAgICBtZXRhOiB7fSxcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBzZXRNZXRhKHR4LCBicmFuY2gsIGtleSwgdmFsdWUpIHtcbiAgICAgICAgY29uc3QgeyBiYXRjaFRva2VuLCB3aXRoTXV0YXRpb25zIH0gPSB0eDtcbiAgICAgICAgaWYgKHdpdGhNdXRhdGlvbnMpIHtcbiAgICAgICAgICAgIGNvbnN0IHJlcyA9IG9wcy5tdXRhYmxlLnNldEluKFtcIm1ldGFcIiwga2V5XSwgdmFsdWUsIGJyYW5jaCk7XG4gICAgICAgICAgICByZXR1cm4gcmVzO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG9wcy5iYXRjaC5zZXRJbihiYXRjaFRva2VuLCBbXCJtZXRhXCIsIGtleV0sIHZhbHVlLCBicmFuY2gpO1xuICAgIH1cblxuICAgIGdldE1ldGEoYnJhbmNoLCBrZXkpIHtcbiAgICAgICAgcmV0dXJuIGJyYW5jaC5tZXRhW2tleV07XG4gICAgfVxuXG4gICAgcXVlcnkoYnJhbmNoLCBjbGF1c2VzKSB7XG4gICAgICAgIGlmIChjbGF1c2VzLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuYWNjZXNzTGlzdChicmFuY2gpO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgeyBpZEF0dHJpYnV0ZSB9ID0gdGhpcztcblxuICAgICAgICBjb25zdCBvcHRpbWFsbHlPcmRlcmVkQ2xhdXNlcyA9IHNvcnRCeShjbGF1c2VzLCBjbGF1c2UgPT4ge1xuICAgICAgICAgICAgaWYgKGNsYXVzZUZpbHRlcnNCeUF0dHJpYnV0ZShjbGF1c2UsIGlkQXR0cmlidXRlKSkge1xuICAgICAgICAgICAgICAgIHJldHVybiAxO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoY2xhdXNlUmVkdWNlc1Jlc3VsdFNldFNpemUoY2xhdXNlKSkge1xuICAgICAgICAgICAgICAgIHJldHVybiAyO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gMztcbiAgICAgICAgfSk7XG5cbiAgICAgICAgY29uc3QgcmVkdWNlciA9IChyb3dzLCBjbGF1c2UpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHsgdHlwZSwgcGF5bG9hZCB9ID0gY2xhdXNlO1xuICAgICAgICAgICAgaWYgKCFyb3dzKSB7XG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogRmlyc3QgdGltZSB0aGlzIHJlZHVjZXIgaXMgY2FsbGVkIGR1cmluZyBxdWVyeS5cbiAgICAgICAgICAgICAgICAgKiBUaGlzIGlzIHdoZXJlIHdlIGFwcGx5IHF1ZXJ5IG9wdGltaXphdGlvbnMuXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgaWYgKGNsYXVzZUZpbHRlcnNCeUF0dHJpYnV0ZShjbGF1c2UsIGlkQXR0cmlidXRlKSkge1xuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogUGF5bG9hZCBzcGVjaWZpZWQgYSBwcmltYXJ5IGtleS4gVXNlIFBLIGluZGV4XG4gICAgICAgICAgICAgICAgICAgICAqIHRvIGxvb2sgdXAgdGhlIHNpbmdsZSByb3cgaWRlbnRpZmllZCBieSB0aGUgUEsuXG4gICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBpZCA9IHBheWxvYWRbaWRBdHRyaWJ1dGVdO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCByZW1haW5pbmdQYXlsb2FkID0gT2JqZWN0LmtleXMocGF5bG9hZCkucmVkdWNlKFxuICAgICAgICAgICAgICAgICAgICAgICAgKHdpdGhvdXRQa0F0dHIsIGZpbHRlckF0dHIpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmlsdGVyQXR0ciAhPT0gaWRBdHRyaWJ1dGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2l0aG91dFBrQXR0cltmaWx0ZXJBdHRyXSA9IHBheWxvYWRbZmlsdGVyQXR0cl07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB3aXRob3V0UGtBdHRyO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHt9XG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGlkcyA9IHRoaXMuaWRFeGlzdHMoYnJhbmNoLCBpZCkgPyBbaWRdIDogW107XG4gICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhyZW1haW5pbmdQYXlsb2FkKS5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgICAgICogUGF5bG9hZCBoYXMgYWRkaXRpb25hbCwgbm9uLVBLIGNvbHVtbnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBGaWx0ZXIgYWNjZXNzZWQgcm93IGJ5IHJlbWFpbmluZyBwYXlsb2FkIChpZiBvbmUgd2FzIGZvdW5kKS5cbiAgICAgICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlZHVjZXIodGhpcy5hY2Nlc3NJZHMoYnJhbmNoLCBpZHMpLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLi4uY2xhdXNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBheWxvYWQ6IHJlbWFpbmluZ1BheWxvYWQsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogTm8gbmVlZCB0byBmaWx0ZXIgdGhlc2Ugcm93cyBhbnkgZnVydGhlci5cbiAgICAgICAgICAgICAgICAgICAgICogVGhlIHByaW1hcnkga2V5IHZhbHVlIHNhdGlzZmllcyB0aGlzIGNsYXVzZSdzIGNvbmRpdGlvbnMuXG4gICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5hY2Nlc3NJZHMoYnJhbmNoLCBpZHMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAodHlwZSA9PT0gRklMVEVSICYmIHR5cGVvZiBwYXlsb2FkID09PSBcIm9iamVjdFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGluZGV4ZXMgPSBPYmplY3QuZW50cmllcyhicmFuY2guaW5kZXhlcyk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGFjY2Vzc2VkSW5kZXhlcyA9IFtdO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbmRleEF0dHJzID0gW107XG4gICAgICAgICAgICAgICAgICAgIGluZGV4ZXMuZm9yRWFjaCgoW2F0dHIsIGluZGV4XSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNsYXVzZUZpbHRlcnNCeUF0dHJpYnV0ZShjbGF1c2UsIGF0dHIpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICogUGF5bG9hZCBzcGVjaWZpZWQgYW4gaW5kZXhlZCBhdHRyaWJ1dGUuIFVzZSBpbmRleFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIHRvIHBvdGVudGlhbGx5IGRlY3JlYXNlIGFtb3VudCBvZiBhY2Nlc3NlZCByb3dzLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpbmRleC5oYXNPd25Qcm9wZXJ0eShwYXlsb2FkW2F0dHJdKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhY2Nlc3NlZEluZGV4ZXMucHVzaChpbmRleFtwYXlsb2FkW2F0dHJdXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4QXR0cnMucHVzaChhdHRyKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogQ2FsY3VsYXRlIHNldCBvZiB1bmlxdWUgUEsgdmFsdWVzIGNvcnJlc3BvbmRpbmcgdG8gZWFjaFxuICAgICAgICAgICAgICAgICAgICAgKiBmb3JlaWduIGtleSdzIGF0dHJpYnV0ZSB2YWx1ZS4gVGhlbiByZXRyaWV2ZSBhbGwgdGhvc2Ugcm93cy5cbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIGlmIChhY2Nlc3NlZEluZGV4ZXMubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBsYXN0SW5kZXggPSBhY2Nlc3NlZEluZGV4ZXMucG9wKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpbmRleGVkSWRzID0gYWNjZXNzZWRJbmRleGVzLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAocmVzdWx0LCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpbmRleFNldCA9IG5ldyBTZXQoaW5kZXgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0LmZpbHRlcihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNldC5wcm90b3R5cGUuaGFzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXhTZXRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxhc3RJbmRleFxuICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHJlbWFpbmluZ1BheWxvYWQgPSBPYmplY3Qua2V5cyhwYXlsb2FkKS5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKHdpdGhvdXRJbmRleEF0dHJzLCBmaWx0ZXJBdHRyKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaW5kZXhBdHRycy5pbmNsdWRlcyhmaWx0ZXJBdHRyKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2l0aG91dEluZGV4QXR0cnNbZmlsdGVyQXR0cl0gPVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBheWxvYWRbZmlsdGVyQXR0cl07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdpdGhvdXRJbmRleEF0dHJzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge31cbiAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoT2JqZWN0LmtleXMocmVtYWluaW5nUGF5bG9hZCkubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICogUGF5bG9hZCBoYXMgYWRkaXRpb25hbCwgbm9uLWluZGV4ZWQgY29sdW1ucy5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiBGaWx0ZXIgaW5kZXhlZCByb3dzIGJ5IHJlbWFpbmluZyBwYXlsb2FkIChpZiBhbnkgd2VyZSBmb3VuZCkuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlZHVjZXIodGhpcy5hY2Nlc3NJZHMoYnJhbmNoLCBpbmRleGVkSWRzKSwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi5jbGF1c2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBheWxvYWQ6IHJlbWFpbmluZ1BheWxvYWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICAgICAqIE5vIG5lZWQgdG8gZmlsdGVyIHRoZXNlIHJvd3MgYW55IGZ1cnRoZXIuXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBUaGUgdXNlZCBpbmRleGVzIHNhdGlzZnkgdGhpcyBjbGF1c2UncyBjb25kaXRpb25zLlxuICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5hY2Nlc3NJZHMoYnJhbmNoLCBpbmRleGVkSWRzKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIEdpdmUgdXAgb3B0aW1pemF0aW9uOiBSZXRyaWV2ZSBhbGwgcm93cyAoZnVsbCB0YWJsZSBzY2FuKS5cbiAgICAgICAgICAgICAgICByZXR1cm4gcmVkdWNlcih0aGlzLmFjY2Vzc0xpc3QoYnJhbmNoKSwgY2xhdXNlKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgc3dpdGNoICh0eXBlKSB7XG4gICAgICAgICAgICAgICAgY2FzZSBGSUxURVI6IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZpbHRlcihyb3dzLCBwYXlsb2FkKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY2FzZSBFWENMVURFOiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZWplY3Qocm93cywgcGF5bG9hZCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGNhc2UgT1JERVJfQlk6IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgW2l0ZXJhdGVlcywgb3JkZXJzXSA9IHBheWxvYWQ7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBvcmRlckJ5KHJvd3MsIGl0ZXJhdGVlcywgbm9ybWFsaXplT3JkZXJzKG9yZGVycykpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICA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ySW5kZXggPSB3b3JraW5nU3RhdGUuaW5kZXhlc1thdHRyXTtcbiAgICAgICAgICAgICAgICBpZiAoYXR0ckluZGV4Lmhhc093blByb3BlcnR5KHZhbHVlKSkge1xuICAgICAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5wdXNoKGlkLCBhdHRySW5kZXhbdmFsdWVdKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5zZXQodmFsdWUsIFtpZF0sIGF0dHJJbmRleCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIHN0YXRlOiB3b3JraW5nU3RhdGUsXG4gICAgICAgICAgICAgICAgY3JlYXRlZDogZmluYWxFbnRyeSxcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBuZXh0SW5kZXhlcyA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICBpbmRleGVzVG9BcHBlbmRUby5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKGluZGV4TWFwLCBbYXR0ciwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbdmFsdWVdOiBvcHMuYmF0Y2gucHVzaChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdW3ZhbHVlXSB8fCBbXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXhNYXBbYXR0cl1cbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGluZGV4TWFwO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgeyAuLi53b3JraW5nU3RhdGUuaW5kZXhlcyB9XG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgd29ya2luZ1N0YXRlLmluZGV4ZXNcbiAgICAgICAgKTtcblxuICAgICAgICBjb25zdCBuZXh0U3RhdGUgPSBvcHMuYmF0Y2gubWVyZ2UoXG4gICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIFt0aGlzLmFyck5hbWVdOiBvcHMuYmF0Y2gucHVzaChcbiAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICAgICAgICAgIHdvcmtpbmdTdGF0ZVt0aGlzLmFyck5hbWVdXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICBbdGhpcy5tYXBOYW1lXTogb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBbaWRdOiBmaW5hbEVudHJ5LFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB3b3JraW5nU3RhdGVbdGhpcy5tYXBOYW1lXVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgaW5kZXhlczogbmV4dEluZGV4ZXMsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgd29ya2luZ1N0YXRlXG4gICAgICAgICk7XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgIC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NoLnNldChiYXRjaFRva2VuKTtcblxuICAgICAgICBjb25zdCBpbmRleGVkQXR0cnMgPSBPYmplY3Qua2V5cyhicmFuY2guaW5kZXhlcykuZmlsdGVyKGF0dHIgPT5cbiAgICAgICAgICAgIG1lcmdlT2JqLmhhc093blByb3BlcnR5KGF0dHIpXG4gICAgICAgICk7XG4gICAgICAgIGNvbnN0IGluZGV4SWRzVG9BZGQgPSBbXTtcbiAgICAgICAgY29uc3QgaW5kZXhJZHNUb0RlbGV0ZSA9IFtdO1xuXG4gICAgICAgIGNvbnN0IG5leHRNYXAgPSByb3dzLnJlZHVjZSgobWFwLCByb3cpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHByZXZBdHRyVmFsdWVzID0gaW5kZXhlZEF0dHJzLnJlZHVjZShcbiAgICAgICAgICAgICAgICAodmFsdWVNYXAsIGF0dHIpID0+ICh7XG4gICAgICAgICAgICAgICAgICAgIC4uLnZhbHVlTWFwLFxuICAgICAgICAgICAgICAgICAgICBbYXR0cl06IHJvd1thdHRyXSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB7fVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnN0IHJlc3VsdCA9IG1lcmdlT2JqSW50byhyb3cpO1xuICAgICAgICAgICAgY29uc3QgbmV4dEF0dHJWYWx1ZXMgPSBpbmRleGVkQXR0cnMucmVkdWNlKFxuICAgICAgICAgICAgICAgICh2YWx1ZU1hcCwgYXR0cikgPT4gKHtcbiAgICAgICAgICAgICAgICAgICAgLi4udmFsdWVNYXAsXG4gICAgICAgICAgICAgICAgICAgIFthdHRyXTogcmVzdWx0W2F0dHJdLFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHt9XG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgY29uc3QgaWQgPSByZXN1bHRbdGhpcy5pZEF0dHJpYnV0ZV07XG4gICAgICAgICAgICBjb25zdCBuZXh0Um93ID0gc2V0KGlkLCByZXN1bHQsIG1hcCk7XG4gICAgICAgICAgICBpbmRleGVkQXR0cnMuZm9yRWFjaChhdHRyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCB7IFthdHRyXTogcHJldlZhbHVlIH0gPSBwcmV2QXR0clZhbHVlcztcbiAgICAgICAgICAgICAgICBjb25zdCB7IFthdHRyXTogbmV4dFZhbHVlIH0gPSBuZXh0QXR0clZhbHVlcztcbiAgICAgICAgICAgICAgICBpZiAocHJldlZhbHVlID09PSBuZXh0VmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gYXR0cmlidXRlIGhhcyBub3QgY2hhbmdlZCwgbm8gbmVlZCB0byB1cGRhdGUgYW55IGluZGV4XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKHByZXZWYWx1ZSAhPT0gbnVsbCAmJiB0eXBlb2YgcHJldlZhbHVlICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHJlbW92ZSBpZCBmcm9tIGF0dHJpYnV0ZSdzIGluZGV4IGZvciBpdHMgb2xkIHZhbHVlXG4gICAgICAgICAgICAgICAgICAgIGluZGV4SWRzVG9EZWxldGUucHVzaChbYXR0ciwgcHJldlZhbHVlLCBpZF0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAobmV4dFZhbHVlICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGFkZCBpZCB0byBhdHRyaWJ1dGUncyBpbmRleCBmb3IgaXRzIG5ldyB2YWx1ZVxuICAgICAgICAgICAgICAgICAgICBpbmRleElkc1RvQWRkLnB1c2goW2F0dHIsIG5leHRWYWx1ZSwgaWRdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHJldHVybiBuZXh0Um93O1xuICAgICAgICB9LCBicmFuY2hbdGhpcy5tYXBOYW1lXSk7XG5cbiAgICAgICAgbGV0IG5leHRJbmRleGVzID0gYnJhbmNoLmluZGV4ZXM7XG4gICAgICAgIGlmICh3aXRoTXV0YXRpb25zKSB7XG4gICAgICAgICAgICBpbmRleElkc1RvRGVsZXRlLmZvckVhY2goKFthdHRyLCB2YWx1ZSwgaWRdKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgYXJyID0gbmV4dEluZGV4ZXNbYXR0cl1bdmFsdWVdO1xuICAgICAgICAgICAgICAgIGNvbnN0IGlkeCA9IGFyci5pbmRleE9mKGlkKTtcbiAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5zcGxpY2UoaWR4LCAxLCBbXSwgYXJyKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgaW5kZXhJZHNUb0FkZC5mb3JFYWNoKChbYXR0ciwgdmFsdWUsIGlkXSkgPT4ge1xuICAgICAgICAgICAgICAgIG9wcy5tdXRhYmxlLnB1c2goaWQsIG5leHRJbmRleGVzW2F0dHJdW3ZhbHVlXSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmIChpbmRleElkc1RvQWRkLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIG5leHRJbmRleGVzID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICBpbmRleElkc1RvQWRkLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgIChpbmRleE1hcCwgW2F0dHIsIHZhbHVlLCBpZF0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXSA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ZhbHVlXTogb3BzLmJhdGNoLnB1c2goXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXVt2YWx1ZV0gfHwgW11cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5kZXhNYXA7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgeyAuLi5uZXh0SW5kZXhlcyB9XG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIG5leHRJbmRleGVzXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChpbmRleElkc1RvRGVsZXRlLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIG5leHRJbmRleGVzID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICBpbmRleElkc1RvRGVsZXRlLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgIChpbmRleE1hcCwgW2F0dHIsIHZhbHVlLCBpZF0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXSA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ZhbHVlXTogb3BzLmJhdGNoLmZpbHRlcihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvd0lkID0+IHJvd0lkICE9PSBpZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXVt2YWx1ZV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5kZXhNYXA7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgeyAuLi5uZXh0SW5kZXhlcyB9XG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIG5leHRJbmRleGVzXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBvcHMuYmF0Y2gubWVyZ2UoXG4gICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIFt0aGlzLm1hcE5hbWVdOiBuZXh0TWFwLFxuICAgICAgICAgICAgICAgIGluZGV4ZXM6IG5leHRJbmRleGVzLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGJyYW5jaFxuICAgICAgICApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGRhdGEgc3RydWN0dXJlIHdpdGhvdXQgcm93cyBgcm93c2AuXG4gICAgICog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AgICAgICAgT2JqZWN0LnZhbHVlcyhhdHRySW5kZXgpLmZvckVhY2godmFsdWVJbmRleCA9PlxuICAgICAgICAgICAgICAgICAgICBpZHNUb0RlbGV0ZS5mb3JFYWNoKGlkID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGlkeCA9IHZhbHVlSW5kZXguaW5kZXhPZihpZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaWR4ICE9PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wcy5tdXRhYmxlLnNwbGljZShpZHgsIDEsIFtdLCB2YWx1ZUluZGV4KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgcmV0dXJuIGJyYW5jaDtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IG5leHRJbmRleGVzID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgIE9iamVjdC5lbnRyaWVzKGJyYW5jaC5pbmRleGVzKS5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKGluZGV4TWFwLCBbYXR0ciwgYXR0ckluZGV4XSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXSA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICAgICAgICAgICAgICBPYmplY3QuZW50cmllcyhhdHRySW5kZXgpLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAoYXR0ckluZGV4TWFwLCBbdmFsdWUsIHZhbHVlSW5kZXhdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJJbmRleE1hcFt2YWx1ZV0gPSBvcHMuYmF0Y2guZmlsdGVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkID0+ICFpZHNUb0RlbGV0ZS5pbmNsdWRlcyhpZCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZUluZGV4XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBhdHRySW5kZXhNYXA7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IC4uLmluZGV4TWFwW2F0dHJdIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXVxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5kZXhNYXA7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB7IC4uLmJyYW5jaC5pbmRleGVzIH1cbiAgICAgICAgICAgICksXG4gICAgICAgICAgICBicmFuY2guaW5kZXhlc1xuICAgICAgICApO1xuXG4gICAgICAgIHJldHVybiBvcHMuYmF0Y2gubWVyZ2UoXG4gICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIFthcnJOYW1lXTogb3BzLmJhdGNoLmZpbHRlcihcbiAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgaWQgPT4gIWlkc1RvRGVsZXRlLmluY2x1ZGVzKGlkKSxcbiAgICAgICAgICAgICAgICAgICAgYnJhbmNoW2Fyck5hbWVdXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICBbbWFwTmFtZV06IG9wcy5iYXRjaC5vbWl0KFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICBpZHNUb0RlbGV0ZSxcbiAgICAgICAgICAgICAgICAgICAgYnJhbmNoW21hcE5hbWVdXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICBpbmRleGVzOiBvcHMuYmF0Y2gubWVyZ2UoXG4gICAgICAgICAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICAgICAgICAgIG5leHRJbmRleGVzLFxuICAgICAgICAgICAgICAgICAgICBicmFuY2guaW5kZXhlc1xuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYnJhbmNoXG4gICAgICAgICk7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBUYWJsZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/db/Table.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Table\", function() { return Table; });\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/filter */ \"./node_modules/lodash/filter.js\");\n/* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/orderBy */ \"./node_modules/lodash/orderBy.js\");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_reject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/reject */ \"./node_modules/lodash/reject.js\");\n/* harmony import */ var lodash_reject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_reject__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/sortBy */ \"./node_modules/lodash/sortBy.js\");\n/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_sortBy__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ \"./src/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n\n\n\n\nconst DEFAULT_TABLE_OPTIONS = {\n idAttribute: \"id\",\n arrName: \"items\",\n mapName: \"itemsById\",\n fields: {}\n};\n/**\n * @private\n * @param {*} _currMax - the current max id\n * @param {*} userPassedId - the new id passed to the create action\n *\n * Both may be undefined. The current max id in the case that this is the first Model\n * being created, and the new id if the id was not explicitly passed to the\n * database.\n *\n * @return {Array} the new max id and the id to use to create the new row\n *\n * If the id's are strings, the id must be passed explicitly every time.\n * In this case, the current max id will remain `NaN` due to `Math.max`, but that's fine.\n */\n\nfunction idSequencer(_currMax, userPassedId) {\n let currMax = _currMax;\n let newMax;\n let newId;\n\n if (currMax === undefined) {\n currMax = -1;\n }\n\n if (userPassedId === undefined) {\n newMax = currMax + 1;\n newId = newMax;\n } else {\n newMax = Math.max(currMax + 1, userPassedId);\n newId = userPassedId;\n }\n\n return [newMax, // new max id\n newId // id to use for row creation\n ];\n}\n/**\n * Adapt order directions array to @{lodash.orderBy} API.\n *\n * @private\n *\n * @param {Array} orders? - an array of optional order query directions as provided to {@Link {QuerySet.orderBy}}\n * @return {Array<'asc'|'desc'>|undefined} A normalized ordering array or undefined if none was provided.\n */\n\n\nfunction normalizeOrders(orders) {\n if (orders === undefined) {\n return undefined;\n }\n\n const convert = order => {\n if ([\"desc\", false].includes(order)) {\n return \"desc\";\n }\n\n return \"asc\";\n };\n\n return Array.isArray(orders) ? orders.map(convert) : convert(orders);\n}\n/**\n * Handles the underlying data structure for a {@link Model} class.\n * @private\n */\n\n\nlet Table = /*#__PURE__*/function () {\n /**\n * Creates a new {@link Table} instance.\n * @param {Object} userOpts - options to use.\n * @param {string} [userOpts.idAttribute=id] - the id attribute of the entity.\n * @param {string} [userOpts.arrName=items] - the state attribute where an array of\n * entity id's are stored\n * @param {string} [userOpts.mapName=itemsById] - the state attribute where the entity objects\n * are stored in a id to entity object\n * map.\n * @param {string} [userOpts.fields={}] - mapping of field key to {@link Field} object\n */\n function Table(userOpts) {\n Object.assign(this, DEFAULT_TABLE_OPTIONS, userOpts);\n }\n /**\n * Returns a reference to the object at index `id`\n * in state `branch`.\n *\n * @param {Object} branch - the state\n * @param {Number} id - the id of the object to get\n * @return {Object|undefined} A reference to the raw object in the state or\n * `undefined` if not found.\n */\n\n\n var _proto = Table.prototype;\n\n _proto.accessId = function accessId(branch, id) {\n return branch[this.mapName][id];\n };\n\n _proto.accessIds = function accessIds(branch, ids) {\n const map = branch[this.mapName];\n return ids.map(id => map[id]);\n };\n\n _proto.idExists = function idExists(branch, id) {\n return branch[this.mapName].hasOwnProperty(id);\n };\n\n _proto.accessIdList = function accessIdList(branch) {\n return branch[this.arrName];\n };\n\n _proto.accessList = function accessList(branch) {\n return this.accessIds(branch, this.accessIdList(branch));\n };\n\n _proto.getMaxId = function getMaxId(branch) {\n return this.getMeta(branch, \"maxId\");\n };\n\n _proto.setMaxId = function setMaxId(tx, branch, newMaxId) {\n return this.setMeta(tx, branch, \"maxId\", newMaxId);\n };\n\n _proto.nextId = function nextId(id) {\n return id + 1;\n }\n /**\n * Returns the default state for the data structure.\n * @return {Object} The default state for this {@link ORM} instance's data structure\n */\n ;\n\n _proto.getEmptyState = function getEmptyState() {\n const pkIndex = {\n [this.arrName]: [],\n [this.mapName]: {}\n };\n const attrIndexes = Object.keys(this.fields).filter(attr => attr !== this.idAttribute).filter(attr => this.fields[attr].index).reduce((indexes, attr) => ({ ...indexes,\n [attr]: {}\n }), {});\n return { ...pkIndex,\n indexes: attrIndexes,\n meta: {}\n };\n };\n\n _proto.setMeta = function setMeta(tx, branch, key, value) {\n const {\n batchToken,\n withMutations\n } = tx;\n\n if (withMutations) {\n const res = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.setIn([\"meta\", key], value, branch);\n return res;\n }\n\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.setIn(batchToken, [\"meta\", key], value, branch);\n };\n\n _proto.getMeta = function getMeta(branch, key) {\n return branch.meta[key];\n };\n\n _proto.query = function query(branch, clauses) {\n if (clauses.length === 0) {\n return this.accessList(branch);\n }\n\n const {\n idAttribute\n } = this;\n const optimallyOrderedClauses = lodash_sortBy__WEBPACK_IMPORTED_MODULE_4___default()(clauses, clause => {\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseFiltersByAttribute\"])(clause, idAttribute)) {\n return 1;\n }\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseReducesResultSetSize\"])(clause)) {\n return 2;\n }\n\n return 3;\n });\n\n const reducer = (rows, clause) => {\n const {\n type,\n payload\n } = clause;\n\n if (!rows) {\n /**\n * First time this reducer is called during query.\n * This is where we apply query optimizations.\n */\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseFiltersByAttribute\"])(clause, idAttribute)) {\n /**\n * Payload specified a primary key. Use PK index\n * to look up the single row identified by the PK.\n */\n const id = payload[idAttribute];\n const remainingPayload = Object.keys(payload).reduce((withoutPkAttr, filterAttr) => {\n if (filterAttr !== idAttribute) {\n withoutPkAttr[filterAttr] = payload[filterAttr];\n }\n\n return withoutPkAttr;\n }, {});\n const ids = this.idExists(branch, id) ? [id] : [];\n\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-PK columns.\n * Filter accessed row by remaining payload (if one was found).\n */\n return reducer(this.accessIds(branch, ids), { ...clause,\n payload: remainingPayload\n });\n }\n /**\n * No need to filter these rows any further.\n * The primary key value satisfies this clause's conditions.\n */\n\n\n return this.accessIds(branch, ids);\n }\n\n if (type === _constants__WEBPACK_IMPORTED_MODULE_5__[\"FILTER\"] && typeof payload === \"object\") {\n const indexes = Object.entries(branch.indexes);\n const accessedIndexes = [];\n const indexAttrs = [];\n indexes.forEach(([attr, index]) => {\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"clauseFiltersByAttribute\"])(clause, attr)) {\n /**\n * Payload specified an indexed attribute. Use index\n * to potentially decrease amount of accessed rows.\n */\n if (index.hasOwnProperty(payload[attr])) {\n accessedIndexes.push(index[payload[attr]]);\n indexAttrs.push(attr);\n }\n }\n });\n /**\n * Calculate set of unique PK values corresponding to each\n * foreign key's attribute value. Then retrieve all those rows.\n */\n\n if (accessedIndexes.length) {\n const lastIndex = accessedIndexes.pop();\n const indexedIds = accessedIndexes.reduce((result, index) => {\n const indexSet = new Set(index);\n return result.filter(Set.prototype.has, indexSet);\n }, lastIndex);\n const remainingPayload = Object.keys(payload).reduce((withoutIndexAttrs, filterAttr) => {\n if (!indexAttrs.includes(filterAttr)) {\n withoutIndexAttrs[filterAttr] = payload[filterAttr];\n }\n\n return withoutIndexAttrs;\n }, {});\n\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-indexed columns.\n * Filter indexed rows by remaining payload (if any were found).\n */\n return reducer(this.accessIds(branch, indexedIds), { ...clause,\n payload: remainingPayload\n });\n }\n /**\n * No need to filter these rows any further.\n * The used indexes satisfy this clause's conditions.\n */\n\n\n return this.accessIds(branch, indexedIds);\n }\n } // Give up optimization: Retrieve all rows (full table scan).\n\n\n return reducer(this.accessList(branch), clause);\n }\n\n switch (type) {\n case _constants__WEBPACK_IMPORTED_MODULE_5__[\"FILTER\"]:\n {\n return lodash_filter__WEBPACK_IMPORTED_MODULE_1___default()(rows, payload);\n }\n\n case _constants__WEBPACK_IMPORTED_MODULE_5__[\"EXCLUDE\"]:\n {\n return lodash_reject__WEBPACK_IMPORTED_MODULE_3___default()(rows, payload);\n }\n\n case _constants__WEBPACK_IMPORTED_MODULE_5__[\"ORDER_BY\"]:\n {\n const [iteratees, orders] = payload;\n return lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default()(rows, iteratees, normalizeOrders(orders));\n }\n\n default:\n return rows;\n }\n };\n\n return optimallyOrderedClauses.reduce(reducer, undefined);\n }\n /**\n * Returns the data structure including a new object `entry`\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object} entry - the object to insert\n * @return {Object} an object with two keys: `state` and `created`.\n * `state` is the new table state and `created` is the\n * row that was created.\n */\n ;\n\n _proto.insert = function insert(tx, branch, entry) {\n const {\n batchToken,\n withMutations\n } = tx;\n const hasId = entry.hasOwnProperty(this.idAttribute);\n let workingState = branch; // This will not affect string id's.\n\n const [newMaxId, id] = idSequencer(this.getMaxId(branch), entry[this.idAttribute]);\n workingState = this.setMaxId(tx, branch, newMaxId);\n const finalEntry = hasId ? entry : immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.set(batchToken, this.idAttribute, id, entry);\n const indexesToAppendTo = Object.keys(workingState.indexes).filter(fkAttr => entry.hasOwnProperty(fkAttr) && entry[fkAttr] !== null).map(fkAttr => [fkAttr, entry[fkAttr]]);\n\n if (withMutations) {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.push(id, workingState[this.arrName]);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.set(id, finalEntry, workingState[this.mapName]); // add id to indexes\n\n indexesToAppendTo.forEach(([attr, value]) => {\n const attrIndex = workingState.indexes[attr];\n\n if (attrIndex.hasOwnProperty(value)) {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.push(id, attrIndex[value]);\n } else {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.set(value, [id], attrIndex);\n }\n });\n return {\n state: workingState,\n created: finalEntry\n };\n }\n\n const nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, indexesToAppendTo.reduce((indexMap, [attr, value]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [value]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.push(batchToken, id, indexMap[attr][value] || [])\n }, indexMap[attr]);\n return indexMap;\n }, { ...workingState.indexes\n }), workingState.indexes);\n const nextState = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [this.arrName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.push(batchToken, id, workingState[this.arrName]),\n [this.mapName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [id]: finalEntry\n }, workingState[this.mapName]),\n indexes: nextIndexes\n }, workingState);\n return {\n state: nextState,\n created: finalEntry\n };\n }\n /**\n * Returns the data structure with objects where `rows`\n * are merged with `mergeObj`.\n *\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @param {Object} mergeObj - The object to merge with each row.\n * @return {Object}\n */\n ;\n\n _proto.update = function update(tx, branch, rows, mergeObj) {\n const {\n batchToken,\n withMutations\n } = tx;\n\n const mergeObjInto = row => {\n const merge = withMutations ? immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.merge : immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken);\n return merge(mergeObj, row);\n };\n\n const set = withMutations ? immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.set : immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.set(batchToken);\n const indexedAttrs = Object.keys(branch.indexes).filter(attr => mergeObj.hasOwnProperty(attr));\n const indexIdsToAdd = [];\n const indexIdsToDelete = [];\n const nextMap = rows.reduce((map, row) => {\n const prevAttrValues = indexedAttrs.reduce((valueMap, attr) => ({ ...valueMap,\n [attr]: row[attr]\n }), {});\n const result = mergeObjInto(row);\n const nextAttrValues = indexedAttrs.reduce((valueMap, attr) => ({ ...valueMap,\n [attr]: result[attr]\n }), {});\n const id = result[this.idAttribute];\n const nextRow = set(id, result, map);\n indexedAttrs.forEach(attr => {\n const {\n [attr]: prevValue\n } = prevAttrValues;\n const {\n [attr]: nextValue\n } = nextAttrValues;\n\n if (prevValue === nextValue) {\n // attribute has not changed, no need to update any index\n return;\n }\n\n if (prevValue !== null && typeof prevValue !== \"undefined\") {\n // remove id from attribute's index for its old value\n indexIdsToDelete.push([attr, prevValue, id]);\n }\n\n if (nextValue !== null) {\n // add id to attribute's index for its new value\n indexIdsToAdd.push([attr, nextValue, id]);\n }\n });\n return nextRow;\n }, branch[this.mapName]);\n let nextIndexes = branch.indexes;\n\n if (withMutations) {\n indexIdsToDelete.forEach(([attr, value, id]) => {\n const arr = nextIndexes[attr][value];\n const idx = arr.indexOf(id);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.splice(idx, 1, [], arr);\n });\n indexIdsToAdd.forEach(([attr, value, id]) => {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.push(id, nextIndexes[attr][value]);\n });\n } else {\n if (indexIdsToAdd.length) {\n nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, indexIdsToAdd.reduce((indexMap, [attr, value, id]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [value]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.push(batchToken, id, indexMap[attr][value] || [])\n }, indexMap[attr]);\n return indexMap;\n }, { ...nextIndexes\n }), nextIndexes);\n }\n\n if (indexIdsToDelete.length) {\n nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, indexIdsToDelete.reduce((indexMap, [attr, value, id]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [value]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.filter(batchToken, rowId => rowId !== id, indexMap[attr][value])\n }, indexMap[attr]);\n return indexMap;\n }, { ...nextIndexes\n }), nextIndexes);\n }\n }\n\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [this.mapName]: nextMap,\n indexes: nextIndexes\n }, branch);\n }\n /**\n * Returns the data structure without rows `rows`.\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @return {Object} the data structure without ids in `idsToDelete`.\n */\n ;\n\n _proto.delete = function _delete(tx, branch, rows) {\n const {\n batchToken,\n withMutations\n } = tx;\n const {\n arrName,\n mapName\n } = this;\n const arr = branch[arrName];\n const idsToDelete = rows.map(row => row[this.idAttribute]);\n\n if (withMutations) {\n idsToDelete.forEach(id => {\n const idx = arr.indexOf(id);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.splice(idx, 1, [], arr);\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.omit(id, branch[mapName]);\n }); // delete ids from all indexes\n\n Object.values(branch.indexes).forEach(attrIndex => Object.values(attrIndex).forEach(valueIndex => idsToDelete.forEach(id => {\n const idx = valueIndex.indexOf(id);\n\n if (idx !== -1) {\n immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].mutable.splice(idx, 1, [], valueIndex);\n }\n })));\n return branch;\n }\n\n const nextIndexes = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, Object.entries(branch.indexes).reduce((indexMap, [attr, attrIndex]) => {\n indexMap[attr] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, Object.entries(attrIndex).reduce((attrIndexMap, [value, valueIndex]) => {\n attrIndexMap[value] = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.filter(batchToken, id => !idsToDelete.includes(id), valueIndex);\n return attrIndexMap;\n }, { ...indexMap[attr]\n }), indexMap[attr]);\n return indexMap;\n }, { ...branch.indexes\n }), branch.indexes);\n return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, {\n [arrName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.filter(batchToken, id => !idsToDelete.includes(id), branch[arrName]),\n [mapName]: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.omit(batchToken, idsToDelete, branch[mapName]),\n indexes: immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"].batch.merge(batchToken, nextIndexes, branch.indexes)\n }, branch);\n };\n\n return Table;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kYi9UYWJsZS5qcz83NDk3Il0sIm5hbWVzIjpbIkRFRkFVTFRfVEFCTEVfT1BUSU9OUyIsImlkQXR0cmlidXRlIiwiYXJyTmFtZSIsIm1hcE5hbWUiLCJmaWVsZHMiLCJpZFNlcXVlbmNlciIsIl9jdXJyTWF4IiwidXNlclBhc3NlZElkIiwiY3Vyck1heCIsIm5ld01heCIsIm5ld0lkIiwidW5kZWZpbmVkIiwiTWF0aCIsIm1heCIsIm5vcm1hbGl6ZU9yZGVycyIsIm9yZGVycyIsImNvbnZlcnQiLCJvcmRlciIsImluY2x1ZGVzIiwiQXJyYXkiLCJpc0FycmF5IiwibWFwIiwiV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V0dXJuIGlkICsgMTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIHRoZSBkZWZhdWx0IHN0YXRlIGZvciB0aGUgZGF0YSBzdHJ1Y3R1cmUuXG4gICAgICogQHJldHVybiB7T2JqZWN0fSBUaGUgZGVmYXVsdCBzdGF0ZSBmb3IgdGhpcyB7QGxpbmsgT1JNfSBpbnN0YW5jZSdzIGRhdGEgc3RydWN0dXJlXG4gICAgICovXG4gICAgZ2V0RW1wdHlTdGF0ZSgpIHtcbiAgICAgICAgY29uc3QgcGtJbmRleCA9IHtcbiAgICAgICAgICAgIFt0aGlzLmFyck5hbWVdOiBbXSxcbiAgICAgICAgICAgIFt0aGlzLm1hcE5hbWVdOiB7fSxcbiAgICAgICAgfTtcbiAgICAgICAgY29uc3QgYXR0ckluZGV4ZXMgPSBPYmplY3Qua2V5cyh0aGlzLmZpZWxkcylcbiAgICAgICAgICAgIC5maWx0ZXIoKGF0dHIpID0+IGF0dHIgIT09IHRoaXMuaWRBdHRyaWJ1dGUpXG4gICAgICAgICAgICAuZmlsdGVyKChhdHRyKSA9PiB0aGlzLmZpZWxkc1thdHRyXS5pbmRleClcbiAgICAgICAgICAgIC5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKGluZGV4ZXMsIGF0dHIpID0+ICh7XG4gICAgICAgICAgICAgICAgICAgIC4uLmluZGV4ZXMsXG4gICAgICAgICAgICAgICAgICAgIFthdHRyXToge30sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAge31cbiAgICAgICAgICAgICk7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAuLi5wa0luZGV4LFxuICAgICAgICAgICAgaW5kZXhlczogYXR0ckluZGV4ZXMsXG4gICAgICAgICAgICBtZXRhOiB7fSxcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBzZXRNZXRhKHR4LCBicmFuY2gsIGtleSwgdmFsdWUpIHtcbiAgICAgICAgY29uc3QgeyBiYXRj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0gKHJvd3MsIGNsYXVzZSkgPT4ge1xuICAgICAgICAgICAgY29uc3QgeyB0eXBlLCBwYXlsb2FkIH0gPSBjbGF1c2U7XG4gICAgICAgICAgICBpZiAoIXJvd3MpIHtcbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiBGaXJzdCB0aW1lIHRoaXMgcmVkdWNlciBpcyBjYWxsZWQgZHVyaW5nIHF1ZXJ5LlxuICAgICAgICAgICAgICAgICAqIFRoaXMgaXMgd2hlcmUgd2UgYXBwbHkgcXVlcnkgb3B0aW1pemF0aW9ucy5cbiAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICBpZiAoY2xhdXNlRmlsdGVyc0J5QXR0cmlidXRlKGNsYXVzZSwgaWRBdHRyaWJ1dGUpKSB7XG4gICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgKiBQYXlsb2FkIHNwZWNpZmllZCBhIHByaW1hcnkga2V5LiBVc2UgUEsgaW5kZXhcbiAgICAgICAgICAgICAgICAgICAgICogdG8gbG9vayB1cCB0aGUgc2luZ2xlIHJvdyBpZGVudGlmaWVkIGJ5IHRoZSBQSy5cbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGlkID0gcGF5bG9hZFtpZEF0dHJpYnV0ZV07XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHJlbWFpbmluZ1BheWxvYWQgPSBPYmplY3Qua2V5cyhwYXlsb2FkKS5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgICAgICAgICAod2l0aG91dFBrQXR0ciwgZmlsdGVyQXR0cikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChmaWx0ZXJBdHRyICE9PSBpZEF0dHJpYnV0ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aXRob3V0UGtBdHRyW2ZpbHRlckF0dHJdID0gcGF5bG9hZFtmaWx0ZXJBdHRyXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdpdGhvdXRQa0F0dHI7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAge31cbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaWRzID0gdGhpcy5pZEV4aXN0cyhicmFuY2gsIGlkKSA/IFtpZF0gOiBbXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5rZXlzKHJlbWFpbmluZ1BheWxvYWQpLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAgICAgKiBQYXlsb2FkIGhhcyBhZGRpdGlvbmFsLCBub24tUEsgY29sdW1ucy5cbiAgICAgICAgICAgICAgICAgICAgICAgICAqIEZpbHRlciBhY2Nlc3NlZCByb3cgYnkgcmVtYWluaW5nIHBheWxvYWQgKGlmIG9uZSB3YXMgZm91bmQpLlxuICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVkdWNlcih0aGlzLmFjY2Vzc0lkcyhicmFuY2gsIGlkcyksIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi5jbGF1c2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGF5bG9hZDogcmVtYWluaW5nUGF5bG9hZCxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgKiBObyBuZWVkIHRvIGZpbHRlciB0aGVzZSByb3dzIGFueSBmdXJ0aGVyLlxuICAgICAgICAgICAgICAgICAgICAgKiBUaGUgcHJpbWFyeSBrZXkgdmFsdWUgc2F0aXNmaWVzIHRoaXMgY2xhdXNlJ3MgY29uZGl0aW9ucy5cbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmFjY2Vzc0lkcyhicmFuY2gsIGlkcyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmICh0eXBlID09PSBGSUxURVIgJiYgdHlwZW9mIHBheWxvYWQgPT09IFwib2JqZWN0XCIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaW5kZXhlcyA9IE9iamVjdC5lbnRyaWVzKGJyYW5jaC5pbmRleGVzKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgYWNjZXNzZWRJbmRleGVzID0gW107XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGluZGV4QXR0cnMgPSBbXTtcbiAgICAgICAgICAgICAgICAgICAgaW5kZXhlcy5mb3JFYWNoKChbYXR0ciwgaW5kZXhdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2xhdXNlRmlsdGVyc0J5QXR0cmlidXRlKGNsYXVzZSwgYXR0cikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiBQYXlsb2FkIHNwZWNpZmllZCBhbiBpbmRleGVkIGF0dHJpYnV0ZS4gVXNlIGluZGV4XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICogdG8gcG90ZW50aWFsbHkgZGVjcmVhc2UgYW1vdW50IG9mIGFjY2Vzc2VkIHJvd3MuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGluZGV4Lmhhc093blByb3BlcnR5KHBheWxvYWRbYXR0cl0pKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkSW5kZXhlcy5wdXNoKGluZGV4W3BheWxvYWRbYXR0cl1dKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXhBdHRycy5wdXNoKGF0dHIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgKiBDYWxjdWxhdGUgc2V0IG9mIHVuaXF1ZSBQSyB2YWx1ZXMgY29ycmVzcG9uZGluZyB0byBlYWNoXG4gICAgICAgICAgICAgICAgICAgICAqIGZvcmVpZ24ga2V5J3MgYXR0cmlidXRlIHZhbHVlLiBUaGVuIHJldHJpZXZlIGFsbCB0aG9zZSByb3dzLlxuICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgaWYgKGFjY2Vzc2VkSW5kZXhlcy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGxhc3RJbmRleCA9IGFjY2Vzc2VkSW5kZXhlcy5wb3AoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGluZGV4ZWRJZHMgPSBhY2Nlc3NlZEluZGV4ZXMucmVkdWNlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIChyZXN1bHQsIGluZGV4KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGluZGV4U2V0ID0gbmV3IFNldChpbmRleCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQuZmlsdGVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU2V0LnByb3RvdHlwZS5oYXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleFNldFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFzdEluZGV4XG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgcmVtYWluaW5nUGF5bG9hZCA9IE9iamVjdC5rZXlzKHBheWxvYWQpLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAod2l0aG91dEluZGV4QXR0cnMsIGZpbHRlckF0dHIpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFpbmRleEF0dHJzLmluY2x1ZGVzKGZpbHRlckF0dHIpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aXRob3V0SW5kZXhBdHRyc1tmaWx0ZXJBdHRyXSA9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGF5bG9hZFtmaWx0ZXJBdHRyXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gd2l0aG91dEluZGV4QXR0cnM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7fVxuICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhyZW1haW5pbmdQYXlsb2FkKS5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiBQYXlsb2FkIGhhcyBhZGRpdGlvbmFsLCBub24taW5kZXhlZCBjb2x1bW5zLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIEZpbHRlciBpbmRleGVkIHJvd3MgYnkgcmVtYWluaW5nIHBheWxvYWQgKGlmIGFueSB3ZXJlIGZvdW5kKS5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVkdWNlcih0aGlzLmFjY2Vzc0lkcyhicmFuY2gsIGluZGV4ZWRJZHMpLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC4uLmNsYXVzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGF5bG9hZDogcmVtYWluaW5nUGF5bG9hZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgICAgICogTm8gbmVlZCB0byBmaWx0ZXIgdGhlc2Ugcm93cyBhbnkgZnVydGhlci5cbiAgICAgICAgICAgICAgICAgICAgICAgICAqIFRoZSB1c2VkIGluZGV4ZXMgc2F0aXNmeSB0aGlzIGNsYXVzZSdzIGNvbmRpdGlvbnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmFjY2Vzc0lkcyhicmFuY2gsIGluZGV4ZWRJZHMpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gR2l2ZSB1cCBvcHRpbWl6YXRpb246IFJldHJpZXZlIGFsbCByb3dzIChmdWxsIHRhYmxlIHNjYW4pLlxuICAgICAgICAgICAgICAgIHJldHVybiByZWR1Y2VyKHRoaXMuYWNjZXNzTGlzdChicmFuY2gpLCBjbGF1c2UpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBzd2l0Y2ggKHR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIEZJTFRFUjoge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmlsdGVyKHJvd3MsIHBheWxvYWQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjYXNlIEVYQ0xVREU6IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlamVjdChyb3dzLCBwYXlsb2FkKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY2FzZSBPUkRFUl9CWToge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBbaXRlcmF0ZWVzLCBvcmRlcnNdID0gcGF5bG9hZDtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9yZGVyQnkocm93cywgaXRlcmF0ZWVzLCBub3JtYWxpemVPcmRlcnMob3JkZXJzKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByb3dzO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuXG4gICAgICAgIHJldHVybiBvcHRpbWFsbHlPcmRlcmVkQ2xhdXNlcy5yZWR1Y2UocmVkdWNlciwgdW5kZWZpbmVkKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIHRoZSBkYXRhIHN0cnVjdHVyZSBpbmNsdWRpbmcgYSBuZXcgb2JqZWN0IGBlbnRyeWBcbiAgICAgKiBAcGFyYW0gIHtPYmplY3R9IHR4IC0gdHJhbnNhY3Rpb24gaW5mb1xuICAgICAqIEBwYXJhbSAge09iamVjdH0gYnJhbmNoIC0gdGhlIGRhdGEgc3RydWN0dXJlIHN0YXRlXG4gICAgICogQHBhcmFtICB7T2JqZWN0fSBlbnRyeSAtIHRoZSBvYmplY3QgdG8gaW5zZXJ0XG4gICAgICogQHJldHVybiB7T2JqZWN0fSBhbiBvYmplY3Qgd2l0aCB0d28ga2V5czogYHN0YXRlYCBhbmQgYGNyZWF0ZWRgLlxuICAgICAqICAgICAgICAgICAgICAgICAgYHN0YXRlYCBpcyB0aGUgbmV3IHRhYmxlIHN0YXRlIGFuZCBgY3JlYXRlZGAgaXMgdGhlXG4gICAgICogICAgICAgICAgICAgICAgICByb3cgdGhhdCB3YXMgY3JlYXRlZC5cbiAgICAgKi9cbiAgICBpbnNlcnQodHgsIGJyYW5jaCwgZW50cnkpIHtcbiAgICAgICAgY29uc3QgeyBiYXRjaFRva2VuLCB3aXRoTXV0YXRpb25zIH0gPSB0eDtcblxuICAgICAgICBjb25zdCBoYXNJZCA9IGVudHJ5Lmhhc093blByb3BlcnR5KHRoaXMuaWRBdHRyaWJ1dGUpO1xuXG4gICAgICAgIGxldCB3b3JraW5nU3RhdGUgPSBicmFuY2g7XG5cbiAgICAgICAgLy8gVGhpcyB3aWxsIG5vdCBhZmZlY3Qgc3RyaW5nIGlkJ3MuXG4gICAgICAgIGNvbnN0IFtuZXdNYXhJZCwgaWRdID0gaWRTZXF1ZW5jZXIoXG4gICAgICAgICAgICB0aGlzLmdldE1heElkKGJyYW5jaCksXG4gICAgICAgICAgICBlbnRyeVt0aGlzLmlkQXR0cmlidXRlXVxuICAgICAgICApO1xuICAgICAgICB3b3JraW5nU3RhdGUgPSB0aGlzLnNldE1heElkKHR4LCBicmFuY2gsIG5ld01heElkKTtcblxuICAgICAgICBjb25zdCBmaW5hbEVudHJ5ID0gaGFzSWRcbiAgICAgICAgICAgID8gZW50cnlcbiAgICAgICAgICAgIDogb3BzLmJhdGNoLnNldChiYXRjaFRva2VuLCB0aGlzLmlkQXR0cmlidXRlLCBpZCwgZW50cnkpO1xuXG4gICAgICAgIGNvbnN0IGluZGV4ZXNUb0FwcGVuZFRvID0gT2JqZWN0LmtleXMod29ya2luZ1N0YXRlLmluZGV4ZXMpXG4gICAgICAgICAgICAuZmlsdGVyKFxuICAgICAgICAgICAgICAgIChma0F0dHIpID0+XG4gICAgICAgICAgICAgICAgICAgIGVudHJ5Lmhhc093blByb3BlcnR5KGZrQXR0cikgJiYgZW50cnlbZmtBdHRyXSAhPT0gbnVsbFxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgLm1hcCgoZmtBdHRyKSA9PiBbZmtBdHRyLCBlbnRyeVtma0F0dHJdXSk7XG5cbiAgICAgICAgaWYgKHdpdGhNdXRhdGlvbnMpIHtcbiAgICAgICAgICAgIG9wcy5tdXRhYmxlLnB1c2goaWQsIHdvcmtpbmdTdGF0ZVt0aGlzLmFyck5hbWVdKTtcbiAgICAgICAgICAgIG9wcy5tdXRhYmxlLnNldChpZCwgZmluYWxFbnRyeSwgd29ya2luZ1N0YXRlW3RoaXMubWFwTmFtZV0pO1xuICAgICAgICAgICAgLy8gYWRkIGlkIHRvIGluZGV4ZXNcbiAgICAgICAgICAgIGluZGV4ZXNUb0FwcGVuZFRvLmZvckVhY2goKFthdHRyLCB2YWx1ZV0pID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBhdHRySW5kZXggPSB3b3JraW5nU3RhdGUuaW5kZXhlc1thdHRyXTtcbiAgICAgICAgICAgICAgICBpZiAoYXR0ckluZGV4Lmhhc093blByb3BlcnR5KHZhbHVlKSkge1xuICAgICAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5wdXNoKGlkLCBhdHRySW5kZXhbdmFsdWVdKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5zZXQodmFsdWUsIFtpZF0sIGF0dHJJbmRleCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIHN0YXRlOiB3b3JraW5nU3RhdGUsXG4gICAgICAgICAgICAgICAgY3JlYXRlZDogZmluYWxFbnRyeSxcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBuZXh0SW5kZXhlcyA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICBpbmRleGVzVG9BcHBlbmRUby5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKGluZGV4TWFwLCBbYXR0ciwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbdmFsdWVdOiBvcHMuYmF0Y2gucHVzaChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdW3ZhbHVlXSB8fCBbXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXhNYXBbYXR0cl1cbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGluZGV4TWFwO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgeyAuLi53b3JraW5nU3RhdGUuaW5kZXhlcyB9XG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgd29ya2luZ1N0YXRlLmluZGV4ZXNcbiAgICAgICAgKTtcblxuICAgICAgICBjb25zdCBuZXh0U3RhdGUgPSBvcHMuYmF0Y2gubWVyZ2UoXG4gICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIFt0aGlzLmFyck5hbWVdOiBvcHMuYmF0Y2gucHVzaChcbiAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICAgICAgICAgIHdvcmtpbmdTdGF0ZVt0aGlzLmFyck5hbWVdXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICBbdGhpcy5tYXBOYW1lXTogb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBbaWRdOiBmaW5hbEVudHJ5LFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB3b3JraW5nU3RhdGVbdGhpcy5tYXBOYW1lXVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgaW5kZXhlczogbmV4dEluZGV4ZXMsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgd29ya2luZ1N0YXRlXG4gICAgICAgICk7XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIHN0YXRlOiBuZXh0U3RhdGUsXG4gICAgICAgICAgICBjcmVhdGVkOiBmaW5hbEVudHJ5LFxuICAgICAgICB9O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGRhdGEgc3RydWN0dXJlIHdpdGggb2JqZWN0cyB3aGVyZSBgcm93c2BcbiAgICAgKiBhcmUgbWVyZ2VkIHdpdGggYG1lcmdlT2JqYC5cbiAgICAgKlxuICAgICAqIEBwYXJhbSAge09iamVjdH0gdHggLSB0cmFuc2FjdGlvbiBpbmZvXG4gICAgICogQHBhcmFtICB7T2JqZWN0fSBicmFuY2ggLSB0aGUgZGF0YSBzdHJ1Y3R1cmUgc3RhdGVcbiAgICAgKiBAcGFyYW0gIHtPYmplY3RbXX0gcm93cyAtIHJvd3MgdG8gdXBkYXRlXG4gICAgICogQHBhcmFtICB7T2JqZWN0fSBtZXJnZU9iaiAtIFRoZSBvYmplY3QgdG8gbWVyZ2Ugd2l0aCBlYWNoIHJvdy5cbiAgICAgKiBAcmV0dXJuIHtPYmplY3R9XG4gICAgICovXG4gICAgdXBkYXRlKHR4LCBicmFuY2gsIHJvd3MsIG1lcmdlT2JqKSB7XG4gICAgICAgIGNvbnN0IHsgYmF0Y2hUb2tlbiwgd2l0aE11dGF0aW9ucyB9ID0gdHg7XG5cbiAgICAgICAgY29uc3QgbWVyZ2VPYmpJbnRvID0gKHJvdykgPT4ge1xuICAgICAgICAgICAgY29uc3QgbWVyZ2UgPSB3aXRoTXV0YXRpb25zXG4gICAgICAgICAgICAgICAgPyBvcHMubXV0YWJsZS5tZXJnZVxuICAgICAgICAgICAgICAgIDogb3BzLmJhdGNoLm1lcmdlKGJhdGNoVG9rZW4pO1xuICAgICAgICAgICAgcmV0dXJuIG1lcmdlKG1lcmdlT2JqLCByb3cpO1xuICAgICAgICB9O1xuXG4gICAgICAgIGNvbnN0IHNldCA9IHdpdGhNdXRhdGlvbnMgPyBvcHMubXV0YWJsZS5zZXQgOiBvcHMuYmF0Y2guc2V0KGJhdGNoVG9rZW4pO1xuXG4gICAgICAgIGNvbnN0IGluZGV4ZWRBdHRycyA9IE9iamVjdC5rZXlzKGJyYW5jaC5pbmRleGVzKS5maWx0ZXIoKGF0dHIpID0+XG4gICAgICAgICAgICBtZXJnZU9iai5oYXNPd25Qcm9wZXJ0eShhdHRyKVxuICAgICAgICApO1xuICAgICAgICBjb25zdCBpbmRleElkc1RvQWRkID0gW107XG4gICAgICAgIGNvbnN0IGluZGV4SWRzVG9EZWxldGUgPSBbXTtcblxuICAgICAgICBjb25zdCBuZXh0TWFwID0gcm93cy5yZWR1Y2UoKG1hcCwgcm93KSA9PiB7XG4gICAgICAgICAgICBjb25zdCBwcmV2QXR0clZhbHVlcyA9IGluZGV4ZWRBdHRycy5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKHZhbHVlTWFwLCBhdHRyKSA9PiAoe1xuICAgICAgICAgICAgICAgICAgICAuLi52YWx1ZU1hcCxcbiAgICAgICAgICAgICAgICAgICAgW2F0dHJdOiByb3dbYXR0cl0sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAge31cbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb25zdCByZXN1bHQgPSBtZXJnZU9iakludG8ocm93KTtcbiAgICAgICAgICAgIGNvbnN0IG5leHRBdHRyVmFsdWVzID0gaW5kZXhlZEF0dHJzLnJlZHVjZShcbiAgICAgICAgICAgICAgICAodmFsdWVNYXAsIGF0dHIpID0+ICh7XG4gICAgICAgICAgICAgICAgICAgIC4uLnZhbHVlTWFwLFxuICAgICAgICAgICAgICAgICAgICBbYXR0cl06IHJlc3VsdFthdHRyXSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB7fVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnN0IGlkID0gcmVzdWx0W3RoaXMuaWRBdHRyaWJ1dGVdO1xuICAgICAgICAgICAgY29uc3QgbmV4dFJvdyA9IHNldChpZCwgcmVzdWx0LCBtYXApO1xuICAgICAgICAgICAgaW5kZXhlZEF0dHJzLmZvckVhY2goKGF0dHIpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCB7IFthdHRyXTogcHJldlZhbHVlIH0gPSBwcmV2QXR0clZhbHVlcztcbiAgICAgICAgICAgICAgICBjb25zdCB7IFthdHRyXTogbmV4dFZhbHVlIH0gPSBuZXh0QXR0clZhbHVlcztcbiAgICAgICAgICAgICAgICBpZiAocHJldlZhbHVlID09PSBuZXh0VmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gYXR0cmlidXRlIGhhcyBub3QgY2hhbmdlZCwgbm8gbmVlZCB0byB1cGRhdGUgYW55IGluZGV4XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKHByZXZWYWx1ZSAhPT0gbnVsbCAmJiB0eXBlb2YgcHJldlZhbHVlICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHJlbW92ZSBpZCBmcm9tIGF0dHJpYnV0ZSdzIGluZGV4IGZvciBpdHMgb2xkIHZhbHVlXG4gICAgICAgICAgICAgICAgICAgIGluZGV4SWRzVG9EZWxldGUucHVzaChbYXR0ciwgcHJldlZhbHVlLCBpZF0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAobmV4dFZhbHVlICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGFkZCBpZCB0byBhdHRyaWJ1dGUncyBpbmRleCBmb3IgaXRzIG5ldyB2YWx1ZVxuICAgICAgICAgICAgICAgICAgICBpbmRleElkc1RvQWRkLnB1c2goW2F0dHIsIG5leHRWYWx1ZSwgaWRdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHJldHVybiBuZXh0Um93O1xuICAgICAgICB9LCBicmFuY2hbdGhpcy5tYXBOYW1lXSk7XG5cbiAgICAgICAgbGV0IG5leHRJbmRleGVzID0gYnJhbmNoLmluZGV4ZXM7XG4gICAgICAgIGlmICh3aXRoTXV0YXRpb25zKSB7XG4gICAgICAgICAgICBpbmRleElkc1RvRGVsZXRlLmZvckVhY2goKFthdHRyLCB2YWx1ZSwgaWRdKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgYXJyID0gbmV4dEluZGV4ZXNbYXR0cl1bdmFsdWVdO1xuICAgICAgICAgICAgICAgIGNvbnN0IGlkeCA9IGFyci5pbmRleE9mKGlkKTtcbiAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5zcGxpY2UoaWR4LCAxLCBbXSwgYXJyKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgaW5kZXhJZHNUb0FkZC5mb3JFYWNoKChbYXR0ciwgdmFsdWUsIGlkXSkgPT4ge1xuICAgICAgICAgICAgICAgIG9wcy5tdXRhYmxlLnB1c2goaWQsIG5leHRJbmRleGVzW2F0dHJdW3ZhbHVlXSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmIChpbmRleElkc1RvQWRkLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIG5leHRJbmRleGVzID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICBpbmRleElkc1RvQWRkLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgIChpbmRleE1hcCwgW2F0dHIsIHZhbHVlLCBpZF0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXSA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ZhbHVlXTogb3BzLmJhdGNoLnB1c2goXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXVt2YWx1ZV0gfHwgW11cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5kZXhNYXA7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgeyAuLi5uZXh0SW5kZXhlcyB9XG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIG5leHRJbmRleGVzXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChpbmRleElkc1RvRGVsZXRlLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIG5leHRJbmRleGVzID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICBpbmRleElkc1RvRGVsZXRlLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgIChpbmRleE1hcCwgW2F0dHIsIHZhbHVlLCBpZF0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXSA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ZhbHVlXTogb3BzLmJhdGNoLmZpbHRlcihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChyb3dJZCkgPT4gcm93SWQgIT09IGlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdW3ZhbHVlXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXhNYXBbYXR0cl1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBpbmRleE1hcDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB7IC4uLm5leHRJbmRleGVzIH1cbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgbmV4dEluZGV4ZXNcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgW3RoaXMubWFwTmFtZV06IG5leHRNYXAsXG4gICAgICAgICAgICAgICAgaW5kZXhlczogbmV4dEluZGV4ZXMsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYnJhbmNoXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgZGF0YSBzdHJ1Y3R1cmUgd2l0aG91dCByb3dzIGByb3dzYC5cbiAgICAgKiBAcGFyYW0gIHtPYmplY3R9IHR4IC0gdHJhbnNhY3Rpb24gaW5mb1xuICAgICAqIEBwYXJhbSAge09iamVjdH0gYnJhbmNoIC0gdGhlIGRhdGEgc3RydWN0dXJlIHN0YXRlXG4gICAgICogQHBhcmFtICB7T2JqZWN0W119IHJvd3MgLSByb3dzIHRvIHVwZGF0ZVxuICAgICAqIEByZXR1cm4ge09iamVjdH0gdGhlIGRhdGEgc3RydWN0dXJlIHdpdGhvdXQgaWRzIGluIGBpZHNUb0RlbGV0ZWAuXG4gICAgICovXG4gICAgZGVsZXRlKHR4LCBicmFuY2gsIHJvd3MpIHtcbiAgICAgICAgY29uc3QgeyBiYXRjaFRva2VuLCB3aXRoTXV0YXRpb25zIH0gPSB0eDtcblxuICAgICAgICBjb25zdCB7IGFyck5hbWUsIG1hcE5hbWUgfSA9IHRoaXM7XG4gICAgICAgIGNvbnN0IGFyciA9IGJyYW5jaFthcnJOYW1lXTtcblxuICAgICAgICBjb25zdCBpZHNUb0RlbGV0ZSA9IHJvd3MubWFwKChyb3cpID0+IHJvd1t0aGlzLmlkQXR0cmlidXRlXSk7XG4gICAgICAgIGlmICh3aXRoTXV0YXRpb25zKSB7XG4gICAgICAgICAgICBpZHNUb0RlbGV0ZS5mb3JFYWNoKChpZCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGlkeCA9IGFyci5pbmRleE9mKGlkKTtcbiAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5zcGxpY2UoaWR4LCAxLCBbXSwgYXJyKTtcbiAgICAgICAgICAgICAgICBvcHMubXV0YWJsZS5vbWl0KGlkLCBicmFuY2hbbWFwTmFtZV0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAvLyBkZWxldGUgaWRzIGZyb20gYWxsIGluZGV4ZXNcbiAgICAgICAgICAgIE9iamVjdC52YWx1ZXMoYnJhbmNoLmluZGV4ZXMpLmZvckVhY2goKGF0dHJJbmRleCkgPT5cbiAgICAgICAgICAgICAgICBPYmplY3QudmFsdWVzKGF0dHJJbmRleCkuZm9yRWFjaCgodmFsdWVJbmRleCkgPT5cbiAgICAgICAgICAgICAgICAgICAgaWRzVG9EZWxldGUuZm9yRWFjaCgoaWQpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGlkeCA9IHZhbHVlSW5kZXguaW5kZXhPZihpZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaWR4ICE9PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wcy5tdXRhYmxlLnNwbGljZShpZHgsIDEsIFtdLCB2YWx1ZUluZGV4KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgcmV0dXJuIGJyYW5jaDtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IG5leHRJbmRleGVzID0gb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgIE9iamVjdC5lbnRyaWVzKGJyYW5jaC5pbmRleGVzKS5yZWR1Y2UoXG4gICAgICAgICAgICAgICAgKGluZGV4TWFwLCBbYXR0ciwgYXR0ckluZGV4XSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpbmRleE1hcFthdHRyXSA9IG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICAgICAgICAgICAgICBPYmplY3QuZW50cmllcyhhdHRySW5kZXgpLnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAoYXR0ckluZGV4TWFwLCBbdmFsdWUsIHZhbHVlSW5kZXhdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJJbmRleE1hcFt2YWx1ZV0gPSBvcHMuYmF0Y2guZmlsdGVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChpZCkgPT4gIWlkc1RvRGVsZXRlLmluY2x1ZGVzKGlkKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlSW5kZXhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGF0dHJJbmRleE1hcDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgLi4uaW5kZXhNYXBbYXR0cl0gfVxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4TWFwW2F0dHJdXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBpbmRleE1hcDtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHsgLi4uYnJhbmNoLmluZGV4ZXMgfVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIGJyYW5jaC5pbmRleGVzXG4gICAgICAgICk7XG5cbiAgICAgICAgcmV0dXJuIG9wcy5iYXRjaC5tZXJnZShcbiAgICAgICAgICAgIGJhdGNoVG9rZW4sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgW2Fyck5hbWVdOiBvcHMuYmF0Y2guZmlsdGVyKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICAoaWQpID0+ICFpZHNUb0RlbGV0ZS5pbmNsdWRlcyhpZCksXG4gICAgICAgICAgICAgICAgICAgIGJyYW5jaFthcnJOYW1lXVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgW21hcE5hbWVdOiBvcHMuYmF0Y2gub21pdChcbiAgICAgICAgICAgICAgICAgICAgYmF0Y2hUb2tlbixcbiAgICAgICAgICAgICAgICAgICAgaWRzVG9EZWxldGUsXG4gICAgICAgICAgICAgICAgICAgIGJyYW5jaFttYXBOYW1lXVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgaW5kZXhlczogb3BzLmJhdGNoLm1lcmdlKFxuICAgICAgICAgICAgICAgICAgICBiYXRjaFRva2VuLFxuICAgICAgICAgICAgICAgICAgICBuZXh0SW5kZXhlcyxcbiAgICAgICAgICAgICAgICAgICAgYnJhbmNoLmluZGV4ZXNcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGJyYW5jaFxuICAgICAgICApO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgVGFibGU7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/db/Table.js\n"); + + /***/ }), + +@@ -4534,7 +4556,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Database__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Database */ \"./src/db/Database.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createDatabase\", function() { return _Database__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Table */ \"./src/db/Table.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Table\", function() { return _Table__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @module db\n * @desc Internal implementation of data storage, fetching and optimizations.\n * @private\n */\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_Database__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kYi9pbmRleC5qcz84MTQ5Il0sIm5hbWVzIjpbImNyZWF0ZURhdGFiYXNlIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOzs7OztBQU1BO0FBQ0E7QUFFQTtBQUVlQSxnSEFBZiIsImZpbGUiOiIuL3NyYy9kYi9pbmRleC5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQG1vZHVsZSBkYlxuICogQGRlc2MgSW50ZXJuYWwgaW1wbGVtZW50YXRpb24gb2YgZGF0YSBzdG9yYWdlLCBmZXRjaGluZyBhbmQgb3B0aW1pemF0aW9ucy5cbiAqIEBwcml2YXRlXG4gKi9cblxuaW1wb3J0IGNyZWF0ZURhdGFiYXNlIGZyb20gXCIuL0RhdGFiYXNlXCI7XG5pbXBvcnQgVGFibGUgZnJvbSBcIi4vVGFibGVcIjtcblxuZXhwb3J0IHsgY3JlYXRlRGF0YWJhc2UsIFRhYmxlIH07XG5cbmV4cG9ydCBkZWZhdWx0IGNyZWF0ZURhdGFiYXNlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/db/index.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Database__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Database */ \"./src/db/Database.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createDatabase\", function() { return _Database__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Table */ \"./src/db/Table.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Table\", function() { return _Table__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @module db\n * @desc Internal implementation of data storage, fetching and optimizations.\n * @private\n */\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_Database__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kYi9pbmRleC5qcz84MTQ5Il0sIm5hbWVzIjpbImNyZWF0ZURhdGFiYXNlIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFFZUEsZ0hBQWYiLCJmaWxlIjoiLi9zcmMvZGIvaW5kZXguanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBtb2R1bGUgZGJcbiAqIEBkZXNjIEludGVybmFsIGltcGxlbWVudGF0aW9uIG9mIGRhdGEgc3RvcmFnZSwgZmV0Y2hpbmcgYW5kIG9wdGltaXphdGlvbnMuXG4gKiBAcHJpdmF0ZVxuICovXG5cbmltcG9ydCBjcmVhdGVEYXRhYmFzZSBmcm9tIFwiLi9EYXRhYmFzZVwiO1xuaW1wb3J0IFRhYmxlIGZyb20gXCIuL1RhYmxlXCI7XG5cbmV4cG9ydCB7IGNyZWF0ZURhdGFiYXNlLCBUYWJsZSB9O1xuXG5leHBvcnQgZGVmYXVsdCBjcmVhdGVEYXRhYmFzZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/db/index.js\n"); + + /***/ }), + +@@ -4546,7 +4568,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Dat + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"attrDescriptor\", function() { return attrDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"forwardsManyToOneDescriptor\", function() { return forwardsManyToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"forwardsOneToOneDescriptor\", function() { return forwardsOneToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"backwardsOneToOneDescriptor\", function() { return backwardsOneToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"backwardsManyToOneDescriptor\", function() { return backwardsManyToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"manyToManyDescriptor\", function() { return manyToManyDescriptor; });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n/**\n * The functions in this file return custom JS property descriptors\n * that are supposed to be assigned to Model fields.\n *\n * Some include the logic to look up models using foreign keys and\n * to add or remove relationships between models.\n *\n * @module descriptors\n * @private\n */\n\n/**\n * Defines a basic non-key attribute.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n */\n\nfunction attrDescriptor(fieldName) {\n return {\n get() {\n return this._fields[fieldName];\n },\n\n set(value) {\n return this.set(fieldName, value);\n },\n\n enumerable: true,\n configurable: true\n };\n}\n/**\n * Forwards direction of a Foreign Key: returns one object.\n * Also works as {@link .forwardsOneToOneDescriptor|forwardsOneToOneDescriptor}.\n *\n * For `book.author` referencing an `Author` model instance,\n * `fieldName` would be `'author'` and `declaredToModelName` would be `'Author'`.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n * @param {string} declaredToModelName - the name of the model that the field references.\n */\n\n\nfunction forwardsManyToOneDescriptor(fieldName, declaredToModelName) {\n return {\n get() {\n const {\n session: {\n [declaredToModelName]: DeclaredToModel\n }\n } = this.getClass();\n const {\n [fieldName]: toId\n } = this._fields;\n return DeclaredToModel.withId(toId);\n },\n\n set(value) {\n this.update({\n [fieldName]: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"normalizeEntity\"])(value)\n });\n }\n\n };\n}\n/**\n * Dereferencing foreign keys in {@link module:fields.oneToOne|oneToOne}\n * relationships works the same way as in many-to-one relationships:\n * just look up the related model.\n *\n * For example, a human face tends to have a single nose.\n * So if we want to resolve `face.nose`, we need to\n * look up the `Nose` that has the primary key that `face` references.\n *\n * @see {@link module:descriptors~forwardsManyToOneDescriptor|forwardsManyToOneDescriptor}\n */\n\n\nfunction forwardsOneToOneDescriptor(...args) {\n return forwardsManyToOneDescriptor(...args);\n}\n/**\n * Here we resolve 1-to-1 relationships starting at the model on which the\n * field was not installed. This means we need to find the instance of the\n * other model whose {@link module:fields.oneToOne|oneToOne} FK field contains the current model's primary key.\n *\n * @param {string} declaredFieldName - the name of the field referencing the current model.\n * @param {string} declaredFromModelName - the name of the other model.\n */\n\n\nfunction backwardsOneToOneDescriptor(declaredFieldName, declaredFromModelName) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel\n }\n } = this.getClass();\n return DeclaredFromModel.get({\n [declaredFieldName]: this.getId()\n });\n },\n\n set() {\n throw new Error(\"Can't mutate a reverse one-to-one relation.\");\n }\n\n };\n}\n/**\n * The backwards direction of a n-to-1 relationship (i.e. 1-to-n),\n * meaning this will return an a collection (`QuerySet`) of model instances.\n *\n * An example would be `author.books` referencing all instances of\n * the `Book` model that reference the author using `fk()`.\n */\n\n\nfunction backwardsManyToOneDescriptor(declaredFieldName, declaredFromModelName) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel\n }\n } = this.getClass();\n return DeclaredFromModel.filter({\n [declaredFieldName]: this.getId()\n });\n },\n\n set() {\n throw new Error(\"Can't mutate a reverse many-to-one relation.\");\n }\n\n };\n}\n/**\n * This descriptor is assigned to both sides of a many-to-many relationship.\n * To indicate the backwards direction pass `true` for `reverse`.\n */\n\n\nfunction manyToManyDescriptor(declaredFromModelName, declaredToModelName, throughModelName, throughFields, reverse) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel,\n [declaredToModelName]: DeclaredToModel,\n [throughModelName]: ThroughModel\n }\n } = this.getClass();\n const ThisModel = reverse ? DeclaredToModel : DeclaredFromModel;\n const OtherModel = reverse ? DeclaredFromModel : DeclaredToModel;\n const thisReferencingField = reverse ? throughFields.to : throughFields.from;\n const otherReferencingField = reverse ? throughFields.from : throughFields.to;\n const thisId = this.getId();\n const throughQs = ThroughModel.filter({\n [thisReferencingField]: thisId\n });\n /**\n * all IDs of instances of the other model that are\n * referenced by any instance of the current model\n */\n\n const referencedOtherIds = new Set(throughQs.toRefArray().map(obj => obj[otherReferencingField]));\n /**\n * selects all instances of other model that are referenced\n * by any instance of the current model\n */\n\n const qs = OtherModel.filter(otherModelInstance => referencedOtherIds.has(otherModelInstance[OtherModel.idAttribute]));\n /**\n * Allows adding OtherModel instances to be referenced by the current instance.\n *\n * E.g. Book.first().authors.add(1, 2) would add the authors with IDs 1 and 2\n * to the first book's list of referenced authors.\n *\n * @return undefined\n */\n\n qs.add = function add(...entities) {\n const idsToAdd = new Set(entities.map(_utils__WEBPACK_IMPORTED_MODULE_0__[\"normalizeEntity\"]));\n const existingQs = throughQs.filter(through => idsToAdd.has(through[otherReferencingField]));\n\n if (existingQs.exists()) {\n const existingIds = existingQs.toRefArray().map(through => through[otherReferencingField]);\n throw new Error(`Tried to add already existing ${OtherModel.modelName} id(s) ${existingIds} to the ${ThisModel.modelName} instance with id ${thisId}`);\n }\n\n idsToAdd.forEach(id => {\n ThroughModel.create({\n [otherReferencingField]: id,\n [thisReferencingField]: thisId\n });\n });\n };\n /**\n * Removes references to all OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.clear() would cause the first book's list\n * of referenced authors to become empty.\n *\n * @return undefined\n */\n\n\n qs.clear = function clear() {\n throughQs.delete();\n };\n /**\n * Removes references to all passed OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.remove(1, 2) would cause the authors with\n * IDs 1 and 2 to no longer be referenced by the first book.\n *\n * @return undefined\n */\n\n\n qs.remove = function remove(...entities) {\n const idsToRemove = new Set(entities.map(_utils__WEBPACK_IMPORTED_MODULE_0__[\"normalizeEntity\"]));\n const entitiesToDelete = throughQs.filter(through => idsToRemove.has(through[otherReferencingField]));\n\n if (entitiesToDelete.count() !== idsToRemove.size) {\n // Tried deleting non-existing entities.\n const entitiesToDeleteIds = entitiesToDelete.toRefArray().map(through => through[otherReferencingField]);\n const unexistingIds = [...idsToRemove].filter(id => !entitiesToDeleteIds.includes(id));\n throw new Error(`Tried to delete non-existing ${OtherModel.modelName} id(s) ${unexistingIds} from the ${ThisModel.modelName} instance with id ${thisId}`);\n }\n\n entitiesToDelete.delete();\n };\n\n return qs;\n },\n\n set() {\n throw new Error(\"Tried setting a M2M field. Please use the related QuerySet methods add, remove and clear.\");\n }\n\n };\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kZXNjcmlwdG9ycy5qcz8zZDUxIl0sIm5hbWVzIjpbImF0dHJEZXNjcmlwdG9yIiwiZmllbGROYW1lIiwiZ2V0IiwiX2Z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lZE90aGVySWRzID0gbmV3IFNldChcbiAgICAgICAgICAgICAgICB0aHJvdWdoUXMudG9SZWZBcnJheSgpLm1hcChvYmogPT4gb2JqW290aGVyUmVmZXJlbmNpbmdGaWVsZF0pXG4gICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIHNlbGVjdHMgYWxsIGluc3RhbmNlcyBvZiBvdGhlciBtb2RlbCB0aGF0IGFyZSByZWZlcmVuY2VkXG4gICAgICAgICAgICAgKiBieSBhbnkgaW5zdGFuY2Ugb2YgdGhlIGN1cnJlbnQgbW9kZWxcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgY29uc3QgcXMgPSBPdGhlck1vZGVsLmZpbHRlcihvdGhlck1vZGVsSW5zdGFuY2UgPT5cbiAgICAgICAgICAgICAgICByZWZlcmVuY2VkT3RoZXJJZHMuaGFzKFxuICAgICAgICAgICAgICAgICAgICBvdGhlck1vZGVsSW5zdGFuY2VbT3RoZXJNb2RlbC5pZEF0dHJpYnV0ZV1cbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIEFsbG93cyBhZGRpbmcgT3RoZXJNb2RlbCBpbnN0YW5jZXMgdG8gYmUgcmVmZXJlbmNlZCBieSB0aGUgY3VycmVudCBpbnN0YW5jZS5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBFLmcuIEJvb2suZmlyc3QoKS5hdXRob3JzLmFkZCgxLCAyKSB3b3VsZCBhZGQgdGhlIGF1dGhvcnMgd2l0aCBJRHMgMSBhbmQgMlxuICAgICAgICAgICAgICogdG8gdGhlIGZpcnN0IGJvb2sncyBsaXN0IG9mIHJlZmVyZW5jZWQgYXV0aG9ycy5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAcmV0dXJuIHVuZGVmaW5lZFxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICBxcy5hZGQgPSBmdW5jdGlvbiBhZGQoLi4uZW50aXRpZXMpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBpZHNUb0FkZCA9IG5ldyBTZXQoZW50aXRpZXMubWFwKG5vcm1hbGl6ZUVudGl0eSkpO1xuXG4gICAgICAgICAgICAgICAgY29uc3QgZXhpc3RpbmdRcyA9IHRocm91Z2hRcy5maWx0ZXIodGhyb3VnaCA9PlxuICAgICAgICAgICAgICAgICAgICBpZHNUb0FkZC5oYXModGhyb3VnaFtvdGhlclJlZmVyZW5jaW5nRmllbGRdKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBpZiAoZXhpc3RpbmdRcy5leGlzdHMoKSkge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBleGlzdGluZ0lkcyA9IGV4aXN0aW5nUXNcbiAgICAgICAgICAgICAgICAgICAgICAgIC50b1JlZkFycmF5KClcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAodGhyb3VnaCA9PiB0aHJvdWdoW290aGVyUmVmZXJlbmNpbmdGaWVsZF0pO1xuXG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICAgICAgICAgIGBUcmllZCB0byBhZGQgYWxyZWFkeSBleGlzdGluZyAke090aGVyTW9kZWwubW9kZWxOYW1lfSBpZChzKSAke2V4aXN0aW5nSWRzfSB0byB0aGUgJHtUaGlzTW9kZWwubW9kZWxOYW1lfSBpbnN0YW5jZSB3aXRoIGlkICR7dGhpc0lkfWBcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZHNUb0FkZC5mb3JFYWNoKGlkID0+IHtcbiAgICAgICAgICAgICAgICAgICAgVGhyb3VnaE1vZGVsLmNyZWF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICBbb3RoZXJSZWZlcmVuY2luZ0ZpZWxkXTogaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBbdGhpc1JlZmVyZW5jaW5nRmllbGRdOiB0aGlzSWQsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBSZW1vdmVzIHJlZmVyZW5jZXMgdG8gYWxsIE90aGVyTW9kZWwgaW5zdGFuY2VzIGZyb20gdGhlIGN1cnJlbnQgbW9kZWwuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogRS5nLiBCb29rLmZpcnN0KCkuYXV0aG9ycy5jbGVhcigpIHdvdWxkIGNhdXNlIHRoZSBmaXJzdCBib29rJ3MgbGlzdFxuICAgICAgICAgICAgICogb2YgcmVmZXJlbmNlZCBhdXRob3JzIHRvIGJlY29tZSBlbXB0eS5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAcmV0dXJuIHVuZGVmaW5lZFxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICBxcy5jbGVhciA9IGZ1bmN0aW9uIGNsZWFyKCkge1xuICAgICAgICAgICAgICAgIHRocm91Z2hRcy5kZWxldGUoKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogUmVtb3ZlcyByZWZlcmVuY2VzIHRvIGFsbCBwYXNzZWQgT3RoZXJNb2RlbCBpbnN0YW5jZXMgZnJvbSB0aGUgY3VycmVudCBtb2RlbC5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBFLmcuIEJvb2suZmlyc3QoKS5hdXRob3JzLnJlbW92ZSgxLCAyKSB3b3VsZCBjYXVzZSB0aGUgYXV0aG9ycyB3aXRoXG4gICAgICAgICAgICAgKiBJRHMgMSBhbmQgMiB0byBubyBsb25nZXIgYmUgcmVmZXJlbmNlZCBieSB0aGUgZmlyc3QgYm9vay5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAcmV0dXJuIHVuZGVmaW5lZFxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICBxcy5yZW1vdmUgPSBmdW5jdGlvbiByZW1vdmUoLi4uZW50aXRpZXMpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBpZHNUb1JlbW92ZSA9IG5ldyBTZXQoZW50aXRpZXMubWFwKG5vcm1hbGl6ZUVudGl0eSkpO1xuXG4gICAgICAgICAgICAgICAgY29uc3QgZW50aXRpZXNUb0RlbGV0ZSA9IHRocm91Z2hRcy5maWx0ZXIodGhyb3VnaCA9PlxuICAgICAgICAgICAgICAgICAgICBpZHNUb1JlbW92ZS5oYXModGhyb3VnaFtvdGhlclJlZmVyZW5jaW5nRmllbGRdKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBpZiAoZW50aXRpZXNUb0RlbGV0ZS5jb3VudCgpICE9PSBpZHNUb1JlbW92ZS5zaXplKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIFRyaWVkIGRlbGV0aW5nIG5vbi1leGlzdGluZyBlbnRpdGllcy5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgZW50aXRpZXNUb0RlbGV0ZUlkcyA9IGVudGl0aWVzVG9EZWxldGVcbiAgICAgICAgICAgICAgICAgICAgICAgIC50b1JlZkFycmF5KClcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAodGhyb3VnaCA9PiB0aHJvdWdoW290aGVyUmVmZXJlbmNpbmdGaWVsZF0pO1xuXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHVuZXhpc3RpbmdJZHMgPSBbLi4uaWRzVG9SZW1vdmVdLmZpbHRlcihcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkID0+ICFlbnRpdGllc1RvRGVsZXRlSWRzLmluY2x1ZGVzKGlkKVxuICAgICAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICAgICAgICAgIGBUcmllZCB0byBkZWxldGUgbm9uLWV4aXN0aW5nICR7T3RoZXJNb2RlbC5tb2RlbE5hbWV9IGlkKHMpICR7dW5leGlzdGluZ0lkc30gZnJvbSB0aGUgJHtUaGlzTW9kZWwubW9kZWxOYW1lfSBpbnN0YW5jZSB3aXRoIGlkICR7dGhpc0lkfWBcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBlbnRpdGllc1RvRGVsZXRlLmRlbGV0ZSgpO1xuICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgcmV0dXJuIHFzO1xuICAgICAgICB9LFxuXG4gICAgICAgIHNldCgpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICBcIlRyaWVkIHNldHRpbmcgYSBNMk0gZmllbGQuIFBsZWFzZSB1c2UgdGhlIHJlbGF0ZWQgUXVlcnlTZXQgbWV0aG9kcyBhZGQsIHJlbW92ZSBhbmQgY2xlYXIuXCJcbiAgICAgICAgICAgICk7XG4gICAgICAgIH0sXG4gICAgfTtcbn1cblxuZXhwb3J0IHtcbiAgICBhdHRyRGVzY3JpcHRvcixcbiAgICBmb3J3YXJkc01hbnlUb09uZURlc2NyaXB0b3IsXG4gICAgZm9yd2FyZHNPbmVUb09uZURlc2NyaXB0b3IsXG4gICAgYmFja3dhcmRzT25lVG9PbmVEZXNjcmlwdG9yLFxuICAgIGJhY2t3YXJkc01hbnlUb09uZURlc2NyaXB0b3IsXG4gICAgbWFueVRvTWFueURlc2NyaXB0b3IsXG59O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/descriptors.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"attrDescriptor\", function() { return attrDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"forwardsManyToOneDescriptor\", function() { return forwardsManyToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"forwardsOneToOneDescriptor\", function() { return forwardsOneToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"backwardsOneToOneDescriptor\", function() { return backwardsOneToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"backwardsManyToOneDescriptor\", function() { return backwardsManyToOneDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"manyToManyDescriptor\", function() { return manyToManyDescriptor; });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n\n/**\n * The functions in this file return custom JS property descriptors\n * that are supposed to be assigned to Model fields.\n *\n * Some include the logic to look up models using foreign keys and\n * to add or remove relationships between models.\n *\n * @module descriptors\n * @private\n */\n\n/**\n * Defines a basic non-key attribute.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n */\n\nfunction attrDescriptor(fieldName) {\n return {\n get() {\n return this._fields[fieldName];\n },\n\n set(value) {\n return this.set(fieldName, value);\n },\n\n enumerable: true,\n configurable: true\n };\n}\n/**\n * Forwards direction of a Foreign Key: returns one object.\n * Also works as {@link .forwardsOneToOneDescriptor|forwardsOneToOneDescriptor}.\n *\n * For `book.author` referencing an `Author` model instance,\n * `fieldName` would be `'author'` and `declaredToModelName` would be `'Author'`.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n * @param {string} declaredToModelName - the name of the model that the field references.\n */\n\n\nfunction forwardsManyToOneDescriptor(fieldName, declaredToModelName) {\n return {\n get() {\n const {\n session: {\n [declaredToModelName]: DeclaredToModel\n }\n } = this.getClass();\n const {\n [fieldName]: toId\n } = this._fields;\n return DeclaredToModel.withId(toId);\n },\n\n set(value) {\n this.update({\n [fieldName]: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"normalizeEntity\"])(value)\n });\n }\n\n };\n}\n/**\n * Dereferencing foreign keys in {@link module:fields.oneToOne|oneToOne}\n * relationships works the same way as in many-to-one relationships:\n * just look up the related model.\n *\n * For example, a human face tends to have a single nose.\n * So if we want to resolve `face.nose`, we need to\n * look up the `Nose` that has the primary key that `face` references.\n *\n * @see {@link module:descriptors~forwardsManyToOneDescriptor|forwardsManyToOneDescriptor}\n */\n\n\nfunction forwardsOneToOneDescriptor(...args) {\n return forwardsManyToOneDescriptor(...args);\n}\n/**\n * Here we resolve 1-to-1 relationships starting at the model on which the\n * field was not installed. This means we need to find the instance of the\n * other model whose {@link module:fields.oneToOne|oneToOne} FK field contains the current model's primary key.\n *\n * @param {string} declaredFieldName - the name of the field referencing the current model.\n * @param {string} declaredFromModelName - the name of the other model.\n */\n\n\nfunction backwardsOneToOneDescriptor(declaredFieldName, declaredFromModelName) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel\n }\n } = this.getClass();\n return DeclaredFromModel.get({\n [declaredFieldName]: this.getId()\n });\n },\n\n set() {\n throw new Error(\"Can't mutate a reverse one-to-one relation.\");\n }\n\n };\n}\n/**\n * The backwards direction of a n-to-1 relationship (i.e. 1-to-n),\n * meaning this will return an a collection (`QuerySet`) of model instances.\n *\n * An example would be `author.books` referencing all instances of\n * the `Book` model that reference the author using `fk()`.\n */\n\n\nfunction backwardsManyToOneDescriptor(declaredFieldName, declaredFromModelName) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel\n }\n } = this.getClass();\n return DeclaredFromModel.filter({\n [declaredFieldName]: this.getId()\n });\n },\n\n set() {\n throw new Error(\"Can't mutate a reverse many-to-one relation.\");\n }\n\n };\n}\n/**\n * This descriptor is assigned to both sides of a many-to-many relationship.\n * To indicate the backwards direction pass `true` for `reverse`.\n */\n\n\nfunction manyToManyDescriptor(declaredFromModelName, declaredToModelName, throughModelName, throughFields, reverse) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel,\n [declaredToModelName]: DeclaredToModel,\n [throughModelName]: ThroughModel\n }\n } = this.getClass();\n const ThisModel = reverse ? DeclaredToModel : DeclaredFromModel;\n const OtherModel = reverse ? DeclaredFromModel : DeclaredToModel;\n const thisReferencingField = reverse ? throughFields.to : throughFields.from;\n const otherReferencingField = reverse ? throughFields.from : throughFields.to;\n const thisId = this.getId();\n const throughQs = ThroughModel.filter({\n [thisReferencingField]: thisId\n });\n /**\n * all IDs of instances of the other model that are\n * referenced by any instance of the current model\n */\n\n const referencedOtherIds = new Set(throughQs.toRefArray().map(obj => obj[otherReferencingField]));\n /**\n * selects all instances of other model that are referenced\n * by any instance of the current model\n */\n\n const qs = OtherModel.filter(otherModelInstance => referencedOtherIds.has(otherModelInstance[OtherModel.idAttribute]));\n /**\n * Allows adding OtherModel instances to be referenced by the current instance.\n *\n * E.g. Book.first().authors.add(1, 2) would add the authors with IDs 1 and 2\n * to the first book's list of referenced authors.\n *\n * @return undefined\n */\n\n qs.add = function add(...entities) {\n const idsToAdd = new Set(entities.map(_utils__WEBPACK_IMPORTED_MODULE_0__[\"normalizeEntity\"]));\n const existingQs = throughQs.filter(through => idsToAdd.has(through[otherReferencingField]));\n\n if (existingQs.exists()) {\n const existingIds = existingQs.toRefArray().map(through => through[otherReferencingField]);\n throw new Error(`Tried to add already existing ${OtherModel.modelName} id(s) ${existingIds} to the ${ThisModel.modelName} instance with id ${thisId}`);\n }\n\n idsToAdd.forEach(id => {\n ThroughModel.create({\n [otherReferencingField]: id,\n [thisReferencingField]: thisId\n });\n });\n };\n /**\n * Removes references to all OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.clear() would cause the first book's list\n * of referenced authors to become empty.\n *\n * @return undefined\n */\n\n\n qs.clear = function clear() {\n throughQs.delete();\n };\n /**\n * Removes references to all passed OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.remove(1, 2) would cause the authors with\n * IDs 1 and 2 to no longer be referenced by the first book.\n *\n * @return undefined\n */\n\n\n qs.remove = function remove(...entities) {\n const idsToRemove = new Set(entities.map(_utils__WEBPACK_IMPORTED_MODULE_0__[\"normalizeEntity\"]));\n const entitiesToDelete = throughQs.filter(through => idsToRemove.has(through[otherReferencingField]));\n\n if (entitiesToDelete.count() !== idsToRemove.size) {\n // Tried deleting non-existing entities.\n const entitiesToDeleteIds = entitiesToDelete.toRefArray().map(through => through[otherReferencingField]);\n const unexistingIds = [...idsToRemove].filter(id => !entitiesToDeleteIds.includes(id));\n throw new Error(`Tried to delete non-existing ${OtherModel.modelName} id(s) ${unexistingIds} from the ${ThisModel.modelName} instance with id ${thisId}`);\n }\n\n entitiesToDelete.delete();\n };\n\n return qs;\n },\n\n set() {\n throw new Error(\"Tried setting a M2M field. Please use the related QuerySet methods add, remove and clear.\");\n }\n\n };\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9kZXNjcmlwdG9ycy5qcz8zZDUxIl0sIm5hbWVzIjpbImF0dHJEZXNjcmlwdG9yIiwiZmllbGROYW1lIiwiZ2V0IiwiX2ZpZWxkcyIsInNldCIsInZhbHVlIiwiZW51bWVyYWJsZSIsImNvbmZpZ3VyYWJsZSIsImZvcndhcmRzTWFueVRvT25lRGVzY3JpcHRvciIsImRlY2xhcmVkVG9Nb2RlbE5hbWUiLCJzZXNzaW9uIiwiRGVjbGFyZWRUb01vZGVsIiwiZ2V0Q2xhc3MiLCJ0b0lkIiwid2l0aElkIiwidXBkYXRlIiwibm9ybWFsaXplRW50aXR5IiwiZm9yd2FyZHNPbmVUb09uZURlc2NyaXB0b3IiLCJhcmdzIiwiYmFja3dhcmRzT25lVG9PbmVEZXNjcmlwdG9yIiwiZGVjbGFyZWRGaWVsZE5hbWUiLCJkZWNsYXJlZEZyb21Nb2RlbE5hbWUiLCJEZWNsYXJlZEZyb21Nb2RlbCIsImdldElkIiwiRXJyb3IiLCJiYWNrd2FyZHNNYW55VG9PbmVEZXNjcmlwdG9yIiwiZmlsdGVyIiwibW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VuY2luZ0ZpZWxkXSlcbiAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogc2VsZWN0cyBhbGwgaW5zdGFuY2VzIG9mIG90aGVyIG1vZGVsIHRoYXQgYXJlIHJlZmVyZW5jZWRcbiAgICAgICAgICAgICAqIGJ5IGFueSBpbnN0YW5jZSBvZiB0aGUgY3VycmVudCBtb2RlbFxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICBjb25zdCBxcyA9IE90aGVyTW9kZWwuZmlsdGVyKChvdGhlck1vZGVsSW5zdGFuY2UpID0+XG4gICAgICAgICAgICAgICAgcmVmZXJlbmNlZE90aGVySWRzLmhhcyhcbiAgICAgICAgICAgICAgICAgICAgb3RoZXJNb2RlbEluc3RhbmNlW090aGVyTW9kZWwuaWRBdHRyaWJ1dGVdXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBBbGxvd3MgYWRkaW5nIE90aGVyTW9kZWwgaW5zdGFuY2VzIHRvIGJlIHJlZmVyZW5jZWQgYnkgdGhlIGN1cnJlbnQgaW5zdGFuY2UuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogRS5nLiBCb29rLmZpcnN0KCkuYXV0aG9ycy5hZGQoMSwgMikgd291bGQgYWRkIHRoZSBhdXRob3JzIHdpdGggSURzIDEgYW5kIDJcbiAgICAgICAgICAgICAqIHRvIHRoZSBmaXJzdCBib29rJ3MgbGlzdCBvZiByZWZlcmVuY2VkIGF1dGhvcnMuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogQHJldHVybiB1bmRlZmluZWRcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgcXMuYWRkID0gZnVuY3Rpb24gYWRkKC4uLmVudGl0aWVzKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgaWRzVG9BZGQgPSBuZXcgU2V0KGVudGl0aWVzLm1hcChub3JtYWxpemVFbnRpdHkpKTtcblxuICAgICAgICAgICAgICAgIGNvbnN0IGV4aXN0aW5nUXMgPSB0aHJvdWdoUXMuZmlsdGVyKCh0aHJvdWdoKSA9PlxuICAgICAgICAgICAgICAgICAgICBpZHNUb0FkZC5oYXModGhyb3VnaFtvdGhlclJlZmVyZW5jaW5nRmllbGRdKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBpZiAoZXhpc3RpbmdRcy5leGlzdHMoKSkge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBleGlzdGluZ0lkcyA9IGV4aXN0aW5nUXNcbiAgICAgICAgICAgICAgICAgICAgICAgIC50b1JlZkFycmF5KClcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAoKHRocm91Z2gpID0+IHRocm91Z2hbb3RoZXJSZWZlcmVuY2luZ0ZpZWxkXSk7XG5cbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgICAgICAgICAgICAgYFRyaWVkIHRvIGFkZCBhbHJlYWR5IGV4aXN0aW5nICR7T3RoZXJNb2RlbC5tb2RlbE5hbWV9IGlkKHMpICR7ZXhpc3RpbmdJZHN9IHRvIHRoZSAke1RoaXNNb2RlbC5tb2RlbE5hbWV9IGluc3RhbmNlIHdpdGggaWQgJHt0aGlzSWR9YFxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlkc1RvQWRkLmZvckVhY2goKGlkKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIFRocm91Z2hNb2RlbC5jcmVhdGUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgW290aGVyUmVmZXJlbmNpbmdGaWVsZF06IGlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgW3RoaXNSZWZlcmVuY2luZ0ZpZWxkXTogdGhpc0lkLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogUmVtb3ZlcyByZWZlcmVuY2VzIHRvIGFsbCBPdGhlck1vZGVsIGluc3RhbmNlcyBmcm9tIHRoZSBjdXJyZW50IG1vZGVsLlxuICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAqIEUuZy4gQm9vay5maXJzdCgpLmF1dGhvcnMuY2xlYXIoKSB3b3VsZCBjYXVzZSB0aGUgZmlyc3QgYm9vaydzIGxpc3RcbiAgICAgICAgICAgICAqIG9mIHJlZmVyZW5jZWQgYXV0aG9ycyB0byBiZWNvbWUgZW1wdHkuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogQHJldHVybiB1bmRlZmluZWRcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgcXMuY2xlYXIgPSBmdW5jdGlvbiBjbGVhcigpIHtcbiAgICAgICAgICAgICAgICB0aHJvdWdoUXMuZGVsZXRlKCk7XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIFJlbW92ZXMgcmVmZXJlbmNlcyB0byBhbGwgcGFzc2VkIE90aGVyTW9kZWwgaW5zdGFuY2VzIGZyb20gdGhlIGN1cnJlbnQgbW9kZWwuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogRS5nLiBCb29rLmZpcnN0KCkuYXV0aG9ycy5yZW1vdmUoMSwgMikgd291bGQgY2F1c2UgdGhlIGF1dGhvcnMgd2l0aFxuICAgICAgICAgICAgICogSURzIDEgYW5kIDIgdG8gbm8gbG9uZ2VyIGJlIHJlZmVyZW5jZWQgYnkgdGhlIGZpcnN0IGJvb2suXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogQHJldHVybiB1bmRlZmluZWRcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgcXMucmVtb3ZlID0gZnVuY3Rpb24gcmVtb3ZlKC4uLmVudGl0aWVzKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgaWRzVG9SZW1vdmUgPSBuZXcgU2V0KGVudGl0aWVzLm1hcChub3JtYWxpemVFbnRpdHkpKTtcblxuICAgICAgICAgICAgICAgIGNvbnN0IGVudGl0aWVzVG9EZWxldGUgPSB0aHJvdWdoUXMuZmlsdGVyKCh0aHJvdWdoKSA9PlxuICAgICAgICAgICAgICAgICAgICBpZHNUb1JlbW92ZS5oYXModGhyb3VnaFtvdGhlclJlZmVyZW5jaW5nRmllbGRdKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBpZiAoZW50aXRpZXNUb0RlbGV0ZS5jb3VudCgpICE9PSBpZHNUb1JlbW92ZS5zaXplKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIFRyaWVkIGRlbGV0aW5nIG5vbi1leGlzdGluZyBlbnRpdGllcy5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgZW50aXRpZXNUb0RlbGV0ZUlkcyA9IGVudGl0aWVzVG9EZWxldGVcbiAgICAgICAgICAgICAgICAgICAgICAgIC50b1JlZkFycmF5KClcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAoKHRocm91Z2gpID0+IHRocm91Z2hbb3RoZXJSZWZlcmVuY2luZ0ZpZWxkXSk7XG5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgdW5leGlzdGluZ0lkcyA9IFsuLi5pZHNUb1JlbW92ZV0uZmlsdGVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgKGlkKSA9PiAhZW50aXRpZXNUb0RlbGV0ZUlkcy5pbmNsdWRlcyhpZClcbiAgICAgICAgICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICBgVHJpZWQgdG8gZGVsZXRlIG5vbi1leGlzdGluZyAke090aGVyTW9kZWwubW9kZWxOYW1lfSBpZChzKSAke3VuZXhpc3RpbmdJZHN9IGZyb20gdGhlICR7VGhpc01vZGVsLm1vZGVsTmFtZX0gaW5zdGFuY2Ugd2l0aCBpZCAke3RoaXNJZH1gXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZW50aXRpZXNUb0RlbGV0ZS5kZWxldGUoKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHJldHVybiBxcztcbiAgICAgICAgfSxcblxuICAgICAgICBzZXQoKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICAgICAgXCJUcmllZCBzZXR0aW5nIGEgTTJNIGZpZWxkLiBQbGVhc2UgdXNlIHRoZSByZWxhdGVkIFF1ZXJ5U2V0IG1ldGhvZHMgYWRkLCByZW1vdmUgYW5kIGNsZWFyLlwiXG4gICAgICAgICAgICApO1xuICAgICAgICB9LFxuICAgIH07XG59XG5cbmV4cG9ydCB7XG4gICAgYXR0ckRlc2NyaXB0b3IsXG4gICAgZm9yd2FyZHNNYW55VG9PbmVEZXNjcmlwdG9yLFxuICAgIGZvcndhcmRzT25lVG9PbmVEZXNjcmlwdG9yLFxuICAgIGJhY2t3YXJkc09uZVRvT25lRGVzY3JpcHRvcixcbiAgICBiYWNrd2FyZHNNYW55VG9PbmVEZXNjcmlwdG9yLFxuICAgIG1hbnlUb01hbnlEZXNjcmlwdG9yLFxufTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/descriptors.js\n"); + + /***/ }), + +@@ -4558,7 +4580,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Attribute\", function() { return Attribute; });\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Field */ \"./src/fields/Field.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet Attribute = /*#__PURE__*/function (_Field) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(Attribute, _Field);\n\n function Attribute(opts) {\n var _this;\n\n _this = _Field.call(this) || this;\n _this.opts = opts || {};\n\n if (_this.opts.hasOwnProperty(\"getDefault\")) {\n _this.getDefault = _this.opts.getDefault;\n }\n\n return _this;\n }\n\n var _proto = Attribute.prototype;\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_2__[\"attrDescriptor\"])(fieldName);\n };\n\n return Attribute;\n}(_Field__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (Attribute);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvQXR0cmlidXRlLmpzPzJkNDMiXSwibmFtZXMiOlsiQXR0cmlidXRlIiwib3B0cyIsImhhc093blByb3BlcnR5IiwiZ2V0RGVmYXVsdCIsImNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvciIsImZpZWxkTmFtZSIsIm1vZGVsIiwiYXR0ckRlc2NyaXB0b3IiLCJGaWVsZCJdLCJtYXBwaW5ncy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uICAgICAgICB9XG4gICAgfVxuXG4gICAgY3JlYXRlRm9yd2FyZHNEZXNjcmlwdG9yKGZpZWxkTmFtZSwgbW9kZWwpIHtcbiAgICAgICAgcmV0dXJuIGF0dHJEZXNjcmlwdG9yKGZpZWxkTmFtZSk7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBBdHRyaWJ1dGU7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/fields/Attribute.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Attribute\", function() { return Attribute; });\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Field */ \"./src/fields/Field.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet Attribute = /*#__PURE__*/function (_Field) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(Attribute, _Field);\n\n function Attribute(opts) {\n var _this;\n\n _this = _Field.call(this) || this;\n _this.opts = opts || {};\n\n if (_this.opts.hasOwnProperty(\"getDefault\")) {\n _this.getDefault = _this.opts.getDefault;\n }\n\n return _this;\n }\n\n var _proto = Attribute.prototype;\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_2__[\"attrDescriptor\"])(fieldName);\n };\n\n return Attribute;\n}(_Field__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (Attribute);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvQXR0cmlidXRlLmpzPzJkNDMiXSwibmFtZXMiOlsiQXR0cmlidXRlIiwib3B0cyIsImhhc093blByb3BlcnR5IiwiZ2V0RGVmYXVsdCIsImNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvciIsImZpZWxkTmFtZSIsIm1vZGVsIiwiYXR0ckRlc2NyaXB0b3IiLCJGaWVsZCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7O0FBQ08sSUFBTUEsU0FBYjtBQUFBOztBQUNJLHFCQUFZQyxJQUFaLEVBQWtCO0FBQUE7O0FBQ2Q7QUFDQSxVQUFLQSxJQUFMLEdBQVlBLElBQUksSUFBSSxFQUFwQjs7QUFFQSxRQUFJLE1BQUtBLElBQUwsQ0FBVUMsY0FBVixDQUF5QixZQUF6QixDQUFKLEVBQTRDO0FBQ3hDLFlBQUtDLFVBQUwsR0FBa0IsTUFBS0YsSUFBTCxDQUFVRSxVQUE1QjtBQUNIOztBQU5hO0FBT2pCOztBQVJMOztBQUFBLFNBVUlDLHdCQVZKLEdBVUksa0NBQXlCQyxTQUF6QixFQUFvQ0MsS0FBcEMsRUFBMkM7QUFDdkMsV0FBT0MsbUVBQWMsQ0FBQ0YsU0FBRCxDQUFyQjtBQUNILEdBWkw7O0FBQUE7QUFBQSxFQUErQkcsOENBQS9CO0FBZWVSLHdFQUFmIiwiZmlsZSI6Ii4vc3JjL2ZpZWxkcy9BdHRyaWJ1dGUuanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRmllbGQgZnJvbSBcIi4vRmllbGRcIjtcblxuaW1wb3J0IHsgYXR0ckRlc2NyaXB0b3IgfSBmcm9tIFwiLi4vZGVzY3JpcHRvcnNcIjtcblxuLyoqXG4gKiBAbWVtYmVyb2YgbW9kdWxlOmZpZWxkc1xuICovXG5leHBvcnQgY2xhc3MgQXR0cmlidXRlIGV4dGVuZHMgRmllbGQge1xuICAgIGNvbnN0cnVjdG9yKG9wdHMpIHtcbiAgICAgICAgc3VwZXIoKTtcbiAgICAgICAgdGhpcy5vcHRzID0gb3B0cyB8fCB7fTtcblxuICAgICAgICBpZiAodGhpcy5vcHRzLmhhc093blByb3BlcnR5KFwiZ2V0RGVmYXVsdFwiKSkge1xuICAgICAgICAgICAgdGhpcy5nZXREZWZhdWx0ID0gdGhpcy5vcHRzLmdldERlZmF1bHQ7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjcmVhdGVGb3J3YXJkc0Rlc2NyaXB0b3IoZmllbGROYW1lLCBtb2RlbCkge1xuICAgICAgICByZXR1cm4gYXR0ckRlc2NyaXB0b3IoZmllbGROYW1lKTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEF0dHJpYnV0ZTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/Attribute.js\n"); + + /***/ }), + +@@ -4570,7 +4592,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DefaultFieldInstaller\", function() { return DefaultFieldInstaller; });\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _FieldInstallerTemplate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FieldInstallerTemplate */ \"./src/fields/FieldInstallerTemplate.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n/**\n * Default implementation for the template method in FieldInstallerTemplate.\n * @private\n * @memberof module:fields\n */\n\nlet DefaultFieldInstaller = /*#__PURE__*/function (_FieldInstallerTempla) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(DefaultFieldInstaller, _FieldInstallerTempla);\n\n function DefaultFieldInstaller() {\n return _FieldInstallerTempla.apply(this, arguments) || this;\n }\n\n var _proto = DefaultFieldInstaller.prototype;\n\n _proto.installForwardsDescriptor = function installForwardsDescriptor() {\n Object.defineProperty(this.model.prototype, this.fieldName, this.field.createForwardsDescriptor(this.fieldName, this.model, this.toModel, this.throughModel));\n };\n\n _proto.installForwardsVirtualField = function installForwardsVirtualField() {\n this.model.virtualFields[this.fieldName] = this.field.createForwardsVirtualField(this.fieldName, this.model, this.toModel, this.throughModel);\n };\n\n _proto.installBackwardsDescriptor = function installBackwardsDescriptor() {\n const backwardsDescriptor = Object.getOwnPropertyDescriptor(this.toModel.prototype, this.backwardsFieldName);\n\n if (backwardsDescriptor) {\n throw new Error(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[\"reverseFieldErrorMessage\"])(this.model.modelName, this.fieldName, this.toModel.modelName, this.backwardsFieldName));\n } // install backwards descriptor\n\n\n Object.defineProperty(this.toModel.prototype, this.backwardsFieldName, this.field.createBackwardsDescriptor(this.fieldName, this.model, this.toModel, this.throughModel));\n };\n\n _proto.installBackwardsVirtualField = function installBackwardsVirtualField() {\n this.toModel.virtualFields[this.backwardsFieldName] = this.field.createBackwardsVirtualField(this.fieldName, this.model, this.toModel, this.throughModel);\n };\n\n return DefaultFieldInstaller;\n}(_FieldInstallerTemplate__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (DefaultFieldInstaller);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRGVmYXVsdEZpZWxkSW5zdGFsbGVyLmpzPzQxOTYiXSwibmFtZXMiOlsiRGVmYXVsdEZpZWxkSW5zdGFsbGVyIiwiaW5zdGFsbEZvcndhcmRzRGVzY3JpcHRvciIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwibW9kZWwiLCJwcm90b3R5cGUiLCJmaWVsZE5hbWUiLCJmaWVsZCIsImNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvciIsInRvTW9kZWwiLCJ0aHJvdWdoTW9kZWwiLCJpbnN0YWxsRm9yd2FyZHNWaXJ0dWFsRmllbGQiLCJ2aXJ0dWFsRmllbGRzIiwiY3JlYXRlRm9yd2FyZHNWaXJ0dWFsRmllbGQiLCJpbnN0YWxsQmFja3dhcmRzRGVzY3JpcHRvciIsImJhY2t3YXJkc0Rlc2NyaXB0b3IiLCJnZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IiLCJiYWNrd2FyZHNGaWVsZE5hbWUiLCJFcnJvciIsInJldmVyc2VGaWVsZEVycm9yTWVzc2FnZSIsIm1vZGVsTmFtZSIsImNyZWF0ZUJhY2t3YXJkc0Rlc2NyaXB0b3IiLCJpbnN0YWxsQmFja3dhcmRzVmlydHVhbEZpZWxkIiwiY3JlYXRlQmFja3dhcmRzVmlydHVhbEZpZWxkIiwiRmllbGRJbnN0YWxsZXJUZW1wbGF0ZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBRUE7QUFFQTs7Ozs7O0FBS08sSUFBTU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gICAgICAgICAgIHRoaXMubW9kZWwucHJvdG90eXBlLFxuICAgICAgICAgICAgdGhpcy5maWVsZE5hbWUsXG4gICAgICAgICAgICB0aGlzLmZpZWxkLmNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvcihcbiAgICAgICAgICAgICAgICB0aGlzLmZpZWxkTmFtZSxcbiAgICAgICAgICAgICAgICB0aGlzLm1vZGVsLFxuICAgICAgICAgICAgICAgIHRoaXMudG9Nb2RlbCxcbiAgICAgICAgICAgICAgICB0aGlzLnRocm91Z2hNb2RlbFxuICAgICAgICAgICAgKVxuICAgICAgICApO1xuICAgIH1cblxuICAgIGluc3RhbGxGb3J3YXJkc1ZpcnR1YWxGaWVsZCgpIHtcbiAgICAgICAgdGhpcy5tb2RlbC52aXJ0dWFsRmllbGRzW1xuICAgICAgICAgICAgdGhpcy5maWVsZE5hbWVcbiAgICAgICAgXSA9IHRoaXMuZmllbGQuY3JlYXRlRm9yd2FyZHNWaXJ0dWFsRmllbGQoXG4gICAgICAgICAgICB0aGlzLmZpZWxkTmFtZSxcbiAgICAgICAgICAgIHRoaXMubW9kZWwsXG4gICAgICAgICAgICB0aGlzLnRvTW9kZWwsXG4gICAgICAgICAgICB0aGlzLnRocm91Z2hNb2RlbFxuICAgICAgICApO1xuICAgIH1cblxuICAgIGluc3RhbGxCYWNrd2FyZHNEZXNjcmlwdG9yKCkge1xuICAgICAgICBjb25zdCBiYWNrd2FyZHNEZXNjcmlwdG9yID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihcbiAgICAgICAgICAgIHRoaXMudG9Nb2RlbC5wcm90b3R5cGUsXG4gICAgICAgICAgICB0aGlzLmJhY2t3YXJkc0ZpZWxkTmFtZVxuICAgICAgICApO1xuICAgICAgICBpZiAoYmFja3dhcmRzRGVzY3JpcHRvcikge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgICAgIHJldmVyc2VGaWVsZEVycm9yTWVzc2FnZShcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tb2RlbC5tb2RlbE5hbWUsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmllbGROYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLnRvTW9kZWwubW9kZWxOYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmJhY2t3YXJkc0ZpZWxkTmFtZVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBpbnN0YWxsIGJhY2t3YXJkcyBkZXNjcmlwdG9yXG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShcbiAgICAgICAgICAgIHRoaXMudG9Nb2RlbC5wcm90b3R5cGUsXG4gICAgICAgICAgICB0aGlzLmJhY2t3YXJkc0ZpZWxkTmFtZSxcbiAgICAgICAgICAgIHRoaXMuZmllbGQuY3JlYXRlQmFja3dhcmRzRGVzY3JpcHRvcihcbiAgICAgICAgICAgICAgICB0aGlzLmZpZWxkTmFtZSxcbiAgICAgICAgICAgICAgICB0aGlzLm1vZGVsLFxuICAgICAgICAgICAgICAgIHRoaXMudG9Nb2RlbCxcbiAgICAgICAgICAgICAgICB0aGlzLnRocm91Z2hNb2RlbFxuICAgICAgICAgICAgKVxuICAgICAgICApO1xuICAgIH1cblxuICAgIGluc3RhbGxCYWNrd2FyZHNWaXJ0dWFsRmllbGQoKSB7XG4gICAgICAgIHRoaXMudG9Nb2RlbC52aXJ0dWFsRmllbGRzW1xuICAgICAgICAgICAgdGhpcy5iYWNrd2FyZHNGaWVsZE5hbWVcbiAgICAgICAgXSA9IHRoaXMuZmllbGQuY3JlYXRlQmFja3dhcmRzVmlydHVhbEZpZWxkKFxuICAgICAgICAgICAgdGhpcy5maWVsZE5hbWUsXG4gICAgICAgICAgICB0aGlzLm1vZGVsLFxuICAgICAgICAgICAgdGhpcy50b01vZGVsLFxuICAgICAgICAgICAgdGhpcy50aHJvdWdoTW9kZWxcbiAgICAgICAgKTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IERlZmF1bHRGaWVsZEluc3RhbGxlcjtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/DefaultFieldInstaller.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DefaultFieldInstaller\", function() { return DefaultFieldInstaller; });\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _FieldInstallerTemplate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FieldInstallerTemplate */ \"./src/fields/FieldInstallerTemplate.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n/**\n * Default implementation for the template method in FieldInstallerTemplate.\n * @private\n * @memberof module:fields\n */\n\nlet DefaultFieldInstaller = /*#__PURE__*/function (_FieldInstallerTempla) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(DefaultFieldInstaller, _FieldInstallerTempla);\n\n function DefaultFieldInstaller() {\n return _FieldInstallerTempla.apply(this, arguments) || this;\n }\n\n var _proto = DefaultFieldInstaller.prototype;\n\n _proto.installForwardsDescriptor = function installForwardsDescriptor() {\n Object.defineProperty(this.model.prototype, this.fieldName, this.field.createForwardsDescriptor(this.fieldName, this.model, this.toModel, this.throughModel));\n };\n\n _proto.installForwardsVirtualField = function installForwardsVirtualField() {\n this.model.virtualFields[this.fieldName] = this.field.createForwardsVirtualField(this.fieldName, this.model, this.toModel, this.throughModel);\n };\n\n _proto.installBackwardsDescriptor = function installBackwardsDescriptor() {\n const backwardsDescriptor = Object.getOwnPropertyDescriptor(this.toModel.prototype, this.backwardsFieldName);\n\n if (backwardsDescriptor) {\n throw new Error(Object(_utils__WEBPACK_IMPORTED_MODULE_2__[\"reverseFieldErrorMessage\"])(this.model.modelName, this.fieldName, this.toModel.modelName, this.backwardsFieldName));\n } // install backwards descriptor\n\n\n Object.defineProperty(this.toModel.prototype, this.backwardsFieldName, this.field.createBackwardsDescriptor(this.fieldName, this.model, this.toModel, this.throughModel));\n };\n\n _proto.installBackwardsVirtualField = function installBackwardsVirtualField() {\n this.toModel.virtualFields[this.backwardsFieldName] = this.field.createBackwardsVirtualField(this.fieldName, this.model, this.toModel, this.throughModel);\n };\n\n return DefaultFieldInstaller;\n}(_FieldInstallerTemplate__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (DefaultFieldInstaller);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRGVmYXVsdEZpZWxkSW5zdGFsbGVyLmpzPzQxOTYiXSwibmFtZXMiOlsiRGVmYXVsdEZpZWxkSW5zdGFsbGVyIiwiaW5zdGFsbEZvcndhcmRzRGVzY3JpcHRvciIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwibW9kZWwiLCJwcm90b3R5cGUiLCJmaWVsZE5hbWUiLCJmaWVsZCIsImNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvciIsInRvTW9kZWwiLCJ0aHJvdWdoTW9kZWwiLCJpbnN0YWxsRm9yd2FyZHNWaXJ0dWFsRmllbGQiLCJ2aXJ0dWFsRmllbGRzIiwiY3JlYXRlRm9yd2FyZHNWaXJ0dWFsRmllbGQiLCJpbnN0YWxsQ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cy50b01vZGVsLFxuICAgICAgICAgICAgdGhpcy50aHJvdWdoTW9kZWxcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBpbnN0YWxsQmFja3dhcmRzRGVzY3JpcHRvcigpIHtcbiAgICAgICAgY29uc3QgYmFja3dhcmRzRGVzY3JpcHRvciA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoXG4gICAgICAgICAgICB0aGlzLnRvTW9kZWwucHJvdG90eXBlLFxuICAgICAgICAgICAgdGhpcy5iYWNrd2FyZHNGaWVsZE5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgaWYgKGJhY2t3YXJkc0Rlc2NyaXB0b3IpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICByZXZlcnNlRmllbGRFcnJvck1lc3NhZ2UoXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubW9kZWwubW9kZWxOYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpZWxkTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy50b01vZGVsLm1vZGVsTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iYWNrd2FyZHNGaWVsZE5hbWVcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gaW5zdGFsbCBiYWNrd2FyZHMgZGVzY3JpcHRvclxuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoXG4gICAgICAgICAgICB0aGlzLnRvTW9kZWwucHJvdG90eXBlLFxuICAgICAgICAgICAgdGhpcy5iYWNrd2FyZHNGaWVsZE5hbWUsXG4gICAgICAgICAgICB0aGlzLmZpZWxkLmNyZWF0ZUJhY2t3YXJkc0Rlc2NyaXB0b3IoXG4gICAgICAgICAgICAgICAgdGhpcy5maWVsZE5hbWUsXG4gICAgICAgICAgICAgICAgdGhpcy5tb2RlbCxcbiAgICAgICAgICAgICAgICB0aGlzLnRvTW9kZWwsXG4gICAgICAgICAgICAgICAgdGhpcy50aHJvdWdoTW9kZWxcbiAgICAgICAgICAgIClcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBpbnN0YWxsQmFja3dhcmRzVmlydHVhbEZpZWxkKCkge1xuICAgICAgICB0aGlzLnRvTW9kZWwudmlydHVhbEZpZWxkc1tcbiAgICAgICAgICAgIHRoaXMuYmFja3dhcmRzRmllbGROYW1lXG4gICAgICAgIF0gPSB0aGlzLmZpZWxkLmNyZWF0ZUJhY2t3YXJkc1ZpcnR1YWxGaWVsZChcbiAgICAgICAgICAgIHRoaXMuZmllbGROYW1lLFxuICAgICAgICAgICAgdGhpcy5tb2RlbCxcbiAgICAgICAgICAgIHRoaXMudG9Nb2RlbCxcbiAgICAgICAgICAgIHRoaXMudGhyb3VnaE1vZGVsXG4gICAgICAgICk7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBEZWZhdWx0RmllbGRJbnN0YWxsZXI7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/fields/DefaultFieldInstaller.js\n"); + + /***/ }), + +@@ -4582,7 +4604,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Field\", function() { return Field; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultFieldInstaller */ \"./src/fields/DefaultFieldInstaller.js\");\n\n\n/**\n * @private\n * @memberof module:fields\n */\n\nlet Field = /*#__PURE__*/function () {\n function Field() {}\n\n var _proto = Field.prototype;\n\n _proto.getClass = function getClass() {\n return this.constructor;\n };\n\n _proto.references = function references(model) {\n return false;\n };\n\n _proto.getThroughModelName = function getThroughModelName(fieldName, model) {\n return null;\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Field, [{\n key: \"installerClass\",\n get: function () {\n return _DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }, {\n key: \"installsForwardsVirtualField\",\n get: function () {\n return false;\n }\n }, {\n key: \"installsBackwardsDescriptor\",\n get: function () {\n return false;\n }\n }, {\n key: \"installsBackwardsVirtualField\",\n get: function () {\n return false;\n }\n }, {\n key: \"index\",\n get: function () {\n return false;\n }\n }]);\n\n return Field;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Field);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRmllbGQuanM/OTMwNSJdLCJuYW1lcyI6WyJGaWVsZCIsImdldENsYXNzIiwiY29uc3RydWN0b3IiLCJyZWZlcmVuY2VzIiwibW9kZWwiLCJnZXRUaHJvdWdoTW9kZWxOYW1lIiwiZmllbGROYW1lIiwiRGVmYXVsdEZpZWxkSW5zdGFsbGVyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTtBQUVBOzs7OztBQUlPLElBQU1BLEtBQWI7QUFBQTs7QUFBQTs7QUFBQSxTQUtJQyxRQUxKLEdBS0ksb0JBQVc7QUFDUCxXQUFPLEtBQUtDLFdBQVo7QUFDSCxHQVBMOztBQUFBLFNBU0lDLFVBVEosR0FTSSxvQkFBV0MsS0FBWCxFQUFrQjtBQUNkLFdBQU8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bDtcbiAgICB9XG5cbiAgICBnZXQgaW5zdGFsbHNGb3J3YXJkc1ZpcnR1YWxGaWVsZCgpIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGdldCBpbnN0YWxsc0JhY2t3YXJkc0Rlc2NyaXB0b3IoKSB7XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICBnZXQgaW5zdGFsbHNCYWNrd2FyZHNWaXJ0dWFsRmllbGQoKSB7XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICBnZXQgaW5kZXgoKSB7XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEZpZWxkO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/Field.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Field\", function() { return Field; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultFieldInstaller */ \"./src/fields/DefaultFieldInstaller.js\");\n\n\n/**\n * @private\n * @memberof module:fields\n */\n\nlet Field = /*#__PURE__*/function () {\n function Field() {}\n\n var _proto = Field.prototype;\n\n _proto.getClass = function getClass() {\n return this.constructor;\n };\n\n _proto.references = function references(model) {\n return false;\n };\n\n _proto.getThroughModelName = function getThroughModelName(fieldName, model) {\n return null;\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(Field, [{\n key: \"installerClass\",\n get: function () {\n return _DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }, {\n key: \"installsForwardsVirtualField\",\n get: function () {\n return false;\n }\n }, {\n key: \"installsBackwardsDescriptor\",\n get: function () {\n return false;\n }\n }, {\n key: \"installsBackwardsVirtualField\",\n get: function () {\n return false;\n }\n }, {\n key: \"index\",\n get: function () {\n return false;\n }\n }]);\n\n return Field;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (Field);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRmllbGQuanM/OTMwNSJdLCJuYW1lcyI6WyJGaWVsZCIsImdldENsYXNzIiwiY29uc3RydWN0b3IiLCJyZWZlcmVuY2VzIiwibW9kZWwiLCJnZXRUaHJvdWdoTW9kZWxOYW1lIiwiZmllbGROYW1lIiwiRGVmYXVsdEZpZWxkSW5zdGFsbGVyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUNPLElBQU1BLEtBQWI7QUFBQTs7QUFBQTs7QUFBQSxTQUtJQyxRQUxKLEdBS0ksb0JBQVc7QUFDUCxXQUFPLEtBQUtDLFdBQVo7QUFDSCxHQVBMOztBQUFBLFNBU0lDLFVBVEosR0FTSSxvQkFBV0MsS0FBWCxFQUFrQjtBQUNkLFdBQU8sS0FBUDtBQUNILEdBWEw7O0FBQUEsU0FhSUMsbUJBYkosR0FhSSw2QkFBb0JDLFNBQXBCLEVBQStCRixLQUEvQixFQUFzQztBQUNsQyxXQUFPLElBQVA7QUFDSCxHQWZMOztBQUFBO0FBQUE7QUFBQSxTQUNJLFlBQXFCO0FBQ2pCLGFBQU9HLDhEQUFQO0FBQ0g7QUFITDtBQUFBO0FBQUEsU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7XG4gICAgfVxuXG4gICAgZ2V0IGluc3RhbGxzQmFja3dhcmRzVmlydHVhbEZpZWxkKCkge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgZ2V0IGluZGV4KCkge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGaWVsZDtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/Field.js\n"); + + /***/ }), + +@@ -4594,7 +4616,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FieldInstallerTemplate\", function() { return FieldInstallerTemplate; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n\n\n/**\n * Defines algorithm for installing a field onto a model and related models.\n * Conforms to the template method behavioral design pattern.\n * @private\n * @memberof module:fields\n */\nlet FieldInstallerTemplate = /*#__PURE__*/function () {\n function FieldInstallerTemplate(opts) {\n this.field = opts.field;\n this.fieldName = opts.fieldName;\n this.model = opts.model;\n this.orm = opts.orm;\n /**\n * the field itself has no knowledge of the model\n * it is being installed upon; we need to inform it\n * that it is a self-referencing field for the field\n * to be able to make better informed decisions\n */\n\n if (this.field.references(this.model)) {\n this.field.toModelName = \"this\";\n }\n }\n\n var _proto = FieldInstallerTemplate.prototype;\n\n _proto.run = function run() {\n this.installForwardsDescriptor();\n\n if (this.field.installsForwardsVirtualField) {\n this.installForwardsVirtualField();\n }\n /**\n * Install a backwards field on a model as a consequence\n * of having installed the forwards field on another model.\n */\n\n\n if (this.field.installsBackwardsDescriptor) {\n this.installBackwardsDescriptor();\n }\n\n if (this.field.installsBackwardsVirtualField) {\n this.installBackwardsVirtualField();\n }\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(FieldInstallerTemplate, [{\n key: \"toModel\",\n get: function () {\n if (typeof this._toModel === \"undefined\") {\n const {\n toModelName\n } = this.field;\n\n if (!toModelName) {\n this._toModel = null;\n } else if (toModelName === \"this\") {\n this._toModel = this.model;\n } else {\n this._toModel = this.orm.get(toModelName);\n }\n }\n\n return this._toModel;\n }\n }, {\n key: \"throughModel\",\n get: function () {\n if (typeof this._throughModel === \"undefined\") {\n const throughModelName = this.field.getThroughModelName(this.fieldName, this.model);\n\n if (!throughModelName) {\n this._throughModel = null;\n } else {\n this._throughModel = this.orm.get(throughModelName);\n }\n }\n\n return this._throughModel;\n }\n }, {\n key: \"backwardsFieldName\",\n get: function () {\n return this.field.getBackwardsFieldName(this.model);\n }\n }]);\n\n return FieldInstallerTemplate;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (FieldInstallerTemplate);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRmllbGRJbnN0YWxsZXJUZW1wbGF0ZS5qcz9jZGFiIl0sIm5hbWVzIjpbIkZpZWxkSW5zdGFsbGVyVGVtcGxhdGUiLCJvcHRzIiwiZmllbGQiLCJmaWVsZE5hbWUiLCJtb2RlbCIsIm9ybSIsInJlZmVyZW5jZXMiLCJ0b01vZGVsTmFtZSIsInJ1biIsImluc3RhbGxGb3J3YXJkc0Rlc2NyaXB0b3IiLCJpbnN0YWxsc0ZvcndhcmRzVmlydHVhbEZpZWxkIiwiaW5zdGFsbEZvcndhcmRzVml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G4gICAgICAgICAqL1xuICAgICAgICBpZiAodGhpcy5maWVsZC5yZWZlcmVuY2VzKHRoaXMubW9kZWwpKSB7XG4gICAgICAgICAgICB0aGlzLmZpZWxkLnRvTW9kZWxOYW1lID0gXCJ0aGlzXCI7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXQgdG9Nb2RlbCgpIHtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLl90b01vZGVsID09PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICBjb25zdCB7IHRvTW9kZWxOYW1lIH0gPSB0aGlzLmZpZWxkO1xuICAgICAgICAgICAgaWYgKCF0b01vZGVsTmFtZSkge1xuICAgICAgICAgICAgICAgIHRoaXMuX3RvTW9kZWwgPSBudWxsO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0b01vZGVsTmFtZSA9PT0gXCJ0aGlzXCIpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl90b01vZGVsID0gdGhpcy5tb2RlbDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fdG9Nb2RlbCA9IHRoaXMub3JtLmdldCh0b01vZGVsTmFtZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXMuX3RvTW9kZWw7XG4gICAgfVxuXG4gICAgZ2V0IHRocm91Z2hNb2RlbCgpIHtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLl90aHJvdWdoTW9kZWwgPT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICAgICAgICAgIGNvbnN0IHRocm91Z2hNb2RlbE5hbWUgPSB0aGlzLmZpZWxkLmdldFRocm91Z2hNb2RlbE5hbWUoXG4gICAgICAgICAgICAgICAgdGhpcy5maWVsZE5hbWUsXG4gICAgICAgICAgICAgICAgdGhpcy5tb2RlbFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGlmICghdGhyb3VnaE1vZGVsTmFtZSkge1xuICA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W5zdGFsbEJhY2t3YXJkc1ZpcnR1YWxGaWVsZCgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGaWVsZEluc3RhbGxlclRlbXBsYXRlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/FieldInstallerTemplate.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FieldInstallerTemplate\", function() { return FieldInstallerTemplate; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n\n\n/**\n * Defines algorithm for installing a field onto a model and related models.\n * Conforms to the template method behavioral design pattern.\n * @private\n * @memberof module:fields\n */\nlet FieldInstallerTemplate = /*#__PURE__*/function () {\n function FieldInstallerTemplate(opts) {\n this.field = opts.field;\n this.fieldName = opts.fieldName;\n this.model = opts.model;\n this.orm = opts.orm;\n /**\n * the field itself has no knowledge of the model\n * it is being installed upon; we need to inform it\n * that it is a self-referencing field for the field\n * to be able to make better informed decisions\n */\n\n if (this.field.references(this.model)) {\n this.field.toModelName = \"this\";\n }\n }\n\n var _proto = FieldInstallerTemplate.prototype;\n\n _proto.run = function run() {\n this.installForwardsDescriptor();\n\n if (this.field.installsForwardsVirtualField) {\n this.installForwardsVirtualField();\n }\n /**\n * Install a backwards field on a model as a consequence\n * of having installed the forwards field on another model.\n */\n\n\n if (this.field.installsBackwardsDescriptor) {\n this.installBackwardsDescriptor();\n }\n\n if (this.field.installsBackwardsVirtualField) {\n this.installBackwardsVirtualField();\n }\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(FieldInstallerTemplate, [{\n key: \"toModel\",\n get: function () {\n if (typeof this._toModel === \"undefined\") {\n const {\n toModelName\n } = this.field;\n\n if (!toModelName) {\n this._toModel = null;\n } else if (toModelName === \"this\") {\n this._toModel = this.model;\n } else {\n this._toModel = this.orm.get(toModelName);\n }\n }\n\n return this._toModel;\n }\n }, {\n key: \"throughModel\",\n get: function () {\n if (typeof this._throughModel === \"undefined\") {\n const throughModelName = this.field.getThroughModelName(this.fieldName, this.model);\n\n if (!throughModelName) {\n this._throughModel = null;\n } else {\n this._throughModel = this.orm.get(throughModelName);\n }\n }\n\n return this._throughModel;\n }\n }, {\n key: \"backwardsFieldName\",\n get: function () {\n return this.field.getBackwardsFieldName(this.model);\n }\n }]);\n\n return FieldInstallerTemplate;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (FieldInstallerTemplate);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRmllbGRJbnN0YWxsZXJUZW1wbGF0ZS5qcz9jZGFiIl0sIm5hbWVzIjpbIkZpZWxkSW5zdGFsbGVyVGVtcGxhdGUiLCJvcHRzIiwiZmllbGQiLCJmaWVsZE5hbWUiLCJtb2RlbCIsIm9ybSIsInJlZmVyZW5jZXMiLCJ0b01vZGVsTmFtZSIsInJ1biIsImluc3RhbGxGb3J3YXJkc0Rlc2NyaXB0b3IiLCJpbnN0YWxsc0ZvcndhcmRzVmlydHVhbEZpZWxkIiwiaW5zdGFsbEZvcndhcmRzVmlydHVhbEZpZWxkIiwiaW5zdGFsbHNCYWNrd2FyZHNEZXNjcmlwdG9yIiwiaW5zdGFsbEJhY2t3YXJkc0Rlc2NyaXB0b3IiLCJpbnN0YWxsc0JhY2t3YXJkc1ZpcnR1YWxGaWVsZCIsImluc3RhbGxCYWNrd2FyZHNWaXJ0dWF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7XG4gICAgICAgICAgICB0aGlzLmZpZWxkLnRvTW9kZWxOYW1lID0gXCJ0aGlzXCI7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXQgdG9Nb2RlbCgpIHtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLl90b01vZGVsID09PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICBjb25zdCB7IHRvTW9kZWxOYW1lIH0gPSB0aGlzLmZpZWxkO1xuICAgICAgICAgICAgaWYgKCF0b01vZGVsTmFtZSkge1xuICAgICAgICAgICAgICAgIHRoaXMuX3RvTW9kZWwgPSBudWxsO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0b01vZGVsTmFtZSA9PT0gXCJ0aGlzXCIpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl90b01vZGVsID0gdGhpcy5tb2RlbDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fdG9Nb2RlbCA9IHRoaXMub3JtLmdldCh0b01vZGVsTmFtZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXMuX3RvTW9kZWw7XG4gICAgfVxuXG4gICAgZ2V0IHRocm91Z2hNb2RlbCgpIHtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLl90aHJvdWdoTW9kZWwgPT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICAgICAgICAgIGNvbnN0IHRocm91Z2hNb2RlbE5hbWUgPSB0aGlzLmZpZWxkLmdldFRocm91Z2hNb2RlbE5hbWUoXG4gICAgICAgICAgICAgICAgdGhpcy5maWVsZE5hbWUsXG4gICAgICAgICAgICAgICAgdGhpcy5tb2RlbFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGlmICghdGhyb3VnaE1vZGVsTmFtZSkge1xuICAgICAgICAgICAgICAgIHRoaXMuX3Rocm91Z2hNb2RlbCA9IG51bGw7XG4gICAgICAgICAgICB9IGVsc2Uge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vcnQgZGVmYXVsdCBGaWVsZEluc3RhbGxlclRlbXBsYXRlO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/FieldInstallerTemplate.js\n"); + + /***/ }), + +@@ -4606,7 +4628,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ForeignKey\", function() { return ForeignKey; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _RelationalField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet ForeignKey = /*#__PURE__*/function (_RelationalField) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ForeignKey, _RelationalField);\n\n function ForeignKey() {\n return _RelationalField.apply(this, arguments) || this;\n }\n\n var _proto = ForeignKey.prototype;\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"forwardsManyToOneDescriptor\"])(fieldName, toModel.modelName);\n };\n\n _proto.createBackwardsDescriptor = function createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"backwardsManyToOneDescriptor\"])(fieldName, model.modelName);\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ForeignKey, [{\n key: \"index\",\n get: function () {\n return true;\n }\n }]);\n\n return ForeignKey;\n}(_RelationalField__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ForeignKey);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRm9yZWlnbktleS5qcz9lMjVlIl0sIm5hbWVzIjpbIkZvcmVpZ25LZXkiLCJjcmVhdGVGb3J3YXJkc0Rlc2NyaXB0b3IiLCJmaWVsZE5hbWUiLCJtb2RlbCIsInRvTW9kZWwiLCJ0aHJvdWdoTW9kZWwiLCJmb3J3YXJkc01hbnlUb09uZURlc2NyaXB0b3IiLCJtb2RlbE5hbWUiLCJjcmVhdGVCYWNrd2FyZHNEZXNjcmlwdG9yIiwiYmFja3dhcmRzTWFueVRvT25lRGVzY3JpcHRvciIsIlJlbGF0aW9uYWxGaWVsZCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0FBRUE7QUFLQTs7OztBQUdPLElBQU1BLFVBQWI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7O0FBQUE7O0FBQUEsU0FDSUMsd0JBREosR0FDSSxrQ0FBeUJDLFNBQX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RlbC5tb2RlbE5hbWUpO1xuICAgIH1cblxuICAgIGNyZWF0ZUJhY2t3YXJkc0Rlc2NyaXB0b3IoZmllbGROYW1lLCBtb2RlbCwgdG9Nb2RlbCwgdGhyb3VnaE1vZGVsKSB7XG4gICAgICAgIHJldHVybiBiYWNrd2FyZHNNYW55VG9PbmVEZXNjcmlwdG9yKGZpZWxkTmFtZSwgbW9kZWwubW9kZWxOYW1lKTtcbiAgICB9XG5cbiAgICBnZXQgaW5kZXgoKSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgRm9yZWlnbktleTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/ForeignKey.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ForeignKey\", function() { return ForeignKey; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _RelationalField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet ForeignKey = /*#__PURE__*/function (_RelationalField) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ForeignKey, _RelationalField);\n\n function ForeignKey() {\n return _RelationalField.apply(this, arguments) || this;\n }\n\n var _proto = ForeignKey.prototype;\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"forwardsManyToOneDescriptor\"])(fieldName, toModel.modelName);\n };\n\n _proto.createBackwardsDescriptor = function createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"backwardsManyToOneDescriptor\"])(fieldName, model.modelName);\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ForeignKey, [{\n key: \"index\",\n get: function () {\n return true;\n }\n }]);\n\n return ForeignKey;\n}(_RelationalField__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ForeignKey);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvRm9yZWlnbktleS5qcz9lMjVlIl0sIm5hbWVzIjpbIkZvcmVpZ25LZXkiLCJjcmVhdGVGb3J3YXJkc0Rlc2NyaXB0b3IiLCJmaWVsZE5hbWUiLCJtb2RlbCIsInRvTW9kZWwiLCJ0aHJvdWdoTW9kZWwiLCJmb3J3YXJkc01hbnlUb09uZURlc2NyaXB0b3IiLCJtb2RlbE5hbWUiLCJjcmVhdGVCYWNrd2FyZHNEZXNjcmlwdG9yIiwiYmFja3dhcmRzTWFueVRvT25lRGVzY3JpcHRvciIs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mVsYXRpb25hbEZpZWxkIHtcbiAgICBjcmVhdGVGb3J3YXJkc0Rlc2NyaXB0b3IoZmllbGROYW1lLCBtb2RlbCwgdG9Nb2RlbCwgdGhyb3VnaE1vZGVsKSB7XG4gICAgICAgIHJldHVybiBmb3J3YXJkc01hbnlUb09uZURlc2NyaXB0b3IoZmllbGROYW1lLCB0b01vZGVsLm1vZGVsTmFtZSk7XG4gICAgfVxuXG4gICAgY3JlYXRlQmFja3dhcmRzRGVzY3JpcHRvcihmaWVsZE5hbWUsIG1vZGVsLCB0b01vZGVsLCB0aHJvdWdoTW9kZWwpIHtcbiAgICAgICAgcmV0dXJuIGJhY2t3YXJkc01hbnlUb09uZURlc2NyaXB0b3IoZmllbGROYW1lLCBtb2RlbC5tb2RlbE5hbWUpO1xuICAgIH1cblxuICAgIGdldCBpbmRleCgpIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGb3JlaWduS2V5O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/ForeignKey.js\n"); + + /***/ }), + +@@ -4618,7 +4640,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ManyToMany\", function() { return ManyToMany; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _RelationalField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet ManyToMany = /*#__PURE__*/function (_RelationalField) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ManyToMany, _RelationalField);\n\n function ManyToMany() {\n return _RelationalField.apply(this, arguments) || this;\n }\n\n var _proto = ManyToMany.prototype;\n\n _proto.getDefault = function getDefault() {\n return [];\n };\n\n _proto.getThroughModelName = function getThroughModelName(fieldName, model) {\n return this.through || Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"m2mName\"])(model.modelName, fieldName);\n };\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"manyToManyDescriptor\"])(model.modelName, toModel.modelName, throughModel.modelName, this.getThroughFields(fieldName, model, toModel, throughModel), false);\n };\n\n _proto.createBackwardsDescriptor = function createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"manyToManyDescriptor\"])(model.modelName, toModel.modelName, throughModel.modelName, this.getThroughFields(fieldName, model, toModel, throughModel), true);\n };\n\n _proto.createBackwardsVirtualField = function createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: model.modelName,\n relatedName: fieldName,\n through: throughModel.modelName,\n throughFields: this.getThroughFields(fieldName, model, toModel, throughModel)\n });\n };\n\n _proto.createForwardsVirtualField = function createForwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: toModel.modelName,\n relatedName: fieldName,\n through: this.through,\n throughFields: this.getThroughFields(fieldName, model, toModel, throughModel),\n as: this.as\n });\n };\n\n _proto.getThroughFields = function getThroughFields(fieldName, model, toModel, throughModel) {\n if (this.throughFields) {\n const [fieldAName, fieldBName] = this.throughFields;\n const fieldA = throughModel.fields[fieldAName];\n return {\n to: fieldA.references(toModel) ? fieldAName : fieldBName,\n from: fieldA.references(toModel) ? fieldBName : fieldAName\n };\n }\n\n if (model.modelName === toModel.modelName) {\n /**\n * we have no way of determining the relationship's\n * direction here, so we need to assume that the user\n * did not use a custom through model\n * see ORM#registerManyToManyModelsFor\n */\n return {\n to: Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"m2mToFieldName\"])(toModel.modelName),\n from: Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"m2mFromFieldName\"])(model.modelName)\n };\n }\n /**\n * determine which field references which model\n * and infer the directions from that\n */\n\n\n const throughModelFieldReferencing = otherModel => Object.keys(throughModel.fields).find(someFieldName => throughModel.fields[someFieldName].references(otherModel));\n\n return {\n to: throughModelFieldReferencing(toModel),\n from: throughModelFieldReferencing(model)\n };\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ManyToMany, [{\n key: \"installsForwardsVirtualField\",\n get: function () {\n return true;\n }\n }]);\n\n return ManyToMany;\n}(_RelationalField__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ManyToMany);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL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LCB0b01vZGVsLCB0aHJvdWdoTW9kZWwpIHtcbiAgICAgICAgY29uc3QgVGhpc0ZpZWxkID0gdGhpcy5nZXRDbGFzcygpO1xuICAgICAgICByZXR1cm4gbmV3IFRoaXNGaWVsZCh7XG4gICAgICAgICAgICB0bzogdG9Nb2RlbC5tb2RlbE5hbWUsXG4gICAgICAgICAgICByZWxhdGVkTmFtZTogZmllbGROYW1lLFxuICAgICAgICAgICAgdGhyb3VnaDogdGhpcy50aHJvdWdoLFxuICAgICAgICAgICAgdGhyb3VnaEZpZWxkczogdGhpcy5nZXRUaHJvdWdoRmllbGRzKFxuICAgICAgICAgICAgICAgIGZpZWxkTmFtZSxcbiAgICAgICAgICAgICAgICBtb2RlbCxcbiAgICAgICAgICAgICAgICB0b01vZGVsLFxuICAgICAgICAgICAgICAgIHRocm91Z2hNb2RlbFxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIGFzOiB0aGlzLmFzLFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBnZXQgaW5zdGFsbHNGb3J3YXJkc1ZpcnR1YWxGaWVsZCgpIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgZ2V0VGhyb3VnaEZpZWxkcyhmaWVsZE5hbWUsIG1vZGVsLCB0b01vZGVsLCB0aHJvdWdoTW9kZWwpIHtcbiAgICAgICAgaWYgKHRoaXMudGhyb3VnaEZpZWxkcykge1xuICAgICAgICAgICAgY29uc3QgW2ZpZWxkQU5hbWUsIGZpZWxkQk5hbWVdID0gdGhpcy50aHJvdWdoRmllbGRzO1xuICAgICAgICAgICAgY29uc3QgZmllbGRBID0gdGhyb3VnaE1vZGVsLmZpZWxkc1tmaWVsZEFOYW1lXTtcbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgdG86IGZpZWxkQS5yZWZlcmVuY2VzKHRvTW9kZWwpID8gZmllbGRBTmFtZSA6IGZpZWxkQk5hbWUsXG4gICAgICAgICAgICAgICAgZnJvbTogZmllbGRBLnJlZmVyZW5jZXModG9Nb2RlbCkgPyBmaWVsZEJOYW1lIDogZmllbGRBTmFtZSxcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobW9kZWwubW9kZWxOYW1lID09PSB0b01vZGVsLm1vZGVsTmFtZSkge1xuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiB3ZSBoYXZlIG5vIHdheSBvZiBkZXRlcm1pbmluZyB0aGUgcmVsYXRpb25zaGlwJ3NcbiAgICAgICAgICAgICAqIGRpcmVjdGlvbiBoZXJlLCBzbyB3ZSBuZWVkIHRvIGFzc3VtZSB0aGF0IHRoZSB1c2VyXG4gICAgICAgICAgICAgKiBkaWQgbm90IHVzZSBhIGN1c3RvbSB0aHJvdWdoIG1vZGVsXG4gICAgICAgICAgICAgKiBzZWUgT1JNI3JlZ2lzdGVyTWFueVRvTWFueU1vZGVsc0ZvclxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIHRvOiBtMm1Ub0ZpZWxkTmFtZSh0b01vZGVsLm1vZGVsTmFtZSksXG4gICAgICAgICAgICAgICAgZnJvbTogbTJtRnJvbUZpZWxkTmFtZShtb2RlbC5tb2RlbE5hbWUpLFxuICAgICAgICAgICAgfTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBkZXRlcm1pbmUgd2hpY2ggZmllbGQgcmVmZXJlbmNlcyB3aGljaCBtb2RlbFxuICAgICAgICAgKiBhbmQgaW5mZXIgdGhlIGRpcmVjdGlvbnMgZnJvbSB0aGF0XG4gICAgICAgICAqL1xuICAgICAgICBjb25zdCB0aHJvdWdoTW9kZWxGaWVsZFJlZmVyZW5jaW5nID0gb3RoZXJNb2RlbCA9PlxuICAgICAgICAgICAgT2JqZWN0LmtleXModGhyb3VnaE1vZGVsLmZpZWxkcykuZmluZChzb21lRmllbGROYW1lID0+XG4gICAgICAgICAgICAgICAgdGhyb3VnaE1vZGVsLmZpZWxkc1tzb21lRmllbGROYW1lXS5yZWZlcmVuY2VzKG90aGVyTW9kZWwpXG4gICAgICAgICAgICApO1xuXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB0bzogdGhyb3VnaE1vZGVsRmllbGRSZWZlcmVuY2luZyh0b01vZGVsKSxcbiAgICAgICAgICAgIGZyb206IHRocm91Z2hNb2RlbEZpZWxkUmVmZXJlbmNpbmcobW9kZWwpLFxuICAgICAgICB9O1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgTWFueVRvTWFueTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/ManyToMany.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ManyToMany\", function() { return ManyToMany; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _RelationalField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet ManyToMany = /*#__PURE__*/function (_RelationalField) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ManyToMany, _RelationalField);\n\n function ManyToMany() {\n return _RelationalField.apply(this, arguments) || this;\n }\n\n var _proto = ManyToMany.prototype;\n\n _proto.getDefault = function getDefault() {\n return [];\n };\n\n _proto.getThroughModelName = function getThroughModelName(fieldName, model) {\n return this.through || Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"m2mName\"])(model.modelName, fieldName);\n };\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"manyToManyDescriptor\"])(model.modelName, toModel.modelName, throughModel.modelName, this.getThroughFields(fieldName, model, toModel, throughModel), false);\n };\n\n _proto.createBackwardsDescriptor = function createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_3__[\"manyToManyDescriptor\"])(model.modelName, toModel.modelName, throughModel.modelName, this.getThroughFields(fieldName, model, toModel, throughModel), true);\n };\n\n _proto.createBackwardsVirtualField = function createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: model.modelName,\n relatedName: fieldName,\n through: throughModel.modelName,\n throughFields: this.getThroughFields(fieldName, model, toModel, throughModel)\n });\n };\n\n _proto.createForwardsVirtualField = function createForwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: toModel.modelName,\n relatedName: fieldName,\n through: this.through,\n throughFields: this.getThroughFields(fieldName, model, toModel, throughModel),\n as: this.as\n });\n };\n\n _proto.getThroughFields = function getThroughFields(fieldName, model, toModel, throughModel) {\n if (this.throughFields) {\n const [fieldAName, fieldBName] = this.throughFields;\n const fieldA = throughModel.fields[fieldAName];\n return {\n to: fieldA.references(toModel) ? fieldAName : fieldBName,\n from: fieldA.references(toModel) ? fieldBName : fieldAName\n };\n }\n\n if (model.modelName === toModel.modelName) {\n /**\n * we have no way of determining the relationship's\n * direction here, so we need to assume that the user\n * did not use a custom through model\n * see ORM#registerManyToManyModelsFor\n */\n return {\n to: Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"m2mToFieldName\"])(toModel.modelName),\n from: Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"m2mFromFieldName\"])(model.modelName)\n };\n }\n /**\n * determine which field references which model\n * and infer the directions from that\n */\n\n\n const throughModelFieldReferencing = otherModel => Object.keys(throughModel.fields).find(someFieldName => throughModel.fields[someFieldName].references(otherModel));\n\n return {\n to: throughModelFieldReferencing(toModel),\n from: throughModelFieldReferencing(model)\n };\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ManyToMany, [{\n key: \"installsForwardsVirtualField\",\n get: function () {\n return true;\n }\n }]);\n\n return ManyToMany;\n}(_RelationalField__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ManyToMany);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvTWFueVRvTWFueS5qcz9mMmNkIl0sIm5hbWVzIjpbIk1hbnlUb01hbnkiLCJnZXREZWZhdWx0IiwiZ2V0VGhyb3VnaE1vZGVsTmFtZSIsImZpZWxkTmFtZSIsIm1vZGVsIiwidGhyb3VnaCIsIm0ybU5hbWUiLCJtb2RlbE5hbWUiLCJjcmVhdGVGb3J3YXJkc0Rlc2NyaXB0b3IiLCJ0b01vZGVsIiwidGhyb3VnaE1vZGVsIiwibWFueVRv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WxOYW1lLFxuICAgICAgICAgICAgdGhpcy5nZXRUaHJvdWdoRmllbGRzKGZpZWxkTmFtZSwgbW9kZWwsIHRvTW9kZWwsIHRocm91Z2hNb2RlbCksXG4gICAgICAgICAgICB0cnVlXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgY3JlYXRlQmFja3dhcmRzVmlydHVhbEZpZWxkKGZpZWxkTmFtZSwgbW9kZWwsIHRvTW9kZWwsIHRocm91Z2hNb2RlbCkge1xuICAgICAgICBjb25zdCBUaGlzRmllbGQgPSB0aGlzLmdldENsYXNzKCk7XG4gICAgICAgIHJldHVybiBuZXcgVGhpc0ZpZWxkKHtcbiAgICAgICAgICAgIHRvOiBtb2RlbC5tb2RlbE5hbWUsXG4gICAgICAgICAgICByZWxhdGVkTmFtZTogZmllbGROYW1lLFxuICAgICAgICAgICAgdGhyb3VnaDogdGhyb3VnaE1vZGVsLm1vZGVsTmFtZSxcbiAgICAgICAgICAgIHRocm91Z2hGaWVsZHM6IHRoaXMuZ2V0VGhyb3VnaEZpZWxkcyhcbiAgICAgICAgICAgICAgICBmaWVsZE5hbWUsXG4gICAgICAgICAgICAgICAgbW9kZWwsXG4gICAgICAgICAgICAgICAgdG9Nb2RlbCxcbiAgICAgICAgICAgICAgICB0aHJvdWdoTW9kZWxcbiAgICAgICAgICAgICksXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGNyZWF0ZUZvcndhcmRzVmlydHVhbEZpZWxkKGZpZWxkTmFtZSwgbW9kZWwsIHRvTW9kZWwsIHRocm91Z2hNb2RlbCkge1xuICAgICAgICBjb25zdCBUaGlzRmllbGQgPSB0aGlzLmdldENsYXNzKCk7XG4gICAgICAgIHJldHVybiBuZXcgVGhpc0ZpZWxkKHtcbiAgICAgICAgICAgIHRvOiB0b01vZGVsLm1vZGVsTmFtZSxcbiAgICAgICAgICAgIHJlbGF0ZWROYW1lOiBmaWVsZE5hbWUsXG4gICAgICAgICAgICB0aHJvdWdoOiB0aGlzLnRocm91Z2gsXG4gICAgICAgICAgICB0aHJvdWdoRmllbGRzOiB0aGlzLmdldFRocm91Z2hGaWVsZHMoXG4gICAgICAgICAgICAgICAgZmllbGROYW1lLFxuICAgICAgICAgICAgICAgIG1vZGVsLFxuICAgICAgICAgICAgICAgIHRvTW9kZWwsXG4gICAgICAgICAgICAgICAgdGhyb3VnaE1vZGVsXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgYXM6IHRoaXMuYXMsXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGdldCBpbnN0YWxsc0ZvcndhcmRzVmlydHVhbEZpZWxkKCkge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG5cbiAgICBnZXRUaHJvdWdoRmllbGRzKGZpZWxkTmFtZSwgbW9kZWwsIHRvTW9kZWwsIHRocm91Z2hNb2RlbCkge1xuICAgICAgICBpZiAodGhpcy50aHJvdWdoRmllbGRzKSB7XG4gICAgICAgICAgICBjb25zdCBbZmllbGRBTmFtZSwgZmllbGRCTmFtZV0gPSB0aGlzLnRocm91Z2hGaWVsZHM7XG4gICAgICAgICAgICBjb25zdCBmaWVsZEEgPSB0aHJvdWdoTW9kZWwuZmllbGRzW2ZpZWxkQU5hbWVdO1xuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICB0bzogZmllbGRBLnJlZmVyZW5jZXModG9Nb2RlbCkgPyBmaWVsZEFOYW1lIDogZmllbGRCTmFtZSxcbiAgICAgICAgICAgICAgICBmcm9tOiBmaWVsZEEucmVmZXJlbmNlcyh0b01vZGVsKSA/IGZpZWxkQk5hbWUgOiBmaWVsZEFOYW1lLFxuICAgICAgICAgICAgfTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChtb2RlbC5tb2RlbE5hbWUgPT09IHRvTW9kZWwubW9kZWxOYW1lKSB7XG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIHdlIGhhdmUgbm8gd2F5IG9mIGRldGVybWluaW5nIHRoZSByZWxhdGlvbnNoaXAnc1xuICAgICAgICAgICAgICogZGlyZWN0aW9uIGhlcmUsIHNvIHdlIG5lZWQgdG8gYXNzdW1lIHRoYXQgdGhlIHVzZXJcbiAgICAgICAgICAgICAqIGRpZCBub3QgdXNlIGEgY3VzdG9tIHRocm91Z2ggbW9kZWxcbiAgICAgICAgICAgICAqIHNlZSBPUk0jcmVnaXN0ZXJNYW55VG9NYW55TW9kZWxzRm9yXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgdG86IG0ybVRvRmllbGROYW1lKHRvTW9kZWwubW9kZWxOYW1lKSxcbiAgICAgICAgICAgICAgICBmcm9tOiBtMm1Gcm9tRmllbGROYW1lKG1vZGVsLm1vZGVsTmFtZSksXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIGRldGVybWluZSB3aGljaCBmaWVsZCByZWZlcmVuY2VzIHdoaWNoIG1vZGVsXG4gICAgICAgICAqIGFuZCBpbmZlciB0aGUgZGlyZWN0aW9ucyBmcm9tIHRoYXRcbiAgICAgICAgICovXG4gICAgICAgIGNvbnN0IHRocm91Z2hNb2RlbEZpZWxkUmVmZXJlbmNpbmcgPSAob3RoZXJNb2RlbCkgPT5cbiAgICAgICAgICAgIE9iamVjdC5rZXlzKHRocm91Z2hNb2RlbC5maWVsZHMpLmZpbmQoKHNvbWVGaWVsZE5hbWUpID0+XG4gICAgICAgICAgICAgICAgdGhyb3VnaE1vZGVsLmZpZWxkc1tzb21lRmllbGROYW1lXS5yZWZlcmVuY2VzKG90aGVyTW9kZWwpXG4gICAgICAgICAgICApO1xuXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB0bzogdGhyb3VnaE1vZGVsRmllbGRSZWZlcmVuY2luZyh0b01vZGVsKSxcbiAgICAgICAgICAgIGZyb206IHRocm91Z2hNb2RlbEZpZWxkUmVmZXJlbmNpbmcobW9kZWwpLFxuICAgICAgICB9O1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgTWFueVRvTWFueTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/ManyToMany.js\n"); + + /***/ }), + +@@ -4630,7 +4652,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"OneToOne\", function() { return OneToOne; });\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _RelationalField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet OneToOne = /*#__PURE__*/function (_RelationalField) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(OneToOne, _RelationalField);\n\n function OneToOne() {\n return _RelationalField.apply(this, arguments) || this;\n }\n\n var _proto = OneToOne.prototype;\n\n _proto.getBackwardsFieldName = function getBackwardsFieldName(model) {\n return this.relatedName || model.modelName.toLowerCase();\n };\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_2__[\"forwardsOneToOneDescriptor\"])(fieldName, toModel.modelName);\n };\n\n _proto.createBackwardsDescriptor = function createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_2__[\"backwardsOneToOneDescriptor\"])(fieldName, model.modelName);\n };\n\n return OneToOne;\n}(_RelationalField__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (OneToOne);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvT25lVG9PbmUuanM/YzllZSJdLCJuYW1lcyI6WyJPbmVUb09uZSIsImdldEJhY2t3YXJkc0ZpZWxkTmFtZSIsIm1vZGVsIiwicmVsYXRlZE5hbWUiLCJtb2RlbE5hbWUiLCJ0b0xvd2VyQ2FzZSIsImNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvciIsImZpZWxkTmFtZSIsInRvTW9kZWwiLCJ0aHJvdWdoTW9kZWwiLCJmb3J3YXJkc09uZVRvT25lRGVzY3JpcHRvciIsImNyZWF0ZUJhY2t3YXJkc0Rlc2NyaXB0b3IiLCJiYWNrd2FyZHNPbmVUb09uZURlc2NyaXB0b3IiLCJSZWxhdGlvbmFsRmllbGQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUVBO0FBS0E7Ozs7QUFHTyxJQUFNQSxRQUFiO0FBQUE7O0FBQUE7QUFBQTtBQUFBOztBQUFBOztBQUFBLFNBQ0lDLHFCQURKLEdBQ0ksK0JBQXNCQyxLQUF0QixFQUE2QjtBQUN6QixXQUFPLEtBQUtDLFdBQUwsSUFBb0JELEtBQUssQ0FBQ0UsU0FBTixDQUFnQkMsV0FBaEIsRUFBM0I7QUFDSCxHQUhMOztBQUFBLFNBS0lDLHdCQUxKLEdBS0ksa0NBQXlCQyxTQUF6QixFQUFvQ0wsS0FBcEMsRUFBMkNNLE9B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lRGVzY3JpcHRvcihmaWVsZE5hbWUsIHRvTW9kZWwubW9kZWxOYW1lKTtcbiAgICB9XG5cbiAgICBjcmVhdGVCYWNrd2FyZHNEZXNjcmlwdG9yKGZpZWxkTmFtZSwgbW9kZWwsIHRvTW9kZWwsIHRocm91Z2hNb2RlbCkge1xuICAgICAgICByZXR1cm4gYmFja3dhcmRzT25lVG9PbmVEZXNjcmlwdG9yKGZpZWxkTmFtZSwgbW9kZWwubW9kZWxOYW1lKTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE9uZVRvT25lO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/OneToOne.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"OneToOne\", function() { return OneToOne; });\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _RelationalField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../descriptors */ \"./src/descriptors.js\");\n\n\n\n/**\n * @memberof module:fields\n */\n\nlet OneToOne = /*#__PURE__*/function (_RelationalField) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default()(OneToOne, _RelationalField);\n\n function OneToOne() {\n return _RelationalField.apply(this, arguments) || this;\n }\n\n var _proto = OneToOne.prototype;\n\n _proto.getBackwardsFieldName = function getBackwardsFieldName(model) {\n return this.relatedName || model.modelName.toLowerCase();\n };\n\n _proto.createForwardsDescriptor = function createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_2__[\"forwardsOneToOneDescriptor\"])(fieldName, toModel.modelName);\n };\n\n _proto.createBackwardsDescriptor = function createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return Object(_descriptors__WEBPACK_IMPORTED_MODULE_2__[\"backwardsOneToOneDescriptor\"])(fieldName, model.modelName);\n };\n\n return OneToOne;\n}(_RelationalField__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (OneToOne);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvT25lVG9PbmUuanM/YzllZSJdLCJuYW1lcyI6WyJPbmVUb09uZSIsImdldEJhY2t3YXJkc0ZpZWxkTmFtZSIsIm1vZGVsIiwicmVsYXRlZE5hbWUiLCJtb2RlbE5hbWUiLCJ0b0xvd2VyQ2FzZSIsImNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvciIsImZpZWxkTmFtZSIsInRvTW9kZWwiLCJ0aHJvdWdoTW9kZWwiLCJmb3J3YXJkc09uZVRvT25lRGVzY3JpcHRvciIsImNyZWF0ZUJhY2t3YXJkc0Rlc2NyaXB0b3IiLCJiYWNrd2FyZHNPbmVUb09uZURlc2NyaXB0b3IiLCJSZWxhdGlvbmFsRmllbGQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUVBO0FBS0E7QUFDQTtBQUNBOztBQUNPLElBQU1BLFFBQWI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7O0FBQUE7O0FBQUEsU0FDSUMscUJBREosR0FDSSwrQkFBc0JDLEtBQXRCLEVBQTZCO0FBQ3pCLFdBQU8sS0FBS0Ms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zZSgpO1xuICAgIH1cblxuICAgIGNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvcihmaWVsZE5hbWUsIG1vZGVsLCB0b01vZGVsLCB0aHJvdWdoTW9kZWwpIHtcbiAgICAgICAgcmV0dXJuIGZvcndhcmRzT25lVG9PbmVEZXNjcmlwdG9yKGZpZWxkTmFtZSwgdG9Nb2RlbC5tb2RlbE5hbWUpO1xuICAgIH1cblxuICAgIGNyZWF0ZUJhY2t3YXJkc0Rlc2NyaXB0b3IoZmllbGROYW1lLCBtb2RlbCwgdG9Nb2RlbCwgdGhyb3VnaE1vZGVsKSB7XG4gICAgICAgIHJldHVybiBiYWNrd2FyZHNPbmVUb09uZURlc2NyaXB0b3IoZmllbGROYW1lLCBtb2RlbC5tb2RlbE5hbWUpO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgT25lVG9PbmU7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/fields/OneToOne.js\n"); + + /***/ }), + +@@ -4642,7 +4664,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RelationalField\", function() { return RelationalField; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Field */ \"./src/fields/Field.js\");\n/* harmony import */ var _DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DefaultFieldInstaller */ \"./src/fields/DefaultFieldInstaller.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n/* eslint-disable max-classes-per-file */\n\n\n\n/**\n * @private\n * @memberof module:fields\n */\n\nlet RelationalField = /*#__PURE__*/function (_Field) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(RelationalField, _Field);\n\n function RelationalField(...args) {\n var _this;\n\n _this = _Field.call(this) || this;\n\n if (args.length === 1 && typeof args[0] === \"object\") {\n const opts = args[0];\n _this.toModelName = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeModelReference\"])(opts.to);\n _this.relatedName = opts.relatedName;\n _this.through = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeModelReference\"])(opts.through);\n _this.throughFields = opts.throughFields;\n _this.as = opts.as;\n } else {\n [_this.toModelName, _this.relatedName] = [Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeModelReference\"])(args[0]), args[1]];\n }\n\n return _this;\n }\n\n var _proto = RelationalField.prototype;\n\n _proto.getBackwardsFieldName = function getBackwardsFieldName(model) {\n return this.relatedName || Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"reverseFieldName\"])(model.modelName);\n };\n\n _proto.createBackwardsVirtualField = function createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField(model.modelName, fieldName);\n };\n\n _proto.references = function references(model) {\n return this.toModelName === model.modelName;\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(RelationalField, [{\n key: \"installsBackwardsVirtualField\",\n get: function () {\n return true;\n }\n }, {\n key: \"installsBackwardsDescriptor\",\n get: function () {\n return true;\n }\n }, {\n key: \"installerClass\",\n get: function () {\n return /*#__PURE__*/function (_DefaultFieldInstalle) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(AliasedForwardsDescriptorInstaller, _DefaultFieldInstalle);\n\n function AliasedForwardsDescriptorInstaller() {\n return _DefaultFieldInstalle.apply(this, arguments) || this;\n }\n\n var _proto2 = AliasedForwardsDescriptorInstaller.prototype;\n\n _proto2.installForwardsDescriptor = function installForwardsDescriptor() {\n Object.defineProperty(this.model.prototype, this.field.as || this.fieldName, // use supplied name if possible\n this.field.createForwardsDescriptor(this.fieldName, this.model, this.toModel, this.throughModel));\n };\n\n return AliasedForwardsDescriptorInstaller;\n }(_DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n }\n }]);\n\n return RelationalField;\n}(_Field__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (RelationalField);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvUmVsYXRpb25hbEZpZWxkLmpzPzQzMDQiXSwibmFtZXMiOlsiUmVsYXRpb25hbEZpZWxkIiwiYXJncyIsImxlbmd0aCIsIm9wdHMiLCJ0b01vZGVsTmFtZSIsIm5vcm1hbGl6ZU1vZGVsUmVmZXJlbmNlIiwidG8iLCJyZWxhdGVkTmFtZSIsInRocm91Z2giLCJ0aHJvdWdoRmllbGRzIiwiYXMiLCJnZXRCYWNrd2FyZHNGaWVsZE5hbWUiLCJtb2RlbCIsInJldmV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IHRydWU7XG4gICAgfVxuXG4gICAgcmVmZXJlbmNlcyhtb2RlbCkge1xuICAgICAgICByZXR1cm4gdGhpcy50b01vZGVsTmFtZSA9PT0gbW9kZWwubW9kZWxOYW1lO1xuICAgIH1cblxuICAgIGdldCBpbnN0YWxsZXJDbGFzcygpIHtcbiAgICAgICAgcmV0dXJuIGNsYXNzIEFsaWFzZWRGb3J3YXJkc0Rlc2NyaXB0b3JJbnN0YWxsZXIgZXh0ZW5kcyBEZWZhdWx0RmllbGRJbnN0YWxsZXIge1xuICAgICAgICAgICAgaW5zdGFsbEZvcndhcmRzRGVzY3JpcHRvcigpIHtcbiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubW9kZWwucHJvdG90eXBlLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpZWxkLmFzIHx8IHRoaXMuZmllbGROYW1lLCAvLyB1c2Ugc3VwcGxpZWQgbmFtZSBpZiBwb3NzaWJsZVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpZWxkLmNyZWF0ZUZvcndhcmRzRGVzY3JpcHRvcihcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZmllbGROYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG9Nb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudGhyb3VnaE1vZGVsXG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVsYXRpb25hbEZpZWxkO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/RelationalField.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RelationalField\", function() { return RelationalField; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Field */ \"./src/fields/Field.js\");\n/* harmony import */ var _DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DefaultFieldInstaller */ \"./src/fields/DefaultFieldInstaller.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./src/utils.js\");\n\n\n\n/* eslint-disable max-classes-per-file */\n\n\n\n/**\n * @private\n * @memberof module:fields\n */\n\nlet RelationalField = /*#__PURE__*/function (_Field) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(RelationalField, _Field);\n\n function RelationalField(...args) {\n var _this;\n\n _this = _Field.call(this) || this;\n\n if (args.length === 1 && typeof args[0] === \"object\") {\n const opts = args[0];\n _this.toModelName = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeModelReference\"])(opts.to);\n _this.relatedName = opts.relatedName;\n _this.through = Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeModelReference\"])(opts.through);\n _this.throughFields = opts.throughFields;\n _this.as = opts.as;\n } else {\n [_this.toModelName, _this.relatedName] = [Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"normalizeModelReference\"])(args[0]), args[1]];\n }\n\n return _this;\n }\n\n var _proto = RelationalField.prototype;\n\n _proto.getBackwardsFieldName = function getBackwardsFieldName(model) {\n return this.relatedName || Object(_utils__WEBPACK_IMPORTED_MODULE_4__[\"reverseFieldName\"])(model.modelName);\n };\n\n _proto.createBackwardsVirtualField = function createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField(model.modelName, fieldName);\n };\n\n _proto.references = function references(model) {\n return this.toModelName === model.modelName;\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(RelationalField, [{\n key: \"installsBackwardsVirtualField\",\n get: function () {\n return true;\n }\n }, {\n key: \"installsBackwardsDescriptor\",\n get: function () {\n return true;\n }\n }, {\n key: \"installerClass\",\n get: function () {\n return /*#__PURE__*/function (_DefaultFieldInstalle) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(AliasedForwardsDescriptorInstaller, _DefaultFieldInstalle);\n\n function AliasedForwardsDescriptorInstaller() {\n return _DefaultFieldInstalle.apply(this, arguments) || this;\n }\n\n var _proto2 = AliasedForwardsDescriptorInstaller.prototype;\n\n _proto2.installForwardsDescriptor = function installForwardsDescriptor() {\n Object.defineProperty(this.model.prototype, this.field.as || this.fieldName, // use supplied name if possible\n this.field.createForwardsDescriptor(this.fieldName, this.model, this.toModel, this.throughModel));\n };\n\n return AliasedForwardsDescriptorInstaller;\n }(_DefaultFieldInstaller__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n }\n }]);\n\n return RelationalField;\n}(_Field__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (RelationalField);//# sourceURL=[module]\n//# s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AgIHRoaXMuZmllbGROYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG9Nb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudGhyb3VnaE1vZGVsXG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVsYXRpb25hbEZpZWxkO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/RelationalField.js\n"); + + /***/ }), + +@@ -4654,7 +4676,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fk\", function() { return fk; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"attr\", function() { return attr; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"many\", function() { return many; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"oneToOne\", function() { return oneToOne; });\n/* harmony import */ var _Attribute__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Attribute */ \"./src/fields/Attribute.js\");\n/* harmony import */ var _ForeignKey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _ManyToMany__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _OneToOne__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OneToOne */ \"./src/fields/OneToOne.js\");\n\n\n\n\n/**\n * Contains the logic for how fields on {@link Model}s work\n * and which descriptors must be installed.\n *\n * If your goal is to define fields on a Model class,\n * please use the more convenient methods {@link attr},\n * {@link fk}, {@link many} and {@link oneToOne}.\n *\n * @module fields\n */\n\n/**\n * Defines a value attribute on the model.\n * Though not required, it is recommended to define this for each non-foreign key you wish to use.\n * Getters and setters need to be defined on each Model\n * instantiation for undeclared data fields, which is slower.\n * You can use the optional `getDefault` parameter to fill in unpassed values\n * to {@link Model.create}, such as for generating ID's with UUID:\n *\n * ```javascript\n * import getUUID from 'your-uuid-package-of-choice';\n *\n * fields = {\n * id: attr({ getDefault: () => getUUID() }),\n * title: attr(),\n * }\n * ```\n *\n * @param {Object} [opts]\n * @param {Function} [opts.getDefault] - If you give a function here, its return\n * value from calling with zero arguments will\n * be used as the value when creating a new Model\n * instance with {@link Model#create} if the field\n * value is not passed.\n * @return {Attribute}\n */\n\nfunction attr(opts) {\n return new _Attribute__WEBPACK_IMPORTED_MODULE_0__[\"default\"](opts);\n}\n/**\n * Defines a foreign key on a model, which points\n * to a single entity on another model.\n *\n * You can pass arguments as either a single object,\n * or two arguments.\n *\n * If you pass two arguments, the first one is the name\n * of the Model the foreign key is pointing to, and\n * the second one is an optional related name, which will\n * be used to access the Model the foreign key\n * is being defined from, from the target Model.\n *\n * If the related name is not passed, it will be set as\n * `${toModelName}Set`.\n *\n * If you pass an object to `fk`, it has to be in the form\n *\n * ```javascript\n * fields = {\n * author: fk({ to: 'Author', relatedName: 'books' })\n * }\n * ```\n *\n * Which is equal to\n *\n * ```javascript\n * fields = {\n * author: fk('Author', 'books'),\n * }\n * ```\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access\n * a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ForeignKey}\n */\n\n\nfunction fk(...args) {\n return new _ForeignKey__WEBPACK_IMPORTED_MODULE_1__[\"default\"](...args);\n}\n/**\n * Defines a many-to-many relationship between\n * this (source) and another (target) model.\n *\n * The relationship is modeled with an extra model called the through model.\n * The through model has foreign keys to both the source and target models.\n *\n * You can define your own through model if you want to associate more information\n * to the relationship. A custom through model must have at least two foreign keys,\n * one pointing to the source Model, and one pointing to the target Model.\n *\n * Like `fk`, this function accepts one or two string arguments specifying the other\n * Model and the related name, or a single object argument that allows you to pass\n * a custom through model.\n *\n * If you have more than one foreign key pointing to a source or target Model in the\n * through Model, you must pass the option `throughFields`, which is an array of two\n * strings, where the strings are the field names that identify the foreign keys to\n * be used for the many-to-many relationship. Redux-ORM will figure out which field name\n * points to which model by checking the \"through model\" definition.\n *\n * ```javascript\n * class Authorship extends Model {}\n * Authorship.modelName = 'Authorship';\n * Authorship.fields = {\n * author: fk('Author', 'authorships'),\n * book: fk('Book', 'authorships'),\n * };\n *\n * class Author extends Model {}\n * Author.modelName = 'Author';\n * Author.fields = {\n * books: many({\n * to: 'Book',\n * relatedName: 'authors',\n * through: 'Authorship',\n *\n * // here this is optional: Redux-ORM can figure\n * // out the through fields itself since the two\n * // foreign key fields point to different Models\n * throughFields: ['author', 'book'],\n * })\n * };\n *\n * class Book extends Model {}\n * Book.modelName = 'Book';\n * ```\n *\n * You should only define the many-to-many relationship on one side. In the\n * above case of Authors to Books through Authorships, the relationship is\n * defined only on the Author model.\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string|Class} [options.through] - The through Model class or its `modelName`\n * attribute. It must declare at least one\n * foreign key to both source and target models.\n * If not supplied, Redux-ORM will generate one.\n * @param {string[]} [options.throughFields] - Must be supplied only when a custom through\n * Model has more than one foreign key pointing to\n * either the source or target mode. In this case\n * Redux-ORM can't figure out the correct fields for\n * you, you must provide them. The supplied array should\n * have two elements that are the field names for the\n * through fields you want to declare the many-to-many\n * relationship with. The order doesn't matter;\n * Redux-ORM will figure out which field points to\n * the source Model and which to the target Model.\n * @param {string} [options.relatedName] - The attribute used to access a QuerySet for all\n * source models that reference the respective target\n * Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ManyToMany}\n */\n\n\nfunction many(...args) {\n return new _ManyToMany__WEBPACK_IMPORTED_MODULE_2__[\"default\"](...args);\n}\n/**\n * Defines a one-to-one relationship. In database terms, this is a foreign key with the\n * added restriction that only one entity can point to single target entity.\n *\n * The arguments are the same as with `fk`. If `relatedName` is not supplied,\n * the source model name in lowercase will be used. Note that with the one-to-one\n * relationship, the `relatedName` should be in singular, not plural.\n *\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance.\n * @param {string} [relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance\n * @return {OneToOne}\n */\n\n\nfunction oneToOne(...args) {\n return new _OneToOne__WEBPACK_IMPORTED_MODULE_3__[\"default\"](...args);\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvaW5kZXguanM/M2Y2ZiJdLCJuYW1lcyI6WyJhdHRyIiwib3B0cyIsIkF0dHJpYnV0ZSIs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xlYXN0IG9uZVxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcmVpZ24ga2V5IHRvIGJvdGggc291cmNlIGFuZCB0YXJnZXQgbW9kZWxzLlxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIElmIG5vdCBzdXBwbGllZCwgUmVkdXgtT1JNIHdpbGwgZ2VuZXJhdGUgb25lLlxuICogQHBhcmFtIHtzdHJpbmdbXX0gW29wdGlvbnMudGhyb3VnaEZpZWxkc10gLSBNdXN0IGJlIHN1cHBsaWVkIG9ubHkgd2hlbiBhIGN1c3RvbSB0aHJvdWdoXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE1vZGVsIGhhcyBtb3JlIHRoYW4gb25lIGZvcmVpZ24ga2V5IHBvaW50aW5nIHRvXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVpdGhlciB0aGUgc291cmNlIG9yIHRhcmdldCBtb2RlLiBJbiB0aGlzIGNhc2VcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVkdXgtT1JNIGNhbid0IGZpZ3VyZSBvdXQgdGhlIGNvcnJlY3QgZmllbGRzIGZvclxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB5b3UsIHlvdSBtdXN0IHByb3ZpZGUgdGhlbS4gVGhlIHN1cHBsaWVkIGFycmF5IHNob3VsZFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXZlIHR3byBlbGVtZW50cyB0aGF0IGFyZSB0aGUgZmllbGQgbmFtZXMgZm9yIHRoZVxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdWdoIGZpZWxkcyB5b3Ugd2FudCB0byBkZWNsYXJlIHRoZSBtYW55LXRvLW1hbnlcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVsYXRpb25zaGlwIHdpdGguIFRoZSBvcmRlciBkb2Vzbid0IG1hdHRlcjtcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVkdXgtT1JNIHdpbGwgZmlndXJlIG91dCB3aGljaCBmaWVsZCBwb2ludHMgdG9cbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlIHNvdXJjZSBNb2RlbCBhbmQgd2hpY2ggdG8gdGhlIHRhcmdldCBNb2RlbC5cbiAqIEBwYXJhbSB7c3RyaW5nfSBbb3B0aW9ucy5yZWxhdGVkTmFtZV0gLSBUaGUgYXR0cmlidXRlIHVzZWQgdG8gYWNjZXNzIGEgUXVlcnlTZXQgZm9yIGFsbFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZSBtb2RlbHMgdGhhdCByZWZlcmVuY2UgdGhlIHJlc3BlY3RpdmUgdGFyZ2V0XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgTW9kZWwncyBpbnN0YW5jZS5cbiAqIEBwYXJhbSB7c3RyaW5nfSBbcmVsYXRlZE5hbWVdIC0gSWYgeW91IGRpZG4ndCBwYXNzIGFuIG9iamVjdCBhcyB0aGUgZmlyc3QgYXJndW1lbnQsXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMgaXMgdGhlIHByb3BlcnR5IG5hbWUgdGhhdCB3aWxsIGJlIHVzZWQgdG9cbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWNjZXNzIGEgUXVlcnlTZXQgZm9yIGFsbCBzb3VyY2UgbW9kZWxzIHRoYXQgcmVmZXJlbmNlXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZSByZXNwZWN0aXZlIHRhcmdld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InNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/fields/index.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fk\", function() { return fk; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"attr\", function() { return attr; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"many\", function() { return many; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"oneToOne\", function() { return oneToOne; });\n/* harmony import */ var _Attribute__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Attribute */ \"./src/fields/Attribute.js\");\n/* harmony import */ var _ForeignKey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _ManyToMany__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _OneToOne__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OneToOne */ \"./src/fields/OneToOne.js\");\n\n\n\n\n/**\n * Contains the logic for how fields on {@link Model}s work\n * and which descriptors must be installed.\n *\n * If your goal is to define fields on a Model class,\n * please use the more convenient methods {@link attr},\n * {@link fk}, {@link many} and {@link oneToOne}.\n *\n * @module fields\n */\n\n/**\n * Defines a value attribute on the model.\n * Though not required, it is recommended to define this for each non-foreign key you wish to use.\n * Getters and setters need to be defined on each Model\n * instantiation for undeclared data fields, which is slower.\n * You can use the optional `getDefault` parameter to fill in unpassed values\n * to {@link Model.create}, such as for generating ID's with UUID:\n *\n * ```javascript\n * import getUUID from 'your-uuid-package-of-choice';\n *\n * fields = {\n * id: attr({ getDefault: () => getUUID() }),\n * title: attr(),\n * }\n * ```\n *\n * @param {Object} [opts]\n * @param {Function} [opts.getDefault] - If you give a function here, its return\n * value from calling with zero arguments will\n * be used as the value when creating a new Model\n * instance with {@link Model#create} if the field\n * value is not passed.\n * @return {Attribute}\n */\n\nfunction attr(opts) {\n return new _Attribute__WEBPACK_IMPORTED_MODULE_0__[\"default\"](opts);\n}\n/**\n * Defines a foreign key on a model, which points\n * to a single entity on another model.\n *\n * You can pass arguments as either a single object,\n * or two arguments.\n *\n * If you pass two arguments, the first one is the name\n * of the Model the foreign key is pointing to, and\n * the second one is an optional related name, which will\n * be used to access the Model the foreign key\n * is being defined from, from the target Model.\n *\n * If the related name is not passed, it will be set as\n * `${toModelName}Set`.\n *\n * If you pass an object to `fk`, it has to be in the form\n *\n * ```javascript\n * fields = {\n * author: fk({ to: 'Author', relatedName: 'books' })\n * }\n * ```\n *\n * Which is equal to\n *\n * ```javascript\n * fields = {\n * author: fk('Author', 'books'),\n * }\n * ```\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access\n * a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ForeignKey}\n */\n\n\nfunction fk(...args) {\n return new _ForeignKey__WEBPACK_IMPORTED_MODULE_1__[\"default\"](...args);\n}\n/**\n * Defines a many-to-many relationship between\n * this (source) and another (target) model.\n *\n * The relationship is modeled with an extra model called the through model.\n * The through model has foreign keys to both the source and target models.\n *\n * You can define your own through model if you want to associate more information\n * to the relationship. A custom through model must have at least two foreign keys,\n * one pointing to the source Model, and one pointing to the target Model.\n *\n * Like `fk`, this function accepts one or two string arguments specifying the other\n * Model and the related name, or a single object argument that allows you to pass\n * a custom through model.\n *\n * If you have more than one foreign key pointing to a source or target Model in the\n * through Model, you must pass the option `throughFields`, which is an array of two\n * strings, where the strings are the field names that identify the foreign keys to\n * be used for the many-to-many relationship. Redux-ORM will figure out which field name\n * points to which model by checking the \"through model\" definition.\n *\n * ```javascript\n * class Authorship extends Model {}\n * Authorship.modelName = 'Authorship';\n * Authorship.fields = {\n * author: fk('Author', 'authorships'),\n * book: fk('Book', 'authorships'),\n * };\n *\n * class Author extends Model {}\n * Author.modelName = 'Author';\n * Author.fields = {\n * books: many({\n * to: 'Book',\n * relatedName: 'authors',\n * through: 'Authorship',\n *\n * // here this is optional: Redux-ORM can figure\n * // out the through fields itself since the two\n * // foreign key fields point to different Models\n * throughFields: ['author', 'book'],\n * })\n * };\n *\n * class Book extends Model {}\n * Book.modelName = 'Book';\n * ```\n *\n * You should only define the many-to-many relationship on one side. In the\n * above case of Authors to Books through Authorships, the relationship is\n * defined only on the Author model.\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string|Class} [options.through] - The through Model class or its `modelName`\n * attribute. It must declare at least one\n * foreign key to both source and target models.\n * If not supplied, Redux-ORM will generate one.\n * @param {string[]} [options.throughFields] - Must be supplied only when a custom through\n * Model has more than one foreign key pointing to\n * either the source or target mode. In this case\n * Redux-ORM can't figure out the correct fields for\n * you, you must provide them. The supplied array should\n * have two elements that are the field names for the\n * through fields you want to declare the many-to-many\n * relationship with. The order doesn't matter;\n * Redux-ORM will figure out which field points to\n * the source Model and which to the target Model.\n * @param {string} [options.relatedName] - The attribute used to access a QuerySet for all\n * source models that reference the respective target\n * Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ManyToMany}\n */\n\n\nfunction many(...args) {\n return new _ManyToMany__WEBPACK_IMPORTED_MODULE_2__[\"default\"](...args);\n}\n/**\n * Defines a one-to-one relationship. In database terms, this is a foreign key with the\n * added restriction that only one entity can point to single target entity.\n *\n * The arguments are the same as with `fk`. If `relatedName` is not supplied,\n * the source model name in lowercase will be used. Note that with the one-to-one\n * relationship, the `relatedName` should be in singular, not plural.\n *\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance.\n * @param {string} [relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance\n * @return {OneToOne}\n */\n\n\nfunction oneToOne(...args) {\n return new _OneToOne__WEBPACK_IMPORTED_MODULE_3__[\"default\"](...args);\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9maWVsZHMvaW5kZXguanM/M2Y2ZiJdLCJuYW1lcyI6WyJhdHRyIiwib3B0cyIsIkF0dHJpYnV0ZSIsImZrIiwiYXJncyIsIkZvcmVpZ25LZXkiLCJtYW55IiwiTWFueVRvTWFueSIsIm9uZVRvT25lIiwiT25lVG9PbmUiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTt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b2RlbD59IG9wdGlvbnMudG8gLSBUaGUgdGFyZ2V0IE1vZGVsIGNsYXNzIG9yIGl0cyBgbW9kZWxOYW1lYCBhdHRyaWJ1dGUuXG4gKiBAcGFyYW0ge3N0cmluZ30gW29wdGlvbnMuYXNdIC0gTmFtZSBmb3IgdGhlIG5ldyBhY2Nlc3NvciBkZWZpbmVkIGZvciB0aGlzIGZpZWxkLiBJZiB5b3UgZG9uJ3RcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdXBwbHkgdGhpcywgdGhlIGtleSB0aGF0IHRoaXMgZmllbGQgaXMgZGVmaW5lZCB1bmRlciB3aWxsIGJlXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3ZlcnJpZGRlbi5cbiAqIEBwYXJhbSB7c3RyaW5nfENsYXNzPE1vZGVsPn0gW29wdGlvbnMudGhyb3VnaF0gLSBUaGUgdGhyb3VnaCBNb2RlbCBjbGFzcyBvciBpdHMgYG1vZGVsTmFtZWBcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyaWJ1dGUuIEl0IG11c3QgZGVjbGFyZSBhdCBsZWFzdCBvbmVcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JlaWduIGtleSB0byBib3RoIHNvdXJjZSBhbmQgdGFyZ2V0IG1vZGVscy5cbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBJZiBub3Qgc3VwcGxpZWQsIFJlZHV4LU9STSB3aWxsIGdlbmVyYXRlIG9uZS5cbiAqIEBwYXJhbSB7c3RyaW5nW119IFtvcHRpb25zLnRocm91Z2hGaWVsZHNdIC0gTXVzdCBiZSBzdXBwbGllZCBvbmx5IHdoZW4gYSBjdXN0b20gdGhyb3VnaFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNb2RlbCBoYXMgbW9yZSB0aGFuIG9uZSBmb3JlaWduIGtleSBwb2ludGluZyB0b1xuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlaXRoZXIgdGhlIHNvdXJjZSBvciB0YXJnZXQgbW9kZS4gSW4gdGhpcyBjYXNlXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlZHV4LU9STSBjYW4ndCBmaWd1cmUgb3V0IHRoZSBjb3JyZWN0IGZpZWxkcyBmb3JcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeW91LCB5b3UgbXVzdCBwcm92aWRlIHRoZW0uIFRoZSBzdXBwbGllZCBhcnJheSBzaG91bGRcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGF2ZSB0d28gZWxlbWVudHMgdGhhdCBhcmUgdGhlIGZpZWxkIG5hbWVzIGZvciB0aGVcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3VnaCBmaWVsZHMgeW91IHdhbnQgdG8gZGVjbGFyZSB0aGUgbWFueS10by1tYW55XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbGF0aW9uc2hpcCB3aXRoLiBUaGUgb3JkZXIgZG9lc24ndCBtYXR0ZXI7XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlZHV4LU9STSB3aWxsIGZpZ3VyZSBvdXQgd2hpY2ggZmllbGQgcG9pbnRzIHRvXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZSBzb3VyY2UgTW9kZWwgYW5kIHdoaWNoIHRvIHRoZSB0YXJnZXQgTW9kZWwuXG4gKiBAcGFyYW0ge3N0cmluZ30gW29wdGlvbnMucmVsYXRlZE5hbWVdIC0gVGhlIGF0dHJpY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9IFtvcHRpb25zLnJlbGF0ZWROYW1lXSAtIFRoZSBwcm9wZXJ0eSBuYW1lIHRoYXQgd2lsbCBiZSB1c2VkIHRvIGFjY2VzcyB0aGUgc291cmNlXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWwgaW5zdGFuY2UgcmVmZXJlbmNpbmcgdGhlIHRhcmdldCBtb2RlbCBpbnN0YW5jZS5cbiAqIEBwYXJhbSB7c3RyaW5nfSBbcmVsYXRlZE5hbWVdIC0gVGhlIHByb3BlcnR5IG5hbWUgdGhhdCB3aWxsIGJlIHVzZWQgdG8gYWNjZXNzIHRoZSBzb3VyY2VcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWwgaW5zdGFuY2UgcmVmZXJlbmNpbmcgdGhlIHRhcmdldCBtb2RlbCBpbnN0YW5jZVxuICogQHJldHVybiB7T25lVG9PbmV9XG4gKi9cbmZ1bmN0aW9uIG9uZVRvT25lKC4uLmFyZ3MpIHtcbiAgICByZXR1cm4gbmV3IE9uZVRvT25lKC4uLmFyZ3MpO1xufVxuXG5leHBvcnQgeyBmaywgYXR0ciwgbWFueSwgb25lVG9PbmUgfTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/fields/index.js\n"); + + /***/ }), + +@@ -4678,7 +4700,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"eqCheck\", function() { return eqCheck; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"memoize\", function() { return memoize; });\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n\n\nconst defaultEqualityCheck = (a, b) => a === b;\n\nconst eqCheck = defaultEqualityCheck;\n\nconst isOrmState = arg => arg && typeof arg === \"object\" && arg.hasOwnProperty(_constants__WEBPACK_IMPORTED_MODULE_0__[\"STATE_FLAG\"]);\n\nconst argsAreEqual = (lastArgs, nextArgs, equalityCheck) => nextArgs.every((arg, index) => isOrmState(arg) && isOrmState(lastArgs[index]) || equalityCheck(arg, lastArgs[index]));\n\nconst rowsAreEqual = (ids, rowsA, rowsB) => ids.every(id => rowsA[id] === rowsB[id]);\n\nconst accessedModelInstancesAreEqual = (previous, ormState, orm) => {\n const {\n accessedInstances\n } = previous;\n return Object.entries(accessedInstances).every(([modelName, instances]) => {\n // if the entire table has not been changed, we have nothing to do\n if (previous.ormState[modelName] === ormState[modelName]) {\n return true;\n }\n\n const {\n mapName\n } = orm.getDatabase().describe(modelName);\n const {\n [mapName]: previousRows\n } = previous.ormState[modelName];\n const {\n [mapName]: rows\n } = ormState[modelName];\n const accessedIds = Object.keys(instances);\n return rowsAreEqual(accessedIds, previousRows, rows);\n });\n};\n\nconst accessedIndexesAreEqual = (previous, ormState) => {\n const {\n accessedIndexes\n } = previous;\n return Object.entries(accessedIndexes).every(([modelName, indexes]) => Object.entries(indexes).every(([column, values]) => values.every(value => previous.ormState[modelName].indexes[column][value] === ormState[modelName].indexes[column][value])));\n};\n\nconst fullTableScannedModelsAreEqual = (previous, ormState) => previous.fullTableScannedModels.every(modelName => previous.ormState[modelName] === ormState[modelName]);\n/**\n * A memoizer to use with redux-orm\n * selectors. When the memoized function is first run,\n * the memoizer will remember the models that are accessed\n * during that function run.\n *\n * On subsequent runs, the memoizer will check if those\n * models' states have changed compared to the previous run.\n *\n * Memoization algorithm operates like this:\n *\n * 1. Has the selector been run before? If not, go to 6.\n *\n * 2. If the selector has other input selectors in addition to the\n * ORM state selector, check their results for equality with the previous results.\n * If they aren't equal, go to 6.\n *\n * 3. Some filter queries may have required scanning entire tables during the last run.\n * If any of those tables have changed, go to 6.\n *\n * 4. Check which foreign key indexes the database has used to speed up queries\n * during the last run. If any have changed, go to 6.\n *\n * 5. Check which Model's instances the selector has accessed during the last run.\n * Check for equality with each of those states versus their states in the\n * previous ORM state. If all of them are equal, return the previous result.\n *\n * 6. Run the selector. Check the Session object used by the selector for\n * which Model's states were accessed, and merge them with the previously\n * saved information about accessed models (if-else branching can change\n * which models are accessed on different inputs). Save the ORM state and\n * other arguments the selector was called with, overriding previously\n * saved values. Save the selector result. Return the selector result.\n *\n * @private\n * @param {Function} func - function to memoize\n * @param {Function} argEqualityCheck - equality check function to use with normal\n * selector args\n * @param {ORM} orm - a redux-orm ORM instance\n * @return {Function} `func` memoized.\n */\n\n\nfunction memoize(func, argEqualityCheck = defaultEqualityCheck, orm) {\n let previous = {\n /* Result of the previous function call */\n result: null,\n\n /* Arguments to the previous function call (excluding ORM state) */\n args: null,\n\n /**\n * Snapshot of the previous database.\n *\n * Lets us know how the tables looked like\n * during the previous function call.\n */\n ormState: null,\n\n /**\n * Names of models whose tables have been scanned completely\n * during previous function call (contains only model names)\n * Format example: ['Book']\n */\n fullTableScannedModels: [],\n\n /**\n * Map of which model instances have been accessed\n * during previous function call.\n * Contains only PKs of accessed instances.\n * Format example: { Book: { 1: true, 3: true } }\n */\n accessedInstances: {},\n\n /**\n * Map of which attribute indexes have been accessed\n * during previous function call.\n * Contains only attributes that were actually filtered on.\n * Author.withId(3).books would add 3 to the authorId index below.\n * Format example: { Book: { authorId: [1, 2], publisherId: [5] } }\n */\n accessedIndexes: {}\n };\n return (...stateAndArgs) => {\n /**\n * The first argument to this function needs to be\n * the ORM's reducer state in the user's Redux store.\n */\n const [ormState, ...args] = stateAndArgs;\n const selectorWasCalledBefore = Boolean(previous.args);\n\n if (selectorWasCalledBefore && argsAreEqual(previous.args, args, argEqualityCheck) && fullTableScannedModelsAreEqual(previous, ormState) && accessedIndexesAreEqual(previous, ormState) && accessedModelInstancesAreEqual(previous, ormState, orm)) {\n /**\n * None of this selector's dependencies have changed\n * since the last time that we called it.\n */\n return previous.result;\n }\n /**\n * Start a session so that the selector can access the database.\n * Make this session immutable. This way we can find out if\n * the operations that the selector performs are cacheable.\n */\n\n\n const session = orm.session(ormState);\n /* Replace all ORM state arguments by the session above */\n\n const argsWithSession = args.map(arg => isOrmState(arg) ? session : arg);\n /* This is where we call the actual function */\n\n const result = func.apply(null, argsWithSession); // eslint-disable-line prefer-spread\n\n /**\n * The metadata for the previous call are no longer valid.\n * Update cached values.\n */\n\n previous = {\n /* Arguments that were passed to the selector */\n args,\n\n /* Selector result */\n result,\n\n /* Redux state slice for session.state */\n ormState,\n\n /* Rows retrieved by resolved primary key */\n accessedInstances: session.accessedModelInstances,\n\n /* Foreign key indexes that were used to speed up queries */\n accessedIndexes: session.accessedIndexes,\n\n /* Tables that had to be scanned completely */\n fullTableScannedModels: session.fullTableScannedModels\n };\n return result;\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9tZW1vaXplLmpzPzkxY2IiXSwibmFtZXMiOlsiZGVmYXVsdEVxdWFsaXR5Q2hlY2siLCJhIiwiYiIsImVxQ2hlY2siLCJpc09ybVN0YXRlIiwiYXJnIiwiaGFzT3duUHJvcGVydHkiLCJTVEFURV9GTEFHIiwiYXJnc0FyZUVxdWFsIiwibGFzdEFyZ3MiLCJuZXh0QXJncyIsImVxdWFsaXR5Q2hlY2siLCJldmVyeSIsImluZGV4Iiwicm93c0FyZUVxdWFsIiwiaWRzIiwicm93c0EiLCJyb3dzQiIsImlkIiwiYWNjZXNzZWRNb2RlbEluc3RhbmNlc0FyZUVxdWFsIiwicHJldmlvdXMiLCJvcm1TdGF0ZSIsIm9ybSIsImFjY2Vzc2VkSW5zdGFuY2VzIiwiT2JqZWN0IiwiZW50cmllcyIsIm1vZGVsTmFtZSIsImluc3RhbmNlcyIsIm1hcE5hbWUiLCJnZXREYXRhYmFzZSIsImRlc2NyaWJlIiwicHJldmlvdXNSb3dzI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YWx1ZXMuXG4gICAgICAgICAqL1xuICAgICAgICBwcmV2aW91cyA9IHtcbiAgICAgICAgICAgIC8qIEFyZ3VtZW50cyB0aGF0IHdlcmUgcGFzc2VkIHRvIHRoZSBzZWxlY3RvciAqL1xuICAgICAgICAgICAgYXJncyxcbiAgICAgICAgICAgIC8qIFNlbGVjdG9yIHJlc3VsdCAqL1xuICAgICAgICAgICAgcmVzdWx0LFxuICAgICAgICAgICAgLyogUmVkdXggc3RhdGUgc2xpY2UgZm9yIHNlc3Npb24uc3RhdGUgKi9cbiAgICAgICAgICAgIG9ybVN0YXRlLFxuICAgICAgICAgICAgLyogUm93cyByZXRyaWV2ZWQgYnkgcmVzb2x2ZWQgcHJpbWFyeSBrZXkgKi9cbiAgICAgICAgICAgIGFjY2Vzc2VkSW5zdGFuY2VzOiBzZXNzaW9uLmFjY2Vzc2VkTW9kZWxJbnN0YW5jZXMsXG4gICAgICAgICAgICAvKiBGb3JlaWduIGtleSBpbmRleGVzIHRoYXQgd2VyZSB1c2VkIHRvIHNwZWVkIHVwIHF1ZXJpZXMgKi9cbiAgICAgICAgICAgIGFjY2Vzc2VkSW5kZXhlczogc2Vzc2lvbi5hY2Nlc3NlZEluZGV4ZXMsXG4gICAgICAgICAgICAvKiBUYWJsZXMgdGhhdCBoYWQgdG8gYmUgc2Nhbm5lZCBjb21wbGV0ZWx5ICovXG4gICAgICAgICAgICBmdWxsVGFibGVTY2FubmVkTW9kZWxzOiBzZXNzaW9uLmZ1bGxUYWJsZVNjYW5uZWRNb2RlbHMsXG4gICAgICAgIH07XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9O1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/memoize.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"eqCheck\", function() { return eqCheck; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"memoize\", function() { return memoize; });\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n\n\nconst defaultEqualityCheck = (a, b) => a === b;\n\nconst eqCheck = defaultEqualityCheck;\n\nconst isOrmState = arg => arg && typeof arg === \"object\" && arg.hasOwnProperty(_constants__WEBPACK_IMPORTED_MODULE_0__[\"STATE_FLAG\"]);\n\nconst argsAreEqual = (lastArgs, nextArgs, equalityCheck) => nextArgs.every((arg, index) => isOrmState(arg) && isOrmState(lastArgs[index]) || equalityCheck(arg, lastArgs[index]));\n\nconst rowsAreEqual = (ids, rowsA, rowsB) => ids.every(id => rowsA[id] === rowsB[id]);\n\nconst accessedModelInstancesAreEqual = (previous, ormState, orm) => {\n const {\n accessedInstances\n } = previous;\n return Object.entries(accessedInstances).every(([modelName, instances]) => {\n // if the entire table has not been changed, we have nothing to do\n if (previous.ormState[modelName] === ormState[modelName]) {\n return true;\n }\n\n const {\n mapName\n } = orm.getDatabase().describe(modelName);\n const {\n [mapName]: previousRows\n } = previous.ormState[modelName];\n const {\n [mapName]: rows\n } = ormState[modelName];\n const accessedIds = Object.keys(instances);\n return rowsAreEqual(accessedIds, previousRows, rows);\n });\n};\n\nconst accessedIndexesAreEqual = (previous, ormState) => {\n const {\n accessedIndexes\n } = previous;\n return Object.entries(accessedIndexes).every(([modelName, indexes]) => Object.entries(indexes).every(([column, values]) => values.every(value => previous.ormState[modelName].indexes[column][value] === ormState[modelName].indexes[column][value])));\n};\n\nconst fullTableScannedModelsAreEqual = (previous, ormState) => previous.fullTableScannedModels.every(modelName => previous.ormState[modelName] === ormState[modelName]);\n/**\n * A memoizer to use with redux-orm\n * selectors. When the memoized function is first run,\n * the memoizer will remember the models that are accessed\n * during that function run.\n *\n * On subsequent runs, the memoizer will check if those\n * models' states have changed compared to the previous run.\n *\n * Memoization algorithm operates like this:\n *\n * 1. Has the selector been run before? If not, go to 6.\n *\n * 2. If the selector has other input selectors in addition to the\n * ORM state selector, check their results for equality with the previous results.\n * If they aren't equal, go to 6.\n *\n * 3. Some filter queries may have required scanning entire tables during the last run.\n * If any of those tables have changed, go to 6.\n *\n * 4. Check which foreign key indexes the database has used to speed up queries\n * during the last run. If any have changed, go to 6.\n *\n * 5. Check which Model's instances the selector has accessed during the last run.\n * Check for equality with each of those states versus their states in the\n * previous ORM state. If all of them are equal, return the previous result.\n *\n * 6. Run the selector. Check the Session object used by the selector for\n * which Model's states were accessed, and merge them with the previously\n * saved information about accessed models (if-else branching can change\n * which models are accessed on different inputs). Save the ORM state and\n * other arguments the selector was called with, overriding previously\n * saved values. Save the selector result. Return the selector result.\n *\n * @private\n * @param {Function} func - function to memoize\n * @param {Function} argEqualityCheck - equality check function to use with normal\n * selector args\n * @param {ORM} orm - a redux-orm ORM instance\n * @return {Function} `func` memoized.\n */\n\n\nfunction memoize(func, argEqualityCheck = defaultEqualityCheck, orm) {\n let previous = {\n /* Result of the previous function call */\n result: null,\n\n /* Arguments to the previous function call (excluding ORM state) */\n args: null,\n\n /**\n * Snapshot of the previous database.\n *\n * Lets us know how the tables looked like\n * during the previous function call.\n */\n ormState: null,\n\n /**\n * Names of models whose tables have been scanned completely\n * during previous function call (contains only model names)\n * Format example: ['Book']\n */\n fullTableScannedModels: [],\n\n /**\n * Map of which model instances have been accessed\n * during previous function call.\n * Contains only PKs of accessed instances.\n * Format example: { Book: { 1: true, 3: true } }\n */\n accessedInstances: {},\n\n /**\n * Map of which attribute indexes have been accessed\n * during previous function call.\n * Contains only attributes that were actually filtered on.\n * Author.withId(3).books would add 3 to the authorId index below.\n * Format example: { Book: { authorId: [1, 2], publisherId: [5] } }\n */\n accessedIndexes: {}\n };\n return (...stateAndArgs) => {\n /**\n * The first argument to this function needs to be\n * the ORM's reducer state in the user's Redux store.\n */\n const [ormState, ...args] = stateAndArgs;\n const selectorWasCalledBefore = Boolean(previous.args);\n\n if (selectorWasCalledBefore && argsAreEqual(previous.args, args, argEqualityCheck) && fullTableScannedModelsAreEqual(previous, ormState) && accessedIndexesAreEqual(previous, ormState) && accessedModelInstancesAreEqual(previous, ormState, orm)) {\n /**\n * None of this selector's dependencies have changed\n * since the last time that we called it.\n */\n return previous.result;\n }\n /**\n * Start a session so that the selector can access the database.\n * Make this session immutable. This way we can find out if\n * the operations that the selector performs are cacheable.\n */\n\n\n const session = orm.session(ormState);\n /* Replace all ORM state arguments by the session above */\n\n const argsWithSession = args.map(arg => isOrmState(arg) ? session : arg);\n /* This is where we call the actual function */\n\n const result = func.apply(null, argsWithSession); // eslint-disable-line prefer-spread\n\n /**\n * The metadata for the previous call are no longer valid.\n * Update cached values.\n */\n\n previous = {\n /* Arguments that were passed to the selector */\n args,\n\n /* Selector result */\n result,\n\n /* Redux state slice for session.state */\n ormState,\n\n /* Rows retrieved by resolved primary key */\n accessedInstances: session.accessedModelInstances,\n\n /* Foreign key indexes that were used to speed up queries */\n accessedIndexes: session.accessedIndexes,\n\n /* Tables that had to be scanned completely */\n fullTableScannedModels: session.fullTableScannedModels\n };\n return result;\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9tZW1vaXplLmpzPzkxY2IiXSwibmFtZXMiOlsiZGVmYXVsdEVxdWFsaXR5Q2hlY2siLCJhIiwiYiIsImVxQ2hlY2siLCJpc09ybVN0YXRlIiwiYXJnIiwiaGFzT3duUHJvcGVydHkiLCJTVEFURV9GTEFHIiwiYXJnc0FyZUVxdWFsIiwibGFzdEFyZ3MiLCJuZXh0QXJncyIsImVxdWFsaXR5Q2hlY2siLCJldmVyeSIsImluZGV4Iiwicm93c0FyZUVxdWFsIiwiaWRzIiwicm93c0EiLCJyb3dzQiIsImlkIiwiYWNjZXNzZWRNb2RlbEluc3RhbmNlc0FyZUVxdWFsIiwicHJldmlvdXMiLCJvcm1TdGF0ZSIsIm9ybSIsImFjY2Vzc2Vk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ICAvKiBGb3JlaWduIGtleSBpbmRleGVzIHRoYXQgd2VyZSB1c2VkIHRvIHNwZWVkIHVwIHF1ZXJpZXMgKi9cbiAgICAgICAgICAgIGFjY2Vzc2VkSW5kZXhlczogc2Vzc2lvbi5hY2Nlc3NlZEluZGV4ZXMsXG4gICAgICAgICAgICAvKiBUYWJsZXMgdGhhdCBoYWQgdG8gYmUgc2Nhbm5lZCBjb21wbGV0ZWx5ICovXG4gICAgICAgICAgICBmdWxsVGFibGVTY2FubmVkTW9kZWxzOiBzZXNzaW9uLmZ1bGxUYWJsZVNjYW5uZWRNb2RlbHMsXG4gICAgICAgIH07XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9O1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/memoize.js\n"); + + /***/ }), + +@@ -4690,7 +4712,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defaultUpdater\", function() { return defaultUpdater; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createReducer\", function() { return createReducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createSelector\", function() { return createSelector; });\n/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! reselect */ \"./node_modules/reselect/lib/index.js\");\n/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(reselect__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var re_reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! re-reselect */ \"./node_modules/re-reselect/dist/index.js\");\n/* harmony import */ var re_reselect__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(re_reselect__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./memoize */ \"./src/memoize.js\");\n/* harmony import */ var _ORM__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ORM */ \"./src/ORM.js\");\n/* harmony import */ var _selectors_SelectorSpec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selectors/SelectorSpec */ \"./src/selectors/SelectorSpec.js\");\n/* harmony import */ var _selectors_MapSelectorSpec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selectors/MapSelectorSpec */ \"./src/selectors/MapSelectorSpec.js\");\n\n\n\n\n\n\n/**\n * @module redux\n * @desc Provides functions for integration with Redux.\n */\n\n/**\n * Calls all models' reducers if they exist.\n *\n * @return {undefined}\n * @global\n */\n\nfunction defaultUpdater(session, action) {\n session.sessionBoundModels.forEach(modelClass => {\n if (typeof modelClass.reducer === \"function\") {\n // This calls this.applyUpdate to update this.state\n modelClass.reducer(action, modelClass, session);\n }\n });\n}\n/**\n * Call the returned function to pass actions to Redux-ORM.\n *\n * @global\n *\n * @param {ORM} orm - the ORM instance.\n * @param {Function} [updater] - the function updating the ORM state based on the given action.\n * @return {Function} reducer that will update the ORM state.\n */\n\nfunction createReducer(orm, updater = defaultUpdater) {\n return (state, action) => {\n const session = orm.session(state || orm.getEmptyState());\n updater(session, action);\n return session.state;\n };\n}\n/**\n * @private\n * @param {SelectorSpec} spec\n */\n\nfunction createSelectorFromSpec(spec) {\n if (spec instanceof _selectors_MapSelectorSpec__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n const parentSelector = createSelectorFromSpec(spec.parent);\n return spec.createResultFunc(parentSelector);\n }\n\n return re_reselect__WEBPACK_IMPORTED_MODULE_1___default()(spec.dependencies, spec.resultFunc)({\n keySelector: spec.keySelector,\n cacheObject: new re_reselect__WEBPACK_IMPORTED_MODULE_1__[\"FlatMapCache\"](),\n selectorCreator: createSelector // eslint-disable-line no-use-before-define\n\n });\n}\n/**\n * Tries to find ORM instance using the argument.\n * @private\n * @param {*} arg\n */\n\n\nfunction toORM(arg) {\n /* eslint-disable no-underscore-dangle */\n if (arg instanceof _ORM__WEBPACK_IMPORTED_MODULE_3__[\"ORM\"]) {\n return arg;\n }\n\n if (arg instanceof _selectors_SelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n return arg._orm;\n }\n\n return false;\n}\n\nconst selectorCache = new Map();\nconst SELECTOR_KEY = Symbol.for(\"REDUX_ORM_SELECTOR\");\n/**\n * @private\n * @param {function|ORM|SelectorSpec} arg\n */\n\nfunction toSelector(arg) {\n if (typeof arg === \"function\") {\n return arg;\n }\n\n if (arg instanceof _ORM__WEBPACK_IMPORTED_MODULE_3__[\"ORM\"]) {\n return arg.stateSelector;\n }\n\n if (arg instanceof _selectors_MapSelectorSpec__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // the argument to map() needs to be callable\n arg.selector = toSelector(arg.selector);\n }\n\n if (arg instanceof _selectors_SelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n const {\n orm,\n cachePath\n } = arg;\n let level; // the selector cache for the spec's ORM\n\n if (!selectorCache.has(orm)) {\n selectorCache.set(orm, new Map());\n }\n\n const ormSelectors = selectorCache.get(orm);\n /**\n * Drill down into selector map by cachePath.\n *\n * The selector itself is stored under a special SELECTOR_KEY\n * so that we can store selectors below it as well.\n */\n\n level = ormSelectors;\n\n for (let i = 0; i < cachePath.length; ++i) {\n const storageKey = cachePath[i];\n\n if (!level.has(storageKey)) {\n level.set(storageKey, new Map());\n }\n\n level = level.get(storageKey);\n }\n\n if (level && level.has(SELECTOR_KEY)) {\n // Cache hit: the selector has been created before\n return level.get(SELECTOR_KEY);\n } // Cache miss: the selector needs to be created\n\n\n const selector = createSelectorFromSpec(arg); // Save the selector at the cachePath position\n\n level.set(SELECTOR_KEY, selector);\n return selector;\n }\n\n throw new Error(`Failed to interpret selector argument: ${JSON.stringify(arg)} of type ${typeof arg}`);\n}\n/**\n * Returns a memoized selector based on passed arguments.\n * This is similar to `reselect`'s `createSelector`,\n * except you can also pass a single function to be memoized.\n *\n * If you pass multiple functions, the format will be the\n * same as in `reselect`. The last argument is the selector\n * function and the previous are input selectors.\n *\n * When you use this method to create a selector, the returned selector\n * expects the whole `redux-orm` state branch as input. In the selector\n * function that you pass as the last argument, any of the arguments\n * you pass first will be considered selectors and mapped\n * to their outputs, like in `reselect`.\n *\n * Here are some example selectors:\n *\n * ```javascript\n * // orm is an instance of ORM\n * // reduxState is the state of a Redux store\n * const books = createSelector(orm.Book);\n * books(reduxState) // array of book refs\n *\n * const bookAuthors = createSelector(orm.Book.authors);\n * bookAuthors(reduxState) // two-dimensional array of author refs for each book\n * ```\n * Selectors can easily be applied to related models:\n * ```javascript\n * const bookAuthorNames = createSelector(\n * orm.Book.authors.map(orm.Author.name),\n * );\n * bookAuthorNames(reduxState, 8) // names of all authors of book with ID 8\n * bookAuthorNames(reduxState, [8, 9]) // 2D array of names of all authors of books with IDs 8 and 9\n * ```\n * Also note that `orm.Author.name` did not need to be wrapped in another `createSelector` call,\n * although that would be possible.\n *\n * For more complex calculations you can access\n * entire session objects by passing an ORM instance.\n * ```javascript\n * const freshBananasCost = createSelector(\n * orm,\n * session => {\n * const banana = session.Product.get({\n * name: \"Banana\",\n * });\n * // amount of fresh bananas in shopping cart\n * const amount = session.ShoppingCart.filter({\n * product_id: banana.id,\n * is_fresh: true,\n * }).count();\n * return `USD ${amount * banana.price}`;\n * }\n * );\n * ```\n *\n * redux-orm uses a special memoization function to avoid recomputations.\n *\n * Everytime a selector runs, this function records which instances\n * of your `Model`s were accessed.
\n * On subsequent runs, the selector first checks if the previously\n * accessed instances or `args` have changed in any way:\n *
    \n *
  • If yes, the selector calls the function you passed to it.
  • \n *
  • If not, it just returns the previous result\n * (unless you call it for the first time).
  • \n *
\n *\n * This way you can use pure rendering in your React components\n * for performance gains.\n *\n * @global\n *\n * @param {...Function} args - zero or more input selectors\n * and the selector function.\n * @return {Function} memoized selector\n */\n\n\nfunction createSelector(...args) {\n if (!args.length) {\n throw new Error(\"Cannot create a selector without arguments.\");\n }\n\n const resultArg = args.pop();\n const dependencies = Array.isArray(args[0]) ? args[0] : args;\n const orm = dependencies.map(toORM).find(Boolean);\n const inputFuncs = dependencies.map(toSelector);\n\n if (typeof resultArg === \"function\") {\n if (!orm) {\n throw new Error(\"Failed to resolve the current ORM database state. Please pass an ORM instance or an ORM selector as an argument to `createSelector()`.\");\n } else if (!orm.stateSelector) {\n throw new Error(\"Failed to resolve the current ORM database state. Please pass an object to the ORM constructor that specifies a `stateSelector` function.\");\n } else if (typeof orm.stateSelector !== \"function\") {\n throw new Error(`Failed to resolve the current ORM database state. Please pass a function when specifying the ORM's \\`stateSelector\\`. Received: ${JSON.stringify(orm.stateSelector)} of type ${typeof orm.stateSelector}`);\n }\n\n return Object(reselect__WEBPACK_IMPORTED_MODULE_0__[\"createSelectorCreator\"])(_memoize__WEBPACK_IMPORTED_MODULE_2__[\"memoize\"], undefined, orm)([orm.stateSelector, ...inputFuncs], resultArg);\n }\n\n if (resultArg instanceof _ORM__WEBPACK_IMPORTED_MODULE_3__[\"ORM\"]) {\n throw new Error(\"ORM instances cannot be the result function of selectors. You can access your models in the last function that you pass to `createSelector()`.\");\n }\n\n if (inputFuncs.length) {\n console.warn(\"Your input selectors will be ignored: the passed result function does not require any input.\");\n }\n\n return toSelector(resultArg);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9yZWR1eC5qcz8wYjAwIl0sIm5hbWVzIjpbImRlZmF1bHRVcGRhdGVyIiwic2Vzc2lvbiIsImFjdGlvbiIsInNlc3Npb25Cb3VuZE1vZGVscyIsImZvckVhY2giLCJtb2RlbENsYXNzIiwicmVkdWNlciIsImNyZWF0ZVJlZ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tLnN0YXRlU2VsZWN0b3J9YFxuICAgICAgICAgICAgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBjcmVhdGVTZWxlY3RvckNyZWF0b3IoXG4gICAgICAgICAgICBtZW1vaXplLFxuICAgICAgICAgICAgdW5kZWZpbmVkLFxuICAgICAgICAgICAgb3JtXG4gICAgICAgICkoW29ybS5zdGF0ZVNlbGVjdG9yLCAuLi5pbnB1dEZ1bmNzXSwgcmVzdWx0QXJnKTtcbiAgICB9XG5cbiAgICBpZiAocmVzdWx0QXJnIGluc3RhbmNlb2YgT1JNKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgIFwiT1JNIGluc3RhbmNlcyBjYW5ub3QgYmUgdGhlIHJlc3VsdCBmdW5jdGlvbiBvZiBzZWxlY3RvcnMuIFlvdSBjYW4gYWNjZXNzIHlvdXIgbW9kZWxzIGluIHRoZSBsYXN0IGZ1bmN0aW9uIHRoYXQgeW91IHBhc3MgdG8gYGNyZWF0ZVNlbGVjdG9yKClgLlwiXG4gICAgICAgICk7XG4gICAgfVxuICAgIGlmIChpbnB1dEZ1bmNzLmxlbmd0aCkge1xuICAgICAgICBjb25zb2xlLndhcm4oXG4gICAgICAgICAgICBcIllvdXIgaW5wdXQgc2VsZWN0b3JzIHdpbGwgYmUgaWdub3JlZDogdGhlIHBhc3NlZCByZXN1bHQgZnVuY3Rpb24gZG9lcyBub3QgcmVxdWlyZSBhbnkgaW5wdXQuXCJcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdG9TZWxlY3RvcihyZXN1bHRBcmcpO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/redux.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defaultUpdater\", function() { return defaultUpdater; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createReducer\", function() { return createReducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createSelector\", function() { return createSelector; });\n/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! reselect */ \"./node_modules/reselect/lib/index.js\");\n/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(reselect__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var re_reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! re-reselect */ \"./node_modules/re-reselect/dist/index.js\");\n/* harmony import */ var re_reselect__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(re_reselect__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./memoize */ \"./src/memoize.js\");\n/* harmony import */ var _ORM__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ORM */ \"./src/ORM.js\");\n/* harmony import */ var _selectors_SelectorSpec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selectors/SelectorSpec */ \"./src/selectors/SelectorSpec.js\");\n/* harmony import */ var _selectors_MapSelectorSpec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selectors/MapSelectorSpec */ \"./src/selectors/MapSelectorSpec.js\");\n\n\n\n\n\n\n/**\n * @module redux\n * @desc Provides functions for integration with Redux.\n */\n\n/**\n * Calls all models' reducers if they exist.\n *\n * @return {undefined}\n * @global\n */\n\nfunction defaultUpdater(session, action) {\n session.sessionBoundModels.forEach(modelClass => {\n if (typeof modelClass.reducer === \"function\") {\n // This calls this.applyUpdate to update this.state\n modelClass.reducer(action, modelClass, session);\n }\n });\n}\n/**\n * Call the returned function to pass actions to Redux-ORM.\n *\n * @global\n *\n * @param {ORM} orm - the ORM instance.\n * @param {Function} [updater] - the function updating the ORM state based on the given action.\n * @return {Function} reducer that will update the ORM state.\n */\n\nfunction createReducer(orm, updater = defaultUpdater) {\n return (state, action) => {\n const session = orm.session(state || orm.getEmptyState());\n updater(session, action);\n return session.state;\n };\n}\n/**\n * @private\n * @param {SelectorSpec} spec\n */\n\nfunction createSelectorFromSpec(spec) {\n if (spec instanceof _selectors_MapSelectorSpec__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n const parentSelector = createSelectorFromSpec(spec.parent);\n return spec.createResultFunc(parentSelector);\n }\n\n return re_reselect__WEBPACK_IMPORTED_MODULE_1___default()(spec.dependencies, spec.resultFunc)({\n keySelector: spec.keySelector,\n cacheObject: new re_reselect__WEBPACK_IMPORTED_MODULE_1__[\"FlatMapCache\"](),\n selectorCreator: createSelector // eslint-disable-line no-use-before-define\n\n });\n}\n/**\n * Tries to find ORM instance using the argument.\n * @private\n * @param {*} arg\n */\n\n\nfunction toORM(arg) {\n /* eslint-disable no-underscore-dangle */\n if (arg instanceof _ORM__WEBPACK_IMPORTED_MODULE_3__[\"ORM\"]) {\n return arg;\n }\n\n if (arg instanceof _selectors_SelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n return arg._orm;\n }\n\n return false;\n}\n\nconst selectorCache = new Map();\nconst SELECTOR_KEY = Symbol.for(\"REDUX_ORM_SELECTOR\");\n/**\n * @private\n * @param {function|ORM|SelectorSpec} arg\n */\n\nfunction toSelector(arg) {\n if (typeof arg === \"function\") {\n return arg;\n }\n\n if (arg instanceof _ORM__WEBPACK_IMPORTED_MODULE_3__[\"ORM\"]) {\n return arg.stateSelector;\n }\n\n if (arg instanceof _selectors_MapSelectorSpec__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n // the argument to map() needs to be callable\n arg.selector = toSelector(arg.selector);\n }\n\n if (arg instanceof _selectors_SelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n const {\n orm,\n cachePath\n } = arg;\n let level; // the selector cache for the spec's ORM\n\n if (!selectorCache.has(orm)) {\n selectorCache.set(orm, new Map());\n }\n\n const ormSelectors = selectorCache.get(orm);\n /**\n * Drill down into selector map by cachePath.\n *\n * The selector itself is stored under a special SELECTOR_KEY\n * so that we can store selectors below it as well.\n */\n\n level = ormSelectors;\n\n for (let i = 0; i < cachePath.length; ++i) {\n const storageKey = cachePath[i];\n\n if (!level.has(storageKey)) {\n level.set(storageKey, new Map());\n }\n\n level = level.get(storageKey);\n }\n\n if (level && level.has(SELECTOR_KEY)) {\n // Cache hit: the selector has been created before\n return level.get(SELECTOR_KEY);\n } // Cache miss: the selector needs to be created\n\n\n const selector = createSelectorFromSpec(arg); // Save the selector at the cachePath position\n\n level.set(SELECTOR_KEY, selector);\n return selector;\n }\n\n throw new Error(`Failed to interpret selector argument: ${JSON.stringify(arg)} of type ${typeof arg}`);\n}\n/**\n * Returns a memoized selector based on passed arguments.\n * This is similar to `reselect`'s `createSelector`,\n * except you can also pass a single function to be memoized.\n *\n * If you pass multiple functions, the format will be the\n * same as in `reselect`. The last argument is the selector\n * function and the previous are input selectors.\n *\n * When you use this method to create a selector, the returned selector\n * expects the whole `redux-orm` state branch as input. In the selector\n * function that you pass as the last argument, any of the arguments\n * you pass first will be considered selectors and mapped\n * to their outputs, like in `reselect`.\n *\n * Here are some example selectors:\n *\n * ```javascript\n * // orm is an instance of ORM\n * // reduxState is the state of a Redux store\n * const books = createSelector(orm.Book);\n * books(reduxState) // array of book refs\n *\n * const bookAuthors = createSelector(orm.Book.authors);\n * bookAuthors(reduxState) // two-dimensional array of author refs for each book\n * ```\n * Selectors can easily be applied to related models:\n * ```javascript\n * const bookAuthorNames = createSelector(\n * orm.Book.authors.map(orm.Author.name),\n * );\n * bookAuthorNames(reduxState, 8) // names of all authors of book with ID 8\n * bookAuthorNames(reduxState, [8, 9]) // 2D array of names of all authors of books with IDs 8 and 9\n * ```\n * Also note that `orm.Author.name` did not need to be wrapped in another `createSelector` call,\n * although that would be possible.\n *\n * For more complex calculations you can access\n * entire session objects by passing an ORM instance.\n * ```javascript\n * const freshBananasCost = createSelector(\n * orm,\n * session => {\n * const banana = session.Product.get({\n * name: \"Banana\",\n * });\n * // amount of fresh bananas in shopping cart\n * const amount = session.ShoppingCart.filter({\n * product_id: banana.id,\n * is_fresh: true,\n * }).count();\n * return `USD ${amount * banana.price}`;\n * }\n * );\n * ```\n *\n * redux-orm uses a special memoization function to avoid recomputations.\n *\n * Everytime a selector runs, this function records which instances\n * of your `Model`s were accessed.
\n * On subsequent runs, the selector first checks if the previously\n * accessed instances or `args` have changed in any way:\n *
    \n *
  • If yes, the selector calls the function you passed to it.
  • \n *
  • If not, it just returns the previous result\n * (unless you call it for the first time).
  • \n *
\n *\n * This way you can use pure rendering in your React components\n * for performance gains.\n *\n * @global\n *\n * @param {...Function} args - zero or more input selectors\n * and the selector function.\n * @return {Function} memoized selector\n */\n\n\nfunction createSelector(...args) {\n if (!args.length) {\n throw new Error(\"Cannot create a selector without arguments.\");\n }\n\n const resultArg = args.pop();\n const dependencies = Array.isArray(args[0]) ? args[0] : args;\n const orm = dependencies.map(toORM).find(Boolean);\n const inputFuncs = dependencies.map(toSelector);\n\n if (typeof resultArg === \"function\") {\n if (!orm) {\n throw new Error(\"Failed to resolve the current ORM database state. Please pass an ORM instance or an ORM selector as an argument to `createSelector()`.\");\n } else if (!orm.stateSelector) {\n throw new Error(\"Failed to resolve the current ORM database state. Please pass an object to the ORM constructor that specifies a `stateSelector` function.\");\n } else if (typeof orm.stateSelector !== \"function\") {\n throw new Error(`Failed to resolve the current ORM database state. Please pass a function when specifying the ORM's \\`stateSelector\\`. Received: ${JSON.stringify(orm.stateSelector)} of type ${typeof orm.stateSelector}`);\n }\n\n return Object(reselect__WEBPACK_IMPORTED_MODULE_0__[\"createSelectorCreator\"])(_memoize__WEBPACK_IMPORTED_MODULE_2__[\"memoize\"], undefined, orm)([orm.stateSelector, ...inputFuncs], resultArg);\n }\n\n if (resultArg instanceof _ORM__WEBPACK_IMPORTED_MODULE_3__[\"ORM\"]) {\n throw new Error(\"ORM instances cannot be the result function of selectors. You can access your models in the last function that you pass to `createSelector()`.\");\n }\n\n if (inputFuncs.length) {\n console.warn(\"Your input selectors will be ignored: the passed result function does not require any input.\");\n }\n\n return toSelector(resultArg);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9yZWR1eC5qcz8wYjAwIl0sIm5hbWVzIjpbImRlZmF1bHRVcGRhdGVyIiwic2Vzc2lvbiIsImFjdGlvbiIsInNlc3Npb25Cb3VuZE1vZGVscyIsImZvckVhY2giLCJtb2RlbENsYXNzIiwicmVkdWNlciIsImNyZWF0ZVJlZHVjZXIiLCJvcm0iLCJ1cGRhdGVyIiwic3RhdGUiLCJnZXRFbXB0eVN0YXRlIiwiY3JlYXRlU2VsZWN0b3JGcm9tU3BlYyIsInNwZWMiLCJNYXBTZWxlY3RvclNwZWMiLCJwYXJlbnRTZWxlY3RvciIsInBhcmVudCIsImNyZWF0ZVJlc3VsdEZ1bmMiLCJjcmVhdGVDYWNoZWRTZWxlY3RvciIsImRlcGVuZGVuY2llcyIsInJlc3VsdEZ1bmMiLCJrZXlTZWxlY3RvciIsImNhY2hlT2JqZWN0IiwiRmxhdE1hcENhY2hlIiwic2VsZWN0b3JDcmVhdG9yIiwiY3JlYXRlU2VsZWN0b3IiLCJ0b09STSIsImFyZyIsIk9STSIsIlNlbGVjdG9yU3BlYyIsIl9vcm0iLCJzZWxlY3RvckNhY2hlIiwiTWFwIiwiU0VMRUNUT1JfS0VZIiwiU3ltYm9sIiwiZm9yIiwidG9TZWxlY3RvciIsInN0YXRlU2VsZWN0b3IiLCJzZWxlY3RvciIsImNhY2hlUGF0aCIsImxldmVsIiwiaGFzIiwic2V0Iiwib3JtU2VsZWN0b3JzIiwiZ2V0IiwiaSIsImxlbmd0aCIsInN0b3JhZ2VLZXkiLCJFcnJvciIsIkpTT04iLCJzdHJpbmdpZnkiLCJ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4gY3JlYXRlU2VsZWN0b3JDcmVhdG9yKFxuICAgICAgICAgICAgbWVtb2l6ZSxcbiAgICAgICAgICAgIHVuZGVmaW5lZCxcbiAgICAgICAgICAgIG9ybVxuICAgICAgICApKFtvcm0uc3RhdGVTZWxlY3RvciwgLi4uaW5wdXRGdW5jc10sIHJlc3VsdEFyZyk7XG4gICAgfVxuXG4gICAgaWYgKHJlc3VsdEFyZyBpbnN0YW5jZW9mIE9STSkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgICBcIk9STSBpbnN0YW5jZXMgY2Fubm90IGJlIHRoZSByZXN1bHQgZnVuY3Rpb24gb2Ygc2VsZWN0b3JzLiBZb3UgY2FuIGFjY2VzcyB5b3VyIG1vZGVscyBpbiB0aGUgbGFzdCBmdW5jdGlvbiB0aGF0IHlvdSBwYXNzIHRvIGBjcmVhdGVTZWxlY3RvcigpYC5cIlxuICAgICAgICApO1xuICAgIH1cbiAgICBpZiAoaW5wdXRGdW5jcy5sZW5ndGgpIHtcbiAgICAgICAgY29uc29sZS53YXJuKFxuICAgICAgICAgICAgXCJZb3VyIGlucHV0IHNlbGVjdG9ycyB3aWxsIGJlIGlnbm9yZWQ6IHRoZSBwYXNzZWQgcmVzdWx0IGZ1bmN0aW9uIGRvZXMgbm90IHJlcXVpcmUgYW55IGlucHV0LlwiXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRvU2VsZWN0b3IocmVzdWx0QXJnKTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/redux.js\n"); + + /***/ }), + +@@ -4702,7 +4724,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return FieldSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _MapSelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MapSelectorSpec */ \"./src/selectors/MapSelectorSpec.js\");\n/* harmony import */ var _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ModelSelectorSpec */ \"./src/selectors/ModelSelectorSpec.js\");\n/* harmony import */ var _ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModelBasedSelectorSpec */ \"./src/selectors/ModelBasedSelectorSpec.js\");\n/* harmony import */ var _idArgSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./idArgSelector */ \"./src/selectors/idArgSelector.js\");\n/* harmony import */ var _QuerySet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../QuerySet */ \"./src/QuerySet.js\");\n/* harmony import */ var _Model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Model */ \"./src/Model.js\");\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n\n\n\n\n\n\n\n\n\n\n\nlet FieldSelectorSpec = /*#__PURE__*/function (_ModelBasedSelectorSp) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(FieldSelectorSpec, _ModelBasedSelectorSp);\n\n function FieldSelectorSpec({\n field,\n fieldModel,\n accessorName,\n isVirtual,\n ...other\n }) {\n var _this;\n\n _this = _ModelBasedSelectorSp.call(this, other) || this;\n _this._field = field;\n _this._fieldModel = fieldModel;\n _this._accessorName = accessorName;\n _this._isVirtual = isVirtual;\n return _this;\n }\n\n var _proto = FieldSelectorSpec.prototype;\n\n _proto.valueForInstance = function valueForInstance(instance, session) {\n if (!instance) {\n return null;\n }\n\n let value;\n\n if (this._parent instanceof _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n /* orm.Model.field */\n value = instance[this._accessorName];\n } else {\n /* orm.Model.field1.field2..fieldN.field */\n const {\n [this._parent.toModelName]: ParentToModel\n } = session;\n\n const parentRef = this._parent.valueForInstance(instance, session);\n\n const parentInstance = parentRef ? new ParentToModel(parentRef) : null;\n value = parentInstance ? parentInstance[this._accessorName] : null;\n }\n\n if (value instanceof _Model__WEBPACK_IMPORTED_MODULE_7__[\"default\"]) {\n return value.ref;\n }\n\n if (value instanceof _QuerySet__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n return value.toRefArray();\n }\n\n return value;\n };\n\n _proto.map = function map(selector) {\n if (selector instanceof _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n if (this.toModelName === selector.model.modelName) {\n throw new Error(`Cannot select models in a \\`map()\\` call. If you just want the \\`${this._accessorName}\\` as a ref array then you can simply drop the \\`map()\\`. Otherwise make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`);\n } else {\n throw new Error(`Cannot select \\`${selector.model.modelName}\\` models in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`);\n }\n } else if (selector instanceof FieldSelectorSpec || selector instanceof _MapSelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n if (this.toModelName !== selector.model.modelName) {\n throw new Error(`Cannot select fields of the \\`${selector.model.modelName}\\` model in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`);\n }\n } else if (!selector || typeof selector !== \"function\" || !selector.recomputations) {\n throw new Error(`\\`map()\\` requires a selector as an input. Received: ${JSON.stringify(selector)} of type ${typeof selector}`);\n }\n\n if (!(this._field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_8__[\"default\"]) && !(this._field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_9__[\"default\"])) {\n throw new Error(\"Cannot map selectors for non-collection fields\");\n }\n\n return new _MapSelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n parent: this,\n model: this._model,\n orm: this._orm,\n field: this._field,\n selector\n });\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(FieldSelectorSpec, [{\n key: \"key\",\n get: function () {\n return this._accessorName;\n }\n }, {\n key: \"dependencies\",\n get: function () {\n return [this._orm, _idArgSelector__WEBPACK_IMPORTED_MODULE_5__[\"default\"]];\n }\n }, {\n key: \"toModelName\",\n get: function () {\n return this._field.toModelName === \"this\" ? this._fieldModel.modelName : this._field.toModelName;\n }\n }, {\n key: \"toModel\",\n get: function () {\n const db = this._orm.getDatabase();\n\n return db.describe(this.toModelName);\n }\n }]);\n\n return FieldSelectorSpec;\n}(_ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY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gdmFsdWVGb3JJbnN0YW5jZShpbnN0YW5jZSwgc2Vzc2lvbikge1xuICAgICAgICBpZiAoIWluc3RhbmNlKSB7XG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfVxuICAgICAgICBsZXQgdmFsdWU7XG4gICAgICAgIGlmICh0aGlzLl9wYXJlbnQgaW5zdGFuY2VvZiBNb2RlbFNlbGVjdG9yU3BlYykge1xuICAgICAgICAgICAgLyogb3JtLk1vZGVsLmZpZWxkICovXG4gICAgICAgICAgICB2YWx1ZSA9IGluc3RhbmNlW3RoaXMuX2FjY2Vzc29yTmFtZV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAvKiBvcm0uTW9kZWwuZmllbGQxLmZpZWxkMi4uZmllbGROLmZpZWxkICovXG4gICAgICAgICAgICBjb25zdCB7IFt0aGlzLl9wYXJlbnQudG9Nb2RlbE5hbWVdOiBQYXJlbnRUb01vZGVsIH0gPSBzZXNzaW9uO1xuICAgICAgICAgICAgY29uc3QgcGFyZW50UmVmID0gdGhpcy5fcGFyZW50LnZhbHVlRm9ySW5zdGFuY2UoaW5zdGFuY2UsIHNlc3Npb24pO1xuICAgICAgICAgICAgY29uc3QgcGFyZW50SW5zdGFuY2UgPSBwYXJlbnRSZWZcbiAgICAgICAgICAgICAgICA/IG5ldyBQYXJlbnRUb01vZGVsKHBhcmVudFJlZilcbiAgICAgICAgICAgICAgICA6IG51bGw7XG4gICAgICAgICAgICB2YWx1ZSA9IHBhcmVudEluc3RhbmNlID8gcGFyZW50SW5zdGFuY2VbdGhpcy5fYWNjZXNzb3JOYW1lXSA6IG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHZhbHVlIGluc3RhbmNlb2YgTW9kZWwpIHtcbiAgICAgICAgICAgIHJldHVybiB2YWx1ZS5yZWY7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHZhbHVlIGluc3RhbmNlb2YgUXVlcnlTZXQpIHtcbiAgICAgICAgICAgIHJ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ICAgICAgICAgICAgICAgICBzZWxlY3RvclxuICAgICAgICAgICAgICAgICl9IG9mIHR5cGUgJHt0eXBlb2Ygc2VsZWN0b3J9YFxuICAgICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoXG4gICAgICAgICAgICAhKHRoaXMuX2ZpZWxkIGluc3RhbmNlb2YgRm9yZWlnbktleSkgJiZcbiAgICAgICAgICAgICEodGhpcy5fZmllbGQgaW5zdGFuY2VvZiBNYW55VG9NYW55KVxuICAgICAgICApIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIkNhbm5vdCBtYXAgc2VsZWN0b3JzIGZvciBub24tY29sbGVjdGlvbiBmaWVsZHNcIik7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG5ldyBNYXBTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgcGFyZW50OiB0aGlzLFxuICAgICAgICAgICAgbW9kZWw6IHRoaXMuX21vZGVsLFxuICAgICAgICAgICAgb3JtOiB0aGlzLl9vcm0sXG4gICAgICAgICAgICBmaWVsZDogdGhpcy5fZmllbGQsXG4gICAgICAgICAgICBzZWxlY3RvcixcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgZ2V0IHRvTW9kZWxOYW1lKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fZmllbGQudG9Nb2RlbE5hbWUgPT09IFwidGhpc1wiXG4gICAgICAgICAgICA/IHRoaXMuX2ZpZWxkTW9kZWwubW9kZWxOYW1lXG4gICAgICAgICAgICA6IHRoaXMuX2ZpZWxkLnRvTW9kZWxOYW1lO1xuICAgIH1cblxuICAgIGdldCB0b01vZGVsKCkge1xuICAgICAgICBjb25zdCBkYiA9IHRoaXMuX29ybS5nZXREYXRhYmFzZSgpO1xuICAgICAgICByZXR1cm4gZGIuZGVzY3JpYmUodGhpcy50b01vZGVsTmFtZSk7XG4gICAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/selectors/FieldSelectorSpec.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return FieldSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _MapSelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MapSelectorSpec */ \"./src/selectors/MapSelectorSpec.js\");\n/* harmony import */ var _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ModelSelectorSpec */ \"./src/selectors/ModelSelectorSpec.js\");\n/* harmony import */ var _ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModelBasedSelectorSpec */ \"./src/selectors/ModelBasedSelectorSpec.js\");\n/* harmony import */ var _idArgSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./idArgSelector */ \"./src/selectors/idArgSelector.js\");\n/* harmony import */ var _QuerySet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../QuerySet */ \"./src/QuerySet.js\");\n/* harmony import */ var _Model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Model */ \"./src/Model.js\");\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n\n\n\n\n\n\n\n\n\n\n\nlet FieldSelectorSpec = /*#__PURE__*/function (_ModelBasedSelectorSp) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(FieldSelectorSpec, _ModelBasedSelectorSp);\n\n function FieldSelectorSpec({\n field,\n fieldModel,\n accessorName,\n isVirtual,\n ...other\n }) {\n var _this;\n\n _this = _ModelBasedSelectorSp.call(this, other) || this;\n _this._field = field;\n _this._fieldModel = fieldModel;\n _this._accessorName = accessorName;\n _this._isVirtual = isVirtual;\n return _this;\n }\n\n var _proto = FieldSelectorSpec.prototype;\n\n _proto.valueForInstance = function valueForInstance(instance, session) {\n if (!instance) {\n return null;\n }\n\n let value;\n\n if (this._parent instanceof _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n /* orm.Model.field */\n value = instance[this._accessorName];\n } else {\n /* orm.Model.field1.field2..fieldN.field */\n const {\n [this._parent.toModelName]: ParentToModel\n } = session;\n\n const parentRef = this._parent.valueForInstance(instance, session);\n\n const parentInstance = parentRef ? new ParentToModel(parentRef) : null;\n value = parentInstance ? parentInstance[this._accessorName] : null;\n }\n\n if (value instanceof _Model__WEBPACK_IMPORTED_MODULE_7__[\"default\"]) {\n return value.ref;\n }\n\n if (value instanceof _QuerySet__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n return value.toRefArray();\n }\n\n return value;\n };\n\n _proto.map = function map(selector) {\n if (selector instanceof _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n if (this.toModelName === selector.model.modelName) {\n throw new Error(`Cannot select models in a \\`map()\\` call. If you just want the \\`${this._accessorName}\\` as a ref array then you can simply drop the \\`map()\\`. Otherwise make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`);\n } else {\n throw new Error(`Cannot select \\`${selector.model.modelName}\\` models in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`);\n }\n } else if (selector instanceof FieldSelectorSpec || selector instanceof _MapSelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n if (this.toModelName !== selector.model.modelName) {\n throw new Error(`Cannot select fields of the \\`${selector.model.modelName}\\` model in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`);\n }\n } else if (!selector || typeof selector !== \"function\" || !selector.recomputations) {\n throw new Error(`\\`map()\\` requires a selector as an input. Received: ${JSON.stringify(selector)} of type ${typeof selector}`);\n }\n\n if (!(this._field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_8__[\"default\"]) && !(this._field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_9__[\"default\"])) {\n throw new Error(\"Cannot map selectors for non-collection fields\");\n }\n\n return new _MapSelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n parent: this,\n model: this._model,\n orm: this._orm,\n field: this._field,\n selector\n });\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(FieldSelectorSpec, [{\n key: \"key\",\n get: function () {\n return this._accessorName;\n }\n }, {\n key: \"dependencies\",\n get: function () {\n return [this._orm, _idArgSelector__WEBPACK_IMPORTED_MODULE_5__[\"default\"]];\n }\n }, {\n key: \"toModelName\",\n get: function () {\n return this._field.toModelName === \"this\" ? this._fieldModel.modelName : this._field.toModelName;\n }\n }, {\n key: \"toModel\",\n get: function () {\n const db = this._orm.getDatabase();\n\n return db.describe(this.toModelName);\n }\n }]);\n\n return FieldSelectorSpec;\n}(_ModelBasedSelectorSp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b3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgICAgIGBcXGBtYXAoKVxcYCByZXF1aXJlcyBhIHNlbGVjdG9yIGFzIGFuIGlucHV0LiBSZWNlaXZlZDogJHtKU09OLnN0cmluZ2lmeShcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0b3JcbiAgICAgICAgICAgICAgICApfSBvZiB0eXBlICR7dHlwZW9mIHNlbGVjdG9yfWBcbiAgICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKFxuICAgICAgICAgICAgISh0aGlzLl9maWVsZCBpbnN0YW5jZW9mIEZvcmVpZ25LZXkpICYmXG4gICAgICAgICAgICAhKHRoaXMuX2ZpZWxkIGluc3RhbmNlb2YgTWFueVRvTWFueSlcbiAgICAgICAgKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJDYW5ub3QgbWFwIHNlbGVjdG9ycyBmb3Igbm9uLWNvbGxlY3Rpb24gZmllbGRzXCIpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBuZXcgTWFwU2VsZWN0b3JTcGVjKHtcbiAgICAgICAgICAgIHBhcmVudDogdGhpcyxcbiAgICAgICAgICAgIG1vZGVsOiB0aGlzLl9tb2RlbCxcbiAgICAgICAgICAgIG9ybTogdGhpcy5fb3JtLFxuICAgICAgICAgICAgZmllbGQ6IHRoaXMuX2ZpZWxkLFxuICAgICAgICAgICAgc2VsZWN0b3IsXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGdldCB0b01vZGVsTmFtZSgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2ZpZWxkLnRvTW9kZWxOYW1lID09PSBcInRoaXNcIlxuICAgICAgICAgICAgPyB0aGlzLl9maWVsZE1vZGVsLm1vZGVsTmFtZVxuICAgICAgICAgICAgOiB0aGlzLl9maWVsZC50b01vZGVsTmFtZTtcbiAgICB9XG5cbiAgICBnZXQgdG9Nb2RlbCgpIHtcbiAgICAgICAgY29uc3QgZGIgPSB0aGlzLl9vcm0uZ2V0RGF0YWJhc2UoKTtcbiAgICAgICAgcmV0dXJuIGRiLmRlc2NyaWJlKHRoaXMudG9Nb2RlbE5hbWUpO1xuICAgIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/selectors/FieldSelectorSpec.js\n"); + + /***/ }), + +@@ -4714,7 +4736,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MapSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ModelBasedSelectorSpec */ \"./src/selectors/ModelBasedSelectorSpec.js\");\n/* harmony import */ var _idArgSelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./idArgSelector */ \"./src/selectors/idArgSelector.js\");\n\n\n\n\n\nlet MapSelectorSpec = /*#__PURE__*/function (_ModelBasedSelectorSp) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(MapSelectorSpec, _ModelBasedSelectorSp);\n\n function MapSelectorSpec({\n field,\n selector,\n ...other\n }) {\n var _this;\n\n _this = _ModelBasedSelectorSp.call(this, other) || this;\n _this._field = field;\n _this._selector = selector;\n return _this;\n }\n\n var _proto = MapSelectorSpec.prototype;\n\n _proto.createResultFunc = function createResultFunc(parentSelector) {\n const {\n idAttribute\n } = this._parent.toModel;\n return (state, ...other) => {\n /**\n * The parent selector should return a ref array\n * in case of a single ID being passed.\n * Otherwise it should return an array of ref arrays.\n */\n const parentResult = parentSelector(state, ...other);\n const idArg = Object(_idArgSelector__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state, ...other);\n\n const single = refArray => {\n if (refArray === null) {\n // an intermediate field could not be resolved\n return null;\n }\n\n return refArray.map(ref => this._selector(state, ref[idAttribute]));\n };\n\n if (typeof idArg === \"undefined\" || Array.isArray(idArg)) {\n return parentResult.map(single);\n }\n\n return single(parentResult);\n };\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(MapSelectorSpec, [{\n key: \"selector\",\n get: function () {\n return this._selector;\n },\n set: function (selector) {\n this._selector = selector;\n }\n }, {\n key: \"key\",\n get: function () {\n return this._selector;\n }\n }]);\n\n return MapSelectorSpec;\n}(_ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvTWFwU2VsZWN0b3JTcGVjLmpzP2E4MDUiXSwibmFtZXMiOlsiTWFwU2VsZWN0b3JTcGVjIiwiZmllbGQiLCJzZWxlY3RvciIsIm90aGVyIiwiX2ZpZWxkIiwiX3NlbGVjdG9yIiwiY3JlYXRlUmVzdWx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XG4gICAgY3JlYXRlUmVzdWx0RnVuYyhwYXJlbnRTZWxlY3Rvcikge1xuICAgICAgICBjb25zdCB7IGlkQXR0cmlidXRlIH0gPSB0aGlzLl9wYXJlbnQudG9Nb2RlbDtcbiAgICAgICAgcmV0dXJuIChzdGF0ZSwgLi4ub3RoZXIpID0+IHtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogVGhlIHBhcmVudCBzZWxlY3RvciBzaG91bGQgcmV0dXJuIGEgcmVmIGFycmF5XG4gICAgICAgICAgICAgKiBpbiBjYXNlIG9mIGEgc2luZ2xlIElEIGJlaW5nIHBhc3NlZC5cbiAgICAgICAgICAgICAqIE90aGVyd2lzZSBpdCBzaG91bGQgcmV0dXJuIGFuIGFycmF5IG9mIHJlZiBhcnJheXMuXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIGNvbnN0IHBhcmVudFJlc3VsdCA9IHBhcmVudFNlbGVjdG9yKHN0YXRlLCAuLi5vdGhlcik7XG4gICAgICAgICAgICBjb25zdCBpZEFyZyA9IGlkQXJnU2VsZWN0b3Ioc3RhdGUsIC4uLm90aGVyKTtcbiAgICAgICAgICAgIGNvbnN0IHNpbmdsZSA9IHJlZkFycmF5ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAocmVmQXJyYXkgPT09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gYW4gaW50ZXJtZWRpYXRlIGZpZWxkIGNvdWxkIG5vdCBiZSByZXNvbHZlZFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlZkFycmF5Lm1hcChyZWYgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0b3Ioc3RhdGUsIHJlZltpZEF0dHJpYnV0ZV0pXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBpZiAodHlwZW9mIGlkQXJnID09PSBcInVuZGVmaW5lZFwiIHx8IEFycmF5LmlzQXJyYXkoaWRBcmcpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHBhcmVudFJlc3VsdC5tYXAoc2luZ2xlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBzaW5nbGUocGFyZW50UmVzdWx0KTtcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBnZXQgc2VsZWN0b3IoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9zZWxlY3RvcjtcbiAgICB9XG5cbiAgICBzZXQgc2VsZWN0b3Ioc2VsZWN0b3IpIHtcbiAgICAgICAgdGhpcy5fc2VsZWN0b3IgPSBzZWxlY3RvcjtcbiAgICB9XG5cbiAgICBnZXQga2V5KCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fc2VsZWN0b3I7XG4gICAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/selectors/MapSelectorSpec.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MapSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ModelBasedSelectorSpec */ \"./src/selectors/ModelBasedSelectorSpec.js\");\n/* harmony import */ var _idArgSelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./idArgSelector */ \"./src/selectors/idArgSelector.js\");\n\n\n\n\n\nlet MapSelectorSpec = /*#__PURE__*/function (_ModelBasedSelectorSp) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(MapSelectorSpec, _ModelBasedSelectorSp);\n\n function MapSelectorSpec({\n field,\n selector,\n ...other\n }) {\n var _this;\n\n _this = _ModelBasedSelectorSp.call(this, other) || this;\n _this._field = field;\n _this._selector = selector;\n return _this;\n }\n\n var _proto = MapSelectorSpec.prototype;\n\n _proto.createResultFunc = function createResultFunc(parentSelector) {\n const {\n idAttribute\n } = this._parent.toModel;\n return (state, ...other) => {\n /**\n * The parent selector should return a ref array\n * in case of a single ID being passed.\n * Otherwise it should return an array of ref arrays.\n */\n const parentResult = parentSelector(state, ...other);\n const idArg = Object(_idArgSelector__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state, ...other);\n\n const single = refArray => {\n if (refArray === null) {\n // an intermediate field could not be resolved\n return null;\n }\n\n return refArray.map(ref => this._selector(state, ref[idAttribute]));\n };\n\n if (typeof idArg === \"undefined\" || Array.isArray(idArg)) {\n return parentResult.map(single);\n }\n\n return single(parentResult);\n };\n };\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(MapSelectorSpec, [{\n key: \"selector\",\n get: function () {\n return this._selector;\n },\n set: function (selector) {\n this._selector = selector;\n }\n }, {\n key: \"key\",\n get: function () {\n return this._selector;\n }\n }]);\n\n return MapSelectorSpec;\n}(_ModelBasedSelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMapp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aWVsZCBjb3VsZCBub3QgYmUgcmVzb2x2ZWRcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiByZWZBcnJheS5tYXAoKHJlZikgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2VsZWN0b3Ioc3RhdGUsIHJlZltpZEF0dHJpYnV0ZV0pXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBpZiAodHlwZW9mIGlkQXJnID09PSBcInVuZGVmaW5lZFwiIHx8IEFycmF5LmlzQXJyYXkoaWRBcmcpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHBhcmVudFJlc3VsdC5tYXAoc2luZ2xlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBzaW5nbGUocGFyZW50UmVzdWx0KTtcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBnZXQgc2VsZWN0b3IoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9zZWxlY3RvcjtcbiAgICB9XG5cbiAgICBzZXQgc2VsZWN0b3Ioc2VsZWN0b3IpIHtcbiAgICAgICAgdGhpcy5fc2VsZWN0b3IgPSBzZWxlY3RvcjtcbiAgICB9XG5cbiAgICBnZXQga2V5KCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fc2VsZWN0b3I7XG4gICAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/selectors/MapSelectorSpec.js\n"); + + /***/ }), + +@@ -4726,7 +4748,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ModelBasedSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _SelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectorSpec */ \"./src/selectors/SelectorSpec.js\");\n\n\n\n\nlet ModelBasedSelectorSpec = /*#__PURE__*/function (_SelectorSpec) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ModelBasedSelectorSpec, _SelectorSpec);\n\n function ModelBasedSelectorSpec({\n model,\n ...other\n }) {\n var _this;\n\n _this = _SelectorSpec.call(this, other) || this;\n _this._model = model;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ModelBasedSelectorSpec, [{\n key: \"resultFunc\",\n get: function () {\n return (session, idArg, ...other) => {\n const {\n [this._model.modelName]: ModelClass\n } = session;\n\n if (typeof idArg === \"undefined\") {\n return ModelClass.all().toModelArray().map(instance => this.valueForInstance(instance, session, ...other));\n }\n\n if (Array.isArray(idArg)) {\n return idArg.map(id => this.valueForInstance(ModelClass.withId(id), session, ...other));\n }\n\n return this.valueForInstance(ModelClass.withId(idArg), session, ...other);\n };\n }\n }, {\n key: \"model\",\n get: function () {\n return this._model;\n }\n }]);\n\n return ModelBasedSelectorSpec;\n}(_SelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvTW9kZWxCYXNlZFNlbGVjdG9yU3BlYy5qcz8wODc2Il0sIm5hbWVzIjpbIk1vZGVsQmFzZWRTZWxlY3RvclNwZWMiLCJtb2RlbCIsIm90aGVyIiwiX21vZGVsIiwic2Vzc2lvbiIsImlkQXJnIiwibW9kZWxOYW1lIiwiTW9kZWxDbGFzcyIsImFsbCIsInRvTW9kZWxBcnJheSIsIm1hcCIsImluc3RhbmNlIiwidmFsdWVGb3JJbnN0YW5jZSIsIkFycmF5IiwiaXNBcnJheSIsImlkIiwid2l0aElkIiwiU2VsZWN0b3JTcGVjIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7SUFFcUJBLHNCOzs7QUFDakIsa0NBQVk7QUFBRUMsU0FBRjtBQUFTLE9BQUdDO0FBQVosR0FBWixFQUFpQztBQUFBOztBQUM3QixxQ0FBTUEsS0FBTjtBQUNBLFVBQUtDLE1BQUwsR0FBY0YsS0FBZDtBQUY2QjtBQUdoQzs7OztxQkFFZ0I7QUFDYixhQUFPLENBQUNHLE9BQUQsRUFBVUMsS0FBVixFQUFpQixHQUFHSCxLQUFwQixLQUE4QjtBQUNqQyxjQUFNO0FBQUUsV0FBQyxLQUFLQyxNQUFMLENBQVlHLFNBQWIsR0FBeUJDO0FBQTNCLFlBQTBDSCxPQUFoRDs7QUFDQSxZQUFJLE9BQU9DLEtBQVAsS0FBaUIsV0FBckIsRUFBa0M7QUFDOUIsaUJBQU9FLFVBQVUsQ0FBQ0MsR0FBWCxHQUNGQyxZQURFLEdBRUZDLEdBRkUsQ0FFRUMsUUFBUSxJQUNULEtBQUtDLGdCQUFMLENBQ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b2RlbC5tb2RlbE5hbWVdOiBNb2RlbENsYXNzIH0gPSBzZXNzaW9uO1xuICAgICAgICAgICAgaWYgKHR5cGVvZiBpZEFyZyA9PT0gXCJ1bmRlZmluZWRcIikge1xuICAgICAgICAgICAgICAgIHJldHVybiBNb2RlbENsYXNzLmFsbCgpXG4gICAgICAgICAgICAgICAgICAgIC50b01vZGVsQXJyYXkoKVxuICAgICAgICAgICAgICAgICAgICAubWFwKGluc3RhbmNlID0+XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbHVlRm9ySW5zdGFuY2UoaW5zdGFuY2UsIHNlc3Npb24sIC4uLm90aGVyKVxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoaWRBcmcpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGlkQXJnLm1hcChpZCA9PlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbHVlRm9ySW5zdGFuY2UoXG4gICAgICAgICAgICAgICAgICAgICAgICBNb2RlbENsYXNzLndpdGhJZChpZCksXG4gICAgICAgICAgICAgICAgICAgICAgICBzZXNzaW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4ub3RoZXJcbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdGhpcy52YWx1ZUZvckluc3RhbmNlKFxuICAgICAgICAgICAgICAgIE1vZGVsQ2xhc3Mud2l0aElkKGlkQXJnKSxcbiAgICAgICAgICAgICAgICBzZXNzaW9uLFxuICAgICAgICAgICAgICAgIC4uLm90aGVyXG4gICAgICAgICAgICApO1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIGdldCBtb2RlbCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX21vZGVsO1xuICAgIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/selectors/ModelBasedSelectorSpec.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ModelBasedSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _SelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectorSpec */ \"./src/selectors/SelectorSpec.js\");\n\n\n\n\nlet ModelBasedSelectorSpec = /*#__PURE__*/function (_SelectorSpec) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ModelBasedSelectorSpec, _SelectorSpec);\n\n function ModelBasedSelectorSpec({\n model,\n ...other\n }) {\n var _this;\n\n _this = _SelectorSpec.call(this, other) || this;\n _this._model = model;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ModelBasedSelectorSpec, [{\n key: \"resultFunc\",\n get: function () {\n return (session, idArg, ...other) => {\n const {\n [this._model.modelName]: ModelClass\n } = session;\n\n if (typeof idArg === \"undefined\") {\n return ModelClass.all().toModelArray().map(instance => this.valueForInstance(instance, session, ...other));\n }\n\n if (Array.isArray(idArg)) {\n return idArg.map(id => this.valueForInstance(ModelClass.withId(id), session, ...other));\n }\n\n return this.valueForInstance(ModelClass.withId(idArg), session, ...other);\n };\n }\n }, {\n key: \"model\",\n get: function () {\n return this._model;\n }\n }]);\n\n return ModelBasedSelectorSpec;\n}(_SelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvTW9kZWxCYXNlZFNlbGVjdG9yU3BlYy5qcz8wODc2Il0sIm5hbWVzIjpbIk1vZGVsQmFzZWRTZWxlY3RvclNwZWMiLCJtb2RlbCIsIm90aGVyIiwiX21vZGVsIiwic2Vzc2lvbiIsImlkQXJnIiwibW9kZWxOYW1lIiwiTW9kZWxDbGFzcyIsImFsbCIsInRvTW9kZWxBcnJheSIsIm1hcCIsImluc3RhbmNlIiwidmFsdWVGb3JJbnN0YW5jZSIsIkFycmF5IiwiaXNBcnJheSIsImlkIiwid2l0aElkIiwiU2VsZWN0b3JTcGVjIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7SUFFcUJBLHNCOzs7QUFDakIsa0NBQVk7QUFBRUMsU0FBRjtBQUFTLE9BQUdDO0FBQVosR0FBWixFQUFpQztBQUFBOztBQUM3QixxQ0FBTUEsS0FBTjtBQUNBLFVBQUtDLE1BQUwsR0FBY0YsS0FBZDtBQUY2QjtBQUdoQzs7OztTQUVELFlBQWlCO0FBQ2IsYUFBTyxDQUFDRyxPQUFELEVBQVVDLEtBQVYsRUFBaUIsR0FBR0gsS0FBcEIsS0FBOEI7QUFDakMsY0FBTTtBQUFFLFdBQUMsS0FBS0MsTUFBTCxDQUFZRyxTQUFiLEdBQXlCQztBQUEzQixZQUEwQ0gsT0FBaEQ7O0FBQ0EsWUFBS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ZWwgPSBtb2RlbDtcbiAgICB9XG5cbiAgICBnZXQgcmVzdWx0RnVuYygpIHtcbiAgICAgICAgcmV0dXJuIChzZXNzaW9uLCBpZEFyZywgLi4ub3RoZXIpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHsgW3RoaXMuX21vZGVsLm1vZGVsTmFtZV06IE1vZGVsQ2xhc3MgfSA9IHNlc3Npb247XG4gICAgICAgICAgICBpZiAodHlwZW9mIGlkQXJnID09PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIE1vZGVsQ2xhc3MuYWxsKClcbiAgICAgICAgICAgICAgICAgICAgLnRvTW9kZWxBcnJheSgpXG4gICAgICAgICAgICAgICAgICAgIC5tYXAoKGluc3RhbmNlKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy52YWx1ZUZvckluc3RhbmNlKGluc3RhbmNlLCBzZXNzaW9uLCAuLi5vdGhlcilcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KGlkQXJnKSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBpZEFyZy5tYXAoKGlkKSA9PlxuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbHVlRm9ySW5zdGFuY2UoXG4gICAgICAgICAgICAgICAgICAgICAgICBNb2RlbENsYXNzLndpdGhJZChpZCksXG4gICAgICAgICAgICAgICAgICAgICAgICBzZXNzaW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4ub3RoZXJcbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdGhpcy52YWx1ZUZvckluc3RhbmNlKFxuICAgICAgICAgICAgICAgIE1vZGVsQ2xhc3Mud2l0aElkKGlkQXJnKSxcbiAgICAgICAgICAgICAgICBzZXNzaW9uLFxuICAgICAgICAgICAgICAgIC4uLm90aGVyXG4gICAgICAgICAgICApO1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIGdldCBtb2RlbCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX21vZGVsO1xuICAgIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/selectors/ModelBasedSelectorSpec.js\n"); + + /***/ }), + +@@ -4738,7 +4760,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ModelSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _SelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectorSpec */ \"./src/selectors/SelectorSpec.js\");\n/* harmony import */ var _idArgSelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./idArgSelector */ \"./src/selectors/idArgSelector.js\");\n\n\n\n\n\nlet ModelSelectorSpec = /*#__PURE__*/function (_SelectorSpec) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ModelSelectorSpec, _SelectorSpec);\n\n function ModelSelectorSpec({\n model,\n ...other\n }) {\n var _this;\n\n _this = _SelectorSpec.call(this, other) || this;\n _this._model = model;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ModelSelectorSpec, [{\n key: \"key\",\n get: function () {\n return this._model.modelName;\n }\n }, {\n key: \"dependencies\",\n get: function () {\n return [this._orm, _idArgSelector__WEBPACK_IMPORTED_MODULE_3__[\"default\"]];\n }\n }, {\n key: \"resultFunc\",\n get: function () {\n return ({\n [this._model.modelName]: ModelClass\n }, idArg) => {\n if (typeof idArg === \"undefined\") {\n return ModelClass.all().toRefArray();\n }\n\n if (Array.isArray(idArg)) {\n return idArg.map(id => {\n const instance = ModelClass.withId(id);\n return instance ? instance.ref : null;\n });\n }\n\n const instance = ModelClass.withId(idArg);\n return instance ? instance.ref : null;\n };\n }\n }, {\n key: \"model\",\n get: function () {\n return this._model;\n }\n }]);\n\n return ModelSelectorSpec;\n}(_SelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvTW9kZWxTZWxlY3RvclNwZWMuanM/YWE1YiJdLCJuYW1lcyI6WyJNb2RlbFNlbGVjdG9yU3BlYyIsIm1vZGVsIiwib3RoZXIiLCJfbW9kZWwiLCJtb2RlbE5hbWUiLCJfb3JtIiwiaWRBcmdTZWxlY3RvciIsIk1vZGVsQ2xhc3MiLCJpZEFyZyIsImFsbCIsInRvUmVmQXJyYXkiLCJBcnJheSIsImlzQXJyYXkiLCJtYXAiLCJpZCIsImluc3RhbmNlIiwid2l0aElkIiwicmVmIiwiU2VsZWN0b3JTcGVjIl0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lkID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaW5zdGFuY2UgPSBNb2RlbENsYXNzLndpdGhJZChpZCk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBpbnN0YW5jZSA/IGluc3RhbmNlLnJlZiA6IG51bGw7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBjb25zdCBpbnN0YW5jZSA9IE1vZGVsQ2xhc3Mud2l0aElkKGlkQXJnKTtcbiAgICAgICAgICAgIHJldHVybiBpbnN0YW5jZSA/IGluc3RhbmNlLnJlZiA6IG51bGw7XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgZ2V0IG1vZGVsKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fbW9kZWw7XG4gICAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/selectors/ModelSelectorSpec.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ModelSelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _SelectorSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectorSpec */ \"./src/selectors/SelectorSpec.js\");\n/* harmony import */ var _idArgSelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./idArgSelector */ \"./src/selectors/idArgSelector.js\");\n\n\n\n\n\nlet ModelSelectorSpec = /*#__PURE__*/function (_SelectorSpec) {\n _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1___default()(ModelSelectorSpec, _SelectorSpec);\n\n function ModelSelectorSpec({\n model,\n ...other\n }) {\n var _this;\n\n _this = _SelectorSpec.call(this, other) || this;\n _this._model = model;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(ModelSelectorSpec, [{\n key: \"key\",\n get: function () {\n return this._model.modelName;\n }\n }, {\n key: \"dependencies\",\n get: function () {\n return [this._orm, _idArgSelector__WEBPACK_IMPORTED_MODULE_3__[\"default\"]];\n }\n }, {\n key: \"resultFunc\",\n get: function () {\n return ({\n [this._model.modelName]: ModelClass\n }, idArg) => {\n if (typeof idArg === \"undefined\") {\n return ModelClass.all().toRefArray();\n }\n\n if (Array.isArray(idArg)) {\n return idArg.map(id => {\n const instance = ModelClass.withId(id);\n return instance ? instance.ref : null;\n });\n }\n\n const instance = ModelClass.withId(idArg);\n return instance ? instance.ref : null;\n };\n }\n }, {\n key: \"model\",\n get: function () {\n return this._model;\n }\n }]);\n\n return ModelSelectorSpec;\n}(_SelectorSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvTW9kZWxTZWxlY3RvclNwZWMuanM/YWE1YiJdLCJuYW1lcyI6WyJNb2RlbFNlbGVjdG9yU3BlYyIsIm1vZGVsIiwib3RoZXIiL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ICBpZiAodHlwZW9mIGlkQXJnID09PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIE1vZGVsQ2xhc3MuYWxsKCkudG9SZWZBcnJheSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoaWRBcmcpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGlkQXJnLm1hcCgoaWQpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaW5zdGFuY2UgPSBNb2RlbENsYXNzLndpdGhJZChpZCk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBpbnN0YW5jZSA/IGluc3RhbmNlLnJlZiA6IG51bGw7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBjb25zdCBpbnN0YW5jZSA9IE1vZGVsQ2xhc3Mud2l0aElkKGlkQXJnKTtcbiAgICAgICAgICAgIHJldHVybiBpbnN0YW5jZSA/IGluc3RhbmNlLnJlZiA6IG51bGw7XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgZ2V0IG1vZGVsKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fbW9kZWw7XG4gICAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/selectors/ModelSelectorSpec.js\n"); + + /***/ }), + +@@ -4750,7 +4772,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ \"./src/constants.js\");\n\n\n\nlet SelectorSpec = /*#__PURE__*/function () {\n function SelectorSpec({\n parent,\n orm\n }) {\n this._parent = parent;\n this._orm = orm;\n this.keySelector = _constants__WEBPACK_IMPORTED_MODULE_1__[\"ID_ARG_KEY_SELECTOR\"];\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SelectorSpec, [{\n key: \"cachePath\",\n get: function () {\n const basePath = this._parent ? this._parent.cachePath : [];\n return [...basePath, this.key];\n }\n }, {\n key: \"orm\",\n get: function () {\n return this._orm;\n }\n }, {\n key: \"parent\",\n get: function () {\n return this._parent;\n }\n }]);\n\n return SelectorSpec;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvU2VsZWN0b3JTcGVjLmpzP2Q5MjUiXSwibmFtZXMiOlsiU2VsZWN0b3JTcGVjIiwicGFyZW50Iiwib3JtIiwiX3BhcmVudCIsIl9vcm0iLCJrZXlTZWxlY3RvciIsIklEX0FSR19LRVlfU0VMRUNUT1IiLCJiYXNlUGF0aCIsImNhY2hlUGF0aCIsImtleSJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7O0lBRXFCQSxZO0FBQ2pCLHdCQUFZO0FBQUVDLFVBQUY7QUFBVUM7QUFBVixHQUFaLEVBQTZCO0FBQ3pCLFNBQUtDLE9BQUwsR0FBZUYsTUFBZjtBQUNBLFNBQUtHLElBQUwsR0FBWUYsR0FBWjtBQUNBLFNBQUtHLFdBQUwsR0FBbUJDLDhEQUFuQjtBQUNIOzs7O3FCQUVlO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val("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectorSpec; });\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ \"./src/constants.js\");\n\n\n\nlet SelectorSpec = /*#__PURE__*/function () {\n function SelectorSpec({\n parent,\n orm\n }) {\n this._parent = parent;\n this._orm = orm;\n this.keySelector = _constants__WEBPACK_IMPORTED_MODULE_1__[\"ID_ARG_KEY_SELECTOR\"];\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(SelectorSpec, [{\n key: \"cachePath\",\n get: function () {\n const basePath = this._parent ? this._parent.cachePath : [];\n return [...basePath, this.key];\n }\n }, {\n key: \"orm\",\n get: function () {\n return this._orm;\n }\n }, {\n key: \"parent\",\n get: function () {\n return this._parent;\n }\n }]);\n\n return SelectorSpec;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvU2VsZWN0b3JTcGVjLmpzP2Q5MjUiXSwibmFtZXMiOlsiU2VsZWN0b3JTcGVjIiwicGFyZW50Iiwib3JtIiwiX3BhcmVudCIsIl9vcm0iLCJrZXlTZWxlY3RvciIsIklEX0FSR19LRVlfU0VMRUNUT1IiLCJiYXNlUGF0aCIsImNhY2hlUGF0aCIsImtleSJdLCJtYXBwaW5ncyI6Ijs7Ozs7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wgdGhpcy5rZXldO1xuICAgIH1cblxuICAgIGdldCBvcm0oKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9vcm07XG4gICAgfVxuXG4gICAgZ2V0IHBhcmVudCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX3BhcmVudDtcbiAgICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/selectors/SelectorSpec.js\n"); + + /***/ }), + +@@ -4774,7 +4796,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createFieldSelectorSpec\", function() { return createFieldSelectorSpec; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createModelSelectorSpec\", function() { return createModelSelectorSpec; });\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _fields_RelationalField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../fields/RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _FieldSelectorSpec__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FieldSelectorSpec */ \"./src/selectors/FieldSelectorSpec.js\");\n/* harmony import */ var _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModelSelectorSpec */ \"./src/selectors/ModelSelectorSpec.js\");\n\n\n\n\n\n/**\n * @module selectors\n * @private\n */\n\nfunction createFieldSelectorSpec({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual\n}) {\n const fieldSelectorSpec = new _FieldSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual\n });\n /* Do not even try to create field selectors below attributes. */\n\n if (!(field instanceof _fields_RelationalField__WEBPACK_IMPORTED_MODULE_2__[\"default\"])) {\n // \"orm.Author.name.publisher\" would be nonsense\n return fieldSelectorSpec;\n }\n /* Prevent field selectors below collections. */\n\n\n if (parent instanceof _FieldSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n /* eslint-disable no-underscore-dangle */\n if ( // \"orm.Author.books.publisher\" would be nonsense\n parent._field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_0__[\"default\"] && parent._isVirtual || // \"orm.Genre.books.publisher\" would be nonsense\n parent._field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n throw new Error(`Cannot create a selector for \\`${parent._accessorName}.${accessorName}\\` because \\`${parent._accessorName}\\` is a collection field.`);\n }\n }\n\n const {\n toModelName\n } = field;\n const toModel = orm.get(toModelName === \"this\" ? model.modelName : toModelName);\n Object.entries(toModel.fields).forEach(([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false\n })\n });\n });\n Object.entries(toModel.virtualFields).forEach(([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n\n if (fieldSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true\n })\n });\n });\n return fieldSelectorSpec;\n}\nfunction createModelSelectorSpec({\n model,\n orm\n}) {\n const modelSelectorSpec = new _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]({\n parent: null,\n orm,\n model\n });\n Object.entries(model.fields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false\n })\n });\n });\n Object.entries(model.virtualFields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n\n if (modelSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true\n })\n });\n });\n return modelSelectorSpec;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvaW5kZXguanM/YTA3NiJdLCJuYW1lcyI6WyJjcmVhdGVGaWVsZFNlbGVjdG9yU3BlYyIsInBhcmVudCIsIm1vZGVsIiwiZmllbGQiLCJmaWVsZE1vZGVsIiwiYWNjZXNzb3JOYW1lIiwib3JtIiwiaXNWaXJ0dWFsIiwiZmllbGRTZWxlY3RvclNwZWMiLCJGaWVsZFNlbGVjdG9yU3BlYyIsIlJlbGF0aW9uYWxGaWVsZCIsIl9maWVsZCIsIkZvcmVpZ25LZXkiLCJfaXNWaXJ0dWFsIiwiTWFueVRvTWFueSIsIkVycm9yIiwiX2FjY2Vzc29yTmFtZSIsInRvTW9kZWxOYW1lIiwidG9Nb2RlbCIsImdldCIsIm1vZGVsTmFtZSIsIk9iamVj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AgY29uc3QgdG9Nb2RlbCA9IG9ybS5nZXQoXG4gICAgICAgIHRvTW9kZWxOYW1lID09PSBcInRoaXNcIiA/IG1vZGVsLm1vZGVsTmFtZSA6IHRvTW9kZWxOYW1lXG4gICAgKTtcbiAgICBPYmplY3QuZW50cmllcyh0b01vZGVsLmZpZWxkcykuZm9yRWFjaChcbiAgICAgICAgKFtyZWxhdGVkRmllbGROYW1lLCByZWxhdGVkRmllbGRdKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBmaWVsZEFjY2Vzc29yTmFtZSA9IHJlbGF0ZWRGaWVsZC5hcyB8fCByZWxhdGVkRmllbGROYW1lO1xuICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGZpZWxkU2VsZWN0b3JTcGVjLCBmaWVsZEFjY2Vzc29yTmFtZSwge1xuICAgICAgICAgICAgICAgIGdldDogKCkgPT5cbiAgICAgICAgICAgICAgICAgICAgY3JlYXRlRmllbGRTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyZW50OiBmaWVsZFNlbGVjdG9yU3BlYyxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgZmllbGRNb2RlbDogdG9Nb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkOiByZWxhdGVkRmllbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICBhY2Nlc3Nvck5hbWU6IGZpZWxkQWNjZXNzb3JOYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgaXNWaXJ0dWFsOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICk7XG4gICAgT2JqZWN0LmVudHJpZXModG9Nb2RlbC52aXJ0dWFsRmllbGRzKS5mb3JFYWNoKFxuICAgICAgICAoW3JlbGF0ZWRGaWVsZE5hbWUsIHJlbGF0ZWRGaWVsZF0pID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGZpZWxkQWNjZXNzb3JOYW1lID0gcmVsYXRlZEZpZWxkLmFzIHx8IHJlbGF0ZWRGaWVsZE5hbWU7XG4gICAgICAgICAgICBpZiAoZmllbGRTZWxlY3RvclNwZWMuaGFzT3duUHJvcGVydHkoZmllbGRBY2Nlc3Nvck5hbWUpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGZpZWxkU2VsZWN0b3JTcGVjLCBmaWVsZEFjY2Vzc29yTmFtZSwge1xuICAgICAgICAgICAgICAgIGdldDogKCkgPT5cbiAgICAgICAgICAgICAgICAgICAgY3JlYXRlRmllbGRTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyZW50OiBmaWVsZFNlbGVjdG9yU3BlYyxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgZmllbGRNb2RlbDogdG9Nb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkOiByZWxhdGVkRmllbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICBhY2Nlc3Nvck5hbWU6IGZpZWxkQWNjZXNzb3JOYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgaXNWaXJ0dWFsOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgKTtcbiAgICByZXR1cm4gZmllbGRTZWxlY3RvclNwZWM7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVNb2RlbFNlbGVjdG9yU3BlYyh7IG1vZGVsLCBvcm0gfSkge1xuICAgIGNvbnN0IG1vZGVsU2VsZWN0b3JTcGVjID0gbmV3IE1vZGVsU2VsZWN0b3JTcGVjKHtcbiAgICAgICAgcGFyZW50OiBudWxsLFxuICAgICAgICBvcm0sXG4gICAgICAgIG1vZGVsLFxuICAgIH0pO1xuXG4gICAgT2JqZWN0LmVudHJpZXMobW9kZWwuZmllbGRzKS5mb3JFYWNoKChbZmllbGROYW1lLCBmaWVsZF0pID0+IHtcbiAgICAgICAgY29uc3QgZmllbGRBY2Nlc3Nvck5hbWUgPSBmaWVsZC5hcyB8fCBmaWVsZE5hbWU7XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShtb2RlbFNlbGVjdG9yU3BlYywgZmllbGRBY2Nlc3Nvck5hbWUsIHtcbiAgICAgICAgICAgIGdldDogKCkgPT5cbiAgICAgICAgICAgICAgICBjcmVhdGVGaWVsZFNlbGVjdG9yU3BlYyh7XG4gICAgICAgICAgICAgICAgICAgIHBhcmVudDogbW9kZWxTZWxlY3RvclNwZWMsXG4gICAgICAgICAgICAgICAgICAgIG1vZGVsLFxuICAgICAgICAgICAgICAgICAgICBmaWVsZE1vZGVsOiBtb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgZmllbGQsXG4gICAgICAgICAgICAgICAgICAgIGFjY2Vzc29yTmFtZTogZmllbGRBY2Nlc3Nvck5hbWUsXG4gICAgICAgICAgICAgICAgICAgIG9ybSxcbiAgICAgICAgICAgICAgICAgICAgaXNWaXJ0dWFsOiBmYWxzZSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICBPYmplY3QuZW50cmllcyhtb2RlbC52aXJ0dWFsRmllbGRzKS5mb3JFYWNoKChbZmllbGROYW1lLCBmaWVsZF0pID0+IHtcbiAgICAgICAgY29uc3QgZmllbGRBY2Nlc3Nvck5hbWUgPSBmaWVsZC5hcyB8fCBmaWVsZE5hbWU7XG4gICAgICAgIGlmIChtb2RlbFNlbGVjdG9yU3BlYy5oYXNPd25Qcm9wZXJ0eShmaWVsZEFjY2Vzc29yTmFtZSkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobW9kZWxTZWxlY3RvclNwZWMsIGZpZWxkQWNjZXNzb3JOYW1lLCB7XG4gICAgICAgICAgICBnZXQ6ICgpID0+XG4gICAgICAgICAgICAgICAgY3JlYXRlRmllbGRTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgICAgICAgICBwYXJlbnQ6IG1vZGVsU2VsZWN0b3JTcGVjLFxuICAgICAgICAgICAgICAgICAgICBtb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgZmllbGRNb2RlbDogbW9kZWwsXG4gICAgICAgICAgICAgICAgICAgIGZpZWxkLFxuICAgICAgICAgICAgICAgICAgICBhY2Nlc3Nvck5hbWU6IGZpZWxkQWNjZXNzb3JOYW1lLFxuICAgICAgICAgICAgICAgICAgICBvcm0sXG4gICAgICAgICAgICAgICAgICAgIGlzVmlydHVhbDogdHJ1ZSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICByZXR1cm4gbW9kZWxTZWxlY3RvclNwZWM7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/selectors/index.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createFieldSelectorSpec\", function() { return createFieldSelectorSpec; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createModelSelectorSpec\", function() { return createModelSelectorSpec; });\n/* harmony import */ var _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fields/ForeignKey */ \"./src/fields/ForeignKey.js\");\n/* harmony import */ var _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../fields/ManyToMany */ \"./src/fields/ManyToMany.js\");\n/* harmony import */ var _fields_RelationalField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../fields/RelationalField */ \"./src/fields/RelationalField.js\");\n/* harmony import */ var _FieldSelectorSpec__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FieldSelectorSpec */ \"./src/selectors/FieldSelectorSpec.js\");\n/* harmony import */ var _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModelSelectorSpec */ \"./src/selectors/ModelSelectorSpec.js\");\n\n\n\n\n\n/**\n * @module selectors\n * @private\n */\n\nfunction createFieldSelectorSpec({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual\n}) {\n const fieldSelectorSpec = new _FieldSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual\n });\n /* Do not even try to create field selectors below attributes. */\n\n if (!(field instanceof _fields_RelationalField__WEBPACK_IMPORTED_MODULE_2__[\"default\"])) {\n // \"orm.Author.name.publisher\" would be nonsense\n return fieldSelectorSpec;\n }\n /* Prevent field selectors below collections. */\n\n\n if (parent instanceof _FieldSelectorSpec__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n /* eslint-disable no-underscore-dangle */\n if ( // \"orm.Author.books.publisher\" would be nonsense\n parent._field instanceof _fields_ForeignKey__WEBPACK_IMPORTED_MODULE_0__[\"default\"] && parent._isVirtual || // \"orm.Genre.books.publisher\" would be nonsense\n parent._field instanceof _fields_ManyToMany__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n throw new Error(`Cannot create a selector for \\`${parent._accessorName}.${accessorName}\\` because \\`${parent._accessorName}\\` is a collection field.`);\n }\n }\n\n const {\n toModelName\n } = field;\n const toModel = orm.get(toModelName === \"this\" ? model.modelName : toModelName);\n Object.entries(toModel.fields).forEach(([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false\n })\n });\n });\n Object.entries(toModel.virtualFields).forEach(([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n\n if (fieldSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true\n })\n });\n });\n return fieldSelectorSpec;\n}\nfunction createModelSelectorSpec({\n model,\n orm\n}) {\n const modelSelectorSpec = new _ModelSelectorSpec__WEBPACK_IMPORTED_MODULE_4__[\"default\"]({\n parent: null,\n orm,\n model\n });\n Object.entries(model.fields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false\n })\n });\n });\n Object.entries(model.virtualFields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n\n if (modelSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () => createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true\n })\n });\n });\n return modelSelectorSpec;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9SZWR1eE9ybS8uL3NyYy9zZWxlY3RvcnMvaW5kZXguanM/YTA3NiJdLCJuYW1lcyI6WyJjc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bCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkOiByZWxhdGVkRmllbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICBhY2Nlc3Nvck5hbWU6IGZpZWxkQWNjZXNzb3JOYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgaXNWaXJ0dWFsOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICk7XG4gICAgT2JqZWN0LmVudHJpZXModG9Nb2RlbC52aXJ0dWFsRmllbGRzKS5mb3JFYWNoKFxuICAgICAgICAoW3JlbGF0ZWRGaWVsZE5hbWUsIHJlbGF0ZWRGaWVsZF0pID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGZpZWxkQWNjZXNzb3JOYW1lID0gcmVsYXRlZEZpZWxkLmFzIHx8IHJlbGF0ZWRGaWVsZE5hbWU7XG4gICAgICAgICAgICBpZiAoZmllbGRTZWxlY3RvclNwZWMuaGFzT3duUHJvcGVydHkoZmllbGRBY2Nlc3Nvck5hbWUpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGZpZWxkU2VsZWN0b3JTcGVjLCBmaWVsZEFjY2Vzc29yTmFtZSwge1xuICAgICAgICAgICAgICAgIGdldDogKCkgPT5cbiAgICAgICAgICAgICAgICAgICAgY3JlYXRlRmllbGRTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyZW50OiBmaWVsZFNlbGVjdG9yU3BlYyxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgZmllbGRNb2RlbDogdG9Nb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkOiByZWxhdGVkRmllbGQsXG4gICAgICAgICAgICAgICAgICAgICAgICBhY2Nlc3Nvck5hbWU6IGZpZWxkQWNjZXNzb3JOYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgaXNWaXJ0dWFsOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgKTtcbiAgICByZXR1cm4gZmllbGRTZWxlY3RvclNwZWM7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVNb2RlbFNlbGVjdG9yU3BlYyh7IG1vZGVsLCBvcm0gfSkge1xuICAgIGNvbnN0IG1vZGVsU2VsZWN0b3JTcGVjID0gbmV3IE1vZGVsU2VsZWN0b3JTcGVjKHtcbiAgICAgICAgcGFyZW50OiBudWxsLFxuICAgICAgICBvcm0sXG4gICAgICAgIG1vZGVsLFxuICAgIH0pO1xuXG4gICAgT2JqZWN0LmVudHJpZXMobW9kZWwuZmllbGRzKS5mb3JFYWNoKChbZmllbGROYW1lLCBmaWVsZF0pID0+IHtcbiAgICAgICAgY29uc3QgZmllbGRBY2Nlc3Nvck5hbWUgPSBmaWVsZC5hcyB8fCBmaWVsZE5hbWU7XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShtb2RlbFNlbGVjdG9yU3BlYywgZmllbGRBY2Nlc3Nvck5hbWUsIHtcbiAgICAgICAgICAgIGdldDogKCkgPT5cbiAgICAgICAgICAgICAgICBjcmVhdGVGaWVsZFNlbGVjdG9yU3BlYyh7XG4gICAgICAgICAgICAgICAgICAgIHBhcmVudDogbW9kZWxTZWxlY3RvclNwZWMsXG4gICAgICAgICAgICAgICAgICAgIG1vZGVsLFxuICAgICAgICAgICAgICAgICAgICBmaWVsZE1vZGVsOiBtb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgZmllbGQsXG4gICAgICAgICAgICAgICAgICAgIGFjY2Vzc29yTmFtZTogZmllbGRBY2Nlc3Nvck5hbWUsXG4gICAgICAgICAgICAgICAgICAgIG9ybSxcbiAgICAgICAgICAgICAgICAgICAgaXNWaXJ0dWFsOiBmYWxzZSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICBPYmplY3QuZW50cmllcyhtb2RlbC52aXJ0dWFsRmllbGRzKS5mb3JFYWNoKChbZmllbGROYW1lLCBmaWVsZF0pID0+IHtcbiAgICAgICAgY29uc3QgZmllbGRBY2Nlc3Nvck5hbWUgPSBmaWVsZC5hcyB8fCBmaWVsZE5hbWU7XG4gICAgICAgIGlmIChtb2RlbFNlbGVjdG9yU3BlYy5oYXNPd25Qcm9wZXJ0eShmaWVsZEFjY2Vzc29yTmFtZSkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkobW9kZWxTZWxlY3RvclNwZWMsIGZpZWxkQWNjZXNzb3JOYW1lLCB7XG4gICAgICAgICAgICBnZXQ6ICgpID0+XG4gICAgICAgICAgICAgICAgY3JlYXRlRmllbGRTZWxlY3RvclNwZWMoe1xuICAgICAgICAgICAgICAgICAgICBwYXJlbnQ6IG1vZGVsU2VsZWN0b3JTcGVjLFxuICAgICAgICAgICAgICAgICAgICBtb2RlbCxcbiAgICAgICAgICAgICAgICAgICAgZmllbGRNb2RlbDogbW9kZWwsXG4gICAgICAgICAgICAgICAgICAgIGZpZWxkLFxuICAgICAgICAgICAgICAgICAgICBhY2Nlc3Nvck5hbWU6IGZpZWxkQWNjZXNzb3JOYW1lLFxuICAgICAgICAgICAgICAgICAgICBvcm0sXG4gICAgICAgICAgICAgICAgICAgIGlzVmlydHVhbDogdHJ1ZSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICByZXR1cm4gbW9kZWxTZWxlY3RvclNwZWM7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/selectors/index.js\n"); + + /***/ }), + +@@ -4786,7 +4808,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * + /***/ (function(module, __webpack_exports__, __webpack_require__) { + + "use strict"; +-eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"attachQuerySetMethods\", function() { return attachQuerySetMethods; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m2mName\", function() { return m2mName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m2mFromFieldName\", function() { return m2mFromFieldName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m2mToFieldName\", function() { return m2mToFieldName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reverseFieldName\", function() { return reverseFieldName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeEntity\", function() { return normalizeEntity; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reverseFieldErrorMessage\", function() { return reverseFieldErrorMessage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"objectShallowEquals\", function() { return objectShallowEquals; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"arrayDiffActions\", function() { return arrayDiffActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBatchToken\", function() { return getBatchToken; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clauseFiltersByAttribute\", function() { return clauseFiltersByAttribute; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clauseReducesResultSetSize\", function() { return clauseReducesResultSetSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"warnDeprecated\", function() { return warnDeprecated; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapValues\", function() { return mapValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeModelReference\", function() { return normalizeModelReference; });\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ops\", function() { return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n\n\n/**\n * @module utils\n * @private\n */\n\n/** @private */\n\nfunction warnDeprecated(msg) {\n const logger = typeof console.warn === \"function\" ? console.warn.bind(console) : console.log.bind(console);\n return logger(msg);\n}\n/** @private */\n\n\nfunction capitalize(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n/**\n * Returns the branch name for a many-to-many relation.\n * The name is the combination of the model name and the field name the relation\n * was declared. The field name's first letter is capitalized.\n *\n * Example: model `Author` has a many-to-many relation to the model `Book`, defined\n * in the `Author` field `books`. The many-to-many branch name will be `AuthorBooks`.\n *\n * @param {string} declarationModelName - the name of the model the many-to-many relation was declared on\n * @param {string} fieldName - the field name where the many-to-many relation was declared on\n * @return {string} The branch name for the many-to-many relation.\n */\n\n\nfunction m2mName(declarationModelName, fieldName) {\n return declarationModelName + capitalize(fieldName);\n}\n/**\n * Returns the fieldname that saves a foreign key to the\n * model id where the many-to-many relation was declared.\n *\n * Example: `Author` => `fromAuthorId`\n *\n * @param {string} declarationModelName - the name of the model where the relation was declared\n * @return {string} the field name in the through model for `declarationModelName`'s foreign key.\n */\n\n\nfunction m2mFromFieldName(declarationModelName) {\n return `from${declarationModelName}Id`;\n}\n/**\n * Returns the fieldname that saves a foreign key in a many-to-many through model to the\n * model where the many-to-many relation was declared.\n *\n * Example: `Book` => `toBookId`\n *\n * @param {string} otherModelName - the name of the model that was the target of the many-to-many\n * declaration.\n * @return {string} the field name in the through model for `otherModelName`'s foreign key..\n */\n\n\nfunction m2mToFieldName(otherModelName) {\n return `to${otherModelName}Id`;\n}\n/** */\n\n\nfunction reverseFieldName(modelName) {\n return modelName.toLowerCase() + \"Set\"; // eslint-disable-line prefer-template\n}\n/** @private */\n\n\nfunction querySetDelegatorFactory(methodName) {\n return function querySetDelegator(...args) {\n return this.getQuerySet()[methodName](...args);\n };\n}\n/** @private */\n\n\nfunction querySetGetterDelegatorFactory(getterName) {\n return function querySetGetterDelegator() {\n const qs = this.getQuerySet();\n return qs[getterName];\n };\n}\n/** @private */\n\n\nfunction forEachSuperClass(subClass, func) {\n let currClass = subClass;\n\n while (currClass !== Function.prototype) {\n func(currClass);\n currClass = Object.getPrototypeOf(currClass);\n }\n}\n/** */\n\n\nfunction attachQuerySetMethods(modelClass, querySetClass) {\n const leftToDefine = querySetClass.sharedMethods.slice(); // There is no way to get a property descriptor for the whole prototype chain;\n // only from an objects own properties. Therefore we traverse the whole prototype\n // chain for querySet.\n\n forEachSuperClass(querySetClass, cls => {\n for (let i = 0; i < leftToDefine.length; i++) {\n let defined = false;\n const methodName = leftToDefine[i];\n const descriptor = Object.getOwnPropertyDescriptor(cls.prototype, methodName);\n\n if (typeof descriptor !== \"undefined\") {\n if (typeof descriptor.get !== \"undefined\") {\n descriptor.get = querySetGetterDelegatorFactory(methodName);\n Object.defineProperty(modelClass, methodName, descriptor);\n } else {\n modelClass[methodName] = querySetDelegatorFactory(methodName);\n }\n\n defined = true;\n }\n\n if (defined) {\n leftToDefine.splice(i--, 1);\n }\n }\n });\n}\n/**\n * Normalizes `entity` to an id, where `entity` can be an id\n * or a Model instance.\n *\n * @param {*} entity - either a Model instance or an id value\n * @return {*} the id value of `entity`\n */\n\n\nfunction normalizeEntity(entity) {\n if (entity !== null && typeof entity !== \"undefined\" && typeof entity.getId === \"function\") {\n return entity.getId();\n }\n\n return entity;\n}\n/** */\n\n\nfunction reverseFieldErrorMessage(modelName, fieldName, toModelName, backwardsFieldName) {\n return [`Reverse field ${backwardsFieldName} already defined`, ` on model ${toModelName}. To fix, set a custom related`, ` name on ${modelName}.${fieldName}.`].join(\"\");\n}\n/**\n * Fastest way to check if two objects are equal.\n * Object and array values have to be referentially equal.\n */\n\n\nfunction objectShallowEquals(a, b) {\n const entriesInA = Object.entries(Object(a));\n\n if (entriesInA.length !== Object.keys(b).length) {\n return false;\n }\n\n return entriesInA.every(([key, value]) => b.hasOwnProperty(key) && b[key] === value);\n}\n/** */\n\n\nfunction arrayDiffActions(sourceArr, targetArr) {\n const itemsInBoth = sourceArr.filter(item => targetArr.includes(item));\n const deleteItems = sourceArr.filter(item => !itemsInBoth.includes(item));\n const addItems = targetArr.filter(item => !itemsInBoth.includes(item));\n\n if (deleteItems.length || addItems.length) {\n return {\n delete: deleteItems,\n add: addItems\n };\n }\n\n return null;\n}\n\nconst {\n getBatchToken\n} = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n/**\n * @return boolean\n */\n\nfunction clauseFiltersByAttribute({\n type,\n payload\n}, attribute) {\n if (type !== _constants__WEBPACK_IMPORTED_MODULE_1__[\"FILTER\"]) return false;\n\n if (typeof payload !== \"object\") {\n /**\n * payload could also be a function in which case\n * we would have no way of knowing what it does,\n * so we default to false for non-objects\n */\n return false;\n }\n\n if (!payload.hasOwnProperty(attribute)) return false;\n const attributeValue = payload[attribute];\n if (attributeValue === null) return false;\n if (attributeValue === undefined) return false;\n return true;\n}\n/**\n * @return boolean\n */\n\n\nfunction clauseReducesResultSetSize({\n type\n}) {\n return [_constants__WEBPACK_IMPORTED_MODULE_1__[\"FILTER\"], _constants__WEBPACK_IMPORTED_MODULE_1__[\"EXCLUDE\"]].includes(type);\n}\n/**\n * @param {Object} object\n * @return Object\n */\n\n\nfunction mapValues(object, func) {\n return Object.entries(object).reduce((newObject, [key, value]) => {\n newObject[key] = func(value);\n return newObject;\n }, {});\n}\n/** */\n\n\nfunction normalizeModelReference(modelNameOrClass) {\n if (!modelNameOrClass || typeof modelNameOrClass === \"string\") {\n return modelNameOrClass;\n }\n\n return modelNameOrClass.modelName;\n}\n\n//# sourceUR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aSsrKSB7XG4gICAgICAgICAgICBsZXQgZGVmaW5lZCA9IGZhbHNlO1xuICAgICAgICAgICAgY29uc3QgbWV0aG9kTmFtZSA9IGxlZnRUb0RlZmluZVtpXTtcbiAgICAgICAgICAgIGNvbnN0IGRlc2NyaXB0b3IgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKFxuICAgICAgICAgICAgICAgIGNscy5wcm90b3R5cGUsXG4gICAgICAgICAgICAgICAgbWV0aG9kTmFtZVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgZGVzY3JpcHRvciAhPT0gXCJ1bmRlZmluZWRcIikge1xuICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgZGVzY3JpcHRvci5nZXQgIT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRvci5nZXQgPSBxdWVyeVNldEdldHRlckRlbGVnYXRvckZhY3RvcnkobWV0aG9kTmFtZSk7XG4gICAgICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShtb2RlbENsYXNzLCBtZXRob2ROYW1lLCBkZXNjcmlwdG9yKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBtb2RlbENsYXNzW21ldGhvZE5hbWVdID0gcXVlcnlTZXREZWxlZ2F0b3JGYWN0b3J5KFxuICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kTmFtZVxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBkZWZpbmVkID0gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChkZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgbGVmdFRvRGVmaW5lLnNwbGljZShpLS0sIDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSk7XG59XG5cbi8qKlxuICogTm9ybWFsa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VzLFxuICAgIG5vcm1hbGl6ZU1vZGVsUmVmZXJlbmNlLFxufTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils.js\n"); ++eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"attachQuerySetMethods\", function() { return attachQuerySetMethods; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m2mName\", function() { return m2mName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m2mFromFieldName\", function() { return m2mFromFieldName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"m2mToFieldName\", function() { return m2mToFieldName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reverseFieldName\", function() { return reverseFieldName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeEntity\", function() { return normalizeEntity; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reverseFieldErrorMessage\", function() { return reverseFieldErrorMessage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"objectShallowEquals\", function() { return objectShallowEquals; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"arrayDiffActions\", function() { return arrayDiffActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBatchToken\", function() { return getBatchToken; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clauseFiltersByAttribute\", function() { return clauseFiltersByAttribute; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clauseReducesResultSetSize\", function() { return clauseReducesResultSetSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"warnDeprecated\", function() { return warnDeprecated; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapValues\", function() { return mapValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeModelReference\", function() { return normalizeModelReference; });\n/* harmony import */ var immutable_ops__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immutable-ops */ \"./node_modules/immutable-ops/es/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ops\", function() { return immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./src/constants.js\");\n\n\n/**\n * @module utils\n * @private\n */\n\n/** @private */\n\nfunction warnDeprecated(msg) {\n const logger = typeof console.warn === \"function\" ? console.warn.bind(console) : console.log.bind(console);\n return logger(msg);\n}\n/** @private */\n\n\nfunction capitalize(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n/**\n * Returns the branch name for a many-to-many relation.\n * The name is the combination of the model name and the field name the relation\n * was declared. The field name's first letter is capitalized.\n *\n * Example: model `Author` has a many-to-many relation to the model `Book`, defined\n * in the `Author` field `books`. The many-to-many branch name will be `AuthorBooks`.\n *\n * @param {string} declarationModelName - the name of the model the many-to-many relation was declared on\n * @param {string} fieldName - the field name where the many-to-many relation was declared on\n * @return {string} The branch name for the many-to-many relation.\n */\n\n\nfunction m2mName(declarationModelName, fieldName) {\n return declarationModelName + capitalize(fieldName);\n}\n/**\n * Returns the fieldname that saves a foreign key to the\n * model id where the many-to-many relation was declared.\n *\n * Example: `Author` => `fromAuthorId`\n *\n * @param {string} declarationModelName - the name of the model where the relation was declared\n * @return {string} the field name in the through model for `declarationModelName`'s foreign key.\n */\n\n\nfunction m2mFromFieldName(declarationModelName) {\n return `from${declarationModelName}Id`;\n}\n/**\n * Returns the fieldname that saves a foreign key in a many-to-many through model to the\n * model where the many-to-many relation was declared.\n *\n * Example: `Book` => `toBookId`\n *\n * @param {string} otherModelName - the name of the model that was the target of the many-to-many\n * declaration.\n * @return {string} the field name in the through model for `otherModelName`'s foreign key..\n */\n\n\nfunction m2mToFieldName(otherModelName) {\n return `to${otherModelName}Id`;\n}\n/** */\n\n\nfunction reverseFieldName(modelName) {\n return modelName.toLowerCase() + \"Set\"; // eslint-disable-line prefer-template\n}\n/** @private */\n\n\nfunction querySetDelegatorFactory(methodName) {\n return function querySetDelegator(...args) {\n return this.getQuerySet()[methodName](...args);\n };\n}\n/** @private */\n\n\nfunction querySetGetterDelegatorFactory(getterName) {\n return function querySetGetterDelegator() {\n const qs = this.getQuerySet();\n return qs[getterName];\n };\n}\n/** @private */\n\n\nfunction forEachSuperClass(subClass, func) {\n let currClass = subClass;\n\n while (currClass !== Function.prototype) {\n func(currClass);\n currClass = Object.getPrototypeOf(currClass);\n }\n}\n/** */\n\n\nfunction attachQuerySetMethods(modelClass, querySetClass) {\n const leftToDefine = querySetClass.sharedMethods.slice(); // There is no way to get a property descriptor for the whole prototype chain;\n // only from an objects own properties. Therefore we traverse the whole prototype\n // chain for querySet.\n\n forEachSuperClass(querySetClass, cls => {\n for (let i = 0; i < leftToDefine.length; i++) {\n let defined = false;\n const methodName = leftToDefine[i];\n const descriptor = Object.getOwnPropertyDescriptor(cls.prototype, methodName);\n\n if (typeof descriptor !== \"undefined\") {\n if (typeof descriptor.get !== \"undefined\") {\n descriptor.get = querySetGetterDelegatorFactory(methodName);\n Object.defineProperty(modelClass, methodName, descriptor);\n } else {\n modelClass[methodName] = querySetDelegatorFactory(methodName);\n }\n\n defined = true;\n }\n\n if (defined) {\n leftToDefine.splice(i--, 1);\n }\n }\n });\n}\n/**\n * Normalizes `entity` to an id, where `entity` can be an id\n * or a Model instance.\n *\n * @param {*} entity - either a Model instance or an id value\n * @return {*} the id value of `entity`\n */\n\n\nfunction normalizeEntity(entity) {\n if (entity !== null && typeof entity !== \"undefined\" && typeof entity.getId === \"function\") {\n return entity.getId();\n }\n\n return entity;\n}\n/** */\n\n\nfunction reverseFieldErrorMessage(modelName, fieldName, toModelName, backwardsFieldName) {\n return [`Reverse field ${backwardsFieldName} already defined`, ` on model ${toModelName}. To fix, set a custom related`, ` name on ${modelName}.${fieldName}.`].join(\"\");\n}\n/**\n * Fastest way to check if two objects are equal.\n * Object and array values have to be referentially equal.\n */\n\n\nfunction objectShallowEquals(a, b) {\n const entriesInA = Object.entries(Object(a));\n\n if (entriesInA.length !== Object.keys(b).length) {\n return false;\n }\n\n return entriesInA.every(([key, value]) => b.hasOwnProperty(key) && b[key] === value);\n}\n/** */\n\n\nfunction arrayDiffActions(sourceArr, targetArr) {\n const itemsInBoth = sourceArr.filter(item => targetArr.includes(item));\n const deleteItems = sourceArr.filter(item => !itemsInBoth.includes(item));\n const addItems = targetArr.filter(item => !itemsInBoth.includes(item));\n\n if (deleteItems.length || addItems.length) {\n return {\n delete: deleteItems,\n add: addItems\n };\n }\n\n return null;\n}\n\nconst {\n getBatchToken\n} = immutable_ops__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n/**\n * @return boolean\n */\n\nfunction clauseFiltersByAttribute({\n type,\n payload\n}, attribute) {\n if (type !== _constants__WEBPACK_IMPORTED_MODULE_1__[\"FILTER\"]) return false;\n\n if (typeof payload !== \"object\") {\n /**\n * payload could also be a function in which case\n * we would have no way of knowing what it does,\n * so we default to false for non-objects\n */\n return false;\n }\n\n if (!payload.hasOwnProperty(attribute)) return false;\n const attributeValue = payload[attribute];\n if (attributeValue === null) return false;\n if (attributeValue === undefined) return false;\n return true;\n}\n/**\n * @return boolean\n */\n\n\nfunction clauseReducesResultSetSize({\n type\n}) {\n return [_constants__WEBPACK_IMPORTED_MODULE_1__[\"FILTER\"], _constants__WEBPACK_IMPORTED_MODULE_1__[\"EXCLUDE\"]].includes(type);\n}\n/**\n * @param {Object} object\n * @return Object\n */\n\n\nfunction mapValues(object, func) {\n return Object.entries(object).reduce((newObject, [key, value]) => {\n newObject[key] = func(value);\n return newObject;\n }, {});\n}\n/** */\n\n\nfunction normalizeModelReference(modelNameOrClass) {\n if (!modelNameOrClass || typeof modelNameOrClass === \"string\") {\n return modelNameOrClass;\n }\n\n return modelNameOrClass.modelName;\n}\n\n//# sourceURL=[module]\n//# sourceM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llbGRFcnJvck1lc3NhZ2UsXG4gICAgb2JqZWN0U2hhbGxvd0VxdWFscyxcbiAgICBvcHMsXG4gICAgYXJyYXlEaWZmQWN0aW9ucyxcbiAgICBnZXRCYXRjaFRva2VuLFxuICAgIGNsYXVzZUZpbHRlcnNCeUF0dHJpYnV0ZSxcbiAgICBjbGF1c2VSZWR1Y2VzUmVzdWx0U2V0U2l6ZSxcbiAgICB3YXJuRGVwcmVjYXRlZCxcbiAgICBtYXBWYWx1ZXMsXG4gICAgbm9ybWFsaXplTW9kZWxSZWZlcmVuY2UsXG59O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils.js\n"); + + /***/ }) + +diff --git a/node_modules/redux-orm/dist/redux-orm.min.js b/node_modules/redux-orm/dist/redux-orm.min.js +index f76f1b4..3b207b3 100644 +--- a/node_modules/redux-orm/dist/redux-orm.min.js ++++ b/node_modules/redux-orm/dist/redux-orm.min.js +@@ -1,2 +1,2 @@ +-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ReduxOrm",[],t):"object"==typeof exports?exports.ReduxOrm=t():e.ReduxOrm=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=35)}([function(e,t){function n(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:r,n=null,s=null;return function(){return o(t,n,arguments)||(s=e.apply(null,arguments)),n=arguments,s}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;rthis._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return n(e)},e}(),u=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;a(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return n(e)},e}(),l=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),d=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;a(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),h=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;a(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoCacheObject=c,e.FifoMapCache=d,e.FifoObjectCache=c,e.FlatCacheObject=r,e.FlatMapCache=l,e.FlatObjectCache=r,e.LruCacheObject=h,e.LruMapCache=h,e.LruObjectCache=u,e.createStructuredCachedSelector=function(e){return t.createStructuredSelector(e,i)},e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(4))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=a},function(e,t,n){var r=n(6);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(6);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n=c?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(25);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,s=e==e,i=r(e),a=void 0!==t,c=null===t,u=t==t,l=r(t);if(!c&&!l&&!i&&e>t||i&&a&&u&&!c&&!l||o&&a&&u||!n&&u||!s)return 1;if(!o&&!i&&!l&&e=arguments.length)?c=n[a]:(c=arguments[s],s+=1),o[a]=c,u(c)||(i-=1),a+=1}return i<=0?r.apply(this,o):d(i,e(t,o,r))}}(e,[],t))})),p=l((function(e){return f(e.length,e)})),m={"@@functional/placeholder":!0};function y(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}var g="@@_______immutableOpsOwnerID";function b(e,t){return!!t&&e[g]===t}var w="function"==typeof Symbol?function(){return Symbol("ownerID")}:function(){return{}};function v(e,t){return t&&function(e,t){Object.defineProperty(e,g,{value:t,configurable:!0,enumerable:!1})}(e,t),e}function _(e){return e instanceof Array?e:[e]}var M=".";function O(e){return"string"==typeof e?-1===e.indexOf(M)?[e]:e.split(M):e}function N(e,t,n){return n[e]=t,n}function S(e,t,n){var r=_(t);return e?r.forEach((function(t){y(t,(function(t,r){var o;e&&n.hasOwnProperty(r)?(o="object"===c()(t)?S(e,[t],n[r]):t,n[r]=o):n[r]=t}))})):Object.assign.apply(Object,[n].concat(i()(r))),n}var k=S.bind(null,!1),E=S.bind(null,!0);function j(e,t){return _(e).forEach((function(e){delete t[e]})),t}function x(e,t,n){return e[n]!==t[n]}function F(e,t,n,r){if(b(r,t))return S(e,n,r);var o=_(n),s=!1,i=r,a=function(){s||(s=!0,v(i=Object.assign({},r),t))};return o.forEach((function(n){y(n,(function(o,s){if(e&&r.hasOwnProperty(s)){var u=i[s];if("object"===c()(o)&&!(o instanceof Array)){if(x(i,n,s)){var l=F(e,t,o,u);l!==u&&(a(),i[s]=l)}return!0}}x(i,n,s)&&(a(),i[s]=o)}))})),i}var A=F.bind(null,!0);function C(e,t,n,r){if(b(r,e))return N(t,n,r);if(r[t]===n)return r;var o=function(e){for(var t=new Array(e.length),n=0;n=0&&e.length%1==0}(r))return C(e,t,n,r);if(b(r,e))return N(t,n,r);if(r[t]===n)return r;var o=Object.assign({},r);return v(o,e),o[t]=n,o}},B={merge:k,deepMerge:E,omit:j,setIn:function(e,t,n){for(var r=O(e),o=r.length,s=!1,i=0,a=n,u=r[i];!s;)if(i===o-1)a[u]=t,s=!0;else{var l=c()(a[u]);if("undefined"===l){var d={};v(d,null),a[u]=d}else if("object"!==l){var h="".concat(r[i-1],".").concat(u);throw new Error("A non-object value was encountered when traversing setIn path at ".concat(h,"."))}a=a[u],u=r[++i]}return n},insert:D,push:function(e,t){var n=_(e);return t.push.apply(t,i()(n)),t},filter:I,splice:R,set:N};var U=function(){var e=Object.assign({},P);y(e,(function(t,n){e[n]=p(t.bind(null,null))}));var t=Object.assign({},B);y(t,(function(e,n){t[n]=p(e)}));var n=Object.assign({},P);return y(n,(function(e,t){n[t]=p(e)})),Object.assign(e,{mutable:t,batch:n,batched:function(e,t){var n,r;"function"==typeof e?(r=e,n=w()):(n=e,r=t);var o=Object.assign({},P);return y(o,(function(e,t){o[t]=p(e.bind(null,n))})),r(o)},__:m,getBatchToken:w})}();const V="REDUX_ORM_UPDATE",q="REDUX_ORM_DELETE",z="REDUX_ORM_CREATE",L="REDUX_ORM_FILTER",Q="REDUX_ORM_EXCLUDE",X="SUCCESS",H=Symbol("REDUX_ORM_ALL_INSTANCES"),Y=(e,t)=>void 0===t?H:t;function K(e){return("function"==typeof console.warn?console.warn.bind(console):console.log.bind(console))(e)}function G(e,t){return e+((n=t).charAt(0).toUpperCase()+n.slice(1));var n}function J(e){return`from${e}Id`}function W(e){return`to${e}Id`}function Z(e){return function(...t){return this.getQuerySet()[e](...t)}}function ee(e){return function(){return this.getQuerySet()[e]}}function te(e,t){const n=t.sharedMethods.slice();!function(e,t){let n=e;for(;n!==Function.prototype;)t(n),n=Object.getPrototypeOf(n)}(t,t=>{for(let r=0;r(e[n]=t(r),e),{})}function ie(e){return e&&"string"!=typeof e?e.modelName:e}const ae=function(){function e(e,t,n){Object.assign(this,{modelClass:e,clauses:t||[]}),this._opts=n}e.addSharedMethod=function(e){this.sharedMethods=this.sharedMethods.concat(e)};var t=e.prototype;return t._new=function(e,t){const n={...this._opts,...t};return new this.constructor(this.modelClass,e,n)},t.toString=function(){return this._evaluate(),`QuerySet contents:\n - ${this.rows.map(({id:e})=>this.modelClass.withId(e).toString()).join("\n - ")}`},t.toRefArray=function(){return this._evaluate()},t.toModelArray=function(){const{modelClass:e}=this;return this._evaluate().map(t=>new e(t))},t.count=function(){return this._evaluate(),this.rows.length},t.exists=function(){return Boolean(this.count())},t.at=function(e){const{modelClass:t}=this,n=this._evaluate();if(e>=0&&ee._onDelete()),e.applyUpdate({action:q,query:{table:t,clauses:this.clauses}}),this._evaluated=!1},t.map=function(){throw new Error("`QuerySet.prototype.map` has been removed. Call `.toModelArray()` or `.toRefArray()` first to map.")},t.forEach=function(){throw new Error("`QuerySet.prototype.forEach` has been removed. Call `.toModelArray()` or `.toRefArray()` first to iterate.")},o()(e,[{key:"withModels",get:function(){throw new Error("`QuerySet.prototype.withModels` has been removed. Use `.toModelArray()` or predicate functions that instantiate Models from refs, e.g. `new Model(ref)`.")}},{key:"withRefs",get:function(){K("`QuerySet.prototype.withRefs` has been deprecated. Query building operates on refs only now.")}}]),e}();ae.sharedMethods=["count","at","all","last","first","filter","exclude","orderBy","update","delete"];var ce=ae;var ue=function(){function e(e,t,n,r,o){this.schema=e,this.db=t,this.state=n||t.getEmptyState(),this.initialState=this.state,this.withMutations=Boolean(r),this.batchToken=o||w(),this.modelData={},this.models=e.getModelClasses(),this.sessionBoundModels=this.models.map(e=>{function t(){return Reflect.construct(e,arguments,t)}return Reflect.setPrototypeOf(t.prototype,e.prototype),Reflect.setPrototypeOf(t,e),Object.defineProperty(this,e.modelName,{get:()=>t}),t.connect(this),t})}var t=e.prototype;return t.getDataForModel=function(e){return this.modelData[e]||(this.modelData[e]={}),this.modelData[e]},t.getModelData=function(){return this.modelData},t.markAccessed=function(e,t){const n=this.getDataForModel(e);n.accessedInstances||(n.accessedInstances={}),t.forEach(e=>{n.accessedInstances[e]=!0})},t.markFullTableScanned=function(e){this.getDataForModel(e).fullTableScanned=!0},t.markAccessedIndexes=function(e){e.forEach(([e,t,n])=>{const r=this.getDataForModel(e);r.accessedIndexes||(r.accessedIndexes={}),r.accessedIndexes[t]=[...r.accessedIndexes[t]||[],n]})},t.applyUpdate=function(e){const t=this._getTransaction(e),n=this.db.update(e,t,this.state),{status:r,state:o,payload:s}=n;if(r!==X)throw new Error(`Applying update failed with status ${r}. Payload: ${s}`);return this.state=o,s},t.query=function(e){const t=this.db.query(e,this.state);return this._markAccessedByQuery(e,t),t},t._getTransaction=function(e){const{withMutations:t}=this,{action:n}=e;let{batchToken:r}=this;return[V,q].includes(n)&&(r=w()),{batchToken:r,withMutations:t}},t._markAccessedByQuery=function(e,t){const{table:n,clauses:r}=e,{rows:o}=t,{idAttribute:s}=this[n],i=new Set(o.map(e=>e[s])),a=r.some(e=>!!oe(e,s)&&(i.add(e.payload[s]),!0)),c=[],{indexes:u}=this.state[n];r.forEach(e=>{Object.keys(u).forEach(t=>{if(!oe(e,t))return;const r=e.payload[t];c.push([n,t,r])})}),a?this.markAccessed(n,i):c.length?(this.markAccessed(n,i),this.markAccessedIndexes(c)):this.markFullTableScanned(n)},t.getNextState=function(){return K("`Session.prototype.getNextState` has been deprecated. Access the `Session.prototype.state` property instead."),this.state},t.reduce=function(){throw new Error("`Session.prototype.reduce` has been removed. The Redux integration API is now decoupled from ORM and Session - see the 0.9 migration guide in the GitHub repo.")},o()(e,[{key:"accessedModelInstances",get:function(){return Object.entries(this.getModelData()).reduce((e,[t,n])=>(n.accessedInstances&&(e[t]=n.accessedInstances),e),{})}},{key:"fullTableScannedModels",get:function(){return Object.entries(this.getModelData()).reduce((e,[t,n])=>(n.fullTableScanned&&e.push(t),e),[])}},{key:"accessedIndexes",get:function(){return Object.entries(this.getModelData()).reduce((e,[t,n])=>(n.accessedIndexes&&(e[t]=n.accessedIndexes),e),{})}}]),e}(),le=n(1),de=n.n(le);var he=function(e){function t(){return e.apply(this,arguments)||this}de()(t,e);var n=t.prototype;return n.installForwardsDescriptor=function(){Object.defineProperty(this.model.prototype,this.fieldName,this.field.createForwardsDescriptor(this.fieldName,this.model,this.toModel,this.throughModel))},n.installForwardsVirtualField=function(){this.model.virtualFields[this.fieldName]=this.field.createForwardsVirtualField(this.fieldName,this.model,this.toModel,this.throughModel)},n.installBackwardsDescriptor=function(){if(Object.getOwnPropertyDescriptor(this.toModel.prototype,this.backwardsFieldName))throw new Error((e=this.model.modelName,t=this.fieldName,n=this.toModel.modelName,[`Reverse field ${this.backwardsFieldName} already defined`,` on model ${n}. To fix, set a custom related`,` name on ${e}.${t}.`].join("")));var e,t,n;Object.defineProperty(this.toModel.prototype,this.backwardsFieldName,this.field.createBackwardsDescriptor(this.fieldName,this.model,this.toModel,this.throughModel))},n.installBackwardsVirtualField=function(){this.toModel.virtualFields[this.backwardsFieldName]=this.field.createBackwardsVirtualField(this.fieldName,this.model,this.toModel,this.throughModel)},t}(function(){function e(e){this.field=e.field,this.fieldName=e.fieldName,this.model=e.model,this.orm=e.orm,this.field.references(this.model)&&(this.field.toModelName="this")}return e.prototype.run=function(){this.installForwardsDescriptor(),this.field.installsForwardsVirtualField&&this.installForwardsVirtualField(),this.field.installsBackwardsDescriptor&&this.installBackwardsDescriptor(),this.field.installsBackwardsVirtualField&&this.installBackwardsVirtualField()},o()(e,[{key:"toModel",get:function(){if(void 0===this._toModel){const{toModelName:e}=this.field;this._toModel=e?"this"===e?this.model:this.orm.get(e):null}return this._toModel}},{key:"throughModel",get:function(){if(void 0===this._throughModel){const e=this.field.getThroughModelName(this.fieldName,this.model);this._throughModel=e?this.orm.get(e):null}return this._throughModel}},{key:"backwardsFieldName",get:function(){return this.field.getBackwardsFieldName(this.model)}}]),e}());var fe=function(){function e(){}var t=e.prototype;return t.getClass=function(){return this.constructor},t.references=function(e){return!1},t.getThroughModelName=function(e,t){return null},o()(e,[{key:"installerClass",get:function(){return he}},{key:"installsForwardsVirtualField",get:function(){return!1}},{key:"installsBackwardsDescriptor",get:function(){return!1}},{key:"installsBackwardsVirtualField",get:function(){return!1}},{key:"index",get:function(){return!1}}]),e}();function pe(e,t){return{get(){const{session:{[t]:n}}=this.getClass(),{[e]:r}=this._fields;return n.withId(r)},set(t){this.update({[e]:ne(t)})}}}function me(e,t,n,r,o){return{get(){const{session:{[e]:s,[t]:i,[n]:a}}=this.getClass(),c=o?i:s,u=o?s:i,l=o?r.to:r.from,d=o?r.from:r.to,h=this.getId(),f=a.filter({[l]:h}),p=new Set(f.toRefArray().map(e=>e[d])),m=u.filter(e=>p.has(e[u.idAttribute]));return m.add=function(...e){const t=new Set(e.map(ne)),n=f.filter(e=>t.has(e[d]));if(n.exists()){const e=n.toRefArray().map(e=>e[d]);throw new Error(`Tried to add already existing ${u.modelName} id(s) ${e} to the ${c.modelName} instance with id ${h}`)}t.forEach(e=>{a.create({[d]:e,[l]:h})})},m.clear=function(){f.delete()},m.remove=function(...e){const t=new Set(e.map(ne)),n=f.filter(e=>t.has(e[d]));if(n.count()!==t.size){const e=n.toRefArray().map(e=>e[d]),r=[...t].filter(t=>!e.includes(t));throw new Error(`Tried to delete non-existing ${u.modelName} id(s) ${r} from the ${c.modelName} instance with id ${h}`)}n.delete()},m},set(){throw new Error("Tried setting a M2M field. Please use the related QuerySet methods add, remove and clear.")}}}var ye=function(e){function t(t){var n;return(n=e.call(this)||this).opts=t||{},n.opts.hasOwnProperty("getDefault")&&(n.getDefault=n.opts.getDefault),n}return de()(t,e),t.prototype.createForwardsDescriptor=function(e,t){return function(e){return{get(){return this._fields[e]},set(t){return this.set(e,t)},enumerable:!0,configurable:!0}}(e)},t}(fe);var ge=function(e){function t(...t){var n;if(n=e.call(this)||this,1===t.length&&"object"==typeof t[0]){const e=t[0];n.toModelName=ie(e.to),n.relatedName=e.relatedName,n.through=ie(e.through),n.throughFields=e.throughFields,n.as=e.as}else[n.toModelName,n.relatedName]=[ie(t[0]),t[1]];return n}de()(t,e);var n=t.prototype;return n.getBackwardsFieldName=function(e){return this.relatedName||e.modelName.toLowerCase()+"Set"},n.createBackwardsVirtualField=function(e,t,n,r){return new(this.getClass())(t.modelName,e)},n.references=function(e){return this.toModelName===e.modelName},o()(t,[{key:"installsBackwardsVirtualField",get:function(){return!0}},{key:"installsBackwardsDescriptor",get:function(){return!0}},{key:"installerClass",get:function(){return function(e){function t(){return e.apply(this,arguments)||this}return de()(t,e),t.prototype.installForwardsDescriptor=function(){Object.defineProperty(this.model.prototype,this.field.as||this.fieldName,this.field.createForwardsDescriptor(this.fieldName,this.model,this.toModel,this.throughModel))},t}(he)}}]),t}(fe);var be=function(e){function t(){return e.apply(this,arguments)||this}de()(t,e);var n=t.prototype;return n.createForwardsDescriptor=function(e,t,n,r){return pe(e,n.modelName)},n.createBackwardsDescriptor=function(e,t,n,r){return o=e,s=t.modelName,{get(){const{session:{[s]:e}}=this.getClass();return e.filter({[o]:this.getId()})},set(){throw new Error("Can't mutate a reverse many-to-one relation.")}};var o,s},o()(t,[{key:"index",get:function(){return!0}}]),t}(ge);var we=function(e){function t(){return e.apply(this,arguments)||this}de()(t,e);var n=t.prototype;return n.getDefault=function(){return[]},n.getThroughModelName=function(e,t){return this.through||G(t.modelName,e)},n.createForwardsDescriptor=function(e,t,n,r){return me(t.modelName,n.modelName,r.modelName,this.getThroughFields(e,t,n,r),!1)},n.createBackwardsDescriptor=function(e,t,n,r){return me(t.modelName,n.modelName,r.modelName,this.getThroughFields(e,t,n,r),!0)},n.createBackwardsVirtualField=function(e,t,n,r){return new(this.getClass())({to:t.modelName,relatedName:e,through:r.modelName,throughFields:this.getThroughFields(e,t,n,r)})},n.createForwardsVirtualField=function(e,t,n,r){return new(this.getClass())({to:n.modelName,relatedName:e,through:this.through,throughFields:this.getThroughFields(e,t,n,r),as:this.as})},n.getThroughFields=function(e,t,n,r){if(this.throughFields){const[e,t]=this.throughFields,o=r.fields[e];return{to:o.references(n)?e:t,from:o.references(n)?t:e}}if(t.modelName===n.modelName)return{to:W(n.modelName),from:J(t.modelName)};const o=e=>Object.keys(r.fields).find(t=>r.fields[t].references(e));return{to:o(n),from:o(t)}},o()(t,[{key:"installsForwardsVirtualField",get:function(){return!0}}]),t}(ge);var ve=function(e){function t(){return e.apply(this,arguments)||this}de()(t,e);var n=t.prototype;return n.getBackwardsFieldName=function(e){return this.relatedName||e.modelName.toLowerCase()},n.createForwardsDescriptor=function(e,t,n,r){return function(...e){return pe(...e)}(e,n.modelName)},n.createBackwardsDescriptor=function(e,t,n,r){return o=e,s=t.modelName,{get(){const{session:{[s]:e}}=this.getClass();return e.get({[o]:this.getId()})},set(){throw new Error("Can't mutate a reverse one-to-one relation.")}};var o,s},t}(ge);function _e(e){return new ye(e)}function Me(...e){return new be(...e)}function Oe(...e){return new we(...e)}function Ne(...e){return new ve(...e)}function Se(e){const t=e.getClass(),{idAttribute:n,modelName:r}=t;return{table:r,clauses:[{type:L,payload:{[n]:e.getId()}}]}}const ke=function(){function e(e){this._initFields(e)}var t=e.prototype;return t._initFields=function(e){const t=Object(e);this._fields={...t},Object.keys(t).forEach(e=>{e in this||Object.defineProperty(this,e,{get:()=>this._fields[e],set:t=>this.set(e,t),configurable:!0,enumerable:!0})})},e.toString=function(){return`ModelClass: ${this.modelName}`},e.options=function(){return{}},e.markAccessed=function(e){if(void 0===this._session)throw new Error([`Tried to mark rows of the ${this.modelName} model as accessed without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].markAccessed\` instead.`].join(""));this.session.markAccessed(this.modelName,e)},e.markFullTableScanned=function(){if(void 0===this._session)throw new Error([`Tried to mark the ${this.modelName} model as full table scanned without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].markFullTableScanned\` instead.`].join(""));this.session.markFullTableScanned(this.modelName)},e.markAccessedIndexes=function(e){if(void 0===this._session)throw new Error([`Tried to mark indexes for the ${this.modelName} model as accessed without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].markAccessedIndexes\` instead.`].join(""));this.session.markAccessedIndexes(e.map(([e,t])=>[this.modelName,e,t]))},e.connect=function(e){if(!(e instanceof ue))throw new Error("A model can only be connected to instances of Session.");this._session=e},e.getQuerySet=function(){const{querySetClass:e}=this;return new e(this)},e.invalidateClassCache=function(){this.isSetUp=void 0,this.virtualFields={}},e.tableOptions=function(){return"function"==typeof this.backend?(K("`Model.backend` has been deprecated. Please rename to `.options`."),this.backend()):this.backend?(K("`Model.backend` has been deprecated. Please rename to `.options`."),this.backend):"function"==typeof this.options?this.options():this.options},e.create=function(e){if(void 0===this._session)throw new Error([`Tried to create a ${this.modelName} model instance without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].create\` instead.`].join(""));const t={...e},n={},r=Object.keys(this.fields),o=Object.keys(this.virtualFields);r.forEach(r=>{const o=this.fields[r],s=e.hasOwnProperty(r);if(o instanceof we)s&&(n[r]=e[r],o.as||delete t[r]);else if(s){const n=e[r];t[r]=ne(n)}else o.getDefault&&(t[r]=o.getDefault())}),o.forEach(r=>{if(!n.hasOwnProperty(r)){const o=this.virtualFields[r];e.hasOwnProperty(r)&&o instanceof we&&(n[r]=e[r],delete t[r])}});const s=new this(this.session.applyUpdate({action:z,table:this.modelName,payload:t}));return s._refreshMany2Many(n),s},e.upsert=function(e){if(void 0===this.session)throw new Error([`Tried to upsert a ${this.modelName} model instance without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].upsert\` instead.`].join(""));const{idAttribute:t}=this;if(e.hasOwnProperty(t)){const n=e[t];if(this.idExists(n)){const t=this.withId(n);return t.update(e),t}}return this.create(e)},e.withId=function(e){return this.get({[this.idAttribute]:e})},e.idExists=function(e){return this.exists({[this.idAttribute]:e})},e.exists=function(e){if(void 0===this.session)throw new Error([`Tried to check if a ${this.modelName} model instance exists without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].exists\` instead.`].join(""));return Boolean(this._findDatabaseRows(e).length)},e.get=function(e){const t=this._findDatabaseRows(e);if(0===t.length)return null;if(t.length>1)throw new Error(`Expected to find a single row in \`${this.modelName}.get\`. Found ${t.length}.`);return new this(t[0])},t.getClass=function(){return this.constructor},t.getId=function(){return this._fields[this.getClass().idAttribute]},e._findDatabaseRows=function(e){const t={table:this.modelName};return e&&(t.clauses=[{type:L,payload:e}]),this.session.query(t).rows},t.toString=function(){const e=this.getClass();return`${e.modelName}: {${Object.keys(e.fields).map(t=>{if(e.fields[t]instanceof we){return`${t}: [${this[t].toModelArray().map(e=>e.getId()).join(", ")}]`}return`${t}: ${this._fields[t]}`}).join(", ")}}`},t.equals=function(e){return function(e,t){const n=Object.entries(Object(e));return n.length===Object.keys(t).length&&n.every(([e,n])=>t.hasOwnProperty(e)&&t[e]===n)}(this._fields,e._fields)},t.set=function(e,t){this.update({[e]:t})},t.update=function(e){const t=this.getClass();if(void 0===t.session)throw new Error([`Tried to update a ${t.modelName} model instance without a session. `,"You cannot call `.update` on an instance that you did not receive from the database."].join(""));const n={...e},{fields:r,virtualFields:o}=t,s={};for(const e in n){if(r.hasOwnProperty(e)){const t=r[e];t instanceof be||t instanceof ve?n[e]=ne(n[e]):t instanceof we&&(s[e]=n[e],t.as||delete n[e])}else if(o.hasOwnProperty(e)){o[e]instanceof we&&(s[e]=n[e],delete n[e])}}const i={...this._fields,...n},a=new t(i);this.equals(a)||(this._initFields(i),t.session.applyUpdate({action:V,query:Se(this),payload:n})),this._refreshMany2Many(s)},t.refreshFromState=function(){this._initFields(this.ref)},t.delete=function(){const e=this.getClass();if(void 0===e.session)throw new Error([`Tried to delete a ${e.modelName} model instance without a session. `,"You cannot call `.delete` on an instance that you did not receive from the database."].join(""));this._onDelete(),e.session.applyUpdate({action:q,query:Se(this)})},t._refreshMany2Many=function(e){const t=this.getClass(),{fields:n,virtualFields:r,modelName:o}=t;Object.keys(e).forEach(s=>{const i=!n.hasOwnProperty(s),a=r[s],c=e[s];if(!Array.isArray(c))throw new TypeError(`Failed to resolve many-to-many relationship: ${o}[${s}] must be an array (passed: ${c})`);const u=c.map(ne),l=[...new Set(u)];if(u.length!==l.length)throw new Error(`Found duplicate id(s) when passing "${u}" to ${t.modelName}.${s} value`);const d=a.through||G(t.modelName,s),h=t.session[d];let f,p;i?({from:p,to:f}=a.throughFields):({from:f,to:p}=a.throughFields);const m=function(e,t){const n=e.filter(e=>t.includes(e)),r=e.filter(e=>!n.includes(e)),o=t.filter(e=>!n.includes(e));return r.length||o.length?{delete:r,add:o}:null}(h.filter(e=>e[f]===this[t.idAttribute]).toRefArray().map(e=>e[p]),u);if(m){const{delete:e,add:t}=m;e.length>0&&this[a.as||s].remove(...e),t.length>0&&this[a.as||s].add(...t)}})},t._onDelete=function(){const{virtualFields:e}=this.getClass();for(const t in e){const n=e[t];if(n instanceof we){this[n.as||t].clear()}else if(n instanceof be){const e=this[t];e.exists()&&e.update({[n.relatedName]:null})}else n instanceof ve&&null!==this[t]&&(this[t][n.relatedName]=null)}},e.hasId=function(e){return console.warn("`Model.hasId` has been deprecated. Please use `Model.idExists` instead."),this.idExists(e)},t.getNextState=function(){throw new Error("`Model.prototype.getNextState` has been removed. See the 0.9 migration guide on the GitHub repo.")},o()(e,[{key:"ref",get:function(){const e=this.getClass();return e._findDatabaseRows({[e.idAttribute]:this.getId()})[0]}}],[{key:"idAttribute",get:function(){if(void 0===this._session)throw new Error([`Tried to get the ${this.modelName} model's id attribute without a session. `,"Create a session using `session = orm.session()` and access ",`\`session["${this.modelName}"].idAttribute\` instead.`].join(""));return this.session.db.describe(this.modelName).idAttribute}},{key:"session",get:function(){return this._session}},{key:"query",get:function(){return this.getQuerySet()}}]),e}();ke.fields={id:_e()},ke.virtualFields={},ke.querySetClass=ce;var Ee=ke,je=n(11),xe=n.n(je),Fe=n(12),Ae=n.n(Fe),Ce=n(13),Ie=n.n(Ce),Re=n(14),De=n.n(Re);const $e={idAttribute:"id",arrName:"items",mapName:"itemsById",fields:{}};var Te=function(){function e(e){Object.assign(this,$e,e)}var t=e.prototype;return t.accessId=function(e,t){return e[this.mapName][t]},t.accessIds=function(e,t){const n=e[this.mapName];return t.map(e=>n[e])},t.idExists=function(e,t){return e[this.mapName].hasOwnProperty(t)},t.accessIdList=function(e){return e[this.arrName]},t.accessList=function(e){return this.accessIds(e,this.accessIdList(e))},t.getMaxId=function(e){return this.getMeta(e,"maxId")},t.setMaxId=function(e,t,n){return this.setMeta(e,t,"maxId",n)},t.nextId=function(e){return e+1},t.getEmptyState=function(){return{...{[this.arrName]:[],[this.mapName]:{}},indexes:Object.keys(this.fields).filter(e=>e!==this.idAttribute).filter(e=>this.fields[e].index).reduce((e,t)=>({...e,[t]:{}}),{}),meta:{}}},t.setMeta=function(e,t,n,r){const{batchToken:o,withMutations:s}=e;if(s){return U.mutable.setIn(["meta",n],r,t)}return U.batch.setIn(o,["meta",n],r,t)},t.getMeta=function(e,t){return e.meta[t]},t.query=function(e,t){if(0===t.length)return this.accessList(e);const{idAttribute:n}=this,r=De()(t,e=>oe(e,n)?1:function({type:e}){return[L,Q].includes(e)}(e)?2:3),o=(t,r)=>{const{type:s,payload:i}=r;if(!t){if(oe(r,n)){const t=i[n],s=Object.keys(i).reduce((e,t)=>(t!==n&&(e[t]=i[t]),e),{}),a=this.idExists(e,t)?[t]:[];return Object.keys(s).length?o(this.accessIds(e,a),{...r,payload:s}):this.accessIds(e,a)}if(s===L&&"object"==typeof i){const t=Object.entries(e.indexes),n=[],s=[];if(t.forEach(([e,t])=>{oe(r,e)&&t.hasOwnProperty(i[e])&&(n.push(t[i[e]]),s.push(e))}),n.length){const t=n.pop(),a=n.reduce((e,t)=>{const n=new Set(t);return e.filter(Set.prototype.has,n)},t),c=Object.keys(i).reduce((e,t)=>(s.includes(t)||(e[t]=i[t]),e),{});return Object.keys(c).length?o(this.accessIds(e,a),{...r,payload:c}):this.accessIds(e,a)}}return o(this.accessList(e),r)}switch(s){case L:return xe()(t,i);case Q:return Ie()(t,i);case"REDUX_ORM_ORDER_BY":{const[e,n]=i;return Ae()(t,e,function(e){if(void 0===e)return;const t=e=>["desc",!1].includes(e)?"desc":"asc";return Array.isArray(e)?e.map(t):t(e)}(n))}default:return t}};return r.reduce(o,void 0)},t.insert=function(e,t,n){const{batchToken:r,withMutations:o}=e,s=n.hasOwnProperty(this.idAttribute);let i=t;const[a,c]=function(e,t){let n,r,o=e;return void 0===o&&(o=-1),void 0===t?(n=o+1,r=n):(n=Math.max(o+1,t),r=t),[n,r]}(this.getMaxId(t),n[this.idAttribute]);i=this.setMaxId(e,t,a);const u=s?n:U.batch.set(r,this.idAttribute,c,n),l=Object.keys(i.indexes).filter(e=>n.hasOwnProperty(e)&&null!==n[e]).map(e=>[e,n[e]]);if(o)return U.mutable.push(c,i[this.arrName]),U.mutable.set(c,u,i[this.mapName]),l.forEach(([e,t])=>{const n=i.indexes[e];n.hasOwnProperty(t)?U.mutable.push(c,n[t]):U.mutable.set(t,[c],n)}),{state:i,created:u};const d=U.batch.merge(r,l.reduce((e,[t,n])=>(e[t]=U.batch.merge(r,{[n]:U.batch.push(r,c,e[t][n]||[])},e[t]),e),{...i.indexes}),i.indexes);return{state:U.batch.merge(r,{[this.arrName]:U.batch.push(r,c,i[this.arrName]),[this.mapName]:U.batch.merge(r,{[c]:u},i[this.mapName]),indexes:d},i),created:u}},t.update=function(e,t,n,r){const{batchToken:o,withMutations:s}=e,i=s?U.mutable.set:U.batch.set(o),a=Object.keys(t.indexes).filter(e=>r.hasOwnProperty(e)),c=[],u=[],l=n.reduce((e,t)=>{const n=a.reduce((e,n)=>({...e,[n]:t[n]}),{}),l=(e=>{return(s?U.mutable.merge:U.batch.merge(o))(r,e)})(t),d=a.reduce((e,t)=>({...e,[t]:l[t]}),{}),h=l[this.idAttribute],f=i(h,l,e);return a.forEach(e=>{const{[e]:t}=n,{[e]:r}=d;t!==r&&(null!=t&&u.push([e,t,h]),null!==r&&c.push([e,r,h]))}),f},t[this.mapName]);let d=t.indexes;return s?(u.forEach(([e,t,n])=>{const r=d[e][t],o=r.indexOf(n);U.mutable.splice(o,1,[],r)}),c.forEach(([e,t,n])=>{U.mutable.push(n,d[e][t])})):(c.length&&(d=U.batch.merge(o,c.reduce((e,[t,n,r])=>(e[t]=U.batch.merge(o,{[n]:U.batch.push(o,r,e[t][n]||[])},e[t]),e),{...d}),d)),u.length&&(d=U.batch.merge(o,u.reduce((e,[t,n,r])=>(e[t]=U.batch.merge(o,{[n]:U.batch.filter(o,e=>e!==r,e[t][n])},e[t]),e),{...d}),d))),U.batch.merge(o,{[this.mapName]:l,indexes:d},t)},t.delete=function(e,t,n){const{batchToken:r,withMutations:o}=e,{arrName:s,mapName:i}=this,a=t[s],c=n.map(e=>e[this.idAttribute]);if(o)return c.forEach(e=>{const n=a.indexOf(e);U.mutable.splice(n,1,[],a),U.mutable.omit(e,t[i])}),Object.values(t.indexes).forEach(e=>Object.values(e).forEach(e=>c.forEach(t=>{const n=e.indexOf(t);-1!==n&&U.mutable.splice(n,1,[],e)}))),t;const u=U.batch.merge(r,Object.entries(t.indexes).reduce((e,[t,n])=>(e[t]=U.batch.merge(r,Object.entries(n).reduce((e,[t,n])=>(e[t]=U.batch.filter(r,e=>!c.includes(e),n),e),{...e[t]}),e[t]),e),{...t.indexes}),t.indexes);return U.batch.merge(r,{[s]:U.batch.filter(r,e=>!c.includes(e),t[s]),[i]:U.batch.omit(r,c,t[i]),indexes:U.batch.merge(r,u,t.indexes)},t)},e}();const Pe={};function Be(e,t,n){const{table:r,clauses:o}=t;return{rows:e[r].query(n[r],o)}}function Ue(e,t,n,r){const{action:o,payload:s}=t;let i,a,c;if(o===z){({table:i}=t);const o=e[i],u=r[i],l=o.insert(n,u,s);a=l.state,c=l.created}else{const{query:u}=t;({table:i}=u);const{rows:l}=Be(e,u,r),d=e[i],h=r[i];if(o===V)a=d.update(n,h,l,s),c=Be(e,u,r).rows;else{if(o!==q)throw new Error(`Database received unknown update type: ${o}`);a=d.delete(n,h,l),c=l}}const u=function(e,t,n,r){const{batchToken:o,withMutations:s}=n;return s?(r[e]=t,r):U.batch.set(o,e,t,r)}(i,a,n,r);return{status:X,state:u,payload:c}}Object.defineProperty(Pe,"@@_______REDUX_ORM_STATE_FLAG",{enumerable:!0,value:!0});var Ve=function(e){const{tables:t}=e,n=Object.entries(t).reduce((e,[t,n])=>({...e,[t]:new Te(n)}),{});return{getEmptyState:()=>Object.entries(n).reduce((e,[t,n])=>({...e,[t]:n.getEmptyState()}),Pe),query:Be.bind(null,n),update:Ue.bind(null,n),describe:e=>n[e]}};let qe=function(){function e({parent:e,orm:t}){this._parent=e,this._orm=t,this.keySelector=Y}return o()(e,[{key:"cachePath",get:function(){return[...this._parent?this._parent.cachePath:[],this.key]}},{key:"orm",get:function(){return this._orm}},{key:"parent",get:function(){return this._parent}}]),e}(),ze=function(e){function t({model:t,...n}){var r;return(r=e.call(this,n)||this)._model=t,r}return de()(t,e),o()(t,[{key:"resultFunc",get:function(){return(e,t,...n)=>{const{[this._model.modelName]:r}=e;return void 0===t?r.all().toModelArray().map(t=>this.valueForInstance(t,e,...n)):Array.isArray(t)?t.map(t=>this.valueForInstance(r.withId(t),e,...n)):this.valueForInstance(r.withId(t),e,...n)}}},{key:"model",get:function(){return this._model}}]),t}(qe);function Le(e,t){return t}let Qe=function(e){function t({field:t,selector:n,...r}){var o;return(o=e.call(this,r)||this)._field=t,o._selector=n,o}return de()(t,e),t.prototype.createResultFunc=function(e){const{idAttribute:t}=this._parent.toModel;return(n,...r)=>{const o=e(n,...r),s=Le(n,...r),i=e=>null===e?null:e.map(e=>this._selector(n,e[t]));return void 0===s||Array.isArray(s)?o.map(i):i(o)}},o()(t,[{key:"selector",get:function(){return this._selector},set:function(e){this._selector=e}},{key:"key",get:function(){return this._selector}}]),t}(ze),Xe=function(e){function t({model:t,...n}){var r;return(r=e.call(this,n)||this)._model=t,r}return de()(t,e),o()(t,[{key:"key",get:function(){return this._model.modelName}},{key:"dependencies",get:function(){return[this._orm,Le]}},{key:"resultFunc",get:function(){return({[this._model.modelName]:e},t)=>{if(void 0===t)return e.all().toRefArray();if(Array.isArray(t))return t.map(t=>{const n=e.withId(t);return n?n.ref:null});const n=e.withId(t);return n?n.ref:null}}},{key:"model",get:function(){return this._model}}]),t}(qe),He=function(e){function t({field:t,fieldModel:n,accessorName:r,isVirtual:o,...s}){var i;return(i=e.call(this,s)||this)._field=t,i._fieldModel=n,i._accessorName=r,i._isVirtual=o,i}de()(t,e);var n=t.prototype;return n.valueForInstance=function(e,t){if(!e)return null;let n;if(this._parent instanceof Xe)n=e[this._accessorName];else{const{[this._parent.toModelName]:r}=t,o=this._parent.valueForInstance(e,t),s=o?new r(o):null;n=s?s[this._accessorName]:null}return n instanceof Ee?n.ref:n instanceof ce?n.toRefArray():n},n.map=function(e){if(e instanceof Xe)throw this.toModelName===e.model.modelName?new Error(`Cannot select models in a \`map()\` call. If you just want the \`${this._accessorName}\` as a ref array then you can simply drop the \`map()\`. Otherwise make sure you're passing a field selector of the form \`${this.toModelName}.\` or a custom selector instead.`):new Error(`Cannot select \`${e.model.modelName}\` models in this \`map()\` call. Make sure you're passing a field selector of the form \`${this.toModelName}.\` or a custom selector instead.`);if(e instanceof t||e instanceof Qe){if(this.toModelName!==e.model.modelName)throw new Error(`Cannot select fields of the \`${e.model.modelName}\` model in this \`map()\` call. Make sure you're passing a field selector of the form \`${this.toModelName}.\` or a custom selector instead.`)}else if(!e||"function"!=typeof e||!e.recomputations)throw new Error(`\`map()\` requires a selector as an input. Received: ${JSON.stringify(e)} of type ${typeof e}`);if(!(this._field instanceof be||this._field instanceof we))throw new Error("Cannot map selectors for non-collection fields");return new Qe({parent:this,model:this._model,orm:this._orm,field:this._field,selector:e})},o()(t,[{key:"key",get:function(){return this._accessorName}},{key:"dependencies",get:function(){return[this._orm,Le]}},{key:"toModelName",get:function(){return"this"===this._field.toModelName?this._fieldModel.modelName:this._field.toModelName}},{key:"toModel",get:function(){return this._orm.getDatabase().describe(this.toModelName)}}]),t}(ze);function Ye({parent:e,model:t,field:n,fieldModel:r,accessorName:o,orm:s,isVirtual:i}){const a=new He({parent:e,model:t,field:n,fieldModel:r,accessorName:o,orm:s,isVirtual:i});if(!(n instanceof ge))return a;if(e instanceof He&&(e._field instanceof be&&e._isVirtual||e._field instanceof we))throw new Error(`Cannot create a selector for \`${e._accessorName}.${o}\` because \`${e._accessorName}\` is a collection field.`);const{toModelName:c}=n,u=s.get("this"===c?t.modelName:c);return Object.entries(u.fields).forEach(([e,n])=>{const r=n.as||e;Object.defineProperty(a,r,{get:()=>Ye({parent:a,model:t,fieldModel:u,field:n,accessorName:r,orm:s,isVirtual:!1})})}),Object.entries(u.virtualFields).forEach(([e,n])=>{const r=n.as||e;a.hasOwnProperty(r)||Object.defineProperty(a,r,{get:()=>Ye({parent:a,model:t,fieldModel:u,field:n,accessorName:r,orm:s,isVirtual:!0})})}),a}const Ke={createDatabase:Ve},Ge=["indexes","meta"],Je=e=>Ge.includes(e);let We=function(){function e(e){const{createDatabase:t}={...Ke,...e||{}};this.createDatabase=t,this.registry=[],this.implicitThroughModels=[],this.installedFields={},this.stateSelector=e?e.stateSelector:null}var t=e.prototype;return t.register=function(...e){e.forEach(e=>{if(void 0===e.modelName)throw new Error("A model was passed that doesn't have a modelName set");e.invalidateClassCache(),this.registerManyToManyModelsFor(e),this.registry.push(e),Object.defineProperty(this,e.modelName,{get:()=>(this._setupModelPrototypes(this.registry),function({model:e,orm:t}){const n=new Xe({parent:null,orm:t,model:e});return Object.entries(e.fields).forEach(([r,o])=>{const s=o.as||r;Object.defineProperty(n,s,{get:()=>Ye({parent:n,model:e,fieldModel:e,field:o,accessorName:s,orm:t,isVirtual:!1})})}),Object.entries(e.virtualFields).forEach(([r,o])=>{const s=o.as||r;n.hasOwnProperty(s)||Object.defineProperty(n,s,{get:()=>Ye({parent:n,model:e,fieldModel:e,field:o,accessorName:s,orm:t,isVirtual:!0})})}),n}({model:e,orm:this}))})})},t.registerManyToManyModelsFor=function(e){const{fields:t}=e,n=e.modelName;Object.entries(t).forEach(([e,t])=>{if(!(t instanceof we))return;let r;r="this"===t.toModelName?n:t.toModelName;const s=n===r,i=J(n),a=W(r);if(t.through){if(s&&!t.throughFields)throw new Error("Self-referencing many-to-many relationship at "+`"${n}.${e}" using custom `+`model "${t.through}" has no `+"throughFields key. Cannot determine which fields reference the instances partaking in the relationship.")}else{const t=function(e){function t(){return e.apply(this,arguments)||this}return de()(t,e),t}(Ee);t.modelName=G(n,e);const c=function(e){function t(){return e.apply(this,arguments)||this}return de()(t,e),o()(t,[{key:"installsBackwardsVirtualField",get:function(){return!1}},{key:"installsBackwardsDescriptor",get:function(){return!1}}]),t}(be),u=s?c:be;t.fields={id:_e(),[i]:new u(n),[a]:new u(r)},t.invalidateClassCache(),this.implicitThroughModels.push(t)}})},t.get=function(e){const t=this.registry.concat(this.implicitThroughModels),n=Object.values(t).find(t=>t.modelName===e);if(void 0===n)throw new Error(`Did not find model ${e} from registry.`);return n},t.getModelClasses=function(){return this._setupModelPrototypes(this.registry),this._setupModelPrototypes(this.implicitThroughModels),this.registry.concat(this.implicitThroughModels)},t.generateSchemaSpec=function(){return{tables:this.getModelClasses().reduce((e,t)=>{const n=t.modelName,r=t.tableOptions();return Object.keys(r).filter(Je).forEach(e=>{throw new Error(`Reserved keyword \`${e}\` used in ${n}.options.`)}),e[n]={fields:{...t.fields},...r},e},{})}},t.getDatabase=function(){return this.db||(this.db=this.createDatabase(this.generateSchemaSpec())),this.db},t.getEmptyState=function(){return this.getDatabase().getEmptyState()},t.session=function(e){return new ue(this,this.getDatabase(),e)},t.mutableSession=function(e){return new ue(this,this.getDatabase(),e,!0)},t._setupModelPrototypes=function(e){e.filter(e=>!e.isSetUp).forEach(e=>{const{fields:t,modelName:n,querySetClass:r}=e;Object.entries(t).forEach(([t,r])=>{if(!(r instanceof fe))throw new Error(`${n}.${t} is of type "${typeof r}" `+"but must be an instance of Field. Please use the `attr`, `fk`, `oneToOne` and `many` functions to define fields.");this._isFieldInstalled(n,t)||(this._installField(r,t,e),this._setFieldInstalled(n,t))}),te(e,r),e.isSetUp=!0})},t._isFieldInstalled=function(e,t){return!!this.installedFields.hasOwnProperty(e)&&!!this.installedFields[e][t]},t._setFieldInstalled=function(e,t){this.installedFields.hasOwnProperty(e)||(this.installedFields[e]={}),this.installedFields[e][t]=!0},t._installField=function(e,t,n){new(0,e.installerClass)({field:e,fieldName:t,model:n,orm:this}).run()},t.withMutations=function(e){return K("`ORM.prototype.withMutations` has been deprecated. Use `ORM.prototype.mutableSession` instead."),this.mutableSession(e)},t.from=function(e){return K("`ORM.prototype.from` has been deprecated. Use `ORM.prototype.session` instead."),this.session(e)},t.getDefaultState=function(){return K("`ORM.prototype.getDefaultState` has been deprecated. Use `ORM.prototype.getEmptyState` instead."),this.getEmptyState()},t.define=function(){throw new Error("`ORM.prototype.define` has been removed. Please define a Model class.")},e}();var Ze=n(4),et=n(5),tt=n.n(et);const nt=(e,t)=>e===t,rt=e=>e&&"object"==typeof e&&e.hasOwnProperty("@@_______REDUX_ORM_STATE_FLAG"),ot=(e,t,n)=>t.every((t,r)=>rt(t)&&rt(e[r])||n(t,e[r])),st=(e,t,n)=>{const{accessedInstances:r}=e;return Object.entries(r).every(([r,o])=>{if(e.ormState[r]===t[r])return!0;const{mapName:s}=n.getDatabase().describe(r),{[s]:i}=e.ormState[r],{[s]:a}=t[r];return((e,t,n)=>e.every(e=>t[e]===n[e]))(Object.keys(o),i,a)})},it=(e,t)=>{const{accessedIndexes:n}=e;return Object.entries(n).every(([n,r])=>Object.entries(r).every(([r,o])=>o.every(o=>e.ormState[n].indexes[r][o]===t[n].indexes[r][o])))},at=(e,t)=>e.fullTableScannedModels.every(n=>e.ormState[n]===t[n]);function ct(e,t=nt,n){let r={result:null,args:null,ormState:null,fullTableScannedModels:[],accessedInstances:{},accessedIndexes:{}};return(...o)=>{const[s,...i]=o;if(Boolean(r.args)&&ot(r.args,i,t)&&at(r,s)&&it(r,s)&&st(r,s,n))return r.result;const a=n.session(s),c=i.map(e=>rt(e)?a:e),u=e.apply(null,c);return r={args:i,result:u,ormState:s,accessedInstances:a.accessedModelInstances,accessedIndexes:a.accessedIndexes,fullTableScannedModels:a.fullTableScannedModels},u}}function ut(e,t){e.sessionBoundModels.forEach(n=>{"function"==typeof n.reducer&&n.reducer(t,n,e)})}function lt(e,t=ut){return(n,r)=>{const o=e.session(n||e.getEmptyState());return t(o,r),o.state}}function dt(e){return e instanceof We?e:e instanceof qe&&e._orm}const ht=new Map,ft=Symbol.for("REDUX_ORM_SELECTOR");function pt(e){if("function"==typeof e)return e;if(e instanceof We)return e.stateSelector;if(e instanceof Qe&&(e.selector=pt(e.selector)),e instanceof qe){const{orm:t,cachePath:n}=e;let r;ht.has(t)||ht.set(t,new Map),r=ht.get(t);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:r,n=null,s=null;return function(){return o(t,n,arguments)||(s=e.apply(null,arguments)),n=arguments,s}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;rthis._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return n(e)},e}(),u=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;a(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return n(e)},e}(),l=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),d=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;a(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),h=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;a(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoMapCache=d,e.FifoObjectCache=c,e.FlatMapCache=l,e.FlatObjectCache=r,e.LruMapCache=h,e.LruObjectCache=u,e.createCachedSelector=i,e.createStructuredCachedSelector=function(e){return t.createStructuredSelector(e,i)},e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(5))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=a},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(7);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(7);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n=c?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(27);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,s=e==e,i=r(e),a=void 0!==t,c=null===t,u=t==t,l=r(t);if(!c&&!l&&!i&&e>t||i&&a&&u&&!c&&!l||o&&a&&u||!n&&u||!s)return 1;if(!o&&!i&&!l&&e=arguments.length)?c=n[a]:(c=arguments[s],s+=1),o[a]=c,u(c)||(i-=1),a+=1}return i<=0?r.apply(this,o):d(i,e(t,o,r))}}(e,[],t))})),p=l((function(e){return f(e.length,e)})),m={"@@functional/placeholder":!0};function y(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function g(e,t){return!!t&&e["@@_______immutableOpsOwnerID"]===t}var b="function"==typeof Symbol?function(){return Symbol("ownerID")}:function(){return{}};function w(e,t){return t&&function(e,t){Object.defineProperty(e,"@@_______immutableOpsOwnerID",{value:t,configurable:!0,enumerable:!1})}(e,t),e}function v(e){return e instanceof Array?e:[e]}function _(e){return"string"==typeof e?-1===e.indexOf(".")?[e]:e.split("."):e}function M(e,t,n){return n[e]=t,n}function O(e,t,n){var r=v(t);return e?r.forEach((function(t){y(t,(function(t,r){var o;e&&n.hasOwnProperty(r)?(o="object"===c()(t)?O(e,[t],n[r]):t,n[r]=o):n[r]=t}))})):Object.assign.apply(Object,[n].concat(i()(r))),n}var x=O.bind(null,!1),N=O.bind(null,!0);function S(e,t){return v(e).forEach((function(e){delete t[e]})),t}function k(e,t,n){return e[n]!==t[n]}function E(e,t,n,r){if(g(r,t))return O(e,n,r);var o=v(n),s=!1,i=r,a=function(){s||(s=!0,w(i=Object.assign({},r),t))};return o.forEach((function(n){y(n,(function(o,s){if(e&&r.hasOwnProperty(s)){var u=i[s];if("object"===c()(o)&&!(o instanceof Array)){if(k(i,n,s)){var l=E(e,t,o,u);l!==u&&(a(),i[s]=l)}return!0}}k(i,n,s)&&(a(),i[s]=o)}))})),i}var j=E.bind(null,!0);function F(e,t,n,r){if(g(r,e))return M(t,n,r);if(r[t]===n)return r;var o=function(e){for(var t=new Array(e.length),n=0;n=0&&e.length%1==0}(r))return F(e,t,n,r);if(g(r,e))return M(t,n,r);if(r[t]===n)return r;var o=Object.assign({},r);return w(o,e),o[t]=n,o}},$={merge:x,deepMerge:N,omit:S,setIn:function(e,t,n){for(var r=_(e),o=r.length,s=!1,i=0,a=n,u=r[i];!s;)if(i===o-1)a[u]=t,s=!0;else{var l=c()(a[u]);if("undefined"===l){var d={};w(d,null),a[u]=d}else if("object"!==l){var h="".concat(r[i-1],".").concat(u);throw new Error("A non-object value was encountered when traversing setIn path at ".concat(h,"."))}a=a[u],u=r[++i]}return n},insert:I,push:function(e,t){var n=v(e);return t.push.apply(t,i()(n)),t},filter:A,splice:C,set:M};var P=function(){var e=Object.assign({},T);y(e,(function(t,n){e[n]=p(t.bind(null,null))}));var t=Object.assign({},$);y(t,(function(e,n){t[n]=p(e)}));var n=Object.assign({},T);return y(n,(function(e,t){n[t]=p(e)})),Object.assign(e,{mutable:t,batch:n,batched:function(e,t){var n,r;"function"==typeof e?(r=e,n=b()):(n=e,r=t);var o=Object.assign({},T);return y(o,(function(e,t){o[t]=p(e.bind(null,n))})),r(o)},__:m,getBatchToken:b})}();const B="REDUX_ORM_UPDATE",U="REDUX_ORM_DELETE",V="REDUX_ORM_FILTER",q="REDUX_ORM_EXCLUDE",z=Symbol("REDUX_ORM_ALL_INSTANCES"),L=(e,t)=>void 0===t?z:t;function Q(e){return("function"==typeof console.warn?console.warn.bind(console):console.log.bind(console))(e)}function X(e,t){return e+((n=t).charAt(0).toUpperCase()+n.slice(1));var n}function H(e){return`from${e}Id`}function Y(e){return`to${e}Id`}function K(e){return function(...t){return this.getQuerySet()[e](...t)}}function G(e){return function(){return this.getQuerySet()[e]}}function J(e,t){const n=t.sharedMethods.slice();!function(e,t){let n=e;for(;n!==Function.prototype;)t(n),n=Object.getPrototypeOf(n)}(t,t=>{for(let r=0;r(e[n]=t(r),e),{})}function ne(e){return e&&"string"!=typeof e?e.modelName:e}const re=function(){function e(e,t,n){Object.assign(this,{modelClass:e,clauses:t||[]}),this._opts=n}e.addSharedMethod=function(e){this.sharedMethods=this.sharedMethods.concat(e)};var t=e.prototype;return t._new=function(e,t){const n={...this._opts,...t};return new this.constructor(this.modelClass,e,n)},t.toString=function(){this._evaluate();return"QuerySet contents:\n - "+this.rows.map(({id:e})=>this.modelClass.withId(e).toString()).join("\n - ")},t.toRefArray=function(){return this._evaluate()},t.toModelArray=function(){const{modelClass:e}=this;return this._evaluate().map(t=>new e(t))},t.count=function(){return this._evaluate(),this.rows.length},t.exists=function(){return Boolean(this.count())},t.at=function(e){const{modelClass:t}=this,n=this._evaluate();if(e>=0&&ee._onDelete()),e.applyUpdate({action:U,query:{table:t,clauses:this.clauses}}),this._evaluated=!1},t.map=function(){throw new Error("`QuerySet.prototype.map` has been removed. Call `.toModelArray()` or `.toRefArray()` first to map.")},t.forEach=function(){throw new Error("`QuerySet.prototype.forEach` has been removed. Call `.toModelArray()` or `.toRefArray()` first to iterate.")},o()(e,[{key:"withModels",get:function(){throw new Error("`QuerySet.prototype.withModels` has been removed. Use `.toModelArray()` or predicate functions that instantiate Models from refs, e.g. `new Model(ref)`.")}},{key:"withRefs",get:function(){Q("`QuerySet.prototype.withRefs` has been deprecated. Query building operates on refs only now.")}}]),e}();re.sharedMethods=["count","at","all","last","first","filter","exclude","orderBy","update","delete"];var oe=re;var se=function(){function e(e,t,n,r,o){this.schema=e,this.db=t,this.state=n||t.getEmptyState(),this.initialState=this.state,this.withMutations=Boolean(r),this.batchToken=o||b(),this.modelData={},this.models=e.getModelClasses(),this.sessionBoundModels=this.models.map(e=>{function t(){return Reflect.construct(e,arguments,t)}return Reflect.setPrototypeOf(t.prototype,e.prototype),Reflect.setPrototypeOf(t,e),Object.defineProperty(this,e.modelName,{get:()=>t}),t.connect(this),t})}var t=e.prototype;return t.getDataForModel=function(e){return this.modelData[e]||(this.modelData[e]={}),this.modelData[e]},t.getModelData=function(){return this.modelData},t.markAccessed=function(e,t){const n=this.getDataForModel(e);n.accessedInstances||(n.accessedInstances={}),t.forEach(e=>{n.accessedInstances[e]=!0})},t.markFullTableScanned=function(e){this.getDataForModel(e).fullTableScanned=!0},t.markAccessedIndexes=function(e){e.forEach(([e,t,n])=>{const r=this.getDataForModel(e);r.accessedIndexes||(r.accessedIndexes={}),r.accessedIndexes[t]=[...r.accessedIndexes[t]||[],n]})},t.applyUpdate=function(e){const t=this._getTransaction(e),n=this.db.update(e,t,this.state),{status:r,state:o,payload:s}=n;if("SUCCESS"!==r)throw new Error(`Applying update failed with status ${r}. Payload: ${s}`);return this.state=o,s},t.query=function(e){const t=this.db.query(e,this.state);return this._markAccessedByQuery(e,t),t},t._getTransaction=function(e){const{withMutations:t}=this,{action:n}=e;let{batchToken:r}=this;return[B,U].includes(n)&&(r=b()),{batchToken:r,withMutations:t}},t._markAccessedByQuery=function(e,t){const{table:n,clauses:r}=e,{rows:o}=t,{idAttribute:s}=this[n],i=new Set(o.map(e=>e[s])),a=r.some(e=>!!ee(e,s)&&(i.add(e.payload[s]),!0)),c=[],{indexes:u}=this.state[n];r.forEach(e=>{Object.keys(u).forEach(t=>{if(!ee(e,t))return;const r=e.payload[t];c.push([n,t,r])})}),a?this.markAccessed(n,i):c.length?(this.markAccessed(n,i),this.markAccessedIndexes(c)):this.markFullTableScanned(n)},t.getNextState=function(){return Q("`Session.prototype.getNextState` has been deprecated. Access the `Session.prototype.state` property instead."),this.state},t.reduce=function(){throw new Error("`Session.prototype.reduce` has been removed. The Redux integration API is now decoupled from ORM and Session - see the 0.9 migration guide in the GitHub repo.")},o()(e,[{key:"accessedModelInstances",get:function(){return Object.entries(this.getModelData()).reduce((e,[t,n])=>(n.accessedInstances&&(e[t]=n.accessedInstances),e),{})}},{key:"fullTableScannedModels",get:function(){return Object.entries(this.getModelData()).reduce((e,[t,n])=>(n.fullTableScanned&&e.push(t),e),[])}},{key:"accessedIndexes",get:function(){return Object.entries(this.getModelData()).reduce((e,[t,n])=>(n.accessedIndexes&&(e[t]=n.accessedIndexes),e),{})}}]),e}(),ie=n(1),ae=n.n(ie);var ce=function(e){function t(){return e.apply(this,arguments)||this}ae()(t,e);var n=t.prototype;return n.installForwardsDescriptor=function(){Object.defineProperty(this.model.prototype,this.fieldName,this.field.createForwardsDescriptor(this.fieldName,this.model,this.toModel,this.throughModel))},n.installForwardsVirtualField=function(){this.model.virtualFields[this.fieldName]=this.field.createForwardsVirtualField(this.fieldName,this.model,this.toModel,this.throughModel)},n.installBackwardsDescriptor=function(){if(Object.getOwnPropertyDescriptor(this.toModel.prototype,this.backwardsFieldName))throw new Error((e=this.model.modelName,t=this.fieldName,n=this.toModel.modelName,[`Reverse field ${this.backwardsFieldName} already defined`,` on model ${n}. To fix, set a custom related`,` name on ${e}.${t}.`].join("")));var e,t,n;Object.defineProperty(this.toModel.prototype,this.backwardsFieldName,this.field.createBackwardsDescriptor(this.fieldName,this.model,this.toModel,this.throughModel))},n.installBackwardsVirtualField=function(){this.toModel.virtualFields[this.backwardsFieldName]=this.field.createBackwardsVirtualField(this.fieldName,this.model,this.toModel,this.throughModel)},t}(function(){function e(e){this.field=e.field,this.fieldName=e.fieldName,this.model=e.model,this.orm=e.orm,this.field.references(this.model)&&(this.field.toModelName="this")}return e.prototype.run=function(){this.installForwardsDescriptor(),this.field.installsForwardsVirtualField&&this.installForwardsVirtualField(),this.field.installsBackwardsDescriptor&&this.installBackwardsDescriptor(),this.field.installsBackwardsVirtualField&&this.installBackwardsVirtualField()},o()(e,[{key:"toModel",get:function(){if(void 0===this._toModel){const{toModelName:e}=this.field;this._toModel=e?"this"===e?this.model:this.orm.get(e):null}return this._toModel}},{key:"throughModel",get:function(){if(void 0===this._throughModel){const e=this.field.getThroughModelName(this.fieldName,this.model);this._throughModel=e?this.orm.get(e):null}return this._throughModel}},{key:"backwardsFieldName",get:function(){return this.field.getBackwardsFieldName(this.model)}}]),e}());var ue=function(){function e(){}var t=e.prototype;return t.getClass=function(){return this.constructor},t.references=function(e){return!1},t.getThroughModelName=function(e,t){return null},o()(e,[{key:"installerClass",get:function(){return ce}},{key:"installsForwardsVirtualField",get:function(){return!1}},{key:"installsBackwardsDescriptor",get:function(){return!1}},{key:"installsBackwardsVirtualField",get:function(){return!1}},{key:"index",get:function(){return!1}}]),e}();function le(e,t){return{get(){const{session:{[t]:n}}=this.getClass(),{[e]:r}=this._fields;return n.withId(r)},set(t){this.update({[e]:W(t)})}}}function de(e,t,n,r,o){return{get(){const{session:{[e]:s,[t]:i,[n]:a}}=this.getClass(),c=o?i:s,u=o?s:i,l=o?r.to:r.from,d=o?r.from:r.to,h=this.getId(),f=a.filter({[l]:h}),p=new Set(f.toRefArray().map(e=>e[d])),m=u.filter(e=>p.has(e[u.idAttribute]));return m.add=function(...e){const t=new Set(e.map(W)),n=f.filter(e=>t.has(e[d]));if(n.exists()){const e=n.toRefArray().map(e=>e[d]);throw new Error(`Tried to add already existing ${u.modelName} id(s) ${e} to the ${c.modelName} instance with id ${h}`)}t.forEach(e=>{a.create({[d]:e,[l]:h})})},m.clear=function(){f.delete()},m.remove=function(...e){const t=new Set(e.map(W)),n=f.filter(e=>t.has(e[d]));if(n.count()!==t.size){const e=n.toRefArray().map(e=>e[d]),r=[...t].filter(t=>!e.includes(t));throw new Error(`Tried to delete non-existing ${u.modelName} id(s) ${r} from the ${c.modelName} instance with id ${h}`)}n.delete()},m},set(){throw new Error("Tried setting a M2M field. Please use the related QuerySet methods add, remove and clear.")}}}var he=function(e){function t(t){var n;return(n=e.call(this)||this).opts=t||{},n.opts.hasOwnProperty("getDefault")&&(n.getDefault=n.opts.getDefault),n}return ae()(t,e),t.prototype.createForwardsDescriptor=function(e,t){return function(e){return{get(){return this._fields[e]},set(t){return this.set(e,t)},enumerable:!0,configurable:!0}}(e)},t}(ue);var fe=function(e){function t(...t){var n;if(n=e.call(this)||this,1===t.length&&"object"==typeof t[0]){const e=t[0];n.toModelName=ne(e.to),n.relatedName=e.relatedName,n.through=ne(e.through),n.throughFields=e.throughFields,n.as=e.as}else[n.toModelName,n.relatedName]=[ne(t[0]),t[1]];return n}ae()(t,e);var n=t.prototype;return n.getBackwardsFieldName=function(e){return this.relatedName||e.modelName.toLowerCase()+"Set"},n.createBackwardsVirtualField=function(e,t,n,r){return new(this.getClass())(t.modelName,e)},n.references=function(e){return this.toModelName===e.modelName},o()(t,[{key:"installsBackwardsVirtualField",get:function(){return!0}},{key:"installsBackwardsDescriptor",get:function(){return!0}},{key:"installerClass",get:function(){return function(e){function t(){return e.apply(this,arguments)||this}return ae()(t,e),t.prototype.installForwardsDescriptor=function(){Object.defineProperty(this.model.prototype,this.field.as||this.fieldName,this.field.createForwardsDescriptor(this.fieldName,this.model,this.toModel,this.throughModel))},t}(ce)}}]),t}(ue);var pe=function(e){function t(){return e.apply(this,arguments)||this}ae()(t,e);var n=t.prototype;return n.createForwardsDescriptor=function(e,t,n,r){return le(e,n.modelName)},n.createBackwardsDescriptor=function(e,t,n,r){return o=e,s=t.modelName,{get(){const{session:{[s]:e}}=this.getClass();return e.filter({[o]:this.getId()})},set(){throw new Error("Can't mutate a reverse many-to-one relation.")}};var o,s},o()(t,[{key:"index",get:function(){return!0}}]),t}(fe);var me=function(e){function t(){return e.apply(this,arguments)||this}ae()(t,e);var n=t.prototype;return n.getDefault=function(){return[]},n.getThroughModelName=function(e,t){return this.through||X(t.modelName,e)},n.createForwardsDescriptor=function(e,t,n,r){return de(t.modelName,n.modelName,r.modelName,this.getThroughFields(e,t,n,r),!1)},n.createBackwardsDescriptor=function(e,t,n,r){return de(t.modelName,n.modelName,r.modelName,this.getThroughFields(e,t,n,r),!0)},n.createBackwardsVirtualField=function(e,t,n,r){return new(this.getClass())({to:t.modelName,relatedName:e,through:r.modelName,throughFields:this.getThroughFields(e,t,n,r)})},n.createForwardsVirtualField=function(e,t,n,r){return new(this.getClass())({to:n.modelName,relatedName:e,through:this.through,throughFields:this.getThroughFields(e,t,n,r),as:this.as})},n.getThroughFields=function(e,t,n,r){if(this.throughFields){const[e,t]=this.throughFields,o=r.fields[e];return{to:o.references(n)?e:t,from:o.references(n)?t:e}}if(t.modelName===n.modelName)return{to:Y(n.modelName),from:H(t.modelName)};const o=e=>Object.keys(r.fields).find(t=>r.fields[t].references(e));return{to:o(n),from:o(t)}},o()(t,[{key:"installsForwardsVirtualField",get:function(){return!0}}]),t}(fe);var ye=function(e){function t(){return e.apply(this,arguments)||this}ae()(t,e);var n=t.prototype;return n.getBackwardsFieldName=function(e){return this.relatedName||e.modelName.toLowerCase()},n.createForwardsDescriptor=function(e,t,n,r){return function(...e){return le(...e)}(e,n.modelName)},n.createBackwardsDescriptor=function(e,t,n,r){return o=e,s=t.modelName,{get(){const{session:{[s]:e}}=this.getClass();return e.get({[o]:this.getId()})},set(){throw new Error("Can't mutate a reverse one-to-one relation.")}};var o,s},t}(fe);function ge(e){return new he(e)}function be(...e){return new pe(...e)}function we(...e){return new me(...e)}function ve(...e){return new ye(...e)}function _e(e){const t=e.getClass(),{idAttribute:n,modelName:r}=t;return{table:r,clauses:[{type:V,payload:{[n]:e.getId()}}]}}const Me=function(){function e(e){this._initFields(e)}var t=e.prototype;return t._initFields=function(e){const t=Object(e);this._fields={...t},Object.keys(t).forEach(e=>{e in this||Object.defineProperty(this,e,{get:()=>this._fields[e],set:t=>this.set(e,t),configurable:!0,enumerable:!0})})},e.toString=function(){return"ModelClass: "+this.modelName},e.options=function(){return{}},e.markAccessed=function(e){if(void 0===this._session)throw new Error([`Tried to mark rows of the ${this.modelName} model as accessed without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].markAccessed\` instead.`].join(""));this.session.markAccessed(this.modelName,e)},e.markFullTableScanned=function(){if(void 0===this._session)throw new Error([`Tried to mark the ${this.modelName} model as full table scanned without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].markFullTableScanned\` instead.`].join(""));this.session.markFullTableScanned(this.modelName)},e.markAccessedIndexes=function(e){if(void 0===this._session)throw new Error([`Tried to mark indexes for the ${this.modelName} model as accessed without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].markAccessedIndexes\` instead.`].join(""));this.session.markAccessedIndexes(e.map(([e,t])=>[this.modelName,e,t]))},e.connect=function(e){if(!(e instanceof se))throw new Error("A model can only be connected to instances of Session.");this._session=e},e.getQuerySet=function(){const{querySetClass:e}=this;return new e(this)},e.invalidateClassCache=function(){this.isSetUp=void 0,this.virtualFields={}},e.tableOptions=function(){return"function"==typeof this.backend?(Q("`Model.backend` has been deprecated. Please rename to `.options`."),this.backend()):this.backend?(Q("`Model.backend` has been deprecated. Please rename to `.options`."),this.backend):"function"==typeof this.options?this.options():this.options},e.create=function(e){if(void 0===this._session)throw new Error([`Tried to create a ${this.modelName} model instance without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].create\` instead.`].join(""));const t={...e},n={},r=Object.keys(this.fields),o=Object.keys(this.virtualFields);r.forEach(r=>{const o=this.fields[r],s=e.hasOwnProperty(r);if(o instanceof me)s&&(n[r]=e[r],o.as||delete t[r]);else if(s){const n=e[r];t[r]=W(n)}else o.getDefault&&(t[r]=o.getDefault(e))}),o.forEach(r=>{if(!n.hasOwnProperty(r)){const o=this.virtualFields[r];e.hasOwnProperty(r)&&o instanceof me&&(n[r]=e[r],delete t[r])}});const s=new this(this.session.applyUpdate({action:"REDUX_ORM_CREATE",table:this.modelName,payload:t}));return s._refreshMany2Many(n),s},e.upsert=function(e){if(void 0===this.session)throw new Error([`Tried to upsert a ${this.modelName} model instance without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].upsert\` instead.`].join(""));const{idAttribute:t}=this;if(e.hasOwnProperty(t)){const n=e[t];if(this.idExists(n)){const t=this.withId(n);return t.update(e),t}}return this.create(e)},e.withId=function(e){return this.get({[this.idAttribute]:e})},e.idExists=function(e){return this.exists({[this.idAttribute]:e})},e.exists=function(e){if(void 0===this.session)throw new Error([`Tried to check if a ${this.modelName} model instance exists without a session. `,"Create a session using `session = orm.session()` and call ",`\`session["${this.modelName}"].exists\` instead.`].join(""));return Boolean(this._findDatabaseRows(e).length)},e.get=function(e){const t=this._findDatabaseRows(e);if(0===t.length)return null;if(t.length>1)throw new Error(`Expected to find a single row in \`${this.modelName}.get\`. Found ${t.length}.`);return new this(t[0])},t.getClass=function(){return this.constructor},t.getId=function(){return this._fields[this.getClass().idAttribute]},e._findDatabaseRows=function(e){const t={table:this.modelName};return e&&(t.clauses=[{type:V,payload:e}]),this.session.query(t).rows},t.toString=function(){const e=this.getClass();return`${e.modelName}: {${Object.keys(e.fields).map(t=>{if(e.fields[t]instanceof me){return`${t}: [${this[t].toModelArray().map(e=>e.getId()).join(", ")}]`}return`${t}: ${this._fields[t]}`}).join(", ")}}`},t.equals=function(e){return function(e,t){const n=Object.entries(Object(e));return n.length===Object.keys(t).length&&n.every(([e,n])=>t.hasOwnProperty(e)&&t[e]===n)}(this._fields,e._fields)},t.set=function(e,t){this.update({[e]:t})},t.update=function(e){const t=this.getClass();if(void 0===t.session)throw new Error([`Tried to update a ${t.modelName} model instance without a session. `,"You cannot call `.update` on an instance that you did not receive from the database."].join(""));const n={...e},{fields:r,virtualFields:o}=t,s={};for(const e in n){if(r.hasOwnProperty(e)){const t=r[e];t instanceof pe||t instanceof ye?n[e]=W(n[e]):t instanceof me&&(s[e]=n[e],t.as||delete n[e])}else if(o.hasOwnProperty(e)){o[e]instanceof me&&(s[e]=n[e],delete n[e])}}const i={...this._fields,...n},a=new t(i);this.equals(a)||(this._initFields(i),t.session.applyUpdate({action:B,query:_e(this),payload:n})),this._refreshMany2Many(s)},t.refreshFromState=function(){this._initFields(this.ref)},t.delete=function(){const e=this.getClass();if(void 0===e.session)throw new Error([`Tried to delete a ${e.modelName} model instance without a session. `,"You cannot call `.delete` on an instance that you did not receive from the database."].join(""));this._onDelete(),e.session.applyUpdate({action:U,query:_e(this)})},t._refreshMany2Many=function(e){const t=this.getClass(),{fields:n,virtualFields:r,modelName:o}=t;Object.keys(e).forEach(s=>{const i=!n.hasOwnProperty(s),a=r[s],c=e[s];if(!Array.isArray(c))throw new TypeError(`Failed to resolve many-to-many relationship: ${o}[${s}] must be an array (passed: ${c})`);const u=c.map(W),l=[...new Set(u)];if(u.length!==l.length)throw new Error(`Found duplicate id(s) when passing "${u}" to ${t.modelName}.${s} value`);const d=a.through||X(t.modelName,s),h=t.session[d];let f,p;i?({from:p,to:f}=a.throughFields):({from:f,to:p}=a.throughFields);const m=function(e,t){const n=e.filter(e=>t.includes(e)),r=e.filter(e=>!n.includes(e)),o=t.filter(e=>!n.includes(e));return r.length||o.length?{delete:r,add:o}:null}(h.filter(e=>e[f]===this[t.idAttribute]).toRefArray().map(e=>e[p]),u);if(m){const{delete:e,add:t}=m;e.length>0&&this[a.as||s].remove(...e),t.length>0&&this[a.as||s].add(...t)}})},t._onDelete=function(){const{virtualFields:e}=this.getClass();for(const t in e){const n=e[t];if(n instanceof me){this[n.as||t].clear()}else if(n instanceof pe){const e=this[t];e.exists()&&e.update({[n.relatedName]:null})}else n instanceof ye&&null!==this[t]&&(this[t][n.relatedName]=null)}},e.hasId=function(e){return console.warn("`Model.hasId` has been deprecated. Please use `Model.idExists` instead."),this.idExists(e)},t.getNextState=function(){throw new Error("`Model.prototype.getNextState` has been removed. See the 0.9 migration guide on the GitHub repo.")},o()(e,[{key:"ref",get:function(){const e=this.getClass();return e._findDatabaseRows({[e.idAttribute]:this.getId()})[0]}}],[{key:"idAttribute",get:function(){if(void 0===this._session)throw new Error([`Tried to get the ${this.modelName} model's id attribute without a session. `,"Create a session using `session = orm.session()` and access ",`\`session["${this.modelName}"].idAttribute\` instead.`].join(""));return this.session.db.describe(this.modelName).idAttribute}},{key:"session",get:function(){return this._session}},{key:"query",get:function(){return this.getQuerySet()}}]),e}();Me.fields={id:ge()},Me.virtualFields={},Me.querySetClass=oe;var Oe=Me,xe=n(11),Ne=n.n(xe),Se=n(12),ke=n.n(Se),Ee=n(13),je=n.n(Ee),Fe=n(14),Ae=n.n(Fe);const Ce={idAttribute:"id",arrName:"items",mapName:"itemsById",fields:{}};var Ie=function(){function e(e){Object.assign(this,Ce,e)}var t=e.prototype;return t.accessId=function(e,t){return e[this.mapName][t]},t.accessIds=function(e,t){const n=e[this.mapName];return t.map(e=>n[e])},t.idExists=function(e,t){return e[this.mapName].hasOwnProperty(t)},t.accessIdList=function(e){return e[this.arrName]},t.accessList=function(e){return this.accessIds(e,this.accessIdList(e))},t.getMaxId=function(e){return this.getMeta(e,"maxId")},t.setMaxId=function(e,t,n){return this.setMeta(e,t,"maxId",n)},t.nextId=function(e){return e+1},t.getEmptyState=function(){return{...{[this.arrName]:[],[this.mapName]:{}},indexes:Object.keys(this.fields).filter(e=>e!==this.idAttribute).filter(e=>this.fields[e].index).reduce((e,t)=>({...e,[t]:{}}),{}),meta:{}}},t.setMeta=function(e,t,n,r){const{batchToken:o,withMutations:s}=e;if(s){return P.mutable.setIn(["meta",n],r,t)}return P.batch.setIn(o,["meta",n],r,t)},t.getMeta=function(e,t){return e.meta[t]},t.query=function(e,t){if(0===t.length)return this.accessList(e);const{idAttribute:n}=this,r=Ae()(t,e=>ee(e,n)?1:function({type:e}){return[V,q].includes(e)}(e)?2:3),o=(t,r)=>{const{type:s,payload:i}=r;if(!t){if(ee(r,n)){const t=i[n],s=Object.keys(i).reduce((e,t)=>(t!==n&&(e[t]=i[t]),e),{}),a=this.idExists(e,t)?[t]:[];return Object.keys(s).length?o(this.accessIds(e,a),{...r,payload:s}):this.accessIds(e,a)}if(s===V&&"object"==typeof i){const t=Object.entries(e.indexes),n=[],s=[];if(t.forEach(([e,t])=>{ee(r,e)&&t.hasOwnProperty(i[e])&&(n.push(t[i[e]]),s.push(e))}),n.length){const t=n.pop(),a=n.reduce((e,t)=>{const n=new Set(t);return e.filter(Set.prototype.has,n)},t),c=Object.keys(i).reduce((e,t)=>(s.includes(t)||(e[t]=i[t]),e),{});return Object.keys(c).length?o(this.accessIds(e,a),{...r,payload:c}):this.accessIds(e,a)}}return o(this.accessList(e),r)}switch(s){case V:return Ne()(t,i);case q:return je()(t,i);case"REDUX_ORM_ORDER_BY":{const[e,n]=i;return ke()(t,e,function(e){if(void 0===e)return;const t=e=>["desc",!1].includes(e)?"desc":"asc";return Array.isArray(e)?e.map(t):t(e)}(n))}default:return t}};return r.reduce(o,void 0)},t.insert=function(e,t,n){const{batchToken:r,withMutations:o}=e,s=n.hasOwnProperty(this.idAttribute);let i=t;const[a,c]=function(e,t){let n,r,o=e;return void 0===o&&(o=-1),void 0===t?(n=o+1,r=n):(n=Math.max(o+1,t),r=t),[n,r]}(this.getMaxId(t),n[this.idAttribute]);i=this.setMaxId(e,t,a);const u=s?n:P.batch.set(r,this.idAttribute,c,n),l=Object.keys(i.indexes).filter(e=>n.hasOwnProperty(e)&&null!==n[e]).map(e=>[e,n[e]]);if(o)return P.mutable.push(c,i[this.arrName]),P.mutable.set(c,u,i[this.mapName]),l.forEach(([e,t])=>{const n=i.indexes[e];n.hasOwnProperty(t)?P.mutable.push(c,n[t]):P.mutable.set(t,[c],n)}),{state:i,created:u};const d=P.batch.merge(r,l.reduce((e,[t,n])=>(e[t]=P.batch.merge(r,{[n]:P.batch.push(r,c,e[t][n]||[])},e[t]),e),{...i.indexes}),i.indexes);return{state:P.batch.merge(r,{[this.arrName]:P.batch.push(r,c,i[this.arrName]),[this.mapName]:P.batch.merge(r,{[c]:u},i[this.mapName]),indexes:d},i),created:u}},t.update=function(e,t,n,r){const{batchToken:o,withMutations:s}=e,i=s?P.mutable.set:P.batch.set(o),a=Object.keys(t.indexes).filter(e=>r.hasOwnProperty(e)),c=[],u=[],l=n.reduce((e,t)=>{const n=a.reduce((e,n)=>({...e,[n]:t[n]}),{}),l=(e=>(s?P.mutable.merge:P.batch.merge(o))(r,e))(t),d=a.reduce((e,t)=>({...e,[t]:l[t]}),{}),h=l[this.idAttribute],f=i(h,l,e);return a.forEach(e=>{const{[e]:t}=n,{[e]:r}=d;t!==r&&(null!=t&&u.push([e,t,h]),null!==r&&c.push([e,r,h]))}),f},t[this.mapName]);let d=t.indexes;return s?(u.forEach(([e,t,n])=>{const r=d[e][t],o=r.indexOf(n);P.mutable.splice(o,1,[],r)}),c.forEach(([e,t,n])=>{P.mutable.push(n,d[e][t])})):(c.length&&(d=P.batch.merge(o,c.reduce((e,[t,n,r])=>(e[t]=P.batch.merge(o,{[n]:P.batch.push(o,r,e[t][n]||[])},e[t]),e),{...d}),d)),u.length&&(d=P.batch.merge(o,u.reduce((e,[t,n,r])=>(e[t]=P.batch.merge(o,{[n]:P.batch.filter(o,e=>e!==r,e[t][n])},e[t]),e),{...d}),d))),P.batch.merge(o,{[this.mapName]:l,indexes:d},t)},t.delete=function(e,t,n){const{batchToken:r,withMutations:o}=e,{arrName:s,mapName:i}=this,a=t[s],c=n.map(e=>e[this.idAttribute]);if(o)return c.forEach(e=>{const n=a.indexOf(e);P.mutable.splice(n,1,[],a),P.mutable.omit(e,t[i])}),Object.values(t.indexes).forEach(e=>Object.values(e).forEach(e=>c.forEach(t=>{const n=e.indexOf(t);-1!==n&&P.mutable.splice(n,1,[],e)}))),t;const u=P.batch.merge(r,Object.entries(t.indexes).reduce((e,[t,n])=>(e[t]=P.batch.merge(r,Object.entries(n).reduce((e,[t,n])=>(e[t]=P.batch.filter(r,e=>!c.includes(e),n),e),{...e[t]}),e[t]),e),{...t.indexes}),t.indexes);return P.batch.merge(r,{[s]:P.batch.filter(r,e=>!c.includes(e),t[s]),[i]:P.batch.omit(r,c,t[i]),indexes:P.batch.merge(r,u,t.indexes)},t)},e}();const Re={};function De(e,t,n){const{table:r,clauses:o}=t;return{rows:e[r].query(n[r],o)}}function Te(e,t,n,r){const{action:o,payload:s}=t;let i,a,c;if("REDUX_ORM_CREATE"===o){({table:i}=t);const o=e[i],u=r[i],l=o.insert(n,u,s);a=l.state,c=l.created}else{const{query:u}=t;({table:i}=u);const{rows:l}=De(e,u,r),d=e[i],h=r[i];if(o===B)a=d.update(n,h,l,s),c=De(e,u,r).rows;else{if(o!==U)throw new Error("Database received unknown update type: "+o);a=d.delete(n,h,l),c=l}}return{status:"SUCCESS",state:function(e,t,n,r){const{batchToken:o,withMutations:s}=n;return s?(r[e]=t,r):P.batch.set(o,e,t,r)}(i,a,n,r),payload:c}}Object.defineProperty(Re,"@@_______REDUX_ORM_STATE_FLAG",{enumerable:!0,value:!0});var $e=function(e){const{tables:t}=e,n=Object.entries(t).reduce((e,[t,n])=>({...e,[t]:new Ie(n)}),{});return{getEmptyState:()=>Object.entries(n).reduce((e,[t,n])=>({...e,[t]:n.getEmptyState()}),Re),query:De.bind(null,n),update:Te.bind(null,n),describe:e=>n[e]}};let Pe=function(){function e({parent:e,orm:t}){this._parent=e,this._orm=t,this.keySelector=L}return o()(e,[{key:"cachePath",get:function(){return[...this._parent?this._parent.cachePath:[],this.key]}},{key:"orm",get:function(){return this._orm}},{key:"parent",get:function(){return this._parent}}]),e}(),Be=function(e){function t({model:t,...n}){var r;return(r=e.call(this,n)||this)._model=t,r}return ae()(t,e),o()(t,[{key:"resultFunc",get:function(){return(e,t,...n)=>{const{[this._model.modelName]:r}=e;return void 0===t?r.all().toModelArray().map(t=>this.valueForInstance(t,e,...n)):Array.isArray(t)?t.map(t=>this.valueForInstance(r.withId(t),e,...n)):this.valueForInstance(r.withId(t),e,...n)}}},{key:"model",get:function(){return this._model}}]),t}(Pe);function Ue(e,t){return t}let Ve=function(e){function t({field:t,selector:n,...r}){var o;return(o=e.call(this,r)||this)._field=t,o._selector=n,o}return ae()(t,e),t.prototype.createResultFunc=function(e){const{idAttribute:t}=this._parent.toModel;return(n,...r)=>{const o=e(n,...r),s=Ue(n,...r),i=e=>null===e?null:e.map(e=>this._selector(n,e[t]));return void 0===s||Array.isArray(s)?o.map(i):i(o)}},o()(t,[{key:"selector",get:function(){return this._selector},set:function(e){this._selector=e}},{key:"key",get:function(){return this._selector}}]),t}(Be),qe=function(e){function t({model:t,...n}){var r;return(r=e.call(this,n)||this)._model=t,r}return ae()(t,e),o()(t,[{key:"key",get:function(){return this._model.modelName}},{key:"dependencies",get:function(){return[this._orm,Ue]}},{key:"resultFunc",get:function(){return({[this._model.modelName]:e},t)=>{if(void 0===t)return e.all().toRefArray();if(Array.isArray(t))return t.map(t=>{const n=e.withId(t);return n?n.ref:null});const n=e.withId(t);return n?n.ref:null}}},{key:"model",get:function(){return this._model}}]),t}(Pe),ze=function(e){function t({field:t,fieldModel:n,accessorName:r,isVirtual:o,...s}){var i;return(i=e.call(this,s)||this)._field=t,i._fieldModel=n,i._accessorName=r,i._isVirtual=o,i}ae()(t,e);var n=t.prototype;return n.valueForInstance=function(e,t){if(!e)return null;let n;if(this._parent instanceof qe)n=e[this._accessorName];else{const{[this._parent.toModelName]:r}=t,o=this._parent.valueForInstance(e,t),s=o?new r(o):null;n=s?s[this._accessorName]:null}return n instanceof Oe?n.ref:n instanceof oe?n.toRefArray():n},n.map=function(e){if(e instanceof qe)throw this.toModelName===e.model.modelName?new Error(`Cannot select models in a \`map()\` call. If you just want the \`${this._accessorName}\` as a ref array then you can simply drop the \`map()\`. Otherwise make sure you're passing a field selector of the form \`${this.toModelName}.\` or a custom selector instead.`):new Error(`Cannot select \`${e.model.modelName}\` models in this \`map()\` call. Make sure you're passing a field selector of the form \`${this.toModelName}.\` or a custom selector instead.`);if(e instanceof t||e instanceof Ve){if(this.toModelName!==e.model.modelName)throw new Error(`Cannot select fields of the \`${e.model.modelName}\` model in this \`map()\` call. Make sure you're passing a field selector of the form \`${this.toModelName}.\` or a custom selector instead.`)}else if(!e||"function"!=typeof e||!e.recomputations)throw new Error(`\`map()\` requires a selector as an input. Received: ${JSON.stringify(e)} of type ${typeof e}`);if(!(this._field instanceof pe||this._field instanceof me))throw new Error("Cannot map selectors for non-collection fields");return new Ve({parent:this,model:this._model,orm:this._orm,field:this._field,selector:e})},o()(t,[{key:"key",get:function(){return this._accessorName}},{key:"dependencies",get:function(){return[this._orm,Ue]}},{key:"toModelName",get:function(){return"this"===this._field.toModelName?this._fieldModel.modelName:this._field.toModelName}},{key:"toModel",get:function(){return this._orm.getDatabase().describe(this.toModelName)}}]),t}(Be);function Le({parent:e,model:t,field:n,fieldModel:r,accessorName:o,orm:s,isVirtual:i}){const a=new ze({parent:e,model:t,field:n,fieldModel:r,accessorName:o,orm:s,isVirtual:i});if(!(n instanceof fe))return a;if(e instanceof ze&&(e._field instanceof pe&&e._isVirtual||e._field instanceof me))throw new Error(`Cannot create a selector for \`${e._accessorName}.${o}\` because \`${e._accessorName}\` is a collection field.`);const{toModelName:c}=n,u=s.get("this"===c?t.modelName:c);return Object.entries(u.fields).forEach(([e,n])=>{const r=n.as||e;Object.defineProperty(a,r,{get:()=>Le({parent:a,model:t,fieldModel:u,field:n,accessorName:r,orm:s,isVirtual:!1})})}),Object.entries(u.virtualFields).forEach(([e,n])=>{const r=n.as||e;a.hasOwnProperty(r)||Object.defineProperty(a,r,{get:()=>Le({parent:a,model:t,fieldModel:u,field:n,accessorName:r,orm:s,isVirtual:!0})})}),a}const Qe={createDatabase:$e},Xe=["indexes","meta"],He=e=>Xe.includes(e);let Ye=function(){function e(e){const{createDatabase:t}={...Qe,...e||{}};this.createDatabase=t,this.registry=[],this.implicitThroughModels=[],this.installedFields={},this.stateSelector=e?e.stateSelector:null}var t=e.prototype;return t.register=function(...e){e.forEach(e=>{if(void 0===e.modelName)throw new Error("A model was passed that doesn't have a modelName set");e.invalidateClassCache(),this.registerManyToManyModelsFor(e),this.registry.push(e),Object.defineProperty(this,e.modelName,{get:()=>(this._setupModelPrototypes(this.registry),function({model:e,orm:t}){const n=new qe({parent:null,orm:t,model:e});return Object.entries(e.fields).forEach(([r,o])=>{const s=o.as||r;Object.defineProperty(n,s,{get:()=>Le({parent:n,model:e,fieldModel:e,field:o,accessorName:s,orm:t,isVirtual:!1})})}),Object.entries(e.virtualFields).forEach(([r,o])=>{const s=o.as||r;n.hasOwnProperty(s)||Object.defineProperty(n,s,{get:()=>Le({parent:n,model:e,fieldModel:e,field:o,accessorName:s,orm:t,isVirtual:!0})})}),n}({model:e,orm:this}))})})},t.registerManyToManyModelsFor=function(e){const{fields:t}=e,n=e.modelName;Object.entries(t).forEach(([e,t])=>{if(!(t instanceof me))return;let r;r="this"===t.toModelName?n:t.toModelName;const s=n===r,i=H(n),a=Y(r);if(t.through){if(s&&!t.throughFields)throw new Error(`Self-referencing many-to-many relationship at "${n}.${e}" using custom model "${t.through}" has no throughFields key. Cannot determine which fields reference the instances partaking in the relationship.`)}else{const t=function(e){function t(){return e.apply(this,arguments)||this}return ae()(t,e),t}(Oe);t.modelName=X(n,e);const c=function(e){function t(){return e.apply(this,arguments)||this}return ae()(t,e),o()(t,[{key:"installsBackwardsVirtualField",get:function(){return!1}},{key:"installsBackwardsDescriptor",get:function(){return!1}}]),t}(pe),u=s?c:pe;t.fields={id:ge(),[i]:new u(n),[a]:new u(r)},t.invalidateClassCache(),this.implicitThroughModels.push(t)}})},t.get=function(e){const t=this.registry.concat(this.implicitThroughModels),n=Object.values(t).find(t=>t.modelName===e);if(void 0===n)throw new Error(`Did not find model ${e} from registry.`);return n},t.getModelClasses=function(){return this._setupModelPrototypes(this.registry),this._setupModelPrototypes(this.implicitThroughModels),this.registry.concat(this.implicitThroughModels)},t.generateSchemaSpec=function(){return{tables:this.getModelClasses().reduce((e,t)=>{const n=t.modelName,r=t.tableOptions();return Object.keys(r).filter(He).forEach(e=>{throw new Error(`Reserved keyword \`${e}\` used in ${n}.options.`)}),e[n]={fields:{...t.fields},...r},e},{})}},t.getDatabase=function(){return this.db||(this.db=this.createDatabase(this.generateSchemaSpec())),this.db},t.getEmptyState=function(){return this.getDatabase().getEmptyState()},t.session=function(e){return new se(this,this.getDatabase(),e)},t.mutableSession=function(e){return new se(this,this.getDatabase(),e,!0)},t._setupModelPrototypes=function(e){e.filter(e=>!e.isSetUp).forEach(e=>{const{fields:t,modelName:n,querySetClass:r}=e;Object.entries(t).forEach(([t,r])=>{if(!(r instanceof ue))throw new Error(`${n}.${t} is of type "${typeof r}" but must be an instance of Field. Please use the \`attr\`, \`fk\`, \`oneToOne\` and \`many\` functions to define fields.`);this._isFieldInstalled(n,t)||(this._installField(r,t,e),this._setFieldInstalled(n,t))}),J(e,r),e.isSetUp=!0})},t._isFieldInstalled=function(e,t){return!!this.installedFields.hasOwnProperty(e)&&!!this.installedFields[e][t]},t._setFieldInstalled=function(e,t){this.installedFields.hasOwnProperty(e)||(this.installedFields[e]={}),this.installedFields[e][t]=!0},t._installField=function(e,t,n){new(0,e.installerClass)({field:e,fieldName:t,model:n,orm:this}).run()},t.withMutations=function(e){return Q("`ORM.prototype.withMutations` has been deprecated. Use `ORM.prototype.mutableSession` instead."),this.mutableSession(e)},t.from=function(e){return Q("`ORM.prototype.from` has been deprecated. Use `ORM.prototype.session` instead."),this.session(e)},t.getDefaultState=function(){return Q("`ORM.prototype.getDefaultState` has been deprecated. Use `ORM.prototype.getEmptyState` instead."),this.getEmptyState()},t.define=function(){throw new Error("`ORM.prototype.define` has been removed. Please define a Model class.")},e}();var Ke=n(5),Ge=n(6),Je=n.n(Ge);const We=(e,t)=>e===t,Ze=e=>e&&"object"==typeof e&&e.hasOwnProperty("@@_______REDUX_ORM_STATE_FLAG");function et(e,t=We,n){let r={result:null,args:null,ormState:null,fullTableScannedModels:[],accessedInstances:{},accessedIndexes:{}};return(...o)=>{const[s,...i]=o;if(Boolean(r.args)&&(a=r.args,c=t,i.every((e,t)=>Ze(e)&&Ze(a[t])||c(e,a[t])))&&((e,t)=>e.fullTableScannedModels.every(n=>e.ormState[n]===t[n]))(r,s)&&((e,t)=>{const{accessedIndexes:n}=e;return Object.entries(n).every(([n,r])=>Object.entries(r).every(([r,o])=>o.every(o=>e.ormState[n].indexes[r][o]===t[n].indexes[r][o])))})(r,s)&&((e,t,n)=>{const{accessedInstances:r}=e;return Object.entries(r).every(([r,o])=>{if(e.ormState[r]===t[r])return!0;const{mapName:s}=n.getDatabase().describe(r),{[s]:i}=e.ormState[r],{[s]:a}=t[r],c=Object.keys(o);return u=i,l=a,c.every(e=>u[e]===l[e]);var u,l})})(r,s,n))return r.result;var a,c;const u=n.session(s),l=i.map(e=>Ze(e)?u:e),d=e.apply(null,l);return r={args:i,result:d,ormState:s,accessedInstances:u.accessedModelInstances,accessedIndexes:u.accessedIndexes,fullTableScannedModels:u.fullTableScannedModels},d}}function tt(e,t){e.sessionBoundModels.forEach(n=>{"function"==typeof n.reducer&&n.reducer(t,n,e)})}function nt(e,t=tt){return(n,r)=>{const o=e.session(n||e.getEmptyState());return t(o,r),o.state}}function rt(e){return e instanceof Ye?e:e instanceof Pe&&e._orm}const ot=new Map,st=Symbol.for("REDUX_ORM_SELECTOR");function it(e){if("function"==typeof e)return e;if(e instanceof Ye)return e.stateSelector;if(e instanceof Ve&&(e.selector=it(e.selector)),e instanceof Pe){const{orm:t,cachePath:n}=e;let r;ot.has(t)||ot.set(t,new Map);r=ot.get(t);for(let e=0;e 1 && arguments[1] !== undefined ? arguments[1] : defaultEqualityCheck;\n\n var lastArgs = null;\n var lastResult = null;\n // we reference arguments instead of spreading them for performance reasons\n return function () {\n if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {\n // apply arguments instead of spreading for performance.\n lastResult = func.apply(null, arguments);\n }\n\n lastArgs = arguments;\n return lastResult;\n };\n}\n\nfunction getDependencies(funcs) {\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;\n\n if (!dependencies.every(function (dep) {\n return typeof dep === 'function';\n })) {\n var dependencyTypes = dependencies.map(function (dep) {\n return typeof dep;\n }).join(', ');\n throw new Error('Selector creators expect all input-selectors to be functions, ' + ('instead received the following types: [' + dependencyTypes + ']'));\n }\n\n return dependencies;\n}\n\nfunction createSelectorCreator(memoize) {\n for (var _len = arguments.length, memoizeOptions = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n memoizeOptions[_key - 1] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, funcs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n funcs[_key2] = arguments[_key2];\n }\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = getDependencies(funcs);\n\n var memoizedResultFunc = memoize.apply(undefined, [function () {\n recomputations++;\n // apply arguments instead of spreading for performance.\n return resultFunc.apply(null, arguments);\n }].concat(memoizeOptions));\n\n // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.\n var selector = defaultMemoize(function () {\n var params = [];\n var length = dependencies.length;\n\n for (var i = 0; i < length; i++) {\n // apply arguments instead of spreading and mutate a local list of params for performance.\n params.push(dependencies[i].apply(null, arguments));\n }\n\n // apply arguments instead of spreading for performance.\n return memoizedResultFunc.apply(null, params);\n });\n\n selector.resultFunc = resultFunc;\n selector.recomputations = function () {\n return recomputations;\n };\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n return selector;\n };\n}\n\nvar createSelector = exports.createSelector = createSelectorCreator(defaultMemoize);\n\nfunction createStructuredSelector(selectors) {\n var selectorCreator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createSelector;\n\n if (typeof selectors !== 'object') {\n throw new Error('createStructuredSelector expects first argument to be an object ' + ('where each property is a selector, instead received a ' + typeof selectors));\n }\n var objectKeys = Object.keys(selectors);\n return selectorCreator(objectKeys.map(function (key) {\n return selectors[key];\n }), function () {\n for (var _len3 = arguments.length, values = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n values[_key3] = arguments[_key3];\n }\n\n return values.reduce(function (composition, value, index) {\n composition[objectKeys[index]] = value;\n return composition;\n }, {});\n });\n}","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reselect')) :\n typeof define === 'function' && define.amd ? define(['exports', 'reselect'], factory) :\n (global = global || self, factory(global['Re-reselect'] = {}, global.Reselect));\n}(this, function (exports, reselect) { 'use strict';\n\n function isStringOrNumber(value) {\n return typeof value === 'string' || typeof value === 'number';\n }\n\n var FlatObjectCache =\n /*#__PURE__*/\n function () {\n function FlatObjectCache() {\n this._cache = {};\n }\n\n var _proto = FlatObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FlatObjectCache;\n }();\n\n var defaultCacheCreator = FlatObjectCache;\n\n var defaultCacheKeyValidator = function defaultCacheKeyValidator() {\n return true;\n };\n\n function createCachedSelector() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return function (polymorphicOptions, legacyOptions) {\n // @NOTE Versions 0.x/1.x accepted \"options\" as a function\n if (typeof legacyOptions === 'function') {\n throw new Error('[re-reselect] Second argument \"options\" must be an object. Please use \"options.selectorCreator\" to provide a custom selectorCreator.');\n }\n\n var options = {};\n\n if (typeof polymorphicOptions === 'function') {\n Object.assign(options, legacyOptions, {\n keySelector: polymorphicOptions\n }); // @TODO add legacyOptions deprecation notice in next major release\n } else {\n Object.assign(options, polymorphicOptions);\n } // https://github.com/reduxjs/reselect/blob/v4.0.0/src/index.js#L54\n\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : [].concat(funcs);\n\n var resultFuncWithRecomputations = function resultFuncWithRecomputations() {\n recomputations++;\n return resultFunc.apply(void 0, arguments);\n };\n\n funcs.push(resultFuncWithRecomputations);\n var cache = options.cacheObject || new defaultCacheCreator();\n var selectorCreator = options.selectorCreator || reselect.createSelector;\n var isValidCacheKey = cache.isValidCacheKey || defaultCacheKeyValidator;\n\n if (options.keySelectorCreator) {\n options.keySelector = options.keySelectorCreator({\n keySelector: options.keySelector,\n inputSelectors: dependencies,\n resultFunc: resultFunc\n });\n } // Application receives this function\n\n\n var selector = function selector() {\n var cacheKey = options.keySelector.apply(options, arguments);\n\n if (isValidCacheKey(cacheKey)) {\n var cacheResponse = cache.get(cacheKey);\n\n if (cacheResponse === undefined) {\n cacheResponse = selectorCreator.apply(void 0, funcs);\n cache.set(cacheKey, cacheResponse);\n }\n\n return cacheResponse.apply(void 0, arguments);\n }\n\n console.warn(\"[re-reselect] Invalid cache key \\\"\" + cacheKey + \"\\\" has been returned by keySelector function.\");\n return undefined;\n }; // Further selector methods\n\n\n selector.getMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments); // @NOTE It might update cache hit count in LRU-like caches\n\n return cache.get(cacheKey);\n };\n\n selector.removeMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments);\n cache.remove(cacheKey);\n };\n\n selector.clearCache = function () {\n cache.clear();\n };\n\n selector.resultFunc = resultFunc;\n selector.dependencies = dependencies;\n selector.cache = cache;\n\n selector.recomputations = function () {\n return recomputations;\n };\n\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n\n selector.keySelector = options.keySelector;\n return selector;\n };\n }\n\n function createStructuredCachedSelector(selectors) {\n return reselect.createStructuredSelector(selectors, createCachedSelector);\n }\n\n function validateCacheSize(cacheSize) {\n if (cacheSize === undefined) {\n throw new Error('Missing the required property \"cacheSize\".');\n }\n\n if (!Number.isInteger(cacheSize) || cacheSize <= 0) {\n throw new Error('The \"cacheSize\" property must be a positive integer value.');\n }\n }\n\n var FifoObjectCache =\n /*#__PURE__*/\n function () {\n function FifoObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._cacheOrdering.push(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FifoObjectCache;\n }();\n\n var LruObjectCache =\n /*#__PURE__*/\n function () {\n function LruObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._registerCacheHit(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n this._registerCacheHit(key);\n\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n this._deleteCacheHit(key);\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto._registerCacheHit = function _registerCacheHit(key) {\n this._deleteCacheHit(key);\n\n this._cacheOrdering.push(key);\n };\n\n _proto._deleteCacheHit = function _deleteCacheHit(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return LruObjectCache;\n }();\n\n var FlatMapCache =\n /*#__PURE__*/\n function () {\n function FlatMapCache() {\n this._cache = new Map();\n }\n\n var _proto = FlatMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FlatMapCache;\n }();\n\n var FifoMapCache =\n /*#__PURE__*/\n function () {\n function FifoMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FifoMapCache;\n }();\n\n var LruMapCache =\n /*#__PURE__*/\n function () {\n function LruMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n var value = this._cache.get(key); // Register cache hit\n\n\n if (this._cache.has(key)) {\n this.remove(key);\n\n this._cache.set(key, value);\n }\n\n return value;\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return LruMapCache;\n }();\n\n exports.FifoCacheObject = FifoObjectCache;\n exports.FifoMapCache = FifoMapCache;\n exports.FifoObjectCache = FifoObjectCache;\n exports.FlatCacheObject = FlatObjectCache;\n exports.FlatMapCache = FlatMapCache;\n exports.FlatObjectCache = FlatObjectCache;\n exports.LruCacheObject = LruMapCache;\n exports.LruMapCache = LruMapCache;\n exports.LruObjectCache = LruObjectCache;\n exports.createStructuredCachedSelector = createStructuredCachedSelector;\n exports.default = createCachedSelector;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n//# sourceMappingURL=index.js.map\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseOrderBy = require('./_baseOrderBy'),\n isArray = require('./isArray');\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n}\n\nmodule.exports = orderBy;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray'),\n negate = require('./negate');\n\n/**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\nfunction reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(baseIteratee(predicate, 3)));\n}\n\nmodule.exports = reject;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n}\n\nmodule.exports = negate;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","export default function _isPlaceholder(a) {\n return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;\n}","import _isPlaceholder from './_isPlaceholder.js';\n\n/**\n * Optimized internal one-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\nexport default function _curry1(fn) {\n return function f1(a) {\n if (arguments.length === 0 || _isPlaceholder(a)) {\n return f1;\n } else {\n return fn.apply(this, arguments);\n }\n };\n}","export default function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}","import _curry1 from './_curry1.js';\nimport _isPlaceholder from './_isPlaceholder.js';\n\n/**\n * Optimized internal two-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\nexport default function _curry2(fn) {\n return function f2(a, b) {\n switch (arguments.length) {\n case 0:\n return f2;\n case 1:\n return _isPlaceholder(a) ? f2 : _curry1(function (_b) {\n return fn(a, _b);\n });\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b);\n }) : fn(a, b);\n }\n };\n}","import _arity from './internal/_arity.js';\nimport _curry1 from './internal/_curry1.js';\nimport _curry2 from './internal/_curry2.js';\nimport _curryN from './internal/_curryN.js';\n\n/**\n * Returns a curried equivalent of the provided function, with the specified\n * arity. The curried function has two unusual capabilities. First, its\n * arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the\n * following are equivalent:\n *\n * - `g(1)(2)(3)`\n * - `g(1)(2, 3)`\n * - `g(1, 2)(3)`\n * - `g(1, 2, 3)`\n *\n * Secondly, the special placeholder value [`R.__`](#__) may be used to specify\n * \"gaps\", allowing partial application of any combination of arguments,\n * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),\n * the following are equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @func\n * @memberOf R\n * @since v0.5.0\n * @category Function\n * @sig Number -> (* -> a) -> (* -> a)\n * @param {Number} length The arity for the returned function.\n * @param {Function} fn The function to curry.\n * @return {Function} A new, curried function.\n * @see R.curry\n * @example\n *\n * const sumArgs = (...args) => R.sum(args);\n *\n * const curriedAddFourNumbers = R.curryN(4, sumArgs);\n * const f = curriedAddFourNumbers(1, 2);\n * const g = f(3);\n * g(4); //=> 10\n */\nvar curryN = /*#__PURE__*/_curry2(function curryN(length, fn) {\n if (length === 1) {\n return _curry1(fn);\n }\n return _arity(length, _curryN(length, [], fn));\n});\nexport default curryN;","import _arity from './_arity.js';\nimport _isPlaceholder from './_isPlaceholder.js';\n\n/**\n * Internal curryN function.\n *\n * @private\n * @category Function\n * @param {Number} length The arity of the curried function.\n * @param {Array} received An array of arguments received thus far.\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\nexport default function _curryN(length, received, fn) {\n return function () {\n var combined = [];\n var argsIdx = 0;\n var left = length;\n var combinedIdx = 0;\n while (combinedIdx < received.length || argsIdx < arguments.length) {\n var result;\n if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {\n result = received[combinedIdx];\n } else {\n result = arguments[argsIdx];\n argsIdx += 1;\n }\n combined[combinedIdx] = result;\n if (!_isPlaceholder(result)) {\n left -= 1;\n }\n combinedIdx += 1;\n }\n return left <= 0 ? fn.apply(this, combined) : _arity(left, _curryN(length, combined, fn));\n };\n}","import _curry1 from './internal/_curry1.js';\nimport curryN from './curryN.js';\n\n/**\n * Returns a curried equivalent of the provided function. The curried function\n * has two unusual capabilities. First, its arguments needn't be provided one\n * at a time. If `f` is a ternary function and `g` is `R.curry(f)`, the\n * following are equivalent:\n *\n * - `g(1)(2)(3)`\n * - `g(1)(2, 3)`\n * - `g(1, 2)(3)`\n * - `g(1, 2, 3)`\n *\n * Secondly, the special placeholder value [`R.__`](#__) may be used to specify\n * \"gaps\", allowing partial application of any combination of arguments,\n * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),\n * the following are equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Function\n * @sig (* -> a) -> (* -> a)\n * @param {Function} fn The function to curry.\n * @return {Function} A new, curried function.\n * @see R.curryN, R.partial\n * @example\n *\n * const addFourNumbers = (a, b, c, d) => a + b + c + d;\n *\n * const curriedAddFourNumbers = R.curry(addFourNumbers);\n * const f = curriedAddFourNumbers(1, 2);\n * const g = f(3);\n * g(4); //=> 10\n */\nvar curry = /*#__PURE__*/_curry1(function curry(fn) {\n return curryN(fn.length, fn);\n});\nexport default curry;","/**\n * A special placeholder value used to specify \"gaps\" within curried functions,\n * allowing partial application of any combination of arguments, regardless of\n * their positions.\n *\n * If `g` is a curried ternary function and `_` is `R.__`, the following are\n * equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2, _)(1, 3)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @name __\n * @constant\n * @memberOf R\n * @since v0.6.0\n * @category Function\n * @example\n *\n * const greet = R.replace('{name}', R.__, 'Hello, {name}!');\n * greet('Alice'); //=> 'Hello, Alice!'\n */\nexport default { '@@functional/placeholder': true };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport { curry, __ as placeholder } from 'ramda';\n\nfunction forOwn(obj, fn) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n fn(obj[key], key);\n }\n }\n}\n\nfunction isArrayLike(value) {\n return value && _typeof(value) === 'object' && typeof value.length === 'number' && value.length >= 0 && value.length % 1 === 0;\n}\n\nvar OWNER_ID_TAG = '@@_______immutableOpsOwnerID';\n\nfunction fastArrayCopy(arr) {\n var copied = new Array(arr.length);\n\n for (var i = 0; i < arr.length; i++) {\n copied[i] = arr[i];\n }\n\n return copied;\n}\n\nexport function canMutate(obj, ownerID) {\n if (!ownerID) return false;\n return obj[OWNER_ID_TAG] === ownerID;\n}\nvar newOwnerID = typeof Symbol === 'function' ? function () {\n return Symbol('ownerID');\n} : function () {\n return {};\n};\nexport var getBatchToken = newOwnerID;\n\nfunction addOwnerID(obj, ownerID) {\n Object.defineProperty(obj, OWNER_ID_TAG, {\n value: ownerID,\n configurable: true,\n enumerable: false\n });\n return obj;\n}\n\nfunction prepareNewObject(instance, ownerID) {\n if (ownerID) {\n addOwnerID(instance, ownerID);\n }\n\n return instance;\n}\n\nfunction forceArray(arg) {\n if (!(arg instanceof Array)) {\n return [arg];\n }\n\n return arg;\n}\n\nvar PATH_SEPARATOR = '.';\n\nfunction normalizePath(pathArg) {\n if (typeof pathArg === 'string') {\n if (pathArg.indexOf(PATH_SEPARATOR) === -1) {\n return [pathArg];\n }\n\n return pathArg.split(PATH_SEPARATOR);\n }\n\n return pathArg;\n}\n\nfunction mutableSet(key, value, obj) {\n obj[key] = value;\n return obj;\n}\n\nfunction mutableSetIn(_pathArg, value, obj) {\n var originalPathArg = normalizePath(_pathArg);\n var pathLen = originalPathArg.length;\n var done = false;\n var idx = 0;\n var acc = obj;\n var curr = originalPathArg[idx];\n\n while (!done) {\n if (idx === pathLen - 1) {\n acc[curr] = value;\n done = true;\n } else {\n var currType = _typeof(acc[curr]);\n\n if (currType === 'undefined') {\n var newObj = {};\n prepareNewObject(newObj, null);\n acc[curr] = newObj;\n } else if (currType !== 'object') {\n var pathRepr = \"\".concat(originalPathArg[idx - 1], \".\").concat(curr);\n throw new Error(\"A non-object value was encountered when traversing setIn path at \".concat(pathRepr, \".\"));\n }\n\n acc = acc[curr];\n idx++;\n curr = originalPathArg[idx];\n }\n }\n\n return obj;\n}\n\nfunction valueInPath(_pathArg, obj) {\n var pathArg = normalizePath(_pathArg);\n var acc = obj;\n\n for (var i = 0; i < pathArg.length; i++) {\n var curr = pathArg[i];\n var currRef = acc[curr];\n\n if (i === pathArg.length - 1) {\n return currRef;\n }\n\n if (_typeof(currRef) === 'object') {\n acc = currRef;\n } else {\n return undefined;\n }\n }\n\n return undefined;\n}\n\nfunction immutableSetIn(ownerID, _pathArg, value, obj) {\n var pathArg = normalizePath(_pathArg);\n var currentValue = valueInPath(pathArg, obj);\n if (value === currentValue) return obj;\n var pathLen = pathArg.length;\n var acc;\n\n if (canMutate(obj, ownerID)) {\n acc = obj;\n } else {\n acc = Object.assign(prepareNewObject({}, ownerID), obj);\n }\n\n var rootObj = acc;\n pathArg.forEach(function (curr, idx) {\n if (idx === pathLen - 1) {\n acc[curr] = value;\n return;\n }\n\n var currRef = acc[curr];\n\n var currType = _typeof(currRef);\n\n if (currType === 'object') {\n if (canMutate(currRef, ownerID)) {\n acc = currRef;\n } else {\n var newObj = prepareNewObject({}, ownerID);\n acc[curr] = Object.assign(newObj, currRef);\n acc = newObj;\n }\n\n return;\n }\n\n if (currType === 'undefined') {\n var _newObj = prepareNewObject({}, ownerID);\n\n acc[curr] = _newObj;\n acc = _newObj;\n return;\n }\n\n var pathRepr = \"\".concat(pathArg[idx - 1], \".\").concat(curr);\n throw new Error(\"A non-object value was encountered when traversing setIn path at \".concat(pathRepr, \".\"));\n });\n return rootObj;\n}\n\nfunction mutableMerge(isDeep, _mergeObjs, baseObj) {\n var mergeObjs = forceArray(_mergeObjs);\n\n if (isDeep) {\n mergeObjs.forEach(function (mergeObj) {\n forOwn(mergeObj, function (value, key) {\n if (isDeep && baseObj.hasOwnProperty(key)) {\n var assignValue;\n\n if (_typeof(value) === 'object') {\n assignValue = mutableMerge(isDeep, [value], baseObj[key]);\n } else {\n assignValue = value;\n }\n\n baseObj[key] = assignValue;\n } else {\n baseObj[key] = value;\n }\n });\n });\n } else {\n Object.assign.apply(Object, [baseObj].concat(_toConsumableArray(mergeObjs)));\n }\n\n return baseObj;\n}\n\nvar mutableShallowMerge = mutableMerge.bind(null, false);\nvar mutableDeepMerge = mutableMerge.bind(null, true);\n\nfunction mutableOmit(_keys, obj) {\n var keys = forceArray(_keys);\n keys.forEach(function (key) {\n delete obj[key];\n });\n return obj;\n}\n\nfunction shouldMergeKey(obj, other, key) {\n return obj[key] !== other[key];\n}\n\nfunction immutableMerge(isDeep, ownerID, _mergeObjs, obj) {\n if (canMutate(obj, ownerID)) return mutableMerge(isDeep, _mergeObjs, obj);\n var mergeObjs = forceArray(_mergeObjs);\n var hasChanges = false;\n var nextObject = obj;\n\n var willChange = function willChange() {\n if (!hasChanges) {\n hasChanges = true;\n nextObject = Object.assign({}, obj);\n prepareNewObject(nextObject, ownerID);\n }\n };\n\n mergeObjs.forEach(function (mergeObj) {\n forOwn(mergeObj, function (mergeValue, key) {\n if (isDeep && obj.hasOwnProperty(key)) {\n var currentValue = nextObject[key];\n\n if (_typeof(mergeValue) === 'object' && !(mergeValue instanceof Array)) {\n if (shouldMergeKey(nextObject, mergeObj, key)) {\n var recursiveMergeResult = immutableMerge(isDeep, ownerID, mergeValue, currentValue);\n\n if (recursiveMergeResult !== currentValue) {\n willChange();\n nextObject[key] = recursiveMergeResult;\n }\n }\n\n return true; // continue forOwn\n }\n }\n\n if (shouldMergeKey(nextObject, mergeObj, key)) {\n willChange();\n nextObject[key] = mergeValue;\n }\n\n return undefined;\n });\n });\n return nextObject;\n}\n\nvar immutableDeepMerge = immutableMerge.bind(null, true);\nvar immutableShallowMerge = immutableMerge.bind(null, false);\n\nfunction immutableArrSet(ownerID, index, value, arr) {\n if (canMutate(arr, ownerID)) return mutableSet(index, value, arr);\n if (arr[index] === value) return arr;\n var newArr = fastArrayCopy(arr);\n newArr[index] = value;\n prepareNewObject(newArr, ownerID);\n return newArr;\n}\n\nfunction immutableSet(ownerID, key, value, obj) {\n if (isArrayLike(obj)) return immutableArrSet(ownerID, key, value, obj);\n if (canMutate(obj, ownerID)) return mutableSet(key, value, obj);\n if (obj[key] === value) return obj;\n var newObj = Object.assign({}, obj);\n prepareNewObject(newObj, ownerID);\n newObj[key] = value;\n return newObj;\n}\n\nfunction immutableOmit(ownerID, _keys, obj) {\n if (canMutate(obj, ownerID)) return mutableOmit(_keys, obj);\n var keys = forceArray(_keys);\n var keysInObj = keys.filter(function (key) {\n return obj.hasOwnProperty(key);\n }); // None of the keys were in the object, so we can return `obj`.\n\n if (keysInObj.length === 0) return obj;\n var newObj = Object.assign({}, obj);\n keysInObj.forEach(function (key) {\n delete newObj[key];\n });\n prepareNewObject(newObj, ownerID);\n return newObj;\n}\n\nfunction mutableArrPush(_vals, arr) {\n var vals = forceArray(_vals);\n arr.push.apply(arr, _toConsumableArray(vals));\n return arr;\n}\n\nfunction mutableArrFilter(func, arr) {\n var currIndex = 0;\n var originalIndex = 0;\n\n while (currIndex < arr.length) {\n var item = arr[currIndex];\n\n if (!func(item, originalIndex)) {\n arr.splice(currIndex, 1);\n } else {\n currIndex++;\n }\n\n originalIndex++;\n }\n\n return arr;\n}\n\nfunction mutableArrSplice(index, deleteCount, _vals, arr) {\n var vals = forceArray(_vals);\n arr.splice.apply(arr, [index, deleteCount].concat(_toConsumableArray(vals)));\n return arr;\n}\n\nfunction mutableArrInsert(index, _vals, arr) {\n return mutableArrSplice(index, 0, _vals, arr);\n}\n\nfunction immutableArrSplice(ownerID, index, deleteCount, _vals, arr) {\n if (canMutate(arr, ownerID)) return mutableArrSplice(index, deleteCount, _vals, arr);\n var vals = forceArray(_vals);\n var newArr = arr.slice();\n prepareNewObject(newArr, ownerID);\n newArr.splice.apply(newArr, [index, deleteCount].concat(_toConsumableArray(vals)));\n return newArr;\n}\n\nfunction immutableArrInsert(ownerID, index, _vals, arr) {\n if (canMutate(arr, ownerID)) return mutableArrInsert(index, _vals, arr);\n return immutableArrSplice(ownerID, index, 0, _vals, arr);\n}\n\nfunction immutableArrPush(ownerID, vals, arr) {\n return immutableArrInsert(ownerID, arr.length, vals, arr);\n}\n\nfunction immutableArrFilter(ownerID, func, arr) {\n if (canMutate(arr, ownerID)) return mutableArrFilter(func, arr);\n var newArr = arr.filter(func);\n if (newArr.length === arr.length) return arr;\n prepareNewObject(newArr, ownerID);\n return newArr;\n}\n\nvar immutableOperations = {\n // object operations\n merge: immutableShallowMerge,\n deepMerge: immutableDeepMerge,\n omit: immutableOmit,\n setIn: immutableSetIn,\n // array operations\n insert: immutableArrInsert,\n push: immutableArrPush,\n filter: immutableArrFilter,\n splice: immutableArrSplice,\n // both\n set: immutableSet\n};\nvar mutableOperations = {\n // object operations\n merge: mutableShallowMerge,\n deepMerge: mutableDeepMerge,\n omit: mutableOmit,\n setIn: mutableSetIn,\n // array operations\n insert: mutableArrInsert,\n push: mutableArrPush,\n filter: mutableArrFilter,\n splice: mutableArrSplice,\n // both\n set: mutableSet\n};\nexport function getImmutableOps() {\n var immutableOps = Object.assign({}, immutableOperations);\n forOwn(immutableOps, function (value, key) {\n immutableOps[key] = curry(value.bind(null, null));\n });\n var mutableOps = Object.assign({}, mutableOperations);\n forOwn(mutableOps, function (value, key) {\n mutableOps[key] = curry(value);\n });\n var batchOps = Object.assign({}, immutableOperations);\n forOwn(batchOps, function (value, key) {\n batchOps[key] = curry(value);\n });\n\n function batched(_token, _fn) {\n var token;\n var fn;\n\n if (typeof _token === 'function') {\n fn = _token;\n token = getBatchToken();\n } else {\n token = _token;\n fn = _fn;\n }\n\n var immutableOpsBoundToToken = Object.assign({}, immutableOperations);\n forOwn(immutableOpsBoundToToken, function (value, key) {\n immutableOpsBoundToToken[key] = curry(value.bind(null, token));\n });\n return fn(immutableOpsBoundToToken);\n }\n\n return Object.assign(immutableOps, {\n mutable: mutableOps,\n batch: batchOps,\n batched: batched,\n __: placeholder,\n getBatchToken: getBatchToken\n });\n}\nexport var ops = getImmutableOps();\nexport default ops;","export const UPDATE = \"REDUX_ORM_UPDATE\";\nexport const DELETE = \"REDUX_ORM_DELETE\";\nexport const CREATE = \"REDUX_ORM_CREATE\";\n\nexport const FILTER = \"REDUX_ORM_FILTER\";\nexport const EXCLUDE = \"REDUX_ORM_EXCLUDE\";\nexport const ORDER_BY = \"REDUX_ORM_ORDER_BY\";\n\nexport const SUCCESS = \"SUCCESS\";\nexport const FAILURE = \"FAILURE\";\n\n// for detecting ORM state objects\nexport const STATE_FLAG = \"@@_______REDUX_ORM_STATE_FLAG\";\n\n// for caching selectors based on their ID argument\nexport const ALL_INSTANCES = Symbol(\"REDUX_ORM_ALL_INSTANCES\");\nexport const ID_ARG_KEY_SELECTOR = (_state, idArg) =>\n typeof idArg === \"undefined\" ? ALL_INSTANCES : idArg;\n","import ops from \"immutable-ops\";\nimport { FILTER, EXCLUDE } from \"./constants\";\n\n/**\n * @module utils\n * @private\n */\n\n/** @private */\nfunction warnDeprecated(msg) {\n const logger =\n typeof console.warn === \"function\"\n ? console.warn.bind(console)\n : console.log.bind(console);\n return logger(msg);\n}\n\n/** @private */\nfunction capitalize(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n/**\n * Returns the branch name for a many-to-many relation.\n * The name is the combination of the model name and the field name the relation\n * was declared. The field name's first letter is capitalized.\n *\n * Example: model `Author` has a many-to-many relation to the model `Book`, defined\n * in the `Author` field `books`. The many-to-many branch name will be `AuthorBooks`.\n *\n * @param {string} declarationModelName - the name of the model the many-to-many relation was declared on\n * @param {string} fieldName - the field name where the many-to-many relation was declared on\n * @return {string} The branch name for the many-to-many relation.\n */\nfunction m2mName(declarationModelName, fieldName) {\n return declarationModelName + capitalize(fieldName);\n}\n\n/**\n * Returns the fieldname that saves a foreign key to the\n * model id where the many-to-many relation was declared.\n *\n * Example: `Author` => `fromAuthorId`\n *\n * @param {string} declarationModelName - the name of the model where the relation was declared\n * @return {string} the field name in the through model for `declarationModelName`'s foreign key.\n */\nfunction m2mFromFieldName(declarationModelName) {\n return `from${declarationModelName}Id`;\n}\n\n/**\n * Returns the fieldname that saves a foreign key in a many-to-many through model to the\n * model where the many-to-many relation was declared.\n *\n * Example: `Book` => `toBookId`\n *\n * @param {string} otherModelName - the name of the model that was the target of the many-to-many\n * declaration.\n * @return {string} the field name in the through model for `otherModelName`'s foreign key..\n */\nfunction m2mToFieldName(otherModelName) {\n return `to${otherModelName}Id`;\n}\n\n/** */\nfunction reverseFieldName(modelName) {\n return modelName.toLowerCase() + \"Set\"; // eslint-disable-line prefer-template\n}\n\n/** @private */\nfunction querySetDelegatorFactory(methodName) {\n return function querySetDelegator(...args) {\n return this.getQuerySet()[methodName](...args);\n };\n}\n\n/** @private */\nfunction querySetGetterDelegatorFactory(getterName) {\n return function querySetGetterDelegator() {\n const qs = this.getQuerySet();\n return qs[getterName];\n };\n}\n\n/** @private */\nfunction forEachSuperClass(subClass, func) {\n let currClass = subClass;\n while (currClass !== Function.prototype) {\n func(currClass);\n currClass = Object.getPrototypeOf(currClass);\n }\n}\n\n/** */\nfunction attachQuerySetMethods(modelClass, querySetClass) {\n const leftToDefine = querySetClass.sharedMethods.slice();\n\n // There is no way to get a property descriptor for the whole prototype chain;\n // only from an objects own properties. Therefore we traverse the whole prototype\n // chain for querySet.\n forEachSuperClass(querySetClass, cls => {\n for (let i = 0; i < leftToDefine.length; i++) {\n let defined = false;\n const methodName = leftToDefine[i];\n const descriptor = Object.getOwnPropertyDescriptor(\n cls.prototype,\n methodName\n );\n if (typeof descriptor !== \"undefined\") {\n if (typeof descriptor.get !== \"undefined\") {\n descriptor.get = querySetGetterDelegatorFactory(methodName);\n Object.defineProperty(modelClass, methodName, descriptor);\n } else {\n modelClass[methodName] = querySetDelegatorFactory(\n methodName\n );\n }\n defined = true;\n }\n if (defined) {\n leftToDefine.splice(i--, 1);\n }\n }\n });\n}\n\n/**\n * Normalizes `entity` to an id, where `entity` can be an id\n * or a Model instance.\n *\n * @param {*} entity - either a Model instance or an id value\n * @return {*} the id value of `entity`\n */\nfunction normalizeEntity(entity) {\n if (\n entity !== null &&\n typeof entity !== \"undefined\" &&\n typeof entity.getId === \"function\"\n ) {\n return entity.getId();\n }\n return entity;\n}\n\n/** */\nfunction reverseFieldErrorMessage(\n modelName,\n fieldName,\n toModelName,\n backwardsFieldName\n) {\n return [\n `Reverse field ${backwardsFieldName} already defined`,\n ` on model ${toModelName}. To fix, set a custom related`,\n ` name on ${modelName}.${fieldName}.`,\n ].join(\"\");\n}\n\n/**\n * Fastest way to check if two objects are equal.\n * Object and array values have to be referentially equal.\n */\nfunction objectShallowEquals(a, b) {\n const entriesInA = Object.entries(Object(a));\n\n if (entriesInA.length !== Object.keys(b).length) {\n return false;\n }\n\n return entriesInA.every(\n ([key, value]) => b.hasOwnProperty(key) && b[key] === value\n );\n}\n\n/** */\nfunction arrayDiffActions(sourceArr, targetArr) {\n const itemsInBoth = sourceArr.filter(item => targetArr.includes(item));\n const deleteItems = sourceArr.filter(item => !itemsInBoth.includes(item));\n const addItems = targetArr.filter(item => !itemsInBoth.includes(item));\n\n if (deleteItems.length || addItems.length) {\n return {\n delete: deleteItems,\n add: addItems,\n };\n }\n return null;\n}\n\nconst { getBatchToken } = ops;\n\n/**\n * @return boolean\n */\nfunction clauseFiltersByAttribute({ type, payload }, attribute) {\n if (type !== FILTER) return false;\n\n if (typeof payload !== \"object\") {\n /**\n * payload could also be a function in which case\n * we would have no way of knowing what it does,\n * so we default to false for non-objects\n */\n return false;\n }\n\n if (!payload.hasOwnProperty(attribute)) return false;\n const attributeValue = payload[attribute];\n if (attributeValue === null) return false;\n if (attributeValue === undefined) return false;\n\n return true;\n}\n\n/**\n * @return boolean\n */\nfunction clauseReducesResultSetSize({ type }) {\n return [FILTER, EXCLUDE].includes(type);\n}\n\n/**\n * @param {Object} object\n * @return Object\n */\nfunction mapValues(object, func) {\n return Object.entries(object).reduce((newObject, [key, value]) => {\n newObject[key] = func(value);\n return newObject;\n }, {});\n}\n\n/** */\nfunction normalizeModelReference(modelNameOrClass) {\n if (!modelNameOrClass || typeof modelNameOrClass === \"string\") {\n return modelNameOrClass;\n }\n return modelNameOrClass.modelName;\n}\n\nexport {\n attachQuerySetMethods,\n m2mName,\n m2mFromFieldName,\n m2mToFieldName,\n reverseFieldName,\n normalizeEntity,\n reverseFieldErrorMessage,\n objectShallowEquals,\n ops,\n arrayDiffActions,\n getBatchToken,\n clauseFiltersByAttribute,\n clauseReducesResultSetSize,\n warnDeprecated,\n mapValues,\n normalizeModelReference,\n};\n","import { normalizeEntity, warnDeprecated, mapValues } from \"./utils\";\n\nimport { UPDATE, DELETE, FILTER, EXCLUDE, ORDER_BY } from \"./constants\";\n\n/**\n * This class is used to build and make queries to the database\n * and operating the resulting set (such as updating attributes\n * or deleting the records).\n *\n * The queries are built lazily. For example:\n *\n * ```javascript\n * const qs = Book.all()\n * .filter(book => book.releaseYear > 1999)\n * .orderBy('name');\n * ```\n *\n * Doesn't execute a query. The query is executed only when\n * you need information from the query result, such as {@link QuerySet#count},\n * {@link QuerySet#toRefArray}. After the query is executed, the resulting\n * set is cached in the QuerySet instance.\n *\n * QuerySet instances also return copies, so chaining filters doesn't\n * mutate the previous instances.\n */\nconst QuerySet = class QuerySet {\n /**\n * Creates a QuerySet. The constructor is mainly for internal use;\n * You should access QuerySet instances from {@link Model}.\n *\n * @param {Model} modelClass - the model class of objects in this QuerySet.\n * @param {any[]} clauses - query clauses needed to evaluate the set.\n * @param {Object} [opts] - additional options\n */\n constructor(modelClass, clauses, opts) {\n Object.assign(this, {\n modelClass,\n clauses: clauses || [],\n });\n\n this._opts = opts;\n }\n\n static addSharedMethod(methodName) {\n this.sharedMethods = this.sharedMethods.concat(methodName);\n }\n\n _new(clauses, userOpts) {\n const opts = { ...this._opts, ...userOpts };\n return new this.constructor(this.modelClass, clauses, opts);\n }\n\n toString() {\n this._evaluate();\n const contents = this.rows\n .map(({ id }) => this.modelClass.withId(id).toString())\n .join(\"\\n - \");\n return `QuerySet contents:\\n - ${contents}`;\n }\n\n /**\n * Returns an array of the plain objects represented by the QuerySet.\n * The plain objects are direct references to the store.\n *\n * @return {Object[]} references to the plain JS objects represented by\n * the QuerySet\n */\n toRefArray() {\n return this._evaluate();\n }\n\n /**\n * Returns an array of {@link Model} instances represented by the QuerySet.\n * @return {Model[]} model instances represented by the QuerySet\n */\n toModelArray() {\n const { modelClass: ModelClass } = this;\n return this._evaluate().map(props => new ModelClass(props));\n }\n\n /**\n * Returns the number of {@link Model} instances represented by the QuerySet.\n *\n * @return {number} length of the QuerySet\n */\n count() {\n this._evaluate();\n return this.rows.length;\n }\n\n /**\n * Checks if the {@link QuerySet} instance has any records matching the query\n * in the database.\n *\n * @return {Boolean} `true` if the {@link QuerySet} instance contains entities, else `false`.\n */\n exists() {\n return Boolean(this.count());\n }\n\n /**\n * Returns the {@link Model} instance at index `index` in the {@link QuerySet} instance if\n * `withRefs` flag is set to `false`, or a reference to the plain JavaScript\n * object in the model state if `true`.\n *\n * @param {number} index - index of the model instance to get\n * @return {Model|undefined} a {@link Model} instance at index\n * `index` in the {@link QuerySet} instance,\n * or undefined if the index is out of bounds.\n */\n at(index) {\n const { modelClass: ModelClass } = this;\n\n const rows = this._evaluate();\n if (index >= 0 && index < rows.length) {\n return new ModelClass(rows[index]);\n }\n\n return undefined;\n }\n\n /**\n * Returns the {@link Model} instance at index 0 in the {@link QuerySet} instance.\n * @return {Model}\n */\n first() {\n return this.at(0);\n }\n\n /**\n * Returns the {@link Model} instance at index `QuerySet.count() - 1`\n * @return {Model}\n */\n last() {\n const rows = this._evaluate();\n return this.at(rows.length - 1);\n }\n\n /**\n * Returns a new {@link QuerySet} instance with the same entities.\n * @return {QuerySet} a new QuerySet with the same entities.\n */\n all() {\n return this._new(this.clauses);\n }\n\n /**\n * Returns a new {@link QuerySet} instance with entities that match properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to match objects with. Can also be a function.\n * It works the same as [Lodash filter](https://lodash.com/docs/#filter).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that passed the filter.\n */\n filter(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj =\n typeof lookupObj === \"object\"\n ? mapValues(lookupObj, normalizeEntity)\n : lookupObj;\n\n const filterDescriptor = {\n type: FILTER,\n payload: normalizedLookupObj,\n };\n /**\n * create a new QuerySet\n * including only rows matching the lookupObj\n */\n return this._new(this.clauses.concat(filterDescriptor));\n }\n\n /**\n * Returns a new {@link QuerySet} instance with entities that do not match\n * properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to unmatch objects with. Can also be a function.\n * It works the same as [Lodash reject](https://lodash.com/docs/#reject).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that did not pass the filter.\n */\n exclude(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj =\n typeof lookupObj === \"object\"\n ? mapValues(lookupObj, normalizeEntity)\n : lookupObj;\n const excludeDescriptor = {\n type: EXCLUDE,\n payload: normalizedLookupObj,\n };\n\n /**\n * create a new QuerySet\n * excluding all rows matching the lookupObj\n */\n return this._new(this.clauses.concat(excludeDescriptor));\n }\n\n /**\n * Performs the actual database query.\n * @private\n * @return {Array} rows corresponding to the QuerySet's clauses\n */\n _evaluate() {\n if (typeof this.modelClass.session === \"undefined\") {\n throw new Error(\n [\n `Tried to query the ${this.modelClass.modelName} model's table without a session. `,\n \"Create a session using `session = orm.session()` and use \",\n `\\`session[\"${this.modelClass.modelName}\"]\\` for querying instead.`,\n ].join(\"\")\n );\n }\n if (!this._evaluated) {\n const { session, modelName: table } = this.modelClass;\n const querySpec = {\n table,\n clauses: this.clauses,\n };\n this.rows = session.query(querySpec).rows;\n this._evaluated = true;\n }\n return this.rows;\n }\n\n /**\n * Returns a new {@link QuerySet} instance with entities ordered by `iteratees` in ascending\n * order, unless otherwise specified. Delegates to [Lodash orderBy](https://lodash.com/docs/#orderBy).\n *\n * @param {string[]|Function[]} iteratees - an array where each item can be a string or a\n * function. If a string is supplied, it should\n * correspond to property on the entity that will\n * determine the order. If a function is supplied,\n * it should return the value to order by.\n * @param {Array} [orders] - the sort orders of `iteratees`. If unspecified, all iteratees\n * will be sorted in ascending order. `true` and `'asc'`\n * correspond to ascending order, and `false` and `'desc'`\n * to descending order.\n * @return {QuerySet} a new {@link QuerySet} with objects ordered by `iteratees`.\n */\n orderBy(iteratees, orders) {\n const orderByDescriptor = {\n type: ORDER_BY,\n payload: [iteratees, orders],\n };\n\n /**\n * create a new QuerySet\n * sorting all rows according to the passed arguments\n */\n return this._new(this.clauses.concat(orderByDescriptor));\n }\n\n /**\n * Records an update specified with `mergeObj` to all the objects\n * in the {@link QuerySet} instance.\n *\n * @param {Object} mergeObj - an object to merge with all the objects in this\n * queryset.\n * @return {undefined}\n */\n update(mergeObj) {\n const { session, modelName: table } = this.modelClass;\n\n session.applyUpdate({\n action: UPDATE,\n query: {\n table,\n clauses: this.clauses,\n },\n payload: mergeObj,\n });\n\n this._evaluated = false;\n }\n\n /**\n * Records a deletion of all the objects in this {@link QuerySet} instance.\n * @return {undefined}\n */\n delete() {\n const { session, modelName: table } = this.modelClass;\n\n this.toModelArray().forEach(\n model => model._onDelete() // eslint-disable-line no-underscore-dangle\n );\n\n session.applyUpdate({\n action: DELETE,\n query: {\n table,\n clauses: this.clauses,\n },\n });\n\n this._evaluated = false;\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated\n * Use {@link QuerySet#toModelArray} or predicate functions that\n * instantiate Models from refs, e.g. `new Model(ref)`.\n */\n get withModels() {\n throw new Error(\n \"`QuerySet.prototype.withModels` has been removed. \" +\n \"Use `.toModelArray()` or predicate functions that \" +\n \"instantiate Models from refs, e.g. `new Model(ref)`.\"\n );\n }\n\n /**\n * @deprecated Query building operates on refs only now.\n */\n get withRefs() {\n warnDeprecated(\n \"`QuerySet.prototype.withRefs` has been deprecated. \" +\n \"Query building operates on refs only now.\"\n );\n return undefined;\n }\n\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to map.\n */\n map() {\n throw new Error(\n \"`QuerySet.prototype.map` has been removed. \" +\n \"Call `.toModelArray()` or `.toRefArray()` first to map.\"\n );\n }\n\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to iterate.\n */\n forEach() {\n throw new Error(\n \"`QuerySet.prototype.forEach` has been removed. \" +\n \"Call `.toModelArray()` or `.toRefArray()` first to iterate.\"\n );\n }\n};\n\nQuerySet.sharedMethods = [\n \"count\",\n \"at\",\n \"all\",\n \"last\",\n \"first\",\n \"filter\",\n \"exclude\",\n \"orderBy\",\n \"update\",\n \"delete\",\n];\n\nexport default QuerySet;\n","import { getBatchToken } from \"immutable-ops\";\n\nimport { SUCCESS, UPDATE, DELETE } from \"./constants\";\nimport { warnDeprecated, clauseFiltersByAttribute } from \"./utils\";\n\nconst Session = class Session {\n /**\n * Creates a new Session.\n *\n * @param {Database} db - a {@link Database} instance\n * @param {Object} state - the database state\n * @param {Boolean} [withMutations] - whether the session should mutate data\n * @param {Object} [batchToken] - used by the backend to identify objects that can be\n * mutated.\n */\n constructor(schema, db, state, withMutations, batchToken) {\n this.schema = schema;\n this.db = db;\n this.state = state || db.getEmptyState();\n this.initialState = this.state;\n\n this.withMutations = Boolean(withMutations);\n this.batchToken = batchToken || getBatchToken();\n\n this.modelData = {};\n\n this.models = schema.getModelClasses();\n\n this.sessionBoundModels = this.models.map(modelClass => {\n function SessionBoundModel() {\n return Reflect.construct(\n modelClass,\n arguments,\n SessionBoundModel\n ); // eslint-disable-line prefer-rest-params\n }\n Reflect.setPrototypeOf(\n SessionBoundModel.prototype,\n modelClass.prototype\n );\n Reflect.setPrototypeOf(SessionBoundModel, modelClass);\n\n Object.defineProperty(this, modelClass.modelName, {\n get: () => SessionBoundModel,\n });\n\n SessionBoundModel.connect(this);\n return SessionBoundModel;\n });\n }\n\n getDataForModel(modelName) {\n if (!this.modelData[modelName]) {\n this.modelData[modelName] = {};\n }\n return this.modelData[modelName];\n }\n\n getModelData() {\n return this.modelData;\n }\n\n markAccessed(modelName, modelIds) {\n const data = this.getDataForModel(modelName);\n if (!data.accessedInstances) {\n data.accessedInstances = {};\n }\n modelIds.forEach(id => {\n data.accessedInstances[id] = true;\n });\n }\n\n get accessedModelInstances() {\n return Object.entries(this.getModelData()).reduce(\n (result, [key, value]) => {\n if (value.accessedInstances) {\n result[key] = value.accessedInstances;\n }\n return result;\n },\n {}\n );\n }\n\n markFullTableScanned(modelName) {\n const data = this.getDataForModel(modelName);\n data.fullTableScanned = true;\n }\n\n get fullTableScannedModels() {\n return Object.entries(this.getModelData()).reduce(\n (result, [key, value]) => {\n if (value.fullTableScanned) {\n result.push(key);\n }\n return result;\n },\n []\n );\n }\n\n markAccessedIndexes(indexes) {\n indexes.forEach(([table, attr, value]) => {\n const data = this.getDataForModel(table);\n if (!data.accessedIndexes) {\n data.accessedIndexes = {};\n }\n data.accessedIndexes[attr] = [\n ...(data.accessedIndexes[attr] || []),\n value,\n ];\n });\n }\n\n get accessedIndexes() {\n return Object.entries(this.getModelData()).reduce(\n (result, [key, value]) => {\n if (value.accessedIndexes) {\n result[key] = value.accessedIndexes;\n }\n return result;\n },\n {}\n );\n }\n\n /**\n * Applies update to a model state.\n *\n * @private\n * @param {Object} update - the update object. Must have keys\n * `type`, `payload`.\n */\n applyUpdate(updateSpec) {\n const tx = this._getTransaction(updateSpec);\n const result = this.db.update(updateSpec, tx, this.state);\n const { status, state, payload } = result;\n\n if (status !== SUCCESS) {\n throw new Error(\n `Applying update failed with status ${status}. Payload: ${payload}`\n );\n }\n\n this.state = state;\n\n return payload;\n }\n\n query(querySpec) {\n const result = this.db.query(querySpec, this.state);\n\n this._markAccessedByQuery(querySpec, result);\n\n return result;\n }\n\n _getTransaction(updateSpec) {\n const { withMutations } = this;\n const { action } = updateSpec;\n let { batchToken } = this;\n if ([UPDATE, DELETE].includes(action)) {\n batchToken = getBatchToken();\n }\n return { batchToken, withMutations };\n }\n\n _markAccessedByQuery(querySpec, result) {\n const { table, clauses } = querySpec;\n const { rows } = result;\n\n const { idAttribute } = this[table];\n const accessedIds = new Set(rows.map(row => row[idAttribute]));\n\n const anyClauseFilteredByPk = clauses.some(clause => {\n if (!clauseFiltersByAttribute(clause, idAttribute)) {\n return false;\n }\n /**\n * We previously knew which row we wanted to access,\n * so there was no need to scan the entire table.\n */\n accessedIds.add(clause.payload[idAttribute]);\n return true;\n });\n\n const accessedIndexes = [];\n const { indexes } = this.state[table];\n clauses.forEach(clause => {\n Object.keys(indexes).forEach(attr => {\n if (!clauseFiltersByAttribute(clause, attr)) {\n return;\n }\n const value = clause.payload[attr];\n accessedIndexes.push([table, attr, value]);\n });\n });\n\n if (anyClauseFilteredByPk) {\n /**\n * The clauses have been ordered so that an indexed one was\n * the first to have been evaluated, and thus only the row\n * with the specified PK value has actually been accessed.\n */\n this.markAccessed(table, accessedIds);\n } else if (accessedIndexes.length) {\n /**\n * At least one clause was optimized using indexes.\n */\n this.markAccessed(table, accessedIds);\n this.markAccessedIndexes(accessedIndexes);\n } else {\n /**\n * At least one clause could not be efficiently optimized\n * or no clause was specified at all.\n */\n this.markFullTableScanned(table);\n }\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Access {@link Session#state} instead.\n */\n getNextState() {\n warnDeprecated(\n \"`Session.prototype.getNextState` has been deprecated. Access \" +\n \"the `Session.prototype.state` property instead.\"\n );\n return this.state;\n }\n\n /**\n * @deprecated\n * The Redux integration API is now decoupled from ORM and Session.
\n * See the 0.9 migration guide in the GitHub repo.\n */\n reduce() {\n throw new Error(\n \"`Session.prototype.reduce` has been removed. The Redux integration API \" +\n \"is now decoupled from ORM and Session - see the 0.9 migration guide \" +\n \"in the GitHub repo.\"\n );\n }\n};\n\nexport default Session;\n","import FieldInstallerTemplate from \"./FieldInstallerTemplate\";\n\nimport { reverseFieldErrorMessage } from \"../utils\";\n\n/**\n * Default implementation for the template method in FieldInstallerTemplate.\n * @private\n * @memberof module:fields\n */\nexport class DefaultFieldInstaller extends FieldInstallerTemplate {\n installForwardsDescriptor() {\n Object.defineProperty(\n this.model.prototype,\n this.fieldName,\n this.field.createForwardsDescriptor(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n )\n );\n }\n\n installForwardsVirtualField() {\n this.model.virtualFields[\n this.fieldName\n ] = this.field.createForwardsVirtualField(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n );\n }\n\n installBackwardsDescriptor() {\n const backwardsDescriptor = Object.getOwnPropertyDescriptor(\n this.toModel.prototype,\n this.backwardsFieldName\n );\n if (backwardsDescriptor) {\n throw new Error(\n reverseFieldErrorMessage(\n this.model.modelName,\n this.fieldName,\n this.toModel.modelName,\n this.backwardsFieldName\n )\n );\n }\n\n // install backwards descriptor\n Object.defineProperty(\n this.toModel.prototype,\n this.backwardsFieldName,\n this.field.createBackwardsDescriptor(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n )\n );\n }\n\n installBackwardsVirtualField() {\n this.toModel.virtualFields[\n this.backwardsFieldName\n ] = this.field.createBackwardsVirtualField(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n );\n }\n}\n\nexport default DefaultFieldInstaller;\n","/**\n * Defines algorithm for installing a field onto a model and related models.\n * Conforms to the template method behavioral design pattern.\n * @private\n * @memberof module:fields\n */\nexport class FieldInstallerTemplate {\n constructor(opts) {\n this.field = opts.field;\n this.fieldName = opts.fieldName;\n this.model = opts.model;\n this.orm = opts.orm;\n /**\n * the field itself has no knowledge of the model\n * it is being installed upon; we need to inform it\n * that it is a self-referencing field for the field\n * to be able to make better informed decisions\n */\n if (this.field.references(this.model)) {\n this.field.toModelName = \"this\";\n }\n }\n\n get toModel() {\n if (typeof this._toModel === \"undefined\") {\n const { toModelName } = this.field;\n if (!toModelName) {\n this._toModel = null;\n } else if (toModelName === \"this\") {\n this._toModel = this.model;\n } else {\n this._toModel = this.orm.get(toModelName);\n }\n }\n return this._toModel;\n }\n\n get throughModel() {\n if (typeof this._throughModel === \"undefined\") {\n const throughModelName = this.field.getThroughModelName(\n this.fieldName,\n this.model\n );\n if (!throughModelName) {\n this._throughModel = null;\n } else {\n this._throughModel = this.orm.get(throughModelName);\n }\n }\n return this._throughModel;\n }\n\n get backwardsFieldName() {\n return this.field.getBackwardsFieldName(this.model);\n }\n\n run() {\n this.installForwardsDescriptor();\n if (this.field.installsForwardsVirtualField) {\n this.installForwardsVirtualField();\n }\n /**\n * Install a backwards field on a model as a consequence\n * of having installed the forwards field on another model.\n */\n if (this.field.installsBackwardsDescriptor) {\n this.installBackwardsDescriptor();\n }\n if (this.field.installsBackwardsVirtualField) {\n this.installBackwardsVirtualField();\n }\n }\n}\n\nexport default FieldInstallerTemplate;\n","import DefaultFieldInstaller from \"./DefaultFieldInstaller\";\n\n/**\n * @private\n * @memberof module:fields\n */\nexport class Field {\n get installerClass() {\n return DefaultFieldInstaller;\n }\n\n getClass() {\n return this.constructor;\n }\n\n references(model) {\n return false;\n }\n\n getThroughModelName(fieldName, model) {\n return null;\n }\n\n get installsForwardsVirtualField() {\n return false;\n }\n\n get installsBackwardsDescriptor() {\n return false;\n }\n\n get installsBackwardsVirtualField() {\n return false;\n }\n\n get index() {\n return false;\n }\n}\n\nexport default Field;\n","import { normalizeEntity } from \"./utils\";\n\n/**\n * The functions in this file return custom JS property descriptors\n * that are supposed to be assigned to Model fields.\n *\n * Some include the logic to look up models using foreign keys and\n * to add or remove relationships between models.\n *\n * @module descriptors\n * @private\n */\n\n/**\n * Defines a basic non-key attribute.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n */\nfunction attrDescriptor(fieldName) {\n return {\n get() {\n return this._fields[fieldName];\n },\n\n set(value) {\n return this.set(fieldName, value);\n },\n\n enumerable: true,\n configurable: true,\n };\n}\n\n/**\n * Forwards direction of a Foreign Key: returns one object.\n * Also works as {@link .forwardsOneToOneDescriptor|forwardsOneToOneDescriptor}.\n *\n * For `book.author` referencing an `Author` model instance,\n * `fieldName` would be `'author'` and `declaredToModelName` would be `'Author'`.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n * @param {string} declaredToModelName - the name of the model that the field references.\n */\nfunction forwardsManyToOneDescriptor(fieldName, declaredToModelName) {\n return {\n get() {\n const {\n session: { [declaredToModelName]: DeclaredToModel },\n } = this.getClass();\n const { [fieldName]: toId } = this._fields;\n\n return DeclaredToModel.withId(toId);\n },\n set(value) {\n this.update({\n [fieldName]: normalizeEntity(value),\n });\n },\n };\n}\n\n/**\n * Dereferencing foreign keys in {@link module:fields.oneToOne|oneToOne}\n * relationships works the same way as in many-to-one relationships:\n * just look up the related model.\n *\n * For example, a human face tends to have a single nose.\n * So if we want to resolve `face.nose`, we need to\n * look up the `Nose` that has the primary key that `face` references.\n *\n * @see {@link module:descriptors~forwardsManyToOneDescriptor|forwardsManyToOneDescriptor}\n */\nfunction forwardsOneToOneDescriptor(...args) {\n return forwardsManyToOneDescriptor(...args);\n}\n\n/**\n * Here we resolve 1-to-1 relationships starting at the model on which the\n * field was not installed. This means we need to find the instance of the\n * other model whose {@link module:fields.oneToOne|oneToOne} FK field contains the current model's primary key.\n *\n * @param {string} declaredFieldName - the name of the field referencing the current model.\n * @param {string} declaredFromModelName - the name of the other model.\n */\nfunction backwardsOneToOneDescriptor(declaredFieldName, declaredFromModelName) {\n return {\n get() {\n const {\n session: { [declaredFromModelName]: DeclaredFromModel },\n } = this.getClass();\n\n return DeclaredFromModel.get({\n [declaredFieldName]: this.getId(),\n });\n },\n set() {\n throw new Error(\"Can't mutate a reverse one-to-one relation.\");\n },\n };\n}\n\n/**\n * The backwards direction of a n-to-1 relationship (i.e. 1-to-n),\n * meaning this will return an a collection (`QuerySet`) of model instances.\n *\n * An example would be `author.books` referencing all instances of\n * the `Book` model that reference the author using `fk()`.\n */\nfunction backwardsManyToOneDescriptor(\n declaredFieldName,\n declaredFromModelName\n) {\n return {\n get() {\n const {\n session: { [declaredFromModelName]: DeclaredFromModel },\n } = this.getClass();\n\n return DeclaredFromModel.filter({\n [declaredFieldName]: this.getId(),\n });\n },\n set() {\n throw new Error(\"Can't mutate a reverse many-to-one relation.\");\n },\n };\n}\n\n/**\n * This descriptor is assigned to both sides of a many-to-many relationship.\n * To indicate the backwards direction pass `true` for `reverse`.\n */\nfunction manyToManyDescriptor(\n declaredFromModelName,\n declaredToModelName,\n throughModelName,\n throughFields,\n reverse\n) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel,\n [declaredToModelName]: DeclaredToModel,\n [throughModelName]: ThroughModel,\n },\n } = this.getClass();\n\n const ThisModel = reverse ? DeclaredToModel : DeclaredFromModel;\n const OtherModel = reverse ? DeclaredFromModel : DeclaredToModel;\n\n const thisReferencingField = reverse\n ? throughFields.to\n : throughFields.from;\n const otherReferencingField = reverse\n ? throughFields.from\n : throughFields.to;\n\n const thisId = this.getId();\n\n const throughQs = ThroughModel.filter({\n [thisReferencingField]: thisId,\n });\n\n /**\n * all IDs of instances of the other model that are\n * referenced by any instance of the current model\n */\n const referencedOtherIds = new Set(\n throughQs.toRefArray().map(obj => obj[otherReferencingField])\n );\n\n /**\n * selects all instances of other model that are referenced\n * by any instance of the current model\n */\n const qs = OtherModel.filter(otherModelInstance =>\n referencedOtherIds.has(\n otherModelInstance[OtherModel.idAttribute]\n )\n );\n\n /**\n * Allows adding OtherModel instances to be referenced by the current instance.\n *\n * E.g. Book.first().authors.add(1, 2) would add the authors with IDs 1 and 2\n * to the first book's list of referenced authors.\n *\n * @return undefined\n */\n qs.add = function add(...entities) {\n const idsToAdd = new Set(entities.map(normalizeEntity));\n\n const existingQs = throughQs.filter(through =>\n idsToAdd.has(through[otherReferencingField])\n );\n\n if (existingQs.exists()) {\n const existingIds = existingQs\n .toRefArray()\n .map(through => through[otherReferencingField]);\n\n throw new Error(\n `Tried to add already existing ${OtherModel.modelName} id(s) ${existingIds} to the ${ThisModel.modelName} instance with id ${thisId}`\n );\n }\n\n idsToAdd.forEach(id => {\n ThroughModel.create({\n [otherReferencingField]: id,\n [thisReferencingField]: thisId,\n });\n });\n };\n\n /**\n * Removes references to all OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.clear() would cause the first book's list\n * of referenced authors to become empty.\n *\n * @return undefined\n */\n qs.clear = function clear() {\n throughQs.delete();\n };\n\n /**\n * Removes references to all passed OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.remove(1, 2) would cause the authors with\n * IDs 1 and 2 to no longer be referenced by the first book.\n *\n * @return undefined\n */\n qs.remove = function remove(...entities) {\n const idsToRemove = new Set(entities.map(normalizeEntity));\n\n const entitiesToDelete = throughQs.filter(through =>\n idsToRemove.has(through[otherReferencingField])\n );\n\n if (entitiesToDelete.count() !== idsToRemove.size) {\n // Tried deleting non-existing entities.\n const entitiesToDeleteIds = entitiesToDelete\n .toRefArray()\n .map(through => through[otherReferencingField]);\n\n const unexistingIds = [...idsToRemove].filter(\n id => !entitiesToDeleteIds.includes(id)\n );\n\n throw new Error(\n `Tried to delete non-existing ${OtherModel.modelName} id(s) ${unexistingIds} from the ${ThisModel.modelName} instance with id ${thisId}`\n );\n }\n\n entitiesToDelete.delete();\n };\n\n return qs;\n },\n\n set() {\n throw new Error(\n \"Tried setting a M2M field. Please use the related QuerySet methods add, remove and clear.\"\n );\n },\n };\n}\n\nexport {\n attrDescriptor,\n forwardsManyToOneDescriptor,\n forwardsOneToOneDescriptor,\n backwardsOneToOneDescriptor,\n backwardsManyToOneDescriptor,\n manyToManyDescriptor,\n};\n","import Field from \"./Field\";\n\nimport { attrDescriptor } from \"../descriptors\";\n\n/**\n * @memberof module:fields\n */\nexport class Attribute extends Field {\n constructor(opts) {\n super();\n this.opts = opts || {};\n\n if (this.opts.hasOwnProperty(\"getDefault\")) {\n this.getDefault = this.opts.getDefault;\n }\n }\n\n createForwardsDescriptor(fieldName, model) {\n return attrDescriptor(fieldName);\n }\n}\n\nexport default Attribute;\n","/* eslint-disable max-classes-per-file */\nimport Field from \"./Field\";\nimport DefaultFieldInstaller from \"./DefaultFieldInstaller\";\n\nimport { reverseFieldName, normalizeModelReference } from \"../utils\";\n\n/**\n * @private\n * @memberof module:fields\n */\nexport class RelationalField extends Field {\n constructor(...args) {\n super();\n if (args.length === 1 && typeof args[0] === \"object\") {\n const opts = args[0];\n this.toModelName = normalizeModelReference(opts.to);\n this.relatedName = opts.relatedName;\n this.through = normalizeModelReference(opts.through);\n this.throughFields = opts.throughFields;\n this.as = opts.as;\n } else {\n [this.toModelName, this.relatedName] = [\n normalizeModelReference(args[0]),\n args[1],\n ];\n }\n }\n\n getBackwardsFieldName(model) {\n return this.relatedName || reverseFieldName(model.modelName);\n }\n\n createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField(model.modelName, fieldName);\n }\n\n get installsBackwardsVirtualField() {\n return true;\n }\n\n get installsBackwardsDescriptor() {\n return true;\n }\n\n references(model) {\n return this.toModelName === model.modelName;\n }\n\n get installerClass() {\n return class AliasedForwardsDescriptorInstaller extends DefaultFieldInstaller {\n installForwardsDescriptor() {\n Object.defineProperty(\n this.model.prototype,\n this.field.as || this.fieldName, // use supplied name if possible\n this.field.createForwardsDescriptor(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n )\n );\n }\n };\n }\n}\n\nexport default RelationalField;\n","import RelationalField from \"./RelationalField\";\n\nimport {\n forwardsManyToOneDescriptor,\n backwardsManyToOneDescriptor,\n} from \"../descriptors\";\n\n/**\n * @memberof module:fields\n */\nexport class ForeignKey extends RelationalField {\n createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return forwardsManyToOneDescriptor(fieldName, toModel.modelName);\n }\n\n createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return backwardsManyToOneDescriptor(fieldName, model.modelName);\n }\n\n get index() {\n return true;\n }\n}\n\nexport default ForeignKey;\n","import RelationalField from \"./RelationalField\";\n\nimport { manyToManyDescriptor } from \"../descriptors\";\n\nimport { m2mName, m2mToFieldName, m2mFromFieldName } from \"../utils\";\n\n/**\n * @memberof module:fields\n */\nexport class ManyToMany extends RelationalField {\n getDefault() {\n return [];\n }\n\n getThroughModelName(fieldName, model) {\n return this.through || m2mName(model.modelName, fieldName);\n }\n\n createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return manyToManyDescriptor(\n model.modelName,\n toModel.modelName,\n throughModel.modelName,\n this.getThroughFields(fieldName, model, toModel, throughModel),\n false\n );\n }\n\n createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return manyToManyDescriptor(\n model.modelName,\n toModel.modelName,\n throughModel.modelName,\n this.getThroughFields(fieldName, model, toModel, throughModel),\n true\n );\n }\n\n createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: model.modelName,\n relatedName: fieldName,\n through: throughModel.modelName,\n throughFields: this.getThroughFields(\n fieldName,\n model,\n toModel,\n throughModel\n ),\n });\n }\n\n createForwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: toModel.modelName,\n relatedName: fieldName,\n through: this.through,\n throughFields: this.getThroughFields(\n fieldName,\n model,\n toModel,\n throughModel\n ),\n as: this.as,\n });\n }\n\n get installsForwardsVirtualField() {\n return true;\n }\n\n getThroughFields(fieldName, model, toModel, throughModel) {\n if (this.throughFields) {\n const [fieldAName, fieldBName] = this.throughFields;\n const fieldA = throughModel.fields[fieldAName];\n return {\n to: fieldA.references(toModel) ? fieldAName : fieldBName,\n from: fieldA.references(toModel) ? fieldBName : fieldAName,\n };\n }\n\n if (model.modelName === toModel.modelName) {\n /**\n * we have no way of determining the relationship's\n * direction here, so we need to assume that the user\n * did not use a custom through model\n * see ORM#registerManyToManyModelsFor\n */\n return {\n to: m2mToFieldName(toModel.modelName),\n from: m2mFromFieldName(model.modelName),\n };\n }\n\n /**\n * determine which field references which model\n * and infer the directions from that\n */\n const throughModelFieldReferencing = otherModel =>\n Object.keys(throughModel.fields).find(someFieldName =>\n throughModel.fields[someFieldName].references(otherModel)\n );\n\n return {\n to: throughModelFieldReferencing(toModel),\n from: throughModelFieldReferencing(model),\n };\n }\n}\n\nexport default ManyToMany;\n","import RelationalField from \"./RelationalField\";\n\nimport {\n forwardsOneToOneDescriptor,\n backwardsOneToOneDescriptor,\n} from \"../descriptors\";\n\n/**\n * @memberof module:fields\n */\nexport class OneToOne extends RelationalField {\n getBackwardsFieldName(model) {\n return this.relatedName || model.modelName.toLowerCase();\n }\n\n createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return forwardsOneToOneDescriptor(fieldName, toModel.modelName);\n }\n\n createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return backwardsOneToOneDescriptor(fieldName, model.modelName);\n }\n}\n\nexport default OneToOne;\n","import Attribute from \"./Attribute\";\nimport ForeignKey from \"./ForeignKey\";\nimport ManyToMany from \"./ManyToMany\";\nimport OneToOne from \"./OneToOne\";\n\n/**\n * Contains the logic for how fields on {@link Model}s work\n * and which descriptors must be installed.\n *\n * If your goal is to define fields on a Model class,\n * please use the more convenient methods {@link attr},\n * {@link fk}, {@link many} and {@link oneToOne}.\n *\n * @module fields\n */\n\n/**\n * Defines a value attribute on the model.\n * Though not required, it is recommended to define this for each non-foreign key you wish to use.\n * Getters and setters need to be defined on each Model\n * instantiation for undeclared data fields, which is slower.\n * You can use the optional `getDefault` parameter to fill in unpassed values\n * to {@link Model.create}, such as for generating ID's with UUID:\n *\n * ```javascript\n * import getUUID from 'your-uuid-package-of-choice';\n *\n * fields = {\n * id: attr({ getDefault: () => getUUID() }),\n * title: attr(),\n * }\n * ```\n *\n * @param {Object} [opts]\n * @param {Function} [opts.getDefault] - If you give a function here, its return\n * value from calling with zero arguments will\n * be used as the value when creating a new Model\n * instance with {@link Model#create} if the field\n * value is not passed.\n * @return {Attribute}\n */\nfunction attr(opts) {\n return new Attribute(opts);\n}\n\n/**\n * Defines a foreign key on a model, which points\n * to a single entity on another model.\n *\n * You can pass arguments as either a single object,\n * or two arguments.\n *\n * If you pass two arguments, the first one is the name\n * of the Model the foreign key is pointing to, and\n * the second one is an optional related name, which will\n * be used to access the Model the foreign key\n * is being defined from, from the target Model.\n *\n * If the related name is not passed, it will be set as\n * `${toModelName}Set`.\n *\n * If you pass an object to `fk`, it has to be in the form\n *\n * ```javascript\n * fields = {\n * author: fk({ to: 'Author', relatedName: 'books' })\n * }\n * ```\n *\n * Which is equal to\n *\n * ```javascript\n * fields = {\n * author: fk('Author', 'books'),\n * }\n * ```\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access\n * a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ForeignKey}\n */\nfunction fk(...args) {\n return new ForeignKey(...args);\n}\n\n/**\n * Defines a many-to-many relationship between\n * this (source) and another (target) model.\n *\n * The relationship is modeled with an extra model called the through model.\n * The through model has foreign keys to both the source and target models.\n *\n * You can define your own through model if you want to associate more information\n * to the relationship. A custom through model must have at least two foreign keys,\n * one pointing to the source Model, and one pointing to the target Model.\n *\n * Like `fk`, this function accepts one or two string arguments specifying the other\n * Model and the related name, or a single object argument that allows you to pass\n * a custom through model.\n *\n * If you have more than one foreign key pointing to a source or target Model in the\n * through Model, you must pass the option `throughFields`, which is an array of two\n * strings, where the strings are the field names that identify the foreign keys to\n * be used for the many-to-many relationship. Redux-ORM will figure out which field name\n * points to which model by checking the \"through model\" definition.\n *\n * ```javascript\n * class Authorship extends Model {}\n * Authorship.modelName = 'Authorship';\n * Authorship.fields = {\n * author: fk('Author', 'authorships'),\n * book: fk('Book', 'authorships'),\n * };\n *\n * class Author extends Model {}\n * Author.modelName = 'Author';\n * Author.fields = {\n * books: many({\n * to: 'Book',\n * relatedName: 'authors',\n * through: 'Authorship',\n *\n * // here this is optional: Redux-ORM can figure\n * // out the through fields itself since the two\n * // foreign key fields point to different Models\n * throughFields: ['author', 'book'],\n * })\n * };\n *\n * class Book extends Model {}\n * Book.modelName = 'Book';\n * ```\n *\n * You should only define the many-to-many relationship on one side. In the\n * above case of Authors to Books through Authorships, the relationship is\n * defined only on the Author model.\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string|Class} [options.through] - The through Model class or its `modelName`\n * attribute. It must declare at least one\n * foreign key to both source and target models.\n * If not supplied, Redux-ORM will generate one.\n * @param {string[]} [options.throughFields] - Must be supplied only when a custom through\n * Model has more than one foreign key pointing to\n * either the source or target mode. In this case\n * Redux-ORM can't figure out the correct fields for\n * you, you must provide them. The supplied array should\n * have two elements that are the field names for the\n * through fields you want to declare the many-to-many\n * relationship with. The order doesn't matter;\n * Redux-ORM will figure out which field points to\n * the source Model and which to the target Model.\n * @param {string} [options.relatedName] - The attribute used to access a QuerySet for all\n * source models that reference the respective target\n * Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ManyToMany}\n */\nfunction many(...args) {\n return new ManyToMany(...args);\n}\n\n/**\n * Defines a one-to-one relationship. In database terms, this is a foreign key with the\n * added restriction that only one entity can point to single target entity.\n *\n * The arguments are the same as with `fk`. If `relatedName` is not supplied,\n * the source model name in lowercase will be used. Note that with the one-to-one\n * relationship, the `relatedName` should be in singular, not plural.\n *\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance.\n * @param {string} [relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance\n * @return {OneToOne}\n */\nfunction oneToOne(...args) {\n return new OneToOne(...args);\n}\n\nexport { fk, attr, many, oneToOne };\n","import Session from \"./Session\";\nimport QuerySet from \"./QuerySet\";\n\nimport { attr } from \"./fields\";\nimport ForeignKey from \"./fields/ForeignKey\";\nimport ManyToMany from \"./fields/ManyToMany\";\nimport OneToOne from \"./fields/OneToOne\";\n\nimport { CREATE, UPDATE, DELETE, FILTER } from \"./constants\";\nimport {\n normalizeEntity,\n arrayDiffActions,\n objectShallowEquals,\n warnDeprecated,\n m2mName,\n} from \"./utils\";\n\n/**\n * Generates a query specification to get the instance's\n * corresponding table row using its primary key.\n *\n * @private\n * @returns {Object}\n */\nfunction getByIdQuery(modelInstance) {\n const modelClass = modelInstance.getClass();\n const { idAttribute, modelName } = modelClass;\n\n return {\n table: modelName,\n clauses: [\n {\n type: FILTER,\n payload: {\n [idAttribute]: modelInstance.getId(),\n },\n },\n ],\n };\n}\n\n/**\n * The heart of an ORM, the data model.\n *\n * The fields you specify to the Model will be used to generate\n * a schema to the database, related property accessors, and\n * possibly through models.\n *\n * In each {@link Session} you instantiate from an {@link ORM} instance,\n * you will receive a session-specific subclass of this Model. The methods\n * you define here will be available to you in sessions.\n *\n * An instance of {@link Model} represents a record in the database, though\n * it is possible to generate multiple instances from the same record in the database.\n *\n * To create data models in your schema, subclass {@link Model}. To define\n * information about the data model, override static class methods. Define instance\n * logic by defining prototype methods (without `static` keyword).\n */\nconst Model = class Model {\n /**\n * Creates a Model instance from it's properties.\n * Don't use this to create a new record; Use the static method {@link Model#create}.\n * @param {Object} props - the properties to instantiate with\n */\n constructor(props) {\n this._initFields(props);\n }\n\n _initFields(props) {\n const propsObj = Object(props);\n this._fields = { ...propsObj };\n\n Object.keys(propsObj).forEach(fieldName => {\n // In this case, we got a prop that wasn't defined as a field.\n // Assuming it's an arbitrary data field, making an instance-specific\n // descriptor for it.\n // Using the in operator as the property could be defined anywhere\n // on the prototype chain.\n if (!(fieldName in this)) {\n Object.defineProperty(this, fieldName, {\n get: () => this._fields[fieldName],\n set: value => this.set(fieldName, value),\n configurable: true,\n enumerable: true,\n });\n }\n });\n }\n\n static toString() {\n return `ModelClass: ${this.modelName}`;\n }\n\n /**\n * Returns the options object passed to the database for the table that represents\n * this Model class.\n *\n * Returns an empty object by default, which means the database\n * will use default options. You can either override this function to return the options\n * you want to use, or assign the options object as a static property of the same name to the\n * Model class.\n *\n * @return {Object} the options object passed to the database for the table\n * representing this Model class.\n */\n static options() {\n return {};\n }\n\n /**\n * Manually mark individual instances as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.<*>} ids - Array of primary key values\n * @return {undefined}\n */\n static markAccessed(ids) {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to mark rows of the ${this.modelName} model as accessed without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].markAccessed\\` instead.`,\n ].join(\"\")\n );\n }\n this.session.markAccessed(this.modelName, ids);\n }\n\n /**\n * Manually mark this model's table as scanned.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @return {undefined}\n */\n static markFullTableScanned() {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to mark the ${this.modelName} model as full table scanned without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].markFullTableScanned\\` instead.`,\n ].join(\"\")\n );\n }\n this.session.markFullTableScanned(this.modelName);\n }\n\n /**\n * Manually mark indexes as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.>} indexes - Array of column-value pairs\n * @return {undefined}\n */\n static markAccessedIndexes(indexes) {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to mark indexes for the ${this.modelName} model as accessed without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].markAccessedIndexes\\` instead.`,\n ].join(\"\")\n );\n }\n this.session.markAccessedIndexes(\n indexes.map(([attribute, value]) => [\n this.modelName,\n attribute,\n value,\n ])\n );\n }\n\n /**\n * Returns the id attribute of this {@link Model}.\n *\n * @return {string} The id attribute of this {@link Model}.\n */\n static get idAttribute() {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to get the ${this.modelName} model's id attribute without a session. `,\n \"Create a session using `session = orm.session()` and access \",\n `\\`session[\"${this.modelName}\"].idAttribute\\` instead.`,\n ].join(\"\")\n );\n }\n return this.session.db.describe(this.modelName).idAttribute;\n }\n\n /**\n * Connect the model class to a {@link Session}.\n *\n * @private\n * @param {Session} session - The session to connect to.\n */\n static connect(session) {\n if (!(session instanceof Session)) {\n throw new Error(\n \"A model can only be connected to instances of Session.\"\n );\n }\n this._session = session;\n }\n\n /**\n * Get the current {@link Session} instance.\n *\n * @private\n * @return {Session} The current {@link Session} instance.\n */\n static get session() {\n return this._session;\n }\n\n /**\n * Returns an instance of the model's `querySetClass` field.\n * By default, this will be an empty {@link QuerySet}.\n *\n * @return {Object} An instance of the model's `querySetClass`.\n */\n static getQuerySet() {\n const { querySetClass: QuerySetClass } = this;\n return new QuerySetClass(this);\n }\n\n /**\n * @return {undefined}\n */\n static invalidateClassCache() {\n this.isSetUp = undefined;\n this.virtualFields = {};\n }\n\n /**\n * @see {@link Model.getQuerySet}\n */\n static get query() {\n return this.getQuerySet();\n }\n\n /**\n * Returns parameters to be passed to {@link Table} instance.\n *\n * @private\n */\n static tableOptions() {\n if (typeof this.backend === \"function\") {\n warnDeprecated(\n \"`Model.backend` has been deprecated. Please rename to `.options`.\"\n );\n return this.backend();\n }\n if (this.backend) {\n warnDeprecated(\n \"`Model.backend` has been deprecated. Please rename to `.options`.\"\n );\n return this.backend;\n }\n if (typeof this.options === \"function\") {\n return this.options();\n }\n return this.options;\n }\n\n /**\n * Creates a new record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the new {@link Model}'s properties.\n * @return {Model} a new {@link Model} instance.\n */\n static create(userProps) {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to create a ${this.modelName} model instance without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].create\\` instead.`,\n ].join(\"\")\n );\n }\n const props = { ...userProps };\n\n const m2mRelations = {};\n\n const declaredFieldNames = Object.keys(this.fields);\n const declaredVirtualFieldNames = Object.keys(this.virtualFields);\n\n declaredFieldNames.forEach(key => {\n const field = this.fields[key];\n const valuePassed = userProps.hasOwnProperty(key);\n if (!(field instanceof ManyToMany)) {\n if (valuePassed) {\n const value = userProps[key];\n props[key] = normalizeEntity(value);\n } else if (field.getDefault) {\n props[key] = field.getDefault();\n }\n } else if (valuePassed) {\n // Save for later processing\n m2mRelations[key] = userProps[key];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete props[key];\n }\n }\n });\n\n // add backward many-many if required\n declaredVirtualFieldNames.forEach(key => {\n if (!m2mRelations.hasOwnProperty(key)) {\n const field = this.virtualFields[key];\n if (\n userProps.hasOwnProperty(key) &&\n field instanceof ManyToMany\n ) {\n // If a value is supplied for a ManyToMany field,\n // discard them from props and save for later processing.\n m2mRelations[key] = userProps[key];\n delete props[key];\n }\n }\n });\n\n const newEntry = this.session.applyUpdate({\n action: CREATE,\n table: this.modelName,\n payload: props,\n });\n\n const ThisModel = this;\n const instance = new ThisModel(newEntry);\n instance._refreshMany2Many(m2mRelations); // eslint-disable-line no-underscore-dangle\n return instance;\n }\n\n /**\n * Creates a new or update existing record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the required {@link Model}'s properties.\n * @return {Model} a {@link Model} instance.\n */\n static upsert(userProps) {\n if (typeof this.session === \"undefined\") {\n throw new Error(\n [\n `Tried to upsert a ${this.modelName} model instance without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].upsert\\` instead.`,\n ].join(\"\")\n );\n }\n\n const { idAttribute } = this;\n if (userProps.hasOwnProperty(idAttribute)) {\n const id = userProps[idAttribute];\n if (this.idExists(id)) {\n const model = this.withId(id);\n model.update(userProps);\n return model;\n }\n }\n\n return this.create(userProps);\n }\n\n /**\n * Returns a {@link Model} instance for the object with id `id`.\n * Returns `null` if the model has no instance with id `id`.\n *\n * You can use {@link Model#idExists} to check for existence instead.\n *\n * @param {*} id - the `id` of the object to get\n * @throws If object with id `id` doesn't exist\n * @return {Model|null} {@link Model} instance with id `id`\n */\n static withId(id) {\n return this.get({\n [this.idAttribute]: id,\n });\n }\n\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n *\n * @since 0.11.0\n */\n static idExists(id) {\n return this.exists({\n [this.idAttribute]: id,\n });\n }\n\n /**\n * Returns a boolean indicating if an entity\n * with the given props exists in the state.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n */\n static exists(lookupObj) {\n if (typeof this.session === \"undefined\") {\n throw new Error(\n [\n `Tried to check if a ${this.modelName} model instance exists without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].exists\\` instead.`,\n ].join(\"\")\n );\n }\n\n return Boolean(this._findDatabaseRows(lookupObj).length);\n }\n\n /**\n * Gets the {@link Model} instance that matches properties in `lookupObj`.\n * Throws an error if {@link Model} if multiple records match\n * the properties.\n *\n * @param {Object} lookupObj - the properties used to match a single entity.\n * @throws {Error} If more than one entity matches the properties in `lookupObj`.\n * @return {Model} a {@link Model} instance that matches the properties in `lookupObj`.\n */\n static get(lookupObj) {\n const ThisModel = this;\n\n const rows = this._findDatabaseRows(lookupObj);\n if (rows.length === 0) {\n return null;\n }\n if (rows.length > 1) {\n throw new Error(\n `Expected to find a single row in \\`${this.modelName}.get\\`. Found ${rows.length}.`\n );\n }\n\n return new ThisModel(rows[0]);\n }\n\n /**\n * Gets the {@link Model} class or subclass constructor (the class that\n * instantiated this instance).\n *\n * @return {Model} The {@link Model} class or subclass constructor used to instantiate\n * this instance.\n */\n getClass() {\n return this.constructor;\n }\n\n /**\n * Gets the id value of the current instance by looking up the id attribute.\n * @return {*} The id value of the current instance.\n */\n getId() {\n return this._fields[this.getClass().idAttribute];\n }\n\n /**\n * Returns a reference to the plain JS object in the store.\n * It contains all the properties that you pass when creating the model,\n * except for primary keys of many-to-many relationships with a custom accessor.\n *\n * Make sure never to mutate this.\n *\n * @return {Object} a reference to the plain JS object in the store\n */\n get ref() {\n const ThisModel = this.getClass();\n\n // eslint-disable-next-line no-underscore-dangle\n return ThisModel._findDatabaseRows({\n [ThisModel.idAttribute]: this.getId(),\n })[0];\n }\n\n /**\n * Finds all rows in this model's table that match the given `lookupObj`.\n * If no `lookupObj` is passed, all rows in the model's table will be returned.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n * @private\n */\n static _findDatabaseRows(lookupObj) {\n const querySpec = {\n table: this.modelName,\n };\n if (lookupObj) {\n querySpec.clauses = [\n {\n type: FILTER,\n payload: lookupObj,\n },\n ];\n }\n return this.session.query(querySpec).rows;\n }\n\n /**\n * Returns a string representation of the {@link Model} instance.\n *\n * @return {string} A string representation of this {@link Model} instance.\n */\n toString() {\n const ThisModel = this.getClass();\n const className = ThisModel.modelName;\n const fieldNames = Object.keys(ThisModel.fields);\n const fields = fieldNames\n .map(fieldName => {\n const field = ThisModel.fields[fieldName];\n if (field instanceof ManyToMany) {\n const ids = this[fieldName]\n .toModelArray()\n .map(model => model.getId());\n return `${fieldName}: [${ids.join(\", \")}]`;\n }\n const val = this._fields[fieldName];\n return `${fieldName}: ${val}`;\n })\n .join(\", \");\n return `${className}: {${fields}}`;\n }\n\n /**\n * Returns a boolean indicating if `otherModel` equals this {@link Model} instance.\n * Equality is determined by shallow comparing their attributes.\n *\n * This equality is used when you call {@link Model#update}.\n * You can prevent model updates by returning `true` here.\n * However, a model will always be updated if its relationships are changed.\n *\n * @param {Model} otherModel - a {@link Model} instance to compare\n * @return {Boolean} a boolean indicating if the {@link Model} instance's are equal.\n */\n equals(otherModel) {\n // eslint-disable-next-line no-underscore-dangle\n return objectShallowEquals(this._fields, otherModel._fields);\n }\n\n /**\n * Updates a property name to given value for this {@link Model} instance.\n * The values are immediately committed to the database.\n *\n * @param {string} propertyName - name of the property to set\n * @param {*} value - value assigned to the property\n * @return {undefined}\n */\n set(propertyName, value) {\n this.update({\n [propertyName]: value,\n });\n }\n\n /**\n * Assigns multiple fields and corresponding values to this {@link Model} instance.\n * The updates are immediately committed to the database.\n *\n * @param {Object} userMergeObj - an object that will be merged with this instance.\n * @return {undefined}\n */\n update(userMergeObj) {\n const ThisModel = this.getClass();\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error(\n [\n `Tried to update a ${ThisModel.modelName} model instance without a session. `,\n \"You cannot call `.update` on an instance that you did not receive from the database.\",\n ].join(\"\")\n );\n }\n\n const mergeObj = { ...userMergeObj };\n\n const { fields, virtualFields } = ThisModel;\n\n const m2mRelations = {};\n\n // If an array of entities or id's is supplied for a\n // many-to-many related field, clear the old relations\n // and add the new ones.\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const mergeKey in mergeObj) {\n const isRealField = fields.hasOwnProperty(mergeKey);\n\n if (isRealField) {\n const field = fields[mergeKey];\n\n if (field instanceof ForeignKey || field instanceof OneToOne) {\n // update one-one/fk relations\n mergeObj[mergeKey] = normalizeEntity(mergeObj[mergeKey]);\n } else if (field instanceof ManyToMany) {\n // field is forward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete mergeObj[mergeKey];\n }\n }\n } else if (virtualFields.hasOwnProperty(mergeKey)) {\n const field = virtualFields[mergeKey];\n if (field instanceof ManyToMany) {\n // field is backward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n delete mergeObj[mergeKey];\n }\n }\n }\n\n const mergedFields = {\n ...this._fields,\n ...mergeObj,\n };\n\n const updatedModel = new ThisModel(mergedFields);\n // only update fields if they have changed (referentially)\n if (!this.equals(updatedModel)) {\n this._initFields(mergedFields);\n ThisModel.session.applyUpdate({\n action: UPDATE,\n query: getByIdQuery(this),\n payload: mergeObj,\n });\n }\n\n // update virtual fields\n this._refreshMany2Many(m2mRelations);\n }\n\n /**\n * Updates {@link Model} instance attributes to reflect the\n * database state in the current session.\n * @return {undefined}\n */\n refreshFromState() {\n this._initFields(this.ref);\n }\n\n /**\n * Deletes the record for this {@link Model} instance.\n * You'll still be able to access fields and values on the instance.\n *\n * @return {undefined}\n */\n delete() {\n const ThisModel = this.getClass();\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error(\n [\n `Tried to delete a ${ThisModel.modelName} model instance without a session. `,\n \"You cannot call `.delete` on an instance that you did not receive from the database.\",\n ].join(\"\")\n );\n }\n\n this._onDelete();\n ThisModel.session.applyUpdate({\n action: DELETE,\n query: getByIdQuery(this),\n });\n }\n\n /**\n * Update many-many relations for model.\n * @param relations\n * @return undefined\n * @private\n */\n _refreshMany2Many(relations) {\n const ThisModel = this.getClass();\n const { fields, virtualFields, modelName } = ThisModel;\n\n Object.keys(relations).forEach(name => {\n const reverse = !fields.hasOwnProperty(name);\n const field = virtualFields[name];\n const values = relations[name];\n\n if (!Array.isArray(values)) {\n throw new TypeError(\n `Failed to resolve many-to-many relationship: ${modelName}[${name}] must be an array (passed: ${values})`\n );\n }\n\n const normalizedNewIds = values.map(normalizeEntity);\n const uniqueIds = [...new Set(normalizedNewIds)];\n\n if (normalizedNewIds.length !== uniqueIds.length) {\n throw new Error(\n `Found duplicate id(s) when passing \"${normalizedNewIds}\" to ${ThisModel.modelName}.${name} value`\n );\n }\n\n const throughModelName =\n field.through || m2mName(ThisModel.modelName, name);\n const ThroughModel = ThisModel.session[throughModelName];\n\n let fromField;\n let toField;\n\n if (!reverse) {\n ({ from: fromField, to: toField } = field.throughFields);\n } else {\n ({ from: toField, to: fromField } = field.throughFields);\n }\n\n const currentIds = ThroughModel.filter(\n through => through[fromField] === this[ThisModel.idAttribute]\n )\n .toRefArray()\n .map(ref => ref[toField]);\n\n const diffActions = arrayDiffActions(currentIds, normalizedNewIds);\n\n if (diffActions) {\n const { delete: idsToDelete, add: idsToAdd } = diffActions;\n if (idsToDelete.length > 0) {\n this[field.as || name].remove(...idsToDelete);\n }\n\n if (idsToAdd.length > 0) {\n this[field.as || name].add(...idsToAdd);\n }\n }\n });\n }\n\n /**\n * @return {undefined}\n * @private\n */\n _onDelete() {\n const { virtualFields } = this.getClass();\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const key in virtualFields) {\n const field = virtualFields[key];\n if (field instanceof ManyToMany) {\n // Delete any many-to-many rows the entity is included in.\n const descriptorKey = field.as || key;\n this[descriptorKey].clear();\n } else if (field instanceof ForeignKey) {\n const relatedQs = this[key];\n if (relatedQs.exists()) {\n relatedQs.update({ [field.relatedName]: null });\n }\n } else if (field instanceof OneToOne) {\n // Set null to any foreign keys or one to ones pointed to\n // this instance.\n if (this[key] !== null) {\n this[key][field.relatedName] = null;\n }\n }\n }\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n * @deprecated Please use {@link Model.idExists} instead.\n */\n static hasId(id) {\n console.warn(\n \"`Model.hasId` has been deprecated. Please use `Model.idExists` instead.\"\n );\n return this.idExists(id);\n }\n\n /**\n * @deprecated See the 0.9 migration guide on the GitHub repo.\n * @throws {Error} Due to deprecation.\n */\n getNextState() {\n throw new Error(\n \"`Model.prototype.getNextState` has been removed. See the 0.9 \" +\n \"migration guide on the GitHub repo.\"\n );\n }\n};\n\nModel.fields = {\n id: attr(),\n};\nModel.virtualFields = {};\nModel.querySetClass = QuerySet;\n\nexport default Model;\n","import ops from \"immutable-ops\";\nimport filter from \"lodash/filter\";\nimport orderBy from \"lodash/orderBy\";\nimport reject from \"lodash/reject\";\nimport sortBy from \"lodash/sortBy\";\n\nimport { EXCLUDE, FILTER, ORDER_BY } from \"../constants\";\nimport { clauseFiltersByAttribute, clauseReducesResultSetSize } from \"../utils\";\n\nconst DEFAULT_TABLE_OPTIONS = {\n idAttribute: \"id\",\n arrName: \"items\",\n mapName: \"itemsById\",\n fields: {},\n};\n\n/**\n * @private\n * @param {*} _currMax - the current max id\n * @param {*} userPassedId - the new id passed to the create action\n *\n * Both may be undefined. The current max id in the case that this is the first Model\n * being created, and the new id if the id was not explicitly passed to the\n * database.\n *\n * @return {Array} the new max id and the id to use to create the new row\n *\n * If the id's are strings, the id must be passed explicitly every time.\n * In this case, the current max id will remain `NaN` due to `Math.max`, but that's fine.\n */\nfunction idSequencer(_currMax, userPassedId) {\n let currMax = _currMax;\n let newMax;\n let newId;\n\n if (currMax === undefined) {\n currMax = -1;\n }\n\n if (userPassedId === undefined) {\n newMax = currMax + 1;\n newId = newMax;\n } else {\n newMax = Math.max(currMax + 1, userPassedId);\n newId = userPassedId;\n }\n\n return [\n newMax, // new max id\n newId, // id to use for row creation\n ];\n}\n\n/**\n * Adapt order directions array to @{lodash.orderBy} API.\n *\n * @private\n *\n * @param {Array} orders? - an array of optional order query directions as provided to {@Link {QuerySet.orderBy}}\n * @return {Array<'asc'|'desc'>|undefined} A normalized ordering array or undefined if none was provided.\n */\nfunction normalizeOrders(orders) {\n if (orders === undefined) {\n return undefined;\n }\n const convert = order => {\n if ([\"desc\", false].includes(order)) {\n return \"desc\";\n }\n return \"asc\";\n };\n return Array.isArray(orders) ? orders.map(convert) : convert(orders);\n}\n\n/**\n * Handles the underlying data structure for a {@link Model} class.\n * @private\n */\nexport class Table {\n /**\n * Creates a new {@link Table} instance.\n * @param {Object} userOpts - options to use.\n * @param {string} [userOpts.idAttribute=id] - the id attribute of the entity.\n * @param {string} [userOpts.arrName=items] - the state attribute where an array of\n * entity id's are stored\n * @param {string} [userOpts.mapName=itemsById] - the state attribute where the entity objects\n * are stored in a id to entity object\n * map.\n * @param {string} [userOpts.fields={}] - mapping of field key to {@link Field} object\n */\n constructor(userOpts) {\n Object.assign(this, DEFAULT_TABLE_OPTIONS, userOpts);\n }\n\n /**\n * Returns a reference to the object at index `id`\n * in state `branch`.\n *\n * @param {Object} branch - the state\n * @param {Number} id - the id of the object to get\n * @return {Object|undefined} A reference to the raw object in the state or\n * `undefined` if not found.\n */\n accessId(branch, id) {\n return branch[this.mapName][id];\n }\n\n accessIds(branch, ids) {\n const map = branch[this.mapName];\n return ids.map(id => map[id]);\n }\n\n idExists(branch, id) {\n return branch[this.mapName].hasOwnProperty(id);\n }\n\n accessIdList(branch) {\n return branch[this.arrName];\n }\n\n accessList(branch) {\n return this.accessIds(branch, this.accessIdList(branch));\n }\n\n getMaxId(branch) {\n return this.getMeta(branch, \"maxId\");\n }\n\n setMaxId(tx, branch, newMaxId) {\n return this.setMeta(tx, branch, \"maxId\", newMaxId);\n }\n\n nextId(id) {\n return id + 1;\n }\n\n /**\n * Returns the default state for the data structure.\n * @return {Object} The default state for this {@link ORM} instance's data structure\n */\n getEmptyState() {\n const pkIndex = {\n [this.arrName]: [],\n [this.mapName]: {},\n };\n const attrIndexes = Object.keys(this.fields)\n .filter(attr => attr !== this.idAttribute)\n .filter(attr => this.fields[attr].index)\n .reduce(\n (indexes, attr) => ({\n ...indexes,\n [attr]: {},\n }),\n {}\n );\n return {\n ...pkIndex,\n indexes: attrIndexes,\n meta: {},\n };\n }\n\n setMeta(tx, branch, key, value) {\n const { batchToken, withMutations } = tx;\n if (withMutations) {\n const res = ops.mutable.setIn([\"meta\", key], value, branch);\n return res;\n }\n\n return ops.batch.setIn(batchToken, [\"meta\", key], value, branch);\n }\n\n getMeta(branch, key) {\n return branch.meta[key];\n }\n\n query(branch, clauses) {\n if (clauses.length === 0) {\n return this.accessList(branch);\n }\n\n const { idAttribute } = this;\n\n const optimallyOrderedClauses = sortBy(clauses, clause => {\n if (clauseFiltersByAttribute(clause, idAttribute)) {\n return 1;\n }\n\n if (clauseReducesResultSetSize(clause)) {\n return 2;\n }\n\n return 3;\n });\n\n const reducer = (rows, clause) => {\n const { type, payload } = clause;\n if (!rows) {\n /**\n * First time this reducer is called during query.\n * This is where we apply query optimizations.\n */\n if (clauseFiltersByAttribute(clause, idAttribute)) {\n /**\n * Payload specified a primary key. Use PK index\n * to look up the single row identified by the PK.\n */\n const id = payload[idAttribute];\n const remainingPayload = Object.keys(payload).reduce(\n (withoutPkAttr, filterAttr) => {\n if (filterAttr !== idAttribute) {\n withoutPkAttr[filterAttr] = payload[filterAttr];\n }\n return withoutPkAttr;\n },\n {}\n );\n const ids = this.idExists(branch, id) ? [id] : [];\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-PK columns.\n * Filter accessed row by remaining payload (if one was found).\n */\n return reducer(this.accessIds(branch, ids), {\n ...clause,\n payload: remainingPayload,\n });\n }\n /**\n * No need to filter these rows any further.\n * The primary key value satisfies this clause's conditions.\n */\n return this.accessIds(branch, ids);\n }\n if (type === FILTER && typeof payload === \"object\") {\n const indexes = Object.entries(branch.indexes);\n const accessedIndexes = [];\n const indexAttrs = [];\n indexes.forEach(([attr, index]) => {\n if (clauseFiltersByAttribute(clause, attr)) {\n /**\n * Payload specified an indexed attribute. Use index\n * to potentially decrease amount of accessed rows.\n */\n if (index.hasOwnProperty(payload[attr])) {\n accessedIndexes.push(index[payload[attr]]);\n indexAttrs.push(attr);\n }\n }\n });\n /**\n * Calculate set of unique PK values corresponding to each\n * foreign key's attribute value. Then retrieve all those rows.\n */\n if (accessedIndexes.length) {\n const lastIndex = accessedIndexes.pop();\n const indexedIds = accessedIndexes.reduce(\n (result, index) => {\n const indexSet = new Set(index);\n return result.filter(\n Set.prototype.has,\n indexSet\n );\n },\n lastIndex\n );\n const remainingPayload = Object.keys(payload).reduce(\n (withoutIndexAttrs, filterAttr) => {\n if (!indexAttrs.includes(filterAttr)) {\n withoutIndexAttrs[filterAttr] =\n payload[filterAttr];\n }\n return withoutIndexAttrs;\n },\n {}\n );\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-indexed columns.\n * Filter indexed rows by remaining payload (if any were found).\n */\n return reducer(this.accessIds(branch, indexedIds), {\n ...clause,\n payload: remainingPayload,\n });\n }\n /**\n * No need to filter these rows any further.\n * The used indexes satisfy this clause's conditions.\n */\n return this.accessIds(branch, indexedIds);\n }\n }\n\n // Give up optimization: Retrieve all rows (full table scan).\n return reducer(this.accessList(branch), clause);\n }\n\n switch (type) {\n case FILTER: {\n return filter(rows, payload);\n }\n case EXCLUDE: {\n return reject(rows, payload);\n }\n case ORDER_BY: {\n const [iteratees, orders] = payload;\n return orderBy(rows, iteratees, normalizeOrders(orders));\n }\n default:\n return rows;\n }\n };\n\n return optimallyOrderedClauses.reduce(reducer, undefined);\n }\n\n /**\n * Returns the data structure including a new object `entry`\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object} entry - the object to insert\n * @return {Object} an object with two keys: `state` and `created`.\n * `state` is the new table state and `created` is the\n * row that was created.\n */\n insert(tx, branch, entry) {\n const { batchToken, withMutations } = tx;\n\n const hasId = entry.hasOwnProperty(this.idAttribute);\n\n let workingState = branch;\n\n // This will not affect string id's.\n const [newMaxId, id] = idSequencer(\n this.getMaxId(branch),\n entry[this.idAttribute]\n );\n workingState = this.setMaxId(tx, branch, newMaxId);\n\n const finalEntry = hasId\n ? entry\n : ops.batch.set(batchToken, this.idAttribute, id, entry);\n\n const indexesToAppendTo = Object.keys(workingState.indexes)\n .filter(\n fkAttr => entry.hasOwnProperty(fkAttr) && entry[fkAttr] !== null\n )\n .map(fkAttr => [fkAttr, entry[fkAttr]]);\n\n if (withMutations) {\n ops.mutable.push(id, workingState[this.arrName]);\n ops.mutable.set(id, finalEntry, workingState[this.mapName]);\n // add id to indexes\n indexesToAppendTo.forEach(([attr, value]) => {\n const attrIndex = workingState.indexes[attr];\n if (attrIndex.hasOwnProperty(value)) {\n ops.mutable.push(id, attrIndex[value]);\n } else {\n ops.mutable.set(value, [id], attrIndex);\n }\n });\n return {\n state: workingState,\n created: finalEntry,\n };\n }\n\n const nextIndexes = ops.batch.merge(\n batchToken,\n indexesToAppendTo.reduce(\n (indexMap, [attr, value]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n {\n [value]: ops.batch.push(\n batchToken,\n id,\n indexMap[attr][value] || []\n ),\n },\n indexMap[attr]\n );\n return indexMap;\n },\n { ...workingState.indexes }\n ),\n workingState.indexes\n );\n\n const nextState = ops.batch.merge(\n batchToken,\n {\n [this.arrName]: ops.batch.push(\n batchToken,\n id,\n workingState[this.arrName]\n ),\n [this.mapName]: ops.batch.merge(\n batchToken,\n {\n [id]: finalEntry,\n },\n workingState[this.mapName]\n ),\n indexes: nextIndexes,\n },\n workingState\n );\n\n return {\n state: nextState,\n created: finalEntry,\n };\n }\n\n /**\n * Returns the data structure with objects where `rows`\n * are merged with `mergeObj`.\n *\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @param {Object} mergeObj - The object to merge with each row.\n * @return {Object}\n */\n update(tx, branch, rows, mergeObj) {\n const { batchToken, withMutations } = tx;\n\n const mergeObjInto = row => {\n const merge = withMutations\n ? ops.mutable.merge\n : ops.batch.merge(batchToken);\n return merge(mergeObj, row);\n };\n\n const set = withMutations ? ops.mutable.set : ops.batch.set(batchToken);\n\n const indexedAttrs = Object.keys(branch.indexes).filter(attr =>\n mergeObj.hasOwnProperty(attr)\n );\n const indexIdsToAdd = [];\n const indexIdsToDelete = [];\n\n const nextMap = rows.reduce((map, row) => {\n const prevAttrValues = indexedAttrs.reduce(\n (valueMap, attr) => ({\n ...valueMap,\n [attr]: row[attr],\n }),\n {}\n );\n const result = mergeObjInto(row);\n const nextAttrValues = indexedAttrs.reduce(\n (valueMap, attr) => ({\n ...valueMap,\n [attr]: result[attr],\n }),\n {}\n );\n const id = result[this.idAttribute];\n const nextRow = set(id, result, map);\n indexedAttrs.forEach(attr => {\n const { [attr]: prevValue } = prevAttrValues;\n const { [attr]: nextValue } = nextAttrValues;\n if (prevValue === nextValue) {\n // attribute has not changed, no need to update any index\n return;\n }\n if (prevValue !== null && typeof prevValue !== \"undefined\") {\n // remove id from attribute's index for its old value\n indexIdsToDelete.push([attr, prevValue, id]);\n }\n if (nextValue !== null) {\n // add id to attribute's index for its new value\n indexIdsToAdd.push([attr, nextValue, id]);\n }\n });\n return nextRow;\n }, branch[this.mapName]);\n\n let nextIndexes = branch.indexes;\n if (withMutations) {\n indexIdsToDelete.forEach(([attr, value, id]) => {\n const arr = nextIndexes[attr][value];\n const idx = arr.indexOf(id);\n ops.mutable.splice(idx, 1, [], arr);\n });\n indexIdsToAdd.forEach(([attr, value, id]) => {\n ops.mutable.push(id, nextIndexes[attr][value]);\n });\n } else {\n if (indexIdsToAdd.length) {\n nextIndexes = ops.batch.merge(\n batchToken,\n indexIdsToAdd.reduce(\n (indexMap, [attr, value, id]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n {\n [value]: ops.batch.push(\n batchToken,\n id,\n indexMap[attr][value] || []\n ),\n },\n indexMap[attr]\n );\n return indexMap;\n },\n { ...nextIndexes }\n ),\n nextIndexes\n );\n }\n if (indexIdsToDelete.length) {\n nextIndexes = ops.batch.merge(\n batchToken,\n indexIdsToDelete.reduce(\n (indexMap, [attr, value, id]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n {\n [value]: ops.batch.filter(\n batchToken,\n rowId => rowId !== id,\n indexMap[attr][value]\n ),\n },\n indexMap[attr]\n );\n return indexMap;\n },\n { ...nextIndexes }\n ),\n nextIndexes\n );\n }\n }\n\n return ops.batch.merge(\n batchToken,\n {\n [this.mapName]: nextMap,\n indexes: nextIndexes,\n },\n branch\n );\n }\n\n /**\n * Returns the data structure without rows `rows`.\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @return {Object} the data structure without ids in `idsToDelete`.\n */\n delete(tx, branch, rows) {\n const { batchToken, withMutations } = tx;\n\n const { arrName, mapName } = this;\n const arr = branch[arrName];\n\n const idsToDelete = rows.map(row => row[this.idAttribute]);\n if (withMutations) {\n idsToDelete.forEach(id => {\n const idx = arr.indexOf(id);\n ops.mutable.splice(idx, 1, [], arr);\n ops.mutable.omit(id, branch[mapName]);\n });\n // delete ids from all indexes\n Object.values(branch.indexes).forEach(attrIndex =>\n Object.values(attrIndex).forEach(valueIndex =>\n idsToDelete.forEach(id => {\n const idx = valueIndex.indexOf(id);\n if (idx !== -1) {\n ops.mutable.splice(idx, 1, [], valueIndex);\n }\n })\n )\n );\n return branch;\n }\n\n const nextIndexes = ops.batch.merge(\n batchToken,\n Object.entries(branch.indexes).reduce(\n (indexMap, [attr, attrIndex]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n Object.entries(attrIndex).reduce(\n (attrIndexMap, [value, valueIndex]) => {\n attrIndexMap[value] = ops.batch.filter(\n batchToken,\n id => !idsToDelete.includes(id),\n valueIndex\n );\n return attrIndexMap;\n },\n { ...indexMap[attr] }\n ),\n indexMap[attr]\n );\n return indexMap;\n },\n { ...branch.indexes }\n ),\n branch.indexes\n );\n\n return ops.batch.merge(\n batchToken,\n {\n [arrName]: ops.batch.filter(\n batchToken,\n id => !idsToDelete.includes(id),\n branch[arrName]\n ),\n [mapName]: ops.batch.omit(\n batchToken,\n idsToDelete,\n branch[mapName]\n ),\n indexes: ops.batch.merge(\n batchToken,\n nextIndexes,\n branch.indexes\n ),\n },\n branch\n );\n }\n}\n\nexport default Table;\n","import ops from \"immutable-ops\";\n\nimport { CREATE, UPDATE, DELETE, SUCCESS, STATE_FLAG } from \"../constants\";\n\nimport Table from \"./Table\";\n\nconst BASE_EMPTY_STATE = {};\nObject.defineProperty(BASE_EMPTY_STATE, STATE_FLAG, {\n enumerable: true,\n value: true,\n});\n\n/** @private */\nfunction replaceTableState(tableName, newTableState, tx, state) {\n const { batchToken, withMutations } = tx;\n\n if (withMutations) {\n state[tableName] = newTableState;\n return state;\n }\n\n return ops.batch.set(batchToken, tableName, newTableState, state);\n}\n\n/** @private */\nfunction query(tables, querySpec, state) {\n const { table: tableName, clauses } = querySpec;\n const table = tables[tableName];\n const rows = table.query(state[tableName], clauses);\n return {\n rows,\n };\n}\n\n/** @private */\nfunction update(tables, updateSpec, tx, state) {\n const { action, payload } = updateSpec;\n\n let tableName;\n let nextTableState;\n let resultPayload;\n\n if (action === CREATE) {\n ({ table: tableName } = updateSpec);\n const table = tables[tableName];\n const currTableState = state[tableName];\n const result = table.insert(tx, currTableState, payload);\n nextTableState = result.state;\n resultPayload = result.created;\n } else {\n const { query: querySpec } = updateSpec;\n ({ table: tableName } = querySpec);\n const { rows } = query(tables, querySpec, state);\n\n const table = tables[tableName];\n const currTableState = state[tableName];\n\n if (action === UPDATE) {\n nextTableState = table.update(tx, currTableState, rows, payload);\n // return updated rows\n resultPayload = query(tables, querySpec, state).rows;\n } else if (action === DELETE) {\n nextTableState = table.delete(tx, currTableState, rows);\n // return original rows that we just deleted\n resultPayload = rows;\n } else {\n throw new Error(`Database received unknown update type: ${action}`);\n }\n }\n\n const nextDBState = replaceTableState(tableName, nextTableState, tx, state);\n return {\n status: SUCCESS,\n state: nextDBState,\n payload: resultPayload,\n };\n}\n\n/**\n * @memberof db\n * @param {Object} schemaSpec\n * @return Object database\n */\nexport function createDatabase(schemaSpec) {\n const { tables: tableSpecs } = schemaSpec;\n const tables = Object.entries(tableSpecs).reduce(\n (map, [tableName, tableSpec]) => ({\n ...map,\n [tableName]: new Table(tableSpec),\n }),\n {}\n );\n\n const getEmptyState = () =>\n Object.entries(tables).reduce(\n (map, [tableName, table]) => ({\n ...map,\n [tableName]: table.getEmptyState(),\n }),\n BASE_EMPTY_STATE\n );\n\n return {\n getEmptyState,\n query: query.bind(null, tables),\n update: update.bind(null, tables),\n // Used to inspect the schema.\n describe: tableName => tables[tableName],\n };\n}\n\nexport default createDatabase;\n","import { ID_ARG_KEY_SELECTOR } from \"../constants\";\n\nexport default class SelectorSpec {\n constructor({ parent, orm }) {\n this._parent = parent;\n this._orm = orm;\n this.keySelector = ID_ARG_KEY_SELECTOR;\n }\n\n get cachePath() {\n const basePath = this._parent ? this._parent.cachePath : [];\n return [...basePath, this.key];\n }\n\n get orm() {\n return this._orm;\n }\n\n get parent() {\n return this._parent;\n }\n}\n","import SelectorSpec from \"./SelectorSpec\";\n\nexport default class ModelBasedSelectorSpec extends SelectorSpec {\n constructor({ model, ...other }) {\n super(other);\n this._model = model;\n }\n\n get resultFunc() {\n return (session, idArg, ...other) => {\n const { [this._model.modelName]: ModelClass } = session;\n if (typeof idArg === \"undefined\") {\n return ModelClass.all()\n .toModelArray()\n .map(instance =>\n this.valueForInstance(instance, session, ...other)\n );\n }\n if (Array.isArray(idArg)) {\n return idArg.map(id =>\n this.valueForInstance(\n ModelClass.withId(id),\n session,\n ...other\n )\n );\n }\n return this.valueForInstance(\n ModelClass.withId(idArg),\n session,\n ...other\n );\n };\n }\n\n get model() {\n return this._model;\n }\n}\n","export default function idArgSelector(state, idArg) {\n return idArg;\n}\n","import ModelBasedSelectorSpec from \"./ModelBasedSelectorSpec\";\nimport idArgSelector from \"./idArgSelector\";\n\nexport default class MapSelectorSpec extends ModelBasedSelectorSpec {\n constructor({ field, selector, ...other }) {\n super(other);\n this._field = field;\n this._selector = selector;\n }\n\n createResultFunc(parentSelector) {\n const { idAttribute } = this._parent.toModel;\n return (state, ...other) => {\n /**\n * The parent selector should return a ref array\n * in case of a single ID being passed.\n * Otherwise it should return an array of ref arrays.\n */\n const parentResult = parentSelector(state, ...other);\n const idArg = idArgSelector(state, ...other);\n const single = refArray => {\n if (refArray === null) {\n // an intermediate field could not be resolved\n return null;\n }\n return refArray.map(ref =>\n this._selector(state, ref[idAttribute])\n );\n };\n if (typeof idArg === \"undefined\" || Array.isArray(idArg)) {\n return parentResult.map(single);\n }\n return single(parentResult);\n };\n }\n\n get selector() {\n return this._selector;\n }\n\n set selector(selector) {\n this._selector = selector;\n }\n\n get key() {\n return this._selector;\n }\n}\n","import SelectorSpec from \"./SelectorSpec\";\nimport idArgSelector from \"./idArgSelector\";\n\nexport default class ModelSelectorSpec extends SelectorSpec {\n constructor({ model, ...other }) {\n super(other);\n this._model = model;\n }\n\n get key() {\n return this._model.modelName;\n }\n\n get dependencies() {\n return [this._orm, idArgSelector];\n }\n\n get resultFunc() {\n return ({ [this._model.modelName]: ModelClass }, idArg) => {\n if (typeof idArg === \"undefined\") {\n return ModelClass.all().toRefArray();\n }\n if (Array.isArray(idArg)) {\n return idArg.map(id => {\n const instance = ModelClass.withId(id);\n return instance ? instance.ref : null;\n });\n }\n const instance = ModelClass.withId(idArg);\n return instance ? instance.ref : null;\n };\n }\n\n get model() {\n return this._model;\n }\n}\n","import MapSelectorSpec from \"./MapSelectorSpec\";\nimport ModelSelectorSpec from \"./ModelSelectorSpec\";\nimport ModelBasedSelectorSpec from \"./ModelBasedSelectorSpec\";\nimport idArgSelector from \"./idArgSelector\";\n\nimport QuerySet from \"../QuerySet\";\nimport Model from \"../Model\";\n\nimport ForeignKey from \"../fields/ForeignKey\";\nimport ManyToMany from \"../fields/ManyToMany\";\n\nexport default class FieldSelectorSpec extends ModelBasedSelectorSpec {\n constructor({ field, fieldModel, accessorName, isVirtual, ...other }) {\n super(other);\n this._field = field;\n this._fieldModel = fieldModel;\n this._accessorName = accessorName;\n this._isVirtual = isVirtual;\n }\n\n get key() {\n return this._accessorName;\n }\n\n get dependencies() {\n return [this._orm, idArgSelector];\n }\n\n valueForInstance(instance, session) {\n if (!instance) {\n return null;\n }\n let value;\n if (this._parent instanceof ModelSelectorSpec) {\n /* orm.Model.field */\n value = instance[this._accessorName];\n } else {\n /* orm.Model.field1.field2..fieldN.field */\n const { [this._parent.toModelName]: ParentToModel } = session;\n const parentRef = this._parent.valueForInstance(instance, session);\n const parentInstance = parentRef\n ? new ParentToModel(parentRef)\n : null;\n value = parentInstance ? parentInstance[this._accessorName] : null;\n }\n if (value instanceof Model) {\n return value.ref;\n }\n if (value instanceof QuerySet) {\n return value.toRefArray();\n }\n return value;\n }\n\n map(selector) {\n if (selector instanceof ModelSelectorSpec) {\n if (this.toModelName === selector.model.modelName) {\n throw new Error(\n `Cannot select models in a \\`map()\\` call. If you just want the \\`${this._accessorName}\\` as a ref array then you can simply drop the \\`map()\\`. Otherwise make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`\n );\n } else {\n throw new Error(\n `Cannot select \\`${selector.model.modelName}\\` models in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`\n );\n }\n } else if (\n selector instanceof FieldSelectorSpec ||\n selector instanceof MapSelectorSpec\n ) {\n if (this.toModelName !== selector.model.modelName) {\n throw new Error(\n `Cannot select fields of the \\`${selector.model.modelName}\\` model in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`\n );\n }\n } else if (\n !selector ||\n typeof selector !== \"function\" ||\n !selector.recomputations\n ) {\n throw new Error(\n `\\`map()\\` requires a selector as an input. Received: ${JSON.stringify(\n selector\n )} of type ${typeof selector}`\n );\n }\n if (\n !(this._field instanceof ForeignKey) &&\n !(this._field instanceof ManyToMany)\n ) {\n throw new Error(\"Cannot map selectors for non-collection fields\");\n }\n return new MapSelectorSpec({\n parent: this,\n model: this._model,\n orm: this._orm,\n field: this._field,\n selector,\n });\n }\n\n get toModelName() {\n return this._field.toModelName === \"this\"\n ? this._fieldModel.modelName\n : this._field.toModelName;\n }\n\n get toModel() {\n const db = this._orm.getDatabase();\n return db.describe(this.toModelName);\n }\n}\n","import ForeignKey from \"../fields/ForeignKey\";\nimport ManyToMany from \"../fields/ManyToMany\";\nimport RelationalField from \"../fields/RelationalField\";\n\nimport FieldSelectorSpec from \"./FieldSelectorSpec\";\nimport ModelSelectorSpec from \"./ModelSelectorSpec\";\n\n/**\n * @module selectors\n * @private\n */\n\nexport function createFieldSelectorSpec({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual,\n}) {\n const fieldSelectorSpec = new FieldSelectorSpec({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual,\n });\n /* Do not even try to create field selectors below attributes. */\n if (!(field instanceof RelationalField)) {\n // \"orm.Author.name.publisher\" would be nonsense\n return fieldSelectorSpec;\n }\n /* Prevent field selectors below collections. */\n if (parent instanceof FieldSelectorSpec) {\n /* eslint-disable no-underscore-dangle */\n if (\n // \"orm.Author.books.publisher\" would be nonsense\n (parent._field instanceof ForeignKey && parent._isVirtual) ||\n // \"orm.Genre.books.publisher\" would be nonsense\n parent._field instanceof ManyToMany\n ) {\n throw new Error(\n `Cannot create a selector for \\`${parent._accessorName}.${accessorName}\\` because \\`${parent._accessorName}\\` is a collection field.`\n );\n }\n }\n const { toModelName } = field;\n const toModel = orm.get(\n toModelName === \"this\" ? model.modelName : toModelName\n );\n Object.entries(toModel.fields).forEach(\n ([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false,\n }),\n });\n }\n );\n Object.entries(toModel.virtualFields).forEach(\n ([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n if (fieldSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true,\n }),\n });\n }\n );\n return fieldSelectorSpec;\n}\n\nexport function createModelSelectorSpec({ model, orm }) {\n const modelSelectorSpec = new ModelSelectorSpec({\n parent: null,\n orm,\n model,\n });\n\n Object.entries(model.fields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false,\n }),\n });\n });\n\n Object.entries(model.virtualFields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n if (modelSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true,\n }),\n });\n });\n\n return modelSelectorSpec;\n}\n","/* eslint-disable max-classes-per-file */\nimport Session from \"./Session\";\nimport Model from \"./Model\";\nimport { createDatabase as defaultCreateDatabase } from \"./db\";\nimport { attr } from \"./fields\";\nimport Field from \"./fields/Field\";\nimport ForeignKey from \"./fields/ForeignKey\";\nimport ManyToMany from \"./fields/ManyToMany\";\n\nimport { createModelSelectorSpec } from \"./selectors\";\n\nimport {\n m2mName,\n attachQuerySetMethods,\n m2mToFieldName,\n m2mFromFieldName,\n warnDeprecated,\n} from \"./utils\";\n\nconst ORM_DEFAULTS = {\n createDatabase: defaultCreateDatabase,\n};\n\nconst RESERVED_TABLE_OPTIONS = [\"indexes\", \"meta\"];\nconst isReservedTableOption = word => RESERVED_TABLE_OPTIONS.includes(word);\n\n/**\n * ORM - the Object Relational Mapper.\n *\n * Use instances of this class to:\n *\n * - Register your {@link Model} classes using {@link ORM#register}\n * - Get the empty state for the underlying database with {@link ORM#getEmptyState}\n * - Start an immutable database session with {@link ORM#session}\n * - Start a mutating database session with {@link ORM#mutableSession}\n *\n * Internally, this class handles generating a schema specification from models\n * to the database.\n */\nclass ORM {\n /**\n * Creates a new ORM instance.\n *\n * @param {Object} [opts]\n * @param {Function} [opts.stateSelector] - function that given a Redux state tree\n * will return the ORM state's subtree,\n * e.g. `state => state.orm`\n * (necessary if you want to use selectors)\n * @param {Function} [opts.createDatabase] - function that creates a database\n */\n constructor(opts) {\n const { createDatabase } = { ...ORM_DEFAULTS, ...(opts || {}) };\n this.createDatabase = createDatabase;\n this.registry = [];\n this.implicitThroughModels = [];\n this.installedFields = {};\n this.stateSelector = opts ? opts.stateSelector : null;\n }\n\n /**\n * Registers a {@link Model} class to the ORM.\n *\n * If the model has declared any ManyToMany fields, their\n * through models will be generated and registered with\n * this call, unless a custom through model has been specified.\n *\n * @param {...Model} models - a {@link Model} class to register\n * @return {undefined}\n */\n register(...models) {\n models.forEach(model => {\n if (model.modelName === undefined) {\n throw new Error(\n \"A model was passed that doesn't have a modelName set\"\n );\n }\n\n model.invalidateClassCache();\n\n this.registerManyToManyModelsFor(model);\n this.registry.push(model);\n\n Object.defineProperty(this, model.modelName, {\n get: () => {\n // make sure virtualFields are set up\n this._setupModelPrototypes(this.registry);\n\n return createModelSelectorSpec({\n model,\n orm: this,\n });\n },\n });\n });\n }\n\n registerManyToManyModelsFor(model) {\n const { fields } = model;\n const thisModelName = model.modelName;\n\n Object.entries(fields).forEach(([fieldName, fieldInstance]) => {\n if (!(fieldInstance instanceof ManyToMany)) {\n return;\n }\n\n let toModelName;\n if (fieldInstance.toModelName === \"this\") {\n toModelName = thisModelName;\n } else {\n toModelName = fieldInstance.toModelName; // eslint-disable-line prefer-destructuring\n }\n\n const selfReferencing = thisModelName === toModelName;\n const fromFieldName = m2mFromFieldName(thisModelName);\n const toFieldName = m2mToFieldName(toModelName);\n\n if (fieldInstance.through) {\n if (selfReferencing && !fieldInstance.throughFields) {\n throw new Error(\n \"Self-referencing many-to-many relationship at \" +\n `\"${thisModelName}.${fieldName}\" using custom ` +\n `model \"${fieldInstance.through}\" has no ` +\n \"throughFields key. Cannot determine which \" +\n \"fields reference the instances partaking \" +\n \"in the relationship.\"\n );\n }\n } else {\n const Through = class ThroughModel extends Model {};\n\n Through.modelName = m2mName(thisModelName, fieldName);\n\n const PlainForeignKey = class PlainForeignKey extends ForeignKey {\n get installsBackwardsVirtualField() {\n return false;\n }\n\n get installsBackwardsDescriptor() {\n return false;\n }\n };\n const ForeignKeyClass = selfReferencing\n ? PlainForeignKey\n : ForeignKey;\n Through.fields = {\n id: attr(),\n [fromFieldName]: new ForeignKeyClass(thisModelName),\n [toFieldName]: new ForeignKeyClass(toModelName),\n };\n\n Through.invalidateClassCache();\n this.implicitThroughModels.push(Through);\n }\n });\n }\n\n /**\n * Gets a {@link Model} class by its name from the registry.\n * @param {string} modelName - the name of the {@link Model} class to get\n * @throws If {@link Model} class is not found.\n * @return {Model} the {@link Model} class, if found\n */\n get(modelName) {\n const allModels = this.registry.concat(this.implicitThroughModels);\n const found = Object.values(allModels).find(\n model => model.modelName === modelName\n );\n\n if (typeof found === \"undefined\") {\n throw new Error(`Did not find model ${modelName} from registry.`);\n }\n return found;\n }\n\n getModelClasses() {\n this._setupModelPrototypes(this.registry);\n this._setupModelPrototypes(this.implicitThroughModels);\n return this.registry.concat(this.implicitThroughModels);\n }\n\n generateSchemaSpec() {\n const models = this.getModelClasses();\n const tables = models.reduce((spec, modelClass) => {\n const tableName = modelClass.modelName;\n const tableSpec = modelClass.tableOptions();\n Object.keys(tableSpec)\n .filter(isReservedTableOption)\n .forEach(key => {\n throw new Error(\n `Reserved keyword \\`${key}\\` used in ${tableName}.options.`\n );\n });\n spec[tableName] = {\n fields: { ...modelClass.fields },\n ...tableSpec,\n };\n return spec;\n }, {});\n return { tables };\n }\n\n getDatabase() {\n if (!this.db) {\n this.db = this.createDatabase(this.generateSchemaSpec());\n }\n return this.db;\n }\n\n /**\n * Returns the empty database state.\n * @return {Object} the empty state\n */\n getEmptyState() {\n return this.getDatabase().getEmptyState();\n }\n\n /**\n * Begins an immutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n session(state) {\n return new Session(this, this.getDatabase(), state);\n }\n\n /**\n * Begins a mutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n mutableSession(state) {\n return new Session(this, this.getDatabase(), state, true);\n }\n\n /**\n * @private\n */\n _setupModelPrototypes(models) {\n models\n .filter(model => !model.isSetUp)\n .forEach(model => {\n const { fields, modelName, querySetClass } = model;\n Object.entries(fields).forEach(([fieldName, field]) => {\n if (!(field instanceof Field)) {\n throw new Error(\n `${modelName}.${fieldName} is of type \"${typeof field}\" ` +\n \"but must be an instance of Field. Please use the \" +\n \"`attr`, `fk`, `oneToOne` and `many` \" +\n \"functions to define fields.\"\n );\n }\n if (!this._isFieldInstalled(modelName, fieldName)) {\n this._installField(field, fieldName, model);\n this._setFieldInstalled(modelName, fieldName);\n }\n });\n attachQuerySetMethods(model, querySetClass);\n model.isSetUp = true;\n });\n }\n\n /**\n * @private\n */\n _isFieldInstalled(modelName, fieldName) {\n return this.installedFields.hasOwnProperty(modelName)\n ? !!this.installedFields[modelName][fieldName]\n : false;\n }\n\n /**\n * @private\n */\n _setFieldInstalled(modelName, fieldName) {\n if (!this.installedFields.hasOwnProperty(modelName)) {\n this.installedFields[modelName] = {};\n }\n this.installedFields[modelName][fieldName] = true;\n }\n\n /**\n * Installs a field on a model and its related models if necessary.\n * @private\n */\n _installField(field, fieldName, model) {\n const FieldInstaller = field.installerClass;\n new FieldInstaller({\n field,\n fieldName,\n model,\n orm: this,\n }).run();\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Use {@link ORM#mutableSession} instead.\n */\n withMutations(state) {\n warnDeprecated(\n \"`ORM.prototype.withMutations` has been deprecated. \" +\n \"Use `ORM.prototype.mutableSession` instead.\"\n );\n return this.mutableSession(state);\n }\n\n /**\n * @deprecated Use {@link ORM#session} instead.\n */\n from(state) {\n warnDeprecated(\n \"`ORM.prototype.from` has been deprecated. \" +\n \"Use `ORM.prototype.session` instead.\"\n );\n return this.session(state);\n }\n\n /**\n * @deprecated Use {@link ORM#getEmptyState} instead.\n */\n getDefaultState() {\n warnDeprecated(\n \"`ORM.prototype.getDefaultState` has been deprecated. Use \" +\n \"`ORM.prototype.getEmptyState` instead.\"\n );\n return this.getEmptyState();\n }\n\n /**\n * @deprecated Define a Model class instead.\n */\n define() {\n throw new Error(\n \"`ORM.prototype.define` has been removed. Please define a Model class.\"\n );\n }\n}\n\nexport function DeprecatedSchema() {\n throw new Error(\n \"Schema has been renamed to ORM. Please import ORM instead of Schema \" +\n \"from Redux-ORM.\"\n );\n}\n\nexport { ORM };\n\nexport default ORM;\n","import { STATE_FLAG } from \"./constants\";\n\nconst defaultEqualityCheck = (a, b) => a === b;\nexport const eqCheck = defaultEqualityCheck;\n\nconst isOrmState = arg =>\n arg && typeof arg === \"object\" && arg.hasOwnProperty(STATE_FLAG);\n\nconst argsAreEqual = (lastArgs, nextArgs, equalityCheck) =>\n nextArgs.every(\n (arg, index) =>\n (isOrmState(arg) && isOrmState(lastArgs[index])) ||\n equalityCheck(arg, lastArgs[index])\n );\n\nconst rowsAreEqual = (ids, rowsA, rowsB) =>\n ids.every(id => rowsA[id] === rowsB[id]);\n\nconst accessedModelInstancesAreEqual = (previous, ormState, orm) => {\n const { accessedInstances } = previous;\n\n return Object.entries(accessedInstances).every(([modelName, instances]) => {\n // if the entire table has not been changed, we have nothing to do\n if (previous.ormState[modelName] === ormState[modelName]) {\n return true;\n }\n\n const { mapName } = orm.getDatabase().describe(modelName);\n\n const { [mapName]: previousRows } = previous.ormState[modelName];\n const { [mapName]: rows } = ormState[modelName];\n\n const accessedIds = Object.keys(instances);\n return rowsAreEqual(accessedIds, previousRows, rows);\n });\n};\n\nconst accessedIndexesAreEqual = (previous, ormState) => {\n const { accessedIndexes } = previous;\n\n return Object.entries(accessedIndexes).every(([modelName, indexes]) =>\n Object.entries(indexes).every(([column, values]) =>\n values.every(\n value =>\n previous.ormState[modelName].indexes[column][value] ===\n ormState[modelName].indexes[column][value]\n )\n )\n );\n};\n\nconst fullTableScannedModelsAreEqual = (previous, ormState) =>\n previous.fullTableScannedModels.every(\n modelName => previous.ormState[modelName] === ormState[modelName]\n );\n\n/**\n * A memoizer to use with redux-orm\n * selectors. When the memoized function is first run,\n * the memoizer will remember the models that are accessed\n * during that function run.\n *\n * On subsequent runs, the memoizer will check if those\n * models' states have changed compared to the previous run.\n *\n * Memoization algorithm operates like this:\n *\n * 1. Has the selector been run before? If not, go to 6.\n *\n * 2. If the selector has other input selectors in addition to the\n * ORM state selector, check their results for equality with the previous results.\n * If they aren't equal, go to 6.\n *\n * 3. Some filter queries may have required scanning entire tables during the last run.\n * If any of those tables have changed, go to 6.\n *\n * 4. Check which foreign key indexes the database has used to speed up queries\n * during the last run. If any have changed, go to 6.\n *\n * 5. Check which Model's instances the selector has accessed during the last run.\n * Check for equality with each of those states versus their states in the\n * previous ORM state. If all of them are equal, return the previous result.\n *\n * 6. Run the selector. Check the Session object used by the selector for\n * which Model's states were accessed, and merge them with the previously\n * saved information about accessed models (if-else branching can change\n * which models are accessed on different inputs). Save the ORM state and\n * other arguments the selector was called with, overriding previously\n * saved values. Save the selector result. Return the selector result.\n *\n * @private\n * @param {Function} func - function to memoize\n * @param {Function} argEqualityCheck - equality check function to use with normal\n * selector args\n * @param {ORM} orm - a redux-orm ORM instance\n * @return {Function} `func` memoized.\n */\nexport function memoize(func, argEqualityCheck = defaultEqualityCheck, orm) {\n let previous = {\n /* Result of the previous function call */\n result: null,\n /* Arguments to the previous function call (excluding ORM state) */\n args: null,\n /**\n * Snapshot of the previous database.\n *\n * Lets us know how the tables looked like\n * during the previous function call.\n */\n ormState: null,\n /**\n * Names of models whose tables have been scanned completely\n * during previous function call (contains only model names)\n * Format example: ['Book']\n */\n fullTableScannedModels: [],\n /**\n * Map of which model instances have been accessed\n * during previous function call.\n * Contains only PKs of accessed instances.\n * Format example: { Book: { 1: true, 3: true } }\n */\n accessedInstances: {},\n /**\n * Map of which attribute indexes have been accessed\n * during previous function call.\n * Contains only attributes that were actually filtered on.\n * Author.withId(3).books would add 3 to the authorId index below.\n * Format example: { Book: { authorId: [1, 2], publisherId: [5] } }\n */\n accessedIndexes: {},\n };\n\n return (...stateAndArgs) => {\n /**\n * The first argument to this function needs to be\n * the ORM's reducer state in the user's Redux store.\n */\n const [ormState, ...args] = stateAndArgs;\n\n const selectorWasCalledBefore = Boolean(previous.args);\n if (\n selectorWasCalledBefore &&\n argsAreEqual(previous.args, args, argEqualityCheck) &&\n fullTableScannedModelsAreEqual(previous, ormState) &&\n accessedIndexesAreEqual(previous, ormState) &&\n accessedModelInstancesAreEqual(previous, ormState, orm)\n ) {\n /**\n * None of this selector's dependencies have changed\n * since the last time that we called it.\n */\n return previous.result;\n }\n\n /**\n * Start a session so that the selector can access the database.\n * Make this session immutable. This way we can find out if\n * the operations that the selector performs are cacheable.\n */\n const session = orm.session(ormState);\n /* Replace all ORM state arguments by the session above */\n const argsWithSession = args.map(arg =>\n isOrmState(arg) ? session : arg\n );\n\n /* This is where we call the actual function */\n const result = func.apply(null, argsWithSession); // eslint-disable-line prefer-spread\n\n /**\n * The metadata for the previous call are no longer valid.\n * Update cached values.\n */\n previous = {\n /* Arguments that were passed to the selector */\n args,\n /* Selector result */\n result,\n /* Redux state slice for session.state */\n ormState,\n /* Rows retrieved by resolved primary key */\n accessedInstances: session.accessedModelInstances,\n /* Foreign key indexes that were used to speed up queries */\n accessedIndexes: session.accessedIndexes,\n /* Tables that had to be scanned completely */\n fullTableScannedModels: session.fullTableScannedModels,\n };\n\n return result;\n };\n}\n","import { createSelectorCreator } from \"reselect\";\nimport createCachedSelector, { FlatMapCache } from \"re-reselect\";\n\nimport { memoize } from \"./memoize\";\n\nimport { ORM } from \"./ORM\";\nimport SelectorSpec from \"./selectors/SelectorSpec\";\nimport MapSelectorSpec from \"./selectors/MapSelectorSpec\";\n\n/**\n * @module redux\n * @desc Provides functions for integration with Redux.\n */\n\n/**\n * Calls all models' reducers if they exist.\n *\n * @return {undefined}\n * @global\n */\nexport function defaultUpdater(session, action) {\n session.sessionBoundModels.forEach(modelClass => {\n if (typeof modelClass.reducer === \"function\") {\n // This calls this.applyUpdate to update this.state\n modelClass.reducer(action, modelClass, session);\n }\n });\n}\n\n/**\n * Call the returned function to pass actions to Redux-ORM.\n *\n * @global\n *\n * @param {ORM} orm - the ORM instance.\n * @param {Function} [updater] - the function updating the ORM state based on the given action.\n * @return {Function} reducer that will update the ORM state.\n */\nexport function createReducer(orm, updater = defaultUpdater) {\n return (state, action) => {\n const session = orm.session(state || orm.getEmptyState());\n updater(session, action);\n return session.state;\n };\n}\n\n/**\n * @private\n * @param {SelectorSpec} spec\n */\nfunction createSelectorFromSpec(spec) {\n if (spec instanceof MapSelectorSpec) {\n const parentSelector = createSelectorFromSpec(spec.parent);\n return spec.createResultFunc(parentSelector);\n }\n return createCachedSelector(\n spec.dependencies,\n spec.resultFunc\n )({\n keySelector: spec.keySelector,\n cacheObject: new FlatMapCache(),\n selectorCreator: createSelector, // eslint-disable-line no-use-before-define\n });\n}\n\n/**\n * Tries to find ORM instance using the argument.\n * @private\n * @param {*} arg\n */\nfunction toORM(arg) {\n /* eslint-disable no-underscore-dangle */\n if (arg instanceof ORM) {\n return arg;\n }\n if (arg instanceof SelectorSpec) {\n return arg._orm;\n }\n return false;\n}\n\nconst selectorCache = new Map();\nconst SELECTOR_KEY = Symbol.for(\"REDUX_ORM_SELECTOR\");\n\n/**\n * @private\n * @param {function|ORM|SelectorSpec} arg\n */\nfunction toSelector(arg) {\n if (typeof arg === \"function\") {\n return arg;\n }\n if (arg instanceof ORM) {\n return arg.stateSelector;\n }\n if (arg instanceof MapSelectorSpec) {\n // the argument to map() needs to be callable\n arg.selector = toSelector(arg.selector);\n }\n if (arg instanceof SelectorSpec) {\n const { orm, cachePath } = arg;\n let level;\n\n // the selector cache for the spec's ORM\n if (!selectorCache.has(orm)) {\n selectorCache.set(orm, new Map());\n }\n const ormSelectors = selectorCache.get(orm);\n\n /**\n * Drill down into selector map by cachePath.\n *\n * The selector itself is stored under a special SELECTOR_KEY\n * so that we can store selectors below it as well.\n */\n level = ormSelectors;\n for (let i = 0; i < cachePath.length; ++i) {\n const storageKey = cachePath[i];\n if (!level.has(storageKey)) {\n level.set(storageKey, new Map());\n }\n level = level.get(storageKey);\n }\n if (level && level.has(SELECTOR_KEY)) {\n // Cache hit: the selector has been created before\n return level.get(SELECTOR_KEY);\n }\n // Cache miss: the selector needs to be created\n const selector = createSelectorFromSpec(arg);\n // Save the selector at the cachePath position\n level.set(SELECTOR_KEY, selector);\n\n return selector;\n }\n throw new Error(\n `Failed to interpret selector argument: ${JSON.stringify(\n arg\n )} of type ${typeof arg}`\n );\n}\n\n/**\n * Returns a memoized selector based on passed arguments.\n * This is similar to `reselect`'s `createSelector`,\n * except you can also pass a single function to be memoized.\n *\n * If you pass multiple functions, the format will be the\n * same as in `reselect`. The last argument is the selector\n * function and the previous are input selectors.\n *\n * When you use this method to create a selector, the returned selector\n * expects the whole `redux-orm` state branch as input. In the selector\n * function that you pass as the last argument, any of the arguments\n * you pass first will be considered selectors and mapped\n * to their outputs, like in `reselect`.\n *\n * Here are some example selectors:\n *\n * ```javascript\n * // orm is an instance of ORM\n * // reduxState is the state of a Redux store\n * const books = createSelector(orm.Book);\n * books(reduxState) // array of book refs\n *\n * const bookAuthors = createSelector(orm.Book.authors);\n * bookAuthors(reduxState) // two-dimensional array of author refs for each book\n * ```\n * Selectors can easily be applied to related models:\n * ```javascript\n * const bookAuthorNames = createSelector(\n * orm.Book.authors.map(orm.Author.name),\n * );\n * bookAuthorNames(reduxState, 8) // names of all authors of book with ID 8\n * bookAuthorNames(reduxState, [8, 9]) // 2D array of names of all authors of books with IDs 8 and 9\n * ```\n * Also note that `orm.Author.name` did not need to be wrapped in another `createSelector` call,\n * although that would be possible.\n *\n * For more complex calculations you can access\n * entire session objects by passing an ORM instance.\n * ```javascript\n * const freshBananasCost = createSelector(\n * orm,\n * session => {\n * const banana = session.Product.get({\n * name: \"Banana\",\n * });\n * // amount of fresh bananas in shopping cart\n * const amount = session.ShoppingCart.filter({\n * product_id: banana.id,\n * is_fresh: true,\n * }).count();\n * return `USD ${amount * banana.price}`;\n * }\n * );\n * ```\n *\n * redux-orm uses a special memoization function to avoid recomputations.\n *\n * Everytime a selector runs, this function records which instances\n * of your `Model`s were accessed.
\n * On subsequent runs, the selector first checks if the previously\n * accessed instances or `args` have changed in any way:\n *
    \n *
  • If yes, the selector calls the function you passed to it.
  • \n *
  • If not, it just returns the previous result\n * (unless you call it for the first time).
  • \n *
\n *\n * This way you can use pure rendering in your React components\n * for performance gains.\n *\n * @global\n *\n * @param {...Function} args - zero or more input selectors\n * and the selector function.\n * @return {Function} memoized selector\n */\nexport function createSelector(...args) {\n if (!args.length) {\n throw new Error(\"Cannot create a selector without arguments.\");\n }\n\n const resultArg = args.pop();\n const dependencies = Array.isArray(args[0]) ? args[0] : args;\n\n const orm = dependencies.map(toORM).find(Boolean);\n const inputFuncs = dependencies.map(toSelector);\n\n if (typeof resultArg === \"function\") {\n if (!orm) {\n throw new Error(\n \"Failed to resolve the current ORM database state. Please pass an ORM instance or an ORM selector as an argument to `createSelector()`.\"\n );\n } else if (!orm.stateSelector) {\n throw new Error(\n \"Failed to resolve the current ORM database state. Please pass an object to the ORM constructor that specifies a `stateSelector` function.\"\n );\n } else if (typeof orm.stateSelector !== \"function\") {\n throw new Error(\n `Failed to resolve the current ORM database state. Please pass a function when specifying the ORM's \\`stateSelector\\`. Received: ${JSON.stringify(\n orm.stateSelector\n )} of type ${typeof orm.stateSelector}`\n );\n }\n\n return createSelectorCreator(\n memoize,\n undefined,\n orm\n )([orm.stateSelector, ...inputFuncs], resultArg);\n }\n\n if (resultArg instanceof ORM) {\n throw new Error(\n \"ORM instances cannot be the result function of selectors. You can access your models in the last function that you pass to `createSelector()`.\"\n );\n }\n if (inputFuncs.length) {\n console.warn(\n \"Your input selectors will be ignored: the passed result function does not require any input.\"\n );\n }\n\n return toSelector(resultArg);\n}\n","import QuerySet from \"./QuerySet\";\nimport Model from \"./Model\";\nimport { DeprecatedSchema, ORM } from \"./ORM\";\nimport Session from \"./Session\";\nimport { createReducer, createSelector } from \"./redux\";\nimport ForeignKey from \"./fields/ForeignKey\";\nimport ManyToMany from \"./fields/ManyToMany\";\nimport OneToOne from \"./fields/OneToOne\";\nimport Attribute from \"./fields/Attribute\";\nimport { fk, many, oneToOne, attr } from \"./fields\";\n\nconst Schema = DeprecatedSchema;\n\nconst Backend = function RemovedBackend() {\n throw new Error(\n \"Having a custom Backend instance is now unsupported. \" +\n \"Documentation for database customization is upcoming, for now \" +\n \"please look at the db folder in the source.\"\n );\n};\n\nexport {\n Attribute,\n QuerySet,\n Model,\n ORM,\n Schema,\n Backend,\n Session,\n ForeignKey,\n ManyToMany,\n OneToOne,\n fk,\n many,\n attr,\n oneToOne,\n createReducer,\n createSelector,\n};\n\nexport default Model;\n"],"sourceRoot":""} +\ No newline at end of file ++{"version":3,"sources":["webpack://ReduxOrm/webpack/universalModuleDefinition","webpack://ReduxOrm/webpack/bootstrap","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/createClass.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/inheritsLoose.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/typeof.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://ReduxOrm/./node_modules/lodash/isArray.js","webpack://ReduxOrm/./node_modules/reselect/lib/index.js","webpack://ReduxOrm/./node_modules/re-reselect/dist/index.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://ReduxOrm/./node_modules/lodash/_baseOrderBy.js","webpack://ReduxOrm/./node_modules/lodash/_baseIteratee.js","webpack://ReduxOrm/./node_modules/lodash/identity.js","webpack://ReduxOrm/./node_modules/lodash/filter.js","webpack://ReduxOrm/./node_modules/lodash/orderBy.js","webpack://ReduxOrm/./node_modules/lodash/reject.js","webpack://ReduxOrm/./node_modules/lodash/sortBy.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://ReduxOrm/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://ReduxOrm/./node_modules/lodash/_arrayMap.js","webpack://ReduxOrm/./node_modules/lodash/_baseGet.js","webpack://ReduxOrm/./node_modules/lodash/_baseMap.js","webpack://ReduxOrm/./node_modules/lodash/_baseSortBy.js","webpack://ReduxOrm/./node_modules/lodash/_baseUnary.js","webpack://ReduxOrm/./node_modules/lodash/_compareMultiple.js","webpack://ReduxOrm/./node_modules/lodash/_compareAscending.js","webpack://ReduxOrm/./node_modules/lodash/isSymbol.js","webpack://ReduxOrm/./node_modules/lodash/_arrayFilter.js","webpack://ReduxOrm/./node_modules/lodash/_baseFilter.js","webpack://ReduxOrm/./node_modules/lodash/negate.js","webpack://ReduxOrm/./node_modules/lodash/_baseFlatten.js","webpack://ReduxOrm/./node_modules/lodash/_baseRest.js","webpack://ReduxOrm/./node_modules/lodash/_overRest.js","webpack://ReduxOrm/./node_modules/lodash/_apply.js","webpack://ReduxOrm/./node_modules/lodash/_setToString.js","webpack://ReduxOrm/./node_modules/lodash/_isIterateeCall.js","webpack://ReduxOrm/./node_modules/ramda/es/internal/_isPlaceholder.js","webpack://ReduxOrm/./node_modules/ramda/es/internal/_curry1.js","webpack://ReduxOrm/./node_modules/ramda/es/internal/_arity.js","webpack://ReduxOrm/./node_modules/ramda/es/internal/_curry2.js","webpack://ReduxOrm/./node_modules/ramda/es/curryN.js","webpack://ReduxOrm/./node_modules/ramda/es/internal/_curryN.js","webpack://ReduxOrm/./node_modules/ramda/es/curry.js","webpack://ReduxOrm/./node_modules/ramda/es/__.js","webpack://ReduxOrm/./node_modules/immutable-ops/es/index.js","webpack://ReduxOrm/./src/constants.js","webpack://ReduxOrm/./src/utils.js","webpack://ReduxOrm/./src/QuerySet.js","webpack://ReduxOrm/./src/Session.js","webpack://ReduxOrm/./src/fields/DefaultFieldInstaller.js","webpack://ReduxOrm/./src/fields/FieldInstallerTemplate.js","webpack://ReduxOrm/./src/fields/Field.js","webpack://ReduxOrm/./src/descriptors.js","webpack://ReduxOrm/./src/fields/Attribute.js","webpack://ReduxOrm/./src/fields/RelationalField.js","webpack://ReduxOrm/./src/fields/ForeignKey.js","webpack://ReduxOrm/./src/fields/ManyToMany.js","webpack://ReduxOrm/./src/fields/OneToOne.js","webpack://ReduxOrm/./src/fields/index.js","webpack://ReduxOrm/./src/Model.js","webpack://ReduxOrm/./src/db/Table.js","webpack://ReduxOrm/./src/db/Database.js","webpack://ReduxOrm/./src/selectors/SelectorSpec.js","webpack://ReduxOrm/./src/selectors/ModelBasedSelectorSpec.js","webpack://ReduxOrm/./src/selectors/idArgSelector.js","webpack://ReduxOrm/./src/selectors/MapSelectorSpec.js","webpack://ReduxOrm/./src/selectors/ModelSelectorSpec.js","webpack://ReduxOrm/./src/selectors/FieldSelectorSpec.js","webpack://ReduxOrm/./src/selectors/index.js","webpack://ReduxOrm/./src/ORM.js","webpack://ReduxOrm/./src/memoize.js","webpack://ReduxOrm/./src/redux.js","webpack://ReduxOrm/./src/index.js"],"names":["root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","_defineProperties","target","props","length","descriptor","configurable","writable","Constructor","protoProps","staticProps","setPrototypeOf","subClass","superClass","constructor","_typeof","obj","iterator","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","arr","isArray","Array","defaultEqualityCheck","a","b","areArgumentsShallowlyEqual","equalityCheck","prev","next","defaultMemoize","func","arguments","undefined","lastArgs","lastResult","apply","getDependencies","funcs","dependencies","every","dep","dependencyTypes","map","join","Error","createSelectorCreator","memoize","_len","memoizeOptions","_key","_len2","_key2","recomputations","resultFunc","pop","memoizedResultFunc","concat","selector","params","push","resetRecomputations","createStructuredSelector","selectors","selectorCreator","createSelector","objectKeys","keys","_len3","values","_key3","reduce","composition","index","reselect","isStringOrNumber","FlatObjectCache","this","_cache","_proto","set","selectorFn","remove","clear","isValidCacheKey","cacheKey","defaultCacheCreator","defaultCacheKeyValidator","createCachedSelector","polymorphicOptions","legacyOptions","options","keySelector","assign","cache","cacheObject","keySelectorCreator","inputSelectors","cacheResponse","console","warn","getMatchingSelector","removeMatchingSelector","clearCache","validateCacheSize","cacheSize","Number","isInteger","FifoObjectCache","_temp","_cacheOrdering","_cacheSize","earliest","indexOf","splice","LruObjectCache","_registerCacheHit","_deleteCacheHit","FlatMapCache","Map","FifoMapCache","size","LruMapCache","has","createStructuredCachedSelector","default","len","arr2","arrayMap","baseGet","baseIteratee","baseMap","baseSortBy","baseUnary","compareMultiple","identity","collection","iteratees","orders","iteratee","result","other","array","predicate","resIndex","baseOrderBy","guard","arrayFilter","baseFilter","negate","baseFlatten","baseRest","isIterateeCall","sortBy","_setPrototypeOf","__proto__","arrayLikeToArray","iter","from","minLen","toString","slice","test","TypeError","comparer","sort","compareAscending","objCriteria","criteria","othCriteria","ordersLength","isSymbol","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","args","overRest","setToString","start","nativeMax","Math","max","transform","otherArgs","thisArg","_isPlaceholder","_curry1","fn","f1","_arity","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","_curry2","f2","_b","_a","_curryN","received","combined","argsIdx","left","combinedIdx","forOwn","canMutate","ownerID","getBatchToken","prepareNewObject","instance","addOwnerID","forceArray","arg","normalizePath","pathArg","split","mutableSet","mutableMerge","isDeep","_mergeObjs","baseObj","mergeObjs","forEach","mergeObj","assignValue","mutableShallowMerge","mutableDeepMerge","mutableOmit","_keys","shouldMergeKey","immutableMerge","hasChanges","nextObject","willChange","mergeValue","currentValue","recursiveMergeResult","immutableDeepMerge","immutableArrSet","newArr","copied","fastArrayCopy","mutableArrFilter","currIndex","originalIndex","mutableArrSplice","deleteCount","_vals","vals","mutableArrInsert","immutableArrSplice","immutableArrInsert","immutableOperations","merge","deepMerge","omit","keysInObj","filter","newObj","setIn","_pathArg","acc","currRef","valueInPath","pathLen","rootObj","curr","idx","currType","_newObj","pathRepr","insert","isArrayLike","mutableOperations","originalPathArg","done","immutableOps","mutableOps","batchOps","mutable","batch","batched","_token","_fn","token","immutableOpsBoundToToken","__","getImmutableOps","UPDATE","DELETE","FILTER","EXCLUDE","ALL_INSTANCES","ID_ARG_KEY_SELECTOR","_state","idArg","warnDeprecated","msg","log","m2mName","declarationModelName","fieldName","string","charAt","toUpperCase","m2mFromFieldName","m2mToFieldName","otherModelName","querySetDelegatorFactory","methodName","getQuerySet","querySetGetterDelegatorFactory","getterName","attachQuerySetMethods","modelClass","querySetClass","leftToDefine","sharedMethods","currClass","Function","getPrototypeOf","forEachSuperClass","cls","defined","getOwnPropertyDescriptor","normalizeEntity","entity","getId","ops","clauseFiltersByAttribute","type","payload","attribute","attributeValue","mapValues","entries","newObject","normalizeModelReference","modelNameOrClass","modelName","QuerySet","clauses","opts","_opts","addSharedMethod","_new","userOpts","_evaluate","rows","id","withId","toRefArray","toModelArray","ModelClass","count","exists","Boolean","at","first","last","all","lookupObj","normalizedLookupObj","filterDescriptor","exclude","excludeDescriptor","session","_evaluated","table","querySpec","query","orderBy","orderByDescriptor","update","applyUpdate","action","delete","model","_onDelete","Session","schema","db","state","withMutations","batchToken","getEmptyState","initialState","modelData","models","getModelClasses","sessionBoundModels","SessionBoundModel","Reflect","construct","connect","getDataForModel","getModelData","markAccessed","modelIds","data","accessedInstances","markFullTableScanned","fullTableScanned","markAccessedIndexes","indexes","attr","accessedIndexes","updateSpec","tx","_getTransaction","status","_markAccessedByQuery","includes","idAttribute","accessedIds","Set","row","anyClauseFilteredByPk","some","clause","add","getNextState","DefaultFieldInstaller","installForwardsDescriptor","field","createForwardsDescriptor","toModel","throughModel","installForwardsVirtualField","virtualFields","createForwardsVirtualField","installBackwardsDescriptor","backwardsFieldName","toModelName","createBackwardsDescriptor","installBackwardsVirtualField","createBackwardsVirtualField","orm","references","run","installsForwardsVirtualField","installsBackwardsDescriptor","installsBackwardsVirtualField","_toModel","_throughModel","throughModelName","getThroughModelName","getBackwardsFieldName","Field","getClass","forwardsManyToOneDescriptor","declaredToModelName","DeclaredToModel","toId","_fields","manyToManyDescriptor","declaredFromModelName","throughFields","reverse","DeclaredFromModel","ThroughModel","ThisModel","OtherModel","thisReferencingField","to","otherReferencingField","thisId","throughQs","referencedOtherIds","qs","otherModelInstance","entities","idsToAdd","existingQs","through","existingIds","idsToRemove","entitiesToDelete","entitiesToDeleteIds","unexistingIds","Attribute","getDefault","attrDescriptor","RelationalField","relatedName","as","toLowerCase","ForeignKey","declaredFieldName","ManyToMany","getThroughFields","fieldAName","fieldBName","fieldA","fields","throughModelFieldReferencing","otherModel","find","someFieldName","OneToOne","forwardsOneToOneDescriptor","fk","many","oneToOne","getByIdQuery","modelInstance","Model","_initFields","propsObj","ids","_session","QuerySetClass","invalidateClassCache","isSetUp","tableOptions","backend","userProps","m2mRelations","declaredFieldNames","declaredVirtualFieldNames","valuePassed","_refreshMany2Many","upsert","idExists","_findDatabaseRows","equals","entriesInA","objectShallowEquals","propertyName","userMergeObj","mergeKey","mergedFields","updatedModel","refreshFromState","ref","relations","normalizedNewIds","uniqueIds","fromField","toField","diffActions","sourceArr","targetArr","itemsInBoth","item","deleteItems","addItems","arrayDiffActions","idsToDelete","relatedQs","hasId","describe","DEFAULT_TABLE_OPTIONS","arrName","mapName","Table","accessId","branch","accessIds","accessIdList","accessList","getMaxId","getMeta","setMaxId","newMaxId","setMeta","nextId","meta","optimallyOrderedClauses","clauseReducesResultSetSize","reducer","remainingPayload","withoutPkAttr","filterAttr","indexAttrs","lastIndex","indexedIds","indexSet","withoutIndexAttrs","reject","convert","order","normalizeOrders","entry","workingState","_currMax","userPassedId","newMax","newId","currMax","idSequencer","finalEntry","indexesToAppendTo","fkAttr","attrIndex","created","nextIndexes","indexMap","indexedAttrs","indexIdsToAdd","indexIdsToDelete","nextMap","prevAttrValues","valueMap","mergeObjInto","nextAttrValues","nextRow","prevValue","nextValue","rowId","valueIndex","attrIndexMap","BASE_EMPTY_STATE","tables","tableName","nextTableState","resultPayload","currTableState","newTableState","replaceTableState","createDatabase","schemaSpec","tableSpecs","tableSpec","SelectorSpec","parent","_parent","_orm","cachePath","ModelBasedSelectorSpec","_model","valueForInstance","idArgSelector","MapSelectorSpec","_field","_selector","createResultFunc","parentSelector","parentResult","single","refArray","ModelSelectorSpec","FieldSelectorSpec","fieldModel","accessorName","isVirtual","_fieldModel","_accessorName","_isVirtual","ParentToModel","parentRef","parentInstance","JSON","stringify","getDatabase","createFieldSelectorSpec","fieldSelectorSpec","relatedFieldName","relatedField","fieldAccessorName","ORM_DEFAULTS","defaultCreateDatabase","RESERVED_TABLE_OPTIONS","isReservedTableOption","word","ORM","registry","implicitThroughModels","installedFields","stateSelector","register","registerManyToManyModelsFor","_setupModelPrototypes","modelSelectorSpec","createModelSelectorSpec","thisModelName","fieldInstance","selfReferencing","fromFieldName","toFieldName","Through","PlainForeignKey","ForeignKeyClass","allModels","found","generateSchemaSpec","spec","mutableSession","_isFieldInstalled","_installField","_setFieldInstalled","FieldInstaller","installerClass","getDefaultState","isOrmState","argEqualityCheck","previous","ormState","fullTableScannedModels","stateAndArgs","fullTableScannedModelsAreEqual","column","accessedIndexesAreEqual","instances","previousRows","rowsA","rowsB","accessedModelInstancesAreEqual","argsWithSession","accessedModelInstances","defaultUpdater","createReducer","updater","toORM","selectorCache","SELECTOR_KEY","for","toSelector","level","storageKey","createSelectorFromSpec","resultArg","inputFuncs","Schema","Backend"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,WAAY,GAAIH,GACG,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,IARrB,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHT,QAAS,IAUV,OANAU,EAAQH,GAAUI,KAAKV,EAAOD,QAASC,EAAQA,EAAOD,QAASM,GAG/DL,EAAOQ,GAAI,EAGJR,EAAOD,QA0Df,OArDAM,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASd,EAASe,EAAMC,GAC3CV,EAAoBW,EAAEjB,EAASe,IAClCG,OAAOC,eAAenB,EAASe,EAAM,CAAEK,YAAY,EAA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C,GAEjC,OAAOhjB,KACHimB,EAAKlpB,aACLkpB,EAAKnoB,WAFFkC,CAGL,CACEI,YAAa6lB,EAAK7lB,YAClBG,YAAa,IAAIuB,gBACjBtD,gBAAiBC,KAmEA0pB,CAAuB5f,GAIxC,OAFA0f,EAAMzoB,IAAIsoB,GAAc5pB,GAEjBA,EAEX,MAAM,IAAIb,MACL,0CAAyC0mB,KAAKC,UAC3Czb,qBACgBA,KAiFrB,SAAS9J,MAAkBmH,GAC9B,IAAKA,EAAKlL,OACN,MAAM,IAAI2C,MAAM,+CAGpB,MAAM+qB,EAAYxiB,EAAK7H,MACjBhB,EAAejB,MAAMD,QAAQ+J,EAAK,IAAMA,EAAK,GAAKA,EAElD4Q,EAAMzZ,EAAaI,IAAIyqB,IAAOxN,KAAK7I,SACnC8W,EAAatrB,EAAaI,IAAI6qB,IAEpC,GAAyB,mBAAdI,EAA0B,CACjC,IAAK5R,EACD,MAAM,IAAInZ,MACN,0IAED,IAAKmZ,EAAIwO,cACZ,MAAM,IAAI3nB,MACN,6IAED,GAAiC,mBAAtBmZ,EAAIwO,cAClB,MAAM,IAAI3nB,MACL,mIAAkI0mB,KAAKC,UACpIxN,EAAIwO,iCACYxO,EAAIwO,iBAIhC,OAAO1nB,iCACHC,QACAd,EACA+Z,EAHGlZ,CAIL,CAACkZ,EAAIwO,iBAAkBqD,GAAaD,GAG1C,GAAIA,aAAqBxD,GACrB,MAAM,IAAIvnB,MACN,kJASR,OANIgrB,EAAW3tB,QACXiG,QAAQC,KACJ,gGAIDonB,GAAWI,GC7PtB,MAAME,GH0UC,WACH,MAAM,IAAIjrB,MACN,wFG1UFkrB,GAAU,WACZ,MAAM,IAAIlrB,MACN,mKAyBOwd","file":"redux-orm.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"ReduxOrm\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReduxOrm\"] = factory();\n\telse\n\t\troot[\"ReduxOrm\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 37);\n","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inheritsLoose;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\n\nvar iterableToArray = require(\"./iterableToArray.js\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","'use strict';\n\nexports.__esModule = true;\nexports.defaultMemoize = defaultMemoize;\nexports.createSelectorCreator = createSelectorCreator;\nexports.createStructuredSelector = createStructuredSelector;\nfunction defaultEqualityCheck(a, b) {\n return a === b;\n}\n\nfunction areArgumentsShallowlyEqual(equalityCheck, prev, next) {\n if (prev === null || next === null || prev.length !== next.length) {\n return false;\n }\n\n // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.\n var length = prev.length;\n for (var i = 0; i < length; i++) {\n if (!equalityCheck(prev[i], next[i])) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction defaultMemoize(func) {\n var equalityCheck = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultEqualityCheck;\n\n var lastArgs = null;\n var lastResult = null;\n // we reference arguments instead of spreading them for performance reasons\n return function () {\n if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {\n // apply arguments instead of spreading for performance.\n lastResult = func.apply(null, arguments);\n }\n\n lastArgs = arguments;\n return lastResult;\n };\n}\n\nfunction getDependencies(funcs) {\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;\n\n if (!dependencies.every(function (dep) {\n return typeof dep === 'function';\n })) {\n var dependencyTypes = dependencies.map(function (dep) {\n return typeof dep;\n }).join(', ');\n throw new Error('Selector creators expect all input-selectors to be functions, ' + ('instead received the following types: [' + dependencyTypes + ']'));\n }\n\n return dependencies;\n}\n\nfunction createSelectorCreator(memoize) {\n for (var _len = arguments.length, memoizeOptions = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n memoizeOptions[_key - 1] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, funcs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n funcs[_key2] = arguments[_key2];\n }\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = getDependencies(funcs);\n\n var memoizedResultFunc = memoize.apply(undefined, [function () {\n recomputations++;\n // apply arguments instead of spreading for performance.\n return resultFunc.apply(null, arguments);\n }].concat(memoizeOptions));\n\n // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.\n var selector = defaultMemoize(function () {\n var params = [];\n var length = dependencies.length;\n\n for (var i = 0; i < length; i++) {\n // apply arguments instead of spreading and mutate a local list of params for performance.\n params.push(dependencies[i].apply(null, arguments));\n }\n\n // apply arguments instead of spreading for performance.\n return memoizedResultFunc.apply(null, params);\n });\n\n selector.resultFunc = resultFunc;\n selector.recomputations = function () {\n return recomputations;\n };\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n return selector;\n };\n}\n\nvar createSelector = exports.createSelector = createSelectorCreator(defaultMemoize);\n\nfunction createStructuredSelector(selectors) {\n var selectorCreator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createSelector;\n\n if (typeof selectors !== 'object') {\n throw new Error('createStructuredSelector expects first argument to be an object ' + ('where each property is a selector, instead received a ' + typeof selectors));\n }\n var objectKeys = Object.keys(selectors);\n return selectorCreator(objectKeys.map(function (key) {\n return selectors[key];\n }), function () {\n for (var _len3 = arguments.length, values = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n values[_key3] = arguments[_key3];\n }\n\n return values.reduce(function (composition, value, index) {\n composition[objectKeys[index]] = value;\n return composition;\n }, {});\n });\n}","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reselect')) :\n typeof define === 'function' && define.amd ? define(['exports', 'reselect'], factory) :\n (global = global || self, factory(global['Re-reselect'] = {}, global.Reselect));\n}(this, (function (exports, reselect) { 'use strict';\n\n function isStringOrNumber(value) {\n return typeof value === 'string' || typeof value === 'number';\n }\n\n var FlatObjectCache = /*#__PURE__*/function () {\n function FlatObjectCache() {\n this._cache = {};\n }\n\n var _proto = FlatObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FlatObjectCache;\n }();\n\n var defaultCacheCreator = FlatObjectCache;\n\n var defaultCacheKeyValidator = function defaultCacheKeyValidator() {\n return true;\n };\n\n function createCachedSelector() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return function (polymorphicOptions, legacyOptions) {\n if (legacyOptions) {\n throw new Error('[re-reselect] \"options\" as second argument is not supported anymore. Please provide an option object as single argument.');\n }\n\n var options = typeof polymorphicOptions === 'function' ? {\n keySelector: polymorphicOptions\n } : Object.assign({}, polymorphicOptions); // https://github.com/reduxjs/reselect/blob/v4.0.0/src/index.js#L54\n\n var recomputations = 0;\n var resultFunc = funcs.pop();\n var dependencies = Array.isArray(funcs[0]) ? funcs[0] : [].concat(funcs);\n\n var resultFuncWithRecomputations = function resultFuncWithRecomputations() {\n recomputations++;\n return resultFunc.apply(void 0, arguments);\n };\n\n funcs.push(resultFuncWithRecomputations);\n var cache = options.cacheObject || new defaultCacheCreator();\n var selectorCreator = options.selectorCreator || reselect.createSelector;\n var isValidCacheKey = cache.isValidCacheKey || defaultCacheKeyValidator;\n\n if (options.keySelectorCreator) {\n options.keySelector = options.keySelectorCreator({\n keySelector: options.keySelector,\n inputSelectors: dependencies,\n resultFunc: resultFunc\n });\n } // Application receives this function\n\n\n var selector = function selector() {\n var cacheKey = options.keySelector.apply(options, arguments);\n\n if (isValidCacheKey(cacheKey)) {\n var cacheResponse = cache.get(cacheKey);\n\n if (cacheResponse === undefined) {\n cacheResponse = selectorCreator.apply(void 0, funcs);\n cache.set(cacheKey, cacheResponse);\n }\n\n return cacheResponse.apply(void 0, arguments);\n }\n\n console.warn(\"[re-reselect] Invalid cache key \\\"\" + cacheKey + \"\\\" has been returned by keySelector function.\");\n return undefined;\n }; // Further selector methods\n\n\n selector.getMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments); // @NOTE It might update cache hit count in LRU-like caches\n\n return cache.get(cacheKey);\n };\n\n selector.removeMatchingSelector = function () {\n var cacheKey = options.keySelector.apply(options, arguments);\n cache.remove(cacheKey);\n };\n\n selector.clearCache = function () {\n cache.clear();\n };\n\n selector.resultFunc = resultFunc;\n selector.dependencies = dependencies;\n selector.cache = cache;\n\n selector.recomputations = function () {\n return recomputations;\n };\n\n selector.resetRecomputations = function () {\n return recomputations = 0;\n };\n\n selector.keySelector = options.keySelector;\n return selector;\n };\n }\n\n function createStructuredCachedSelector(selectors) {\n return reselect.createStructuredSelector(selectors, createCachedSelector);\n }\n\n function validateCacheSize(cacheSize) {\n if (cacheSize === undefined) {\n throw new Error('Missing the required property \"cacheSize\".');\n }\n\n if (!Number.isInteger(cacheSize) || cacheSize <= 0) {\n throw new Error('The \"cacheSize\" property must be a positive integer value.');\n }\n }\n\n var FifoObjectCache = /*#__PURE__*/function () {\n function FifoObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._cacheOrdering.push(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return FifoObjectCache;\n }();\n\n var LruObjectCache = /*#__PURE__*/function () {\n function LruObjectCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = {};\n this._cacheOrdering = [];\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruObjectCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache[key] = selectorFn;\n\n this._registerCacheHit(key);\n\n if (this._cacheOrdering.length > this._cacheSize) {\n var earliest = this._cacheOrdering[0];\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n this._registerCacheHit(key);\n\n return this._cache[key];\n };\n\n _proto.remove = function remove(key) {\n this._deleteCacheHit(key);\n\n delete this._cache[key];\n };\n\n _proto.clear = function clear() {\n this._cache = {};\n this._cacheOrdering = [];\n };\n\n _proto._registerCacheHit = function _registerCacheHit(key) {\n this._deleteCacheHit(key);\n\n this._cacheOrdering.push(key);\n };\n\n _proto._deleteCacheHit = function _deleteCacheHit(key) {\n var index = this._cacheOrdering.indexOf(key);\n\n if (index > -1) {\n this._cacheOrdering.splice(index, 1);\n }\n };\n\n _proto.isValidCacheKey = function isValidCacheKey(cacheKey) {\n return isStringOrNumber(cacheKey);\n };\n\n return LruObjectCache;\n }();\n\n var FlatMapCache = /*#__PURE__*/function () {\n function FlatMapCache() {\n this._cache = new Map();\n }\n\n var _proto = FlatMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FlatMapCache;\n }();\n\n var FifoMapCache = /*#__PURE__*/function () {\n function FifoMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = FifoMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n return this._cache.get(key);\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return FifoMapCache;\n }();\n\n var LruMapCache = /*#__PURE__*/function () {\n function LruMapCache(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n cacheSize = _ref.cacheSize;\n\n validateCacheSize(cacheSize);\n this._cache = new Map();\n this._cacheSize = cacheSize;\n }\n\n var _proto = LruMapCache.prototype;\n\n _proto.set = function set(key, selectorFn) {\n this._cache.set(key, selectorFn);\n\n if (this._cache.size > this._cacheSize) {\n var earliest = this._cache.keys().next().value;\n\n this.remove(earliest);\n }\n };\n\n _proto.get = function get(key) {\n var value = this._cache.get(key); // Register cache hit\n\n\n if (this._cache.has(key)) {\n this.remove(key);\n\n this._cache.set(key, value);\n }\n\n return value;\n };\n\n _proto.remove = function remove(key) {\n this._cache[\"delete\"](key);\n };\n\n _proto.clear = function clear() {\n this._cache.clear();\n };\n\n return LruMapCache;\n }();\n\n exports.FifoMapCache = FifoMapCache;\n exports.FifoObjectCache = FifoObjectCache;\n exports.FlatMapCache = FlatMapCache;\n exports.FlatObjectCache = FlatObjectCache;\n exports.LruMapCache = LruMapCache;\n exports.LruObjectCache = LruObjectCache;\n exports.createCachedSelector = createCachedSelector;\n exports.createStructuredCachedSelector = createStructuredCachedSelector;\n exports.default = createCachedSelector;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=index.js.map\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseOrderBy = require('./_baseOrderBy'),\n isArray = require('./isArray');\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n}\n\nmodule.exports = orderBy;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray'),\n negate = require('./negate');\n\n/**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\nfunction reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(baseIteratee(predicate, 3)));\n}\n\nmodule.exports = reject;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n}\n\nmodule.exports = negate;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","export default function _isPlaceholder(a) {\n return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;\n}","import _isPlaceholder from './_isPlaceholder.js';\n\n/**\n * Optimized internal one-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\nexport default function _curry1(fn) {\n return function f1(a) {\n if (arguments.length === 0 || _isPlaceholder(a)) {\n return f1;\n } else {\n return fn.apply(this, arguments);\n }\n };\n}","export default function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}","import _curry1 from './_curry1.js';\nimport _isPlaceholder from './_isPlaceholder.js';\n\n/**\n * Optimized internal two-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\nexport default function _curry2(fn) {\n return function f2(a, b) {\n switch (arguments.length) {\n case 0:\n return f2;\n case 1:\n return _isPlaceholder(a) ? f2 : _curry1(function (_b) {\n return fn(a, _b);\n });\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b);\n }) : fn(a, b);\n }\n };\n}","import _arity from './internal/_arity.js';\nimport _curry1 from './internal/_curry1.js';\nimport _curry2 from './internal/_curry2.js';\nimport _curryN from './internal/_curryN.js';\n\n/**\n * Returns a curried equivalent of the provided function, with the specified\n * arity. The curried function has two unusual capabilities. First, its\n * arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the\n * following are equivalent:\n *\n * - `g(1)(2)(3)`\n * - `g(1)(2, 3)`\n * - `g(1, 2)(3)`\n * - `g(1, 2, 3)`\n *\n * Secondly, the special placeholder value [`R.__`](#__) may be used to specify\n * \"gaps\", allowing partial application of any combination of arguments,\n * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),\n * the following are equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @func\n * @memberOf R\n * @since v0.5.0\n * @category Function\n * @sig Number -> (* -> a) -> (* -> a)\n * @param {Number} length The arity for the returned function.\n * @param {Function} fn The function to curry.\n * @return {Function} A new, curried function.\n * @see R.curry\n * @example\n *\n * const sumArgs = (...args) => R.sum(args);\n *\n * const curriedAddFourNumbers = R.curryN(4, sumArgs);\n * const f = curriedAddFourNumbers(1, 2);\n * const g = f(3);\n * g(4); //=> 10\n */\nvar curryN = /*#__PURE__*/_curry2(function curryN(length, fn) {\n if (length === 1) {\n return _curry1(fn);\n }\n return _arity(length, _curryN(length, [], fn));\n});\nexport default curryN;","import _arity from './_arity.js';\nimport _isPlaceholder from './_isPlaceholder.js';\n\n/**\n * Internal curryN function.\n *\n * @private\n * @category Function\n * @param {Number} length The arity of the curried function.\n * @param {Array} received An array of arguments received thus far.\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\nexport default function _curryN(length, received, fn) {\n return function () {\n var combined = [];\n var argsIdx = 0;\n var left = length;\n var combinedIdx = 0;\n while (combinedIdx < received.length || argsIdx < arguments.length) {\n var result;\n if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {\n result = received[combinedIdx];\n } else {\n result = arguments[argsIdx];\n argsIdx += 1;\n }\n combined[combinedIdx] = result;\n if (!_isPlaceholder(result)) {\n left -= 1;\n }\n combinedIdx += 1;\n }\n return left <= 0 ? fn.apply(this, combined) : _arity(left, _curryN(length, combined, fn));\n };\n}","import _curry1 from './internal/_curry1.js';\nimport curryN from './curryN.js';\n\n/**\n * Returns a curried equivalent of the provided function. The curried function\n * has two unusual capabilities. First, its arguments needn't be provided one\n * at a time. If `f` is a ternary function and `g` is `R.curry(f)`, the\n * following are equivalent:\n *\n * - `g(1)(2)(3)`\n * - `g(1)(2, 3)`\n * - `g(1, 2)(3)`\n * - `g(1, 2, 3)`\n *\n * Secondly, the special placeholder value [`R.__`](#__) may be used to specify\n * \"gaps\", allowing partial application of any combination of arguments,\n * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),\n * the following are equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Function\n * @sig (* -> a) -> (* -> a)\n * @param {Function} fn The function to curry.\n * @return {Function} A new, curried function.\n * @see R.curryN, R.partial\n * @example\n *\n * const addFourNumbers = (a, b, c, d) => a + b + c + d;\n *\n * const curriedAddFourNumbers = R.curry(addFourNumbers);\n * const f = curriedAddFourNumbers(1, 2);\n * const g = f(3);\n * g(4); //=> 10\n */\nvar curry = /*#__PURE__*/_curry1(function curry(fn) {\n return curryN(fn.length, fn);\n});\nexport default curry;","/**\n * A special placeholder value used to specify \"gaps\" within curried functions,\n * allowing partial application of any combination of arguments, regardless of\n * their positions.\n *\n * If `g` is a curried ternary function and `_` is `R.__`, the following are\n * equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2, _)(1, 3)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @name __\n * @constant\n * @memberOf R\n * @since v0.6.0\n * @category Function\n * @example\n *\n * const greet = R.replace('{name}', R.__, 'Hello, {name}!');\n * greet('Alice'); //=> 'Hello, Alice!'\n */\nexport default { '@@functional/placeholder': true };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport { curry, __ as placeholder } from 'ramda';\n\nfunction forOwn(obj, fn) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n fn(obj[key], key);\n }\n }\n}\n\nfunction isArrayLike(value) {\n return value && _typeof(value) === 'object' && typeof value.length === 'number' && value.length >= 0 && value.length % 1 === 0;\n}\n\nvar OWNER_ID_TAG = '@@_______immutableOpsOwnerID';\n\nfunction fastArrayCopy(arr) {\n var copied = new Array(arr.length);\n\n for (var i = 0; i < arr.length; i++) {\n copied[i] = arr[i];\n }\n\n return copied;\n}\n\nexport function canMutate(obj, ownerID) {\n if (!ownerID) return false;\n return obj[OWNER_ID_TAG] === ownerID;\n}\nvar newOwnerID = typeof Symbol === 'function' ? function () {\n return Symbol('ownerID');\n} : function () {\n return {};\n};\nexport var getBatchToken = newOwnerID;\n\nfunction addOwnerID(obj, ownerID) {\n Object.defineProperty(obj, OWNER_ID_TAG, {\n value: ownerID,\n configurable: true,\n enumerable: false\n });\n return obj;\n}\n\nfunction prepareNewObject(instance, ownerID) {\n if (ownerID) {\n addOwnerID(instance, ownerID);\n }\n\n return instance;\n}\n\nfunction forceArray(arg) {\n if (!(arg instanceof Array)) {\n return [arg];\n }\n\n return arg;\n}\n\nvar PATH_SEPARATOR = '.';\n\nfunction normalizePath(pathArg) {\n if (typeof pathArg === 'string') {\n if (pathArg.indexOf(PATH_SEPARATOR) === -1) {\n return [pathArg];\n }\n\n return pathArg.split(PATH_SEPARATOR);\n }\n\n return pathArg;\n}\n\nfunction mutableSet(key, value, obj) {\n obj[key] = value;\n return obj;\n}\n\nfunction mutableSetIn(_pathArg, value, obj) {\n var originalPathArg = normalizePath(_pathArg);\n var pathLen = originalPathArg.length;\n var done = false;\n var idx = 0;\n var acc = obj;\n var curr = originalPathArg[idx];\n\n while (!done) {\n if (idx === pathLen - 1) {\n acc[curr] = value;\n done = true;\n } else {\n var currType = _typeof(acc[curr]);\n\n if (currType === 'undefined') {\n var newObj = {};\n prepareNewObject(newObj, null);\n acc[curr] = newObj;\n } else if (currType !== 'object') {\n var pathRepr = \"\".concat(originalPathArg[idx - 1], \".\").concat(curr);\n throw new Error(\"A non-object value was encountered when traversing setIn path at \".concat(pathRepr, \".\"));\n }\n\n acc = acc[curr];\n idx++;\n curr = originalPathArg[idx];\n }\n }\n\n return obj;\n}\n\nfunction valueInPath(_pathArg, obj) {\n var pathArg = normalizePath(_pathArg);\n var acc = obj;\n\n for (var i = 0; i < pathArg.length; i++) {\n var curr = pathArg[i];\n var currRef = acc[curr];\n\n if (i === pathArg.length - 1) {\n return currRef;\n }\n\n if (_typeof(currRef) === 'object') {\n acc = currRef;\n } else {\n return undefined;\n }\n }\n\n return undefined;\n}\n\nfunction immutableSetIn(ownerID, _pathArg, value, obj) {\n var pathArg = normalizePath(_pathArg);\n var currentValue = valueInPath(pathArg, obj);\n if (value === currentValue) return obj;\n var pathLen = pathArg.length;\n var acc;\n\n if (canMutate(obj, ownerID)) {\n acc = obj;\n } else {\n acc = Object.assign(prepareNewObject({}, ownerID), obj);\n }\n\n var rootObj = acc;\n pathArg.forEach(function (curr, idx) {\n if (idx === pathLen - 1) {\n acc[curr] = value;\n return;\n }\n\n var currRef = acc[curr];\n\n var currType = _typeof(currRef);\n\n if (currType === 'object') {\n if (canMutate(currRef, ownerID)) {\n acc = currRef;\n } else {\n var newObj = prepareNewObject({}, ownerID);\n acc[curr] = Object.assign(newObj, currRef);\n acc = newObj;\n }\n\n return;\n }\n\n if (currType === 'undefined') {\n var _newObj = prepareNewObject({}, ownerID);\n\n acc[curr] = _newObj;\n acc = _newObj;\n return;\n }\n\n var pathRepr = \"\".concat(pathArg[idx - 1], \".\").concat(curr);\n throw new Error(\"A non-object value was encountered when traversing setIn path at \".concat(pathRepr, \".\"));\n });\n return rootObj;\n}\n\nfunction mutableMerge(isDeep, _mergeObjs, baseObj) {\n var mergeObjs = forceArray(_mergeObjs);\n\n if (isDeep) {\n mergeObjs.forEach(function (mergeObj) {\n forOwn(mergeObj, function (value, key) {\n if (isDeep && baseObj.hasOwnProperty(key)) {\n var assignValue;\n\n if (_typeof(value) === 'object') {\n assignValue = mutableMerge(isDeep, [value], baseObj[key]);\n } else {\n assignValue = value;\n }\n\n baseObj[key] = assignValue;\n } else {\n baseObj[key] = value;\n }\n });\n });\n } else {\n Object.assign.apply(Object, [baseObj].concat(_toConsumableArray(mergeObjs)));\n }\n\n return baseObj;\n}\n\nvar mutableShallowMerge = mutableMerge.bind(null, false);\nvar mutableDeepMerge = mutableMerge.bind(null, true);\n\nfunction mutableOmit(_keys, obj) {\n var keys = forceArray(_keys);\n keys.forEach(function (key) {\n delete obj[key];\n });\n return obj;\n}\n\nfunction shouldMergeKey(obj, other, key) {\n return obj[key] !== other[key];\n}\n\nfunction immutableMerge(isDeep, ownerID, _mergeObjs, obj) {\n if (canMutate(obj, ownerID)) return mutableMerge(isDeep, _mergeObjs, obj);\n var mergeObjs = forceArray(_mergeObjs);\n var hasChanges = false;\n var nextObject = obj;\n\n var willChange = function willChange() {\n if (!hasChanges) {\n hasChanges = true;\n nextObject = Object.assign({}, obj);\n prepareNewObject(nextObject, ownerID);\n }\n };\n\n mergeObjs.forEach(function (mergeObj) {\n forOwn(mergeObj, function (mergeValue, key) {\n if (isDeep && obj.hasOwnProperty(key)) {\n var currentValue = nextObject[key];\n\n if (_typeof(mergeValue) === 'object' && !(mergeValue instanceof Array)) {\n if (shouldMergeKey(nextObject, mergeObj, key)) {\n var recursiveMergeResult = immutableMerge(isDeep, ownerID, mergeValue, currentValue);\n\n if (recursiveMergeResult !== currentValue) {\n willChange();\n nextObject[key] = recursiveMergeResult;\n }\n }\n\n return true; // continue forOwn\n }\n }\n\n if (shouldMergeKey(nextObject, mergeObj, key)) {\n willChange();\n nextObject[key] = mergeValue;\n }\n\n return undefined;\n });\n });\n return nextObject;\n}\n\nvar immutableDeepMerge = immutableMerge.bind(null, true);\nvar immutableShallowMerge = immutableMerge.bind(null, false);\n\nfunction immutableArrSet(ownerID, index, value, arr) {\n if (canMutate(arr, ownerID)) return mutableSet(index, value, arr);\n if (arr[index] === value) return arr;\n var newArr = fastArrayCopy(arr);\n newArr[index] = value;\n prepareNewObject(newArr, ownerID);\n return newArr;\n}\n\nfunction immutableSet(ownerID, key, value, obj) {\n if (isArrayLike(obj)) return immutableArrSet(ownerID, key, value, obj);\n if (canMutate(obj, ownerID)) return mutableSet(key, value, obj);\n if (obj[key] === value) return obj;\n var newObj = Object.assign({}, obj);\n prepareNewObject(newObj, ownerID);\n newObj[key] = value;\n return newObj;\n}\n\nfunction immutableOmit(ownerID, _keys, obj) {\n if (canMutate(obj, ownerID)) return mutableOmit(_keys, obj);\n var keys = forceArray(_keys);\n var keysInObj = keys.filter(function (key) {\n return obj.hasOwnProperty(key);\n }); // None of the keys were in the object, so we can return `obj`.\n\n if (keysInObj.length === 0) return obj;\n var newObj = Object.assign({}, obj);\n keysInObj.forEach(function (key) {\n delete newObj[key];\n });\n prepareNewObject(newObj, ownerID);\n return newObj;\n}\n\nfunction mutableArrPush(_vals, arr) {\n var vals = forceArray(_vals);\n arr.push.apply(arr, _toConsumableArray(vals));\n return arr;\n}\n\nfunction mutableArrFilter(func, arr) {\n var currIndex = 0;\n var originalIndex = 0;\n\n while (currIndex < arr.length) {\n var item = arr[currIndex];\n\n if (!func(item, originalIndex)) {\n arr.splice(currIndex, 1);\n } else {\n currIndex++;\n }\n\n originalIndex++;\n }\n\n return arr;\n}\n\nfunction mutableArrSplice(index, deleteCount, _vals, arr) {\n var vals = forceArray(_vals);\n arr.splice.apply(arr, [index, deleteCount].concat(_toConsumableArray(vals)));\n return arr;\n}\n\nfunction mutableArrInsert(index, _vals, arr) {\n return mutableArrSplice(index, 0, _vals, arr);\n}\n\nfunction immutableArrSplice(ownerID, index, deleteCount, _vals, arr) {\n if (canMutate(arr, ownerID)) return mutableArrSplice(index, deleteCount, _vals, arr);\n var vals = forceArray(_vals);\n var newArr = arr.slice();\n prepareNewObject(newArr, ownerID);\n newArr.splice.apply(newArr, [index, deleteCount].concat(_toConsumableArray(vals)));\n return newArr;\n}\n\nfunction immutableArrInsert(ownerID, index, _vals, arr) {\n if (canMutate(arr, ownerID)) return mutableArrInsert(index, _vals, arr);\n return immutableArrSplice(ownerID, index, 0, _vals, arr);\n}\n\nfunction immutableArrPush(ownerID, vals, arr) {\n return immutableArrInsert(ownerID, arr.length, vals, arr);\n}\n\nfunction immutableArrFilter(ownerID, func, arr) {\n if (canMutate(arr, ownerID)) return mutableArrFilter(func, arr);\n var newArr = arr.filter(func);\n if (newArr.length === arr.length) return arr;\n prepareNewObject(newArr, ownerID);\n return newArr;\n}\n\nvar immutableOperations = {\n // object operations\n merge: immutableShallowMerge,\n deepMerge: immutableDeepMerge,\n omit: immutableOmit,\n setIn: immutableSetIn,\n // array operations\n insert: immutableArrInsert,\n push: immutableArrPush,\n filter: immutableArrFilter,\n splice: immutableArrSplice,\n // both\n set: immutableSet\n};\nvar mutableOperations = {\n // object operations\n merge: mutableShallowMerge,\n deepMerge: mutableDeepMerge,\n omit: mutableOmit,\n setIn: mutableSetIn,\n // array operations\n insert: mutableArrInsert,\n push: mutableArrPush,\n filter: mutableArrFilter,\n splice: mutableArrSplice,\n // both\n set: mutableSet\n};\nexport function getImmutableOps() {\n var immutableOps = Object.assign({}, immutableOperations);\n forOwn(immutableOps, function (value, key) {\n immutableOps[key] = curry(value.bind(null, null));\n });\n var mutableOps = Object.assign({}, mutableOperations);\n forOwn(mutableOps, function (value, key) {\n mutableOps[key] = curry(value);\n });\n var batchOps = Object.assign({}, immutableOperations);\n forOwn(batchOps, function (value, key) {\n batchOps[key] = curry(value);\n });\n\n function batched(_token, _fn) {\n var token;\n var fn;\n\n if (typeof _token === 'function') {\n fn = _token;\n token = getBatchToken();\n } else {\n token = _token;\n fn = _fn;\n }\n\n var immutableOpsBoundToToken = Object.assign({}, immutableOperations);\n forOwn(immutableOpsBoundToToken, function (value, key) {\n immutableOpsBoundToToken[key] = curry(value.bind(null, token));\n });\n return fn(immutableOpsBoundToToken);\n }\n\n return Object.assign(immutableOps, {\n mutable: mutableOps,\n batch: batchOps,\n batched: batched,\n __: placeholder,\n getBatchToken: getBatchToken\n });\n}\nexport var ops = getImmutableOps();\nexport default ops;","export const UPDATE = \"REDUX_ORM_UPDATE\";\nexport const DELETE = \"REDUX_ORM_DELETE\";\nexport const CREATE = \"REDUX_ORM_CREATE\";\n\nexport const FILTER = \"REDUX_ORM_FILTER\";\nexport const EXCLUDE = \"REDUX_ORM_EXCLUDE\";\nexport const ORDER_BY = \"REDUX_ORM_ORDER_BY\";\n\nexport const SUCCESS = \"SUCCESS\";\nexport const FAILURE = \"FAILURE\";\n\n// for detecting ORM state objects\nexport const STATE_FLAG = \"@@_______REDUX_ORM_STATE_FLAG\";\n\n// for caching selectors based on their ID argument\nexport const ALL_INSTANCES = Symbol(\"REDUX_ORM_ALL_INSTANCES\");\nexport const ID_ARG_KEY_SELECTOR = (_state, idArg) =>\n typeof idArg === \"undefined\" ? ALL_INSTANCES : idArg;\n","import ops from \"immutable-ops\";\nimport { FILTER, EXCLUDE } from \"./constants\";\n\n/**\n * @module utils\n * @private\n */\n\n/** @private */\nfunction warnDeprecated(msg) {\n const logger =\n typeof console.warn === \"function\"\n ? console.warn.bind(console)\n : console.log.bind(console);\n return logger(msg);\n}\n\n/** @private */\nfunction capitalize(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n/**\n * Returns the branch name for a many-to-many relation.\n * The name is the combination of the model name and the field name the relation\n * was declared. The field name's first letter is capitalized.\n *\n * Example: model `Author` has a many-to-many relation to the model `Book`, defined\n * in the `Author` field `books`. The many-to-many branch name will be `AuthorBooks`.\n *\n * @param {string} declarationModelName - the name of the model the many-to-many relation was declared on\n * @param {string} fieldName - the field name where the many-to-many relation was declared on\n * @return {string} The branch name for the many-to-many relation.\n */\nfunction m2mName(declarationModelName, fieldName) {\n return declarationModelName + capitalize(fieldName);\n}\n\n/**\n * Returns the fieldname that saves a foreign key to the\n * model id where the many-to-many relation was declared.\n *\n * Example: `Author` => `fromAuthorId`\n *\n * @param {string} declarationModelName - the name of the model where the relation was declared\n * @return {string} the field name in the through model for `declarationModelName`'s foreign key.\n */\nfunction m2mFromFieldName(declarationModelName) {\n return `from${declarationModelName}Id`;\n}\n\n/**\n * Returns the fieldname that saves a foreign key in a many-to-many through model to the\n * model where the many-to-many relation was declared.\n *\n * Example: `Book` => `toBookId`\n *\n * @param {string} otherModelName - the name of the model that was the target of the many-to-many\n * declaration.\n * @return {string} the field name in the through model for `otherModelName`'s foreign key..\n */\nfunction m2mToFieldName(otherModelName) {\n return `to${otherModelName}Id`;\n}\n\n/** */\nfunction reverseFieldName(modelName) {\n return modelName.toLowerCase() + \"Set\"; // eslint-disable-line prefer-template\n}\n\n/** @private */\nfunction querySetDelegatorFactory(methodName) {\n return function querySetDelegator(...args) {\n return this.getQuerySet()[methodName](...args);\n };\n}\n\n/** @private */\nfunction querySetGetterDelegatorFactory(getterName) {\n return function querySetGetterDelegator() {\n const qs = this.getQuerySet();\n return qs[getterName];\n };\n}\n\n/** @private */\nfunction forEachSuperClass(subClass, func) {\n let currClass = subClass;\n while (currClass !== Function.prototype) {\n func(currClass);\n currClass = Object.getPrototypeOf(currClass);\n }\n}\n\n/** */\nfunction attachQuerySetMethods(modelClass, querySetClass) {\n const leftToDefine = querySetClass.sharedMethods.slice();\n\n // There is no way to get a property descriptor for the whole prototype chain;\n // only from an objects own properties. Therefore we traverse the whole prototype\n // chain for querySet.\n forEachSuperClass(querySetClass, (cls) => {\n for (let i = 0; i < leftToDefine.length; i++) {\n let defined = false;\n const methodName = leftToDefine[i];\n const descriptor = Object.getOwnPropertyDescriptor(\n cls.prototype,\n methodName\n );\n if (typeof descriptor !== \"undefined\") {\n if (typeof descriptor.get !== \"undefined\") {\n descriptor.get = querySetGetterDelegatorFactory(methodName);\n Object.defineProperty(modelClass, methodName, descriptor);\n } else {\n modelClass[methodName] = querySetDelegatorFactory(\n methodName\n );\n }\n defined = true;\n }\n if (defined) {\n leftToDefine.splice(i--, 1);\n }\n }\n });\n}\n\n/**\n * Normalizes `entity` to an id, where `entity` can be an id\n * or a Model instance.\n *\n * @param {*} entity - either a Model instance or an id value\n * @return {*} the id value of `entity`\n */\nfunction normalizeEntity(entity) {\n if (\n entity !== null &&\n typeof entity !== \"undefined\" &&\n typeof entity.getId === \"function\"\n ) {\n return entity.getId();\n }\n return entity;\n}\n\n/** */\nfunction reverseFieldErrorMessage(\n modelName,\n fieldName,\n toModelName,\n backwardsFieldName\n) {\n return [\n `Reverse field ${backwardsFieldName} already defined`,\n ` on model ${toModelName}. To fix, set a custom related`,\n ` name on ${modelName}.${fieldName}.`,\n ].join(\"\");\n}\n\n/**\n * Fastest way to check if two objects are equal.\n * Object and array values have to be referentially equal.\n */\nfunction objectShallowEquals(a, b) {\n const entriesInA = Object.entries(Object(a));\n\n if (entriesInA.length !== Object.keys(b).length) {\n return false;\n }\n\n return entriesInA.every(\n ([key, value]) => b.hasOwnProperty(key) && b[key] === value\n );\n}\n\n/** */\nfunction arrayDiffActions(sourceArr, targetArr) {\n const itemsInBoth = sourceArr.filter((item) => targetArr.includes(item));\n const deleteItems = sourceArr.filter((item) => !itemsInBoth.includes(item));\n const addItems = targetArr.filter((item) => !itemsInBoth.includes(item));\n\n if (deleteItems.length || addItems.length) {\n return {\n delete: deleteItems,\n add: addItems,\n };\n }\n return null;\n}\n\nconst { getBatchToken } = ops;\n\n/**\n * @return boolean\n */\nfunction clauseFiltersByAttribute({ type, payload }, attribute) {\n if (type !== FILTER) return false;\n\n if (typeof payload !== \"object\") {\n /**\n * payload could also be a function in which case\n * we would have no way of knowing what it does,\n * so we default to false for non-objects\n */\n return false;\n }\n\n if (!payload.hasOwnProperty(attribute)) return false;\n const attributeValue = payload[attribute];\n if (attributeValue === null) return false;\n if (attributeValue === undefined) return false;\n\n return true;\n}\n\n/**\n * @return boolean\n */\nfunction clauseReducesResultSetSize({ type }) {\n return [FILTER, EXCLUDE].includes(type);\n}\n\n/**\n * @param {Object} object\n * @return Object\n */\nfunction mapValues(object, func) {\n return Object.entries(object).reduce((newObject, [key, value]) => {\n newObject[key] = func(value);\n return newObject;\n }, {});\n}\n\n/** */\nfunction normalizeModelReference(modelNameOrClass) {\n if (!modelNameOrClass || typeof modelNameOrClass === \"string\") {\n return modelNameOrClass;\n }\n return modelNameOrClass.modelName;\n}\n\nexport {\n attachQuerySetMethods,\n m2mName,\n m2mFromFieldName,\n m2mToFieldName,\n reverseFieldName,\n normalizeEntity,\n reverseFieldErrorMessage,\n objectShallowEquals,\n ops,\n arrayDiffActions,\n getBatchToken,\n clauseFiltersByAttribute,\n clauseReducesResultSetSize,\n warnDeprecated,\n mapValues,\n normalizeModelReference,\n};\n","import { normalizeEntity, warnDeprecated, mapValues } from \"./utils\";\n\nimport { UPDATE, DELETE, FILTER, EXCLUDE, ORDER_BY } from \"./constants\";\n\n/**\n * This class is used to build and make queries to the database\n * and operating the resulting set (such as updating attributes\n * or deleting the records).\n *\n * The queries are built lazily. For example:\n *\n * ```javascript\n * const qs = Book.all()\n * .filter(book => book.releaseYear > 1999)\n * .orderBy('name');\n * ```\n *\n * Doesn't execute a query. The query is executed only when\n * you need information from the query result, such as {@link QuerySet#count},\n * {@link QuerySet#toRefArray}. After the query is executed, the resulting\n * set is cached in the QuerySet instance.\n *\n * QuerySet instances also return copies, so chaining filters doesn't\n * mutate the previous instances.\n */\nconst QuerySet = class QuerySet {\n /**\n * Creates a QuerySet. The constructor is mainly for internal use;\n * You should access QuerySet instances from {@link Model}.\n *\n * @param {Model} modelClass - the model class of objects in this QuerySet.\n * @param {any[]} clauses - query clauses needed to evaluate the set.\n * @param {Object} [opts] - additional options\n */\n constructor(modelClass, clauses, opts) {\n Object.assign(this, {\n modelClass,\n clauses: clauses || [],\n });\n\n this._opts = opts;\n }\n\n static addSharedMethod(methodName) {\n this.sharedMethods = this.sharedMethods.concat(methodName);\n }\n\n _new(clauses, userOpts) {\n const opts = { ...this._opts, ...userOpts };\n return new this.constructor(this.modelClass, clauses, opts);\n }\n\n toString() {\n this._evaluate();\n const contents = this.rows\n .map(({ id }) => this.modelClass.withId(id).toString())\n .join(\"\\n - \");\n return `QuerySet contents:\\n - ${contents}`;\n }\n\n /**\n * Returns an array of the plain objects represented by the QuerySet.\n * The plain objects are direct references to the store.\n *\n * @return {Object[]} references to the plain JS objects represented by\n * the QuerySet\n */\n toRefArray() {\n return this._evaluate();\n }\n\n /**\n * Returns an array of {@link Model} instances represented by the QuerySet.\n * @return {Model[]} model instances represented by the QuerySet\n */\n toModelArray() {\n const { modelClass: ModelClass } = this;\n return this._evaluate().map((props) => new ModelClass(props));\n }\n\n /**\n * Returns the number of {@link Model} instances represented by the QuerySet.\n *\n * @return {number} length of the QuerySet\n */\n count() {\n this._evaluate();\n return this.rows.length;\n }\n\n /**\n * Checks if the {@link QuerySet} instance has any records matching the query\n * in the database.\n *\n * @return {Boolean} `true` if the {@link QuerySet} instance contains entities, else `false`.\n */\n exists() {\n return Boolean(this.count());\n }\n\n /**\n * Returns the {@link Model} instance at index `index` in the {@link QuerySet} instance if\n * `withRefs` flag is set to `false`, or a reference to the plain JavaScript\n * object in the model state if `true`.\n *\n * @param {number} index - index of the model instance to get\n * @return {Model|undefined} a {@link Model} instance at index\n * `index` in the {@link QuerySet} instance,\n * or undefined if the index is out of bounds.\n */\n at(index) {\n const { modelClass: ModelClass } = this;\n\n const rows = this._evaluate();\n if (index >= 0 && index < rows.length) {\n return new ModelClass(rows[index]);\n }\n\n return undefined;\n }\n\n /**\n * Returns the {@link Model} instance at index 0 in the {@link QuerySet} instance.\n * @return {Model}\n */\n first() {\n return this.at(0);\n }\n\n /**\n * Returns the {@link Model} instance at index `QuerySet.count() - 1`\n * @return {Model}\n */\n last() {\n const rows = this._evaluate();\n return this.at(rows.length - 1);\n }\n\n /**\n * Returns a new {@link QuerySet} instance with the same entities.\n * @return {QuerySet} a new QuerySet with the same entities.\n */\n all() {\n return this._new(this.clauses);\n }\n\n /**\n * Returns a new {@link QuerySet} instance with entities that match properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to match objects with. Can also be a function.\n * It works the same as [Lodash filter](https://lodash.com/docs/#filter).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that passed the filter.\n */\n filter(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj =\n typeof lookupObj === \"object\"\n ? mapValues(lookupObj, normalizeEntity)\n : lookupObj;\n\n const filterDescriptor = {\n type: FILTER,\n payload: normalizedLookupObj,\n };\n /**\n * create a new QuerySet\n * including only rows matching the lookupObj\n */\n return this._new(this.clauses.concat(filterDescriptor));\n }\n\n /**\n * Returns a new {@link QuerySet} instance with entities that do not match\n * properties in `lookupObj`.\n *\n * @param {Object} lookupObj - the properties to unmatch objects with. Can also be a function.\n * It works the same as [Lodash reject](https://lodash.com/docs/#reject).\n * @return {QuerySet} a new {@link QuerySet} instance with objects that did not pass the filter.\n */\n exclude(lookupObj) {\n /**\n * allow foreign keys to be specified as model instances,\n * transform model instances to their primary keys\n */\n const normalizedLookupObj =\n typeof lookupObj === \"object\"\n ? mapValues(lookupObj, normalizeEntity)\n : lookupObj;\n const excludeDescriptor = {\n type: EXCLUDE,\n payload: normalizedLookupObj,\n };\n\n /**\n * create a new QuerySet\n * excluding all rows matching the lookupObj\n */\n return this._new(this.clauses.concat(excludeDescriptor));\n }\n\n /**\n * Performs the actual database query.\n * @private\n * @return {Array} rows corresponding to the QuerySet's clauses\n */\n _evaluate() {\n if (typeof this.modelClass.session === \"undefined\") {\n throw new Error(\n [\n `Tried to query the ${this.modelClass.modelName} model's table without a session. `,\n \"Create a session using `session = orm.session()` and use \",\n `\\`session[\"${this.modelClass.modelName}\"]\\` for querying instead.`,\n ].join(\"\")\n );\n }\n if (!this._evaluated) {\n const { session, modelName: table } = this.modelClass;\n const querySpec = {\n table,\n clauses: this.clauses,\n };\n this.rows = session.query(querySpec).rows;\n this._evaluated = true;\n }\n return this.rows;\n }\n\n /**\n * Returns a new {@link QuerySet} instance with entities ordered by `iteratees` in ascending\n * order, unless otherwise specified. Delegates to [Lodash orderBy](https://lodash.com/docs/#orderBy).\n *\n * @param {string[]|Function[]} iteratees - an array where each item can be a string or a\n * function. If a string is supplied, it should\n * correspond to property on the entity that will\n * determine the order. If a function is supplied,\n * it should return the value to order by.\n * @param {Array} [orders] - the sort orders of `iteratees`. If unspecified, all iteratees\n * will be sorted in ascending order. `true` and `'asc'`\n * correspond to ascending order, and `false` and `'desc'`\n * to descending order.\n * @return {QuerySet} a new {@link QuerySet} with objects ordered by `iteratees`.\n */\n orderBy(iteratees, orders) {\n const orderByDescriptor = {\n type: ORDER_BY,\n payload: [iteratees, orders],\n };\n\n /**\n * create a new QuerySet\n * sorting all rows according to the passed arguments\n */\n return this._new(this.clauses.concat(orderByDescriptor));\n }\n\n /**\n * Records an update specified with `mergeObj` to all the objects\n * in the {@link QuerySet} instance.\n *\n * @param {Object} mergeObj - an object to merge with all the objects in this\n * queryset.\n * @return {undefined}\n */\n update(mergeObj) {\n const { session, modelName: table } = this.modelClass;\n\n session.applyUpdate({\n action: UPDATE,\n query: {\n table,\n clauses: this.clauses,\n },\n payload: mergeObj,\n });\n\n this._evaluated = false;\n }\n\n /**\n * Records a deletion of all the objects in this {@link QuerySet} instance.\n * @return {undefined}\n */\n delete() {\n const { session, modelName: table } = this.modelClass;\n\n this.toModelArray().forEach(\n (model) => model._onDelete() // eslint-disable-line no-underscore-dangle\n );\n\n session.applyUpdate({\n action: DELETE,\n query: {\n table,\n clauses: this.clauses,\n },\n });\n\n this._evaluated = false;\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated\n * Use {@link QuerySet#toModelArray} or predicate functions that\n * instantiate Models from refs, e.g. `new Model(ref)`.\n */\n get withModels() {\n throw new Error(\n \"`QuerySet.prototype.withModels` has been removed. \" +\n \"Use `.toModelArray()` or predicate functions that \" +\n \"instantiate Models from refs, e.g. `new Model(ref)`.\"\n );\n }\n\n /**\n * @deprecated Query building operates on refs only now.\n */\n get withRefs() {\n warnDeprecated(\n \"`QuerySet.prototype.withRefs` has been deprecated. \" +\n \"Query building operates on refs only now.\"\n );\n return undefined;\n }\n\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to map.\n */\n map() {\n throw new Error(\n \"`QuerySet.prototype.map` has been removed. \" +\n \"Call `.toModelArray()` or `.toRefArray()` first to map.\"\n );\n }\n\n /**\n * @deprecated\n * Call {@link QuerySet#toModelArray} or {@link QuerySet#toRefArray} first to iterate.\n */\n forEach() {\n throw new Error(\n \"`QuerySet.prototype.forEach` has been removed. \" +\n \"Call `.toModelArray()` or `.toRefArray()` first to iterate.\"\n );\n }\n};\n\nQuerySet.sharedMethods = [\n \"count\",\n \"at\",\n \"all\",\n \"last\",\n \"first\",\n \"filter\",\n \"exclude\",\n \"orderBy\",\n \"update\",\n \"delete\",\n];\n\nexport default QuerySet;\n","import { getBatchToken } from \"immutable-ops\";\n\nimport { SUCCESS, UPDATE, DELETE } from \"./constants\";\nimport { warnDeprecated, clauseFiltersByAttribute } from \"./utils\";\n\nconst Session = class Session {\n /**\n * Creates a new Session.\n *\n * @param {Database} db - a {@link Database} instance\n * @param {Object} state - the database state\n * @param {Boolean} [withMutations] - whether the session should mutate data\n * @param {Object} [batchToken] - used by the backend to identify objects that can be\n * mutated.\n */\n constructor(schema, db, state, withMutations, batchToken) {\n this.schema = schema;\n this.db = db;\n this.state = state || db.getEmptyState();\n this.initialState = this.state;\n\n this.withMutations = Boolean(withMutations);\n this.batchToken = batchToken || getBatchToken();\n\n this.modelData = {};\n\n this.models = schema.getModelClasses();\n\n this.sessionBoundModels = this.models.map((modelClass) => {\n function SessionBoundModel() {\n return Reflect.construct(\n modelClass,\n arguments,\n SessionBoundModel\n ); // eslint-disable-line prefer-rest-params\n }\n Reflect.setPrototypeOf(\n SessionBoundModel.prototype,\n modelClass.prototype\n );\n Reflect.setPrototypeOf(SessionBoundModel, modelClass);\n\n Object.defineProperty(this, modelClass.modelName, {\n get: () => SessionBoundModel,\n });\n\n SessionBoundModel.connect(this);\n return SessionBoundModel;\n });\n }\n\n getDataForModel(modelName) {\n if (!this.modelData[modelName]) {\n this.modelData[modelName] = {};\n }\n return this.modelData[modelName];\n }\n\n getModelData() {\n return this.modelData;\n }\n\n markAccessed(modelName, modelIds) {\n const data = this.getDataForModel(modelName);\n if (!data.accessedInstances) {\n data.accessedInstances = {};\n }\n modelIds.forEach((id) => {\n data.accessedInstances[id] = true;\n });\n }\n\n get accessedModelInstances() {\n return Object.entries(this.getModelData()).reduce(\n (result, [key, value]) => {\n if (value.accessedInstances) {\n result[key] = value.accessedInstances;\n }\n return result;\n },\n {}\n );\n }\n\n markFullTableScanned(modelName) {\n const data = this.getDataForModel(modelName);\n data.fullTableScanned = true;\n }\n\n get fullTableScannedModels() {\n return Object.entries(this.getModelData()).reduce(\n (result, [key, value]) => {\n if (value.fullTableScanned) {\n result.push(key);\n }\n return result;\n },\n []\n );\n }\n\n markAccessedIndexes(indexes) {\n indexes.forEach(([table, attr, value]) => {\n const data = this.getDataForModel(table);\n if (!data.accessedIndexes) {\n data.accessedIndexes = {};\n }\n data.accessedIndexes[attr] = [\n ...(data.accessedIndexes[attr] || []),\n value,\n ];\n });\n }\n\n get accessedIndexes() {\n return Object.entries(this.getModelData()).reduce(\n (result, [key, value]) => {\n if (value.accessedIndexes) {\n result[key] = value.accessedIndexes;\n }\n return result;\n },\n {}\n );\n }\n\n /**\n * Applies update to a model state.\n *\n * @private\n * @param {Object} update - the update object. Must have keys\n * `type`, `payload`.\n */\n applyUpdate(updateSpec) {\n const tx = this._getTransaction(updateSpec);\n const result = this.db.update(updateSpec, tx, this.state);\n const { status, state, payload } = result;\n\n if (status !== SUCCESS) {\n throw new Error(\n `Applying update failed with status ${status}. Payload: ${payload}`\n );\n }\n\n this.state = state;\n\n return payload;\n }\n\n query(querySpec) {\n const result = this.db.query(querySpec, this.state);\n\n this._markAccessedByQuery(querySpec, result);\n\n return result;\n }\n\n _getTransaction(updateSpec) {\n const { withMutations } = this;\n const { action } = updateSpec;\n let { batchToken } = this;\n if ([UPDATE, DELETE].includes(action)) {\n batchToken = getBatchToken();\n }\n return { batchToken, withMutations };\n }\n\n _markAccessedByQuery(querySpec, result) {\n const { table, clauses } = querySpec;\n const { rows } = result;\n\n const { idAttribute } = this[table];\n const accessedIds = new Set(rows.map((row) => row[idAttribute]));\n\n const anyClauseFilteredByPk = clauses.some((clause) => {\n if (!clauseFiltersByAttribute(clause, idAttribute)) {\n return false;\n }\n /**\n * We previously knew which row we wanted to access,\n * so there was no need to scan the entire table.\n */\n accessedIds.add(clause.payload[idAttribute]);\n return true;\n });\n\n const accessedIndexes = [];\n const { indexes } = this.state[table];\n clauses.forEach((clause) => {\n Object.keys(indexes).forEach((attr) => {\n if (!clauseFiltersByAttribute(clause, attr)) {\n return;\n }\n const value = clause.payload[attr];\n accessedIndexes.push([table, attr, value]);\n });\n });\n\n if (anyClauseFilteredByPk) {\n /**\n * The clauses have been ordered so that an indexed one was\n * the first to have been evaluated, and thus only the row\n * with the specified PK value has actually been accessed.\n */\n this.markAccessed(table, accessedIds);\n } else if (accessedIndexes.length) {\n /**\n * At least one clause was optimized using indexes.\n */\n this.markAccessed(table, accessedIds);\n this.markAccessedIndexes(accessedIndexes);\n } else {\n /**\n * At least one clause could not be efficiently optimized\n * or no clause was specified at all.\n */\n this.markFullTableScanned(table);\n }\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Access {@link Session#state} instead.\n */\n getNextState() {\n warnDeprecated(\n \"`Session.prototype.getNextState` has been deprecated. Access \" +\n \"the `Session.prototype.state` property instead.\"\n );\n return this.state;\n }\n\n /**\n * @deprecated\n * The Redux integration API is now decoupled from ORM and Session.
\n * See the 0.9 migration guide in the GitHub repo.\n */\n reduce() {\n throw new Error(\n \"`Session.prototype.reduce` has been removed. The Redux integration API \" +\n \"is now decoupled from ORM and Session - see the 0.9 migration guide \" +\n \"in the GitHub repo.\"\n );\n }\n};\n\nexport default Session;\n","import FieldInstallerTemplate from \"./FieldInstallerTemplate\";\n\nimport { reverseFieldErrorMessage } from \"../utils\";\n\n/**\n * Default implementation for the template method in FieldInstallerTemplate.\n * @private\n * @memberof module:fields\n */\nexport class DefaultFieldInstaller extends FieldInstallerTemplate {\n installForwardsDescriptor() {\n Object.defineProperty(\n this.model.prototype,\n this.fieldName,\n this.field.createForwardsDescriptor(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n )\n );\n }\n\n installForwardsVirtualField() {\n this.model.virtualFields[\n this.fieldName\n ] = this.field.createForwardsVirtualField(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n );\n }\n\n installBackwardsDescriptor() {\n const backwardsDescriptor = Object.getOwnPropertyDescriptor(\n this.toModel.prototype,\n this.backwardsFieldName\n );\n if (backwardsDescriptor) {\n throw new Error(\n reverseFieldErrorMessage(\n this.model.modelName,\n this.fieldName,\n this.toModel.modelName,\n this.backwardsFieldName\n )\n );\n }\n\n // install backwards descriptor\n Object.defineProperty(\n this.toModel.prototype,\n this.backwardsFieldName,\n this.field.createBackwardsDescriptor(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n )\n );\n }\n\n installBackwardsVirtualField() {\n this.toModel.virtualFields[\n this.backwardsFieldName\n ] = this.field.createBackwardsVirtualField(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n );\n }\n}\n\nexport default DefaultFieldInstaller;\n","/**\n * Defines algorithm for installing a field onto a model and related models.\n * Conforms to the template method behavioral design pattern.\n * @private\n * @memberof module:fields\n */\nexport class FieldInstallerTemplate {\n constructor(opts) {\n this.field = opts.field;\n this.fieldName = opts.fieldName;\n this.model = opts.model;\n this.orm = opts.orm;\n /**\n * the field itself has no knowledge of the model\n * it is being installed upon; we need to inform it\n * that it is a self-referencing field for the field\n * to be able to make better informed decisions\n */\n if (this.field.references(this.model)) {\n this.field.toModelName = \"this\";\n }\n }\n\n get toModel() {\n if (typeof this._toModel === \"undefined\") {\n const { toModelName } = this.field;\n if (!toModelName) {\n this._toModel = null;\n } else if (toModelName === \"this\") {\n this._toModel = this.model;\n } else {\n this._toModel = this.orm.get(toModelName);\n }\n }\n return this._toModel;\n }\n\n get throughModel() {\n if (typeof this._throughModel === \"undefined\") {\n const throughModelName = this.field.getThroughModelName(\n this.fieldName,\n this.model\n );\n if (!throughModelName) {\n this._throughModel = null;\n } else {\n this._throughModel = this.orm.get(throughModelName);\n }\n }\n return this._throughModel;\n }\n\n get backwardsFieldName() {\n return this.field.getBackwardsFieldName(this.model);\n }\n\n run() {\n this.installForwardsDescriptor();\n if (this.field.installsForwardsVirtualField) {\n this.installForwardsVirtualField();\n }\n /**\n * Install a backwards field on a model as a consequence\n * of having installed the forwards field on another model.\n */\n if (this.field.installsBackwardsDescriptor) {\n this.installBackwardsDescriptor();\n }\n if (this.field.installsBackwardsVirtualField) {\n this.installBackwardsVirtualField();\n }\n }\n}\n\nexport default FieldInstallerTemplate;\n","import DefaultFieldInstaller from \"./DefaultFieldInstaller\";\n\n/**\n * @private\n * @memberof module:fields\n */\nexport class Field {\n get installerClass() {\n return DefaultFieldInstaller;\n }\n\n getClass() {\n return this.constructor;\n }\n\n references(model) {\n return false;\n }\n\n getThroughModelName(fieldName, model) {\n return null;\n }\n\n get installsForwardsVirtualField() {\n return false;\n }\n\n get installsBackwardsDescriptor() {\n return false;\n }\n\n get installsBackwardsVirtualField() {\n return false;\n }\n\n get index() {\n return false;\n }\n}\n\nexport default Field;\n","import { normalizeEntity } from \"./utils\";\n\n/**\n * The functions in this file return custom JS property descriptors\n * that are supposed to be assigned to Model fields.\n *\n * Some include the logic to look up models using foreign keys and\n * to add or remove relationships between models.\n *\n * @module descriptors\n * @private\n */\n\n/**\n * Defines a basic non-key attribute.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n */\nfunction attrDescriptor(fieldName) {\n return {\n get() {\n return this._fields[fieldName];\n },\n\n set(value) {\n return this.set(fieldName, value);\n },\n\n enumerable: true,\n configurable: true,\n };\n}\n\n/**\n * Forwards direction of a Foreign Key: returns one object.\n * Also works as {@link .forwardsOneToOneDescriptor|forwardsOneToOneDescriptor}.\n *\n * For `book.author` referencing an `Author` model instance,\n * `fieldName` would be `'author'` and `declaredToModelName` would be `'Author'`.\n * @param {string} fieldName - the name of the field the descriptor will be assigned to.\n * @param {string} declaredToModelName - the name of the model that the field references.\n */\nfunction forwardsManyToOneDescriptor(fieldName, declaredToModelName) {\n return {\n get() {\n const {\n session: { [declaredToModelName]: DeclaredToModel },\n } = this.getClass();\n const { [fieldName]: toId } = this._fields;\n\n return DeclaredToModel.withId(toId);\n },\n set(value) {\n this.update({\n [fieldName]: normalizeEntity(value),\n });\n },\n };\n}\n\n/**\n * Dereferencing foreign keys in {@link module:fields.oneToOne|oneToOne}\n * relationships works the same way as in many-to-one relationships:\n * just look up the related model.\n *\n * For example, a human face tends to have a single nose.\n * So if we want to resolve `face.nose`, we need to\n * look up the `Nose` that has the primary key that `face` references.\n *\n * @see {@link module:descriptors~forwardsManyToOneDescriptor|forwardsManyToOneDescriptor}\n */\nfunction forwardsOneToOneDescriptor(...args) {\n return forwardsManyToOneDescriptor(...args);\n}\n\n/**\n * Here we resolve 1-to-1 relationships starting at the model on which the\n * field was not installed. This means we need to find the instance of the\n * other model whose {@link module:fields.oneToOne|oneToOne} FK field contains the current model's primary key.\n *\n * @param {string} declaredFieldName - the name of the field referencing the current model.\n * @param {string} declaredFromModelName - the name of the other model.\n */\nfunction backwardsOneToOneDescriptor(declaredFieldName, declaredFromModelName) {\n return {\n get() {\n const {\n session: { [declaredFromModelName]: DeclaredFromModel },\n } = this.getClass();\n\n return DeclaredFromModel.get({\n [declaredFieldName]: this.getId(),\n });\n },\n set() {\n throw new Error(\"Can't mutate a reverse one-to-one relation.\");\n },\n };\n}\n\n/**\n * The backwards direction of a n-to-1 relationship (i.e. 1-to-n),\n * meaning this will return an a collection (`QuerySet`) of model instances.\n *\n * An example would be `author.books` referencing all instances of\n * the `Book` model that reference the author using `fk()`.\n */\nfunction backwardsManyToOneDescriptor(\n declaredFieldName,\n declaredFromModelName\n) {\n return {\n get() {\n const {\n session: { [declaredFromModelName]: DeclaredFromModel },\n } = this.getClass();\n\n return DeclaredFromModel.filter({\n [declaredFieldName]: this.getId(),\n });\n },\n set() {\n throw new Error(\"Can't mutate a reverse many-to-one relation.\");\n },\n };\n}\n\n/**\n * This descriptor is assigned to both sides of a many-to-many relationship.\n * To indicate the backwards direction pass `true` for `reverse`.\n */\nfunction manyToManyDescriptor(\n declaredFromModelName,\n declaredToModelName,\n throughModelName,\n throughFields,\n reverse\n) {\n return {\n get() {\n const {\n session: {\n [declaredFromModelName]: DeclaredFromModel,\n [declaredToModelName]: DeclaredToModel,\n [throughModelName]: ThroughModel,\n },\n } = this.getClass();\n\n const ThisModel = reverse ? DeclaredToModel : DeclaredFromModel;\n const OtherModel = reverse ? DeclaredFromModel : DeclaredToModel;\n\n const thisReferencingField = reverse\n ? throughFields.to\n : throughFields.from;\n const otherReferencingField = reverse\n ? throughFields.from\n : throughFields.to;\n\n const thisId = this.getId();\n\n const throughQs = ThroughModel.filter({\n [thisReferencingField]: thisId,\n });\n\n /**\n * all IDs of instances of the other model that are\n * referenced by any instance of the current model\n */\n const referencedOtherIds = new Set(\n throughQs.toRefArray().map((obj) => obj[otherReferencingField])\n );\n\n /**\n * selects all instances of other model that are referenced\n * by any instance of the current model\n */\n const qs = OtherModel.filter((otherModelInstance) =>\n referencedOtherIds.has(\n otherModelInstance[OtherModel.idAttribute]\n )\n );\n\n /**\n * Allows adding OtherModel instances to be referenced by the current instance.\n *\n * E.g. Book.first().authors.add(1, 2) would add the authors with IDs 1 and 2\n * to the first book's list of referenced authors.\n *\n * @return undefined\n */\n qs.add = function add(...entities) {\n const idsToAdd = new Set(entities.map(normalizeEntity));\n\n const existingQs = throughQs.filter((through) =>\n idsToAdd.has(through[otherReferencingField])\n );\n\n if (existingQs.exists()) {\n const existingIds = existingQs\n .toRefArray()\n .map((through) => through[otherReferencingField]);\n\n throw new Error(\n `Tried to add already existing ${OtherModel.modelName} id(s) ${existingIds} to the ${ThisModel.modelName} instance with id ${thisId}`\n );\n }\n\n idsToAdd.forEach((id) => {\n ThroughModel.create({\n [otherReferencingField]: id,\n [thisReferencingField]: thisId,\n });\n });\n };\n\n /**\n * Removes references to all OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.clear() would cause the first book's list\n * of referenced authors to become empty.\n *\n * @return undefined\n */\n qs.clear = function clear() {\n throughQs.delete();\n };\n\n /**\n * Removes references to all passed OtherModel instances from the current model.\n *\n * E.g. Book.first().authors.remove(1, 2) would cause the authors with\n * IDs 1 and 2 to no longer be referenced by the first book.\n *\n * @return undefined\n */\n qs.remove = function remove(...entities) {\n const idsToRemove = new Set(entities.map(normalizeEntity));\n\n const entitiesToDelete = throughQs.filter((through) =>\n idsToRemove.has(through[otherReferencingField])\n );\n\n if (entitiesToDelete.count() !== idsToRemove.size) {\n // Tried deleting non-existing entities.\n const entitiesToDeleteIds = entitiesToDelete\n .toRefArray()\n .map((through) => through[otherReferencingField]);\n\n const unexistingIds = [...idsToRemove].filter(\n (id) => !entitiesToDeleteIds.includes(id)\n );\n\n throw new Error(\n `Tried to delete non-existing ${OtherModel.modelName} id(s) ${unexistingIds} from the ${ThisModel.modelName} instance with id ${thisId}`\n );\n }\n\n entitiesToDelete.delete();\n };\n\n return qs;\n },\n\n set() {\n throw new Error(\n \"Tried setting a M2M field. Please use the related QuerySet methods add, remove and clear.\"\n );\n },\n };\n}\n\nexport {\n attrDescriptor,\n forwardsManyToOneDescriptor,\n forwardsOneToOneDescriptor,\n backwardsOneToOneDescriptor,\n backwardsManyToOneDescriptor,\n manyToManyDescriptor,\n};\n","import Field from \"./Field\";\n\nimport { attrDescriptor } from \"../descriptors\";\n\n/**\n * @memberof module:fields\n */\nexport class Attribute extends Field {\n constructor(opts) {\n super();\n this.opts = opts || {};\n\n if (this.opts.hasOwnProperty(\"getDefault\")) {\n this.getDefault = this.opts.getDefault;\n }\n }\n\n createForwardsDescriptor(fieldName, model) {\n return attrDescriptor(fieldName);\n }\n}\n\nexport default Attribute;\n","/* eslint-disable max-classes-per-file */\nimport Field from \"./Field\";\nimport DefaultFieldInstaller from \"./DefaultFieldInstaller\";\n\nimport { reverseFieldName, normalizeModelReference } from \"../utils\";\n\n/**\n * @private\n * @memberof module:fields\n */\nexport class RelationalField extends Field {\n constructor(...args) {\n super();\n if (args.length === 1 && typeof args[0] === \"object\") {\n const opts = args[0];\n this.toModelName = normalizeModelReference(opts.to);\n this.relatedName = opts.relatedName;\n this.through = normalizeModelReference(opts.through);\n this.throughFields = opts.throughFields;\n this.as = opts.as;\n } else {\n [this.toModelName, this.relatedName] = [\n normalizeModelReference(args[0]),\n args[1],\n ];\n }\n }\n\n getBackwardsFieldName(model) {\n return this.relatedName || reverseFieldName(model.modelName);\n }\n\n createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField(model.modelName, fieldName);\n }\n\n get installsBackwardsVirtualField() {\n return true;\n }\n\n get installsBackwardsDescriptor() {\n return true;\n }\n\n references(model) {\n return this.toModelName === model.modelName;\n }\n\n get installerClass() {\n return class AliasedForwardsDescriptorInstaller extends DefaultFieldInstaller {\n installForwardsDescriptor() {\n Object.defineProperty(\n this.model.prototype,\n this.field.as || this.fieldName, // use supplied name if possible\n this.field.createForwardsDescriptor(\n this.fieldName,\n this.model,\n this.toModel,\n this.throughModel\n )\n );\n }\n };\n }\n}\n\nexport default RelationalField;\n","import RelationalField from \"./RelationalField\";\n\nimport {\n forwardsManyToOneDescriptor,\n backwardsManyToOneDescriptor,\n} from \"../descriptors\";\n\n/**\n * @memberof module:fields\n */\nexport class ForeignKey extends RelationalField {\n createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return forwardsManyToOneDescriptor(fieldName, toModel.modelName);\n }\n\n createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return backwardsManyToOneDescriptor(fieldName, model.modelName);\n }\n\n get index() {\n return true;\n }\n}\n\nexport default ForeignKey;\n","import RelationalField from \"./RelationalField\";\n\nimport { manyToManyDescriptor } from \"../descriptors\";\n\nimport { m2mName, m2mToFieldName, m2mFromFieldName } from \"../utils\";\n\n/**\n * @memberof module:fields\n */\nexport class ManyToMany extends RelationalField {\n getDefault() {\n return [];\n }\n\n getThroughModelName(fieldName, model) {\n return this.through || m2mName(model.modelName, fieldName);\n }\n\n createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return manyToManyDescriptor(\n model.modelName,\n toModel.modelName,\n throughModel.modelName,\n this.getThroughFields(fieldName, model, toModel, throughModel),\n false\n );\n }\n\n createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return manyToManyDescriptor(\n model.modelName,\n toModel.modelName,\n throughModel.modelName,\n this.getThroughFields(fieldName, model, toModel, throughModel),\n true\n );\n }\n\n createBackwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: model.modelName,\n relatedName: fieldName,\n through: throughModel.modelName,\n throughFields: this.getThroughFields(\n fieldName,\n model,\n toModel,\n throughModel\n ),\n });\n }\n\n createForwardsVirtualField(fieldName, model, toModel, throughModel) {\n const ThisField = this.getClass();\n return new ThisField({\n to: toModel.modelName,\n relatedName: fieldName,\n through: this.through,\n throughFields: this.getThroughFields(\n fieldName,\n model,\n toModel,\n throughModel\n ),\n as: this.as,\n });\n }\n\n get installsForwardsVirtualField() {\n return true;\n }\n\n getThroughFields(fieldName, model, toModel, throughModel) {\n if (this.throughFields) {\n const [fieldAName, fieldBName] = this.throughFields;\n const fieldA = throughModel.fields[fieldAName];\n return {\n to: fieldA.references(toModel) ? fieldAName : fieldBName,\n from: fieldA.references(toModel) ? fieldBName : fieldAName,\n };\n }\n\n if (model.modelName === toModel.modelName) {\n /**\n * we have no way of determining the relationship's\n * direction here, so we need to assume that the user\n * did not use a custom through model\n * see ORM#registerManyToManyModelsFor\n */\n return {\n to: m2mToFieldName(toModel.modelName),\n from: m2mFromFieldName(model.modelName),\n };\n }\n\n /**\n * determine which field references which model\n * and infer the directions from that\n */\n const throughModelFieldReferencing = (otherModel) =>\n Object.keys(throughModel.fields).find((someFieldName) =>\n throughModel.fields[someFieldName].references(otherModel)\n );\n\n return {\n to: throughModelFieldReferencing(toModel),\n from: throughModelFieldReferencing(model),\n };\n }\n}\n\nexport default ManyToMany;\n","import RelationalField from \"./RelationalField\";\n\nimport {\n forwardsOneToOneDescriptor,\n backwardsOneToOneDescriptor,\n} from \"../descriptors\";\n\n/**\n * @memberof module:fields\n */\nexport class OneToOne extends RelationalField {\n getBackwardsFieldName(model) {\n return this.relatedName || model.modelName.toLowerCase();\n }\n\n createForwardsDescriptor(fieldName, model, toModel, throughModel) {\n return forwardsOneToOneDescriptor(fieldName, toModel.modelName);\n }\n\n createBackwardsDescriptor(fieldName, model, toModel, throughModel) {\n return backwardsOneToOneDescriptor(fieldName, model.modelName);\n }\n}\n\nexport default OneToOne;\n","import Attribute from \"./Attribute\";\nimport ForeignKey from \"./ForeignKey\";\nimport ManyToMany from \"./ManyToMany\";\nimport OneToOne from \"./OneToOne\";\n\n/**\n * Contains the logic for how fields on {@link Model}s work\n * and which descriptors must be installed.\n *\n * If your goal is to define fields on a Model class,\n * please use the more convenient methods {@link attr},\n * {@link fk}, {@link many} and {@link oneToOne}.\n *\n * @module fields\n */\n\n/**\n * Defines a value attribute on the model.\n * Though not required, it is recommended to define this for each non-foreign key you wish to use.\n * Getters and setters need to be defined on each Model\n * instantiation for undeclared data fields, which is slower.\n * You can use the optional `getDefault` parameter to fill in unpassed values\n * to {@link Model.create}, such as for generating ID's with UUID:\n *\n * ```javascript\n * import getUUID from 'your-uuid-package-of-choice';\n *\n * fields = {\n * id: attr({ getDefault: () => getUUID() }),\n * title: attr(),\n * }\n * ```\n *\n * @param {Object} [opts]\n * @param {Function} [opts.getDefault] - If you give a function here, its return\n * value from calling with zero arguments will\n * be used as the value when creating a new Model\n * instance with {@link Model#create} if the field\n * value is not passed.\n * @return {Attribute}\n */\nfunction attr(opts) {\n return new Attribute(opts);\n}\n\n/**\n * Defines a foreign key on a model, which points\n * to a single entity on another model.\n *\n * You can pass arguments as either a single object,\n * or two arguments.\n *\n * If you pass two arguments, the first one is the name\n * of the Model the foreign key is pointing to, and\n * the second one is an optional related name, which will\n * be used to access the Model the foreign key\n * is being defined from, from the target Model.\n *\n * If the related name is not passed, it will be set as\n * `${toModelName}Set`.\n *\n * If you pass an object to `fk`, it has to be in the form\n *\n * ```javascript\n * fields = {\n * author: fk({ to: 'Author', relatedName: 'books' })\n * }\n * ```\n *\n * Which is equal to\n *\n * ```javascript\n * fields = {\n * author: fk('Author', 'books'),\n * }\n * ```\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access\n * a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ForeignKey}\n */\nfunction fk(...args) {\n return new ForeignKey(...args);\n}\n\n/**\n * Defines a many-to-many relationship between\n * this (source) and another (target) model.\n *\n * The relationship is modeled with an extra model called the through model.\n * The through model has foreign keys to both the source and target models.\n *\n * You can define your own through model if you want to associate more information\n * to the relationship. A custom through model must have at least two foreign keys,\n * one pointing to the source Model, and one pointing to the target Model.\n *\n * Like `fk`, this function accepts one or two string arguments specifying the other\n * Model and the related name, or a single object argument that allows you to pass\n * a custom through model.\n *\n * If you have more than one foreign key pointing to a source or target Model in the\n * through Model, you must pass the option `throughFields`, which is an array of two\n * strings, where the strings are the field names that identify the foreign keys to\n * be used for the many-to-many relationship. Redux-ORM will figure out which field name\n * points to which model by checking the \"through model\" definition.\n *\n * ```javascript\n * class Authorship extends Model {}\n * Authorship.modelName = 'Authorship';\n * Authorship.fields = {\n * author: fk('Author', 'authorships'),\n * book: fk('Book', 'authorships'),\n * };\n *\n * class Author extends Model {}\n * Author.modelName = 'Author';\n * Author.fields = {\n * books: many({\n * to: 'Book',\n * relatedName: 'authors',\n * through: 'Authorship',\n *\n * // here this is optional: Redux-ORM can figure\n * // out the through fields itself since the two\n * // foreign key fields point to different Models\n * throughFields: ['author', 'book'],\n * })\n * };\n *\n * class Book extends Model {}\n * Book.modelName = 'Book';\n * ```\n *\n * You should only define the many-to-many relationship on one side. In the\n * above case of Authors to Books through Authorships, the relationship is\n * defined only on the Author model.\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string|Class} [options.through] - The through Model class or its `modelName`\n * attribute. It must declare at least one\n * foreign key to both source and target models.\n * If not supplied, Redux-ORM will generate one.\n * @param {string[]} [options.throughFields] - Must be supplied only when a custom through\n * Model has more than one foreign key pointing to\n * either the source or target mode. In this case\n * Redux-ORM can't figure out the correct fields for\n * you, you must provide them. The supplied array should\n * have two elements that are the field names for the\n * through fields you want to declare the many-to-many\n * relationship with. The order doesn't matter;\n * Redux-ORM will figure out which field points to\n * the source Model and which to the target Model.\n * @param {string} [options.relatedName] - The attribute used to access a QuerySet for all\n * source models that reference the respective target\n * Model's instance.\n * @param {string} [relatedName] - If you didn't pass an object as the first argument,\n * this is the property name that will be used to\n * access a QuerySet for all source models that reference\n * the respective target Model's instance.\n * @return {ManyToMany}\n */\nfunction many(...args) {\n return new ManyToMany(...args);\n}\n\n/**\n * Defines a one-to-one relationship. In database terms, this is a foreign key with the\n * added restriction that only one entity can point to single target entity.\n *\n * The arguments are the same as with `fk`. If `relatedName` is not supplied,\n * the source model name in lowercase will be used. Note that with the one-to-one\n * relationship, the `relatedName` should be in singular, not plural.\n *\n *\n * @param {string|Class|Object} options - The target Model class, its `modelName`\n * attribute or an options object that\n * contains either as the `to` key.\n * @param {string|Class} options.to - The target Model class or its `modelName` attribute.\n * @param {string} [options.as] - Name for the new accessor defined for this field. If you don't\n * supply this, the key that this field is defined under will be\n * overridden.\n * @param {string} [options.relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance.\n * @param {string} [relatedName] - The property name that will be used to access the source\n * model instance referencing the target model instance\n * @return {OneToOne}\n */\nfunction oneToOne(...args) {\n return new OneToOne(...args);\n}\n\nexport { fk, attr, many, oneToOne };\n","import Session from \"./Session\";\nimport QuerySet from \"./QuerySet\";\n\nimport { attr } from \"./fields\";\nimport ForeignKey from \"./fields/ForeignKey\";\nimport ManyToMany from \"./fields/ManyToMany\";\nimport OneToOne from \"./fields/OneToOne\";\n\nimport { CREATE, UPDATE, DELETE, FILTER } from \"./constants\";\nimport {\n normalizeEntity,\n arrayDiffActions,\n objectShallowEquals,\n warnDeprecated,\n m2mName,\n} from \"./utils\";\n\n/**\n * Generates a query specification to get the instance's\n * corresponding table row using its primary key.\n *\n * @private\n * @returns {Object}\n */\nfunction getByIdQuery(modelInstance) {\n const modelClass = modelInstance.getClass();\n const { idAttribute, modelName } = modelClass;\n\n return {\n table: modelName,\n clauses: [\n {\n type: FILTER,\n payload: {\n [idAttribute]: modelInstance.getId(),\n },\n },\n ],\n };\n}\n\n/**\n * The heart of an ORM, the data model.\n *\n * The fields you specify to the Model will be used to generate\n * a schema to the database, related property accessors, and\n * possibly through models.\n *\n * In each {@link Session} you instantiate from an {@link ORM} instance,\n * you will receive a session-specific subclass of this Model. The methods\n * you define here will be available to you in sessions.\n *\n * An instance of {@link Model} represents a record in the database, though\n * it is possible to generate multiple instances from the same record in the database.\n *\n * To create data models in your schema, subclass {@link Model}. To define\n * information about the data model, override static class methods. Define instance\n * logic by defining prototype methods (without `static` keyword).\n */\nconst Model = class Model {\n /**\n * Creates a Model instance from it's properties.\n * Don't use this to create a new record; Use the static method {@link Model#create}.\n * @param {Object} props - the properties to instantiate with\n */\n constructor(props) {\n this._initFields(props);\n }\n\n _initFields(props) {\n const propsObj = Object(props);\n this._fields = { ...propsObj };\n\n Object.keys(propsObj).forEach((fieldName) => {\n // In this case, we got a prop that wasn't defined as a field.\n // Assuming it's an arbitrary data field, making an instance-specific\n // descriptor for it.\n // Using the in operator as the property could be defined anywhere\n // on the prototype chain.\n if (!(fieldName in this)) {\n Object.defineProperty(this, fieldName, {\n get: () => this._fields[fieldName],\n set: (value) => this.set(fieldName, value),\n configurable: true,\n enumerable: true,\n });\n }\n });\n }\n\n static toString() {\n return `ModelClass: ${this.modelName}`;\n }\n\n /**\n * Returns the options object passed to the database for the table that represents\n * this Model class.\n *\n * Returns an empty object by default, which means the database\n * will use default options. You can either override this function to return the options\n * you want to use, or assign the options object as a static property of the same name to the\n * Model class.\n *\n * @return {Object} the options object passed to the database for the table\n * representing this Model class.\n */\n static options() {\n return {};\n }\n\n /**\n * Manually mark individual instances as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.<*>} ids - Array of primary key values\n * @return {undefined}\n */\n static markAccessed(ids) {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to mark rows of the ${this.modelName} model as accessed without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].markAccessed\\` instead.`,\n ].join(\"\")\n );\n }\n this.session.markAccessed(this.modelName, ids);\n }\n\n /**\n * Manually mark this model's table as scanned.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @return {undefined}\n */\n static markFullTableScanned() {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to mark the ${this.modelName} model as full table scanned without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].markFullTableScanned\\` instead.`,\n ].join(\"\")\n );\n }\n this.session.markFullTableScanned(this.modelName);\n }\n\n /**\n * Manually mark indexes as accessed.\n * This allows invalidating selector memoization within mutable sessions.\n *\n * @param {Array.>} indexes - Array of column-value pairs\n * @return {undefined}\n */\n static markAccessedIndexes(indexes) {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to mark indexes for the ${this.modelName} model as accessed without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].markAccessedIndexes\\` instead.`,\n ].join(\"\")\n );\n }\n this.session.markAccessedIndexes(\n indexes.map(([attribute, value]) => [\n this.modelName,\n attribute,\n value,\n ])\n );\n }\n\n /**\n * Returns the id attribute of this {@link Model}.\n *\n * @return {string} The id attribute of this {@link Model}.\n */\n static get idAttribute() {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to get the ${this.modelName} model's id attribute without a session. `,\n \"Create a session using `session = orm.session()` and access \",\n `\\`session[\"${this.modelName}\"].idAttribute\\` instead.`,\n ].join(\"\")\n );\n }\n return this.session.db.describe(this.modelName).idAttribute;\n }\n\n /**\n * Connect the model class to a {@link Session}.\n *\n * @private\n * @param {Session} session - The session to connect to.\n */\n static connect(session) {\n if (!(session instanceof Session)) {\n throw new Error(\n \"A model can only be connected to instances of Session.\"\n );\n }\n this._session = session;\n }\n\n /**\n * Get the current {@link Session} instance.\n *\n * @private\n * @return {Session} The current {@link Session} instance.\n */\n static get session() {\n return this._session;\n }\n\n /**\n * Returns an instance of the model's `querySetClass` field.\n * By default, this will be an empty {@link QuerySet}.\n *\n * @return {Object} An instance of the model's `querySetClass`.\n */\n static getQuerySet() {\n const { querySetClass: QuerySetClass } = this;\n return new QuerySetClass(this);\n }\n\n /**\n * @return {undefined}\n */\n static invalidateClassCache() {\n this.isSetUp = undefined;\n this.virtualFields = {};\n }\n\n /**\n * @see {@link Model.getQuerySet}\n */\n static get query() {\n return this.getQuerySet();\n }\n\n /**\n * Returns parameters to be passed to {@link Table} instance.\n *\n * @private\n */\n static tableOptions() {\n if (typeof this.backend === \"function\") {\n warnDeprecated(\n \"`Model.backend` has been deprecated. Please rename to `.options`.\"\n );\n return this.backend();\n }\n if (this.backend) {\n warnDeprecated(\n \"`Model.backend` has been deprecated. Please rename to `.options`.\"\n );\n return this.backend;\n }\n if (typeof this.options === \"function\") {\n return this.options();\n }\n return this.options;\n }\n\n /**\n * Creates a new record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the new {@link Model}'s properties.\n * @return {Model} a new {@link Model} instance.\n */\n static create(userProps) {\n if (typeof this._session === \"undefined\") {\n throw new Error(\n [\n `Tried to create a ${this.modelName} model instance without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].create\\` instead.`,\n ].join(\"\")\n );\n }\n const props = { ...userProps };\n\n const m2mRelations = {};\n\n const declaredFieldNames = Object.keys(this.fields);\n const declaredVirtualFieldNames = Object.keys(this.virtualFields);\n\n declaredFieldNames.forEach((key) => {\n const field = this.fields[key];\n const valuePassed = userProps.hasOwnProperty(key);\n if (!(field instanceof ManyToMany)) {\n if (valuePassed) {\n const value = userProps[key];\n props[key] = normalizeEntity(value);\n } else if (field.getDefault) {\n props[key] = field.getDefault(userProps);\n }\n } else if (valuePassed) {\n // Save for later processing\n m2mRelations[key] = userProps[key];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete props[key];\n }\n }\n });\n\n // add backward many-many if required\n declaredVirtualFieldNames.forEach((key) => {\n if (!m2mRelations.hasOwnProperty(key)) {\n const field = this.virtualFields[key];\n if (\n userProps.hasOwnProperty(key) &&\n field instanceof ManyToMany\n ) {\n // If a value is supplied for a ManyToMany field,\n // discard them from props and save for later processing.\n m2mRelations[key] = userProps[key];\n delete props[key];\n }\n }\n });\n\n const newEntry = this.session.applyUpdate({\n action: CREATE,\n table: this.modelName,\n payload: props,\n });\n\n const ThisModel = this;\n const instance = new ThisModel(newEntry);\n instance._refreshMany2Many(m2mRelations); // eslint-disable-line no-underscore-dangle\n return instance;\n }\n\n /**\n * Creates a new or update existing record in the database, instantiates a {@link Model} and returns it.\n *\n * If you pass values for many-to-many fields, instances are created on the through\n * model as well.\n *\n * @param {Object} userProps - the required {@link Model}'s properties.\n * @return {Model} a {@link Model} instance.\n */\n static upsert(userProps) {\n if (typeof this.session === \"undefined\") {\n throw new Error(\n [\n `Tried to upsert a ${this.modelName} model instance without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].upsert\\` instead.`,\n ].join(\"\")\n );\n }\n\n const { idAttribute } = this;\n if (userProps.hasOwnProperty(idAttribute)) {\n const id = userProps[idAttribute];\n if (this.idExists(id)) {\n const model = this.withId(id);\n model.update(userProps);\n return model;\n }\n }\n\n return this.create(userProps);\n }\n\n /**\n * Returns a {@link Model} instance for the object with id `id`.\n * Returns `null` if the model has no instance with id `id`.\n *\n * You can use {@link Model#idExists} to check for existence instead.\n *\n * @param {*} id - the `id` of the object to get\n * @throws If object with id `id` doesn't exist\n * @return {Model|null} {@link Model} instance with id `id`\n */\n static withId(id) {\n return this.get({\n [this.idAttribute]: id,\n });\n }\n\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n *\n * @since 0.11.0\n */\n static idExists(id) {\n return this.exists({\n [this.idAttribute]: id,\n });\n }\n\n /**\n * Returns a boolean indicating if an entity\n * with the given props exists in the state.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n */\n static exists(lookupObj) {\n if (typeof this.session === \"undefined\") {\n throw new Error(\n [\n `Tried to check if a ${this.modelName} model instance exists without a session. `,\n \"Create a session using `session = orm.session()` and call \",\n `\\`session[\"${this.modelName}\"].exists\\` instead.`,\n ].join(\"\")\n );\n }\n\n return Boolean(this._findDatabaseRows(lookupObj).length);\n }\n\n /**\n * Gets the {@link Model} instance that matches properties in `lookupObj`.\n * Throws an error if {@link Model} if multiple records match\n * the properties.\n *\n * @param {Object} lookupObj - the properties used to match a single entity.\n * @throws {Error} If more than one entity matches the properties in `lookupObj`.\n * @return {Model} a {@link Model} instance that matches the properties in `lookupObj`.\n */\n static get(lookupObj) {\n const ThisModel = this;\n\n const rows = this._findDatabaseRows(lookupObj);\n if (rows.length === 0) {\n return null;\n }\n if (rows.length > 1) {\n throw new Error(\n `Expected to find a single row in \\`${this.modelName}.get\\`. Found ${rows.length}.`\n );\n }\n\n return new ThisModel(rows[0]);\n }\n\n /**\n * Gets the {@link Model} class or subclass constructor (the class that\n * instantiated this instance).\n *\n * @return {Model} The {@link Model} class or subclass constructor used to instantiate\n * this instance.\n */\n getClass() {\n return this.constructor;\n }\n\n /**\n * Gets the id value of the current instance by looking up the id attribute.\n * @return {*} The id value of the current instance.\n */\n getId() {\n return this._fields[this.getClass().idAttribute];\n }\n\n /**\n * Returns a reference to the plain JS object in the store.\n * It contains all the properties that you pass when creating the model,\n * except for primary keys of many-to-many relationships with a custom accessor.\n *\n * Make sure never to mutate this.\n *\n * @return {Object} a reference to the plain JS object in the store\n */\n get ref() {\n const ThisModel = this.getClass();\n\n // eslint-disable-next-line no-underscore-dangle\n return ThisModel._findDatabaseRows({\n [ThisModel.idAttribute]: this.getId(),\n })[0];\n }\n\n /**\n * Finds all rows in this model's table that match the given `lookupObj`.\n * If no `lookupObj` is passed, all rows in the model's table will be returned.\n *\n * @param {*} props - a key-value that {@link Model} instances should have to be considered as existing.\n * @return {Boolean} a boolean indicating if entity with `props` exists in the state\n * @private\n */\n static _findDatabaseRows(lookupObj) {\n const querySpec = {\n table: this.modelName,\n };\n if (lookupObj) {\n querySpec.clauses = [\n {\n type: FILTER,\n payload: lookupObj,\n },\n ];\n }\n return this.session.query(querySpec).rows;\n }\n\n /**\n * Returns a string representation of the {@link Model} instance.\n *\n * @return {string} A string representation of this {@link Model} instance.\n */\n toString() {\n const ThisModel = this.getClass();\n const className = ThisModel.modelName;\n const fieldNames = Object.keys(ThisModel.fields);\n const fields = fieldNames\n .map((fieldName) => {\n const field = ThisModel.fields[fieldName];\n if (field instanceof ManyToMany) {\n const ids = this[fieldName]\n .toModelArray()\n .map((model) => model.getId());\n return `${fieldName}: [${ids.join(\", \")}]`;\n }\n const val = this._fields[fieldName];\n return `${fieldName}: ${val}`;\n })\n .join(\", \");\n return `${className}: {${fields}}`;\n }\n\n /**\n * Returns a boolean indicating if `otherModel` equals this {@link Model} instance.\n * Equality is determined by shallow comparing their attributes.\n *\n * This equality is used when you call {@link Model#update}.\n * You can prevent model updates by returning `true` here.\n * However, a model will always be updated if its relationships are changed.\n *\n * @param {Model} otherModel - a {@link Model} instance to compare\n * @return {Boolean} a boolean indicating if the {@link Model} instance's are equal.\n */\n equals(otherModel) {\n // eslint-disable-next-line no-underscore-dangle\n return objectShallowEquals(this._fields, otherModel._fields);\n }\n\n /**\n * Updates a property name to given value for this {@link Model} instance.\n * The values are immediately committed to the database.\n *\n * @param {string} propertyName - name of the property to set\n * @param {*} value - value assigned to the property\n * @return {undefined}\n */\n set(propertyName, value) {\n this.update({\n [propertyName]: value,\n });\n }\n\n /**\n * Assigns multiple fields and corresponding values to this {@link Model} instance.\n * The updates are immediately committed to the database.\n *\n * @param {Object} userMergeObj - an object that will be merged with this instance.\n * @return {undefined}\n */\n update(userMergeObj) {\n const ThisModel = this.getClass();\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error(\n [\n `Tried to update a ${ThisModel.modelName} model instance without a session. `,\n \"You cannot call `.update` on an instance that you did not receive from the database.\",\n ].join(\"\")\n );\n }\n\n const mergeObj = { ...userMergeObj };\n\n const { fields, virtualFields } = ThisModel;\n\n const m2mRelations = {};\n\n // If an array of entities or id's is supplied for a\n // many-to-many related field, clear the old relations\n // and add the new ones.\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const mergeKey in mergeObj) {\n const isRealField = fields.hasOwnProperty(mergeKey);\n\n if (isRealField) {\n const field = fields[mergeKey];\n\n if (field instanceof ForeignKey || field instanceof OneToOne) {\n // update one-one/fk relations\n mergeObj[mergeKey] = normalizeEntity(mergeObj[mergeKey]);\n } else if (field instanceof ManyToMany) {\n // field is forward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n\n if (!field.as) {\n /**\n * The relationship does not have an accessor\n * Discard the value from props as the field will be populated later with instances\n * from the target models when refreshing the M2M relations.\n * If the relationship does have an accessor (`as`) field then we do want to keep this\n * original value in the props to expose the raw list of IDs from the instance.\n */\n delete mergeObj[mergeKey];\n }\n }\n } else if (virtualFields.hasOwnProperty(mergeKey)) {\n const field = virtualFields[mergeKey];\n if (field instanceof ManyToMany) {\n // field is backward relation\n m2mRelations[mergeKey] = mergeObj[mergeKey];\n delete mergeObj[mergeKey];\n }\n }\n }\n\n const mergedFields = {\n ...this._fields,\n ...mergeObj,\n };\n\n const updatedModel = new ThisModel(mergedFields);\n // only update fields if they have changed (referentially)\n if (!this.equals(updatedModel)) {\n this._initFields(mergedFields);\n ThisModel.session.applyUpdate({\n action: UPDATE,\n query: getByIdQuery(this),\n payload: mergeObj,\n });\n }\n\n // update virtual fields\n this._refreshMany2Many(m2mRelations);\n }\n\n /**\n * Updates {@link Model} instance attributes to reflect the\n * database state in the current session.\n * @return {undefined}\n */\n refreshFromState() {\n this._initFields(this.ref);\n }\n\n /**\n * Deletes the record for this {@link Model} instance.\n * You'll still be able to access fields and values on the instance.\n *\n * @return {undefined}\n */\n delete() {\n const ThisModel = this.getClass();\n if (typeof ThisModel.session === \"undefined\") {\n throw new Error(\n [\n `Tried to delete a ${ThisModel.modelName} model instance without a session. `,\n \"You cannot call `.delete` on an instance that you did not receive from the database.\",\n ].join(\"\")\n );\n }\n\n this._onDelete();\n ThisModel.session.applyUpdate({\n action: DELETE,\n query: getByIdQuery(this),\n });\n }\n\n /**\n * Update many-many relations for model.\n * @param relations\n * @return undefined\n * @private\n */\n _refreshMany2Many(relations) {\n const ThisModel = this.getClass();\n const { fields, virtualFields, modelName } = ThisModel;\n\n Object.keys(relations).forEach((name) => {\n const reverse = !fields.hasOwnProperty(name);\n const field = virtualFields[name];\n const values = relations[name];\n\n if (!Array.isArray(values)) {\n throw new TypeError(\n `Failed to resolve many-to-many relationship: ${modelName}[${name}] must be an array (passed: ${values})`\n );\n }\n\n const normalizedNewIds = values.map(normalizeEntity);\n const uniqueIds = [...new Set(normalizedNewIds)];\n\n if (normalizedNewIds.length !== uniqueIds.length) {\n throw new Error(\n `Found duplicate id(s) when passing \"${normalizedNewIds}\" to ${ThisModel.modelName}.${name} value`\n );\n }\n\n const throughModelName =\n field.through || m2mName(ThisModel.modelName, name);\n const ThroughModel = ThisModel.session[throughModelName];\n\n let fromField;\n let toField;\n\n if (!reverse) {\n ({ from: fromField, to: toField } = field.throughFields);\n } else {\n ({ from: toField, to: fromField } = field.throughFields);\n }\n\n const currentIds = ThroughModel.filter(\n (through) => through[fromField] === this[ThisModel.idAttribute]\n )\n .toRefArray()\n .map((ref) => ref[toField]);\n\n const diffActions = arrayDiffActions(currentIds, normalizedNewIds);\n\n if (diffActions) {\n const { delete: idsToDelete, add: idsToAdd } = diffActions;\n if (idsToDelete.length > 0) {\n this[field.as || name].remove(...idsToDelete);\n }\n\n if (idsToAdd.length > 0) {\n this[field.as || name].add(...idsToAdd);\n }\n }\n });\n }\n\n /**\n * @return {undefined}\n * @private\n */\n _onDelete() {\n const { virtualFields } = this.getClass();\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const key in virtualFields) {\n const field = virtualFields[key];\n if (field instanceof ManyToMany) {\n // Delete any many-to-many rows the entity is included in.\n const descriptorKey = field.as || key;\n this[descriptorKey].clear();\n } else if (field instanceof ForeignKey) {\n const relatedQs = this[key];\n if (relatedQs.exists()) {\n relatedQs.update({ [field.relatedName]: null });\n }\n } else if (field instanceof OneToOne) {\n // Set null to any foreign keys or one to ones pointed to\n // this instance.\n if (this[key] !== null) {\n this[key][field.relatedName] = null;\n }\n }\n }\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * Returns a boolean indicating if an entity\n * with the id `id` exists in the state.\n *\n * @param {*} id - a value corresponding to the id attribute of the {@link Model} class.\n * @return {Boolean} a boolean indicating if entity with `id` exists in the state\n * @deprecated Please use {@link Model.idExists} instead.\n */\n static hasId(id) {\n console.warn(\n \"`Model.hasId` has been deprecated. Please use `Model.idExists` instead.\"\n );\n return this.idExists(id);\n }\n\n /**\n * @deprecated See the 0.9 migration guide on the GitHub repo.\n * @throws {Error} Due to deprecation.\n */\n getNextState() {\n throw new Error(\n \"`Model.prototype.getNextState` has been removed. See the 0.9 \" +\n \"migration guide on the GitHub repo.\"\n );\n }\n};\n\nModel.fields = {\n id: attr(),\n};\nModel.virtualFields = {};\nModel.querySetClass = QuerySet;\n\nexport default Model;\n","import ops from \"immutable-ops\";\nimport filter from \"lodash/filter\";\nimport orderBy from \"lodash/orderBy\";\nimport reject from \"lodash/reject\";\nimport sortBy from \"lodash/sortBy\";\n\nimport { EXCLUDE, FILTER, ORDER_BY } from \"../constants\";\nimport { clauseFiltersByAttribute, clauseReducesResultSetSize } from \"../utils\";\n\nconst DEFAULT_TABLE_OPTIONS = {\n idAttribute: \"id\",\n arrName: \"items\",\n mapName: \"itemsById\",\n fields: {},\n};\n\n/**\n * @private\n * @param {*} _currMax - the current max id\n * @param {*} userPassedId - the new id passed to the create action\n *\n * Both may be undefined. The current max id in the case that this is the first Model\n * being created, and the new id if the id was not explicitly passed to the\n * database.\n *\n * @return {Array} the new max id and the id to use to create the new row\n *\n * If the id's are strings, the id must be passed explicitly every time.\n * In this case, the current max id will remain `NaN` due to `Math.max`, but that's fine.\n */\nfunction idSequencer(_currMax, userPassedId) {\n let currMax = _currMax;\n let newMax;\n let newId;\n\n if (currMax === undefined) {\n currMax = -1;\n }\n\n if (userPassedId === undefined) {\n newMax = currMax + 1;\n newId = newMax;\n } else {\n newMax = Math.max(currMax + 1, userPassedId);\n newId = userPassedId;\n }\n\n return [\n newMax, // new max id\n newId, // id to use for row creation\n ];\n}\n\n/**\n * Adapt order directions array to @{lodash.orderBy} API.\n *\n * @private\n *\n * @param {Array} orders? - an array of optional order query directions as provided to {@Link {QuerySet.orderBy}}\n * @return {Array<'asc'|'desc'>|undefined} A normalized ordering array or undefined if none was provided.\n */\nfunction normalizeOrders(orders) {\n if (orders === undefined) {\n return undefined;\n }\n const convert = (order) => {\n if ([\"desc\", false].includes(order)) {\n return \"desc\";\n }\n return \"asc\";\n };\n return Array.isArray(orders) ? orders.map(convert) : convert(orders);\n}\n\n/**\n * Handles the underlying data structure for a {@link Model} class.\n * @private\n */\nexport class Table {\n /**\n * Creates a new {@link Table} instance.\n * @param {Object} userOpts - options to use.\n * @param {string} [userOpts.idAttribute=id] - the id attribute of the entity.\n * @param {string} [userOpts.arrName=items] - the state attribute where an array of\n * entity id's are stored\n * @param {string} [userOpts.mapName=itemsById] - the state attribute where the entity objects\n * are stored in a id to entity object\n * map.\n * @param {string} [userOpts.fields={}] - mapping of field key to {@link Field} object\n */\n constructor(userOpts) {\n Object.assign(this, DEFAULT_TABLE_OPTIONS, userOpts);\n }\n\n /**\n * Returns a reference to the object at index `id`\n * in state `branch`.\n *\n * @param {Object} branch - the state\n * @param {Number} id - the id of the object to get\n * @return {Object|undefined} A reference to the raw object in the state or\n * `undefined` if not found.\n */\n accessId(branch, id) {\n return branch[this.mapName][id];\n }\n\n accessIds(branch, ids) {\n const map = branch[this.mapName];\n return ids.map((id) => map[id]);\n }\n\n idExists(branch, id) {\n return branch[this.mapName].hasOwnProperty(id);\n }\n\n accessIdList(branch) {\n return branch[this.arrName];\n }\n\n accessList(branch) {\n return this.accessIds(branch, this.accessIdList(branch));\n }\n\n getMaxId(branch) {\n return this.getMeta(branch, \"maxId\");\n }\n\n setMaxId(tx, branch, newMaxId) {\n return this.setMeta(tx, branch, \"maxId\", newMaxId);\n }\n\n nextId(id) {\n return id + 1;\n }\n\n /**\n * Returns the default state for the data structure.\n * @return {Object} The default state for this {@link ORM} instance's data structure\n */\n getEmptyState() {\n const pkIndex = {\n [this.arrName]: [],\n [this.mapName]: {},\n };\n const attrIndexes = Object.keys(this.fields)\n .filter((attr) => attr !== this.idAttribute)\n .filter((attr) => this.fields[attr].index)\n .reduce(\n (indexes, attr) => ({\n ...indexes,\n [attr]: {},\n }),\n {}\n );\n return {\n ...pkIndex,\n indexes: attrIndexes,\n meta: {},\n };\n }\n\n setMeta(tx, branch, key, value) {\n const { batchToken, withMutations } = tx;\n if (withMutations) {\n const res = ops.mutable.setIn([\"meta\", key], value, branch);\n return res;\n }\n\n return ops.batch.setIn(batchToken, [\"meta\", key], value, branch);\n }\n\n getMeta(branch, key) {\n return branch.meta[key];\n }\n\n query(branch, clauses) {\n if (clauses.length === 0) {\n return this.accessList(branch);\n }\n\n const { idAttribute } = this;\n\n const optimallyOrderedClauses = sortBy(clauses, (clause) => {\n if (clauseFiltersByAttribute(clause, idAttribute)) {\n return 1;\n }\n\n if (clauseReducesResultSetSize(clause)) {\n return 2;\n }\n\n return 3;\n });\n\n const reducer = (rows, clause) => {\n const { type, payload } = clause;\n if (!rows) {\n /**\n * First time this reducer is called during query.\n * This is where we apply query optimizations.\n */\n if (clauseFiltersByAttribute(clause, idAttribute)) {\n /**\n * Payload specified a primary key. Use PK index\n * to look up the single row identified by the PK.\n */\n const id = payload[idAttribute];\n const remainingPayload = Object.keys(payload).reduce(\n (withoutPkAttr, filterAttr) => {\n if (filterAttr !== idAttribute) {\n withoutPkAttr[filterAttr] = payload[filterAttr];\n }\n return withoutPkAttr;\n },\n {}\n );\n const ids = this.idExists(branch, id) ? [id] : [];\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-PK columns.\n * Filter accessed row by remaining payload (if one was found).\n */\n return reducer(this.accessIds(branch, ids), {\n ...clause,\n payload: remainingPayload,\n });\n }\n /**\n * No need to filter these rows any further.\n * The primary key value satisfies this clause's conditions.\n */\n return this.accessIds(branch, ids);\n }\n if (type === FILTER && typeof payload === \"object\") {\n const indexes = Object.entries(branch.indexes);\n const accessedIndexes = [];\n const indexAttrs = [];\n indexes.forEach(([attr, index]) => {\n if (clauseFiltersByAttribute(clause, attr)) {\n /**\n * Payload specified an indexed attribute. Use index\n * to potentially decrease amount of accessed rows.\n */\n if (index.hasOwnProperty(payload[attr])) {\n accessedIndexes.push(index[payload[attr]]);\n indexAttrs.push(attr);\n }\n }\n });\n /**\n * Calculate set of unique PK values corresponding to each\n * foreign key's attribute value. Then retrieve all those rows.\n */\n if (accessedIndexes.length) {\n const lastIndex = accessedIndexes.pop();\n const indexedIds = accessedIndexes.reduce(\n (result, index) => {\n const indexSet = new Set(index);\n return result.filter(\n Set.prototype.has,\n indexSet\n );\n },\n lastIndex\n );\n const remainingPayload = Object.keys(payload).reduce(\n (withoutIndexAttrs, filterAttr) => {\n if (!indexAttrs.includes(filterAttr)) {\n withoutIndexAttrs[filterAttr] =\n payload[filterAttr];\n }\n return withoutIndexAttrs;\n },\n {}\n );\n if (Object.keys(remainingPayload).length) {\n /**\n * Payload has additional, non-indexed columns.\n * Filter indexed rows by remaining payload (if any were found).\n */\n return reducer(this.accessIds(branch, indexedIds), {\n ...clause,\n payload: remainingPayload,\n });\n }\n /**\n * No need to filter these rows any further.\n * The used indexes satisfy this clause's conditions.\n */\n return this.accessIds(branch, indexedIds);\n }\n }\n\n // Give up optimization: Retrieve all rows (full table scan).\n return reducer(this.accessList(branch), clause);\n }\n\n switch (type) {\n case FILTER: {\n return filter(rows, payload);\n }\n case EXCLUDE: {\n return reject(rows, payload);\n }\n case ORDER_BY: {\n const [iteratees, orders] = payload;\n return orderBy(rows, iteratees, normalizeOrders(orders));\n }\n default:\n return rows;\n }\n };\n\n return optimallyOrderedClauses.reduce(reducer, undefined);\n }\n\n /**\n * Returns the data structure including a new object `entry`\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object} entry - the object to insert\n * @return {Object} an object with two keys: `state` and `created`.\n * `state` is the new table state and `created` is the\n * row that was created.\n */\n insert(tx, branch, entry) {\n const { batchToken, withMutations } = tx;\n\n const hasId = entry.hasOwnProperty(this.idAttribute);\n\n let workingState = branch;\n\n // This will not affect string id's.\n const [newMaxId, id] = idSequencer(\n this.getMaxId(branch),\n entry[this.idAttribute]\n );\n workingState = this.setMaxId(tx, branch, newMaxId);\n\n const finalEntry = hasId\n ? entry\n : ops.batch.set(batchToken, this.idAttribute, id, entry);\n\n const indexesToAppendTo = Object.keys(workingState.indexes)\n .filter(\n (fkAttr) =>\n entry.hasOwnProperty(fkAttr) && entry[fkAttr] !== null\n )\n .map((fkAttr) => [fkAttr, entry[fkAttr]]);\n\n if (withMutations) {\n ops.mutable.push(id, workingState[this.arrName]);\n ops.mutable.set(id, finalEntry, workingState[this.mapName]);\n // add id to indexes\n indexesToAppendTo.forEach(([attr, value]) => {\n const attrIndex = workingState.indexes[attr];\n if (attrIndex.hasOwnProperty(value)) {\n ops.mutable.push(id, attrIndex[value]);\n } else {\n ops.mutable.set(value, [id], attrIndex);\n }\n });\n return {\n state: workingState,\n created: finalEntry,\n };\n }\n\n const nextIndexes = ops.batch.merge(\n batchToken,\n indexesToAppendTo.reduce(\n (indexMap, [attr, value]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n {\n [value]: ops.batch.push(\n batchToken,\n id,\n indexMap[attr][value] || []\n ),\n },\n indexMap[attr]\n );\n return indexMap;\n },\n { ...workingState.indexes }\n ),\n workingState.indexes\n );\n\n const nextState = ops.batch.merge(\n batchToken,\n {\n [this.arrName]: ops.batch.push(\n batchToken,\n id,\n workingState[this.arrName]\n ),\n [this.mapName]: ops.batch.merge(\n batchToken,\n {\n [id]: finalEntry,\n },\n workingState[this.mapName]\n ),\n indexes: nextIndexes,\n },\n workingState\n );\n\n return {\n state: nextState,\n created: finalEntry,\n };\n }\n\n /**\n * Returns the data structure with objects where `rows`\n * are merged with `mergeObj`.\n *\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @param {Object} mergeObj - The object to merge with each row.\n * @return {Object}\n */\n update(tx, branch, rows, mergeObj) {\n const { batchToken, withMutations } = tx;\n\n const mergeObjInto = (row) => {\n const merge = withMutations\n ? ops.mutable.merge\n : ops.batch.merge(batchToken);\n return merge(mergeObj, row);\n };\n\n const set = withMutations ? ops.mutable.set : ops.batch.set(batchToken);\n\n const indexedAttrs = Object.keys(branch.indexes).filter((attr) =>\n mergeObj.hasOwnProperty(attr)\n );\n const indexIdsToAdd = [];\n const indexIdsToDelete = [];\n\n const nextMap = rows.reduce((map, row) => {\n const prevAttrValues = indexedAttrs.reduce(\n (valueMap, attr) => ({\n ...valueMap,\n [attr]: row[attr],\n }),\n {}\n );\n const result = mergeObjInto(row);\n const nextAttrValues = indexedAttrs.reduce(\n (valueMap, attr) => ({\n ...valueMap,\n [attr]: result[attr],\n }),\n {}\n );\n const id = result[this.idAttribute];\n const nextRow = set(id, result, map);\n indexedAttrs.forEach((attr) => {\n const { [attr]: prevValue } = prevAttrValues;\n const { [attr]: nextValue } = nextAttrValues;\n if (prevValue === nextValue) {\n // attribute has not changed, no need to update any index\n return;\n }\n if (prevValue !== null && typeof prevValue !== \"undefined\") {\n // remove id from attribute's index for its old value\n indexIdsToDelete.push([attr, prevValue, id]);\n }\n if (nextValue !== null) {\n // add id to attribute's index for its new value\n indexIdsToAdd.push([attr, nextValue, id]);\n }\n });\n return nextRow;\n }, branch[this.mapName]);\n\n let nextIndexes = branch.indexes;\n if (withMutations) {\n indexIdsToDelete.forEach(([attr, value, id]) => {\n const arr = nextIndexes[attr][value];\n const idx = arr.indexOf(id);\n ops.mutable.splice(idx, 1, [], arr);\n });\n indexIdsToAdd.forEach(([attr, value, id]) => {\n ops.mutable.push(id, nextIndexes[attr][value]);\n });\n } else {\n if (indexIdsToAdd.length) {\n nextIndexes = ops.batch.merge(\n batchToken,\n indexIdsToAdd.reduce(\n (indexMap, [attr, value, id]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n {\n [value]: ops.batch.push(\n batchToken,\n id,\n indexMap[attr][value] || []\n ),\n },\n indexMap[attr]\n );\n return indexMap;\n },\n { ...nextIndexes }\n ),\n nextIndexes\n );\n }\n if (indexIdsToDelete.length) {\n nextIndexes = ops.batch.merge(\n batchToken,\n indexIdsToDelete.reduce(\n (indexMap, [attr, value, id]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n {\n [value]: ops.batch.filter(\n batchToken,\n (rowId) => rowId !== id,\n indexMap[attr][value]\n ),\n },\n indexMap[attr]\n );\n return indexMap;\n },\n { ...nextIndexes }\n ),\n nextIndexes\n );\n }\n }\n\n return ops.batch.merge(\n batchToken,\n {\n [this.mapName]: nextMap,\n indexes: nextIndexes,\n },\n branch\n );\n }\n\n /**\n * Returns the data structure without rows `rows`.\n * @param {Object} tx - transaction info\n * @param {Object} branch - the data structure state\n * @param {Object[]} rows - rows to update\n * @return {Object} the data structure without ids in `idsToDelete`.\n */\n delete(tx, branch, rows) {\n const { batchToken, withMutations } = tx;\n\n const { arrName, mapName } = this;\n const arr = branch[arrName];\n\n const idsToDelete = rows.map((row) => row[this.idAttribute]);\n if (withMutations) {\n idsToDelete.forEach((id) => {\n const idx = arr.indexOf(id);\n ops.mutable.splice(idx, 1, [], arr);\n ops.mutable.omit(id, branch[mapName]);\n });\n // delete ids from all indexes\n Object.values(branch.indexes).forEach((attrIndex) =>\n Object.values(attrIndex).forEach((valueIndex) =>\n idsToDelete.forEach((id) => {\n const idx = valueIndex.indexOf(id);\n if (idx !== -1) {\n ops.mutable.splice(idx, 1, [], valueIndex);\n }\n })\n )\n );\n return branch;\n }\n\n const nextIndexes = ops.batch.merge(\n batchToken,\n Object.entries(branch.indexes).reduce(\n (indexMap, [attr, attrIndex]) => {\n indexMap[attr] = ops.batch.merge(\n batchToken,\n Object.entries(attrIndex).reduce(\n (attrIndexMap, [value, valueIndex]) => {\n attrIndexMap[value] = ops.batch.filter(\n batchToken,\n (id) => !idsToDelete.includes(id),\n valueIndex\n );\n return attrIndexMap;\n },\n { ...indexMap[attr] }\n ),\n indexMap[attr]\n );\n return indexMap;\n },\n { ...branch.indexes }\n ),\n branch.indexes\n );\n\n return ops.batch.merge(\n batchToken,\n {\n [arrName]: ops.batch.filter(\n batchToken,\n (id) => !idsToDelete.includes(id),\n branch[arrName]\n ),\n [mapName]: ops.batch.omit(\n batchToken,\n idsToDelete,\n branch[mapName]\n ),\n indexes: ops.batch.merge(\n batchToken,\n nextIndexes,\n branch.indexes\n ),\n },\n branch\n );\n }\n}\n\nexport default Table;\n","import ops from \"immutable-ops\";\n\nimport { CREATE, UPDATE, DELETE, SUCCESS, STATE_FLAG } from \"../constants\";\n\nimport Table from \"./Table\";\n\nconst BASE_EMPTY_STATE = {};\nObject.defineProperty(BASE_EMPTY_STATE, STATE_FLAG, {\n enumerable: true,\n value: true,\n});\n\n/** @private */\nfunction replaceTableState(tableName, newTableState, tx, state) {\n const { batchToken, withMutations } = tx;\n\n if (withMutations) {\n state[tableName] = newTableState;\n return state;\n }\n\n return ops.batch.set(batchToken, tableName, newTableState, state);\n}\n\n/** @private */\nfunction query(tables, querySpec, state) {\n const { table: tableName, clauses } = querySpec;\n const table = tables[tableName];\n const rows = table.query(state[tableName], clauses);\n return {\n rows,\n };\n}\n\n/** @private */\nfunction update(tables, updateSpec, tx, state) {\n const { action, payload } = updateSpec;\n\n let tableName;\n let nextTableState;\n let resultPayload;\n\n if (action === CREATE) {\n ({ table: tableName } = updateSpec);\n const table = tables[tableName];\n const currTableState = state[tableName];\n const result = table.insert(tx, currTableState, payload);\n nextTableState = result.state;\n resultPayload = result.created;\n } else {\n const { query: querySpec } = updateSpec;\n ({ table: tableName } = querySpec);\n const { rows } = query(tables, querySpec, state);\n\n const table = tables[tableName];\n const currTableState = state[tableName];\n\n if (action === UPDATE) {\n nextTableState = table.update(tx, currTableState, rows, payload);\n // return updated rows\n resultPayload = query(tables, querySpec, state).rows;\n } else if (action === DELETE) {\n nextTableState = table.delete(tx, currTableState, rows);\n // return original rows that we just deleted\n resultPayload = rows;\n } else {\n throw new Error(`Database received unknown update type: ${action}`);\n }\n }\n\n const nextDBState = replaceTableState(tableName, nextTableState, tx, state);\n return {\n status: SUCCESS,\n state: nextDBState,\n payload: resultPayload,\n };\n}\n\n/**\n * @memberof db\n * @param {Object} schemaSpec\n * @return Object database\n */\nexport function createDatabase(schemaSpec) {\n const { tables: tableSpecs } = schemaSpec;\n const tables = Object.entries(tableSpecs).reduce(\n (map, [tableName, tableSpec]) => ({\n ...map,\n [tableName]: new Table(tableSpec),\n }),\n {}\n );\n\n const getEmptyState = () =>\n Object.entries(tables).reduce(\n (map, [tableName, table]) => ({\n ...map,\n [tableName]: table.getEmptyState(),\n }),\n BASE_EMPTY_STATE\n );\n\n return {\n getEmptyState,\n query: query.bind(null, tables),\n update: update.bind(null, tables),\n // Used to inspect the schema.\n describe: (tableName) => tables[tableName],\n };\n}\n\nexport default createDatabase;\n","import { ID_ARG_KEY_SELECTOR } from \"../constants\";\n\nexport default class SelectorSpec {\n constructor({ parent, orm }) {\n this._parent = parent;\n this._orm = orm;\n this.keySelector = ID_ARG_KEY_SELECTOR;\n }\n\n get cachePath() {\n const basePath = this._parent ? this._parent.cachePath : [];\n return [...basePath, this.key];\n }\n\n get orm() {\n return this._orm;\n }\n\n get parent() {\n return this._parent;\n }\n}\n","import SelectorSpec from \"./SelectorSpec\";\n\nexport default class ModelBasedSelectorSpec extends SelectorSpec {\n constructor({ model, ...other }) {\n super(other);\n this._model = model;\n }\n\n get resultFunc() {\n return (session, idArg, ...other) => {\n const { [this._model.modelName]: ModelClass } = session;\n if (typeof idArg === \"undefined\") {\n return ModelClass.all()\n .toModelArray()\n .map((instance) =>\n this.valueForInstance(instance, session, ...other)\n );\n }\n if (Array.isArray(idArg)) {\n return idArg.map((id) =>\n this.valueForInstance(\n ModelClass.withId(id),\n session,\n ...other\n )\n );\n }\n return this.valueForInstance(\n ModelClass.withId(idArg),\n session,\n ...other\n );\n };\n }\n\n get model() {\n return this._model;\n }\n}\n","export default function idArgSelector(state, idArg) {\n return idArg;\n}\n","import ModelBasedSelectorSpec from \"./ModelBasedSelectorSpec\";\nimport idArgSelector from \"./idArgSelector\";\n\nexport default class MapSelectorSpec extends ModelBasedSelectorSpec {\n constructor({ field, selector, ...other }) {\n super(other);\n this._field = field;\n this._selector = selector;\n }\n\n createResultFunc(parentSelector) {\n const { idAttribute } = this._parent.toModel;\n return (state, ...other) => {\n /**\n * The parent selector should return a ref array\n * in case of a single ID being passed.\n * Otherwise it should return an array of ref arrays.\n */\n const parentResult = parentSelector(state, ...other);\n const idArg = idArgSelector(state, ...other);\n const single = (refArray) => {\n if (refArray === null) {\n // an intermediate field could not be resolved\n return null;\n }\n return refArray.map((ref) =>\n this._selector(state, ref[idAttribute])\n );\n };\n if (typeof idArg === \"undefined\" || Array.isArray(idArg)) {\n return parentResult.map(single);\n }\n return single(parentResult);\n };\n }\n\n get selector() {\n return this._selector;\n }\n\n set selector(selector) {\n this._selector = selector;\n }\n\n get key() {\n return this._selector;\n }\n}\n","import SelectorSpec from \"./SelectorSpec\";\nimport idArgSelector from \"./idArgSelector\";\n\nexport default class ModelSelectorSpec extends SelectorSpec {\n constructor({ model, ...other }) {\n super(other);\n this._model = model;\n }\n\n get key() {\n return this._model.modelName;\n }\n\n get dependencies() {\n return [this._orm, idArgSelector];\n }\n\n get resultFunc() {\n return ({ [this._model.modelName]: ModelClass }, idArg) => {\n if (typeof idArg === \"undefined\") {\n return ModelClass.all().toRefArray();\n }\n if (Array.isArray(idArg)) {\n return idArg.map((id) => {\n const instance = ModelClass.withId(id);\n return instance ? instance.ref : null;\n });\n }\n const instance = ModelClass.withId(idArg);\n return instance ? instance.ref : null;\n };\n }\n\n get model() {\n return this._model;\n }\n}\n","import MapSelectorSpec from \"./MapSelectorSpec\";\nimport ModelSelectorSpec from \"./ModelSelectorSpec\";\nimport ModelBasedSelectorSpec from \"./ModelBasedSelectorSpec\";\nimport idArgSelector from \"./idArgSelector\";\n\nimport QuerySet from \"../QuerySet\";\nimport Model from \"../Model\";\n\nimport ForeignKey from \"../fields/ForeignKey\";\nimport ManyToMany from \"../fields/ManyToMany\";\n\nexport default class FieldSelectorSpec extends ModelBasedSelectorSpec {\n constructor({ field, fieldModel, accessorName, isVirtual, ...other }) {\n super(other);\n this._field = field;\n this._fieldModel = fieldModel;\n this._accessorName = accessorName;\n this._isVirtual = isVirtual;\n }\n\n get key() {\n return this._accessorName;\n }\n\n get dependencies() {\n return [this._orm, idArgSelector];\n }\n\n valueForInstance(instance, session) {\n if (!instance) {\n return null;\n }\n let value;\n if (this._parent instanceof ModelSelectorSpec) {\n /* orm.Model.field */\n value = instance[this._accessorName];\n } else {\n /* orm.Model.field1.field2..fieldN.field */\n const { [this._parent.toModelName]: ParentToModel } = session;\n const parentRef = this._parent.valueForInstance(instance, session);\n const parentInstance = parentRef\n ? new ParentToModel(parentRef)\n : null;\n value = parentInstance ? parentInstance[this._accessorName] : null;\n }\n if (value instanceof Model) {\n return value.ref;\n }\n if (value instanceof QuerySet) {\n return value.toRefArray();\n }\n return value;\n }\n\n map(selector) {\n if (selector instanceof ModelSelectorSpec) {\n if (this.toModelName === selector.model.modelName) {\n throw new Error(\n `Cannot select models in a \\`map()\\` call. If you just want the \\`${this._accessorName}\\` as a ref array then you can simply drop the \\`map()\\`. Otherwise make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`\n );\n } else {\n throw new Error(\n `Cannot select \\`${selector.model.modelName}\\` models in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`\n );\n }\n } else if (\n selector instanceof FieldSelectorSpec ||\n selector instanceof MapSelectorSpec\n ) {\n if (this.toModelName !== selector.model.modelName) {\n throw new Error(\n `Cannot select fields of the \\`${selector.model.modelName}\\` model in this \\`map()\\` call. Make sure you're passing a field selector of the form \\`${this.toModelName}.\\` or a custom selector instead.`\n );\n }\n } else if (\n !selector ||\n typeof selector !== \"function\" ||\n !selector.recomputations\n ) {\n throw new Error(\n `\\`map()\\` requires a selector as an input. Received: ${JSON.stringify(\n selector\n )} of type ${typeof selector}`\n );\n }\n if (\n !(this._field instanceof ForeignKey) &&\n !(this._field instanceof ManyToMany)\n ) {\n throw new Error(\"Cannot map selectors for non-collection fields\");\n }\n return new MapSelectorSpec({\n parent: this,\n model: this._model,\n orm: this._orm,\n field: this._field,\n selector,\n });\n }\n\n get toModelName() {\n return this._field.toModelName === \"this\"\n ? this._fieldModel.modelName\n : this._field.toModelName;\n }\n\n get toModel() {\n const db = this._orm.getDatabase();\n return db.describe(this.toModelName);\n }\n}\n","import ForeignKey from \"../fields/ForeignKey\";\nimport ManyToMany from \"../fields/ManyToMany\";\nimport RelationalField from \"../fields/RelationalField\";\n\nimport FieldSelectorSpec from \"./FieldSelectorSpec\";\nimport ModelSelectorSpec from \"./ModelSelectorSpec\";\n\n/**\n * @module selectors\n * @private\n */\n\nexport function createFieldSelectorSpec({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual,\n}) {\n const fieldSelectorSpec = new FieldSelectorSpec({\n parent,\n model,\n field,\n fieldModel,\n accessorName,\n orm,\n isVirtual,\n });\n /* Do not even try to create field selectors below attributes. */\n if (!(field instanceof RelationalField)) {\n // \"orm.Author.name.publisher\" would be nonsense\n return fieldSelectorSpec;\n }\n /* Prevent field selectors below collections. */\n if (parent instanceof FieldSelectorSpec) {\n /* eslint-disable no-underscore-dangle */\n if (\n // \"orm.Author.books.publisher\" would be nonsense\n (parent._field instanceof ForeignKey && parent._isVirtual) ||\n // \"orm.Genre.books.publisher\" would be nonsense\n parent._field instanceof ManyToMany\n ) {\n throw new Error(\n `Cannot create a selector for \\`${parent._accessorName}.${accessorName}\\` because \\`${parent._accessorName}\\` is a collection field.`\n );\n }\n }\n const { toModelName } = field;\n const toModel = orm.get(\n toModelName === \"this\" ? model.modelName : toModelName\n );\n Object.entries(toModel.fields).forEach(\n ([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false,\n }),\n });\n }\n );\n Object.entries(toModel.virtualFields).forEach(\n ([relatedFieldName, relatedField]) => {\n const fieldAccessorName = relatedField.as || relatedFieldName;\n if (fieldSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n Object.defineProperty(fieldSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: fieldSelectorSpec,\n model,\n fieldModel: toModel,\n field: relatedField,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true,\n }),\n });\n }\n );\n return fieldSelectorSpec;\n}\n\nexport function createModelSelectorSpec({ model, orm }) {\n const modelSelectorSpec = new ModelSelectorSpec({\n parent: null,\n orm,\n model,\n });\n\n Object.entries(model.fields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: false,\n }),\n });\n });\n\n Object.entries(model.virtualFields).forEach(([fieldName, field]) => {\n const fieldAccessorName = field.as || fieldName;\n if (modelSelectorSpec.hasOwnProperty(fieldAccessorName)) {\n return;\n }\n Object.defineProperty(modelSelectorSpec, fieldAccessorName, {\n get: () =>\n createFieldSelectorSpec({\n parent: modelSelectorSpec,\n model,\n fieldModel: model,\n field,\n accessorName: fieldAccessorName,\n orm,\n isVirtual: true,\n }),\n });\n });\n\n return modelSelectorSpec;\n}\n","/* eslint-disable max-classes-per-file */\nimport Session from \"./Session\";\nimport Model from \"./Model\";\nimport { createDatabase as defaultCreateDatabase } from \"./db\";\nimport { attr } from \"./fields\";\nimport Field from \"./fields/Field\";\nimport ForeignKey from \"./fields/ForeignKey\";\nimport ManyToMany from \"./fields/ManyToMany\";\n\nimport { createModelSelectorSpec } from \"./selectors\";\n\nimport {\n m2mName,\n attachQuerySetMethods,\n m2mToFieldName,\n m2mFromFieldName,\n warnDeprecated,\n} from \"./utils\";\n\nconst ORM_DEFAULTS = {\n createDatabase: defaultCreateDatabase,\n};\n\nconst RESERVED_TABLE_OPTIONS = [\"indexes\", \"meta\"];\nconst isReservedTableOption = (word) => RESERVED_TABLE_OPTIONS.includes(word);\n\n/**\n * ORM - the Object Relational Mapper.\n *\n * Use instances of this class to:\n *\n * - Register your {@link Model} classes using {@link ORM#register}\n * - Get the empty state for the underlying database with {@link ORM#getEmptyState}\n * - Start an immutable database session with {@link ORM#session}\n * - Start a mutating database session with {@link ORM#mutableSession}\n *\n * Internally, this class handles generating a schema specification from models\n * to the database.\n */\nclass ORM {\n /**\n * Creates a new ORM instance.\n *\n * @param {Object} [opts]\n * @param {Function} [opts.stateSelector] - function that given a Redux state tree\n * will return the ORM state's subtree,\n * e.g. `state => state.orm`\n * (necessary if you want to use selectors)\n * @param {Function} [opts.createDatabase] - function that creates a database\n */\n constructor(opts) {\n const { createDatabase } = { ...ORM_DEFAULTS, ...(opts || {}) };\n this.createDatabase = createDatabase;\n this.registry = [];\n this.implicitThroughModels = [];\n this.installedFields = {};\n this.stateSelector = opts ? opts.stateSelector : null;\n }\n\n /**\n * Registers a {@link Model} class to the ORM.\n *\n * If the model has declared any ManyToMany fields, their\n * through models will be generated and registered with\n * this call, unless a custom through model has been specified.\n *\n * @param {...Model} models - a {@link Model} class to register\n * @return {undefined}\n */\n register(...models) {\n models.forEach((model) => {\n if (model.modelName === undefined) {\n throw new Error(\n \"A model was passed that doesn't have a modelName set\"\n );\n }\n\n model.invalidateClassCache();\n\n this.registerManyToManyModelsFor(model);\n this.registry.push(model);\n\n Object.defineProperty(this, model.modelName, {\n get: () => {\n // make sure virtualFields are set up\n this._setupModelPrototypes(this.registry);\n\n return createModelSelectorSpec({\n model,\n orm: this,\n });\n },\n });\n });\n }\n\n registerManyToManyModelsFor(model) {\n const { fields } = model;\n const thisModelName = model.modelName;\n\n Object.entries(fields).forEach(([fieldName, fieldInstance]) => {\n if (!(fieldInstance instanceof ManyToMany)) {\n return;\n }\n\n let toModelName;\n if (fieldInstance.toModelName === \"this\") {\n toModelName = thisModelName;\n } else {\n toModelName = fieldInstance.toModelName; // eslint-disable-line prefer-destructuring\n }\n\n const selfReferencing = thisModelName === toModelName;\n const fromFieldName = m2mFromFieldName(thisModelName);\n const toFieldName = m2mToFieldName(toModelName);\n\n if (fieldInstance.through) {\n if (selfReferencing && !fieldInstance.throughFields) {\n throw new Error(\n \"Self-referencing many-to-many relationship at \" +\n `\"${thisModelName}.${fieldName}\" using custom ` +\n `model \"${fieldInstance.through}\" has no ` +\n \"throughFields key. Cannot determine which \" +\n \"fields reference the instances partaking \" +\n \"in the relationship.\"\n );\n }\n } else {\n const Through = class ThroughModel extends Model {};\n\n Through.modelName = m2mName(thisModelName, fieldName);\n\n const PlainForeignKey = class PlainForeignKey extends ForeignKey {\n get installsBackwardsVirtualField() {\n return false;\n }\n\n get installsBackwardsDescriptor() {\n return false;\n }\n };\n const ForeignKeyClass = selfReferencing\n ? PlainForeignKey\n : ForeignKey;\n Through.fields = {\n id: attr(),\n [fromFieldName]: new ForeignKeyClass(thisModelName),\n [toFieldName]: new ForeignKeyClass(toModelName),\n };\n\n Through.invalidateClassCache();\n this.implicitThroughModels.push(Through);\n }\n });\n }\n\n /**\n * Gets a {@link Model} class by its name from the registry.\n * @param {string} modelName - the name of the {@link Model} class to get\n * @throws If {@link Model} class is not found.\n * @return {Model} the {@link Model} class, if found\n */\n get(modelName) {\n const allModels = this.registry.concat(this.implicitThroughModels);\n const found = Object.values(allModels).find(\n (model) => model.modelName === modelName\n );\n\n if (typeof found === \"undefined\") {\n throw new Error(`Did not find model ${modelName} from registry.`);\n }\n return found;\n }\n\n getModelClasses() {\n this._setupModelPrototypes(this.registry);\n this._setupModelPrototypes(this.implicitThroughModels);\n return this.registry.concat(this.implicitThroughModels);\n }\n\n generateSchemaSpec() {\n const models = this.getModelClasses();\n const tables = models.reduce((spec, modelClass) => {\n const tableName = modelClass.modelName;\n const tableSpec = modelClass.tableOptions();\n Object.keys(tableSpec)\n .filter(isReservedTableOption)\n .forEach((key) => {\n throw new Error(\n `Reserved keyword \\`${key}\\` used in ${tableName}.options.`\n );\n });\n spec[tableName] = {\n fields: { ...modelClass.fields },\n ...tableSpec,\n };\n return spec;\n }, {});\n return { tables };\n }\n\n getDatabase() {\n if (!this.db) {\n this.db = this.createDatabase(this.generateSchemaSpec());\n }\n return this.db;\n }\n\n /**\n * Returns the empty database state.\n * @return {Object} the empty state\n */\n getEmptyState() {\n return this.getDatabase().getEmptyState();\n }\n\n /**\n * Begins an immutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n session(state) {\n return new Session(this, this.getDatabase(), state);\n }\n\n /**\n * Begins a mutable database session.\n *\n * @param {Object} state - the state the database manages\n * @return {Session} a new {@link Session} instance\n */\n mutableSession(state) {\n return new Session(this, this.getDatabase(), state, true);\n }\n\n /**\n * @private\n */\n _setupModelPrototypes(models) {\n models\n .filter((model) => !model.isSetUp)\n .forEach((model) => {\n const { fields, modelName, querySetClass } = model;\n Object.entries(fields).forEach(([fieldName, field]) => {\n if (!(field instanceof Field)) {\n throw new Error(\n `${modelName}.${fieldName} is of type \"${typeof field}\" ` +\n \"but must be an instance of Field. Please use the \" +\n \"`attr`, `fk`, `oneToOne` and `many` \" +\n \"functions to define fields.\"\n );\n }\n if (!this._isFieldInstalled(modelName, fieldName)) {\n this._installField(field, fieldName, model);\n this._setFieldInstalled(modelName, fieldName);\n }\n });\n attachQuerySetMethods(model, querySetClass);\n model.isSetUp = true;\n });\n }\n\n /**\n * @private\n */\n _isFieldInstalled(modelName, fieldName) {\n return this.installedFields.hasOwnProperty(modelName)\n ? !!this.installedFields[modelName][fieldName]\n : false;\n }\n\n /**\n * @private\n */\n _setFieldInstalled(modelName, fieldName) {\n if (!this.installedFields.hasOwnProperty(modelName)) {\n this.installedFields[modelName] = {};\n }\n this.installedFields[modelName][fieldName] = true;\n }\n\n /**\n * Installs a field on a model and its related models if necessary.\n * @private\n */\n _installField(field, fieldName, model) {\n const FieldInstaller = field.installerClass;\n new FieldInstaller({\n field,\n fieldName,\n model,\n orm: this,\n }).run();\n }\n\n // DEPRECATED AND REMOVED METHODS\n\n /**\n * @deprecated Use {@link ORM#mutableSession} instead.\n */\n withMutations(state) {\n warnDeprecated(\n \"`ORM.prototype.withMutations` has been deprecated. \" +\n \"Use `ORM.prototype.mutableSession` instead.\"\n );\n return this.mutableSession(state);\n }\n\n /**\n * @deprecated Use {@link ORM#session} instead.\n */\n from(state) {\n warnDeprecated(\n \"`ORM.prototype.from` has been deprecated. \" +\n \"Use `ORM.prototype.session` instead.\"\n );\n return this.session(state);\n }\n\n /**\n * @deprecated Use {@link ORM#getEmptyState} instead.\n */\n getDefaultState() {\n warnDeprecated(\n \"`ORM.prototype.getDefaultState` has been deprecated. Use \" +\n \"`ORM.prototype.getEmptyState` instead.\"\n );\n return this.getEmptyState();\n }\n\n /**\n * @deprecated Define a Model class instead.\n */\n define() {\n throw new Error(\n \"`ORM.prototype.define` has been removed. Please define a Model class.\"\n );\n }\n}\n\nexport function DeprecatedSchema() {\n throw new Error(\n \"Schema has been renamed to ORM. Please import ORM instead of Schema \" +\n \"from Redux-ORM.\"\n );\n}\n\nexport { ORM };\n\nexport default ORM;\n","import { STATE_FLAG } from \"./constants\";\n\nconst defaultEqualityCheck = (a, b) => a === b;\nexport const eqCheck = defaultEqualityCheck;\n\nconst isOrmState = (arg) =>\n arg && typeof arg === \"object\" && arg.hasOwnProperty(STATE_FLAG);\n\nconst argsAreEqual = (lastArgs, nextArgs, equalityCheck) =>\n nextArgs.every(\n (arg, index) =>\n (isOrmState(arg) && isOrmState(lastArgs[index])) ||\n equalityCheck(arg, lastArgs[index])\n );\n\nconst rowsAreEqual = (ids, rowsA, rowsB) =>\n ids.every((id) => rowsA[id] === rowsB[id]);\n\nconst accessedModelInstancesAreEqual = (previous, ormState, orm) => {\n const { accessedInstances } = previous;\n\n return Object.entries(accessedInstances).every(([modelName, instances]) => {\n // if the entire table has not been changed, we have nothing to do\n if (previous.ormState[modelName] === ormState[modelName]) {\n return true;\n }\n\n const { mapName } = orm.getDatabase().describe(modelName);\n\n const { [mapName]: previousRows } = previous.ormState[modelName];\n const { [mapName]: rows } = ormState[modelName];\n\n const accessedIds = Object.keys(instances);\n return rowsAreEqual(accessedIds, previousRows, rows);\n });\n};\n\nconst accessedIndexesAreEqual = (previous, ormState) => {\n const { accessedIndexes } = previous;\n\n return Object.entries(accessedIndexes).every(([modelName, indexes]) =>\n Object.entries(indexes).every(([column, values]) =>\n values.every(\n (value) =>\n previous.ormState[modelName].indexes[column][value] ===\n ormState[modelName].indexes[column][value]\n )\n )\n );\n};\n\nconst fullTableScannedModelsAreEqual = (previous, ormState) =>\n previous.fullTableScannedModels.every(\n (modelName) => previous.ormState[modelName] === ormState[modelName]\n );\n\n/**\n * A memoizer to use with redux-orm\n * selectors. When the memoized function is first run,\n * the memoizer will remember the models that are accessed\n * during that function run.\n *\n * On subsequent runs, the memoizer will check if those\n * models' states have changed compared to the previous run.\n *\n * Memoization algorithm operates like this:\n *\n * 1. Has the selector been run before? If not, go to 6.\n *\n * 2. If the selector has other input selectors in addition to the\n * ORM state selector, check their results for equality with the previous results.\n * If they aren't equal, go to 6.\n *\n * 3. Some filter queries may have required scanning entire tables during the last run.\n * If any of those tables have changed, go to 6.\n *\n * 4. Check which foreign key indexes the database has used to speed up queries\n * during the last run. If any have changed, go to 6.\n *\n * 5. Check which Model's instances the selector has accessed during the last run.\n * Check for equality with each of those states versus their states in the\n * previous ORM state. If all of them are equal, return the previous result.\n *\n * 6. Run the selector. Check the Session object used by the selector for\n * which Model's states were accessed, and merge them with the previously\n * saved information about accessed models (if-else branching can change\n * which models are accessed on different inputs). Save the ORM state and\n * other arguments the selector was called with, overriding previously\n * saved values. Save the selector result. Return the selector result.\n *\n * @private\n * @param {Function} func - function to memoize\n * @param {Function} argEqualityCheck - equality check function to use with normal\n * selector args\n * @param {ORM} orm - a redux-orm ORM instance\n * @return {Function} `func` memoized.\n */\nexport function memoize(func, argEqualityCheck = defaultEqualityCheck, orm) {\n let previous = {\n /* Result of the previous function call */\n result: null,\n /* Arguments to the previous function call (excluding ORM state) */\n args: null,\n /**\n * Snapshot of the previous database.\n *\n * Lets us know how the tables looked like\n * during the previous function call.\n */\n ormState: null,\n /**\n * Names of models whose tables have been scanned completely\n * during previous function call (contains only model names)\n * Format example: ['Book']\n */\n fullTableScannedModels: [],\n /**\n * Map of which model instances have been accessed\n * during previous function call.\n * Contains only PKs of accessed instances.\n * Format example: { Book: { 1: true, 3: true } }\n */\n accessedInstances: {},\n /**\n * Map of which attribute indexes have been accessed\n * during previous function call.\n * Contains only attributes that were actually filtered on.\n * Author.withId(3).books would add 3 to the authorId index below.\n * Format example: { Book: { authorId: [1, 2], publisherId: [5] } }\n */\n accessedIndexes: {},\n };\n\n return (...stateAndArgs) => {\n /**\n * The first argument to this function needs to be\n * the ORM's reducer state in the user's Redux store.\n */\n const [ormState, ...args] = stateAndArgs;\n\n const selectorWasCalledBefore = Boolean(previous.args);\n if (\n selectorWasCalledBefore &&\n argsAreEqual(previous.args, args, argEqualityCheck) &&\n fullTableScannedModelsAreEqual(previous, ormState) &&\n accessedIndexesAreEqual(previous, ormState) &&\n accessedModelInstancesAreEqual(previous, ormState, orm)\n ) {\n /**\n * None of this selector's dependencies have changed\n * since the last time that we called it.\n */\n return previous.result;\n }\n\n /**\n * Start a session so that the selector can access the database.\n * Make this session immutable. This way we can find out if\n * the operations that the selector performs are cacheable.\n */\n const session = orm.session(ormState);\n /* Replace all ORM state arguments by the session above */\n const argsWithSession = args.map((arg) =>\n isOrmState(arg) ? session : arg\n );\n\n /* This is where we call the actual function */\n const result = func.apply(null, argsWithSession); // eslint-disable-line prefer-spread\n\n /**\n * The metadata for the previous call are no longer valid.\n * Update cached values.\n */\n previous = {\n /* Arguments that were passed to the selector */\n args,\n /* Selector result */\n result,\n /* Redux state slice for session.state */\n ormState,\n /* Rows retrieved by resolved primary key */\n accessedInstances: session.accessedModelInstances,\n /* Foreign key indexes that were used to speed up queries */\n accessedIndexes: session.accessedIndexes,\n /* Tables that had to be scanned completely */\n fullTableScannedModels: session.fullTableScannedModels,\n };\n\n return result;\n };\n}\n","import { createSelectorCreator } from \"reselect\";\nimport createCachedSelector, { FlatMapCache } from \"re-reselect\";\n\nimport { memoize } from \"./memoize\";\n\nimport { ORM } from \"./ORM\";\nimport SelectorSpec from \"./selectors/SelectorSpec\";\nimport MapSelectorSpec from \"./selectors/MapSelectorSpec\";\n\n/**\n * @module redux\n * @desc Provides functions for integration with Redux.\n */\n\n/**\n * Calls all models' reducers if they exist.\n *\n * @return {undefined}\n * @global\n */\nexport function defaultUpdater(session, action) {\n session.sessionBoundModels.forEach((modelClass) => {\n if (typeof modelClass.reducer === \"function\") {\n // This calls this.applyUpdate to update this.state\n modelClass.reducer(action, modelClass, session);\n }\n });\n}\n\n/**\n * Call the returned function to pass actions to Redux-ORM.\n *\n * @global\n *\n * @param {ORM} orm - the ORM instance.\n * @param {Function} [updater] - the function updating the ORM state based on the given action.\n * @return {Function} reducer that will update the ORM state.\n */\nexport function createReducer(orm, updater = defaultUpdater) {\n return (state, action) => {\n const session = orm.session(state || orm.getEmptyState());\n updater(session, action);\n return session.state;\n };\n}\n\n/**\n * @private\n * @param {SelectorSpec} spec\n */\nfunction createSelectorFromSpec(spec) {\n if (spec instanceof MapSelectorSpec) {\n const parentSelector = createSelectorFromSpec(spec.parent);\n return spec.createResultFunc(parentSelector);\n }\n return createCachedSelector(\n spec.dependencies,\n spec.resultFunc\n )({\n keySelector: spec.keySelector,\n cacheObject: new FlatMapCache(),\n selectorCreator: createSelector, // eslint-disable-line no-use-before-define\n });\n}\n\n/**\n * Tries to find ORM instance using the argument.\n * @private\n * @param {*} arg\n */\nfunction toORM(arg) {\n /* eslint-disable no-underscore-dangle */\n if (arg instanceof ORM) {\n return arg;\n }\n if (arg instanceof SelectorSpec) {\n return arg._orm;\n }\n return false;\n}\n\nconst selectorCache = new Map();\nconst SELECTOR_KEY = Symbol.for(\"REDUX_ORM_SELECTOR\");\n\n/**\n * @private\n * @param {function|ORM|SelectorSpec} arg\n */\nfunction toSelector(arg) {\n if (typeof arg === \"function\") {\n return arg;\n }\n if (arg instanceof ORM) {\n return arg.stateSelector;\n }\n if (arg instanceof MapSelectorSpec) {\n // the argument to map() needs to be callable\n arg.selector = toSelector(arg.selector);\n }\n if (arg instanceof SelectorSpec) {\n const { orm, cachePath } = arg;\n let level;\n\n // the selector cache for the spec's ORM\n if (!selectorCache.has(orm)) {\n selectorCache.set(orm, new Map());\n }\n const ormSelectors = selectorCache.get(orm);\n\n /**\n * Drill down into selector map by cachePath.\n *\n * The selector itself is stored under a special SELECTOR_KEY\n * so that we can store selectors below it as well.\n */\n level = ormSelectors;\n for (let i = 0; i < cachePath.length; ++i) {\n const storageKey = cachePath[i];\n if (!level.has(storageKey)) {\n level.set(storageKey, new Map());\n }\n level = level.get(storageKey);\n }\n if (level && level.has(SELECTOR_KEY)) {\n // Cache hit: the selector has been created before\n return level.get(SELECTOR_KEY);\n }\n // Cache miss: the selector needs to be created\n const selector = createSelectorFromSpec(arg);\n // Save the selector at the cachePath position\n level.set(SELECTOR_KEY, selector);\n\n return selector;\n }\n throw new Error(\n `Failed to interpret selector argument: ${JSON.stringify(\n arg\n )} of type ${typeof arg}`\n );\n}\n\n/**\n * Returns a memoized selector based on passed arguments.\n * This is similar to `reselect`'s `createSelector`,\n * except you can also pass a single function to be memoized.\n *\n * If you pass multiple functions, the format will be the\n * same as in `reselect`. The last argument is the selector\n * function and the previous are input selectors.\n *\n * When you use this method to create a selector, the returned selector\n * expects the whole `redux-orm` state branch as input. In the selector\n * function that you pass as the last argument, any of the arguments\n * you pass first will be considered selectors and mapped\n * to their outputs, like in `reselect`.\n *\n * Here are some example selectors:\n *\n * ```javascript\n * // orm is an instance of ORM\n * // reduxState is the state of a Redux store\n * const books = createSelector(orm.Book);\n * books(reduxState) // array of book refs\n *\n * const bookAuthors = createSelector(orm.Book.authors);\n * bookAuthors(reduxState) // two-dimensional array of author refs for each book\n * ```\n * Selectors can easily be applied to related models:\n * ```javascript\n * const bookAuthorNames = createSelector(\n * orm.Book.authors.map(orm.Author.name),\n * );\n * bookAuthorNames(reduxState, 8) // names of all authors of book with ID 8\n * bookAuthorNames(reduxState, [8, 9]) // 2D array of names of all authors of books with IDs 8 and 9\n * ```\n * Also note that `orm.Author.name` did not need to be wrapped in another `createSelector` call,\n * although that would be possible.\n *\n * For more complex calculations you can access\n * entire session objects by passing an ORM instance.\n * ```javascript\n * const freshBananasCost = createSelector(\n * orm,\n * session => {\n * const banana = session.Product.get({\n * name: \"Banana\",\n * });\n * // amount of fresh bananas in shopping cart\n * const amount = session.ShoppingCart.filter({\n * product_id: banana.id,\n * is_fresh: true,\n * }).count();\n * return `USD ${amount * banana.price}`;\n * }\n * );\n * ```\n *\n * redux-orm uses a special memoization function to avoid recomputations.\n *\n * Everytime a selector runs, this function records which instances\n * of your `Model`s were accessed.
\n * On subsequent runs, the selector first checks if the previously\n * accessed instances or `args` have changed in any way:\n *
    \n *
  • If yes, the selector calls the function you passed to it.
  • \n *
  • If not, it just returns the previous result\n * (unless you call it for the first time).
  • \n *
\n *\n * This way you can use pure rendering in your React components\n * for performance gains.\n *\n * @global\n *\n * @param {...Function} args - zero or more input selectors\n * and the selector function.\n * @return {Function} memoized selector\n */\nexport function createSelector(...args) {\n if (!args.length) {\n throw new Error(\"Cannot create a selector without arguments.\");\n }\n\n const resultArg = args.pop();\n const dependencies = Array.isArray(args[0]) ? args[0] : args;\n\n const orm = dependencies.map(toORM).find(Boolean);\n const inputFuncs = dependencies.map(toSelector);\n\n if (typeof resultArg === \"function\") {\n if (!orm) {\n throw new Error(\n \"Failed to resolve the current ORM database state. Please pass an ORM instance or an ORM selector as an argument to `createSelector()`.\"\n );\n } else if (!orm.stateSelector) {\n throw new Error(\n \"Failed to resolve the current ORM database state. Please pass an object to the ORM constructor that specifies a `stateSelector` function.\"\n );\n } else if (typeof orm.stateSelector !== \"function\") {\n throw new Error(\n `Failed to resolve the current ORM database state. Please pass a function when specifying the ORM's \\`stateSelector\\`. Received: ${JSON.stringify(\n orm.stateSelector\n )} of type ${typeof orm.stateSelector}`\n );\n }\n\n return createSelectorCreator(\n memoize,\n undefined,\n orm\n )([orm.stateSelector, ...inputFuncs], resultArg);\n }\n\n if (resultArg instanceof ORM) {\n throw new Error(\n \"ORM instances cannot be the result function of selectors. You can access your models in the last function that you pass to `createSelector()`.\"\n );\n }\n if (inputFuncs.length) {\n console.warn(\n \"Your input selectors will be ignored: the passed result function does not require any input.\"\n );\n }\n\n return toSelector(resultArg);\n}\n","import QuerySet from \"./QuerySet\";\nimport Model from \"./Model\";\nimport { DeprecatedSchema, ORM } from \"./ORM\";\nimport Session from \"./Session\";\nimport { createReducer, createSelector } from \"./redux\";\nimport ForeignKey from \"./fields/ForeignKey\";\nimport ManyToMany from \"./fields/ManyToMany\";\nimport OneToOne from \"./fields/OneToOne\";\nimport Attribute from \"./fields/Attribute\";\nimport { fk, many, oneToOne, attr } from \"./fields\";\n\nconst Schema = DeprecatedSchema;\n\nconst Backend = function RemovedBackend() {\n throw new Error(\n \"Having a custom Backend instance is now unsupported. \" +\n \"Documentation for database customization is upcoming, for now \" +\n \"please look at the db folder in the source.\"\n );\n};\n\nexport {\n Attribute,\n QuerySet,\n Model,\n ORM,\n Schema,\n Backend,\n Session,\n ForeignKey,\n ManyToMany,\n OneToOne,\n fk,\n many,\n attr,\n oneToOne,\n createReducer,\n createSelector,\n};\n\nexport default Model;\n"],"sourceRoot":""} +\ No newline at end of file +diff --git a/node_modules/redux-orm/es/Model.js b/node_modules/redux-orm/es/Model.js +index 541a8d1..b630452 100644 +--- a/node_modules/redux-orm/es/Model.js ++++ b/node_modules/redux-orm/es/Model.js +@@ -274,7 +274,7 @@ var Model = /*#__PURE__*/function () { + var value = userProps[key]; + props[key] = normalizeEntity(value); + } else if (field.getDefault) { +- props[key] = field.getDefault(); ++ props[key] = field.getDefault(userProps); + } + } else if (valuePassed) { + // Save for later processing +diff --git a/node_modules/redux-orm/es/redux-orm-tests.js b/node_modules/redux-orm/es/redux-orm-tests.js +new file mode 100644 +index 0000000..a33fa22 +--- /dev/null ++++ b/node_modules/redux-orm/es/redux-orm-tests.js +@@ -0,0 +1,769 @@ ++import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; ++import _defineProperty from "@babel/runtime/helpers/defineProperty"; ++ ++function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } ++ ++function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } ++ ++import { attr, createSelector as createOrmSelector, fk, many, Model, ORM } from "./"; ++ ++var Book = /*#__PURE__*/function (_Model) { ++ _inheritsLoose(Book, _Model); ++ ++ function Book() { ++ return _Model.apply(this, arguments) || this; ++ } ++ ++ Book.reducer = function reducer(action, _Book) { ++ switch (action.type) { ++ case "CREATE_BOOK": ++ _Book.create(action.payload); ++ ++ break; ++ ++ case "DELETE_BOOK": ++ _Book.filter(function (book) { ++ return book.title === action.payload.title; ++ })["delete"](); ++ ++ break; ++ ++ default: ++ break; ++ } ++ }; ++ ++ return Book; ++}(Model); ++ ++_defineProperty(Book, "modelName", "Book"); ++ ++_defineProperty(Book, "fields", { ++ title: attr(), ++ coverArt: attr({ ++ getDefault: function getDefault() { ++ return "empty.png"; ++ } ++ }), ++ publisher: fk("Publisher", "books"), ++ authors: many({ ++ to: "Person", ++ relatedName: "books", ++ through: "Authorship" ++ }) ++}); ++ ++_defineProperty(Book, "options", { ++ idAttribute: "title" ++}); ++ ++var Person = /*#__PURE__*/function (_Model2) { ++ _inheritsLoose(Person, _Model2); ++ ++ function Person() { ++ return _Model2.apply(this, arguments) || this; ++ } ++ ++ return Person; ++}(Model); ++ ++_defineProperty(Person, "modelName", "Person"); ++ ++_defineProperty(Person, "fields", { ++ id: attr(), ++ firstName: attr(), ++ lastName: attr(), ++ nationality: attr() ++}); ++ ++var Authorship = /*#__PURE__*/function (_Model3) { ++ _inheritsLoose(Authorship, _Model3); ++ ++ function Authorship() { ++ return _Model3.apply(this, arguments) || this; ++ } ++ ++ return Authorship; ++}(Model); ++ ++_defineProperty(Authorship, "modelName", "Authorship"); ++ ++_defineProperty(Authorship, "fields", { ++ year: attr(), ++ book: fk("Book"), ++ author: fk("Person") ++}); ++ ++var Publisher = /*#__PURE__*/function (_Model4) { ++ _inheritsLoose(Publisher, _Model4); ++ ++ function Publisher() { ++ return _Model4.apply(this, arguments) || this; ++ } ++ ++ return Publisher; ++}(Model); ++ ++_defineProperty(Publisher, "modelName", "Publisher"); ++ ++_defineProperty(Publisher, "fields", { ++ index: attr(), ++ name: attr() ++}); ++ ++_defineProperty(Publisher, "options", { ++ idAttribute: "index" ++}); ++ ++var schema = { ++ Book: Book, ++ Authorship: Authorship, ++ Person: Person, ++ Publisher: Publisher ++}; ++ ++// create ORM instance and register { Book, Publisher, Person, Authorship } schema ++var ormFixture = function ormFixture() { ++ var orm = new ORM({ ++ stateSelector: function stateSelector(state) { ++ return state.db; ++ } ++ }); ++ orm.register(Book, Authorship, Person, Publisher); ++ return orm; ++}; // create ORM instance and acquire new session ++ ++ ++var sessionFixture = function sessionFixture() { ++ var orm = ormFixture(); ++ return orm.session(orm.getEmptyState()); ++}; // argOptionalityAtModelCreation - inferred optionality of ModelType.create argument properties ++ ++ ++(function () { ++ var _sessionFixture = sessionFixture(), ++ Book = _sessionFixture.Book, ++ Publisher = _sessionFixture.Publisher; ++ /** ++ * 1.A. `number` Model identifiers are optional due to built-in incremental sequencing of numeric identifiers ++ * @see {@link PublisherFields.index} ++ */ ++ ++ ++ Publisher.create({ ++ name: "P1" ++ }); ++ /** ++ * 1.B. `string` identifiers are mandatory ++ */ ++ ++ Book.create({ ++ publisher: 1, ++ coverArt: "foo.bmp" ++ }); // $ExpectError ++ ++ /** ++ * 2. non-relational fields with corresponding descriptors that contain defined `getDefault` callback: (`attr({ getDefault: () => 'empty.png' })`) ++ * @see {@link Book#fields.coverArt} ++ */ ++ ++ Book.create({ ++ title: "B2", ++ publisher: 1 ++ }); ++ /** ++ * 3. both attribute and relational fields where corresponding ModelFields interface property has optional (`?`) modifier ++ * @see {@link BookFields.authors} ++ */ ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ coverArt: "foo.bmp" ++ }); ++})(); // argPropertyTypeRestrictionsOnCreate - ModelFields contribute to type constraints within ModelType.create arguments ++ ++ ++(function () { ++ var _sessionFixture2 = sessionFixture(), ++ Book = _sessionFixture2.Book, ++ Publisher = _sessionFixture2.Publisher, ++ Person = _sessionFixture2.Person; ++ /** Keys of declared model fields interface contribute strict requirements regarding corresponding property types */ ++ ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ coverArt: "foo.png", ++ authors: ["A1"] ++ }); ++ /* Incompatible property types: */ ++ ++ Book.create({ ++ title: 1, ++ publisher: 1 ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: "P1" ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ coverArt: 4 ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ authors: {} ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ authors: function authors() { ++ return null; ++ } ++ }); // $ExpectError ++ ++ /** ++ * Properties associated to relational fields may be supplied with: ++ * ++ * - a primitive type matching id type of relation target ++ * - Model/SessionBoundModel instance matching relation target ++ * ++ * In case of MutableQuerySets/many-to-many relationships, an array of union of above-mentioned types is accepted ++ */ ++ ++ var authorModel = Person.create({ ++ id: "A1", ++ firstName: "A1", ++ lastName: "A1" ++ }); ++ var publisherModel = Publisher.create({ ++ name: "P1" ++ }); ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel, ++ authors: [authorModel] ++ }); ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel.index, ++ authors: [authorModel, "A1", authorModel, authorModel.ref.id] ++ }); ++ /** Id types are verified to match relation target */ ++ ++ Book.create({ ++ title: "B1", ++ publisher: authorModel ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel.ref, ++ authors: [publisherModel.ref, "A1"] ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: "P1 " ++ } ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: 0 ++ }, ++ authors: [authorModel, true] ++ }); // $ExpectError ++})(); // argPropertyTypeRestrictionsOnUpsert - ModelFields contribute to type constraints within ModelType.create arguments ++ ++ ++(function () { ++ var _sessionFixture3 = sessionFixture(), ++ Book = _sessionFixture3.Book, ++ Publisher = _sessionFixture3.Publisher, ++ Person = _sessionFixture3.Person; ++ /** Upsert requires id to be provided */ ++ ++ ++ Book.upsert({ ++ publisher: 1 ++ }); // $ExpectError ++ // $ExpectType SessionBoundModel> || SessionBoundModel> ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1 ++ }); ++ /* Incompatible property types: */ ++ ++ Book.upsert({ ++ title: 4, ++ publisher: "P1" ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: "P1" ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ coverArt: 4 ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ authors: {} ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ authors: function authors() { ++ return null; ++ } ++ }); // $ExpectError ++ ++ /** ++ * Properties associated to relational fields may be supplied with: ++ * ++ * - a primitive type matching id type of relation target ++ * - a Ref type derived from relation target ++ * - Model/SessionBoundModel instance matching relation target ++ * - a map containing {Idkey:IdType} entry, where IdKey/IdType are compatible with relation target id key:type signature ++ * ++ * In case of MutableQuerySets/many-to-many relationships, an array of union of above-mentioned types is accepted ++ */ ++ ++ var authorModel = Person.upsert({ ++ id: "A1", ++ firstName: "A1", ++ lastName: "A1" ++ }); ++ var publisherModel = Publisher.upsert({ ++ name: "P1", ++ index: 1 ++ }); ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ authors: [authorModel] ++ }); ++ Book.upsert({ ++ title: "B1", ++ publisher: publisherModel, ++ authors: [authorModel] ++ }); ++ /** Id types are verified to match relation target */ ++ ++ Book.create({ ++ title: "B1", ++ publisher: authorModel ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel.ref, ++ authors: [publisherModel.ref, "A1"] ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: "P1 " ++ } ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: 0 ++ }, ++ authors: [authorModel, true] ++ }); // $ExpectError ++})(); // restriction of allowed ORM.register args ++ ++ ++(function () { ++ var incompleteSchema = { ++ Book: Book, ++ Authorship: Authorship, ++ Person: Person ++ }; ++ var orm = new ORM(); ++ orm.register(Book, Authorship, Person, Publisher); // $ExpectError ++})(); // inference of ORM branch state type ++ ++ ++(function () { ++ var emptyState = ormFixture().getEmptyState(); ++ var bookTableState = emptyState.Book; // $ExpectType TableState ++ ++ var bookItemsById = emptyState.Book.itemsById; // $ExpectType { readonly [K: string]: Ref; } ++ ++ var authorshipMetaState = emptyState.Authorship.meta.maxId; // $ExpectType number ++ ++ var bookMetaState = emptyState.Book.meta.maxId; // $ExpectType number | null ++})(); // sessionInstanceExtendedWithNarrowedModelClasses - indexing session instance using registered Model.modelName returns narrowed Model class ++ ++ ++(function () { ++ var _sessionFixture4 = sessionFixture(), ++ Book = _sessionFixture4.Book, ++ Person = _sessionFixture4.Person, ++ Publisher = _sessionFixture4.Publisher; // $ExpectType { Book: ModelType; Person: ModelType; Publisher: ModelType; } ++ ++ ++ var sessionBoundModels = { ++ Book: Book, ++ Person: Person, ++ Publisher: Publisher ++ }; ++ return _objectSpread({}, sessionBoundModels); ++})(); // IdKey and IdType mapped types support for valid identifier configurations ++ ++ ++(function () {})(); // Model#create result retains custom properties supplied during call ++ ++ ++(function () { ++ var _sessionFixture5 = sessionFixture(), ++ Book = _sessionFixture5.Book; ++ ++ var basicBook = Book.create({ ++ title: "book", ++ publisher: 1 ++ }); ++ // $ExpectType "title" | "coverArt" | "publisher" | "authors" || keyof BookFields ++ var basicBookTitle = basicBook.title; // $ExpectType string ++ ++ var authors = basicBook.authors; // $ExpectType MutableQuerySet ++ ++ var unknownPropertyError = basicBook.customProp; // $ExpectError ++ ++ var customProp = { ++ foo: 0, ++ bar: true ++ }; ++ var extendedBook = Book.create({ ++ title: "extendedBook", ++ publisher: 1, ++ customProp: customProp ++ }); ++ // $ExpectType "title" | "coverArt" | "publisher" | "authors" | "customProp" || keyof BookFields | "customProp" ++ var extendedBookTitle = extendedBook.title; // $ExpectType string ++ ++ var instanceCustomProp = extendedBook.customProp; // $ExpectType { foo: number; bar: boolean; } ++})(); // reducer API is intact ++ ++ ++(function () { ++ var orm = ormFixture(); ++ return function (state, action) { ++ var session = orm.session(state); ++ session.Book.create(action.payload); ++ return session.state; ++ }; ++})(); // QuerySet type is retained though query chain until terminated. ++// Orders are optional, must conform to SortOrder type when present. ++// QuerySet.orderBy overloads accept iteratees applicable to QuerySet's type only ++// orderByArguments ++ ++ ++(function () { ++ var _sessionFixture6 = sessionFixture(), ++ Book = _sessionFixture6.Book; ++ ++ var booksQuerySet = Book.all(); // $ExpectType readonly Ref[] ++ ++ booksQuerySet.orderBy("title").orderBy(function (book) { ++ return book.publisher; ++ }, "desc").orderBy(function (book) { ++ return book.title; ++ }, false).orderBy("publisher", "asc").orderBy("publisher", true).toRefArray(); // $ExpectType readonly Ref[] ++ ++ booksQuerySet.orderBy(["title"], ["asc"]).orderBy(["publisher", "title"], [true, "desc"]).orderBy([function (book) { ++ return book.title; ++ }], ["desc"]).orderBy(["title"]).orderBy([function (book) { ++ return book.title; ++ }, "publisher"], ["desc", false]).toRefArray(); ++ booksQuerySet.orderBy("notABookPropertyKey"); // $ExpectError ++ ++ booksQuerySet.orderBy([function (book) { ++ return book.notABookPropertyKey; ++ }], false); // $ExpectError ++ ++ booksQuerySet.orderBy("title", "inc"); // $ExpectError ++ ++ booksQuerySet.orderBy("title", 4); // $ExpectError ++ ++ booksQuerySet.orderBy(["notABookPropertyKey"]); // $ExpectError ++ ++ booksQuerySet.orderBy([function (book) { ++ return book.notABookPropertyKey; ++ }]); // $ExpectError ++ ++ booksQuerySet.orderBy(["title"], ["inc"]); // $ExpectError ++ ++ booksQuerySet.orderBy(["title"], [4]); // $ExpectError ++})(); // selectors ++ ++ ++(function () { ++ // test fixture, use reselect.createSelector in production code ++ var createSelector = function createSelector(param1Creator, combiner) { ++ return function (state) { ++ return combiner(param1Creator(state)); ++ }; ++ }; ++ ++ var orm = ormFixture(); ++ var ormSelector = createOrmSelector(orm, function (session) { ++ return session.Book.all().toRefArray()[0]; ++ }); ++ var selector = createSelector(function (_ref) { ++ var db = _ref.db; ++ return db; ++ }, ormSelector); ++ createSelector(function (_ref2) { ++ var db = _ref2.db; ++ return db; ++ }, ormSelector // $ExpectError ++ ); ++ selector({ ++ db: orm.getEmptyState() ++ }); // $ExpectType Ref ++})(); // advanced selectors ++ ++ ++(function () { ++ var orm = ormFixture(); ++ var selector0 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (session) { ++ return session.Book.first().ref; ++ }); ++ var selector1 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.bar; ++ }, function (session, title) { ++ return session.Book.get({ ++ title: title ++ }).ref; ++ }); ++ var selector2 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (session, id, title) { ++ return session.Book.get({ ++ id: id, ++ title: title ++ }).ref; ++ }); ++ var selector3 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (session, id, title, id2) { ++ return session.Book.get({ ++ id: id, ++ title: title, ++ id2: id2 ++ }).ref; ++ }); ++ var selector4 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (session, id, title, id2, title2) { ++ return session.Book.get({ ++ id: id, ++ title: title, ++ id2: id2, ++ title2: title2 ++ }).ref; ++ }); ++ var selector5 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (session) { ++ return session.Book.get({ ++ title: arguments.length <= 2 ? undefined : arguments[2] ++ }).ref; ++ }); ++ var selector6 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (session, id, title) { ++ return session.Book.get({ ++ title: title ++ }).ref; ++ }); ++ var invalidSelector = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (session, foo, missingArg) { ++ return foo; ++ } // $ExpectError ++ ); ++ var invalidSelector2 = createOrmSelector(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (session, foo) { ++ return session.Book.withId(foo).ref; ++ } // $ExpectError ++ ); ++ var state = { ++ db: orm.getEmptyState(), ++ foo: 1, ++ bar: "foo" ++ }; ++ selector0(state); // $ExpectType Ref ++ ++ selector1(state); // $ExpectType Ref ++ ++ selector2(state); // $ExpectType Ref ++ ++ selector3(state); // $ExpectType Ref ++ ++ selector4(state); // $ExpectType Ref ++ ++ selector5(state); // $ExpectType Ref ++ ++ selector6(state); // $ExpectType Ref ++})(); // redux-orm-types#7 ++ ++ ++(function () { ++ var _sessionFixture7 = sessionFixture(), ++ Book = _sessionFixture7.Book; ++ ++ Book.exists({ ++ title: "foo" ++ }); ++ Book.all().exists(); ++ Book.exists(); // $ExpectError ++ ++ Book.exists("foo"); // $ExpectError ++ ++ Book.all().exists({}); // $ExpectError ++})(); // redux-orm-types#8 ++ ++ ++(function () { ++ var _sessionFixture8 = sessionFixture(), ++ Book = _sessionFixture8.Book; ++ ++ Book.all().toModelArray(); ++ Book.all().toRefArray(); ++ Book.toModelArray(); // $ExpectError ++ ++ Book.toRefArray(); // $ExpectError ++})(); // redux-orm-types#9 ++ ++ ++(function () { ++ var _sessionFixture9 = sessionFixture(), ++ Book = _sessionFixture9.Book, ++ Person = _sessionFixture9.Person, ++ Publisher = _sessionFixture9.Publisher; ++ ++ var author = Person.create({ ++ id: "1", ++ firstName: "foo", ++ lastName: "bar", ++ nationality: "pl" ++ }); ++ var publisher = Publisher.create({ ++ name: "foo" ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: 1 ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: 1, ++ coverArt: "bar" ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: publisher, ++ coverArt: "bar", ++ authors: ["foo", author] ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: author ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "foo", ++ publisher: "error" ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "foo", ++ publisher: publisher, ++ coverArt: "bar", ++ authors: [3, author] ++ }); // $ExpectError ++})(); // redux-orm-types#18 ++ ++ ++(function () { ++ return many({ ++ to: "Bar", ++ relatedName: "foos", ++ through: "FooBar", ++ throughFields: ["foo", "bar"] ++ }); ++})(); +\ No newline at end of file +diff --git a/node_modules/redux-orm/lib/Model.js b/node_modules/redux-orm/lib/Model.js +index b2982a2..f707fea 100644 +--- a/node_modules/redux-orm/lib/Model.js ++++ b/node_modules/redux-orm/lib/Model.js +@@ -293,7 +293,7 @@ var Model = /*#__PURE__*/function () { + var value = userProps[key]; + props[key] = (0, _utils.normalizeEntity)(value); + } else if (field.getDefault) { +- props[key] = field.getDefault(); ++ props[key] = field.getDefault(userProps); + } + } else if (valuePassed) { + // Save for later processing +diff --git a/node_modules/redux-orm/lib/redux-orm-tests.js b/node_modules/redux-orm/lib/redux-orm-tests.js +new file mode 100644 +index 0000000..5863ac7 +--- /dev/null ++++ b/node_modules/redux-orm/lib/redux-orm-tests.js +@@ -0,0 +1,767 @@ ++"use strict"; ++ ++var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); ++ ++var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose")); ++ ++var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); ++ ++var _ = require("./"); ++ ++function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } ++ ++function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } ++ ++var Book = /*#__PURE__*/function (_Model) { ++ (0, _inheritsLoose2["default"])(Book, _Model); ++ ++ function Book() { ++ return _Model.apply(this, arguments) || this; ++ } ++ ++ Book.reducer = function reducer(action, _Book) { ++ switch (action.type) { ++ case "CREATE_BOOK": ++ _Book.create(action.payload); ++ ++ break; ++ ++ case "DELETE_BOOK": ++ _Book.filter(function (book) { ++ return book.title === action.payload.title; ++ })["delete"](); ++ ++ break; ++ ++ default: ++ break; ++ } ++ }; ++ ++ return Book; ++}(_.Model); ++ ++(0, _defineProperty2["default"])(Book, "modelName", "Book"); ++(0, _defineProperty2["default"])(Book, "fields", { ++ title: (0, _.attr)(), ++ coverArt: (0, _.attr)({ ++ getDefault: function getDefault() { ++ return "empty.png"; ++ } ++ }), ++ publisher: (0, _.fk)("Publisher", "books"), ++ authors: (0, _.many)({ ++ to: "Person", ++ relatedName: "books", ++ through: "Authorship" ++ }) ++}); ++(0, _defineProperty2["default"])(Book, "options", { ++ idAttribute: "title" ++}); ++ ++var Person = /*#__PURE__*/function (_Model2) { ++ (0, _inheritsLoose2["default"])(Person, _Model2); ++ ++ function Person() { ++ return _Model2.apply(this, arguments) || this; ++ } ++ ++ return Person; ++}(_.Model); ++ ++(0, _defineProperty2["default"])(Person, "modelName", "Person"); ++(0, _defineProperty2["default"])(Person, "fields", { ++ id: (0, _.attr)(), ++ firstName: (0, _.attr)(), ++ lastName: (0, _.attr)(), ++ nationality: (0, _.attr)() ++}); ++ ++var Authorship = /*#__PURE__*/function (_Model3) { ++ (0, _inheritsLoose2["default"])(Authorship, _Model3); ++ ++ function Authorship() { ++ return _Model3.apply(this, arguments) || this; ++ } ++ ++ return Authorship; ++}(_.Model); ++ ++(0, _defineProperty2["default"])(Authorship, "modelName", "Authorship"); ++(0, _defineProperty2["default"])(Authorship, "fields", { ++ year: (0, _.attr)(), ++ book: (0, _.fk)("Book"), ++ author: (0, _.fk)("Person") ++}); ++ ++var Publisher = /*#__PURE__*/function (_Model4) { ++ (0, _inheritsLoose2["default"])(Publisher, _Model4); ++ ++ function Publisher() { ++ return _Model4.apply(this, arguments) || this; ++ } ++ ++ return Publisher; ++}(_.Model); ++ ++(0, _defineProperty2["default"])(Publisher, "modelName", "Publisher"); ++(0, _defineProperty2["default"])(Publisher, "fields", { ++ index: (0, _.attr)(), ++ name: (0, _.attr)() ++}); ++(0, _defineProperty2["default"])(Publisher, "options", { ++ idAttribute: "index" ++}); ++var schema = { ++ Book: Book, ++ Authorship: Authorship, ++ Person: Person, ++ Publisher: Publisher ++}; ++ ++// create ORM instance and register { Book, Publisher, Person, Authorship } schema ++var ormFixture = function ormFixture() { ++ var orm = new _.ORM({ ++ stateSelector: function stateSelector(state) { ++ return state.db; ++ } ++ }); ++ orm.register(Book, Authorship, Person, Publisher); ++ return orm; ++}; // create ORM instance and acquire new session ++ ++ ++var sessionFixture = function sessionFixture() { ++ var orm = ormFixture(); ++ return orm.session(orm.getEmptyState()); ++}; // argOptionalityAtModelCreation - inferred optionality of ModelType.create argument properties ++ ++ ++(function () { ++ var _sessionFixture = sessionFixture(), ++ Book = _sessionFixture.Book, ++ Publisher = _sessionFixture.Publisher; ++ /** ++ * 1.A. `number` Model identifiers are optional due to built-in incremental sequencing of numeric identifiers ++ * @see {@link PublisherFields.index} ++ */ ++ ++ ++ Publisher.create({ ++ name: "P1" ++ }); ++ /** ++ * 1.B. `string` identifiers are mandatory ++ */ ++ ++ Book.create({ ++ publisher: 1, ++ coverArt: "foo.bmp" ++ }); // $ExpectError ++ ++ /** ++ * 2. non-relational fields with corresponding descriptors that contain defined `getDefault` callback: (`attr({ getDefault: () => 'empty.png' })`) ++ * @see {@link Book#fields.coverArt} ++ */ ++ ++ Book.create({ ++ title: "B2", ++ publisher: 1 ++ }); ++ /** ++ * 3. both attribute and relational fields where corresponding ModelFields interface property has optional (`?`) modifier ++ * @see {@link BookFields.authors} ++ */ ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ coverArt: "foo.bmp" ++ }); ++})(); // argPropertyTypeRestrictionsOnCreate - ModelFields contribute to type constraints within ModelType.create arguments ++ ++ ++(function () { ++ var _sessionFixture2 = sessionFixture(), ++ Book = _sessionFixture2.Book, ++ Publisher = _sessionFixture2.Publisher, ++ Person = _sessionFixture2.Person; ++ /** Keys of declared model fields interface contribute strict requirements regarding corresponding property types */ ++ ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ coverArt: "foo.png", ++ authors: ["A1"] ++ }); ++ /* Incompatible property types: */ ++ ++ Book.create({ ++ title: 1, ++ publisher: 1 ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: "P1" ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ coverArt: 4 ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ authors: {} ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: 1, ++ authors: function authors() { ++ return null; ++ } ++ }); // $ExpectError ++ ++ /** ++ * Properties associated to relational fields may be supplied with: ++ * ++ * - a primitive type matching id type of relation target ++ * - Model/SessionBoundModel instance matching relation target ++ * ++ * In case of MutableQuerySets/many-to-many relationships, an array of union of above-mentioned types is accepted ++ */ ++ ++ var authorModel = Person.create({ ++ id: "A1", ++ firstName: "A1", ++ lastName: "A1" ++ }); ++ var publisherModel = Publisher.create({ ++ name: "P1" ++ }); ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel, ++ authors: [authorModel] ++ }); ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel.index, ++ authors: [authorModel, "A1", authorModel, authorModel.ref.id] ++ }); ++ /** Id types are verified to match relation target */ ++ ++ Book.create({ ++ title: "B1", ++ publisher: authorModel ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel.ref, ++ authors: [publisherModel.ref, "A1"] ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: "P1 " ++ } ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: 0 ++ }, ++ authors: [authorModel, true] ++ }); // $ExpectError ++})(); // argPropertyTypeRestrictionsOnUpsert - ModelFields contribute to type constraints within ModelType.create arguments ++ ++ ++(function () { ++ var _sessionFixture3 = sessionFixture(), ++ Book = _sessionFixture3.Book, ++ Publisher = _sessionFixture3.Publisher, ++ Person = _sessionFixture3.Person; ++ /** Upsert requires id to be provided */ ++ ++ ++ Book.upsert({ ++ publisher: 1 ++ }); // $ExpectError ++ // $ExpectType SessionBoundModel> || SessionBoundModel> ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1 ++ }); ++ /* Incompatible property types: */ ++ ++ Book.upsert({ ++ title: 4, ++ publisher: "P1" ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: "P1" ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ coverArt: 4 ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ authors: {} ++ }); // $ExpectError ++ ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ authors: function authors() { ++ return null; ++ } ++ }); // $ExpectError ++ ++ /** ++ * Properties associated to relational fields may be supplied with: ++ * ++ * - a primitive type matching id type of relation target ++ * - a Ref type derived from relation target ++ * - Model/SessionBoundModel instance matching relation target ++ * - a map containing {Idkey:IdType} entry, where IdKey/IdType are compatible with relation target id key:type signature ++ * ++ * In case of MutableQuerySets/many-to-many relationships, an array of union of above-mentioned types is accepted ++ */ ++ ++ var authorModel = Person.upsert({ ++ id: "A1", ++ firstName: "A1", ++ lastName: "A1" ++ }); ++ var publisherModel = Publisher.upsert({ ++ name: "P1", ++ index: 1 ++ }); ++ Book.upsert({ ++ title: "B1", ++ publisher: 1, ++ authors: [authorModel] ++ }); ++ Book.upsert({ ++ title: "B1", ++ publisher: publisherModel, ++ authors: [authorModel] ++ }); ++ /** Id types are verified to match relation target */ ++ ++ Book.create({ ++ title: "B1", ++ publisher: authorModel ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: publisherModel.ref, ++ authors: [publisherModel.ref, "A1"] ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: "P1 " ++ } ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "B1", ++ publisher: { ++ index: 0 ++ }, ++ authors: [authorModel, true] ++ }); // $ExpectError ++})(); // restriction of allowed ORM.register args ++ ++ ++(function () { ++ var incompleteSchema = { ++ Book: Book, ++ Authorship: Authorship, ++ Person: Person ++ }; ++ var orm = new _.ORM(); ++ orm.register(Book, Authorship, Person, Publisher); // $ExpectError ++})(); // inference of ORM branch state type ++ ++ ++(function () { ++ var emptyState = ormFixture().getEmptyState(); ++ var bookTableState = emptyState.Book; // $ExpectType TableState ++ ++ var bookItemsById = emptyState.Book.itemsById; // $ExpectType { readonly [K: string]: Ref; } ++ ++ var authorshipMetaState = emptyState.Authorship.meta.maxId; // $ExpectType number ++ ++ var bookMetaState = emptyState.Book.meta.maxId; // $ExpectType number | null ++})(); // sessionInstanceExtendedWithNarrowedModelClasses - indexing session instance using registered Model.modelName returns narrowed Model class ++ ++ ++(function () { ++ var _sessionFixture4 = sessionFixture(), ++ Book = _sessionFixture4.Book, ++ Person = _sessionFixture4.Person, ++ Publisher = _sessionFixture4.Publisher; // $ExpectType { Book: ModelType; Person: ModelType; Publisher: ModelType; } ++ ++ ++ var sessionBoundModels = { ++ Book: Book, ++ Person: Person, ++ Publisher: Publisher ++ }; ++ return _objectSpread({}, sessionBoundModels); ++})(); // IdKey and IdType mapped types support for valid identifier configurations ++ ++ ++(function () {})(); // Model#create result retains custom properties supplied during call ++ ++ ++(function () { ++ var _sessionFixture5 = sessionFixture(), ++ Book = _sessionFixture5.Book; ++ ++ var basicBook = Book.create({ ++ title: "book", ++ publisher: 1 ++ }); ++ // $ExpectType "title" | "coverArt" | "publisher" | "authors" || keyof BookFields ++ var basicBookTitle = basicBook.title; // $ExpectType string ++ ++ var authors = basicBook.authors; // $ExpectType MutableQuerySet ++ ++ var unknownPropertyError = basicBook.customProp; // $ExpectError ++ ++ var customProp = { ++ foo: 0, ++ bar: true ++ }; ++ var extendedBook = Book.create({ ++ title: "extendedBook", ++ publisher: 1, ++ customProp: customProp ++ }); ++ // $ExpectType "title" | "coverArt" | "publisher" | "authors" | "customProp" || keyof BookFields | "customProp" ++ var extendedBookTitle = extendedBook.title; // $ExpectType string ++ ++ var instanceCustomProp = extendedBook.customProp; // $ExpectType { foo: number; bar: boolean; } ++})(); // reducer API is intact ++ ++ ++(function () { ++ var orm = ormFixture(); ++ return function (state, action) { ++ var session = orm.session(state); ++ session.Book.create(action.payload); ++ return session.state; ++ }; ++})(); // QuerySet type is retained though query chain until terminated. ++// Orders are optional, must conform to SortOrder type when present. ++// QuerySet.orderBy overloads accept iteratees applicable to QuerySet's type only ++// orderByArguments ++ ++ ++(function () { ++ var _sessionFixture6 = sessionFixture(), ++ Book = _sessionFixture6.Book; ++ ++ var booksQuerySet = Book.all(); // $ExpectType readonly Ref[] ++ ++ booksQuerySet.orderBy("title").orderBy(function (book) { ++ return book.publisher; ++ }, "desc").orderBy(function (book) { ++ return book.title; ++ }, false).orderBy("publisher", "asc").orderBy("publisher", true).toRefArray(); // $ExpectType readonly Ref[] ++ ++ booksQuerySet.orderBy(["title"], ["asc"]).orderBy(["publisher", "title"], [true, "desc"]).orderBy([function (book) { ++ return book.title; ++ }], ["desc"]).orderBy(["title"]).orderBy([function (book) { ++ return book.title; ++ }, "publisher"], ["desc", false]).toRefArray(); ++ booksQuerySet.orderBy("notABookPropertyKey"); // $ExpectError ++ ++ booksQuerySet.orderBy([function (book) { ++ return book.notABookPropertyKey; ++ }], false); // $ExpectError ++ ++ booksQuerySet.orderBy("title", "inc"); // $ExpectError ++ ++ booksQuerySet.orderBy("title", 4); // $ExpectError ++ ++ booksQuerySet.orderBy(["notABookPropertyKey"]); // $ExpectError ++ ++ booksQuerySet.orderBy([function (book) { ++ return book.notABookPropertyKey; ++ }]); // $ExpectError ++ ++ booksQuerySet.orderBy(["title"], ["inc"]); // $ExpectError ++ ++ booksQuerySet.orderBy(["title"], [4]); // $ExpectError ++})(); // selectors ++ ++ ++(function () { ++ // test fixture, use reselect.createSelector in production code ++ var createSelector = function createSelector(param1Creator, combiner) { ++ return function (state) { ++ return combiner(param1Creator(state)); ++ }; ++ }; ++ ++ var orm = ormFixture(); ++ var ormSelector = (0, _.createSelector)(orm, function (session) { ++ return session.Book.all().toRefArray()[0]; ++ }); ++ var selector = createSelector(function (_ref) { ++ var db = _ref.db; ++ return db; ++ }, ormSelector); ++ createSelector(function (_ref2) { ++ var db = _ref2.db; ++ return db; ++ }, ormSelector // $ExpectError ++ ); ++ selector({ ++ db: orm.getEmptyState() ++ }); // $ExpectType Ref ++})(); // advanced selectors ++ ++ ++(function () { ++ var orm = ormFixture(); ++ var selector0 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (session) { ++ return session.Book.first().ref; ++ }); ++ var selector1 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.bar; ++ }, function (session, title) { ++ return session.Book.get({ ++ title: title ++ }).ref; ++ }); ++ var selector2 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (session, id, title) { ++ return session.Book.get({ ++ id: id, ++ title: title ++ }).ref; ++ }); ++ var selector3 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (session, id, title, id2) { ++ return session.Book.get({ ++ id: id, ++ title: title, ++ id2: id2 ++ }).ref; ++ }); ++ var selector4 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (session, id, title, id2, title2) { ++ return session.Book.get({ ++ id: id, ++ title: title, ++ id2: id2, ++ title2: title2 ++ }).ref; ++ }); ++ var selector5 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (session) { ++ return session.Book.get({ ++ title: arguments.length <= 2 ? undefined : arguments[2] ++ }).ref; ++ }); ++ var selector6 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (s) { ++ return s.foo; ++ }, function (s) { ++ return s.bar; ++ }, function (session, id, title) { ++ return session.Book.get({ ++ title: title ++ }).ref; ++ }); ++ var invalidSelector = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (session, foo, missingArg) { ++ return foo; ++ } // $ExpectError ++ ); ++ var invalidSelector2 = (0, _.createSelector)(orm, function (s) { ++ return s.db; ++ }, function (s) { ++ return s.foo; ++ }, function (session, foo) { ++ return session.Book.withId(foo).ref; ++ } // $ExpectError ++ ); ++ var state = { ++ db: orm.getEmptyState(), ++ foo: 1, ++ bar: "foo" ++ }; ++ selector0(state); // $ExpectType Ref ++ ++ selector1(state); // $ExpectType Ref ++ ++ selector2(state); // $ExpectType Ref ++ ++ selector3(state); // $ExpectType Ref ++ ++ selector4(state); // $ExpectType Ref ++ ++ selector5(state); // $ExpectType Ref ++ ++ selector6(state); // $ExpectType Ref ++})(); // redux-orm-types#7 ++ ++ ++(function () { ++ var _sessionFixture7 = sessionFixture(), ++ Book = _sessionFixture7.Book; ++ ++ Book.exists({ ++ title: "foo" ++ }); ++ Book.all().exists(); ++ Book.exists(); // $ExpectError ++ ++ Book.exists("foo"); // $ExpectError ++ ++ Book.all().exists({}); // $ExpectError ++})(); // redux-orm-types#8 ++ ++ ++(function () { ++ var _sessionFixture8 = sessionFixture(), ++ Book = _sessionFixture8.Book; ++ ++ Book.all().toModelArray(); ++ Book.all().toRefArray(); ++ Book.toModelArray(); // $ExpectError ++ ++ Book.toRefArray(); // $ExpectError ++})(); // redux-orm-types#9 ++ ++ ++(function () { ++ var _sessionFixture9 = sessionFixture(), ++ Book = _sessionFixture9.Book, ++ Person = _sessionFixture9.Person, ++ Publisher = _sessionFixture9.Publisher; ++ ++ var author = Person.create({ ++ id: "1", ++ firstName: "foo", ++ lastName: "bar", ++ nationality: "pl" ++ }); ++ var publisher = Publisher.create({ ++ name: "foo" ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: 1 ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: 1, ++ coverArt: "bar" ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: publisher, ++ coverArt: "bar", ++ authors: ["foo", author] ++ }); ++ Book.create({ ++ title: "foo", ++ publisher: author ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "foo", ++ publisher: "error" ++ }); // $ExpectError ++ ++ Book.create({ ++ title: "foo", ++ publisher: publisher, ++ coverArt: "bar", ++ authors: [3, author] ++ }); // $ExpectError ++})(); // redux-orm-types#18 ++ ++ ++(function () { ++ return (0, _.many)({ ++ to: "Bar", ++ relatedName: "foos", ++ through: "FooBar", ++ throughFields: ["foo", "bar"] ++ }); ++})(); +\ No newline at end of file +diff --git a/node_modules/redux-orm/src/Model.js b/node_modules/redux-orm/src/Model.js +index 20f66ef..6263d01 100644 +--- a/node_modules/redux-orm/src/Model.js ++++ b/node_modules/redux-orm/src/Model.js +@@ -71,7 +71,7 @@ const Model = class Model { + const propsObj = Object(props); + this._fields = { ...propsObj }; + +- Object.keys(propsObj).forEach(fieldName => { ++ Object.keys(propsObj).forEach((fieldName) => { + // In this case, we got a prop that wasn't defined as a field. + // Assuming it's an arbitrary data field, making an instance-specific + // descriptor for it. +@@ -80,7 +80,7 @@ const Model = class Model { + if (!(fieldName in this)) { + Object.defineProperty(this, fieldName, { + get: () => this._fields[fieldName], +- set: value => this.set(fieldName, value), ++ set: (value) => this.set(fieldName, value), + configurable: true, + enumerable: true, + }); +@@ -292,7 +292,7 @@ const Model = class Model { + const declaredFieldNames = Object.keys(this.fields); + const declaredVirtualFieldNames = Object.keys(this.virtualFields); + +- declaredFieldNames.forEach(key => { ++ declaredFieldNames.forEach((key) => { + const field = this.fields[key]; + const valuePassed = userProps.hasOwnProperty(key); + if (!(field instanceof ManyToMany)) { +@@ -300,7 +300,7 @@ const Model = class Model { + const value = userProps[key]; + props[key] = normalizeEntity(value); + } else if (field.getDefault) { +- props[key] = field.getDefault(); ++ props[key] = field.getDefault(userProps); + } + } else if (valuePassed) { + // Save for later processing +@@ -320,7 +320,7 @@ const Model = class Model { + }); + + // add backward many-many if required +- declaredVirtualFieldNames.forEach(key => { ++ declaredVirtualFieldNames.forEach((key) => { + if (!m2mRelations.hasOwnProperty(key)) { + const field = this.virtualFields[key]; + if ( +@@ -527,12 +527,12 @@ const Model = class Model { + const className = ThisModel.modelName; + const fieldNames = Object.keys(ThisModel.fields); + const fields = fieldNames +- .map(fieldName => { ++ .map((fieldName) => { + const field = ThisModel.fields[fieldName]; + if (field instanceof ManyToMany) { + const ids = this[fieldName] + .toModelArray() +- .map(model => model.getId()); ++ .map((model) => model.getId()); + return `${fieldName}: [${ids.join(", ")}]`; + } + const val = this._fields[fieldName]; +@@ -697,7 +697,7 @@ const Model = class Model { + const ThisModel = this.getClass(); + const { fields, virtualFields, modelName } = ThisModel; + +- Object.keys(relations).forEach(name => { ++ Object.keys(relations).forEach((name) => { + const reverse = !fields.hasOwnProperty(name); + const field = virtualFields[name]; + const values = relations[name]; +@@ -731,10 +731,10 @@ const Model = class Model { + } + + const currentIds = ThroughModel.filter( +- through => through[fromField] === this[ThisModel.idAttribute] ++ (through) => through[fromField] === this[ThisModel.idAttribute] + ) + .toRefArray() +- .map(ref => ref[toField]); ++ .map((ref) => ref[toField]); + + const diffActions = arrayDiffActions(currentIds, normalizedNewIds); + +diff --git a/node_modules/redux-orm/src/ORM.js b/node_modules/redux-orm/src/ORM.js +index a0b00dd..5872107 100644 +--- a/node_modules/redux-orm/src/ORM.js ++++ b/node_modules/redux-orm/src/ORM.js +@@ -22,7 +22,7 @@ const ORM_DEFAULTS = { + }; + + const RESERVED_TABLE_OPTIONS = ["indexes", "meta"]; +-const isReservedTableOption = word => RESERVED_TABLE_OPTIONS.includes(word); ++const isReservedTableOption = (word) => RESERVED_TABLE_OPTIONS.includes(word); + + /** + * ORM - the Object Relational Mapper. +@@ -68,7 +68,7 @@ class ORM { + * @return {undefined} + */ + register(...models) { +- models.forEach(model => { ++ models.forEach((model) => { + if (model.modelName === undefined) { + throw new Error( + "A model was passed that doesn't have a modelName set" +@@ -163,7 +163,7 @@ class ORM { + get(modelName) { + const allModels = this.registry.concat(this.implicitThroughModels); + const found = Object.values(allModels).find( +- model => model.modelName === modelName ++ (model) => model.modelName === modelName + ); + + if (typeof found === "undefined") { +@@ -185,7 +185,7 @@ class ORM { + const tableSpec = modelClass.tableOptions(); + Object.keys(tableSpec) + .filter(isReservedTableOption) +- .forEach(key => { ++ .forEach((key) => { + throw new Error( + `Reserved keyword \`${key}\` used in ${tableName}.options.` + ); +@@ -239,8 +239,8 @@ class ORM { + */ + _setupModelPrototypes(models) { + models +- .filter(model => !model.isSetUp) +- .forEach(model => { ++ .filter((model) => !model.isSetUp) ++ .forEach((model) => { + const { fields, modelName, querySetClass } = model; + Object.entries(fields).forEach(([fieldName, field]) => { + if (!(field instanceof Field)) { +diff --git a/node_modules/redux-orm/src/QuerySet.js b/node_modules/redux-orm/src/QuerySet.js +index 5dd357d..33bedbc 100644 +--- a/node_modules/redux-orm/src/QuerySet.js ++++ b/node_modules/redux-orm/src/QuerySet.js +@@ -75,7 +75,7 @@ const QuerySet = class QuerySet { + */ + toModelArray() { + const { modelClass: ModelClass } = this; +- return this._evaluate().map(props => new ModelClass(props)); ++ return this._evaluate().map((props) => new ModelClass(props)); + } + + /** +@@ -287,7 +287,7 @@ const QuerySet = class QuerySet { + const { session, modelName: table } = this.modelClass; + + this.toModelArray().forEach( +- model => model._onDelete() // eslint-disable-line no-underscore-dangle ++ (model) => model._onDelete() // eslint-disable-line no-underscore-dangle + ); + + session.applyUpdate({ +diff --git a/node_modules/redux-orm/src/Session.js b/node_modules/redux-orm/src/Session.js +index ce40ba8..27e0707 100644 +--- a/node_modules/redux-orm/src/Session.js ++++ b/node_modules/redux-orm/src/Session.js +@@ -26,7 +26,7 @@ const Session = class Session { + + this.models = schema.getModelClasses(); + +- this.sessionBoundModels = this.models.map(modelClass => { ++ this.sessionBoundModels = this.models.map((modelClass) => { + function SessionBoundModel() { + return Reflect.construct( + modelClass, +@@ -65,7 +65,7 @@ const Session = class Session { + if (!data.accessedInstances) { + data.accessedInstances = {}; + } +- modelIds.forEach(id => { ++ modelIds.forEach((id) => { + data.accessedInstances[id] = true; + }); + } +@@ -170,9 +170,9 @@ const Session = class Session { + const { rows } = result; + + const { idAttribute } = this[table]; +- const accessedIds = new Set(rows.map(row => row[idAttribute])); ++ const accessedIds = new Set(rows.map((row) => row[idAttribute])); + +- const anyClauseFilteredByPk = clauses.some(clause => { ++ const anyClauseFilteredByPk = clauses.some((clause) => { + if (!clauseFiltersByAttribute(clause, idAttribute)) { + return false; + } +@@ -186,8 +186,8 @@ const Session = class Session { + + const accessedIndexes = []; + const { indexes } = this.state[table]; +- clauses.forEach(clause => { +- Object.keys(indexes).forEach(attr => { ++ clauses.forEach((clause) => { ++ Object.keys(indexes).forEach((attr) => { + if (!clauseFiltersByAttribute(clause, attr)) { + return; + } +diff --git a/node_modules/redux-orm/src/db/Database.js b/node_modules/redux-orm/src/db/Database.js +index 25ad4c0..023f090 100644 +--- a/node_modules/redux-orm/src/db/Database.js ++++ b/node_modules/redux-orm/src/db/Database.js +@@ -105,7 +105,7 @@ export function createDatabase(schemaSpec) { + query: query.bind(null, tables), + update: update.bind(null, tables), + // Used to inspect the schema. +- describe: tableName => tables[tableName], ++ describe: (tableName) => tables[tableName], + }; + } + +diff --git a/node_modules/redux-orm/src/db/Table.js b/node_modules/redux-orm/src/db/Table.js +index 66670b2..9301f28 100644 +--- a/node_modules/redux-orm/src/db/Table.js ++++ b/node_modules/redux-orm/src/db/Table.js +@@ -63,7 +63,7 @@ function normalizeOrders(orders) { + if (orders === undefined) { + return undefined; + } +- const convert = order => { ++ const convert = (order) => { + if (["desc", false].includes(order)) { + return "desc"; + } +@@ -107,7 +107,7 @@ export class Table { + + accessIds(branch, ids) { + const map = branch[this.mapName]; +- return ids.map(id => map[id]); ++ return ids.map((id) => map[id]); + } + + idExists(branch, id) { +@@ -144,8 +144,8 @@ export class Table { + [this.mapName]: {}, + }; + const attrIndexes = Object.keys(this.fields) +- .filter(attr => attr !== this.idAttribute) +- .filter(attr => this.fields[attr].index) ++ .filter((attr) => attr !== this.idAttribute) ++ .filter((attr) => this.fields[attr].index) + .reduce( + (indexes, attr) => ({ + ...indexes, +@@ -181,7 +181,7 @@ export class Table { + + const { idAttribute } = this; + +- const optimallyOrderedClauses = sortBy(clauses, clause => { ++ const optimallyOrderedClauses = sortBy(clauses, (clause) => { + if (clauseFiltersByAttribute(clause, idAttribute)) { + return 1; + } +@@ -344,9 +344,10 @@ export class Table { + + const indexesToAppendTo = Object.keys(workingState.indexes) + .filter( +- fkAttr => entry.hasOwnProperty(fkAttr) && entry[fkAttr] !== null ++ (fkAttr) => ++ entry.hasOwnProperty(fkAttr) && entry[fkAttr] !== null + ) +- .map(fkAttr => [fkAttr, entry[fkAttr]]); ++ .map((fkAttr) => [fkAttr, entry[fkAttr]]); + + if (withMutations) { + ops.mutable.push(id, workingState[this.arrName]); +@@ -427,7 +428,7 @@ export class Table { + update(tx, branch, rows, mergeObj) { + const { batchToken, withMutations } = tx; + +- const mergeObjInto = row => { ++ const mergeObjInto = (row) => { + const merge = withMutations + ? ops.mutable.merge + : ops.batch.merge(batchToken); +@@ -436,7 +437,7 @@ export class Table { + + const set = withMutations ? ops.mutable.set : ops.batch.set(batchToken); + +- const indexedAttrs = Object.keys(branch.indexes).filter(attr => ++ const indexedAttrs = Object.keys(branch.indexes).filter((attr) => + mergeObj.hasOwnProperty(attr) + ); + const indexIdsToAdd = []; +@@ -460,7 +461,7 @@ export class Table { + ); + const id = result[this.idAttribute]; + const nextRow = set(id, result, map); +- indexedAttrs.forEach(attr => { ++ indexedAttrs.forEach((attr) => { + const { [attr]: prevValue } = prevAttrValues; + const { [attr]: nextValue } = nextAttrValues; + if (prevValue === nextValue) { +@@ -523,7 +524,7 @@ export class Table { + { + [value]: ops.batch.filter( + batchToken, +- rowId => rowId !== id, ++ (rowId) => rowId !== id, + indexMap[attr][value] + ), + }, +@@ -561,17 +562,17 @@ export class Table { + const { arrName, mapName } = this; + const arr = branch[arrName]; + +- const idsToDelete = rows.map(row => row[this.idAttribute]); ++ const idsToDelete = rows.map((row) => row[this.idAttribute]); + if (withMutations) { +- idsToDelete.forEach(id => { ++ idsToDelete.forEach((id) => { + const idx = arr.indexOf(id); + ops.mutable.splice(idx, 1, [], arr); + ops.mutable.omit(id, branch[mapName]); + }); + // delete ids from all indexes +- Object.values(branch.indexes).forEach(attrIndex => +- Object.values(attrIndex).forEach(valueIndex => +- idsToDelete.forEach(id => { ++ Object.values(branch.indexes).forEach((attrIndex) => ++ Object.values(attrIndex).forEach((valueIndex) => ++ idsToDelete.forEach((id) => { + const idx = valueIndex.indexOf(id); + if (idx !== -1) { + ops.mutable.splice(idx, 1, [], valueIndex); +@@ -592,7 +593,7 @@ export class Table { + (attrIndexMap, [value, valueIndex]) => { + attrIndexMap[value] = ops.batch.filter( + batchToken, +- id => !idsToDelete.includes(id), ++ (id) => !idsToDelete.includes(id), + valueIndex + ); + return attrIndexMap; +@@ -613,7 +614,7 @@ export class Table { + { + [arrName]: ops.batch.filter( + batchToken, +- id => !idsToDelete.includes(id), ++ (id) => !idsToDelete.includes(id), + branch[arrName] + ), + [mapName]: ops.batch.omit( +diff --git a/node_modules/redux-orm/src/descriptors.js b/node_modules/redux-orm/src/descriptors.js +index 6344e86..84fbc11 100644 +--- a/node_modules/redux-orm/src/descriptors.js ++++ b/node_modules/redux-orm/src/descriptors.js +@@ -166,14 +166,14 @@ function manyToManyDescriptor( + * referenced by any instance of the current model + */ + const referencedOtherIds = new Set( +- throughQs.toRefArray().map(obj => obj[otherReferencingField]) ++ throughQs.toRefArray().map((obj) => obj[otherReferencingField]) + ); + + /** + * selects all instances of other model that are referenced + * by any instance of the current model + */ +- const qs = OtherModel.filter(otherModelInstance => ++ const qs = OtherModel.filter((otherModelInstance) => + referencedOtherIds.has( + otherModelInstance[OtherModel.idAttribute] + ) +@@ -190,21 +190,21 @@ function manyToManyDescriptor( + qs.add = function add(...entities) { + const idsToAdd = new Set(entities.map(normalizeEntity)); + +- const existingQs = throughQs.filter(through => ++ const existingQs = throughQs.filter((through) => + idsToAdd.has(through[otherReferencingField]) + ); + + if (existingQs.exists()) { + const existingIds = existingQs + .toRefArray() +- .map(through => through[otherReferencingField]); ++ .map((through) => through[otherReferencingField]); + + throw new Error( + `Tried to add already existing ${OtherModel.modelName} id(s) ${existingIds} to the ${ThisModel.modelName} instance with id ${thisId}` + ); + } + +- idsToAdd.forEach(id => { ++ idsToAdd.forEach((id) => { + ThroughModel.create({ + [otherReferencingField]: id, + [thisReferencingField]: thisId, +@@ -235,7 +235,7 @@ function manyToManyDescriptor( + qs.remove = function remove(...entities) { + const idsToRemove = new Set(entities.map(normalizeEntity)); + +- const entitiesToDelete = throughQs.filter(through => ++ const entitiesToDelete = throughQs.filter((through) => + idsToRemove.has(through[otherReferencingField]) + ); + +@@ -243,10 +243,10 @@ function manyToManyDescriptor( + // Tried deleting non-existing entities. + const entitiesToDeleteIds = entitiesToDelete + .toRefArray() +- .map(through => through[otherReferencingField]); ++ .map((through) => through[otherReferencingField]); + + const unexistingIds = [...idsToRemove].filter( +- id => !entitiesToDeleteIds.includes(id) ++ (id) => !entitiesToDeleteIds.includes(id) + ); + + throw new Error( +diff --git a/node_modules/redux-orm/src/fields/ManyToMany.js b/node_modules/redux-orm/src/fields/ManyToMany.js +index 5b49ab1..c8b2747 100644 +--- a/node_modules/redux-orm/src/fields/ManyToMany.js ++++ b/node_modules/redux-orm/src/fields/ManyToMany.js +@@ -98,8 +98,8 @@ export class ManyToMany extends RelationalField { + * determine which field references which model + * and infer the directions from that + */ +- const throughModelFieldReferencing = otherModel => +- Object.keys(throughModel.fields).find(someFieldName => ++ const throughModelFieldReferencing = (otherModel) => ++ Object.keys(throughModel.fields).find((someFieldName) => + throughModel.fields[someFieldName].references(otherModel) + ); + +diff --git a/node_modules/redux-orm/src/memoize.js b/node_modules/redux-orm/src/memoize.js +index b9f7c86..f5ef592 100644 +--- a/node_modules/redux-orm/src/memoize.js ++++ b/node_modules/redux-orm/src/memoize.js +@@ -3,7 +3,7 @@ import { STATE_FLAG } from "./constants"; + const defaultEqualityCheck = (a, b) => a === b; + export const eqCheck = defaultEqualityCheck; + +-const isOrmState = arg => ++const isOrmState = (arg) => + arg && typeof arg === "object" && arg.hasOwnProperty(STATE_FLAG); + + const argsAreEqual = (lastArgs, nextArgs, equalityCheck) => +@@ -14,7 +14,7 @@ const argsAreEqual = (lastArgs, nextArgs, equalityCheck) => + ); + + const rowsAreEqual = (ids, rowsA, rowsB) => +- ids.every(id => rowsA[id] === rowsB[id]); ++ ids.every((id) => rowsA[id] === rowsB[id]); + + const accessedModelInstancesAreEqual = (previous, ormState, orm) => { + const { accessedInstances } = previous; +@@ -41,7 +41,7 @@ const accessedIndexesAreEqual = (previous, ormState) => { + return Object.entries(accessedIndexes).every(([modelName, indexes]) => + Object.entries(indexes).every(([column, values]) => + values.every( +- value => ++ (value) => + previous.ormState[modelName].indexes[column][value] === + ormState[modelName].indexes[column][value] + ) +@@ -51,7 +51,7 @@ const accessedIndexesAreEqual = (previous, ormState) => { + + const fullTableScannedModelsAreEqual = (previous, ormState) => + previous.fullTableScannedModels.every( +- modelName => previous.ormState[modelName] === ormState[modelName] ++ (modelName) => previous.ormState[modelName] === ormState[modelName] + ); + + /** +@@ -160,7 +160,7 @@ export function memoize(func, argEqualityCheck = defaultEqualityCheck, orm) { + */ + const session = orm.session(ormState); + /* Replace all ORM state arguments by the session above */ +- const argsWithSession = args.map(arg => ++ const argsWithSession = args.map((arg) => + isOrmState(arg) ? session : arg + ); + +diff --git a/node_modules/redux-orm/src/redux.js b/node_modules/redux-orm/src/redux.js +index 94a1b9e..603769d 100644 +--- a/node_modules/redux-orm/src/redux.js ++++ b/node_modules/redux-orm/src/redux.js +@@ -19,7 +19,7 @@ import MapSelectorSpec from "./selectors/MapSelectorSpec"; + * @global + */ + export function defaultUpdater(session, action) { +- session.sessionBoundModels.forEach(modelClass => { ++ session.sessionBoundModels.forEach((modelClass) => { + if (typeof modelClass.reducer === "function") { + // This calls this.applyUpdate to update this.state + modelClass.reducer(action, modelClass, session); +diff --git a/node_modules/redux-orm/src/selectors/MapSelectorSpec.js b/node_modules/redux-orm/src/selectors/MapSelectorSpec.js +index 095c9de..c971d12 100644 +--- a/node_modules/redux-orm/src/selectors/MapSelectorSpec.js ++++ b/node_modules/redux-orm/src/selectors/MapSelectorSpec.js +@@ -18,12 +18,12 @@ export default class MapSelectorSpec extends ModelBasedSelectorSpec { + */ + const parentResult = parentSelector(state, ...other); + const idArg = idArgSelector(state, ...other); +- const single = refArray => { ++ const single = (refArray) => { + if (refArray === null) { + // an intermediate field could not be resolved + return null; + } +- return refArray.map(ref => ++ return refArray.map((ref) => + this._selector(state, ref[idAttribute]) + ); + }; +diff --git a/node_modules/redux-orm/src/selectors/ModelBasedSelectorSpec.js b/node_modules/redux-orm/src/selectors/ModelBasedSelectorSpec.js +index 1c754d0..13b00f8 100644 +--- a/node_modules/redux-orm/src/selectors/ModelBasedSelectorSpec.js ++++ b/node_modules/redux-orm/src/selectors/ModelBasedSelectorSpec.js +@@ -12,12 +12,12 @@ export default class ModelBasedSelectorSpec extends SelectorSpec { + if (typeof idArg === "undefined") { + return ModelClass.all() + .toModelArray() +- .map(instance => ++ .map((instance) => + this.valueForInstance(instance, session, ...other) + ); + } + if (Array.isArray(idArg)) { +- return idArg.map(id => ++ return idArg.map((id) => + this.valueForInstance( + ModelClass.withId(id), + session, +diff --git a/node_modules/redux-orm/src/selectors/ModelSelectorSpec.js b/node_modules/redux-orm/src/selectors/ModelSelectorSpec.js +index 3609bfe..65800e6 100644 +--- a/node_modules/redux-orm/src/selectors/ModelSelectorSpec.js ++++ b/node_modules/redux-orm/src/selectors/ModelSelectorSpec.js +@@ -21,7 +21,7 @@ export default class ModelSelectorSpec extends SelectorSpec { + return ModelClass.all().toRefArray(); + } + if (Array.isArray(idArg)) { +- return idArg.map(id => { ++ return idArg.map((id) => { + const instance = ModelClass.withId(id); + return instance ? instance.ref : null; + }); +diff --git a/node_modules/redux-orm/src/utils.js b/node_modules/redux-orm/src/utils.js +index da0436f..2066ee4 100644 +--- a/node_modules/redux-orm/src/utils.js ++++ b/node_modules/redux-orm/src/utils.js +@@ -99,7 +99,7 @@ function attachQuerySetMethods(modelClass, querySetClass) { + // There is no way to get a property descriptor for the whole prototype chain; + // only from an objects own properties. Therefore we traverse the whole prototype + // chain for querySet. +- forEachSuperClass(querySetClass, cls => { ++ forEachSuperClass(querySetClass, (cls) => { + for (let i = 0; i < leftToDefine.length; i++) { + let defined = false; + const methodName = leftToDefine[i]; +@@ -175,9 +175,9 @@ function objectShallowEquals(a, b) { + + /** */ + function arrayDiffActions(sourceArr, targetArr) { +- const itemsInBoth = sourceArr.filter(item => targetArr.includes(item)); +- const deleteItems = sourceArr.filter(item => !itemsInBoth.includes(item)); +- const addItems = targetArr.filter(item => !itemsInBoth.includes(item)); ++ const itemsInBoth = sourceArr.filter((item) => targetArr.includes(item)); ++ const deleteItems = sourceArr.filter((item) => !itemsInBoth.includes(item)); ++ const addItems = targetArr.filter((item) => !itemsInBoth.includes(item)); + + if (deleteItems.length || addItems.length) { + return { diff --git a/client/patches/semantic-ui-react+2.1.5.patch b/client/patches/semantic-ui-react+2.1.5.patch new file mode 100644 index 00000000..90b6c91a --- /dev/null +++ b/client/patches/semantic-ui-react+2.1.5.patch @@ -0,0 +1,37 @@ +diff --git a/node_modules/semantic-ui-react/dist/es/lib/doesNodeContainClick.js b/node_modules/semantic-ui-react/dist/es/lib/doesNodeContainClick.js +index 6d06078..fb7534d 100644 +--- a/node_modules/semantic-ui-react/dist/es/lib/doesNodeContainClick.js ++++ b/node_modules/semantic-ui-react/dist/es/lib/doesNodeContainClick.js +@@ -17,13 +17,7 @@ var doesNodeContainClick = function doesNodeContainClick(node, e) { + if (_some([e, node], _isNil)) return false; // if there is an e.target and it is in the document, use a simple node.contains() check + + if (e.target) { +- _invoke(e.target, 'setAttribute', 'data-suir-click-target', true); +- +- if (document.querySelector('[data-suir-click-target=true]')) { +- _invoke(e.target, 'removeAttribute', 'data-suir-click-target'); +- +- return node.contains(e.target); +- } ++ return node.contains(e.target); + } // Below logic handles cases where the e.target is no longer in the document. + // The result of the click likely has removed the e.target node. + // Instead of node.contains(), we'll identify the click by X/Y position. +diff --git a/node_modules/semantic-ui-react/src/lib/doesNodeContainClick.js b/node_modules/semantic-ui-react/src/lib/doesNodeContainClick.js +index d1ae271..43e1170 100644 +--- a/node_modules/semantic-ui-react/src/lib/doesNodeContainClick.js ++++ b/node_modules/semantic-ui-react/src/lib/doesNodeContainClick.js +@@ -14,12 +14,7 @@ const doesNodeContainClick = (node, e) => { + + // if there is an e.target and it is in the document, use a simple node.contains() check + if (e.target) { +- _.invoke(e.target, 'setAttribute', 'data-suir-click-target', true) +- +- if (document.querySelector('[data-suir-click-target=true]')) { +- _.invoke(e.target, 'removeAttribute', 'data-suir-click-target') +- return node.contains(e.target) +- } ++ return node.contains(e.target) + } + + // Below logic handles cases where the e.target is no longer in the document. diff --git a/client/public/favicon.ico b/client/public/favicon.ico index a04182fa..32bd00ac 100644 Binary files a/client/public/favicon.ico and b/client/public/favicon.ico differ diff --git a/client/public/index.html b/client/public/index.html deleted file mode 100755 index ae366e97..00000000 --- a/client/public/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - Planka - - - - -
- - - diff --git a/client/public/logo192.png b/client/public/logo192.png old mode 100755 new mode 100644 index 078f229d..ae40bd44 Binary files a/client/public/logo192.png and b/client/public/logo192.png differ diff --git a/client/public/logo512.png b/client/public/logo512.png old mode 100755 new mode 100644 index 693046e7..b10c9c76 Binary files a/client/public/logo512.png and b/client/public/logo512.png differ diff --git a/client/public/manifest.json b/client/public/manifest.json index 04addef1..2e6ebf79 100644 --- a/client/public/manifest.json +++ b/client/public/manifest.json @@ -1,5 +1,5 @@ { - "name": "Planka", + "name": "PLANKA", "icons": [ { "src": "favicon.ico", diff --git a/client/src/actions/activities.js b/client/src/actions/activities.js index d3a23a91..d69f0134 100644 --- a/client/src/actions/activities.js +++ b/client/src/actions/activities.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const fetchActivities = (cardId) => ({ @@ -24,31 +29,6 @@ fetchActivities.failure = (cardId, error) => ({ }, }); -const toggleActivitiesDetails = (cardId, isVisible) => ({ - type: ActionTypes.ACTIVITIES_DETAILS_TOGGLE, - payload: { - cardId, - isVisible, - }, -}); - -toggleActivitiesDetails.success = (cardId, activities, users) => ({ - type: ActionTypes.ACTIVITIES_DETAILS_TOGGLE__SUCCESS, - payload: { - cardId, - activities, - users, - }, -}); - -toggleActivitiesDetails.failure = (cardId, error) => ({ - type: ActionTypes.ACTIVITIES_DETAILS_TOGGLE__FAILURE, - payload: { - cardId, - error, - }, -}); - const handleActivityCreate = (activity) => ({ type: ActionTypes.ACTIVITY_CREATE_HANDLE, payload: { @@ -56,24 +36,7 @@ const handleActivityCreate = (activity) => ({ }, }); -const handleActivityUpdate = (activity) => ({ - type: ActionTypes.ACTIVITY_UPDATE_HANDLE, - payload: { - activity, - }, -}); - -const handleActivityDelete = (activity) => ({ - type: ActionTypes.ACTIVITY_DELETE_HANDLE, - payload: { - activity, - }, -}); - export default { fetchActivities, - toggleActivitiesDetails, handleActivityCreate, - handleActivityUpdate, - handleActivityDelete, }; diff --git a/client/src/actions/attachments.js b/client/src/actions/attachments.js index 91c6c382..6dde53d3 100644 --- a/client/src/actions/attachments.js +++ b/client/src/actions/attachments.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createAttachment = (attachment) => ({ diff --git a/client/src/actions/background-images.js b/client/src/actions/background-images.js new file mode 100644 index 00000000..34417284 --- /dev/null +++ b/client/src/actions/background-images.js @@ -0,0 +1,72 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const createBackgroundImage = (backgroundImage) => ({ + type: ActionTypes.BACKGROUND_IMAGE_CREATE, + payload: { + backgroundImage, + }, +}); + +createBackgroundImage.success = (localId, backgroundImage) => ({ + type: ActionTypes.BACKGROUND_IMAGE_CREATE__SUCCESS, + payload: { + localId, + backgroundImage, + }, +}); + +createBackgroundImage.failure = (localId, error) => ({ + type: ActionTypes.BACKGROUND_IMAGE_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleBackgroundImageCreate = (backgroundImage) => ({ + type: ActionTypes.BACKGROUND_IMAGE_CREATE_HANDLE, + payload: { + backgroundImage, + }, +}); + +const deleteBackgroundImage = (id) => ({ + type: ActionTypes.BACKGROUND_IMAGE_DELETE, + payload: { + id, + }, +}); + +deleteBackgroundImage.success = (backgroundImage) => ({ + type: ActionTypes.BACKGROUND_IMAGE_DELETE__SUCCESS, + payload: { + backgroundImage, + }, +}); + +deleteBackgroundImage.failure = (id, error) => ({ + type: ActionTypes.BACKGROUND_IMAGE_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleBackgroundImageDelete = (backgroundImage) => ({ + type: ActionTypes.BACKGROUND_IMAGE_DELETE_HANDLE, + payload: { + backgroundImage, + }, +}); + +export default { + createBackgroundImage, + handleBackgroundImageCreate, + deleteBackgroundImage, + handleBackgroundImageDelete, +}; diff --git a/client/src/actions/base-custom-field-groups.js b/client/src/actions/base-custom-field-groups.js new file mode 100644 index 00000000..1143fed2 --- /dev/null +++ b/client/src/actions/base-custom-field-groups.js @@ -0,0 +1,104 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const createBaseCustomFieldGroup = (baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_CREATE, + payload: { + baseCustomFieldGroup, + }, +}); + +createBaseCustomFieldGroup.success = (localId, baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_CREATE__SUCCESS, + payload: { + localId, + baseCustomFieldGroup, + }, +}); + +createBaseCustomFieldGroup.failure = (localId, error) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleBaseCustomFieldGroupCreate = (baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_CREATE_HANDLE, + payload: { + baseCustomFieldGroup, + }, +}); + +const updateBaseCustomFieldGroup = (id, data) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_UPDATE, + payload: { + id, + data, + }, +}); + +updateBaseCustomFieldGroup.success = (baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_UPDATE__SUCCESS, + payload: { + baseCustomFieldGroup, + }, +}); + +updateBaseCustomFieldGroup.failure = (id, error) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_UPDATE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleBaseCustomFieldGroupUpdate = (baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_UPDATE_HANDLE, + payload: { + baseCustomFieldGroup, + }, +}); + +const deleteBaseCustomFieldGroup = (id) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_DELETE, + payload: { + id, + }, +}); + +deleteBaseCustomFieldGroup.success = (baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_DELETE__SUCCESS, + payload: { + baseCustomFieldGroup, + }, +}); + +deleteBaseCustomFieldGroup.failure = (id, error) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleBaseCustomFieldGroupDelete = (baseCustomFieldGroup) => ({ + type: ActionTypes.BASE_CUSTOM_FIELD_GROUP_DELETE_HANDLE, + payload: { + baseCustomFieldGroup, + }, +}); + +export default { + createBaseCustomFieldGroup, + handleBaseCustomFieldGroupCreate, + updateBaseCustomFieldGroup, + handleBaseCustomFieldGroupUpdate, + deleteBaseCustomFieldGroup, + handleBaseCustomFieldGroupDelete, +}; diff --git a/client/src/actions/board-memberships.js b/client/src/actions/board-memberships.js index 41497c2d..a0c96207 100644 --- a/client/src/actions/board-memberships.js +++ b/client/src/actions/board-memberships.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createBoardMembership = (boardMembership) => ({ @@ -25,10 +30,13 @@ createBoardMembership.failure = (localId, error) => ({ const handleBoardMembershipCreate = ( boardMembership, + isProjectAvailable, project, board, users, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -36,17 +44,25 @@ const handleBoardMembershipCreate = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - deletedNotifications, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, ) => ({ type: ActionTypes.BOARD_MEMBERSHIP_CREATE_HANDLE, payload: { boardMembership, + isProjectAvailable, project, board, users, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -54,18 +70,14 @@ const handleBoardMembershipCreate = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - deletedNotifications, - }, -}); - -handleBoardMembershipCreate.fetchProject = (id, currentUserId, currentBoardId) => ({ - type: ActionTypes.BOARD_MEMBERSHIP_CREATE_HANDLE__PROJECT_FETCH, - payload: { - id, - currentUserId, - currentBoardId, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, }, }); @@ -99,17 +111,19 @@ const handleBoardMembershipUpdate = (boardMembership) => ({ }, }); -const deleteBoardMembership = (id) => ({ +const deleteBoardMembership = (id, isCurrentUser) => ({ type: ActionTypes.BOARD_MEMBERSHIP_DELETE, payload: { id, + isCurrentUser, }, }); -deleteBoardMembership.success = (boardMembership) => ({ +deleteBoardMembership.success = (boardMembership, isCurrentUser) => ({ type: ActionTypes.BOARD_MEMBERSHIP_DELETE__SUCCESS, payload: { boardMembership, + isCurrentUser, }, }); @@ -121,10 +135,11 @@ deleteBoardMembership.failure = (id, error) => ({ }, }); -const handleBoardMembershipDelete = (boardMembership) => ({ +const handleBoardMembershipDelete = (boardMembership, isCurrentUser) => ({ type: ActionTypes.BOARD_MEMBERSHIP_DELETE_HANDLE, payload: { boardMembership, + isCurrentUser, }, }); diff --git a/client/src/actions/boards.js b/client/src/actions/boards.js index 484ae23a..67645179 100644 --- a/client/src/actions/boards.js +++ b/client/src/actions/boards.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createBoard = (board) => ({ @@ -24,10 +29,11 @@ createBoard.failure = (localId, error) => ({ }, }); -const handleBoardCreate = (board) => ({ +const handleBoardCreate = (board, boardMemberships) => ({ type: ActionTypes.BOARD_CREATE_HANDLE, payload: { board, + boardMemberships, }, }); @@ -48,8 +54,12 @@ fetchBoard.success = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, + customFieldGroups, + customFields, + customFieldValues, ) => ({ type: ActionTypes.BOARD_FETCH__SUCCESS, payload: { @@ -62,8 +72,12 @@ fetchBoard.success = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, + customFieldGroups, + customFields, + customFieldValues, }, }); @@ -105,6 +119,23 @@ const handleBoardUpdate = (board) => ({ }, }); +const updateBoardContext = (id, value) => ({ + type: ActionTypes.BOARD_CONTEXT_UPDATE, + payload: { + id, + value, + }, +}); + +const searchInBoard = (id, value, currentListId) => ({ + type: ActionTypes.IN_BOARD_SEARCH, + payload: { + id, + value, + currentListId, + }, +}); + const deleteBoard = (id) => ({ type: ActionTypes.BOARD_DELETE, payload: { @@ -140,6 +171,8 @@ export default { fetchBoard, updateBoard, handleBoardUpdate, + updateBoardContext, + searchInBoard, deleteBoard, handleBoardDelete, }; diff --git a/client/src/actions/cards.js b/client/src/actions/cards.js index 47dd2947..0cfffd4c 100644 --- a/client/src/actions/cards.js +++ b/client/src/actions/cards.js @@ -1,9 +1,67 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; -const createCard = (card) => ({ +const fetchCards = (listId) => ({ + type: ActionTypes.CARDS_FETCH, + payload: { + listId, + }, +}); + +fetchCards.success = ( + listId, + cards, + users, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, +) => ({ + type: ActionTypes.CARDS_FETCH__SUCCESS, + payload: { + listId, + cards, + users, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, + }, +}); + +fetchCards.failure = (listId, error) => ({ + type: ActionTypes.CARDS_FETCH__FAILURE, + payload: { + listId, + error, + }, +}); + +const handleCardsUpdate = (cards, activities) => ({ + type: ActionTypes.CARDS_UPDATE_HANDLE, + payload: { + cards, + activities, + }, +}); + +const createCard = (card, autoOpen) => ({ type: ActionTypes.CARD_CREATE, payload: { card, + autoOpen, }, }); @@ -23,14 +81,30 @@ createCard.failure = (localId, error) => ({ }, }); -const handleCardCreate = (card, cardMemberships, cardLabels, tasks, attachments) => ({ +const handleCardCreate = ( + card, + users, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, +) => ({ type: ActionTypes.CARD_CREATE_HANDLE, payload: { card, + users, cardMemberships, cardLabels, + taskLists, tasks, attachments, + customFieldGroups, + customFields, + customFieldValues, }, }); @@ -57,42 +131,75 @@ updateCard.failure = (id, error) => ({ }, }); -const handleCardUpdate = (card, isFetched, cardMemberships, cardLabels, tasks, attachments) => ({ +const handleCardUpdate = ( + card, + isFetched, + users, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, +) => ({ type: ActionTypes.CARD_UPDATE_HANDLE, payload: { card, isFetched, + users, cardMemberships, cardLabels, + taskLists, tasks, attachments, + customFieldGroups, + customFields, + customFieldValues, }, }); -const duplicateCard = (id, card, taskIds) => ({ +const duplicateCard = (id, localId, data) => ({ type: ActionTypes.CARD_DUPLICATE, payload: { id, - card, - taskIds, + localId, + data, }, }); -duplicateCard.success = (localId, card, cardMemberships, cardLabels, tasks) => ({ +duplicateCard.success = ( + localId, + card, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, +) => ({ type: ActionTypes.CARD_DUPLICATE__SUCCESS, payload: { localId, card, cardMemberships, cardLabels, + taskLists, tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, }, }); -duplicateCard.failure = (id, error) => ({ +duplicateCard.failure = (localId, error) => ({ type: ActionTypes.CARD_DUPLICATE__FAILURE, payload: { - id, + localId, error, }, }); @@ -126,15 +233,9 @@ const handleCardDelete = (card) => ({ }, }); -const filterText = (boardId, text) => ({ - type: ActionTypes.TEXT_FILTER_IN_CURRENT_BOARD, - payload: { - boardId, - text, - }, -}); - export default { + fetchCards, + handleCardsUpdate, createCard, handleCardCreate, updateCard, @@ -142,5 +243,4 @@ export default { duplicateCard, deleteCard, handleCardDelete, - filterText, }; diff --git a/client/src/actions/comment-activities.js b/client/src/actions/comment-activities.js deleted file mode 100644 index 03710e17..00000000 --- a/client/src/actions/comment-activities.js +++ /dev/null @@ -1,75 +0,0 @@ -import ActionTypes from '../constants/ActionTypes'; - -const createCommentActivity = (activity) => ({ - type: ActionTypes.COMMENT_ACTIVITY_CREATE, - payload: { - activity, - }, -}); - -createCommentActivity.success = (localId, activity) => ({ - type: ActionTypes.COMMENT_ACTIVITY_CREATE__SUCCESS, - payload: { - localId, - activity, - }, -}); - -createCommentActivity.failure = (localId, error) => ({ - type: ActionTypes.COMMENT_ACTIVITY_CREATE__FAILURE, - payload: { - localId, - error, - }, -}); - -const updateCommentActivity = (id, data) => ({ - type: ActionTypes.COMMENT_ACTIVITY_UPDATE, - payload: { - id, - data, - }, -}); - -updateCommentActivity.success = (activity) => ({ - type: ActionTypes.COMMENT_ACTIVITY_UPDATE__SUCCESS, - payload: { - activity, - }, -}); - -updateCommentActivity.failure = (id, error) => ({ - type: ActionTypes.COMMENT_ACTIVITY_UPDATE__FAILURE, - payload: { - id, - error, - }, -}); - -const deleteCommentActivity = (id) => ({ - type: ActionTypes.COMMENT_ACTIVITY_DELETE, - payload: { - id, - }, -}); - -deleteCommentActivity.success = (activity) => ({ - type: ActionTypes.COMMENT_ACTIVITY_DELETE__SUCCESS, - payload: { - activity, - }, -}); - -deleteCommentActivity.failure = (id, error) => ({ - type: ActionTypes.COMMENT_ACTIVITY_DELETE__FAILURE, - payload: { - id, - error, - }, -}); - -export default { - createCommentActivity, - updateCommentActivity, - deleteCommentActivity, -}; diff --git a/client/src/actions/comments.js b/client/src/actions/comments.js new file mode 100644 index 00000000..6d51bc00 --- /dev/null +++ b/client/src/actions/comments.js @@ -0,0 +1,130 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const fetchComments = (cardId) => ({ + type: ActionTypes.COMMENTS_FETCH, + payload: { + cardId, + }, +}); + +fetchComments.success = (cardId, comments, users) => ({ + type: ActionTypes.COMMENTS_FETCH__SUCCESS, + payload: { + cardId, + comments, + users, + }, +}); + +fetchComments.failure = (cardId, error) => ({ + type: ActionTypes.COMMENTS_FETCH__FAILURE, + payload: { + cardId, + error, + }, +}); + +const createComment = (comment) => ({ + type: ActionTypes.COMMENT_CREATE, + payload: { + comment, + }, +}); + +createComment.success = (localId, comment) => ({ + type: ActionTypes.COMMENT_CREATE__SUCCESS, + payload: { + localId, + comment, + }, +}); + +createComment.failure = (localId, error) => ({ + type: ActionTypes.COMMENT_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleCommentCreate = (comment, users) => ({ + type: ActionTypes.COMMENT_CREATE_HANDLE, + payload: { + comment, + users, + }, +}); + +const updateComment = (id, data) => ({ + type: ActionTypes.COMMENT_UPDATE, + payload: { + id, + data, + }, +}); + +updateComment.success = (comment) => ({ + type: ActionTypes.COMMENT_UPDATE__SUCCESS, + payload: { + comment, + }, +}); + +updateComment.failure = (id, error) => ({ + type: ActionTypes.COMMENT_UPDATE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCommentUpdate = (comment) => ({ + type: ActionTypes.COMMENT_UPDATE_HANDLE, + payload: { + comment, + }, +}); + +const deleteComment = (id) => ({ + type: ActionTypes.COMMENT_DELETE, + payload: { + id, + }, +}); + +deleteComment.success = (comment) => ({ + type: ActionTypes.COMMENT_DELETE__SUCCESS, + payload: { + comment, + }, +}); + +deleteComment.failure = (id, error) => ({ + type: ActionTypes.COMMENT_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCommentDelete = (comment) => ({ + type: ActionTypes.COMMENT_DELETE_HANDLE, + payload: { + comment, + }, +}); + +export default { + fetchComments, + createComment, + handleCommentCreate, + updateComment, + handleCommentUpdate, + deleteComment, + handleCommentDelete, +}; diff --git a/client/src/actions/core.js b/client/src/actions/core.js index 92f081a1..8f87fe82 100644 --- a/client/src/actions/core.js +++ b/client/src/actions/core.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const initializeCore = ( @@ -6,6 +11,8 @@ const initializeCore = ( users, projects, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -13,10 +20,14 @@ const initializeCore = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - activities, + customFieldGroups, + customFields, + customFieldValues, notifications, + notificationServices, ) => ({ type: ActionTypes.CORE_INITIALIZE, payload: { @@ -25,6 +36,8 @@ const initializeCore = ( users, projects, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -32,14 +45,17 @@ const initializeCore = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - activities, + customFieldGroups, + customFields, + customFieldValues, notifications, + notificationServices, }, }); -// TODO: with success? initializeCore.fetchConfig = (config) => ({ type: ActionTypes.CORE_INITIALIZE__CONFIG_FETCH, payload: { @@ -47,13 +63,32 @@ initializeCore.fetchConfig = (config) => ({ }, }); -const logout = (invalidateAccessToken) => ({ - type: ActionTypes.LOGOUT, +const toggleFavorites = (isEnabled) => ({ + type: ActionTypes.FAVORITES_TOGGLE, payload: { - invalidateAccessToken, + isEnabled, }, }); +const toggleEditMode = (isEnabled) => ({ + type: ActionTypes.EDIT_MODE_TOGGLE, + payload: { + isEnabled, + }, +}); + +const updateHomeView = (value) => ({ + type: ActionTypes.HOME_VIEW_UPDATE, + payload: { + value, + }, +}); + +const logout = () => ({ + type: ActionTypes.LOGOUT, + payload: {}, +}); + logout.invalidateAccessToken = () => ({ type: ActionTypes.LOGOUT__ACCESS_TOKEN_INVALIDATE, payload: {}, @@ -61,5 +96,8 @@ logout.invalidateAccessToken = () => ({ export default { initializeCore, + toggleFavorites, + toggleEditMode, + updateHomeView, logout, }; diff --git a/client/src/actions/custom-field-groups.js b/client/src/actions/custom-field-groups.js new file mode 100644 index 00000000..36f69d0d --- /dev/null +++ b/client/src/actions/custom-field-groups.js @@ -0,0 +1,104 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const createCustomFieldGroup = (customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_CREATE, + payload: { + customFieldGroup, + }, +}); + +createCustomFieldGroup.success = (localId, customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_CREATE__SUCCESS, + payload: { + localId, + customFieldGroup, + }, +}); + +createCustomFieldGroup.failure = (localId, error) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleCustomFieldGroupCreate = (customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_CREATE_HANDLE, + payload: { + customFieldGroup, + }, +}); + +const updateCustomFieldGroup = (id, data) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_UPDATE, + payload: { + id, + data, + }, +}); + +updateCustomFieldGroup.success = (customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_UPDATE__SUCCESS, + payload: { + customFieldGroup, + }, +}); + +updateCustomFieldGroup.failure = (id, error) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_UPDATE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCustomFieldGroupUpdate = (customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_UPDATE_HANDLE, + payload: { + customFieldGroup, + }, +}); + +const deleteCustomFieldGroup = (id) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_DELETE, + payload: { + id, + }, +}); + +deleteCustomFieldGroup.success = (customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_DELETE__SUCCESS, + payload: { + customFieldGroup, + }, +}); + +deleteCustomFieldGroup.failure = (id, error) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCustomFieldGroupDelete = (customFieldGroup) => ({ + type: ActionTypes.CUSTOM_FIELD_GROUP_DELETE_HANDLE, + payload: { + customFieldGroup, + }, +}); + +export default { + createCustomFieldGroup, + handleCustomFieldGroupCreate, + updateCustomFieldGroup, + handleCustomFieldGroupUpdate, + deleteCustomFieldGroup, + handleCustomFieldGroupDelete, +}; diff --git a/client/src/actions/custom-field-values.js b/client/src/actions/custom-field-values.js new file mode 100644 index 00000000..f901eb0e --- /dev/null +++ b/client/src/actions/custom-field-values.js @@ -0,0 +1,72 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const updateCustomFieldValue = (customFieldValue) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_UPDATE, + payload: { + customFieldValue, + }, +}); + +updateCustomFieldValue.success = (localId, customFieldValue) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_UPDATE__SUCCESS, + payload: { + localId, + customFieldValue, + }, +}); + +updateCustomFieldValue.failure = (localId, error) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_UPDATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleCustomFieldValueUpdate = (customFieldValue) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_UPDATE_HANDLE, + payload: { + customFieldValue, + }, +}); + +const deleteCustomFieldValue = (id) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_DELETE, + payload: { + id, + }, +}); + +deleteCustomFieldValue.success = (customFieldValue) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_DELETE__SUCCESS, + payload: { + customFieldValue, + }, +}); + +deleteCustomFieldValue.failure = (id, error) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCustomFieldValueDelete = (customFieldValue) => ({ + type: ActionTypes.CUSTOM_FIELD_VALUE_DELETE_HANDLE, + payload: { + customFieldValue, + }, +}); + +export default { + updateCustomFieldValue, + handleCustomFieldValueUpdate, + deleteCustomFieldValue, + handleCustomFieldValueDelete, +}; diff --git a/client/src/actions/custom-fields.js b/client/src/actions/custom-fields.js new file mode 100644 index 00000000..88365566 --- /dev/null +++ b/client/src/actions/custom-fields.js @@ -0,0 +1,104 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const createCustomField = (customField) => ({ + type: ActionTypes.CUSTOM_FIELD_CREATE, + payload: { + customField, + }, +}); + +createCustomField.success = (localId, customField) => ({ + type: ActionTypes.CUSTOM_FIELD_CREATE__SUCCESS, + payload: { + localId, + customField, + }, +}); + +createCustomField.failure = (localId, error) => ({ + type: ActionTypes.CUSTOM_FIELD_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleCustomFieldCreate = (customField) => ({ + type: ActionTypes.CUSTOM_FIELD_CREATE_HANDLE, + payload: { + customField, + }, +}); + +const updateCustomField = (id, data) => ({ + type: ActionTypes.CUSTOM_FIELD_UPDATE, + payload: { + id, + data, + }, +}); + +updateCustomField.success = (customField) => ({ + type: ActionTypes.CUSTOM_FIELD_UPDATE__SUCCESS, + payload: { + customField, + }, +}); + +updateCustomField.failure = (id, error) => ({ + type: ActionTypes.CUSTOM_FIELD_UPDATE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCustomFieldUpdate = (customField) => ({ + type: ActionTypes.CUSTOM_FIELD_UPDATE_HANDLE, + payload: { + customField, + }, +}); + +const deleteCustomField = (id) => ({ + type: ActionTypes.CUSTOM_FIELD_DELETE, + payload: { + id, + }, +}); + +deleteCustomField.success = (customField) => ({ + type: ActionTypes.CUSTOM_FIELD_DELETE__SUCCESS, + payload: { + customField, + }, +}); + +deleteCustomField.failure = (id, error) => ({ + type: ActionTypes.CUSTOM_FIELD_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleCustomFieldDelete = (customField) => ({ + type: ActionTypes.CUSTOM_FIELD_DELETE_HANDLE, + payload: { + customField, + }, +}); + +export default { + createCustomField, + handleCustomFieldCreate, + updateCustomField, + handleCustomFieldUpdate, + deleteCustomField, + handleCustomFieldDelete, +}; diff --git a/client/src/actions/index.js b/client/src/actions/index.js index fb60dd42..626d23c6 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import router from './router'; import socket from './socket'; import login from './login'; @@ -6,16 +11,23 @@ import modals from './modals'; import users from './users'; import projects from './projects'; import projectManagers from './project-managers'; +import backgroundImages from './background-images'; +import baseCustomFieldGroups from './base-custom-field-groups'; import boards from './boards'; import boardMemberships from './board-memberships'; import labels from './labels'; import lists from './lists'; import cards from './cards'; +import taskLists from './task-lists'; import tasks from './tasks'; import attachments from './attachments'; +import customFieldGroups from './custom-field-groups'; +import customFields from './custom-fields'; +import customFieldValues from './custom-field-values'; +import comments from './comments'; import activities from './activities'; -import commentActivities from './comment-activities'; import notifications from './notifications'; +import notificationServices from './notification-services'; export default { ...router, @@ -26,14 +38,21 @@ export default { ...users, ...projects, ...projectManagers, + ...backgroundImages, + ...baseCustomFieldGroups, ...boards, ...boardMemberships, ...labels, ...lists, ...cards, + ...taskLists, ...tasks, ...attachments, + ...customFieldGroups, + ...customFields, + ...customFieldValues, + ...comments, ...activities, - ...commentActivities, ...notifications, + ...notificationServices, }; diff --git a/client/src/actions/labels.js b/client/src/actions/labels.js index fdb93124..01b14ce0 100644 --- a/client/src/actions/labels.js +++ b/client/src/actions/labels.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createLabel = (label) => ({ @@ -23,6 +28,32 @@ createLabel.failure = (localId, error) => ({ }, }); +const createLabelFromCard = (cardId, label) => ({ + type: ActionTypes.LABEL_FROM_CARD_CREATE, + payload: { + cardId, + label, + }, +}); + +createLabelFromCard.success = (localId, label, cardLabel) => ({ + type: ActionTypes.LABEL_FROM_CARD_CREATE__SUCCESS, + payload: { + localId, + label, + cardLabel, + }, +}); + +createLabelFromCard.failure = (cardId, localId, error) => ({ + type: ActionTypes.LABEL_FROM_CARD_CREATE__FAILURE, + payload: { + cardId, + localId, + error, + }, +}); + const handleLabelCreate = (label) => ({ type: ActionTypes.LABEL_CREATE_HANDLE, payload: { @@ -151,24 +182,27 @@ const handleLabelFromCardRemove = (cardLabel) => ({ }, }); -const addLabelToBoardFilter = (id, boardId) => ({ +const addLabelToBoardFilter = (id, boardId, currentListId) => ({ type: ActionTypes.LABEL_TO_BOARD_FILTER_ADD, payload: { id, boardId, + currentListId, }, }); -const removeLabelFromBoardFilter = (id, boardId) => ({ +const removeLabelFromBoardFilter = (id, boardId, currentListId) => ({ type: ActionTypes.LABEL_FROM_BOARD_FILTER_REMOVE, payload: { id, boardId, + currentListId, }, }); export default { createLabel, + createLabelFromCard, handleLabelCreate, updateLabel, handleLabelUpdate, diff --git a/client/src/actions/lists.js b/client/src/actions/lists.js index 4f85864c..eca13e7b 100644 --- a/client/src/actions/lists.js +++ b/client/src/actions/lists.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createList = (list) => ({ @@ -84,25 +89,75 @@ sortList.failure = (id, error) => ({ }, }); -const handleListSort = (list, cards) => ({ - type: ActionTypes.LIST_SORT_HANDLE, +const moveListCards = (id, nextId, cardIds) => ({ + type: ActionTypes.LIST_CARDS_MOVE, payload: { - list, - cards, + id, + nextId, + cardIds, }, }); -const deleteList = (id) => ({ - type: ActionTypes.LIST_DELETE, +moveListCards.success = (list, cards, activities) => ({ + type: ActionTypes.LIST_CARDS_MOVE__SUCCESS, + payload: { + list, + cards, + activities, + }, +}); + +moveListCards.failure = (id, error) => ({ + type: ActionTypes.LIST_CARDS_MOVE__FAILURE, + payload: { + id, + error, + }, +}); + +const clearList = (id) => ({ + type: ActionTypes.LIST_CLEAR, payload: { id, }, }); -deleteList.success = (list) => ({ +clearList.success = (list) => ({ + type: ActionTypes.LIST_CLEAR__SUCCESS, + payload: { + list, + }, +}); + +clearList.failure = (id, error) => ({ + type: ActionTypes.LIST_CLEAR__FAILURE, + payload: { + id, + error, + }, +}); + +const handleListClear = (list) => ({ + type: ActionTypes.LIST_CLEAR_HANDLE, + payload: { + list, + }, +}); + +const deleteList = (id, trashId, cardIds) => ({ + type: ActionTypes.LIST_DELETE, + payload: { + id, + trashId, + cardIds, + }, +}); + +deleteList.success = (list, cards) => ({ type: ActionTypes.LIST_DELETE__SUCCESS, payload: { list, + cards, }, }); @@ -114,10 +169,11 @@ deleteList.failure = (id, error) => ({ }, }); -const handleListDelete = (list) => ({ +const handleListDelete = (list, cards) => ({ type: ActionTypes.LIST_DELETE_HANDLE, payload: { list, + cards, }, }); @@ -127,7 +183,9 @@ export default { updateList, handleListUpdate, sortList, - handleListSort, + moveListCards, + clearList, + handleListClear, deleteList, handleListDelete, }; diff --git a/client/src/actions/login.js b/client/src/actions/login.js index afee55b7..8f9b72a0 100644 --- a/client/src/actions/login.js +++ b/client/src/actions/login.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const initializeLogin = (config) => ({ @@ -28,20 +33,20 @@ authenticate.failure = (error) => ({ }, }); -const authenticateUsingOidc = () => ({ - type: ActionTypes.USING_OIDC_AUTHENTICATE, +const authenticateWithOidc = () => ({ + type: ActionTypes.WITH_OIDC_AUTHENTICATE, payload: {}, }); -authenticateUsingOidc.success = (accessToken) => ({ - type: ActionTypes.USING_OIDC_AUTHENTICATE__SUCCESS, +authenticateWithOidc.success = (accessToken) => ({ + type: ActionTypes.WITH_OIDC_AUTHENTICATE__SUCCESS, payload: { accessToken, }, }); -authenticateUsingOidc.failure = (error) => ({ - type: ActionTypes.USING_OIDC_AUTHENTICATE__FAILURE, +authenticateWithOidc.failure = (error) => ({ + type: ActionTypes.WITH_OIDC_AUTHENTICATE__FAILURE, payload: { error, }, @@ -55,6 +60,6 @@ const clearAuthenticateError = () => ({ export default { initializeLogin, authenticate, - authenticateUsingOidc, + authenticateWithOidc, clearAuthenticateError, }; diff --git a/client/src/actions/modals.js b/client/src/actions/modals.js index 45476af1..e5fe1084 100644 --- a/client/src/actions/modals.js +++ b/client/src/actions/modals.js @@ -1,9 +1,15 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; -const openModal = (type) => ({ +const openModal = (type, params = {}) => ({ type: ActionTypes.MODAL_OPEN, payload: { type, + params, }, }); diff --git a/client/src/actions/notification-services.js b/client/src/actions/notification-services.js new file mode 100644 index 00000000..633b0a9e --- /dev/null +++ b/client/src/actions/notification-services.js @@ -0,0 +1,127 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const createNotificationService = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_CREATE, + payload: { + notificationService, + }, +}); + +createNotificationService.success = (localId, notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_CREATE__SUCCESS, + payload: { + localId, + notificationService, + }, +}); + +createNotificationService.failure = (localId, error) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleNotificationServiceCreate = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_CREATE_HANDLE, + payload: { + notificationService, + }, +}); + +const updateNotificationService = (id, data) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_UPDATE, + payload: { + id, + data, + }, +}); + +updateNotificationService.success = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_UPDATE__SUCCESS, + payload: { + notificationService, + }, +}); + +updateNotificationService.failure = (id, error) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_UPDATE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleNotificationServiceUpdate = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_UPDATE_HANDLE, + payload: { + notificationService, + }, +}); + +const testNotificationService = (id) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_TEST, + payload: { + id, + }, +}); + +testNotificationService.success = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_TEST__SUCCESS, + payload: { + notificationService, + }, +}); + +testNotificationService.failure = (id, error) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_TEST__FAILURE, + payload: { + id, + error, + }, +}); + +const deleteNotificationService = (id) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_DELETE, + payload: { + id, + }, +}); + +deleteNotificationService.success = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_DELETE__SUCCESS, + payload: { + notificationService, + }, +}); + +deleteNotificationService.failure = (id, error) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleNotificationServiceDelete = (notificationService) => ({ + type: ActionTypes.NOTIFICATION_SERVICE_DELETE_HANDLE, + payload: { + notificationService, + }, +}); + +export default { + createNotificationService, + handleNotificationServiceCreate, + updateNotificationService, + handleNotificationServiceUpdate, + testNotificationService, + deleteNotificationService, + handleNotificationServiceDelete, +}; diff --git a/client/src/actions/notifications.js b/client/src/actions/notifications.js index 5e3084b9..93e967f8 100644 --- a/client/src/actions/notifications.js +++ b/client/src/actions/notifications.js @@ -1,12 +1,34 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; -const handleNotificationCreate = (notification, users, cards, activities) => ({ +const deleteAllNotifications = () => ({ + type: ActionTypes.ALL_NOTIFICATIONS_DELETE, + payload: {}, +}); + +deleteAllNotifications.success = (notifications) => ({ + type: ActionTypes.ALL_NOTIFICATIONS_DELETE__SUCCESS, + payload: { + notifications, + }, +}); + +deleteAllNotifications.failure = (error) => ({ + type: ActionTypes.ALL_NOTIFICATIONS_DELETE__FAILURE, + payload: { + error, + }, +}); + +const handleNotificationCreate = (notification, users) => ({ type: ActionTypes.NOTIFICATION_CREATE_HANDLE, payload: { notification, users, - cards, - activities, }, }); @@ -40,6 +62,7 @@ const handleNotificationDelete = (notification) => ({ }); export default { + deleteAllNotifications, handleNotificationCreate, deleteNotification, handleNotificationDelete, diff --git a/client/src/actions/project-managers.js b/client/src/actions/project-managers.js index d7595b9b..b773520a 100644 --- a/client/src/actions/project-managers.js +++ b/client/src/actions/project-managers.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createProjectManager = (projectManager) => ({ @@ -25,10 +30,15 @@ createProjectManager.failure = (localId, error) => ({ const handleProjectManagerCreate = ( projectManager, + boardIds, + isCurrentUser, + isProjectAvailable, project, board, users, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -36,17 +46,27 @@ const handleProjectManagerCreate = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - deletedNotifications, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, ) => ({ type: ActionTypes.PROJECT_MANAGER_CREATE_HANDLE, payload: { projectManager, + boardIds, + isCurrentUser, + isProjectAvailable, project, board, users, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -54,27 +74,21 @@ const handleProjectManagerCreate = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - deletedNotifications, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, }, }); -handleProjectManagerCreate.fetchProject = (id, currentUserId, currentBoardId) => ({ - type: ActionTypes.PROJECT_MANAGER_CREATE_HANDLE__PROJECT_FETCH, - payload: { - id, - currentUserId, - currentBoardId, - }, -}); - -const deleteProjectManager = (id, isCurrentUser, isCurrentProject) => ({ +const deleteProjectManager = (id) => ({ type: ActionTypes.PROJECT_MANAGER_DELETE, payload: { id, - isCurrentUser, - isCurrentProject, }, }); @@ -93,12 +107,10 @@ deleteProjectManager.failure = (id, error) => ({ }, }); -const handleProjectManagerDelete = (projectManager, isCurrentUser, isCurrentProject) => ({ +const handleProjectManagerDelete = (projectManager) => ({ type: ActionTypes.PROJECT_MANAGER_DELETE_HANDLE, payload: { projectManager, - isCurrentUser, - isCurrentProject, }, }); diff --git a/client/src/actions/projects.js b/client/src/actions/projects.js index d6374bdd..1c63ff98 100644 --- a/client/src/actions/projects.js +++ b/client/src/actions/projects.js @@ -1,5 +1,31 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; +const searchProjects = (value) => ({ + type: ActionTypes.PROJECTS_SEARCH, + payload: { + value, + }, +}); + +const updateProjectsOrder = (value) => ({ + type: ActionTypes.PROJECTS_ORDER_UPDATE, + payload: { + value, + }, +}); + +const toggleHiddenProjects = (isVisible) => ({ + type: ActionTypes.HIDDEN_PROJECTS_TOGGLE, + payload: { + isVisible, + }, +}); + const createProject = (data) => ({ type: ActionTypes.PROJECT_CREATE, payload: { @@ -22,14 +48,28 @@ createProject.failure = (error) => ({ }, }); -const handleProjectCreate = (project, users, projectManagers, boards, boardMemberships) => ({ +const handleProjectCreate = ( + project, + users, + projectManagers, + backgroundImages, + baseCustomFieldGroups, + boards, + boardMemberships, + customFields, + notificationServices, +) => ({ type: ActionTypes.PROJECT_CREATE_HANDLE, payload: { project, users, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, + customFields, + notificationServices, }, }); @@ -56,32 +96,56 @@ updateProject.failure = (id, error) => ({ }, }); -const handleProjectUpdate = (project) => ({ +const handleProjectUpdate = ( + project, + boardIds, + isAvailable, + board, + users, + projectManagers, + backgroundImages, + baseCustomFieldGroups, + boards, + boardMemberships, + labels, + lists, + cards, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, +) => ({ type: ActionTypes.PROJECT_UPDATE_HANDLE, payload: { project, - }, -}); - -const updateProjectBackgroundImage = (id) => ({ - type: ActionTypes.PROJECT_BACKGROUND_IMAGE_UPDATE, - payload: { - id, - }, -}); - -updateProjectBackgroundImage.success = (project) => ({ - type: ActionTypes.PROJECT_BACKGROUND_IMAGE_UPDATE__SUCCESS, - payload: { - project, - }, -}); - -updateProjectBackgroundImage.failure = (id, error) => ({ - type: ActionTypes.PROJECT_BACKGROUND_IMAGE_UPDATE__FAILURE, - payload: { - id, - error, + boardIds, + isAvailable, + board, + users, + projectManagers, + backgroundImages, + baseCustomFieldGroups, + boards, + boardMemberships, + labels, + lists, + cards, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, }, }); @@ -115,11 +179,13 @@ const handleProjectDelete = (project) => ({ }); export default { + searchProjects, + updateProjectsOrder, + toggleHiddenProjects, createProject, handleProjectCreate, updateProject, handleProjectUpdate, - updateProjectBackgroundImage, deleteProject, handleProjectDelete, }; diff --git a/client/src/actions/router.js b/client/src/actions/router.js index ba743aa2..5286eea1 100644 --- a/client/src/actions/router.js +++ b/client/src/actions/router.js @@ -1,6 +1,15 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const handleLocationChange = ( + pathname, + currentBoardId, + currentCardId, + isEditModeEnabled, board, users, projects, @@ -10,12 +19,20 @@ const handleLocationChange = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - deletedNotifications, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, ) => ({ type: ActionTypes.LOCATION_CHANGE_HANDLE, payload: { + pathname, + currentBoardId, + currentCardId, + isEditModeEnabled, board, users, projects, @@ -25,12 +42,21 @@ const handleLocationChange = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - deletedNotifications, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, }, }); +handleLocationChange.fetchContent = () => ({ + type: ActionTypes.LOCATION_CHANGE_HANDLE__CONTENT_FETCH, + payload: {}, +}); + handleLocationChange.fetchBoard = (id) => ({ type: ActionTypes.LOCATION_CHANGE_HANDLE__BOARD_FETCH, payload: { diff --git a/client/src/actions/socket.js b/client/src/actions/socket.js index 8f6fdf9a..65881221 100644 --- a/client/src/actions/socket.js +++ b/client/src/actions/socket.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const handleSocketDisconnect = () => ({ @@ -6,11 +11,14 @@ const handleSocketDisconnect = () => ({ }); const handleSocketReconnect = ( + config, user, board, users, projects, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -18,18 +26,25 @@ const handleSocketReconnect = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - activities, + customFieldGroups, + customFields, + customFieldValues, notifications, + notificationServices, ) => ({ type: ActionTypes.SOCKET_RECONNECT_HANDLE, payload: { + config, user, board, users, projects, projectManagers, + backgroundImages, + baseCustomFieldGroups, boards, boardMemberships, labels, @@ -37,10 +52,14 @@ const handleSocketReconnect = ( cards, cardMemberships, cardLabels, + taskLists, tasks, attachments, - activities, + customFieldGroups, + customFields, + customFieldValues, notifications, + notificationServices, }, }); diff --git a/client/src/actions/task-lists.js b/client/src/actions/task-lists.js new file mode 100644 index 00000000..f29b7cf8 --- /dev/null +++ b/client/src/actions/task-lists.js @@ -0,0 +1,104 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import ActionTypes from '../constants/ActionTypes'; + +const createTaskList = (taskList) => ({ + type: ActionTypes.TASK_LIST_CREATE, + payload: { + taskList, + }, +}); + +createTaskList.success = (localId, taskList) => ({ + type: ActionTypes.TASK_LIST_CREATE__SUCCESS, + payload: { + localId, + taskList, + }, +}); + +createTaskList.failure = (localId, error) => ({ + type: ActionTypes.TASK_LIST_CREATE__FAILURE, + payload: { + localId, + error, + }, +}); + +const handleTaskListCreate = (taskList) => ({ + type: ActionTypes.TASK_LIST_CREATE_HANDLE, + payload: { + taskList, + }, +}); + +const updateTaskList = (id, data) => ({ + type: ActionTypes.TASK_LIST_UPDATE, + payload: { + id, + data, + }, +}); + +updateTaskList.success = (taskList) => ({ + type: ActionTypes.TASK_LIST_UPDATE__SUCCESS, + payload: { + taskList, + }, +}); + +updateTaskList.failure = (id, error) => ({ + type: ActionTypes.TASK_LIST_UPDATE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleTaskListUpdate = (taskList) => ({ + type: ActionTypes.TASK_LIST_UPDATE_HANDLE, + payload: { + taskList, + }, +}); + +const deleteTaskList = (id) => ({ + type: ActionTypes.TASK_LIST_DELETE, + payload: { + id, + }, +}); + +deleteTaskList.success = (taskList) => ({ + type: ActionTypes.TASK_LIST_DELETE__SUCCESS, + payload: { + taskList, + }, +}); + +deleteTaskList.failure = (id, error) => ({ + type: ActionTypes.TASK_LIST_DELETE__FAILURE, + payload: { + id, + error, + }, +}); + +const handleTaskListDelete = (taskList) => ({ + type: ActionTypes.TASK_LIST_DELETE_HANDLE, + payload: { + taskList, + }, +}); + +export default { + createTaskList, + handleTaskListCreate, + updateTaskList, + handleTaskListUpdate, + deleteTaskList, + handleTaskListDelete, +}; diff --git a/client/src/actions/tasks.js b/client/src/actions/tasks.js index 679ade0f..c99a206b 100644 --- a/client/src/actions/tasks.js +++ b/client/src/actions/tasks.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createTask = (task) => ({ diff --git a/client/src/actions/users.js b/client/src/actions/users.js index ad1aaa5d..bdf00bde 100644 --- a/client/src/actions/users.js +++ b/client/src/actions/users.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import ActionTypes from '../constants/ActionTypes'; const createUser = (data) => ({ @@ -56,12 +61,60 @@ updateUser.failure = (id, error) => ({ }, }); -const handleUserUpdate = (user, users, isCurrent) => ({ +const handleUserUpdate = ( + user, + projectIds, + boardIds, + config, + board, + users, + projects, + projectManagers, + backgroundImages, + baseCustomFieldGroups, + boards, + boardMemberships, + labels, + lists, + cards, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, +) => ({ type: ActionTypes.USER_UPDATE_HANDLE, payload: { user, + projectIds, + boardIds, + config, + board, users, - isCurrent, + projects, + projectManagers, + backgroundImages, + baseCustomFieldGroups, + boards, + boardMemberships, + labels, + lists, + cards, + cardMemberships, + cardLabels, + taskLists, + tasks, + attachments, + customFieldGroups, + customFields, + customFieldValues, + notificationsToDelete, + notificationServices, }, }); @@ -270,19 +323,22 @@ const handleUserFromCardRemove = (cardMembership) => ({ }, }); -const addUserToBoardFilter = (id, boardId) => ({ +const addUserToBoardFilter = (id, boardId, replace, currentListId) => ({ type: ActionTypes.USER_TO_BOARD_FILTER_ADD, payload: { id, boardId, + replace, + currentListId, }, }); -const removeUserFromBoardFilter = (id, boardId) => ({ +const removeUserFromBoardFilter = (id, boardId, currentListId) => ({ type: ActionTypes.USER_FROM_BOARD_FILTER_REMOVE, payload: { id, boardId, + currentListId, }, }); diff --git a/client/src/api/access-tokens.js b/client/src/api/access-tokens.js index 322438c6..53c769cb 100755 --- a/client/src/api/access-tokens.js +++ b/client/src/api/access-tokens.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import http from './http'; /* Actions */ @@ -5,13 +10,13 @@ import http from './http'; const createAccessToken = (data, headers) => http.post('/access-tokens?withHttpOnlyToken=true', data, headers); -const exchangeForAccessTokenUsingOidc = (data, headers) => - http.post('/access-tokens/exchange-using-oidc?withHttpOnlyToken=true', data, headers); +const exchangeForAccessTokenWithOidc = (data, headers) => + http.post('/access-tokens/exchange-with-oidc?withHttpOnlyToken=true', data, headers); const deleteCurrentAccessToken = (headers) => http.delete('/access-tokens/me', undefined, headers); export default { createAccessToken, - exchangeForAccessTokenUsingOidc, + exchangeForAccessTokenWithOidc, deleteCurrentAccessToken, }; diff --git a/client/src/api/activities.js b/client/src/api/activities.js index 523c6850..cb0cbbb8 100755 --- a/client/src/api/activities.js +++ b/client/src/api/activities.js @@ -1,11 +1,17 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; -import { transformUser } from './users'; /* Transformers */ export const transformActivity = (activity) => ({ ...activity, - createdAt: new Date(activity.createdAt), + ...(activity.createdAt && { + createdAt: new Date(activity.createdAt), + }), }); /* Actions */ @@ -14,10 +20,6 @@ const getActivities = (cardId, data, headers) => socket.get(`/cards/${cardId}/actions`, data, headers).then((body) => ({ ...body, items: body.items.map(transformActivity), - included: { - ...body.included, - users: body.included.users.map(transformUser), - }, })); /* Event handlers */ @@ -29,13 +31,7 @@ const makeHandleActivityCreate = (next) => (body) => { }); }; -const makeHandleActivityUpdate = makeHandleActivityCreate; - -const makeHandleActivityDelete = makeHandleActivityCreate; - export default { getActivities, makeHandleActivityCreate, - makeHandleActivityUpdate, - makeHandleActivityDelete, }; diff --git a/client/src/api/attachments.js b/client/src/api/attachments.js index f3edba43..1af23a5b 100755 --- a/client/src/api/attachments.js +++ b/client/src/api/attachments.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import http from './http'; import socket from './socket'; @@ -5,17 +10,34 @@ import socket from './socket'; export const transformAttachment = (attachment) => ({ ...attachment, - createdAt: new Date(attachment.createdAt), + ...(attachment.createdAt && { + createdAt: new Date(attachment.createdAt), + }), }); /* Actions */ -const createAttachment = (cardId, data, requestId, headers) => - http.post(`/cards/${cardId}/attachments?requestId=${requestId}`, data, headers).then((body) => ({ +const createAttachment = (cardId, data, headers) => + socket.post(`/cards/${cardId}/attachments`, data, headers).then((body) => ({ ...body, item: transformAttachment(body.item), })); +const createAttachmentWithFile = (cardId, { file, ...data }, requestId, headers) => + http + .post( + `/cards/${cardId}/attachments?requestId=${requestId}`, + { + ...data, + file, + }, + headers, + ) + .then((body) => ({ + ...body, + item: transformAttachment(body.item), + })); + const updateAttachment = (id, data, headers) => socket.patch(`/attachments/${id}`, data, headers).then((body) => ({ ...body, @@ -43,6 +65,7 @@ const makeHandleAttachmentDelete = makeHandleAttachmentCreate; export default { createAttachment, + createAttachmentWithFile, updateAttachment, deleteAttachment, makeHandleAttachmentCreate, diff --git a/client/src/api/background-images.js b/client/src/api/background-images.js new file mode 100644 index 00000000..401f6f3e --- /dev/null +++ b/client/src/api/background-images.js @@ -0,0 +1,27 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import http from './http'; +import socket from './socket'; + +/* Actions */ + +const createBackgroundImage = (projectId, { file, ...data }, requestId, headers) => + http.post( + `/projects/${projectId}/background-images?requestId=${requestId}`, + { + ...data, + file, + }, + headers, + ); + +const deleteBackgroundImage = (id, headers) => + socket.delete(`/background-images/${id}`, undefined, headers); + +export default { + createBackgroundImage, + deleteBackgroundImage, +}; diff --git a/client/src/api/base-custom-field-groups.js b/client/src/api/base-custom-field-groups.js new file mode 100755 index 00000000..9c0acb0d --- /dev/null +++ b/client/src/api/base-custom-field-groups.js @@ -0,0 +1,23 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Actions */ + +const createBaseCustomFieldGroup = (projectId, data, headers) => + socket.post(`/projects/${projectId}/base-custom-field-groups`, data, headers); + +const updateBaseCustomFieldGroup = (id, data, headers) => + socket.patch(`/base-custom-field-groups/${id}`, data, headers); + +const deleteBaseCustomFieldGroup = (id, headers) => + socket.delete(`/base-custom-field-groups/${id}`, undefined, headers); + +export default { + createBaseCustomFieldGroup, + updateBaseCustomFieldGroup, + deleteBaseCustomFieldGroup, +}; diff --git a/client/src/api/board-memberships.js b/client/src/api/board-memberships.js index 1e75e4f7..82e37800 100644 --- a/client/src/api/board-memberships.js +++ b/client/src/api/board-memberships.js @@ -1,50 +1,23 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; -/* Transformers */ - -export const transformBoardMembership = (boardMembership) => ({ - ...boardMembership, - createdAt: new Date(boardMembership.createdAt), -}); - /* Actions */ const createBoardMembership = (boardId, data, headers) => - socket.post(`/boards/${boardId}/memberships`, data, headers).then((body) => ({ - ...body, - item: transformBoardMembership(body.item), - })); + socket.post(`/boards/${boardId}/board-memberships`, data, headers); const updateBoardMembership = (id, data, headers) => - socket.patch(`/board-memberships/${id}`, data, headers).then((body) => ({ - ...body, - item: transformBoardMembership(body.item), - })); + socket.patch(`/board-memberships/${id}`, data, headers); const deleteBoardMembership = (id, headers) => - socket.delete(`/board-memberships/${id}`, undefined, headers).then((body) => ({ - ...body, - item: transformBoardMembership(body.item), - })); - -/* Event handlers */ - -const makeHandleBoardMembershipCreate = (next) => (body) => { - next({ - ...body, - item: transformBoardMembership(body.item), - }); -}; - -const makeHandleBoardMembershipUpdate = makeHandleBoardMembershipCreate; - -const makeHandleBoardMembershipDelete = makeHandleBoardMembershipCreate; + socket.delete(`/board-memberships/${id}`, undefined, headers); export default { createBoardMembership, updateBoardMembership, deleteBoardMembership, - makeHandleBoardMembershipCreate, - makeHandleBoardMembershipUpdate, - makeHandleBoardMembershipDelete, }; diff --git a/client/src/api/boards.js b/client/src/api/boards.js index b8ead169..c804b4de 100755 --- a/client/src/api/boards.js +++ b/client/src/api/boards.js @@ -1,20 +1,17 @@ -import socket from './socket'; +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import http from './http'; -import { transformUser } from './users'; -import { transformBoardMembership } from './board-memberships'; +import socket from './socket'; import { transformCard } from './cards'; import { transformAttachment } from './attachments'; /* Actions */ const createBoard = (projectId, data, headers) => - socket.post(`/projects/${projectId}/boards`, data, headers).then((body) => ({ - ...body, - included: { - ...body.included, - boardMemberships: body.included.boardMemberships.map(transformBoardMembership), - }, - })); + socket.post(`/projects/${projectId}/boards`, data, headers); const createBoardWithImport = (projectId, data, requestId, headers) => http.post(`/projects/${projectId}/boards?requestId=${requestId}`, data, headers); @@ -26,8 +23,6 @@ const getBoard = (id, subscribe, headers) => ...body, included: { ...body.included, - users: body.included.users.map(transformUser), - boardMemberships: body.included.boardMemberships.map(transformBoardMembership), cards: body.included.cards.map(transformCard), attachments: body.included.attachments.map(transformAttachment), }, diff --git a/client/src/api/card-labels.js b/client/src/api/card-labels.js index 92715d64..8b6352c9 100644 --- a/client/src/api/card-labels.js +++ b/client/src/api/card-labels.js @@ -1,12 +1,17 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; /* Actions */ const createCardLabel = (cardId, data, headers) => - socket.post(`/cards/${cardId}/labels`, data, headers); + socket.post(`/cards/${cardId}/card-labels`, data, headers); const deleteCardLabel = (cardId, labelId, headers) => - socket.delete(`/cards/${cardId}/labels/${labelId}`, undefined, headers); + socket.delete(`/cards/${cardId}/card-labels/labelId:${labelId}`, undefined, headers); export default { createCardLabel, diff --git a/client/src/api/card-memberships.js b/client/src/api/card-memberships.js index 2deb9d92..a182eea1 100644 --- a/client/src/api/card-memberships.js +++ b/client/src/api/card-memberships.js @@ -1,12 +1,17 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; /* Actions */ const createCardMembership = (cardId, data, headers) => - socket.post(`/cards/${cardId}/memberships`, data, headers); + socket.post(`/cards/${cardId}/card-memberships`, data, headers); const deleteCardMembership = (cardId, userId, headers) => - socket.delete(`/cards/${cardId}/memberships?userId=${userId}`, undefined, headers); + socket.delete(`/cards/${cardId}/card-memberships/userId:${userId}`, undefined, headers); export default { createCardMembership, diff --git a/client/src/api/cards.js b/client/src/api/cards.js index 568ca8e8..e780fa78 100755 --- a/client/src/api/cards.js +++ b/client/src/api/cards.js @@ -1,5 +1,14 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import omit from 'lodash/omit'; + import socket from './socket'; import { transformAttachment } from './attachments'; +import { transformActivity } from './activities'; +import { transformNotification } from './notifications'; /* Transformers */ @@ -16,6 +25,12 @@ export const transformCard = (card) => ({ }), }, }), + ...(card.createdAt && { + createdAt: new Date(card.createdAt), + }), + ...(card.listChangedAt && { + listChangedAt: new Date(card.listChangedAt), + }), }); export const transformCardData = (data) => ({ @@ -35,6 +50,16 @@ export const transformCardData = (data) => ({ /* Actions */ +const getCards = (listId, data, headers) => + socket.get(`/lists/${listId}/cards`, data, headers).then((body) => ({ + ...body, + items: body.items.map(transformCard), + included: { + ...body.included, + attachments: body.included.attachments.map(transformAttachment), + }, + })); + const createCard = (listId, data, headers) => socket.post(`/lists/${listId}/cards`, transformCardData(data), headers).then((body) => ({ ...body, @@ -61,6 +86,20 @@ const duplicateCard = (id, data, headers) => socket.post(`/cards/${id}/duplicate`, data, headers).then((body) => ({ ...body, item: transformCard(body.item), + included: { + ...body.included, + attachments: body.included.attachments.map(transformAttachment), + }, + })); + +const readCardNotifications = (id, headers) => + socket.post(`/cards/${id}/read-notifications`, undefined, headers).then((body) => ({ + ...body, + item: transformCard(body.item), + included: { + ...body.included, + notifications: body.included.notifications.map(transformNotification), + }, })); const deleteCard = (id, headers) => @@ -71,6 +110,17 @@ const deleteCard = (id, headers) => /* Event handlers */ +const makeHandleCardsUpdate = (next) => (body) => { + next({ + ...body, + items: body.items.map(transformCard), + included: body.included && { + ...omit(body.included, 'actions'), + activities: body.included.actions.map(transformActivity), + }, + }); +}; + const makeHandleCardCreate = (next) => (body) => { next({ ...body, @@ -80,14 +130,17 @@ const makeHandleCardCreate = (next) => (body) => { const makeHandleCardUpdate = makeHandleCardCreate; -const makeHandleCardDelete = makeHandleCardCreate; +const makeHandleCardDelete = makeHandleCardUpdate; export default { + getCards, createCard, getCard, updateCard, - deleteCard, duplicateCard, + readCardNotifications, + deleteCard, + makeHandleCardsUpdate, makeHandleCardCreate, makeHandleCardUpdate, makeHandleCardDelete, diff --git a/client/src/api/comment-activities.js b/client/src/api/comment-activities.js deleted file mode 100755 index 814f9dec..00000000 --- a/client/src/api/comment-activities.js +++ /dev/null @@ -1,28 +0,0 @@ -import socket from './socket'; -import { transformActivity } from './activities'; - -/* Actions */ - -const createCommentActivity = (cardId, data, headers) => - socket.post(`/cards/${cardId}/comment-actions`, data, headers).then((body) => ({ - ...body, - item: transformActivity(body.item), - })); - -const updateCommentActivity = (id, data, headers) => - socket.patch(`/comment-actions/${id}`, data, headers).then((body) => ({ - ...body, - item: transformActivity(body.item), - })); - -const deleteCommentActivity = (id, headers) => - socket.delete(`/comment-actions/${id}`, undefined, headers).then((body) => ({ - ...body, - item: transformActivity(body.item), - })); - -export default { - createCommentActivity, - updateCommentActivity, - deleteCommentActivity, -}; diff --git a/client/src/api/comments.js b/client/src/api/comments.js new file mode 100644 index 00000000..027e900f --- /dev/null +++ b/client/src/api/comments.js @@ -0,0 +1,64 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Transformers */ + +export const transformComment = (comment) => ({ + ...comment, + ...(comment.createdAt && { + createdAt: new Date(comment.createdAt), + }), +}); + +/* Actions */ + +const getComments = (cardId, data, headers) => + socket.get(`/cards/${cardId}/comments`, data, headers).then((body) => ({ + ...body, + items: body.items.map(transformComment), + })); + +const createComment = (cardId, data, headers) => + socket.post(`/cards/${cardId}/comments`, data, headers).then((body) => ({ + ...body, + item: transformComment(body.item), + })); + +const updateComment = (id, data, headers) => + socket.patch(`/comments/${id}`, data, headers).then((body) => ({ + ...body, + item: transformComment(body.item), + })); + +const deleteComment = (id, headers) => + socket.delete(`/comments/${id}`, undefined, headers).then((body) => ({ + ...body, + item: transformComment(body.item), + })); + +/* Event handlers */ + +const makeHandleCommentCreate = (next) => (body) => { + next({ + ...body, + item: transformComment(body.item), + }); +}; + +const makeHandleCommentUpdate = makeHandleCommentCreate; + +const makeHandleCommentDelete = makeHandleCommentUpdate; + +export default { + getComments, + createComment, + updateComment, + deleteComment, + makeHandleCommentCreate, + makeHandleCommentUpdate, + makeHandleCommentDelete, +}; diff --git a/client/src/api/config.js b/client/src/api/config.js new file mode 100644 index 00000000..65577881 --- /dev/null +++ b/client/src/api/config.js @@ -0,0 +1,14 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import http from './http'; + +/* Actions */ + +const getConfig = (headers) => http.get('/config', undefined, headers); + +export default { + getConfig, +}; diff --git a/client/src/api/custom-field-groups.js b/client/src/api/custom-field-groups.js new file mode 100755 index 00000000..1d58d078 --- /dev/null +++ b/client/src/api/custom-field-groups.js @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Actions */ + +const createCustomFieldGroupInBoard = (cardId, data, headers) => + socket.post(`/boards/${cardId}/custom-field-groups`, data, headers); + +const createCustomFieldGroupInCard = (cardId, data, headers) => + socket.post(`/cards/${cardId}/custom-field-groups`, data, headers); + +const getCustomFieldGroup = (id, headers) => + socket.get(`/custom-field-groups/${id}`, undefined, headers); + +const updateCustomFieldGroup = (id, data, headers) => + socket.patch(`/custom-field-groups/${id}`, data, headers); + +const deleteCustomFieldGroup = (id, headers) => + socket.delete(`/custom-field-groups/${id}`, undefined, headers); + +export default { + createCustomFieldGroupInBoard, + createCustomFieldGroupInCard, + getCustomFieldGroup, + updateCustomFieldGroup, + deleteCustomFieldGroup, +}; diff --git a/client/src/api/custom-field-values.js b/client/src/api/custom-field-values.js new file mode 100644 index 00000000..0d07d607 --- /dev/null +++ b/client/src/api/custom-field-values.js @@ -0,0 +1,27 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Actions */ + +const updateCustomFieldValue = (cardId, customFieldGroupId, customFieldId, data, headers) => + socket.patch( + `/cards/${cardId}/custom-field-values/customFieldGroupId:${customFieldGroupId}:customFieldId:${customFieldId}`, + data, + headers, + ); + +const deleteCustomFieldValue = (cardId, customFieldGroupId, customFieldId, headers) => + socket.delete( + `/cards/${cardId}/custom-field-values/customFieldGroupId:${customFieldGroupId}:customFieldId:${customFieldId}`, + undefined, + headers, + ); + +export default { + updateCustomFieldValue, + deleteCustomFieldValue, +}; diff --git a/client/src/api/custom-fields.js b/client/src/api/custom-fields.js new file mode 100755 index 00000000..1b09a6c7 --- /dev/null +++ b/client/src/api/custom-fields.js @@ -0,0 +1,27 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Actions */ + +const createCustomFieldInBaseGroup = (baseCustomFieldGroupId, data, headers) => + socket.post(`/base-custom-field-groups/${baseCustomFieldGroupId}/custom-fields`, data, headers); + +const createCustomFieldInGroup = (customFieldGroupId, data, headers) => + socket.post(`/custom-field-groups/${customFieldGroupId}/custom-fields`, data, headers); + +const updateCustomField = (id, data, headers) => + socket.patch(`/custom-fields/${id}`, data, headers); + +const deleteCustomField = (id, headers) => + socket.delete(`/custom-fields/${id}`, undefined, headers); + +export default { + createCustomFieldInBaseGroup, + createCustomFieldInGroup, + updateCustomField, + deleteCustomField, +}; diff --git a/client/src/api/http.js b/client/src/api/http.js index 93fd7604..4d5ceca1 100755 --- a/client/src/api/http.js +++ b/client/src/api/http.js @@ -1,4 +1,7 @@ -import { fetch } from 'whatwg-fetch'; +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ import Config from '../constants/Config'; diff --git a/client/src/api/index.js b/client/src/api/index.js index dc4ed4d7..ca98d773 100755 --- a/client/src/api/index.js +++ b/client/src/api/index.js @@ -1,10 +1,17 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import http from './http'; import socket from './socket'; -import root from './root'; +import config from './config'; import accessTokens from './access-tokens'; import users from './users'; import projects from './projects'; import projectManagers from './project-managers'; +import backgroundImages from './background-images'; +import baseCustomFieldGroups from './base-custom-field-groups'; import boards from './boards'; import boardMemberships from './board-memberships'; import labels from './labels'; @@ -12,20 +19,27 @@ import lists from './lists'; import cards from './cards'; import cardMemberships from './card-memberships'; import cardLabels from './card-labels'; +import taskLists from './task-lists'; import tasks from './tasks'; import attachments from './attachments'; +import customFieldGroups from './custom-field-groups'; +import customFields from './custom-fields'; +import customFieldValues from './custom-field-values'; +import comments from './comments'; import activities from './activities'; -import commentActivities from './comment-activities'; import notifications from './notifications'; +import notificationServices from './notification-services'; export { http, socket }; export default { - ...root, + ...config, ...accessTokens, ...users, ...projects, ...projectManagers, + ...backgroundImages, + ...baseCustomFieldGroups, ...boards, ...boardMemberships, ...labels, @@ -33,9 +47,14 @@ export default { ...cards, ...cardMemberships, ...cardLabels, + ...taskLists, ...tasks, ...attachments, + ...customFieldGroups, + ...customFields, + ...customFieldValues, + ...comments, ...activities, - ...commentActivities, ...notifications, + ...notificationServices, }; diff --git a/client/src/api/labels.js b/client/src/api/labels.js index e1101ef3..a3761983 100755 --- a/client/src/api/labels.js +++ b/client/src/api/labels.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; /* Actions */ diff --git a/client/src/api/lists.js b/client/src/api/lists.js index 2ed11c59..228fabbe 100755 --- a/client/src/api/lists.js +++ b/client/src/api/lists.js @@ -1,11 +1,30 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import omit from 'lodash/omit'; + import socket from './socket'; import { transformCard } from './cards'; +import { transformAttachment } from './attachments'; +import { transformActivity } from './activities'; /* Actions */ const createList = (boardId, data, headers) => socket.post(`/boards/${boardId}/lists`, data, headers); +const getList = (id, headers) => + socket.get(`/lists/${id}`, undefined, headers).then((body) => ({ + ...body, + included: { + ...body.included, + cards: body.included.cards.map(transformCard), + attachments: body.included.attachments.map(transformAttachment), + }, + })); + const updateList = (id, data, headers) => socket.patch(`/lists/${id}`, data, headers); const sortList = (id, data, headers) => @@ -17,11 +36,30 @@ const sortList = (id, data, headers) => }, })); -const deleteList = (id, headers) => socket.delete(`/lists/${id}`, undefined, headers); +const moveListCards = (id, data, headers) => + socket.post(`/lists/${id}/move-cards`, data, headers).then((body) => ({ + ...body, + included: { + ...omit(body.included, 'actions'), + cards: body.included.cards.map(transformCard), + activities: body.included.actions.map(transformActivity), + }, + })); + +const clearList = (id, headers) => socket.post(`/lists/${id}/clear`, undefined, headers); + +const deleteList = (id, headers) => + socket.delete(`/lists/${id}`, undefined, headers).then((body) => ({ + ...body, + included: { + ...body.included, + cards: body.included.cards.map(transformCard), + }, + })); /* Event handlers */ -const makeHandleListSort = (next) => (body) => { +const makeHandleListDelete = (next) => (body) => { next({ ...body, included: { @@ -33,8 +71,11 @@ const makeHandleListSort = (next) => (body) => { export default { createList, + getList, updateList, sortList, + moveListCards, + clearList, deleteList, - makeHandleListSort, + makeHandleListDelete, }; diff --git a/client/src/api/notification-services.js b/client/src/api/notification-services.js new file mode 100755 index 00000000..f7b4e7bb --- /dev/null +++ b/client/src/api/notification-services.js @@ -0,0 +1,31 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Actions */ + +const createNotificationServiceInUser = (userId, data, headers) => + socket.post(`/users/${userId}/notification-services`, data, headers); + +const createNotificationServiceInBoard = (boardId, data, headers) => + socket.post(`/boards/${boardId}/notification-services`, data, headers); + +const updateNotificationService = (id, data, headers) => + socket.patch(`/notification-services/${id}`, data, headers); + +const testNotificationService = (id, headers) => + socket.post(`/notification-services/${id}/test`, undefined, headers); + +const deleteNotificationService = (id, headers) => + socket.delete(`/notification-services/${id}`, undefined, headers); + +export default { + createNotificationServiceInUser, + createNotificationServiceInBoard, + updateNotificationService, + testNotificationService, + deleteNotificationService, +}; diff --git a/client/src/api/notifications.js b/client/src/api/notifications.js index eac7609a..b0456229 100755 --- a/client/src/api/notifications.js +++ b/client/src/api/notifications.js @@ -1,15 +1,21 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import omit from 'lodash/omit'; import socket from './socket'; -import { transformUser } from './users'; -import { transformCard } from './cards'; -import { transformActivity } from './activities'; /* Transformers */ export const transformNotification = (notification) => ({ - ...omit(notification, 'actionId'), - activityId: notification.actionId, + ...(notification.actionId + ? { + ...omit(notification, 'actionId'), + activityId: notification.actionId, + } + : notification), }); /* Actions */ @@ -18,28 +24,25 @@ const getNotifications = (headers) => socket.get('/notifications', undefined, headers).then((body) => ({ ...body, items: body.items.map(transformNotification), - included: { - ...omit(body.included, 'actions'), - users: body.included.users.map(transformUser), - cards: body.included.cards.map(transformCard), - activities: body.included.actions.map(transformActivity), - }, })); -const getNotification = (id, headers) => +/* const getNotification = (id, headers) => socket.get(`/notifications/${id}`, undefined, headers).then((body) => ({ ...body, item: transformNotification(body.item), included: { - ...omit(body.included, 'actions'), users: body.included.users.map(transformUser), - cards: body.included.cards.map(transformCard), - activities: body.included.actions.map(transformActivity), }, + })); */ + +const updateNotification = (id, data, headers) => + socket.patch(`/notifications/${id}`, data, headers).then((body) => ({ + ...body, + item: transformNotification(body.item), })); -const updateNotifications = (ids, data, headers) => - socket.patch(`/notifications/${ids.join(',')}`, data, headers).then((body) => ({ +const readAllNotifications = (headers) => + socket.post('/notifications/read-all', undefined, headers).then((body) => ({ ...body, items: body.items.map(transformNotification), })); @@ -57,8 +60,9 @@ const makeHandleNotificationUpdate = makeHandleNotificationCreate; export default { getNotifications, - getNotification, - updateNotifications, + // getNotification, + updateNotification, + readAllNotifications, makeHandleNotificationCreate, makeHandleNotificationUpdate, }; diff --git a/client/src/api/project-managers.js b/client/src/api/project-managers.js index 7ac9bcc6..74ceda2d 100755 --- a/client/src/api/project-managers.js +++ b/client/src/api/project-managers.js @@ -1,40 +1,19 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; -/* Transformers */ - -export const transformProjectManager = (projectManager) => ({ - ...projectManager, - createdAt: new Date(projectManager.createdAt), -}); - /* Actions */ const createProjectManager = (projectId, data, headers) => - socket.post(`/projects/${projectId}/managers`, data, headers).then((body) => ({ - ...body, - item: transformProjectManager(body.item), - })); + socket.post(`/projects/${projectId}/project-managers`, data, headers); const deleteProjectManager = (id, headers) => - socket.delete(`/project-managers/${id}`, undefined, headers).then((body) => ({ - ...body, - item: transformProjectManager(body.item), - })); - -/* Event handlers */ - -const makeHandleProjectManagerCreate = (next) => (body) => { - next({ - ...body, - item: transformProjectManager(body.item), - }); -}; - -const makeHandleProjectManagerDelete = makeHandleProjectManagerCreate; + socket.delete(`/project-managers/${id}`, undefined, headers); export default { createProjectManager, deleteProjectManager, - makeHandleProjectManagerCreate, - makeHandleProjectManagerDelete, }; diff --git a/client/src/api/projects.js b/client/src/api/projects.js index 4b0bbc97..b5479517 100755 --- a/client/src/api/projects.js +++ b/client/src/api/projects.js @@ -1,47 +1,20 @@ -import http from './http'; +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; -import { transformUser } from './users'; -import { transformProjectManager } from './project-managers'; -import { transformBoardMembership } from './board-memberships'; /* Actions */ -const getProjects = (headers) => - socket.get('/projects', undefined, headers).then((body) => ({ - ...body, - included: { - ...body.included, - users: body.included.users.map(transformUser), - projectManagers: body.included.projectManagers.map(transformProjectManager), - boardMemberships: body.included.boardMemberships.map(transformBoardMembership), - }, - })); +const getProjects = (headers) => socket.get('/projects', undefined, headers); -const createProject = (data, headers) => - socket.post('/projects', data, headers).then((body) => ({ - ...body, - included: { - ...body.included, - projectManagers: body.included.projectManagers.map(transformProjectManager), - }, - })); +const createProject = (data, headers) => socket.post('/projects', data, headers); -const getProject = (id, headers) => - socket.get(`/projects/${id}`, undefined, headers).then((body) => ({ - ...body, - included: { - ...body.included, - users: body.included.users.map(transformUser), - projectManagers: body.included.projectManagers.map(transformProjectManager), - boardMemberships: body.included.boardMemberships.map(transformBoardMembership), - }, - })); +const getProject = (id, headers) => socket.get(`/projects/${id}`, undefined, headers); const updateProject = (id, data, headers) => socket.patch(`/projects/${id}`, data, headers); -const updateProjectBackgroundImage = (id, data, headers) => - http.post(`/projects/${id}/background-image`, data, headers); - const deleteProject = (id, headers) => socket.delete(`/projects/${id}`, undefined, headers); export default { @@ -49,6 +22,5 @@ export default { createProject, getProject, updateProject, - updateProjectBackgroundImage, deleteProject, }; diff --git a/client/src/api/root.js b/client/src/api/root.js deleted file mode 100644 index 4dfde4c0..00000000 --- a/client/src/api/root.js +++ /dev/null @@ -1,9 +0,0 @@ -import http from './http'; - -/* Actions */ - -const getConfig = (headers) => http.get('/config', undefined, headers); - -export default { - getConfig, -}; diff --git a/client/src/api/socket.js b/client/src/api/socket.js index 34188107..f3a4dd9f 100755 --- a/client/src/api/socket.js +++ b/client/src/api/socket.js @@ -1,3 +1,8 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socketIOClient from 'socket.io-client'; import sailsIOClient from 'sails.io.js'; @@ -5,15 +10,14 @@ import Config from '../constants/Config'; const io = sailsIOClient(socketIOClient); -io.sails.url = Config.SERVER_HOST_NAME; +io.sails.url = Config.SERVER_BASE_URL; io.sails.autoConnect = false; io.sails.reconnection = true; io.sails.useCORSRouteToGetCookie = false; -io.sails.environment = process.env.NODE_ENV; +io.sails.environment = import.meta.env.MODE; const { socket } = io; -socket.path = `${Config.SERVER_BASE_PATH}/socket.io`; socket.connect = socket._connect; // eslint-disable-line no-underscore-dangle ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'].forEach((method) => { diff --git a/client/src/api/task-lists.js b/client/src/api/task-lists.js new file mode 100644 index 00000000..3b394d3f --- /dev/null +++ b/client/src/api/task-lists.js @@ -0,0 +1,24 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + +import socket from './socket'; + +/* Actions */ + +const createTaskList = (cardId, data, headers) => + socket.post(`/cards/${cardId}/task-lists`, data, headers); + +const getTaskList = (id, headers) => socket.get(`/task-lists/${id}`, undefined, headers); + +const updateTaskList = (id, data, headers) => socket.patch(`/task-lists/${id}`, data, headers); + +const deleteTaskList = (id, headers) => socket.delete(`/task-lists/${id}`, undefined, headers); + +export default { + createTaskList, + getTaskList, + updateTaskList, + deleteTaskList, +}; diff --git a/client/src/api/tasks.js b/client/src/api/tasks.js index 584ec3e1..8a398cfb 100755 --- a/client/src/api/tasks.js +++ b/client/src/api/tasks.js @@ -1,8 +1,14 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import socket from './socket'; /* Actions */ -const createTask = (cardId, data, headers) => socket.post(`/cards/${cardId}/tasks`, data, headers); +const createTask = (taskListId, data, headers) => + socket.post(`/task-lists/${taskListId}/tasks`, data, headers); const updateTask = (id, data, headers) => socket.patch(`/tasks/${id}`, data, headers); diff --git a/client/src/api/users.js b/client/src/api/users.js index f2287900..0685f247 100755 --- a/client/src/api/users.js +++ b/client/src/api/users.js @@ -1,92 +1,44 @@ +/*! + * Copyright (c) 2024 PLANKA Software GmbH + * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md + */ + import http from './http'; import socket from './socket'; -/* Transformers */ - -export const transformUser = (user) => ({ - ...user, - createdAt: new Date(user.createdAt), -}); - /* Actions */ -const getUsers = (headers) => - socket.get('/users', undefined, headers).then((body) => ({ - ...body, - items: body.items.map(transformUser), - })); +const getUsers = (headers) => socket.get('/users', undefined, headers); -const createUser = (data, headers) => - socket.post('/users', data, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); +const createUser = (data, headers) => socket.post('/users', data, headers); -const getUser = (id, headers) => +/* const getUser = (id, headers) => socket.get(`/users/${id}`, undefined, headers).then((body) => ({ ...body, item: transformUser(body.item), - })); + })); */ const getCurrentUser = (subscribe, headers) => - socket.get(`/users/me${subscribe ? '?subscribe=true' : ''}`, undefined, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); + socket.get(`/users/me${subscribe ? '?subscribe=true' : ''}`, undefined, headers); -const updateUser = (id, data, headers) => - socket.patch(`/users/${id}`, data, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); +const updateUser = (id, data, headers) => socket.patch(`/users/${id}`, data, headers); -const updateUserEmail = (id, data, headers) => - socket.patch(`/users/${id}/email`, data, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); +const updateUserEmail = (id, data, headers) => socket.patch(`/users/${id}/email`, data, headers); const updateUserPassword = (id, data, headers) => - socket.patch(`/users/${id}/password`, data, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); + socket.patch(`/users/${id}/password`, data, headers); const updateUserUsername = (id, data, headers) => - socket.patch(`/users/${id}/username`, data, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); + socket.patch(`/users/${id}/username`, data, headers); -const updateUserAvatar = (id, data, headers) => - http.post(`/users/${id}/avatar`, data, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); +const updateUserAvatar = (id, data, headers) => http.post(`/users/${id}/avatar`, data, headers); -const deleteUser = (id, headers) => - socket.delete(`/users/${id}`, undefined, headers).then((body) => ({ - ...body, - item: transformUser(body.item), - })); - -/* Event handlers */ - -const makeHandleUserCreate = (next) => (body) => { - next({ - ...body, - item: transformUser(body.item), - }); -}; - -const makeHandleUserUpdate = makeHandleUserCreate; - -const makeHandleUserDelete = makeHandleUserCreate; +const deleteUser = (id, headers) => socket.delete(`/users/${id}`, undefined, headers); export default { getUsers, createUser, - getUser, + // getUser, getCurrentUser, updateUser, updateUserEmail, @@ -94,7 +46,4 @@ export default { updateUserUsername, updateUserAvatar, deleteUser, - makeHandleUserCreate, - makeHandleUserUpdate, - makeHandleUserDelete, }; diff --git a/client/src/assets/css/font-awesome.css b/client/src/assets/css/font-awesome.css deleted file mode 100644 index ee906a81..00000000 --- a/client/src/assets/css/font-awesome.css +++ /dev/null @@ -1,2337 +0,0 @@ -/*! - * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */ -/* FONT PATH - * -------------------------- */ -@font-face { - font-family: 'FontAwesome'; - src: url('../fonts/fontawesome-webfont.eot?v=4.7.0'); - src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg'); - font-weight: normal; - font-style: normal; -} -.fa { - display: inline-block; - font: normal normal normal 14px/1 FontAwesome; - font-size: inherit; - text-rendering: auto; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -/* makes the font 33% larger relative to the icon container */ -.fa-lg { - font-size: 1.33333333em; - line-height: 0.75em; - vertical-align: -15%; -} -.fa-2x { - font-size: 2em; -} -.fa-3x { - font-size: 3em; -} -.fa-4x { - font-size: 4em; -} -.fa-5x { - font-size: 5em; -} -.fa-fw { - width: 1.28571429em; - text-align: center; -} -.fa-ul { - padding-left: 0; - margin-left: 2.14285714em; - list-style-type: none; -} -.fa-ul > li { - position: relative; -} -.fa-li { - position: absolute; - left: -2.14285714em; - width: 2.14285714em; - top: 0.14285714em; - text-align: center; -} -.fa-li.fa-lg { - left: -1.85714286em; -} -.fa-border { - padding: .2em .25em .15em; - border: solid 0.08em #eeeeee; - border-radius: .1em; -} -.fa-pull-left { - float: left; -} -.fa-pull-right { - float: right; -} -.fa.fa-pull-left { - margin-right: .3em; -} -.fa.fa-pull-right { - margin-left: .3em; -} -/* Deprecated as of 4.4.0 */ -.pull-right { - float: right; -} -.pull-left { - float: left; -} -.fa.pull-left { - margin-right: .3em; -} -.fa.pull-right { - margin-left: .3em; -} -.fa-spin { - -webkit-animation: fa-spin 2s infinite linear; - animation: fa-spin 2s infinite linear; -} -.fa-pulse { - -webkit-animation: fa-spin 1s infinite steps(8); - animation: fa-spin 1s infinite steps(8); -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -.fa-rotate-90 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; - -webkit-transform: rotate(90deg); - -ms-transform: rotate(90deg); - transform: rotate(90deg); -} -.fa-rotate-180 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} -.fa-rotate-270 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; - -webkit-transform: rotate(270deg); - -ms-transform: rotate(270deg); - transform: rotate(270deg); -} -.fa-flip-horizontal { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; - -webkit-transform: scale(-1, 1); - -ms-transform: scale(-1, 1); - transform: scale(-1, 1); -} -.fa-flip-vertical { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; - -webkit-transform: scale(1, -1); - -ms-transform: scale(1, -1); - transform: scale(1, -1); -} -:root .fa-rotate-90, -:root .fa-rotate-180, -:root .fa-rotate-270, -:root .fa-flip-horizontal, -:root .fa-flip-vertical { - filter: none; -} -.fa-stack { - position: relative; - display: inline-block; - width: 2em; - height: 2em; - line-height: 2em; - vertical-align: middle; -} -.fa-stack-1x, -.fa-stack-2x { - position: absolute; - left: 0; - width: 100%; - text-align: center; -} -.fa-stack-1x { - line-height: inherit; -} -.fa-stack-2x { - font-size: 2em; -} -.fa-inverse { - color: #ffffff; -} -/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen - readers do not read off random characters that represent icons */ -.fa-glass:before { - content: "\f000"; -} -.fa-music:before { - content: "\f001"; -} -.fa-search:before { - content: "\f002"; -} -.fa-envelope-o:before { - content: "\f003"; -} -.fa-heart:before { - content: "\f004"; -} -.fa-star:before { - content: "\f005"; -} -.fa-star-o:before { - content: "\f006"; -} -.fa-user:before { - content: "\f007"; -} -.fa-film:before { - content: "\f008"; -} -.fa-th-large:before { - content: "\f009"; -} -.fa-th:before { - content: "\f00a"; -} -.fa-th-list:before { - content: "\f00b"; -} -.fa-check:before { - content: "\f00c"; -} -.fa-remove:before, -.fa-close:before, -.fa-times:before { - content: "\f00d"; -} -.fa-search-plus:before { - content: "\f00e"; -} -.fa-search-minus:before { - content: "\f010"; -} -.fa-power-off:before { - content: "\f011"; -} -.fa-signal:before { - content: "\f012"; -} -.fa-gear:before, -.fa-cog:before { - content: "\f013"; -} -.fa-trash-o:before { - content: "\f014"; -} -.fa-home:before { - content: "\f015"; -} -.fa-file-o:before { - content: "\f016"; -} -.fa-clock-o:before { - content: "\f017"; -} -.fa-road:before { - content: "\f018"; -} -.fa-download:before { - content: "\f019"; -} -.fa-arrow-circle-o-down:before { - content: "\f01a"; -} -.fa-arrow-circle-o-up:before { - content: "\f01b"; -} -.fa-inbox:before { - content: "\f01c"; -} -.fa-play-circle-o:before { - content: "\f01d"; -} -.fa-rotate-right:before, -.fa-repeat:before { - content: "\f01e"; -} -.fa-refresh:before { - content: "\f021"; -} -.fa-list-alt:before { - content: "\f022"; -} -.fa-lock:before { - content: "\f023"; -} -.fa-flag:before { - content: "\f024"; -} -.fa-headphones:before { - content: "\f025"; -} -.fa-volume-off:before { - content: "\f026"; -} -.fa-volume-down:before { - content: "\f027"; -} -.fa-volume-up:before { - content: "\f028"; -} -.fa-qrcode:before { - content: "\f029"; -} -.fa-barcode:before { - content: "\f02a"; -} -.fa-tag:before { - content: "\f02b"; -} -.fa-tags:before { - content: "\f02c"; -} -.fa-book:before { - content: "\f02d"; -} -.fa-bookmark:before { - content: "\f02e"; -} -.fa-print:before { - content: "\f02f"; -} -.fa-camera:before { - content: "\f030"; -} -.fa-font:before { - content: "\f031"; -} -.fa-bold:before { - content: "\f032"; -} -.fa-italic:before { - content: "\f033"; -} -.fa-text-height:before { - content: "\f034"; -} -.fa-text-width:before { - content: "\f035"; -} -.fa-align-left:before { - content: "\f036"; -} -.fa-align-center:before { - content: "\f037"; -} -.fa-align-right:before { - content: "\f038"; -} -.fa-align-justify:before { - content: "\f039"; -} -.fa-list:before { - content: "\f03a"; -} -.fa-dedent:before, -.fa-outdent:before { - content: "\f03b"; -} -.fa-indent:before { - content: "\f03c"; -} -.fa-video-camera:before { - content: "\f03d"; -} -.fa-photo:before, -.fa-image:before, -.fa-picture-o:before { - content: "\f03e"; -} -.fa-pencil:before { - content: "\f040"; -} -.fa-map-marker:before { - content: "\f041"; -} -.fa-adjust:before { - content: "\f042"; -} -.fa-tint:before { - content: "\f043"; -} -.fa-edit:before, -.fa-pencil-square-o:before { - content: "\f044"; -} -.fa-share-square-o:before { - content: "\f045"; -} -.fa-check-square-o:before { - content: "\f046"; -} -.fa-arrows:before { - content: "\f047"; -} -.fa-step-backward:before { - content: "\f048"; -} -.fa-fast-backward:before { - content: "\f049"; -} -.fa-backward:before { - content: "\f04a"; -} -.fa-play:before { - content: "\f04b"; -} -.fa-pause:before { - content: "\f04c"; -} -.fa-stop:before { - content: "\f04d"; -} -.fa-forward:before { - content: "\f04e"; -} -.fa-fast-forward:before { - content: "\f050"; -} -.fa-step-forward:before { - content: "\f051"; -} -.fa-eject:before { - content: "\f052"; -} -.fa-chevron-left:before { - content: "\f053"; -} -.fa-chevron-right:before { - content: "\f054"; -} -.fa-plus-circle:before { - content: "\f055"; -} -.fa-minus-circle:before { - content: "\f056"; -} -.fa-times-circle:before { - content: "\f057"; -} -.fa-check-circle:before { - content: "\f058"; -} -.fa-question-circle:before { - content: "\f059"; -} -.fa-info-circle:before { - content: "\f05a"; -} -.fa-crosshairs:before { - content: "\f05b"; -} -.fa-times-circle-o:before { - content: "\f05c"; -} -.fa-check-circle-o:before { - content: "\f05d"; -} -.fa-ban:before { - content: "\f05e"; -} -.fa-arrow-left:before { - content: "\f060"; -} -.fa-arrow-right:before { - content: "\f061"; -} -.fa-arrow-up:before { - content: "\f062"; -} -.fa-arrow-down:before { - content: "\f063"; -} -.fa-mail-forward:before, -.fa-share:before { - content: "\f064"; -} -.fa-expand:before { - content: "\f065"; -} -.fa-compress:before { - content: "\f066"; -} -.fa-plus:before { - content: "\f067"; -} -.fa-minus:before { - content: "\f068"; -} -.fa-asterisk:before { - content: "\f069"; -} -.fa-exclamation-circle:before { - content: "\f06a"; -} -.fa-gift:before { - content: "\f06b"; -} -.fa-leaf:before { - content: "\f06c"; -} -.fa-fire:before { - content: "\f06d"; -} -.fa-eye:before { - content: "\f06e"; -} -.fa-eye-slash:before { - content: "\f070"; -} -.fa-warning:before, -.fa-exclamation-triangle:before { - content: "\f071"; -} -.fa-plane:before { - content: "\f072"; -} -.fa-calendar:before { - content: "\f073"; -} -.fa-random:before { - content: "\f074"; -} -.fa-comment:before { - content: "\f075"; -} -.fa-magnet:before { - content: "\f076"; -} -.fa-chevron-up:before { - content: "\f077"; -} -.fa-chevron-down:before { - content: "\f078"; -} -.fa-retweet:before { - content: "\f079"; -} -.fa-shopping-cart:before { - content: "\f07a"; -} -.fa-folder:before { - content: "\f07b"; -} -.fa-folder-open:before { - content: "\f07c"; -} -.fa-arrows-v:before { - content: "\f07d"; -} -.fa-arrows-h:before { - content: "\f07e"; -} -.fa-bar-chart-o:before, -.fa-bar-chart:before { - content: "\f080"; -} -.fa-twitter-square:before { - content: "\f081"; -} -.fa-facebook-square:before { - content: "\f082"; -} -.fa-camera-retro:before { - content: "\f083"; -} -.fa-key:before { - content: "\f084"; -} -.fa-gears:before, -.fa-cogs:before { - content: "\f085"; -} -.fa-comments:before { - content: "\f086"; -} -.fa-thumbs-o-up:before { - content: "\f087"; -} -.fa-thumbs-o-down:before { - content: "\f088"; -} -.fa-star-half:before { - content: "\f089"; -} -.fa-heart-o:before { - content: "\f08a"; -} -.fa-sign-out:before { - content: "\f08b"; -} -.fa-linkedin-square:before { - content: "\f08c"; -} -.fa-thumb-tack:before { - content: "\f08d"; -} -.fa-external-link:before { - content: "\f08e"; -} -.fa-sign-in:before { - content: "\f090"; -} -.fa-trophy:before { - content: "\f091"; -} -.fa-github-square:before { - content: "\f092"; -} -.fa-upload:before { - content: "\f093"; -} -.fa-lemon-o:before { - content: "\f094"; -} -.fa-phone:before { - content: "\f095"; -} -.fa-square-o:before { - content: "\f096"; -} -.fa-bookmark-o:before { - content: "\f097"; -} -.fa-phone-square:before { - content: "\f098"; -} -.fa-twitter:before { - content: "\f099"; -} -.fa-facebook-f:before, -.fa-facebook:before { - content: "\f09a"; -} -.fa-github:before { - content: "\f09b"; -} -.fa-unlock:before { - content: "\f09c"; -} -.fa-credit-card:before { - content: "\f09d"; -} -.fa-feed:before, -.fa-rss:before { - content: "\f09e"; -} -.fa-hdd-o:before { - content: "\f0a0"; -} -.fa-bullhorn:before { - content: "\f0a1"; -} -.fa-bell:before { - content: "\f0f3"; -} -.fa-certificate:before { - content: "\f0a3"; -} -.fa-hand-o-right:before { - content: "\f0a4"; -} -.fa-hand-o-left:before { - content: "\f0a5"; -} -.fa-hand-o-up:before { - content: "\f0a6"; -} -.fa-hand-o-down:before { - content: "\f0a7"; -} -.fa-arrow-circle-left:before { - content: "\f0a8"; -} -.fa-arrow-circle-right:before { - content: "\f0a9"; -} -.fa-arrow-circle-up:before { - content: "\f0aa"; -} -.fa-arrow-circle-down:before { - content: "\f0ab"; -} -.fa-globe:before { - content: "\f0ac"; -} -.fa-wrench:before { - content: "\f0ad"; -} -.fa-tasks:before { - content: "\f0ae"; -} -.fa-filter:before { - content: "\f0b0"; -} -.fa-briefcase:before { - content: "\f0b1"; -} -.fa-arrows-alt:before { - content: "\f0b2"; -} -.fa-group:before, -.fa-users:before { - content: "\f0c0"; -} -.fa-chain:before, -.fa-link:before { - content: "\f0c1"; -} -.fa-cloud:before { - content: "\f0c2"; -} -.fa-flask:before { - content: "\f0c3"; -} -.fa-cut:before, -.fa-scissors:before { - content: "\f0c4"; -} -.fa-copy:before, -.fa-files-o:before { - content: "\f0c5"; -} -.fa-paperclip:before { - content: "\f0c6"; -} -.fa-save:before, -.fa-floppy-o:before { - content: "\f0c7"; -} -.fa-square:before { - content: "\f0c8"; -} -.fa-navicon:before, -.fa-reorder:before, -.fa-bars:before { - content: "\f0c9"; -} -.fa-list-ul:before { - content: "\f0ca"; -} -.fa-list-ol:before { - content: "\f0cb"; -} -.fa-strikethrough:before { - content: "\f0cc"; -} -.fa-underline:before { - content: "\f0cd"; -} -.fa-table:before { - content: "\f0ce"; -} -.fa-magic:before { - content: "\f0d0"; -} -.fa-truck:before { - content: "\f0d1"; -} -.fa-pinterest:before { - content: "\f0d2"; -} -.fa-pinterest-square:before { - content: "\f0d3"; -} -.fa-google-plus-square:before { - content: "\f0d4"; -} -.fa-google-plus:before { - content: "\f0d5"; -} -.fa-money:before { - content: "\f0d6"; -} -.fa-caret-down:before { - content: "\f0d7"; -} -.fa-caret-up:before { - content: "\f0d8"; -} -.fa-caret-left:before { - content: "\f0d9"; -} -.fa-caret-right:before { - content: "\f0da"; -} -.fa-columns:before { - content: "\f0db"; -} -.fa-unsorted:before, -.fa-sort:before { - content: "\f0dc"; -} -.fa-sort-down:before, -.fa-sort-desc:before { - content: "\f0dd"; -} -.fa-sort-up:before, -.fa-sort-asc:before { - content: "\f0de"; -} -.fa-envelope:before { - content: "\f0e0"; -} -.fa-linkedin:before { - content: "\f0e1"; -} -.fa-rotate-left:before, -.fa-undo:before { - content: "\f0e2"; -} -.fa-legal:before, -.fa-gavel:before { - content: "\f0e3"; -} -.fa-dashboard:before, -.fa-tachometer:before { - content: "\f0e4"; -} -.fa-comment-o:before { - content: "\f0e5"; -} -.fa-comments-o:before { - content: "\f0e6"; -} -.fa-flash:before, -.fa-bolt:before { - content: "\f0e7"; -} -.fa-sitemap:before { - content: "\f0e8"; -} -.fa-umbrella:before { - content: "\f0e9"; -} -.fa-paste:before, -.fa-clipboard:before { - content: "\f0ea"; -} -.fa-lightbulb-o:before { - content: "\f0eb"; -} -.fa-exchange:before { - content: "\f0ec"; -} -.fa-cloud-download:before { - content: "\f0ed"; -} -.fa-cloud-upload:before { - content: "\f0ee"; -} -.fa-user-md:before { - content: "\f0f0"; -} -.fa-stethoscope:before { - content: "\f0f1"; -} -.fa-suitcase:before { - content: "\f0f2"; -} -.fa-bell-o:before { - content: "\f0a2"; -} -.fa-coffee:before { - content: "\f0f4"; -} -.fa-cutlery:before { - content: "\f0f5"; -} -.fa-file-text-o:before { - content: "\f0f6"; -} -.fa-building-o:before { - content: "\f0f7"; -} -.fa-hospital-o:before { - content: "\f0f8"; -} -.fa-ambulance:before { - content: "\f0f9"; -} -.fa-medkit:before { - content: "\f0fa"; -} -.fa-fighter-jet:before { - content: "\f0fb"; -} -.fa-beer:before { - content: "\f0fc"; -} -.fa-h-square:before { - content: "\f0fd"; -} -.fa-plus-square:before { - content: "\f0fe"; -} -.fa-angle-double-left:before { - content: "\f100"; -} -.fa-angle-double-right:before { - content: "\f101"; -} -.fa-angle-double-up:before { - content: "\f102"; -} -.fa-angle-double-down:before { - content: "\f103"; -} -.fa-angle-left:before { - content: "\f104"; -} -.fa-angle-right:before { - content: "\f105"; -} -.fa-angle-up:before { - content: "\f106"; -} -.fa-angle-down:before { - content: "\f107"; -} -.fa-desktop:before { - content: "\f108"; -} -.fa-laptop:before { - content: "\f109"; -} -.fa-tablet:before { - content: "\f10a"; -} -.fa-mobile-phone:before, -.fa-mobile:before { - content: "\f10b"; -} -.fa-circle-o:before { - content: "\f10c"; -} -.fa-quote-left:before { - content: "\f10d"; -} -.fa-quote-right:before { - content: "\f10e"; -} -.fa-spinner:before { - content: "\f110"; -} -.fa-circle:before { - content: "\f111"; -} -.fa-mail-reply:before, -.fa-reply:before { - content: "\f112"; -} -.fa-github-alt:before { - content: "\f113"; -} -.fa-folder-o:before { - content: "\f114"; -} -.fa-folder-open-o:before { - content: "\f115"; -} -.fa-smile-o:before { - content: "\f118"; -} -.fa-frown-o:before { - content: "\f119"; -} -.fa-meh-o:before { - content: "\f11a"; -} -.fa-gamepad:before { - content: "\f11b"; -} -.fa-keyboard-o:before { - content: "\f11c"; -} -.fa-flag-o:before { - content: "\f11d"; -} -.fa-flag-checkered:before { - content: "\f11e"; -} -.fa-terminal:before { - content: "\f120"; -} -.fa-code:before { - content: "\f121"; -} -.fa-mail-reply-all:before, -.fa-reply-all:before { - content: "\f122"; -} -.fa-star-half-empty:before, -.fa-star-half-full:before, -.fa-star-half-o:before { - content: "\f123"; -} -.fa-location-arrow:before { - content: "\f124"; -} -.fa-crop:before { - content: "\f125"; -} -.fa-code-fork:before { - content: "\f126"; -} -.fa-unlink:before, -.fa-chain-broken:before { - content: "\f127"; -} -.fa-question:before { - content: "\f128"; -} -.fa-info:before { - content: "\f129"; -} -.fa-exclamation:before { - content: "\f12a"; -} -.fa-superscript:before { - content: "\f12b"; -} -.fa-subscript:before { - content: "\f12c"; -} -.fa-eraser:before { - content: "\f12d"; -} -.fa-puzzle-piece:before { - content: "\f12e"; -} -.fa-microphone:before { - content: "\f130"; -} -.fa-microphone-slash:before { - content: "\f131"; -} -.fa-shield:before { - content: "\f132"; -} -.fa-calendar-o:before { - content: "\f133"; -} -.fa-fire-extinguisher:before { - content: "\f134"; -} -.fa-rocket:before { - content: "\f135"; -} -.fa-maxcdn:before { - content: "\f136"; -} -.fa-chevron-circle-left:before { - content: "\f137"; -} -.fa-chevron-circle-right:before { - content: "\f138"; -} -.fa-chevron-circle-up:before { - content: "\f139"; -} -.fa-chevron-circle-down:before { - content: "\f13a"; -} -.fa-html5:before { - content: "\f13b"; -} -.fa-css3:before { - content: "\f13c"; -} -.fa-anchor:before { - content: "\f13d"; -} -.fa-unlock-alt:before { - content: "\f13e"; -} -.fa-bullseye:before { - content: "\f140"; -} -.fa-ellipsis-h:before { - content: "\f141"; -} -.fa-ellipsis-v:before { - content: "\f142"; -} -.fa-rss-square:before { - content: "\f143"; -} -.fa-play-circle:before { - content: "\f144"; -} -.fa-ticket:before { - content: "\f145"; -} -.fa-minus-square:before { - content: "\f146"; -} -.fa-minus-square-o:before { - content: "\f147"; -} -.fa-level-up:before { - content: "\f148"; -} -.fa-level-down:before { - content: "\f149"; -} -.fa-check-square:before { - content: "\f14a"; -} -.fa-pencil-square:before { - content: "\f14b"; -} -.fa-external-link-square:before { - content: "\f14c"; -} -.fa-share-square:before { - content: "\f14d"; -} -.fa-compass:before { - content: "\f14e"; -} -.fa-toggle-down:before, -.fa-caret-square-o-down:before { - content: "\f150"; -} -.fa-toggle-up:before, -.fa-caret-square-o-up:before { - content: "\f151"; -} -.fa-toggle-right:before, -.fa-caret-square-o-right:before { - content: "\f152"; -} -.fa-euro:before, -.fa-eur:before { - content: "\f153"; -} -.fa-gbp:before { - content: "\f154"; -} -.fa-dollar:before, -.fa-usd:before { - content: "\f155"; -} -.fa-rupee:before, -.fa-inr:before { - content: "\f156"; -} -.fa-cny:before, -.fa-rmb:before, -.fa-yen:before, -.fa-jpy:before { - content: "\f157"; -} -.fa-ruble:before, -.fa-rouble:before, -.fa-rub:before { - content: "\f158"; -} -.fa-won:before, -.fa-krw:before { - content: "\f159"; -} -.fa-bitcoin:before, -.fa-btc:before { - content: "\f15a"; -} -.fa-file:before { - content: "\f15b"; -} -.fa-file-text:before { - content: "\f15c"; -} -.fa-sort-alpha-asc:before { - content: "\f15d"; -} -.fa-sort-alpha-desc:before { - content: "\f15e"; -} -.fa-sort-amount-asc:before { - content: "\f160"; -} -.fa-sort-amount-desc:before { - content: "\f161"; -} -.fa-sort-numeric-asc:before { - content: "\f162"; -} -.fa-sort-numeric-desc:before { - content: "\f163"; -} -.fa-thumbs-up:before { - content: "\f164"; -} -.fa-thumbs-down:before { - content: "\f165"; -} -.fa-youtube-square:before { - content: "\f166"; -} -.fa-youtube:before { - content: "\f167"; -} -.fa-xing:before { - content: "\f168"; -} -.fa-xing-square:before { - content: "\f169"; -} -.fa-youtube-play:before { - content: "\f16a"; -} -.fa-dropbox:before { - content: "\f16b"; -} -.fa-stack-overflow:before { - content: "\f16c"; -} -.fa-instagram:before { - content: "\f16d"; -} -.fa-flickr:before { - content: "\f16e"; -} -.fa-adn:before { - content: "\f170"; -} -.fa-bitbucket:before { - content: "\f171"; -} -.fa-bitbucket-square:before { - content: "\f172"; -} -.fa-tumblr:before { - content: "\f173"; -} -.fa-tumblr-square:before { - content: "\f174"; -} -.fa-long-arrow-down:before { - content: "\f175"; -} -.fa-long-arrow-up:before { - content: "\f176"; -} -.fa-long-arrow-left:before { - content: "\f177"; -} -.fa-long-arrow-right:before { - content: "\f178"; -} -.fa-apple:before { - content: "\f179"; -} -.fa-windows:before { - content: "\f17a"; -} -.fa-android:before { - content: "\f17b"; -} -.fa-linux:before { - content: "\f17c"; -} -.fa-dribbble:before { - content: "\f17d"; -} -.fa-skype:before { - content: "\f17e"; -} -.fa-foursquare:before { - content: "\f180"; -} -.fa-trello:before { - content: "\f181"; -} -.fa-female:before { - content: "\f182"; -} -.fa-male:before { - content: "\f183"; -} -.fa-gittip:before, -.fa-gratipay:before { - content: "\f184"; -} -.fa-sun-o:before { - content: "\f185"; -} -.fa-moon-o:before { - content: "\f186"; -} -.fa-archive:before { - content: "\f187"; -} -.fa-bug:before { - content: "\f188"; -} -.fa-vk:before { - content: "\f189"; -} -.fa-weibo:before { - content: "\f18a"; -} -.fa-renren:before { - content: "\f18b"; -} -.fa-pagelines:before { - content: "\f18c"; -} -.fa-stack-exchange:before { - content: "\f18d"; -} -.fa-arrow-circle-o-right:before { - content: "\f18e"; -} -.fa-arrow-circle-o-left:before { - content: "\f190"; -} -.fa-toggle-left:before, -.fa-caret-square-o-left:before { - content: "\f191"; -} -.fa-dot-circle-o:before { - content: "\f192"; -} -.fa-wheelchair:before { - content: "\f193"; -} -.fa-vimeo-square:before { - content: "\f194"; -} -.fa-turkish-lira:before, -.fa-try:before { - content: "\f195"; -} -.fa-plus-square-o:before { - content: "\f196"; -} -.fa-space-shuttle:before { - content: "\f197"; -} -.fa-slack:before { - content: "\f198"; -} -.fa-envelope-square:before { - content: "\f199"; -} -.fa-wordpress:before { - content: "\f19a"; -} -.fa-openid:before { - content: "\f19b"; -} -.fa-institution:before, -.fa-bank:before, -.fa-university:before { - content: "\f19c"; -} -.fa-mortar-board:before, -.fa-graduation-cap:before { - content: "\f19d"; -} -.fa-yahoo:before { - content: "\f19e"; -} -.fa-google:before { - content: "\f1a0"; -} -.fa-reddit:before { - content: "\f1a1"; -} -.fa-reddit-square:before { - content: "\f1a2"; -} -.fa-stumbleupon-circle:before { - content: "\f1a3"; -} -.fa-stumbleupon:before { - content: "\f1a4"; -} -.fa-delicious:before { - content: "\f1a5"; -} -.fa-digg:before { - content: "\f1a6"; -} -.fa-pied-piper-pp:before { - content: "\f1a7"; -} -.fa-pied-piper-alt:before { - content: "\f1a8"; -} -.fa-drupal:before { - content: "\f1a9"; -} -.fa-joomla:before { - content: "\f1aa"; -} -.fa-language:before { - content: "\f1ab"; -} -.fa-fax:before { - content: "\f1ac"; -} -.fa-building:before { - content: "\f1ad"; -} -.fa-child:before { - content: "\f1ae"; -} -.fa-paw:before { - content: "\f1b0"; -} -.fa-spoon:before { - content: "\f1b1"; -} -.fa-cube:before { - content: "\f1b2"; -} -.fa-cubes:before { - content: "\f1b3"; -} -.fa-behance:before { - content: "\f1b4"; -} -.fa-behance-square:before { - content: "\f1b5"; -} -.fa-steam:before { - content: "\f1b6"; -} -.fa-steam-square:before { - content: "\f1b7"; -} -.fa-recycle:before { - content: "\f1b8"; -} -.fa-automobile:before, -.fa-car:before { - content: "\f1b9"; -} -.fa-cab:before, -.fa-taxi:before { - content: "\f1ba"; -} -.fa-tree:before { - content: "\f1bb"; -} -.fa-spotify:before { - content: "\f1bc"; -} -.fa-deviantart:before { - content: "\f1bd"; -} -.fa-soundcloud:before { - content: "\f1be"; -} -.fa-database:before { - content: "\f1c0"; -} -.fa-file-pdf-o:before { - content: "\f1c1"; -} -.fa-file-word-o:before { - content: "\f1c2"; -} -.fa-file-excel-o:before { - content: "\f1c3"; -} -.fa-file-powerpoint-o:before { - content: "\f1c4"; -} -.fa-file-photo-o:before, -.fa-file-picture-o:before, -.fa-file-image-o:before { - content: "\f1c5"; -} -.fa-file-zip-o:before, -.fa-file-archive-o:before { - content: "\f1c6"; -} -.fa-file-sound-o:before, -.fa-file-audio-o:before { - content: "\f1c7"; -} -.fa-file-movie-o:before, -.fa-file-video-o:before { - content: "\f1c8"; -} -.fa-file-code-o:before { - content: "\f1c9"; -} -.fa-vine:before { - content: "\f1ca"; -} -.fa-codepen:before { - content: "\f1cb"; -} -.fa-jsfiddle:before { - content: "\f1cc"; -} -.fa-life-bouy:before, -.fa-life-buoy:before, -.fa-life-saver:before, -.fa-support:before, -.fa-life-ring:before { - content: "\f1cd"; -} -.fa-circle-o-notch:before { - content: "\f1ce"; -} -.fa-ra:before, -.fa-resistance:before, -.fa-rebel:before { - content: "\f1d0"; -} -.fa-ge:before, -.fa-empire:before { - content: "\f1d1"; -} -.fa-git-square:before { - content: "\f1d2"; -} -.fa-git:before { - content: "\f1d3"; -} -.fa-y-combinator-square:before, -.fa-yc-square:before, -.fa-hacker-news:before { - content: "\f1d4"; -} -.fa-tencent-weibo:before { - content: "\f1d5"; -} -.fa-qq:before { - content: "\f1d6"; -} -.fa-wechat:before, -.fa-weixin:before { - content: "\f1d7"; -} -.fa-send:before, -.fa-paper-plane:before { - content: "\f1d8"; -} -.fa-send-o:before, -.fa-paper-plane-o:before { - content: "\f1d9"; -} -.fa-history:before { - content: "\f1da"; -} -.fa-circle-thin:before { - content: "\f1db"; -} -.fa-header:before { - content: "\f1dc"; -} -.fa-paragraph:before { - content: "\f1dd"; -} -.fa-sliders:before { - content: "\f1de"; -} -.fa-share-alt:before { - content: "\f1e0"; -} -.fa-share-alt-square:before { - content: "\f1e1"; -} -.fa-bomb:before { - content: "\f1e2"; -} -.fa-soccer-ball-o:before, -.fa-futbol-o:before { - content: "\f1e3"; -} -.fa-tty:before { - content: "\f1e4"; -} -.fa-binoculars:before { - content: "\f1e5"; -} -.fa-plug:before { - content: "\f1e6"; -} -.fa-slideshare:before { - content: "\f1e7"; -} -.fa-twitch:before { - content: "\f1e8"; -} -.fa-yelp:before { - content: "\f1e9"; -} -.fa-newspaper-o:before { - content: "\f1ea"; -} -.fa-wifi:before { - content: "\f1eb"; -} -.fa-calculator:before { - content: "\f1ec"; -} -.fa-paypal:before { - content: "\f1ed"; -} -.fa-google-wallet:before { - content: "\f1ee"; -} -.fa-cc-visa:before { - content: "\f1f0"; -} -.fa-cc-mastercard:before { - content: "\f1f1"; -} -.fa-cc-discover:before { - content: "\f1f2"; -} -.fa-cc-amex:before { - content: "\f1f3"; -} -.fa-cc-paypal:before { - content: "\f1f4"; -} -.fa-cc-stripe:before { - content: "\f1f5"; -} -.fa-bell-slash:before { - content: "\f1f6"; -} -.fa-bell-slash-o:before { - content: "\f1f7"; -} -.fa-trash:before { - content: "\f1f8"; -} -.fa-copyright:before { - content: "\f1f9"; -} -.fa-at:before { - content: "\f1fa"; -} -.fa-eyedropper:before { - content: "\f1fb"; -} -.fa-paint-brush:before { - content: "\f1fc"; -} -.fa-birthday-cake:before { - content: "\f1fd"; -} -.fa-area-chart:before { - content: "\f1fe"; -} -.fa-pie-chart:before { - content: "\f200"; -} -.fa-line-chart:before { - content: "\f201"; -} -.fa-lastfm:before { - content: "\f202"; -} -.fa-lastfm-square:before { - content: "\f203"; -} -.fa-toggle-off:before { - content: "\f204"; -} -.fa-toggle-on:before { - content: "\f205"; -} -.fa-bicycle:before { - content: "\f206"; -} -.fa-bus:before { - content: "\f207"; -} -.fa-ioxhost:before { - content: "\f208"; -} -.fa-angellist:before { - content: "\f209"; -} -.fa-cc:before { - content: "\f20a"; -} -.fa-shekel:before, -.fa-sheqel:before, -.fa-ils:before { - content: "\f20b"; -} -.fa-meanpath:before { - content: "\f20c"; -} -.fa-buysellads:before { - content: "\f20d"; -} -.fa-connectdevelop:before { - content: "\f20e"; -} -.fa-dashcube:before { - content: "\f210"; -} -.fa-forumbee:before { - content: "\f211"; -} -.fa-leanpub:before { - content: "\f212"; -} -.fa-sellsy:before { - content: "\f213"; -} -.fa-shirtsinbulk:before { - content: "\f214"; -} -.fa-simplybuilt:before { - content: "\f215"; -} -.fa-skyatlas:before { - content: "\f216"; -} -.fa-cart-plus:before { - content: "\f217"; -} -.fa-cart-arrow-down:before { - content: "\f218"; -} -.fa-diamond:before { - content: "\f219"; -} -.fa-ship:before { - content: "\f21a"; -} -.fa-user-secret:before { - content: "\f21b"; -} -.fa-motorcycle:before { - content: "\f21c"; -} -.fa-street-view:before { - content: "\f21d"; -} -.fa-heartbeat:before { - content: "\f21e"; -} -.fa-venus:before { - content: "\f221"; -} -.fa-mars:before { - content: "\f222"; -} -.fa-mercury:before { - content: "\f223"; -} -.fa-intersex:before, -.fa-transgender:before { - content: "\f224"; -} -.fa-transgender-alt:before { - content: "\f225"; -} -.fa-venus-double:before { - content: "\f226"; -} -.fa-mars-double:before { - content: "\f227"; -} -.fa-venus-mars:before { - content: "\f228"; -} -.fa-mars-stroke:before { - content: "\f229"; -} -.fa-mars-stroke-v:before { - content: "\f22a"; -} -.fa-mars-stroke-h:before { - content: "\f22b"; -} -.fa-neuter:before { - content: "\f22c"; -} -.fa-genderless:before { - content: "\f22d"; -} -.fa-facebook-official:before { - content: "\f230"; -} -.fa-pinterest-p:before { - content: "\f231"; -} -.fa-whatsapp:before { - content: "\f232"; -} -.fa-server:before { - content: "\f233"; -} -.fa-user-plus:before { - content: "\f234"; -} -.fa-user-times:before { - content: "\f235"; -} -.fa-hotel:before, -.fa-bed:before { - content: "\f236"; -} -.fa-viacoin:before { - content: "\f237"; -} -.fa-train:before { - content: "\f238"; -} -.fa-subway:before { - content: "\f239"; -} -.fa-medium:before { - content: "\f23a"; -} -.fa-yc:before, -.fa-y-combinator:before { - content: "\f23b"; -} -.fa-optin-monster:before { - content: "\f23c"; -} -.fa-opencart:before { - content: "\f23d"; -} -.fa-expeditedssl:before { - content: "\f23e"; -} -.fa-battery-4:before, -.fa-battery:before, -.fa-battery-full:before { - content: "\f240"; -} -.fa-battery-3:before, -.fa-battery-three-quarters:before { - content: "\f241"; -} -.fa-battery-2:before, -.fa-battery-half:before { - content: "\f242"; -} -.fa-battery-1:before, -.fa-battery-quarter:before { - content: "\f243"; -} -.fa-battery-0:before, -.fa-battery-empty:before { - content: "\f244"; -} -.fa-mouse-pointer:before { - content: "\f245"; -} -.fa-i-cursor:before { - content: "\f246"; -} -.fa-object-group:before { - content: "\f247"; -} -.fa-object-ungroup:before { - content: "\f248"; -} -.fa-sticky-note:before { - content: "\f249"; -} -.fa-sticky-note-o:before { - content: "\f24a"; -} -.fa-cc-jcb:before { - content: "\f24b"; -} -.fa-cc-diners-club:before { - content: "\f24c"; -} -.fa-clone:before { - content: "\f24d"; -} -.fa-balance-scale:before { - content: "\f24e"; -} -.fa-hourglass-o:before { - content: "\f250"; -} -.fa-hourglass-1:before, -.fa-hourglass-start:before { - content: "\f251"; -} -.fa-hourglass-2:before, -.fa-hourglass-half:before { - content: "\f252"; -} -.fa-hourglass-3:before, -.fa-hourglass-end:before { - content: "\f253"; -} -.fa-hourglass:before { - content: "\f254"; -} -.fa-hand-grab-o:before, -.fa-hand-rock-o:before { - content: "\f255"; -} -.fa-hand-stop-o:before, -.fa-hand-paper-o:before { - content: "\f256"; -} -.fa-hand-scissors-o:before { - content: "\f257"; -} -.fa-hand-lizard-o:before { - content: "\f258"; -} -.fa-hand-spock-o:before { - content: "\f259"; -} -.fa-hand-pointer-o:before { - content: "\f25a"; -} -.fa-hand-peace-o:before { - content: "\f25b"; -} -.fa-trademark:before { - content: "\f25c"; -} -.fa-registered:before { - content: "\f25d"; -} -.fa-creative-commons:before { - content: "\f25e"; -} -.fa-gg:before { - content: "\f260"; -} -.fa-gg-circle:before { - content: "\f261"; -} -.fa-tripadvisor:before { - content: "\f262"; -} -.fa-odnoklassniki:before { - content: "\f263"; -} -.fa-odnoklassniki-square:before { - content: "\f264"; -} -.fa-get-pocket:before { - content: "\f265"; -} -.fa-wikipedia-w:before { - content: "\f266"; -} -.fa-safari:before { - content: "\f267"; -} -.fa-chrome:before { - content: "\f268"; -} -.fa-firefox:before { - content: "\f269"; -} -.fa-opera:before { - content: "\f26a"; -} -.fa-internet-explorer:before { - content: "\f26b"; -} -.fa-tv:before, -.fa-television:before { - content: "\f26c"; -} -.fa-contao:before { - content: "\f26d"; -} -.fa-500px:before { - content: "\f26e"; -} -.fa-amazon:before { - content: "\f270"; -} -.fa-calendar-plus-o:before { - content: "\f271"; -} -.fa-calendar-minus-o:before { - content: "\f272"; -} -.fa-calendar-times-o:before { - content: "\f273"; -} -.fa-calendar-check-o:before { - content: "\f274"; -} -.fa-industry:before { - content: "\f275"; -} -.fa-map-pin:before { - content: "\f276"; -} -.fa-map-signs:before { - content: "\f277"; -} -.fa-map-o:before { - content: "\f278"; -} -.fa-map:before { - content: "\f279"; -} -.fa-commenting:before { - content: "\f27a"; -} -.fa-commenting-o:before { - content: "\f27b"; -} -.fa-houzz:before { - content: "\f27c"; -} -.fa-vimeo:before { - content: "\f27d"; -} -.fa-black-tie:before { - content: "\f27e"; -} -.fa-fonticons:before { - content: "\f280"; -} -.fa-reddit-alien:before { - content: "\f281"; -} -.fa-edge:before { - content: "\f282"; -} -.fa-credit-card-alt:before { - content: "\f283"; -} -.fa-codiepie:before { - content: "\f284"; -} -.fa-modx:before { - content: "\f285"; -} -.fa-fort-awesome:before { - content: "\f286"; -} -.fa-usb:before { - content: "\f287"; -} -.fa-product-hunt:before { - content: "\f288"; -} -.fa-mixcloud:before { - content: "\f289"; -} -.fa-scribd:before { - content: "\f28a"; -} -.fa-pause-circle:before { - content: "\f28b"; -} -.fa-pause-circle-o:before { - content: "\f28c"; -} -.fa-stop-circle:before { - content: "\f28d"; -} -.fa-stop-circle-o:before { - content: "\f28e"; -} -.fa-shopping-bag:before { - content: "\f290"; -} -.fa-shopping-basket:before { - content: "\f291"; -} -.fa-hashtag:before { - content: "\f292"; -} -.fa-bluetooth:before { - content: "\f293"; -} -.fa-bluetooth-b:before { - content: "\f294"; -} -.fa-percent:before { - content: "\f295"; -} -.fa-gitlab:before { - content: "\f296"; -} -.fa-wpbeginner:before { - content: "\f297"; -} -.fa-wpforms:before { - content: "\f298"; -} -.fa-envira:before { - content: "\f299"; -} -.fa-universal-access:before { - content: "\f29a"; -} -.fa-wheelchair-alt:before { - content: "\f29b"; -} -.fa-question-circle-o:before { - content: "\f29c"; -} -.fa-blind:before { - content: "\f29d"; -} -.fa-audio-description:before { - content: "\f29e"; -} -.fa-volume-control-phone:before { - content: "\f2a0"; -} -.fa-braille:before { - content: "\f2a1"; -} -.fa-assistive-listening-systems:before { - content: "\f2a2"; -} -.fa-asl-interpreting:before, -.fa-american-sign-language-interpreting:before { - content: "\f2a3"; -} -.fa-deafness:before, -.fa-hard-of-hearing:before, -.fa-deaf:before { - content: "\f2a4"; -} -.fa-glide:before { - content: "\f2a5"; -} -.fa-glide-g:before { - content: "\f2a6"; -} -.fa-signing:before, -.fa-sign-language:before { - content: "\f2a7"; -} -.fa-low-vision:before { - content: "\f2a8"; -} -.fa-viadeo:before { - content: "\f2a9"; -} -.fa-viadeo-square:before { - content: "\f2aa"; -} -.fa-snapchat:before { - content: "\f2ab"; -} -.fa-snapchat-ghost:before { - content: "\f2ac"; -} -.fa-snapchat-square:before { - content: "\f2ad"; -} -.fa-pied-piper:before { - content: "\f2ae"; -} -.fa-first-order:before { - content: "\f2b0"; -} -.fa-yoast:before { - content: "\f2b1"; -} -.fa-themeisle:before { - content: "\f2b2"; -} -.fa-google-plus-circle:before, -.fa-google-plus-official:before { - content: "\f2b3"; -} -.fa-fa:before, -.fa-font-awesome:before { - content: "\f2b4"; -} -.fa-handshake-o:before { - content: "\f2b5"; -} -.fa-envelope-open:before { - content: "\f2b6"; -} -.fa-envelope-open-o:before { - content: "\f2b7"; -} -.fa-linode:before { - content: "\f2b8"; -} -.fa-address-book:before { - content: "\f2b9"; -} -.fa-address-book-o:before { - content: "\f2ba"; -} -.fa-vcard:before, -.fa-address-card:before { - content: "\f2bb"; -} -.fa-vcard-o:before, -.fa-address-card-o:before { - content: "\f2bc"; -} -.fa-user-circle:before { - content: "\f2bd"; -} -.fa-user-circle-o:before { - content: "\f2be"; -} -.fa-user-o:before { - content: "\f2c0"; -} -.fa-id-badge:before { - content: "\f2c1"; -} -.fa-drivers-license:before, -.fa-id-card:before { - content: "\f2c2"; -} -.fa-drivers-license-o:before, -.fa-id-card-o:before { - content: "\f2c3"; -} -.fa-quora:before { - content: "\f2c4"; -} -.fa-free-code-camp:before { - content: "\f2c5"; -} -.fa-telegram:before { - content: "\f2c6"; -} -.fa-thermometer-4:before, -.fa-thermometer:before, -.fa-thermometer-full:before { - content: "\f2c7"; -} -.fa-thermometer-3:before, -.fa-thermometer-three-quarters:before { - content: "\f2c8"; -} -.fa-thermometer-2:before, -.fa-thermometer-half:before { - content: "\f2c9"; -} -.fa-thermometer-1:before, -.fa-thermometer-quarter:before { - content: "\f2ca"; -} -.fa-thermometer-0:before, -.fa-thermometer-empty:before { - content: "\f2cb"; -} -.fa-shower:before { - content: "\f2cc"; -} -.fa-bathtub:before, -.fa-s15:before, -.fa-bath:before { - content: "\f2cd"; -} -.fa-podcast:before { - content: "\f2ce"; -} -.fa-window-maximize:before { - content: "\f2d0"; -} -.fa-window-minimize:before { - content: "\f2d1"; -} -.fa-window-restore:before { - content: "\f2d2"; -} -.fa-times-rectangle:before, -.fa-window-close:before { - content: "\f2d3"; -} -.fa-times-rectangle-o:before, -.fa-window-close-o:before { - content: "\f2d4"; -} -.fa-bandcamp:before { - content: "\f2d5"; -} -.fa-grav:before { - content: "\f2d6"; -} -.fa-etsy:before { - content: "\f2d7"; -} -.fa-imdb:before { - content: "\f2d8"; -} -.fa-ravelry:before { - content: "\f2d9"; -} -.fa-eercast:before { - content: "\f2da"; -} -.fa-microchip:before { - content: "\f2db"; -} -.fa-snowflake-o:before { - content: "\f2dc"; -} -.fa-superpowers:before { - content: "\f2dd"; -} -.fa-wpexplorer:before { - content: "\f2de"; -} -.fa-meetup:before { - content: "\f2e0"; -} -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.sr-only-focusable:active, -.sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; -} diff --git a/client/src/assets/css/font-awesome.min.css b/client/src/assets/css/font-awesome.min.css deleted file mode 100644 index 540440ce..00000000 --- a/client/src/assets/css/font-awesome.min.css +++ /dev/null @@ -1,4 +0,0 @@ -/*! - * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/client/src/assets/fonts/FontAwesome.otf b/client/src/assets/fonts/FontAwesome.otf deleted file mode 100644 index 401ec0f3..00000000 Binary files a/client/src/assets/fonts/FontAwesome.otf and /dev/null differ diff --git a/client/src/assets/fonts/fontawesome-webfont.eot b/client/src/assets/fonts/fontawesome-webfont.eot deleted file mode 100644 index e9f60ca9..00000000 Binary files a/client/src/assets/fonts/fontawesome-webfont.eot and /dev/null differ diff --git a/client/src/assets/fonts/fontawesome-webfont.svg b/client/src/assets/fonts/fontawesome-webfont.svg deleted file mode 100644 index 855c845e..00000000 --- a/client/src/assets/fonts/fontawesome-webfont.svg +++ /dev/null @@ -1,2671 +0,0 @@ - - - - -Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 - By ,,, -Copyright Dave Gandy 2016. All rights reserved. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/src/assets/fonts/fontawesome-webfont.ttf b/client/src/assets/fonts/fontawesome-webfont.ttf deleted file mode 100644 index 35acda2f..00000000 Binary files a/client/src/assets/fonts/fontawesome-webfont.ttf and /dev/null differ diff --git a/client/src/assets/fonts/fontawesome-webfont.woff b/client/src/assets/fonts/fontawesome-webfont.woff deleted file mode 100644 index 400014a4..00000000 Binary files a/client/src/assets/fonts/fontawesome-webfont.woff and /dev/null differ diff --git a/client/src/assets/fonts/fontawesome-webfont.woff2 b/client/src/assets/fonts/fontawesome-webfont.woff2 deleted file mode 100644 index 4d13fc60..00000000 Binary files a/client/src/assets/fonts/fontawesome-webfont.woff2 and /dev/null differ diff --git a/client/src/assets/images/cover.jpg b/client/src/assets/images/cover.jpg index 5151324f..0493d0f1 100644 Binary files a/client/src/assets/images/cover.jpg and b/client/src/assets/images/cover.jpg differ diff --git a/client/src/assets/images/deleted-user.png b/client/src/assets/images/deleted-user.png new file mode 100644 index 00000000..f06a9747 Binary files /dev/null and b/client/src/assets/images/deleted-user.png differ diff --git a/client/src/assets/images/logo.png b/client/src/assets/images/logo.png index 7dd7dc58..6d313518 100644 Binary files a/client/src/assets/images/logo.png and b/client/src/assets/images/logo.png differ diff --git a/client/src/components/Background/Background.jsx b/client/src/components/Background/Background.jsx deleted file mode 100644 index a16157a3..00000000 --- a/client/src/components/Background/Background.jsx +++ /dev/null @@ -1,38 +0,0 @@ -import upperFirst from 'lodash/upperFirst'; -import camelCase from 'lodash/camelCase'; -import React from 'react'; -import PropTypes from 'prop-types'; -import classNames from 'classnames'; - -import { ProjectBackgroundTypes } from '../../constants/Enums'; - -import styles from './Background.module.scss'; -import globalStyles from '../../styles.module.scss'; - -function Background({ type, name, imageUrl }) { - return ( -
- ); -} - -Background.propTypes = { - type: PropTypes.string.isRequired, - name: PropTypes.string, - imageUrl: PropTypes.string, -}; - -Background.defaultProps = { - name: undefined, - imageUrl: undefined, -}; - -export default Background; diff --git a/client/src/components/Background/Background.module.scss b/client/src/components/Background/Background.module.scss deleted file mode 100644 index 80203114..00000000 --- a/client/src/components/Background/Background.module.scss +++ /dev/null @@ -1,10 +0,0 @@ -:global(#app) { - .wrapper { - height: 100%; - max-height: 100vh; - max-width: 100vw; - position: fixed; - width: 100%; - z-index: -1; - } -} diff --git a/client/src/components/Background/index.js b/client/src/components/Background/index.js deleted file mode 100644 index b12df467..00000000 --- a/client/src/components/Background/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Background from './Background'; - -export default Background; diff --git a/client/src/components/Board/Board.jsx b/client/src/components/Board/Board.jsx deleted file mode 100755 index 6bfa04f5..00000000 --- a/client/src/components/Board/Board.jsx +++ /dev/null @@ -1,201 +0,0 @@ -import React, { useCallback, useEffect, useRef, useState } from 'react'; -import PropTypes from 'prop-types'; -import { useTranslation } from 'react-i18next'; -import { DragDropContext, Droppable } from 'react-beautiful-dnd'; -import { closePopup } from '../../lib/popup'; - -import DroppableTypes from '../../constants/DroppableTypes'; -import ListContainer from '../../containers/ListContainer'; -import CardModalContainer from '../../containers/CardModalContainer'; -import ListAdd from './ListAdd'; -import { ReactComponent as PlusMathIcon } from '../../assets/images/plus-math-icon.svg'; - -import styles from './Board.module.scss'; -import globalStyles from '../../styles.module.scss'; - -const parseDndId = (dndId) => dndId.split(':')[1]; - -const Board = React.memo( - ({ listIds, isCardModalOpened, canEdit, onListCreate, onListMove, onCardMove }) => { - const [t] = useTranslation(); - const [isListAddOpened, setIsListAddOpened] = useState(false); - - const wrapper = useRef(null); - const prevPosition = useRef(null); - - const handleAddListClick = useCallback(() => { - setIsListAddOpened(true); - }, []); - - const handleAddListClose = useCallback(() => { - setIsListAddOpened(false); - }, []); - - const handleDragStart = useCallback(() => { - document.body.classList.add(globalStyles.dragging); - closePopup(); - }, []); - - const handleDragEnd = useCallback( - ({ draggableId, type, source, destination }) => { - document.body.classList.remove(globalStyles.dragging); - - if ( - !destination || - (source.droppableId === destination.droppableId && source.index === destination.index) - ) { - return; - } - - const id = parseDndId(draggableId); - - switch (type) { - case DroppableTypes.LIST: - onListMove(id, destination.index); - - break; - case DroppableTypes.CARD: - onCardMove(id, parseDndId(destination.droppableId), destination.index); - - break; - default: - } - }, - [onListMove, onCardMove], - ); - - const handleMouseDown = useCallback( - (event) => { - // If button is defined and not equal to 0 (left click) - if (event.button) { - return; - } - - if (event.target !== wrapper.current && !event.target.dataset.dragScroller) { - return; - } - - prevPosition.current = event.clientX; - - window.getSelection().removeAllRanges(); - document.body.classList.add(globalStyles.dragScrolling); - }, - [wrapper], - ); - - const handleWindowMouseMove = useCallback( - (event) => { - if (prevPosition.current === null) { - return; - } - - event.preventDefault(); - - window.scrollBy({ - left: prevPosition.current - event.clientX, - }); - - prevPosition.current = event.clientX; - }, - [prevPosition], - ); - - const handleWindowMouseRelease = useCallback(() => { - if (prevPosition.current === null) { - return; - } - - prevPosition.current = null; - document.body.classList.remove(globalStyles.dragScrolling); - }, [prevPosition]); - - useEffect(() => { - document.body.style.overflowX = 'auto'; - - return () => { - document.body.style.overflowX = null; - }; - }, []); - - useEffect(() => { - if (isListAddOpened) { - window.scroll(document.body.scrollWidth, 0); - } - }, [listIds, isListAddOpened]); - - useEffect(() => { - window.addEventListener('mousemove', handleWindowMouseMove); - - window.addEventListener('mouseup', handleWindowMouseRelease); - window.addEventListener('blur', handleWindowMouseRelease); - window.addEventListener('contextmenu', handleWindowMouseRelease); - - return () => { - window.removeEventListener('mousemove', handleWindowMouseMove); - - window.removeEventListener('mouseup', handleWindowMouseRelease); - window.removeEventListener('blur', handleWindowMouseRelease); - window.removeEventListener('contextmenu', handleWindowMouseRelease); - }; - }, [handleWindowMouseMove, handleWindowMouseRelease]); - - return ( - <> - {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */} -
-
- - - {({ innerRef, droppableProps, placeholder }) => ( -
- {listIds.map((listId, index) => ( - - ))} - {placeholder} - {canEdit && ( -
- {isListAddOpened ? ( - - ) : ( - - )} -
- )} -
- )} -
-
-
-
- {isCardModalOpened && } - - ); - }, -); - -Board.propTypes = { - listIds: PropTypes.array.isRequired, // eslint-disable-line react/forbid-prop-types - isCardModalOpened: PropTypes.bool.isRequired, - canEdit: PropTypes.bool.isRequired, - onListCreate: PropTypes.func.isRequired, - onListMove: PropTypes.func.isRequired, - onCardMove: PropTypes.func.isRequired, -}; - -export default Board; diff --git a/client/src/components/Board/ListAdd.jsx b/client/src/components/Board/ListAdd.jsx deleted file mode 100755 index 7fc1e49f..00000000 --- a/client/src/components/Board/ListAdd.jsx +++ /dev/null @@ -1,89 +0,0 @@ -import React, { useCallback, useEffect, useRef } from 'react'; -import PropTypes from 'prop-types'; -import { useTranslation } from 'react-i18next'; -import { Button, Form, Input } from 'semantic-ui-react'; -import { useDidUpdate, useToggle } from '../../lib/hooks'; - -import { useClosableForm, useForm } from '../../hooks'; - -import styles from './ListAdd.module.scss'; - -const DEFAULT_DATA = { - name: '', -}; - -const ListAdd = React.memo(({ onCreate, onClose }) => { - const [t] = useTranslation(); - const [data, handleFieldChange, setData] = useForm(DEFAULT_DATA); - const [focusNameFieldState, focusNameField] = useToggle(); - - const nameField = useRef(null); - - const handleFieldKeyDown = useCallback( - (event) => { - if (event.key === 'Escape') { - onClose(); - } - }, - [onClose], - ); - - const [handleFieldBlur, handleControlMouseOver, handleControlMouseOut] = useClosableForm(onClose); - - const handleSubmit = useCallback(() => { - const cleanData = { - ...data, - name: data.name.trim(), - }; - - if (!cleanData.name) { - nameField.current.select(); - return; - } - - onCreate(cleanData); - - setData(DEFAULT_DATA); - focusNameField(); - }, [onCreate, data, setData, focusNameField]); - - useEffect(() => { - nameField.current.focus(); - }, []); - - useDidUpdate(() => { - nameField.current.focus(); - }, [focusNameFieldState]); - - return ( -
- -
- {/* eslint-disable-next-line jsx-a11y/mouse-events-have-key-events */} -
-
- ); -}); - -ListAdd.propTypes = { - onCreate: PropTypes.func.isRequired, - onClose: PropTypes.func.isRequired, -}; - -export default ListAdd; diff --git a/client/src/components/Board/ListAdd.module.scss b/client/src/components/Board/ListAdd.module.scss deleted file mode 100644 index bc70f10a..00000000 --- a/client/src/components/Board/ListAdd.module.scss +++ /dev/null @@ -1,33 +0,0 @@ -:global(#app) { - .button { - min-height: 30px; - vertical-align: top; - } - - .controls { - margin-top: 4px; - } - - .field { - border: none; - border-radius: 3px; - box-shadow: 0 1px 0 #ccc; - color: #333; - outline: none; - overflow: hidden; - width: 100%; - - &:focus { - border-color: #298fca; - box-shadow: 0 0 2px #298fca; - } - } - - .wrapper { - background: #e2e4e6; - border-radius: 3px; - padding: 4px; - transition: opacity 40ms ease-in; - width: 272px; - } -} diff --git a/client/src/components/Board/index.js b/client/src/components/Board/index.js deleted file mode 100755 index 354b0580..00000000 --- a/client/src/components/Board/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Board from './Board'; - -export default Board; diff --git a/client/src/components/BoardActions/BoardActions.jsx b/client/src/components/BoardActions/BoardActions.jsx deleted file mode 100644 index c925b9f5..00000000 --- a/client/src/components/BoardActions/BoardActions.jsx +++ /dev/null @@ -1,97 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -import Filters from './Filters'; -import Memberships from '../Memberships'; -import BoardMembershipPermissionsSelectStep from '../BoardMembershipPermissionsSelectStep'; - -import styles from './BoardActions.module.scss'; - -const BoardActions = React.memo( - ({ - memberships, - labels, - filterUsers, - filterLabels, - filterText, - allUsers, - canEdit, - canEditMemberships, - onMembershipCreate, - onMembershipUpdate, - onMembershipDelete, - onUserToFilterAdd, - onUserFromFilterRemove, - onLabelToFilterAdd, - onLabelFromFilterRemove, - onLabelCreate, - onLabelUpdate, - onLabelMove, - onLabelDelete, - onTextFilterUpdate, - }) => { - return ( -
-
-
- -
-
- -
-
-
- ); - }, -); - -BoardActions.propTypes = { - /* eslint-disable react/forbid-prop-types */ - memberships: PropTypes.array.isRequired, - labels: PropTypes.array.isRequired, - filterUsers: PropTypes.array.isRequired, - filterLabels: PropTypes.array.isRequired, - filterText: PropTypes.string.isRequired, - allUsers: PropTypes.array.isRequired, - /* eslint-enable react/forbid-prop-types */ - canEdit: PropTypes.bool.isRequired, - canEditMemberships: PropTypes.bool.isRequired, - onMembershipCreate: PropTypes.func.isRequired, - onMembershipUpdate: PropTypes.func.isRequired, - onMembershipDelete: PropTypes.func.isRequired, - onUserToFilterAdd: PropTypes.func.isRequired, - onUserFromFilterRemove: PropTypes.func.isRequired, - onLabelToFilterAdd: PropTypes.func.isRequired, - onLabelFromFilterRemove: PropTypes.func.isRequired, - onLabelCreate: PropTypes.func.isRequired, - onLabelUpdate: PropTypes.func.isRequired, - onLabelMove: PropTypes.func.isRequired, - onLabelDelete: PropTypes.func.isRequired, - onTextFilterUpdate: PropTypes.func.isRequired, -}; - -export default BoardActions; diff --git a/client/src/components/BoardActions/BoardActions.module.scss b/client/src/components/BoardActions/BoardActions.module.scss deleted file mode 100644 index 2a73de92..00000000 --- a/client/src/components/BoardActions/BoardActions.module.scss +++ /dev/null @@ -1,26 +0,0 @@ -:global(#app) { - .action { - align-items: center; - display: flex; - flex: 0 0 auto; - } - - .actions { - align-items: center; - display: flex; - gap: 20px; - justify-content: flex-start; - margin: 20px 20px; - } - - .wrapper { - overflow-x: auto; - overflow-y: hidden; - -ms-overflow-style: none; - scrollbar-width: none; - - &::-webkit-scrollbar { - display: none; - } - } -} diff --git a/client/src/components/BoardActions/Filters.jsx b/client/src/components/BoardActions/Filters.jsx deleted file mode 100644 index 305bf1ed..00000000 --- a/client/src/components/BoardActions/Filters.jsx +++ /dev/null @@ -1,190 +0,0 @@ -import React, { useCallback, useRef, useState } from 'react'; -import PropTypes from 'prop-types'; -import classNames from 'classnames'; -import { useTranslation } from 'react-i18next'; -import { Icon } from 'semantic-ui-react'; -import { usePopup } from '../../lib/popup'; -import { Input } from '../../lib/custom-ui'; - -import User from '../User'; -import Label from '../Label'; -import BoardMembershipsStep from '../BoardMembershipsStep'; -import LabelsStep from '../LabelsStep'; - -import styles from './Filters.module.scss'; - -const Filters = React.memo( - ({ - users, - labels, - filterText, - allBoardMemberships, - allLabels, - canEdit, - onUserAdd, - onUserRemove, - onLabelAdd, - onLabelRemove, - onLabelCreate, - onLabelUpdate, - onLabelMove, - onLabelDelete, - onTextFilterUpdate, - }) => { - const [t] = useTranslation(); - const [isSearchFocused, setIsSearchFocused] = useState(false); - - const searchFieldRef = useRef(null); - - const cancelSearch = useCallback(() => { - onTextFilterUpdate(''); - searchFieldRef.current.blur(); - }, [onTextFilterUpdate]); - - const handleRemoveUserClick = useCallback( - (id) => { - onUserRemove(id); - }, - [onUserRemove], - ); - - const handleRemoveLabelClick = useCallback( - (id) => { - onLabelRemove(id); - }, - [onLabelRemove], - ); - - const handleSearchChange = useCallback( - (_, { value }) => { - onTextFilterUpdate(value); - }, - [onTextFilterUpdate], - ); - - const handleSearchFocus = useCallback(() => { - setIsSearchFocused(true); - }, []); - - const handleSearchKeyDown = useCallback( - (event) => { - if (event.key === 'Escape') { - cancelSearch(); - } - }, - [cancelSearch], - ); - - const handleSearchBlur = useCallback(() => { - setIsSearchFocused(false); - }, []); - - const handleCancelSearchClick = useCallback(() => { - cancelSearch(); - }, [cancelSearch]); - - const BoardMembershipsPopup = usePopup(BoardMembershipsStep); - const LabelsPopup = usePopup(LabelsStep); - - const isSearchActive = filterText || isSearchFocused; - - return ( - <> - - user.id)} - title="common.filterByMembers" - onUserSelect={onUserAdd} - onUserDeselect={onUserRemove} - > - - - {users.map((user) => ( - - handleRemoveUserClick(user.id)} - /> - - ))} - - - label.id)} - title="common.filterByLabels" - canEdit={canEdit} - onSelect={onLabelAdd} - onDeselect={onLabelRemove} - onCreate={onLabelCreate} - onUpdate={onLabelUpdate} - onMove={onLabelMove} - onDelete={onLabelDelete} - > - - - {labels.map((label) => ( - - - ))} - - - - ) : ( - 'search' - ) - } - className={classNames(styles.search, !isSearchActive && styles.searchInactive)} - onFocus={handleSearchFocus} - onKeyDown={handleSearchKeyDown} - onChange={handleSearchChange} - onBlur={handleSearchBlur} - /> - - - ); - }, -); - -Filters.propTypes = { - /* eslint-disable react/forbid-prop-types */ - users: PropTypes.array.isRequired, - labels: PropTypes.array.isRequired, - filterText: PropTypes.string.isRequired, - allBoardMemberships: PropTypes.array.isRequired, - allLabels: PropTypes.array.isRequired, - /* eslint-enable react/forbid-prop-types */ - canEdit: PropTypes.bool.isRequired, - onUserAdd: PropTypes.func.isRequired, - onUserRemove: PropTypes.func.isRequired, - onLabelAdd: PropTypes.func.isRequired, - onLabelRemove: PropTypes.func.isRequired, - onLabelCreate: PropTypes.func.isRequired, - onLabelUpdate: PropTypes.func.isRequired, - onLabelMove: PropTypes.func.isRequired, - onLabelDelete: PropTypes.func.isRequired, - onTextFilterUpdate: PropTypes.func.isRequired, -}; - -export default Filters; diff --git a/client/src/components/BoardActions/index.js b/client/src/components/BoardActions/index.js deleted file mode 100644 index 5629b791..00000000 --- a/client/src/components/BoardActions/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import BoardActions from './BoardActions'; - -export default BoardActions; diff --git a/client/src/components/BoardMembershipPermissionsSelectStep/BoardMembershipPermissionsSelectStep.jsx b/client/src/components/BoardMembershipPermissionsSelectStep/BoardMembershipPermissionsSelectStep.jsx deleted file mode 100644 index 4ac87096..00000000 --- a/client/src/components/BoardMembershipPermissionsSelectStep/BoardMembershipPermissionsSelectStep.jsx +++ /dev/null @@ -1,107 +0,0 @@ -import { dequal } from 'dequal'; -import omit from 'lodash/omit'; -import React, { useCallback, useState } from 'react'; -import PropTypes from 'prop-types'; -import { useTranslation } from 'react-i18next'; -import { Button, Form, Menu, Radio, Segment } from 'semantic-ui-react'; -import { Popup } from '../../lib/custom-ui'; - -import { BoardMembershipRoles } from '../../constants/Enums'; - -import styles from './BoardMembershipPermissionsSelectStep.module.scss'; - -const BoardMembershipPermissionsSelectStep = React.memo( - ({ defaultData, title, buttonContent, onSelect, onBack, onClose }) => { - const [t] = useTranslation(); - - const [data, setData] = useState(() => ({ - role: BoardMembershipRoles.EDITOR, - canComment: null, - ...defaultData, - })); - - const handleSelectRoleClick = useCallback((role) => { - setData((prevData) => ({ - ...prevData, - role, - canComment: role === BoardMembershipRoles.VIEWER ? !!prevData.canComment : null, - })); - }, []); - - const handleSettingChange = useCallback((_, { name: fieldName, checked: value }) => { - setData((prevData) => ({ - ...prevData, - [fieldName]: value, - })); - }, []); - - const handleSubmit = useCallback(() => { - if (!dequal(data, defaultData)) { - onSelect(data.role === BoardMembershipRoles.VIEWER ? data : omit(data, 'canComment')); - } - - onClose(); - }, [defaultData, onSelect, onClose, data]); - - return ( - <> - - {t(title, { - context: 'title', - })} - - -
- - handleSelectRoleClick(BoardMembershipRoles.EDITOR)} - > -
{t('common.editor')}
-
- {t('common.canEditContentOfBoard')} -
-
- handleSelectRoleClick(BoardMembershipRoles.VIEWER)} - > -
{t('common.viewer')}
-
{t('common.canOnlyViewBoard')}
-
-
- {data.role === BoardMembershipRoles.VIEWER && ( - - - - )} -
- - )} - - ) : ( - // eslint-disable-next-line react/jsx-props-no-spreading - - {item.name} - - )} -
- - )} - - )); - - return ( -
-
- - - {({ innerRef, droppableProps, placeholder }) => ( - // eslint-disable-next-line react/jsx-props-no-spreading -
- {itemsNode} - {placeholder} - {canEdit && ( - -
- )} -
-
-
-
- ); -}); - -Boards.propTypes = { - items: PropTypes.array.isRequired, // eslint-disable-line react/forbid-prop-types - currentId: PropTypes.string, - canEdit: PropTypes.bool.isRequired, - onCreate: PropTypes.func.isRequired, - onUpdate: PropTypes.func.isRequired, - onMove: PropTypes.func.isRequired, - onDelete: PropTypes.func.isRequired, -}; - -Boards.defaultProps = { - currentId: undefined, -}; - -export default Boards; diff --git a/client/src/components/Boards/EditStep.jsx b/client/src/components/Boards/EditStep.jsx deleted file mode 100755 index c02c34f3..00000000 --- a/client/src/components/Boards/EditStep.jsx +++ /dev/null @@ -1,104 +0,0 @@ -import { dequal } from 'dequal'; -import React, { useCallback, useEffect, useRef } from 'react'; -import PropTypes from 'prop-types'; -import { useTranslation } from 'react-i18next'; -import { Button, Form } from 'semantic-ui-react'; -import { Input, Popup } from '../../lib/custom-ui'; - -import { useForm, useSteps } from '../../hooks'; -import DeleteStep from '../DeleteStep'; - -import styles from './EditStep.module.scss'; - -const StepTypes = { - DELETE: 'DELETE', -}; - -const EditStep = React.memo(({ defaultData, onUpdate, onDelete, onClose }) => { - const [t] = useTranslation(); - - const [data, handleFieldChange] = useForm(() => ({ - name: '', - ...defaultData, - })); - - const [step, openStep, handleBack] = useSteps(); - - const nameField = useRef(null); - - const handleSubmit = useCallback(() => { - const cleanData = { - ...data, - name: data.name.trim(), - }; - - if (!cleanData.name) { - nameField.current.select(); - return; - } - - if (!dequal(cleanData, defaultData)) { - onUpdate(cleanData); - } - - onClose(); - }, [defaultData, onUpdate, onClose, data]); - - const handleDeleteClick = useCallback(() => { - openStep(StepTypes.DELETE); - }, [openStep]); - - useEffect(() => { - nameField.current.select(); - }, []); - - if (step && step.type === StepTypes.DELETE) { - return ( - - ); - } - - return ( - <> - - {t('common.editBoard', { - context: 'title', - })} - - -
-
{t('common.title')}
- -
- - )} - - ) : ( - {contentNode} - )} - - - - )} - - ); - }, -); - -Card.propTypes = { - id: PropTypes.string.isRequired, - index: PropTypes.number.isRequired, - name: PropTypes.string.isRequired, - description: PropTypes.string, - dueDate: PropTypes.instanceOf(Date), - isDueDateCompleted: PropTypes.bool, - stopwatch: PropTypes.object, // eslint-disable-line react/forbid-prop-types - coverUrl: PropTypes.string, - boardId: PropTypes.string.isRequired, - listId: PropTypes.string.isRequired, - projectId: PropTypes.string.isRequired, - isPersisted: PropTypes.bool.isRequired, - attachmentsTotal: PropTypes.number.isRequired, - notificationsTotal: PropTypes.number.isRequired, - /* eslint-disable react/forbid-prop-types */ - users: PropTypes.array.isRequired, - labels: PropTypes.array.isRequired, - tasks: PropTypes.array.isRequired, - allProjectsToLists: PropTypes.array.isRequired, - allBoardMemberships: PropTypes.array.isRequired, - allLabels: PropTypes.array.isRequired, - /* eslint-enable react/forbid-prop-types */ - canEdit: PropTypes.bool.isRequired, - onUpdate: PropTypes.func.isRequired, - onMove: PropTypes.func.isRequired, - onTransfer: PropTypes.func.isRequired, - onDuplicate: PropTypes.func.isRequired, - onDelete: PropTypes.func.isRequired, - onUserAdd: PropTypes.func.isRequired, - onUserRemove: PropTypes.func.isRequired, - onBoardFetch: PropTypes.func.isRequired, - onLabelAdd: PropTypes.func.isRequired, - onLabelRemove: PropTypes.func.isRequired, - onLabelCreate: PropTypes.func.isRequired, - onLabelUpdate: PropTypes.func.isRequired, - onLabelMove: PropTypes.func.isRequired, - onLabelDelete: PropTypes.func.isRequired, -}; - -Card.defaultProps = { - description: undefined, - dueDate: undefined, - isDueDateCompleted: undefined, - stopwatch: undefined, - coverUrl: undefined, -}; - -export default Card; diff --git a/client/src/components/Card/NameEdit.jsx b/client/src/components/Card/NameEdit.jsx deleted file mode 100644 index 1487a950..00000000 --- a/client/src/components/Card/NameEdit.jsx +++ /dev/null @@ -1,127 +0,0 @@ -import React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react'; -import PropTypes from 'prop-types'; -import { useTranslation } from 'react-i18next'; -import TextareaAutosize from 'react-textarea-autosize'; -import { Button, Form, TextArea } from 'semantic-ui-react'; - -import { useClosableForm, useField } from '../../hooks'; -import { focusEnd } from '../../utils/element-helpers'; - -import styles from './NameEdit.module.scss'; - -const NameEdit = React.forwardRef(({ children, defaultValue, onUpdate }, ref) => { - const [t] = useTranslation(); - const [isOpened, setIsOpened] = useState(false); - const [value, handleFieldChange, setValue] = useField(defaultValue); - - const field = useRef(null); - - const open = useCallback(() => { - setIsOpened(true); - setValue(defaultValue); - }, [defaultValue, setValue]); - - const close = useCallback(() => { - setIsOpened(false); - setValue(null); - }, [setValue]); - - const submit = useCallback(() => { - const cleanValue = value.trim(); - - if (!cleanValue) { - field.current.ref.current.select(); - return; - } - - if (cleanValue !== defaultValue) { - onUpdate(cleanValue); - } - - close(); - }, [defaultValue, onUpdate, value, close]); - - useImperativeHandle( - ref, - () => ({ - open, - close, - }), - [open, close], - ); - - const handleFieldKeyDown = useCallback( - (event) => { - switch (event.key) { - case 'Enter': - event.preventDefault(); - - submit(); - - break; - case 'Escape': - close(); - - break; - default: - } - }, - [close, submit], - ); - - const [handleFieldBlur, handleControlMouseOver, handleControlMouseOut] = useClosableForm( - close, - isOpened, - ); - - const handleSubmit = useCallback(() => { - submit(); - }, [submit]); - - useEffect(() => { - if (isOpened) { - focusEnd(field.current.ref.current); - } - }, [isOpened]); - - if (!isOpened) { - return children; - } - - return ( -
-
-