diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6c2dc73..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,133 +0,0 @@ -version: 2.1 - -executors: - python-executor: - working_directory: ~/phovea-python - docker: - - image: circleci/python:3.10-buster - node-executor: - working_directory: ~/phovea-web - docker: - - image: circleci/node:14.17-buster - -jobs: - python-build: - executor: python-executor - steps: - - checkout - - restore_cache: - key: deps-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_dev.txt" }} - - run: - name: Install pip requirements - command: | - virtualenv ~/venv - . ~/venv/bin/activate - make develop - - save_cache: - key: deps-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_dev.txt" }} - paths: - - ~/venv - - run: - name: Force an update of pip dependencies from git repositories # not sure if this is working ? - command: | - . ~/venv/bin/activate - pip install --upgrade --upgrade-strategy=only-if-needed -e .[develop] - - run: - name: Show installed pip packages - command: | - . ~/venv/bin/activate - pip list || true - - run: - name: Linting - command: | - . ~/venv/bin/activate - make lint check-format - - run: - name: Run tests - command: | - . ~/venv/bin/activate - make test - - run: - name: Build wheel - command: | - . ~/venv/bin/activate - make build - - store_artifacts: - path: dist_python - destination: dist-python - - persist_to_workspace: - root: ~/. - paths: phovea-python - web-build: - executor: node-executor - steps: - - checkout - - run: - name: Show Node.js and npm version - command: | - node -v - npm -v - - restore_cache: - key: deps0-{{ .Branch }}-{{ checksum "package.json" }} - - run: - name: Install npm dependencies - command: npm install - - run: - name: Remove npm dependencies installed from git repositories (avoid caching of old commits) - command: | - (grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf - - save_cache: - key: deps0-{{ .Branch }}-{{ checksum "package.json" }} - paths: ./node_modules - - run: - name: Install npm dependencies from git repositories (always get latest commit) - command: npm install - - run: - name: Show installed npm dependencies - command: npm list --depth=1 || true - - run: - name: Build - command: npm run dist - - store_artifacts: - path: dist - destination: dist-web - - persist_to_workspace: - root: ~/. - paths: phovea-web -workflows: - version: 2.1 -# build-nightly: -# triggers: -# - schedule: -# cron: "15 1 * * 1-5" # "At 01:15 on every day-of-week from Monday through Friday.”, see: https://crontab.guru/#15_1_*_*_1-5 -# filters: -# branches: -# only: -# - develop -# jobs: -# - python-build -# - web-build - build-branches-only: - jobs: - - python-build: - filters: - tags: - ignore: /.*/ - - web-build: - filters: - tags: - ignore: /.*/ - build-tag: - jobs: - - python-build: - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ - - web-build: - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ diff --git a/.eslintcache b/.eslintcache new file mode 100644 index 0000000..178f192 --- /dev/null +++ b/.eslintcache @@ -0,0 +1 @@ +[{"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Cohort.ts":"1","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/CohortInterfaces.ts":"2","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/CohortRepresentations.ts":"3","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/OnboardingManager.ts":"4","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Overview/CohortOverview.ts":"5","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Overview/OverviewLayout.ts":"6","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Overview/index.ts":"7","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Provenance/CohortEV.ts":"8","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Provenance/General.ts":"9","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/TaskRepresentations.ts":"10","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Tasks.ts":"11","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/SearchBar.ts":"12","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/SearchColumn.ts":"13","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/Taskview.ts":"14","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/columns/AColumn.ts":"15","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/columns/AttributeColumn.ts":"16","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/columns/CohortColumn.ts":"17","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/columns/NumberColumn.ts":"18","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/columns/PrevalenceColumn.ts":"19","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/columns/index.ts":"20","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/index.ts":"21","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/ATask.ts":"22","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/Compare.ts":"23","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/Details.ts":"24","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/Filter.ts":"25","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/Prevalence.ts":"26","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/TaskList.ts":"27","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/index.ts":"28","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/AVegaVisualization.ts":"29","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/AreaChart.ts":"30","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/DensityPlot.ts":"31","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/GroupedBoxplot.ts":"32","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/GroupedHistogram.ts":"33","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/Histogram.ts":"34","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/IVisualization.ts":"35","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/KaplanMeierPlot.ts":"36","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/MultiAttributeVisualization.ts":"37","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/Scatterplot.ts":"38","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/config/ConfidenceConfig.ts":"39","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/config/CountCounfig.ts":"40","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/config/GroupConfig.ts":"41","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/config/ScaleConfig.ts":"42","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/config/SortConfig.ts":"43","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/config/VisConfig.ts":"44","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/constants.ts":"45","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/dimreduce/OneHotEncoder.ts":"46","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/dimreduce/OneHotEncoder.worker.ts":"47","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/dimreduce/tsne.worker.ts":"48","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/index.ts":"49","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Tooltip.ts":"50","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/app.ts":"51","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/base/extensions.ts":"52","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/cohortview.ts":"53","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/colors.ts":"54","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/common/GeneUtils.ts":"55","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/common/config.ts":"56","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/common/forms.ts":"57","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/common/index.ts":"58","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/config/onboarding.ts":"59","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/data/Attribute.ts":"60","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/data/SpecialAttribute.ts":"61","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/data/index.ts":"62","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/index.ts":"63","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/phovea.ts":"64","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/phovea_registry.ts":"65","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/rest.ts":"66","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/util.ts":"67","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utilCustomEvents.ts":"68","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utilIdTypes.ts":"69","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utilLabels.ts":"70","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utils/RouterScrollToTop.tsx":"71","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utils/index.ts":"72","/home/runner/work/github-maintenance/github-maintenance/tmp/repository/tests/app.test.ts":"73"},{"size":27212,"mtime":1660653050518},{"size":4277,"mtime":1660653050498},{"size":26818,"mtime":1660653050514},{"size":1502,"mtime":1660653050514},{"size":43468,"mtime":1660653050514},{"size":8116,"mtime":1660653050518},{"size":68,"mtime":1660653050514,"results":"74","hashOfConfig":"75"},{"size":3224,"mtime":1660653050522},{"size":1789,"mtime":1660653050522},{"size":5525,"mtime":1660653050514},{"size":5954,"mtime":1660653050522},{"size":42678,"mtime":1660653050522},{"size":6077,"mtime":1660653050522},{"size":24877,"mtime":1660653050522},{"size":6881,"mtime":1660653050518},{"size":17186,"mtime":1660653050518},{"size":3801,"mtime":1660653050518},{"size":1098,"mtime":1660653050518},{"size":4135,"mtime":1660653050518},{"size":344,"mtime":1660653050518},{"size":280,"mtime":1660653050518},{"size":2224,"mtime":1660653050522},{"size":28965,"mtime":1660653050522},{"size":6579,"mtime":1660653050522},{"size":9719,"mtime":1660653050522},{"size":42107,"mtime":1660653050522},{"size":319,"mtime":1660653050522},{"size":163,"mtime":1660653050522,"results":"76","hashOfConfig":"75"},{"size":31993,"mtime":1660653050518},{"size":3175,"mtime":1660653050518},{"size":20420,"mtime":1660653050518},{"size":45017,"mtime":1660653050518},{"size":8895,"mtime":1660653050518},{"size":5455,"mtime":1660653050518},{"size":411,"mtime":1660653050518},{"size":32290,"mtime":1660653050518},{"size":20281,"mtime":1660653050518},{"size":39002,"mtime":1660653050522},{"size":315,"mtime":1660653050518},{"size":272,"mtime":1660653050518},{"size":433,"mtime":1660653050518},{"size":631,"mtime":1660653050518},{"size":835,"mtime":1660653050518},{"size":1049,"mtime":1660653050518},{"size":173,"mtime":1660653050518},{"size":2820,"mtime":1660653050518},{"size":115,"mtime":1660653050518},{"size":95,"mtime":1660653050518},{"size":304,"mtime":1660653050518,"results":"77","hashOfConfig":"75"},{"size":2776,"mtime":1660653050514},{"size":26865,"mtime":1660653050518},{"size":838,"mtime":1660653050498},{"size":2595,"mtime":1660653050498},{"size":417,"mtime":1660653050514},{"size":8349,"mtime":1660653050498},{"size":17683,"mtime":1660653050498},{"size":24505,"mtime":1660653050498},{"size":80,"mtime":1660653050498,"results":"78","hashOfConfig":"75"},{"size":4306,"mtime":1660653050514},{"size":19692,"mtime":1660653050514},{"size":16041,"mtime":1660653050514},{"size":29,"mtime":1660653050514,"results":"79","hashOfConfig":"75"},{"size":311,"mtime":1660653050514,"results":"80","hashOfConfig":"75"},{"size":2685,"mtime":1660653050522},{"size":617,"mtime":1660653050534},{"size":23209,"mtime":1660653050518},{"size":9294,"mtime":1660653050498},{"size":3931,"mtime":1660653050514},{"size":1968,"mtime":1660653050498},{"size":9552,"mtime":1660653050498},{"size":358,"mtime":1660653050518,"results":"81","hashOfConfig":"75"},{"size":37,"mtime":1660653050518,"results":"82","hashOfConfig":"75"},{"size":280,"mtime":1660653046218,"results":"83","hashOfConfig":"75"},{"filePath":"84","messages":"85","suppressedMessages":"86","errorCount":2,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"2udmpj",{"filePath":"87","messages":"88","suppressedMessages":"89","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","suppressedMessages":"92","errorCount":8,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"93","messages":"94","suppressedMessages":"95","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","suppressedMessages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"99","messages":"100","suppressedMessages":"101","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","suppressedMessages":"104","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","suppressedMessages":"107","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","suppressedMessages":"110","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Overview/index.ts",["111","112"],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/tasks/index.ts",[],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/Taskview/visualizations/index.ts",["113","114","115","116","117","118","119","120"],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/common/index.ts",[],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/data/index.ts",[],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/index.ts",[],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utils/RouterScrollToTop.tsx",[],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/src/utils/index.ts",[],[],"/home/runner/work/github-maintenance/github-maintenance/tmp/repository/tests/app.test.ts",["121","122"],[],{"ruleId":"123","severity":2,"message":"124","line":1,"column":1,"nodeType":"125","endLine":1,"endColumn":34},{"ruleId":"123","severity":2,"message":"126","line":2,"column":1,"nodeType":"125","endLine":2,"endColumn":34},{"ruleId":"123","severity":2,"message":"127","line":1,"column":1,"nodeType":"125","endLine":1,"endColumn":29},{"ruleId":"123","severity":2,"message":"128","line":2,"column":1,"nodeType":"125","endLine":2,"endColumn":38},{"ruleId":"123","severity":2,"message":"129","line":4,"column":1,"nodeType":"125","endLine":4,"endColumn":31},{"ruleId":"123","severity":2,"message":"130","line":5,"column":1,"nodeType":"125","endLine":5,"endColumn":36},{"ruleId":"123","severity":2,"message":"131","line":6,"column":1,"nodeType":"125","endLine":6,"endColumn":29},{"ruleId":"123","severity":2,"message":"132","line":7,"column":1,"nodeType":"125","endLine":7,"endColumn":34},{"ruleId":"123","severity":2,"message":"133","line":8,"column":1,"nodeType":"125","endLine":8,"endColumn":47},{"ruleId":"123","severity":2,"message":"134","line":9,"column":1,"nodeType":"125","endLine":9,"endColumn":31},{"ruleId":"135","severity":1,"message":"136","line":10,"column":1,"nodeType":"137","messageId":"138","endLine":10,"endColumn":30},{"ruleId":"135","severity":1,"message":"136","line":11,"column":1,"nodeType":"137","messageId":"138","endLine":11,"endColumn":29},"import/no-cycle","Dependency cycle via ../app:4","ExportAllDeclaration","Dependency cycle via ../CohortInterfaces:1=>./data/Attribute:4=>./SpecialAttribute:9=>../cohortview:4=>./app:3","Dependency cycle via ../../CohortInterfaces:4=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../CohortInterfaces:9=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../CohortInterfaces:6=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../CohortInterfaces:5=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../CohortInterfaces:2=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../CohortInterfaces:1=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../CohortInterfaces:8=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","Dependency cycle via ../../Cohort:5=>./CohortInterfaces:2=>./Taskview/Taskview:6=>./SearchColumn:11=>./tasks/TaskList:10=>./Details:3","jest/no-commented-out-tests","Some tests seem to be commented","Line","commentedTests"] \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..3930905 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require('visyn_scripts/config/eslintrc.template')({ tsconfigRootDir: __dirname }); diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3089266..837bcf9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,18 +1,2 @@ - -# This is a comment. -# Each line is a file pattern followed by one or more owners. -# Also See: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners - -# Order is important; the last matching pattern takes the most -# precedence. -# You can also use email addresses if you prefer. They'll be -# used to look up users just like we do for commit author -# emails. - - -# These owners will be the default owners for everything in -# the repo. Unless a later match takes precedence, -# @global-owner1 and @global-owner2 will be requested for -# review when someone opens a pull request. -* @PatrickAdelberger @keckelt +* @keckelt diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..d39e18b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,36 @@ +--- +name: 🐛Bug Report +about: Create a bug report to help us improve +title: "" +labels: ["type: bug"] +assignees: "" + +--- + +### Environment + + * Release number or git hash: + * Browser: + * Deployed / Local: +--- + +### Steps to reproduce the bug + +1. Open a list of ... / Search ... +2. Do something else + +### Observed Behavior + +> Please provide a short description of the actual behavior you observed +> If applicable, add screenshots to help explain your problem. +> - Any unexpected output or action (or lack of expected output or action) +> - Web browser console errors (including tracebacks) +> - Server errors (relevant messages and tracebacks) +> - Static or animated images showing the UI behavior + +### Expected Behavior + +> Please provide a short description which behavior you expected from your steps + +Thanks for taking the time to fill out this bug report 🤗 +Make sure there aren't any open/closed issues for this topic 😃 diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..1be6f2c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,17 @@ +--- +name: ✨Feature Request +about: Request a new feature or enhancement +title: "" +labels: ["type: feature"] +--- + +## Short description + +Please provide a short description which summarizes the idea behind this feature request and why this is useful. + +## User stories + +* As a *user*, I want to ... so that ... + + +Please make sure this feature request hasn't been already submitted by someone by looking through other open/closed issues 😃 diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..266c6ef --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,45 @@ +Closes *list issues numbers here* + +### Developer Checklist (Definition of Done) + +**Issue** + +- [ ] All acceptance criteria from the issue are met +- [ ] Tested in latest Chrome/Firefox + +**UI/UX/Vis** + +- [ ] Requires UI/UX/Vis review + - [ ] Reviewer(s) are notified (_tag assignees_) + - [ ] Review has occurred (_link to notes_) + - [ ] Feedback is included in this PR + - [ ] Reviewer(s) approve of concept and design + +**Code** + +- [ ] Branch is up-to-date with the branch to be merged with, i.e., develop +- [ ] Code is cleaned up and formatted +- [ ] Unit tests are written (frontend/backend if applicable) +- [ ] Integration tests are written (if applicable) + +**PR** + +- [ ] Descriptive title for this pull request is provided (will be used for release notes later) +- [ ] Reviewer and assignees are defined +- [ ] Add type label (e.g., *bug*, *feature*) to this pull request +- [ ] Add release label (e.g., `release: minor`) to this PR following [semver](https://semver.org/) +- [ ] The PR is connected to the corresponding issue (via `Closes #...`) +- [ ] [Summary of changes](#summary-of-changes) is written + + +### Summary of changes + +- + +### Screenshots + + +### Additional notes for the reviewer(s) + +- +Thanks for creating this pull request 🤗 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ddec728 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,8 @@ +name: build + +on: [push, workflow_dispatch] + +jobs: + build: + uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main + secrets: inherit diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..066076e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,12 @@ +name: publish + +on: workflow_dispatch + +jobs: + publish: + uses: datavisyn/github-workflows/.github/workflows/publish-node-python.yml@main + secrets: + DV_DEVOPS: ${{ secrets.DV_DEVOPS }} + PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1720aab --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,8 @@ +name: release + +on: workflow_dispatch + +jobs: + release: + uses: datavisyn/github-workflows/.github/workflows/release-source.yml@main + secrets: inherit diff --git a/.gitignore b/.gitignore index f527b4a..cf8a9f2 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,15 @@ node_modules/ *.css /.cache-loader package-lock.json -*:Zone.Identifier \ No newline at end of file +*:Zone.Identifier/dist/ +/dist + + +# yarn +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..54dc948 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1 @@ +module.exports = require('visyn_scripts/config/prettierrc.template') diff --git a/.yarn/releases/yarn-3.2.2.cjs b/.yarn/releases/yarn-3.2.2.cjs new file mode 100755 index 0000000..0912bea --- /dev/null +++ b/.yarn/releases/yarn-3.2.2.cjs @@ -0,0 +1,783 @@ +#!/usr/bin/env node +/* eslint-disable */ +//prettier-ignore +(()=>{var nge=Object.create,Mh=Object.defineProperty,sge=Object.defineProperties,oge=Object.getOwnPropertyDescriptor,age=Object.getOwnPropertyDescriptors,Age=Object.getOwnPropertyNames,DE=Object.getOwnPropertySymbols,lge=Object.getPrototypeOf,eQ=Object.prototype.hasOwnProperty,OO=Object.prototype.propertyIsEnumerable;var MO=(r,e,t)=>e in r?Mh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,N=(r,e)=>{for(var t in e||(e={}))eQ.call(e,t)&&MO(r,t,e[t]);if(DE)for(var t of DE(e))OO.call(e,t)&&MO(r,t,e[t]);return r},te=(r,e)=>sge(r,age(e)),cge=r=>Mh(r,"__esModule",{value:!0});var Or=(r,e)=>{var t={};for(var i in r)eQ.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&DE)for(var i of DE(r))e.indexOf(i)<0&&OO.call(r,i)&&(t[i]=r[i]);return t},uge=(r,e)=>()=>(r&&(e=r(r=0)),e),w=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ft=(r,e)=>{for(var t in e)Mh(r,t,{get:e[t],enumerable:!0})},gge=(r,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Age(e))!eQ.call(r,i)&&i!=="default"&&Mh(r,i,{get:()=>e[i],enumerable:!(t=oge(e,i))||t.enumerable});return r},ge=r=>gge(cge(Mh(r!=null?nge(lge(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var cM=w((i7e,oM)=>{oM.exports=aM;aM.sync=xge;var AM=require("fs");function kge(r,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var i=0;i{uM.exports=gM;gM.sync=Pge;var fM=require("fs");function gM(r,e,t){fM.stat(r,function(i,n){t(i,i?!1:hM(n,e))})}function Pge(r,e){return hM(fM.statSync(r),e)}function hM(r,e){return r.isFile()&&Dge(r,e)}function Dge(r,e){var t=r.mode,i=r.uid,n=r.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,g=t&c||t&l&&n===o||t&a&&i===s||t&u&&s===0;return g}});var CM=w((o7e,dM)=>{var s7e=require("fs"),zE;process.platform==="win32"||global.TESTING_WINDOWS?zE=cM():zE=pM();dM.exports=CQ;CQ.sync=Rge;function CQ(r,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){CQ(r,e||{},function(s,o){s?n(s):i(o)})})}zE(r,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),t(i,n)})}function Rge(r,e){try{return zE.sync(r,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var bM=w((a7e,mM)=>{var Xu=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",EM=require("path"),Fge=Xu?";":":",IM=CM(),yM=r=>Object.assign(new Error(`not found: ${r}`),{code:"ENOENT"}),wM=(r,e)=>{let t=e.colon||Fge,i=r.match(/\//)||Xu&&r.match(/\\/)?[""]:[...Xu?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],n=Xu?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Xu?n.split(t):[""];return Xu&&r.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},BM=(r,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=wM(r,e),o=[],a=c=>new Promise((u,g)=>{if(c===i.length)return e.all&&o.length?u(o):g(yM(r));let f=i[c],h=/^".*"$/.test(f)?f.slice(1,-1):f,p=EM.join(h,r),m=!h&&/^\.[\\\/]/.test(r)?r.slice(0,2)+p:p;u(l(m,c,0))}),l=(c,u,g)=>new Promise((f,h)=>{if(g===n.length)return f(a(u+1));let p=n[g];IM(c+p,{pathExt:s},(m,y)=>{if(!m&&y)if(e.all)o.push(c+p);else return f(c+p);return f(l(c,u,g+1))})});return t?a(0).then(c=>t(null,c),t):a(0)},Nge=(r,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:n}=wM(r,e),s=[];for(let o=0;o{"use strict";var QM=(r={})=>{let e=r.env||process.env;return(r.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};mQ.exports=QM;mQ.exports.default=QM});var PM=w((l7e,vM)=>{"use strict";var xM=require("path"),Lge=bM(),Tge=SM();function kM(r,e){let t=r.options.env||process.env,i=process.cwd(),n=r.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(r.options.cwd)}catch(a){}let o;try{o=Lge.sync(r.command,{path:t[Tge({env:t})],pathExt:e?xM.delimiter:void 0})}catch(a){}finally{s&&process.chdir(i)}return o&&(o=xM.resolve(n?r.options.cwd:"",o)),o}function Oge(r){return kM(r)||kM(r,!0)}vM.exports=Oge});var DM=w((c7e,EQ)=>{"use strict";var IQ=/([()\][%!^"`<>&|;, *?])/g;function Mge(r){return r=r.replace(IQ,"^$1"),r}function Kge(r,e){return r=`${r}`,r=r.replace(/(\\*)"/g,'$1$1\\"'),r=r.replace(/(\\*)$/,"$1$1"),r=`"${r}"`,r=r.replace(IQ,"^$1"),e&&(r=r.replace(IQ,"^$1")),r}EQ.exports.command=Mge;EQ.exports.argument=Kge});var FM=w((u7e,RM)=>{"use strict";RM.exports=/^#!(.*)/});var LM=w((g7e,NM)=>{"use strict";var Uge=FM();NM.exports=(r="")=>{let e=r.match(Uge);if(!e)return null;let[t,i]=e[0].replace(/#! ?/,"").split(" "),n=t.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var OM=w((f7e,TM)=>{"use strict";var yQ=require("fs"),Hge=LM();function jge(r){let e=150,t=Buffer.alloc(e),i;try{i=yQ.openSync(r,"r"),yQ.readSync(i,t,0,e,0),yQ.closeSync(i)}catch(n){}return Hge(t.toString())}TM.exports=jge});var HM=w((h7e,MM)=>{"use strict";var Gge=require("path"),KM=PM(),UM=DM(),Yge=OM(),qge=process.platform==="win32",Jge=/\.(?:com|exe)$/i,Wge=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function zge(r){r.file=KM(r);let e=r.file&&Yge(r.file);return e?(r.args.unshift(r.file),r.command=e,KM(r)):r.file}function _ge(r){if(!qge)return r;let e=zge(r),t=!Jge.test(e);if(r.options.forceShell||t){let i=Wge.test(e);r.command=Gge.normalize(r.command),r.command=UM.command(r.command),r.args=r.args.map(s=>UM.argument(s,i));let n=[r.command].concat(r.args).join(" ");r.args=["/d","/s","/c",`"${n}"`],r.command=process.env.comspec||"cmd.exe",r.options.windowsVerbatimArguments=!0}return r}function Vge(r,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let i={command:r,args:e,options:t,file:void 0,original:{command:r,args:e}};return t.shell?i:_ge(i)}MM.exports=Vge});var YM=w((p7e,jM)=>{"use strict";var wQ=process.platform==="win32";function BQ(r,e){return Object.assign(new Error(`${e} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${r.command}`,path:r.command,spawnargs:r.args})}function Xge(r,e){if(!wQ)return;let t=r.emit;r.emit=function(i,n){if(i==="exit"){let s=GM(n,e,"spawn");if(s)return t.call(r,"error",s)}return t.apply(r,arguments)}}function GM(r,e){return wQ&&r===1&&!e.file?BQ(e.original,"spawn"):null}function Zge(r,e){return wQ&&r===1&&!e.file?BQ(e.original,"spawnSync"):null}jM.exports={hookChildProcess:Xge,verifyENOENT:GM,verifyENOENTSync:Zge,notFoundError:BQ}});var SQ=w((d7e,Zu)=>{"use strict";var qM=require("child_process"),bQ=HM(),QQ=YM();function JM(r,e,t){let i=bQ(r,e,t),n=qM.spawn(i.command,i.args,i.options);return QQ.hookChildProcess(n,i),n}function $ge(r,e,t){let i=bQ(r,e,t),n=qM.spawnSync(i.command,i.args,i.options);return n.error=n.error||QQ.verifyENOENTSync(n.status,i),n}Zu.exports=JM;Zu.exports.spawn=JM;Zu.exports.sync=$ge;Zu.exports._parse=bQ;Zu.exports._enoent=QQ});var zM=w((C7e,WM)=>{"use strict";function efe(r,e){function t(){this.constructor=r}t.prototype=e.prototype,r.prototype=new t}function cc(r,e,t,i){this.message=r,this.expected=e,this.found=t,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,cc)}efe(cc,Error);cc.buildMessage=function(r,e){var t={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g0){for(g=1,f=1;g>",le=me(">>",!1),fe=">&",gt=me(">&",!1),Ht=">",Mt=me(">",!1),Ei="<<<",jt=me("<<<",!1),Qr="<&",Oi=me("<&",!1),Xs="<",Un=me("<",!1),Hn=function(C){return{type:"argument",segments:[].concat(...C)}},Sr=function(C){return C},jn="$'",fs=me("$'",!1),ba="'",DA=me("'",!1),Nu=function(C){return[{type:"text",text:C}]},hs='""',RA=me('""',!1),Qa=function(){return{type:"text",text:""}},Lu='"',FA=me('"',!1),NA=function(C){return C},vr=function(C){return{type:"arithmetic",arithmetic:C,quoted:!0}},zl=function(C){return{type:"shell",shell:C,quoted:!0}},Tu=function(C){return te(N({type:"variable"},C),{quoted:!0})},xo=function(C){return{type:"text",text:C}},Ou=function(C){return{type:"arithmetic",arithmetic:C,quoted:!1}},Sh=function(C){return{type:"shell",shell:C,quoted:!1}},vh=function(C){return te(N({type:"variable"},C),{quoted:!1})},Dr=function(C){return{type:"glob",pattern:C}},Ae=/^[^']/,ko=_e(["'"],!0,!1),Gn=function(C){return C.join("")},Mu=/^[^$"]/,St=_e(["$",'"'],!0,!1),_l=`\\ +`,Yn=me(`\\ +`,!1),ps=function(){return""},ds="\\",pt=me("\\",!1),Po=/^[\\$"`]/,lt=_e(["\\","$",'"',"`"],!1,!1),mn=function(C){return C},S="\\a",Tt=me("\\a",!1),Ku=function(){return"a"},Vl="\\b",xh=me("\\b",!1),kh=function(){return"\b"},Ph=/^[Ee]/,Dh=_e(["E","e"],!1,!1),Rh=function(){return""},j="\\f",wt=me("\\f",!1),LA=function(){return"\f"},$i="\\n",Xl=me("\\n",!1),$e=function(){return` +`},Sa="\\r",Uu=me("\\r",!1),yE=function(){return"\r"},Fh="\\t",wE=me("\\t",!1),gr=function(){return" "},qn="\\v",Zl=me("\\v",!1),Nh=function(){return"\v"},Zs=/^[\\'"?]/,va=_e(["\\","'",'"',"?"],!1,!1),En=function(C){return String.fromCharCode(parseInt(C,16))},Oe="\\x",Hu=me("\\x",!1),$l="\\u",$s=me("\\u",!1),ec="\\U",TA=me("\\U",!1),ju=function(C){return String.fromCodePoint(parseInt(C,16))},Gu=/^[0-7]/,xa=_e([["0","7"]],!1,!1),ka=/^[0-9a-fA-f]/,nt=_e([["0","9"],["a","f"],["A","f"]],!1,!1),Do=ot(),OA="-",tc=me("-",!1),eo="+",rc=me("+",!1),BE=".",Lh=me(".",!1),Yu=function(C,Q,F){return{type:"number",value:(C==="-"?-1:1)*parseFloat(Q.join("")+"."+F.join(""))}},Th=function(C,Q){return{type:"number",value:(C==="-"?-1:1)*parseInt(Q.join(""))}},bE=function(C){return N({type:"variable"},C)},ic=function(C){return{type:"variable",name:C}},QE=function(C){return C},qu="*",MA=me("*",!1),Tr="/",SE=me("/",!1),to=function(C,Q,F){return{type:Q==="*"?"multiplication":"division",right:F}},ro=function(C,Q){return Q.reduce((F,U)=>N({left:F},U),C)},Ju=function(C,Q,F){return{type:Q==="+"?"addition":"subtraction",right:F}},KA="$((",R=me("$((",!1),G="))",Ce=me("))",!1),He=function(C){return C},Te="$(",Xe=me("$(",!1),Et=function(C){return C},Rt="${",Jn=me("${",!1),Ob=":-",lO=me(":-",!1),cO=function(C,Q){return{name:C,defaultValue:Q}},Mb=":-}",uO=me(":-}",!1),gO=function(C){return{name:C,defaultValue:[]}},Kb=":+",fO=me(":+",!1),hO=function(C,Q){return{name:C,alternativeValue:Q}},Ub=":+}",pO=me(":+}",!1),dO=function(C){return{name:C,alternativeValue:[]}},Hb=function(C){return{name:C}},CO="$",mO=me("$",!1),EO=function(C){return e.isGlobPattern(C)},IO=function(C){return C},jb=/^[a-zA-Z0-9_]/,Gb=_e([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),Yb=function(){return M()},qb=/^[$@*?#a-zA-Z0-9_\-]/,Jb=_e(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),yO=/^[(){}<>$|&; \t"']/,Wu=_e(["(",")","{","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),Wb=/^[<>&; \t"']/,zb=_e(["<",">","&",";"," "," ",'"',"'"],!1,!1),vE=/^[ \t]/,xE=_e([" "," "],!1,!1),B=0,Ue=0,UA=[{line:1,column:1}],d=0,E=[],I=0,D;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');n=i[e.startRule]}function M(){return r.substring(Ue,B)}function z(){return yt(Ue,B)}function ie(C,Q){throw Q=Q!==void 0?Q:yt(Ue,B),Mi([ut(C)],r.substring(Ue,B),Q)}function we(C,Q){throw Q=Q!==void 0?Q:yt(Ue,B),Wn(C,Q)}function me(C,Q){return{type:"literal",text:C,ignoreCase:Q}}function _e(C,Q,F){return{type:"class",parts:C,inverted:Q,ignoreCase:F}}function ot(){return{type:"any"}}function Bt(){return{type:"end"}}function ut(C){return{type:"other",description:C}}function st(C){var Q=UA[C],F;if(Q)return Q;for(F=C-1;!UA[F];)F--;for(Q=UA[F],Q={line:Q.line,column:Q.column};Fd&&(d=B,E=[]),E.push(C))}function Wn(C,Q){return new cc(C,null,null,Q)}function Mi(C,Q,F){return new cc(cc.buildMessage(C,Q),C,Q,F)}function HA(){var C,Q;return C=B,Q=Yr(),Q===t&&(Q=null),Q!==t&&(Ue=C,Q=s(Q)),C=Q,C}function Yr(){var C,Q,F,U,ue;if(C=B,Q=qr(),Q!==t){for(F=[],U=Ye();U!==t;)F.push(U),U=Ye();F!==t?(U=Pa(),U!==t?(ue=Cs(),ue===t&&(ue=null),ue!==t?(Ue=C,Q=o(Q,U,ue),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t)}else B=C,C=t;if(C===t)if(C=B,Q=qr(),Q!==t){for(F=[],U=Ye();U!==t;)F.push(U),U=Ye();F!==t?(U=Pa(),U===t&&(U=null),U!==t?(Ue=C,Q=a(Q,U),C=Q):(B=C,C=t)):(B=C,C=t)}else B=C,C=t;return C}function Cs(){var C,Q,F,U,ue;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t)if(F=Yr(),F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();U!==t?(Ue=C,Q=l(F),C=Q):(B=C,C=t)}else B=C,C=t;else B=C,C=t;return C}function Pa(){var C;return r.charCodeAt(B)===59?(C=c,B++):(C=t,I===0&&xe(u)),C===t&&(r.charCodeAt(B)===38?(C=g,B++):(C=t,I===0&&xe(f))),C}function qr(){var C,Q,F;return C=B,Q=wO(),Q!==t?(F=Hue(),F===t&&(F=null),F!==t?(Ue=C,Q=h(Q,F),C=Q):(B=C,C=t)):(B=C,C=t),C}function Hue(){var C,Q,F,U,ue,De,Ct;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t)if(F=jue(),F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();if(U!==t)if(ue=qr(),ue!==t){for(De=[],Ct=Ye();Ct!==t;)De.push(Ct),Ct=Ye();De!==t?(Ue=C,Q=p(F,ue),C=Q):(B=C,C=t)}else B=C,C=t;else B=C,C=t}else B=C,C=t;else B=C,C=t;return C}function jue(){var C;return r.substr(B,2)===m?(C=m,B+=2):(C=t,I===0&&xe(y)),C===t&&(r.substr(B,2)===b?(C=b,B+=2):(C=t,I===0&&xe(v))),C}function wO(){var C,Q,F;return C=B,Q=que(),Q!==t?(F=Gue(),F===t&&(F=null),F!==t?(Ue=C,Q=x(Q,F),C=Q):(B=C,C=t)):(B=C,C=t),C}function Gue(){var C,Q,F,U,ue,De,Ct;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t)if(F=Yue(),F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();if(U!==t)if(ue=wO(),ue!==t){for(De=[],Ct=Ye();Ct!==t;)De.push(Ct),Ct=Ye();De!==t?(Ue=C,Q=T(F,ue),C=Q):(B=C,C=t)}else B=C,C=t;else B=C,C=t}else B=C,C=t;else B=C,C=t;return C}function Yue(){var C;return r.substr(B,2)===q?(C=q,B+=2):(C=t,I===0&&xe(Y)),C===t&&(r.charCodeAt(B)===124?(C=$,B++):(C=t,I===0&&xe(_))),C}function kE(){var C,Q,F,U,ue,De;if(C=B,Q=NO(),Q!==t)if(r.charCodeAt(B)===61?(F=ne,B++):(F=t,I===0&&xe(ee)),F!==t)if(U=QO(),U!==t){for(ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();ue!==t?(Ue=C,Q=A(Q,U),C=Q):(B=C,C=t)}else B=C,C=t;else B=C,C=t;else B=C,C=t;if(C===t)if(C=B,Q=NO(),Q!==t)if(r.charCodeAt(B)===61?(F=ne,B++):(F=t,I===0&&xe(ee)),F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();U!==t?(Ue=C,Q=oe(Q),C=Q):(B=C,C=t)}else B=C,C=t;else B=C,C=t;return C}function que(){var C,Q,F,U,ue,De,Ct,bt,$r,Ii,ms;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t)if(r.charCodeAt(B)===40?(F=ce,B++):(F=t,I===0&&xe(Z)),F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();if(U!==t)if(ue=Yr(),ue!==t){for(De=[],Ct=Ye();Ct!==t;)De.push(Ct),Ct=Ye();if(De!==t)if(r.charCodeAt(B)===41?(Ct=O,B++):(Ct=t,I===0&&xe(L)),Ct!==t){for(bt=[],$r=Ye();$r!==t;)bt.push($r),$r=Ye();if(bt!==t){for($r=[],Ii=Oh();Ii!==t;)$r.push(Ii),Ii=Oh();if($r!==t){for(Ii=[],ms=Ye();ms!==t;)Ii.push(ms),ms=Ye();Ii!==t?(Ue=C,Q=de(ue,$r),C=Q):(B=C,C=t)}else B=C,C=t}else B=C,C=t}else B=C,C=t;else B=C,C=t}else B=C,C=t;else B=C,C=t}else B=C,C=t;else B=C,C=t;if(C===t){for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t)if(r.charCodeAt(B)===123?(F=Be,B++):(F=t,I===0&&xe(je)),F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();if(U!==t)if(ue=Yr(),ue!==t){for(De=[],Ct=Ye();Ct!==t;)De.push(Ct),Ct=Ye();if(De!==t)if(r.charCodeAt(B)===125?(Ct=re,B++):(Ct=t,I===0&&xe(se)),Ct!==t){for(bt=[],$r=Ye();$r!==t;)bt.push($r),$r=Ye();if(bt!==t){for($r=[],Ii=Oh();Ii!==t;)$r.push(Ii),Ii=Oh();if($r!==t){for(Ii=[],ms=Ye();ms!==t;)Ii.push(ms),ms=Ye();Ii!==t?(Ue=C,Q=be(ue,$r),C=Q):(B=C,C=t)}else B=C,C=t}else B=C,C=t}else B=C,C=t;else B=C,C=t}else B=C,C=t;else B=C,C=t}else B=C,C=t;else B=C,C=t;if(C===t){for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t){for(F=[],U=kE();U!==t;)F.push(U),U=kE();if(F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();if(U!==t){if(ue=[],De=bO(),De!==t)for(;De!==t;)ue.push(De),De=bO();else ue=t;if(ue!==t){for(De=[],Ct=Ye();Ct!==t;)De.push(Ct),Ct=Ye();De!==t?(Ue=C,Q=he(F,ue),C=Q):(B=C,C=t)}else B=C,C=t}else B=C,C=t}else B=C,C=t}else B=C,C=t;if(C===t){for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t){if(F=[],U=kE(),U!==t)for(;U!==t;)F.push(U),U=kE();else F=t;if(F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();U!==t?(Ue=C,Q=Fe(F),C=Q):(B=C,C=t)}else B=C,C=t}else B=C,C=t}}}return C}function BO(){var C,Q,F,U,ue;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t){if(F=[],U=PE(),U!==t)for(;U!==t;)F.push(U),U=PE();else F=t;if(F!==t){for(U=[],ue=Ye();ue!==t;)U.push(ue),ue=Ye();U!==t?(Ue=C,Q=Ke(F),C=Q):(B=C,C=t)}else B=C,C=t}else B=C,C=t;return C}function bO(){var C,Q,F;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();if(Q!==t?(F=Oh(),F!==t?(Ue=C,Q=ke(F),C=Q):(B=C,C=t)):(B=C,C=t),C===t){for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();Q!==t?(F=PE(),F!==t?(Ue=C,Q=ke(F),C=Q):(B=C,C=t)):(B=C,C=t)}return C}function Oh(){var C,Q,F,U,ue;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();return Q!==t?(ve.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(pe)),F===t&&(F=null),F!==t?(U=Jue(),U!==t?(ue=PE(),ue!==t?(Ue=C,Q=V(F,U,ue),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C}function Jue(){var C;return r.substr(B,2)===Qe?(C=Qe,B+=2):(C=t,I===0&&xe(le)),C===t&&(r.substr(B,2)===fe?(C=fe,B+=2):(C=t,I===0&&xe(gt)),C===t&&(r.charCodeAt(B)===62?(C=Ht,B++):(C=t,I===0&&xe(Mt)),C===t&&(r.substr(B,3)===Ei?(C=Ei,B+=3):(C=t,I===0&&xe(jt)),C===t&&(r.substr(B,2)===Qr?(C=Qr,B+=2):(C=t,I===0&&xe(Oi)),C===t&&(r.charCodeAt(B)===60?(C=Xs,B++):(C=t,I===0&&xe(Un))))))),C}function PE(){var C,Q,F;for(C=B,Q=[],F=Ye();F!==t;)Q.push(F),F=Ye();return Q!==t?(F=QO(),F!==t?(Ue=C,Q=ke(F),C=Q):(B=C,C=t)):(B=C,C=t),C}function QO(){var C,Q,F;if(C=B,Q=[],F=SO(),F!==t)for(;F!==t;)Q.push(F),F=SO();else Q=t;return Q!==t&&(Ue=C,Q=Hn(Q)),C=Q,C}function SO(){var C,Q;return C=B,Q=Wue(),Q!==t&&(Ue=C,Q=Sr(Q)),C=Q,C===t&&(C=B,Q=zue(),Q!==t&&(Ue=C,Q=Sr(Q)),C=Q,C===t&&(C=B,Q=_ue(),Q!==t&&(Ue=C,Q=Sr(Q)),C=Q,C===t&&(C=B,Q=Vue(),Q!==t&&(Ue=C,Q=Sr(Q)),C=Q))),C}function Wue(){var C,Q,F,U;return C=B,r.substr(B,2)===jn?(Q=jn,B+=2):(Q=t,I===0&&xe(fs)),Q!==t?(F=$ue(),F!==t?(r.charCodeAt(B)===39?(U=ba,B++):(U=t,I===0&&xe(DA)),U!==t?(Ue=C,Q=Nu(F),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C}function zue(){var C,Q,F,U;return C=B,r.charCodeAt(B)===39?(Q=ba,B++):(Q=t,I===0&&xe(DA)),Q!==t?(F=Xue(),F!==t?(r.charCodeAt(B)===39?(U=ba,B++):(U=t,I===0&&xe(DA)),U!==t?(Ue=C,Q=Nu(F),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C}function _ue(){var C,Q,F,U;if(C=B,r.substr(B,2)===hs?(Q=hs,B+=2):(Q=t,I===0&&xe(RA)),Q!==t&&(Ue=C,Q=Qa()),C=Q,C===t)if(C=B,r.charCodeAt(B)===34?(Q=Lu,B++):(Q=t,I===0&&xe(FA)),Q!==t){for(F=[],U=vO();U!==t;)F.push(U),U=vO();F!==t?(r.charCodeAt(B)===34?(U=Lu,B++):(U=t,I===0&&xe(FA)),U!==t?(Ue=C,Q=NA(F),C=Q):(B=C,C=t)):(B=C,C=t)}else B=C,C=t;return C}function Vue(){var C,Q,F;if(C=B,Q=[],F=xO(),F!==t)for(;F!==t;)Q.push(F),F=xO();else Q=t;return Q!==t&&(Ue=C,Q=NA(Q)),C=Q,C}function vO(){var C,Q;return C=B,Q=RO(),Q!==t&&(Ue=C,Q=vr(Q)),C=Q,C===t&&(C=B,Q=FO(),Q!==t&&(Ue=C,Q=zl(Q)),C=Q,C===t&&(C=B,Q=Zb(),Q!==t&&(Ue=C,Q=Tu(Q)),C=Q,C===t&&(C=B,Q=Zue(),Q!==t&&(Ue=C,Q=xo(Q)),C=Q))),C}function xO(){var C,Q;return C=B,Q=RO(),Q!==t&&(Ue=C,Q=Ou(Q)),C=Q,C===t&&(C=B,Q=FO(),Q!==t&&(Ue=C,Q=Sh(Q)),C=Q,C===t&&(C=B,Q=Zb(),Q!==t&&(Ue=C,Q=vh(Q)),C=Q,C===t&&(C=B,Q=rge(),Q!==t&&(Ue=C,Q=Dr(Q)),C=Q,C===t&&(C=B,Q=tge(),Q!==t&&(Ue=C,Q=xo(Q)),C=Q)))),C}function Xue(){var C,Q,F;for(C=B,Q=[],Ae.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(ko));F!==t;)Q.push(F),Ae.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(ko));return Q!==t&&(Ue=C,Q=Gn(Q)),C=Q,C}function Zue(){var C,Q,F;if(C=B,Q=[],F=kO(),F===t&&(Mu.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(St))),F!==t)for(;F!==t;)Q.push(F),F=kO(),F===t&&(Mu.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(St)));else Q=t;return Q!==t&&(Ue=C,Q=Gn(Q)),C=Q,C}function kO(){var C,Q,F;return C=B,r.substr(B,2)===_l?(Q=_l,B+=2):(Q=t,I===0&&xe(Yn)),Q!==t&&(Ue=C,Q=ps()),C=Q,C===t&&(C=B,r.charCodeAt(B)===92?(Q=ds,B++):(Q=t,I===0&&xe(pt)),Q!==t?(Po.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(lt)),F!==t?(Ue=C,Q=mn(F),C=Q):(B=C,C=t)):(B=C,C=t)),C}function $ue(){var C,Q,F;for(C=B,Q=[],F=PO(),F===t&&(Ae.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(ko)));F!==t;)Q.push(F),F=PO(),F===t&&(Ae.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(ko)));return Q!==t&&(Ue=C,Q=Gn(Q)),C=Q,C}function PO(){var C,Q,F;return C=B,r.substr(B,2)===S?(Q=S,B+=2):(Q=t,I===0&&xe(Tt)),Q!==t&&(Ue=C,Q=Ku()),C=Q,C===t&&(C=B,r.substr(B,2)===Vl?(Q=Vl,B+=2):(Q=t,I===0&&xe(xh)),Q!==t&&(Ue=C,Q=kh()),C=Q,C===t&&(C=B,r.charCodeAt(B)===92?(Q=ds,B++):(Q=t,I===0&&xe(pt)),Q!==t?(Ph.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(Dh)),F!==t?(Ue=C,Q=Rh(),C=Q):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===j?(Q=j,B+=2):(Q=t,I===0&&xe(wt)),Q!==t&&(Ue=C,Q=LA()),C=Q,C===t&&(C=B,r.substr(B,2)===$i?(Q=$i,B+=2):(Q=t,I===0&&xe(Xl)),Q!==t&&(Ue=C,Q=$e()),C=Q,C===t&&(C=B,r.substr(B,2)===Sa?(Q=Sa,B+=2):(Q=t,I===0&&xe(Uu)),Q!==t&&(Ue=C,Q=yE()),C=Q,C===t&&(C=B,r.substr(B,2)===Fh?(Q=Fh,B+=2):(Q=t,I===0&&xe(wE)),Q!==t&&(Ue=C,Q=gr()),C=Q,C===t&&(C=B,r.substr(B,2)===qn?(Q=qn,B+=2):(Q=t,I===0&&xe(Zl)),Q!==t&&(Ue=C,Q=Nh()),C=Q,C===t&&(C=B,r.charCodeAt(B)===92?(Q=ds,B++):(Q=t,I===0&&xe(pt)),Q!==t?(Zs.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(va)),F!==t?(Ue=C,Q=mn(F),C=Q):(B=C,C=t)):(B=C,C=t),C===t&&(C=ege()))))))))),C}function ege(){var C,Q,F,U,ue,De,Ct,bt,$r,Ii,ms,$b;return C=B,r.charCodeAt(B)===92?(Q=ds,B++):(Q=t,I===0&&xe(pt)),Q!==t?(F=_b(),F!==t?(Ue=C,Q=En(F),C=Q):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===Oe?(Q=Oe,B+=2):(Q=t,I===0&&xe(Hu)),Q!==t?(F=B,U=B,ue=_b(),ue!==t?(De=zn(),De!==t?(ue=[ue,De],U=ue):(B=U,U=t)):(B=U,U=t),U===t&&(U=_b()),U!==t?F=r.substring(F,B):F=U,F!==t?(Ue=C,Q=En(F),C=Q):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===$l?(Q=$l,B+=2):(Q=t,I===0&&xe($s)),Q!==t?(F=B,U=B,ue=zn(),ue!==t?(De=zn(),De!==t?(Ct=zn(),Ct!==t?(bt=zn(),bt!==t?(ue=[ue,De,Ct,bt],U=ue):(B=U,U=t)):(B=U,U=t)):(B=U,U=t)):(B=U,U=t),U!==t?F=r.substring(F,B):F=U,F!==t?(Ue=C,Q=En(F),C=Q):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===ec?(Q=ec,B+=2):(Q=t,I===0&&xe(TA)),Q!==t?(F=B,U=B,ue=zn(),ue!==t?(De=zn(),De!==t?(Ct=zn(),Ct!==t?(bt=zn(),bt!==t?($r=zn(),$r!==t?(Ii=zn(),Ii!==t?(ms=zn(),ms!==t?($b=zn(),$b!==t?(ue=[ue,De,Ct,bt,$r,Ii,ms,$b],U=ue):(B=U,U=t)):(B=U,U=t)):(B=U,U=t)):(B=U,U=t)):(B=U,U=t)):(B=U,U=t)):(B=U,U=t)):(B=U,U=t),U!==t?F=r.substring(F,B):F=U,F!==t?(Ue=C,Q=ju(F),C=Q):(B=C,C=t)):(B=C,C=t)))),C}function _b(){var C;return Gu.test(r.charAt(B))?(C=r.charAt(B),B++):(C=t,I===0&&xe(xa)),C}function zn(){var C;return ka.test(r.charAt(B))?(C=r.charAt(B),B++):(C=t,I===0&&xe(nt)),C}function tge(){var C,Q,F,U,ue;if(C=B,Q=[],F=B,r.charCodeAt(B)===92?(U=ds,B++):(U=t,I===0&&xe(pt)),U!==t?(r.length>B?(ue=r.charAt(B),B++):(ue=t,I===0&&xe(Do)),ue!==t?(Ue=F,U=mn(ue),F=U):(B=F,F=t)):(B=F,F=t),F===t&&(F=B,U=B,I++,ue=LO(),I--,ue===t?U=void 0:(B=U,U=t),U!==t?(r.length>B?(ue=r.charAt(B),B++):(ue=t,I===0&&xe(Do)),ue!==t?(Ue=F,U=mn(ue),F=U):(B=F,F=t)):(B=F,F=t)),F!==t)for(;F!==t;)Q.push(F),F=B,r.charCodeAt(B)===92?(U=ds,B++):(U=t,I===0&&xe(pt)),U!==t?(r.length>B?(ue=r.charAt(B),B++):(ue=t,I===0&&xe(Do)),ue!==t?(Ue=F,U=mn(ue),F=U):(B=F,F=t)):(B=F,F=t),F===t&&(F=B,U=B,I++,ue=LO(),I--,ue===t?U=void 0:(B=U,U=t),U!==t?(r.length>B?(ue=r.charAt(B),B++):(ue=t,I===0&&xe(Do)),ue!==t?(Ue=F,U=mn(ue),F=U):(B=F,F=t)):(B=F,F=t));else Q=t;return Q!==t&&(Ue=C,Q=Gn(Q)),C=Q,C}function Vb(){var C,Q,F,U,ue,De;if(C=B,r.charCodeAt(B)===45?(Q=OA,B++):(Q=t,I===0&&xe(tc)),Q===t&&(r.charCodeAt(B)===43?(Q=eo,B++):(Q=t,I===0&&xe(rc))),Q===t&&(Q=null),Q!==t){if(F=[],ve.test(r.charAt(B))?(U=r.charAt(B),B++):(U=t,I===0&&xe(pe)),U!==t)for(;U!==t;)F.push(U),ve.test(r.charAt(B))?(U=r.charAt(B),B++):(U=t,I===0&&xe(pe));else F=t;if(F!==t)if(r.charCodeAt(B)===46?(U=BE,B++):(U=t,I===0&&xe(Lh)),U!==t){if(ue=[],ve.test(r.charAt(B))?(De=r.charAt(B),B++):(De=t,I===0&&xe(pe)),De!==t)for(;De!==t;)ue.push(De),ve.test(r.charAt(B))?(De=r.charAt(B),B++):(De=t,I===0&&xe(pe));else ue=t;ue!==t?(Ue=C,Q=Yu(Q,F,ue),C=Q):(B=C,C=t)}else B=C,C=t;else B=C,C=t}else B=C,C=t;if(C===t){if(C=B,r.charCodeAt(B)===45?(Q=OA,B++):(Q=t,I===0&&xe(tc)),Q===t&&(r.charCodeAt(B)===43?(Q=eo,B++):(Q=t,I===0&&xe(rc))),Q===t&&(Q=null),Q!==t){if(F=[],ve.test(r.charAt(B))?(U=r.charAt(B),B++):(U=t,I===0&&xe(pe)),U!==t)for(;U!==t;)F.push(U),ve.test(r.charAt(B))?(U=r.charAt(B),B++):(U=t,I===0&&xe(pe));else F=t;F!==t?(Ue=C,Q=Th(Q,F),C=Q):(B=C,C=t)}else B=C,C=t;if(C===t&&(C=B,Q=Zb(),Q!==t&&(Ue=C,Q=bE(Q)),C=Q,C===t&&(C=B,Q=nc(),Q!==t&&(Ue=C,Q=ic(Q)),C=Q,C===t)))if(C=B,r.charCodeAt(B)===40?(Q=ce,B++):(Q=t,I===0&&xe(Z)),Q!==t){for(F=[],U=Ye();U!==t;)F.push(U),U=Ye();if(F!==t)if(U=DO(),U!==t){for(ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();ue!==t?(r.charCodeAt(B)===41?(De=O,B++):(De=t,I===0&&xe(L)),De!==t?(Ue=C,Q=QE(U),C=Q):(B=C,C=t)):(B=C,C=t)}else B=C,C=t;else B=C,C=t}else B=C,C=t}return C}function Xb(){var C,Q,F,U,ue,De,Ct,bt;if(C=B,Q=Vb(),Q!==t){for(F=[],U=B,ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();if(ue!==t)if(r.charCodeAt(B)===42?(De=qu,B++):(De=t,I===0&&xe(MA)),De===t&&(r.charCodeAt(B)===47?(De=Tr,B++):(De=t,I===0&&xe(SE))),De!==t){for(Ct=[],bt=Ye();bt!==t;)Ct.push(bt),bt=Ye();Ct!==t?(bt=Vb(),bt!==t?(Ue=U,ue=to(Q,De,bt),U=ue):(B=U,U=t)):(B=U,U=t)}else B=U,U=t;else B=U,U=t;for(;U!==t;){for(F.push(U),U=B,ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();if(ue!==t)if(r.charCodeAt(B)===42?(De=qu,B++):(De=t,I===0&&xe(MA)),De===t&&(r.charCodeAt(B)===47?(De=Tr,B++):(De=t,I===0&&xe(SE))),De!==t){for(Ct=[],bt=Ye();bt!==t;)Ct.push(bt),bt=Ye();Ct!==t?(bt=Vb(),bt!==t?(Ue=U,ue=to(Q,De,bt),U=ue):(B=U,U=t)):(B=U,U=t)}else B=U,U=t;else B=U,U=t}F!==t?(Ue=C,Q=ro(Q,F),C=Q):(B=C,C=t)}else B=C,C=t;return C}function DO(){var C,Q,F,U,ue,De,Ct,bt;if(C=B,Q=Xb(),Q!==t){for(F=[],U=B,ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();if(ue!==t)if(r.charCodeAt(B)===43?(De=eo,B++):(De=t,I===0&&xe(rc)),De===t&&(r.charCodeAt(B)===45?(De=OA,B++):(De=t,I===0&&xe(tc))),De!==t){for(Ct=[],bt=Ye();bt!==t;)Ct.push(bt),bt=Ye();Ct!==t?(bt=Xb(),bt!==t?(Ue=U,ue=Ju(Q,De,bt),U=ue):(B=U,U=t)):(B=U,U=t)}else B=U,U=t;else B=U,U=t;for(;U!==t;){for(F.push(U),U=B,ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();if(ue!==t)if(r.charCodeAt(B)===43?(De=eo,B++):(De=t,I===0&&xe(rc)),De===t&&(r.charCodeAt(B)===45?(De=OA,B++):(De=t,I===0&&xe(tc))),De!==t){for(Ct=[],bt=Ye();bt!==t;)Ct.push(bt),bt=Ye();Ct!==t?(bt=Xb(),bt!==t?(Ue=U,ue=Ju(Q,De,bt),U=ue):(B=U,U=t)):(B=U,U=t)}else B=U,U=t;else B=U,U=t}F!==t?(Ue=C,Q=ro(Q,F),C=Q):(B=C,C=t)}else B=C,C=t;return C}function RO(){var C,Q,F,U,ue,De;if(C=B,r.substr(B,3)===KA?(Q=KA,B+=3):(Q=t,I===0&&xe(R)),Q!==t){for(F=[],U=Ye();U!==t;)F.push(U),U=Ye();if(F!==t)if(U=DO(),U!==t){for(ue=[],De=Ye();De!==t;)ue.push(De),De=Ye();ue!==t?(r.substr(B,2)===G?(De=G,B+=2):(De=t,I===0&&xe(Ce)),De!==t?(Ue=C,Q=He(U),C=Q):(B=C,C=t)):(B=C,C=t)}else B=C,C=t;else B=C,C=t}else B=C,C=t;return C}function FO(){var C,Q,F,U;return C=B,r.substr(B,2)===Te?(Q=Te,B+=2):(Q=t,I===0&&xe(Xe)),Q!==t?(F=Yr(),F!==t?(r.charCodeAt(B)===41?(U=O,B++):(U=t,I===0&&xe(L)),U!==t?(Ue=C,Q=Et(F),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C}function Zb(){var C,Q,F,U,ue,De;return C=B,r.substr(B,2)===Rt?(Q=Rt,B+=2):(Q=t,I===0&&xe(Jn)),Q!==t?(F=nc(),F!==t?(r.substr(B,2)===Ob?(U=Ob,B+=2):(U=t,I===0&&xe(lO)),U!==t?(ue=BO(),ue!==t?(r.charCodeAt(B)===125?(De=re,B++):(De=t,I===0&&xe(se)),De!==t?(Ue=C,Q=cO(F,ue),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===Rt?(Q=Rt,B+=2):(Q=t,I===0&&xe(Jn)),Q!==t?(F=nc(),F!==t?(r.substr(B,3)===Mb?(U=Mb,B+=3):(U=t,I===0&&xe(uO)),U!==t?(Ue=C,Q=gO(F),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===Rt?(Q=Rt,B+=2):(Q=t,I===0&&xe(Jn)),Q!==t?(F=nc(),F!==t?(r.substr(B,2)===Kb?(U=Kb,B+=2):(U=t,I===0&&xe(fO)),U!==t?(ue=BO(),ue!==t?(r.charCodeAt(B)===125?(De=re,B++):(De=t,I===0&&xe(se)),De!==t?(Ue=C,Q=hO(F,ue),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===Rt?(Q=Rt,B+=2):(Q=t,I===0&&xe(Jn)),Q!==t?(F=nc(),F!==t?(r.substr(B,3)===Ub?(U=Ub,B+=3):(U=t,I===0&&xe(pO)),U!==t?(Ue=C,Q=dO(F),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.substr(B,2)===Rt?(Q=Rt,B+=2):(Q=t,I===0&&xe(Jn)),Q!==t?(F=nc(),F!==t?(r.charCodeAt(B)===125?(U=re,B++):(U=t,I===0&&xe(se)),U!==t?(Ue=C,Q=Hb(F),C=Q):(B=C,C=t)):(B=C,C=t)):(B=C,C=t),C===t&&(C=B,r.charCodeAt(B)===36?(Q=CO,B++):(Q=t,I===0&&xe(mO)),Q!==t?(F=nc(),F!==t?(Ue=C,Q=Hb(F),C=Q):(B=C,C=t)):(B=C,C=t)))))),C}function rge(){var C,Q,F;return C=B,Q=ige(),Q!==t?(Ue=B,F=EO(Q),F?F=void 0:F=t,F!==t?(Ue=C,Q=IO(Q),C=Q):(B=C,C=t)):(B=C,C=t),C}function ige(){var C,Q,F,U,ue;if(C=B,Q=[],F=B,U=B,I++,ue=TO(),I--,ue===t?U=void 0:(B=U,U=t),U!==t?(r.length>B?(ue=r.charAt(B),B++):(ue=t,I===0&&xe(Do)),ue!==t?(Ue=F,U=mn(ue),F=U):(B=F,F=t)):(B=F,F=t),F!==t)for(;F!==t;)Q.push(F),F=B,U=B,I++,ue=TO(),I--,ue===t?U=void 0:(B=U,U=t),U!==t?(r.length>B?(ue=r.charAt(B),B++):(ue=t,I===0&&xe(Do)),ue!==t?(Ue=F,U=mn(ue),F=U):(B=F,F=t)):(B=F,F=t);else Q=t;return Q!==t&&(Ue=C,Q=Gn(Q)),C=Q,C}function NO(){var C,Q,F;if(C=B,Q=[],jb.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(Gb)),F!==t)for(;F!==t;)Q.push(F),jb.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(Gb));else Q=t;return Q!==t&&(Ue=C,Q=Yb()),C=Q,C}function nc(){var C,Q,F;if(C=B,Q=[],qb.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(Jb)),F!==t)for(;F!==t;)Q.push(F),qb.test(r.charAt(B))?(F=r.charAt(B),B++):(F=t,I===0&&xe(Jb));else Q=t;return Q!==t&&(Ue=C,Q=Yb()),C=Q,C}function LO(){var C;return yO.test(r.charAt(B))?(C=r.charAt(B),B++):(C=t,I===0&&xe(Wu)),C}function TO(){var C;return Wb.test(r.charAt(B))?(C=r.charAt(B),B++):(C=t,I===0&&xe(zb)),C}function Ye(){var C,Q;if(C=[],vE.test(r.charAt(B))?(Q=r.charAt(B),B++):(Q=t,I===0&&xe(xE)),Q!==t)for(;Q!==t;)C.push(Q),vE.test(r.charAt(B))?(Q=r.charAt(B),B++):(Q=t,I===0&&xe(xE));else C=t;return C}if(D=n(),D!==t&&B===r.length)return D;throw D!==t&&B{"use strict";function rfe(r,e){function t(){this.constructor=r}t.prototype=e.prototype,r.prototype=new t}function gc(r,e,t,i){this.message=r,this.expected=e,this.found=t,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,gc)}rfe(gc,Error);gc.buildMessage=function(r,e){var t={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g0){for(g=1,f=1;gq&&(q=v,Y=[]),Y.push(pe))}function se(pe,V){return new gc(pe,null,null,V)}function be(pe,V,Qe){return new gc(gc.buildMessage(pe,V),pe,V,Qe)}function he(){var pe,V,Qe,le;return pe=v,V=Fe(),V!==t?(r.charCodeAt(v)===47?(Qe=s,v++):(Qe=t,$===0&&re(o)),Qe!==t?(le=Fe(),le!==t?(x=pe,V=a(V,le),pe=V):(v=pe,pe=t)):(v=pe,pe=t)):(v=pe,pe=t),pe===t&&(pe=v,V=Fe(),V!==t&&(x=pe,V=l(V)),pe=V),pe}function Fe(){var pe,V,Qe,le;return pe=v,V=Ke(),V!==t?(r.charCodeAt(v)===64?(Qe=c,v++):(Qe=t,$===0&&re(u)),Qe!==t?(le=ve(),le!==t?(x=pe,V=g(V,le),pe=V):(v=pe,pe=t)):(v=pe,pe=t)):(v=pe,pe=t),pe===t&&(pe=v,V=Ke(),V!==t&&(x=pe,V=f(V)),pe=V),pe}function Ke(){var pe,V,Qe,le,fe;return pe=v,r.charCodeAt(v)===64?(V=c,v++):(V=t,$===0&&re(u)),V!==t?(Qe=ke(),Qe!==t?(r.charCodeAt(v)===47?(le=s,v++):(le=t,$===0&&re(o)),le!==t?(fe=ke(),fe!==t?(x=pe,V=h(),pe=V):(v=pe,pe=t)):(v=pe,pe=t)):(v=pe,pe=t)):(v=pe,pe=t),pe===t&&(pe=v,V=ke(),V!==t&&(x=pe,V=h()),pe=V),pe}function ke(){var pe,V,Qe;if(pe=v,V=[],p.test(r.charAt(v))?(Qe=r.charAt(v),v++):(Qe=t,$===0&&re(m)),Qe!==t)for(;Qe!==t;)V.push(Qe),p.test(r.charAt(v))?(Qe=r.charAt(v),v++):(Qe=t,$===0&&re(m));else V=t;return V!==t&&(x=pe,V=h()),pe=V,pe}function ve(){var pe,V,Qe;if(pe=v,V=[],y.test(r.charAt(v))?(Qe=r.charAt(v),v++):(Qe=t,$===0&&re(b)),Qe!==t)for(;Qe!==t;)V.push(Qe),y.test(r.charAt(v))?(Qe=r.charAt(v),v++):(Qe=t,$===0&&re(b));else V=t;return V!==t&&(x=pe,V=h()),pe=V,pe}if(_=n(),_!==t&&v===r.length)return _;throw _!==t&&v{"use strict";function $M(r){return typeof r=="undefined"||r===null}function nfe(r){return typeof r=="object"&&r!==null}function sfe(r){return Array.isArray(r)?r:$M(r)?[]:[r]}function ofe(r,e){var t,i,n,s;if(e)for(s=Object.keys(e),t=0,i=s.length;t{"use strict";function ep(r,e){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ep.prototype=Object.create(Error.prototype);ep.prototype.constructor=ep;ep.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t};e1.exports=ep});var i1=w((L7e,t1)=>{"use strict";var r1=hc();function RQ(r,e,t,i,n){this.name=r,this.buffer=e,this.position=t,this.line=i,this.column=n}RQ.prototype.getSnippet=function(e,t){var i,n,s,o,a;if(!this.buffer)return null;for(e=e||4,t=t||75,i="",n=this.position;n>0&&`\0\r +\x85\u2028\u2029`.indexOf(this.buffer.charAt(n-1))===-1;)if(n-=1,this.position-n>t/2-1){i=" ... ",n+=5;break}for(s="",o=this.position;ot/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(n,o),r1.repeat(" ",e)+i+a+s+` +`+r1.repeat(" ",e+this.position-n+i.length)+"^"};RQ.prototype.toString=function(e){var t,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet(),t&&(i+=`: +`+t)),i};t1.exports=RQ});var ci=w((T7e,n1)=>{"use strict";var s1=tg(),lfe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],cfe=["scalar","sequence","mapping"];function ufe(r){var e={};return r!==null&&Object.keys(r).forEach(function(t){r[t].forEach(function(i){e[String(i)]=t})}),e}function gfe(r,e){if(e=e||{},Object.keys(e).forEach(function(t){if(lfe.indexOf(t)===-1)throw new s1('Unknown option "'+t+'" is met in definition of "'+r+'" YAML type.')}),this.tag=r,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=ufe(e.styleAliases||null),cfe.indexOf(this.kind)===-1)throw new s1('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}n1.exports=gfe});var pc=w((O7e,o1)=>{"use strict";var a1=hc(),tI=tg(),ffe=ci();function FQ(r,e,t){var i=[];return r.include.forEach(function(n){t=FQ(n,e,t)}),r[e].forEach(function(n){t.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&i.push(o)}),t.push(n)}),t.filter(function(n,s){return i.indexOf(s)===-1})}function hfe(){var r={scalar:{},sequence:{},mapping:{},fallback:{}},e,t;function i(n){r[n.kind][n.tag]=r.fallback[n.tag]=n}for(e=0,t=arguments.length;e{"use strict";var pfe=ci();A1.exports=new pfe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})});var u1=w((K7e,c1)=>{"use strict";var dfe=ci();c1.exports=new dfe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})});var f1=w((U7e,g1)=>{"use strict";var Cfe=ci();g1.exports=new Cfe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})});var rI=w((H7e,h1)=>{"use strict";var mfe=pc();h1.exports=new mfe({explicit:[l1(),u1(),f1()]})});var d1=w((j7e,p1)=>{"use strict";var Efe=ci();function Ife(r){if(r===null)return!0;var e=r.length;return e===1&&r==="~"||e===4&&(r==="null"||r==="Null"||r==="NULL")}function yfe(){return null}function wfe(r){return r===null}p1.exports=new Efe("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ife,construct:yfe,predicate:wfe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var m1=w((G7e,C1)=>{"use strict";var Bfe=ci();function bfe(r){if(r===null)return!1;var e=r.length;return e===4&&(r==="true"||r==="True"||r==="TRUE")||e===5&&(r==="false"||r==="False"||r==="FALSE")}function Qfe(r){return r==="true"||r==="True"||r==="TRUE"}function Sfe(r){return Object.prototype.toString.call(r)==="[object Boolean]"}C1.exports=new Bfe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:bfe,construct:Qfe,predicate:Sfe,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})});var I1=w((Y7e,E1)=>{"use strict";var vfe=hc(),xfe=ci();function kfe(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function Pfe(r){return 48<=r&&r<=55}function Dfe(r){return 48<=r&&r<=57}function Rfe(r){if(r===null)return!1;var e=r.length,t=0,i=!1,n;if(!e)return!1;if(n=r[t],(n==="-"||n==="+")&&(n=r[++t]),n==="0"){if(t+1===e)return!0;if(n=r[++t],n==="b"){for(t++;t=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var B1=w((q7e,y1)=>{"use strict";var w1=hc(),Lfe=ci(),Tfe=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ofe(r){return!(r===null||!Tfe.test(r)||r[r.length-1]==="_")}function Mfe(r){var e,t,i,n;return e=r.replace(/_/g,"").toLowerCase(),t=e[0]==="-"?-1:1,n=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(s){n.unshift(parseFloat(s,10))}),e=0,i=1,n.forEach(function(s){e+=s*i,i*=60}),t*e):t*parseFloat(e,10)}var Kfe=/^[-+]?[0-9]+e/;function Ufe(r,e){var t;if(isNaN(r))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===r)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===r)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w1.isNegativeZero(r))return"-0.0";return t=r.toString(10),Kfe.test(t)?t.replace("e",".e"):t}function Hfe(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!=0||w1.isNegativeZero(r))}y1.exports=new Lfe("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ofe,construct:Mfe,predicate:Hfe,represent:Ufe,defaultStyle:"lowercase"})});var NQ=w((J7e,b1)=>{"use strict";var jfe=pc();b1.exports=new jfe({include:[rI()],implicit:[d1(),m1(),I1(),B1()]})});var LQ=w((W7e,Q1)=>{"use strict";var Gfe=pc();Q1.exports=new Gfe({include:[NQ()]})});var k1=w((z7e,S1)=>{"use strict";var Yfe=ci(),v1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qfe(r){return r===null?!1:v1.exec(r)!==null||x1.exec(r)!==null}function Jfe(r){var e,t,i,n,s,o,a,l=0,c=null,u,g,f;if(e=v1.exec(r),e===null&&(e=x1.exec(r)),e===null)throw new Error("Date resolve error");if(t=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(t,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],g=+(e[11]||0),c=(u*60+g)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(t,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function Wfe(r){return r.toISOString()}S1.exports=new Yfe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qfe,construct:Jfe,instanceOf:Date,represent:Wfe})});var D1=w((_7e,P1)=>{"use strict";var zfe=ci();function _fe(r){return r==="<<"||r===null}P1.exports=new zfe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_fe})});var N1=w((V7e,R1)=>{"use strict";var dc;try{F1=require,dc=F1("buffer").Buffer}catch(r){}var F1,Vfe=ci(),TQ=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Xfe(r){if(r===null)return!1;var e,t,i=0,n=r.length,s=TQ;for(t=0;t64)){if(e<0)return!1;i+=6}return i%8==0}function Zfe(r){var e,t,i=r.replace(/[\r\n=]/g,""),n=i.length,s=TQ,o=0,a=[];for(e=0;e>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return t=n%4*6,t===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):t===18?(a.push(o>>10&255),a.push(o>>2&255)):t===12&&a.push(o>>4&255),dc?dc.from?dc.from(a):new dc(a):a}function $fe(r){var e="",t=0,i,n,s=r.length,o=TQ;for(i=0;i>18&63],e+=o[t>>12&63],e+=o[t>>6&63],e+=o[t&63]),t=(t<<8)+r[i];return n=s%3,n===0?(e+=o[t>>18&63],e+=o[t>>12&63],e+=o[t>>6&63],e+=o[t&63]):n===2?(e+=o[t>>10&63],e+=o[t>>4&63],e+=o[t<<2&63],e+=o[64]):n===1&&(e+=o[t>>2&63],e+=o[t<<4&63],e+=o[64],e+=o[64]),e}function ehe(r){return dc&&dc.isBuffer(r)}R1.exports=new Vfe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Xfe,construct:Zfe,predicate:ehe,represent:$fe})});var T1=w((X7e,L1)=>{"use strict";var the=ci(),rhe=Object.prototype.hasOwnProperty,ihe=Object.prototype.toString;function nhe(r){if(r===null)return!0;var e=[],t,i,n,s,o,a=r;for(t=0,i=a.length;t{"use strict";var ohe=ci(),ahe=Object.prototype.toString;function Ahe(r){if(r===null)return!0;var e,t,i,n,s,o=r;for(s=new Array(o.length),e=0,t=o.length;e{"use strict";var che=ci(),uhe=Object.prototype.hasOwnProperty;function ghe(r){if(r===null)return!0;var e,t=r;for(e in t)if(uhe.call(t,e)&&t[e]!==null)return!1;return!0}function fhe(r){return r!==null?r:{}}K1.exports=new che("tag:yaml.org,2002:set",{kind:"mapping",resolve:ghe,construct:fhe})});var ig=w((eXe,H1)=>{"use strict";var hhe=pc();H1.exports=new hhe({include:[LQ()],implicit:[k1(),D1()],explicit:[N1(),T1(),M1(),U1()]})});var G1=w((tXe,j1)=>{"use strict";var phe=ci();function dhe(){return!0}function Che(){}function mhe(){return""}function Ehe(r){return typeof r=="undefined"}j1.exports=new phe("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:dhe,construct:Che,predicate:Ehe,represent:mhe})});var q1=w((rXe,Y1)=>{"use strict";var Ihe=ci();function yhe(r){if(r===null||r.length===0)return!1;var e=r,t=/\/([gim]*)$/.exec(r),i="";return!(e[0]==="/"&&(t&&(i=t[1]),i.length>3||e[e.length-i.length-1]!=="/"))}function whe(r){var e=r,t=/\/([gim]*)$/.exec(r),i="";return e[0]==="/"&&(t&&(i=t[1]),e=e.slice(1,e.length-i.length-1)),new RegExp(e,i)}function Bhe(r){var e="/"+r.source+"/";return r.global&&(e+="g"),r.multiline&&(e+="m"),r.ignoreCase&&(e+="i"),e}function bhe(r){return Object.prototype.toString.call(r)==="[object RegExp]"}Y1.exports=new Ihe("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:yhe,construct:whe,predicate:bhe,represent:Bhe})});var z1=w((iXe,J1)=>{"use strict";var iI;try{W1=require,iI=W1("esprima")}catch(r){typeof window!="undefined"&&(iI=window.esprima)}var W1,Qhe=ci();function She(r){if(r===null)return!1;try{var e="("+r+")",t=iI.parse(e,{range:!0});return!(t.type!=="Program"||t.body.length!==1||t.body[0].type!=="ExpressionStatement"||t.body[0].expression.type!=="ArrowFunctionExpression"&&t.body[0].expression.type!=="FunctionExpression")}catch(i){return!1}}function vhe(r){var e="("+r+")",t=iI.parse(e,{range:!0}),i=[],n;if(t.type!=="Program"||t.body.length!==1||t.body[0].type!=="ExpressionStatement"||t.body[0].expression.type!=="ArrowFunctionExpression"&&t.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return t.body[0].expression.params.forEach(function(s){i.push(s.name)}),n=t.body[0].expression.body.range,t.body[0].expression.body.type==="BlockStatement"?new Function(i,e.slice(n[0]+1,n[1]-1)):new Function(i,"return "+e.slice(n[0],n[1]))}function xhe(r){return r.toString()}function khe(r){return Object.prototype.toString.call(r)==="[object Function]"}J1.exports=new Qhe("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:She,construct:vhe,predicate:khe,represent:xhe})});var tp=w((nXe,_1)=>{"use strict";var V1=pc();_1.exports=V1.DEFAULT=new V1({include:[ig()],explicit:[G1(),q1(),z1()]})});var pK=w((sXe,rp)=>{"use strict";var Oa=hc(),X1=tg(),Phe=i1(),Z1=ig(),Dhe=tp(),JA=Object.prototype.hasOwnProperty,nI=1,$1=2,eK=3,sI=4,OQ=1,Rhe=2,tK=3,Fhe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Nhe=/[\x85\u2028\u2029]/,Lhe=/[,\[\]\{\}]/,rK=/^(?:!|!!|![a-z\-]+!)$/i,iK=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nK(r){return Object.prototype.toString.call(r)}function Lo(r){return r===10||r===13}function Cc(r){return r===9||r===32}function yn(r){return r===9||r===32||r===10||r===13}function ng(r){return r===44||r===91||r===93||r===123||r===125}function The(r){var e;return 48<=r&&r<=57?r-48:(e=r|32,97<=e&&e<=102?e-97+10:-1)}function Ohe(r){return r===120?2:r===117?4:r===85?8:0}function Mhe(r){return 48<=r&&r<=57?r-48:-1}function sK(r){return r===48?"\0":r===97?"\x07":r===98?"\b":r===116||r===9?" ":r===110?` +`:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"\x85":r===95?"\xA0":r===76?"\u2028":r===80?"\u2029":""}function Khe(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}var oK=new Array(256),aK=new Array(256);for(var sg=0;sg<256;sg++)oK[sg]=sK(sg)?1:0,aK[sg]=sK(sg);function Uhe(r,e){this.input=r,this.filename=e.filename||null,this.schema=e.schema||Dhe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function AK(r,e){return new X1(e,new Phe(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function dt(r,e){throw AK(r,e)}function oI(r,e){r.onWarning&&r.onWarning.call(null,AK(r,e))}var lK={YAML:function(e,t,i){var n,s,o;e.version!==null&&dt(e,"duplication of %YAML directive"),i.length!==1&&dt(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&dt(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&dt(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&oI(e,"unsupported YAML version of the document")},TAG:function(e,t,i){var n,s;i.length!==2&&dt(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],rK.test(n)||dt(e,"ill-formed tag handle (first argument) of the TAG directive"),JA.call(e.tagMap,n)&&dt(e,'there is a previously declared suffix for "'+n+'" tag handle'),iK.test(s)||dt(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=s}};function WA(r,e,t,i){var n,s,o,a;if(e1&&(r.result+=Oa.repeat(` +`,e-1))}function Hhe(r,e,t){var i,n,s,o,a,l,c,u,g=r.kind,f=r.result,h;if(h=r.input.charCodeAt(r.position),yn(h)||ng(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(n=r.input.charCodeAt(r.position+1),yn(n)||t&&ng(n)))return!1;for(r.kind="scalar",r.result="",s=o=r.position,a=!1;h!==0;){if(h===58){if(n=r.input.charCodeAt(r.position+1),yn(n)||t&&ng(n))break}else if(h===35){if(i=r.input.charCodeAt(r.position-1),yn(i))break}else{if(r.position===r.lineStart&&aI(r)||t&&ng(h))break;if(Lo(h))if(l=r.line,c=r.lineStart,u=r.lineIndent,ei(r,!1,-1),r.lineIndent>=e){a=!0,h=r.input.charCodeAt(r.position);continue}else{r.position=o,r.line=l,r.lineStart=c,r.lineIndent=u;break}}a&&(WA(r,s,o,!1),KQ(r,r.line-l),s=o=r.position,a=!1),Cc(h)||(o=r.position+1),h=r.input.charCodeAt(++r.position)}return WA(r,s,o,!1),r.result?!0:(r.kind=g,r.result=f,!1)}function jhe(r,e){var t,i,n;if(t=r.input.charCodeAt(r.position),t!==39)return!1;for(r.kind="scalar",r.result="",r.position++,i=n=r.position;(t=r.input.charCodeAt(r.position))!==0;)if(t===39)if(WA(r,i,r.position,!0),t=r.input.charCodeAt(++r.position),t===39)i=r.position,r.position++,n=r.position;else return!0;else Lo(t)?(WA(r,i,n,!0),KQ(r,ei(r,!1,e)),i=n=r.position):r.position===r.lineStart&&aI(r)?dt(r,"unexpected end of the document within a single quoted scalar"):(r.position++,n=r.position);dt(r,"unexpected end of the stream within a single quoted scalar")}function Ghe(r,e){var t,i,n,s,o,a;if(a=r.input.charCodeAt(r.position),a!==34)return!1;for(r.kind="scalar",r.result="",r.position++,t=i=r.position;(a=r.input.charCodeAt(r.position))!==0;){if(a===34)return WA(r,t,r.position,!0),r.position++,!0;if(a===92){if(WA(r,t,r.position,!0),a=r.input.charCodeAt(++r.position),Lo(a))ei(r,!1,e);else if(a<256&&oK[a])r.result+=aK[a],r.position++;else if((o=Ohe(a))>0){for(n=o,s=0;n>0;n--)a=r.input.charCodeAt(++r.position),(o=The(a))>=0?s=(s<<4)+o:dt(r,"expected hexadecimal character");r.result+=Khe(s),r.position++}else dt(r,"unknown escape sequence");t=i=r.position}else Lo(a)?(WA(r,t,i,!0),KQ(r,ei(r,!1,e)),t=i=r.position):r.position===r.lineStart&&aI(r)?dt(r,"unexpected end of the document within a double quoted scalar"):(r.position++,i=r.position)}dt(r,"unexpected end of the stream within a double quoted scalar")}function Yhe(r,e){var t=!0,i,n=r.tag,s,o=r.anchor,a,l,c,u,g,f={},h,p,m,y;if(y=r.input.charCodeAt(r.position),y===91)l=93,g=!1,s=[];else if(y===123)l=125,g=!0,s={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=s),y=r.input.charCodeAt(++r.position);y!==0;){if(ei(r,!0,e),y=r.input.charCodeAt(r.position),y===l)return r.position++,r.tag=n,r.anchor=o,r.kind=g?"mapping":"sequence",r.result=s,!0;t||dt(r,"missed comma between flow collection entries"),p=h=m=null,c=u=!1,y===63&&(a=r.input.charCodeAt(r.position+1),yn(a)&&(c=u=!0,r.position++,ei(r,!0,e))),i=r.line,ag(r,e,nI,!1,!0),p=r.tag,h=r.result,ei(r,!0,e),y=r.input.charCodeAt(r.position),(u||r.line===i)&&y===58&&(c=!0,y=r.input.charCodeAt(++r.position),ei(r,!0,e),ag(r,e,nI,!1,!0),m=r.result),g?og(r,s,f,p,h,m):c?s.push(og(r,null,f,p,h,m)):s.push(h),ei(r,!0,e),y=r.input.charCodeAt(r.position),y===44?(t=!0,y=r.input.charCodeAt(++r.position)):t=!1}dt(r,"unexpected end of the stream within a flow collection")}function qhe(r,e){var t,i,n=OQ,s=!1,o=!1,a=e,l=0,c=!1,u,g;if(g=r.input.charCodeAt(r.position),g===124)i=!1;else if(g===62)i=!0;else return!1;for(r.kind="scalar",r.result="";g!==0;)if(g=r.input.charCodeAt(++r.position),g===43||g===45)OQ===n?n=g===43?tK:Rhe:dt(r,"repeat of a chomping mode identifier");else if((u=Mhe(g))>=0)u===0?dt(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?dt(r,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Cc(g)){do g=r.input.charCodeAt(++r.position);while(Cc(g));if(g===35)do g=r.input.charCodeAt(++r.position);while(!Lo(g)&&g!==0)}for(;g!==0;){for(MQ(r),r.lineIndent=0,g=r.input.charCodeAt(r.position);(!o||r.lineIndenta&&(a=r.lineIndent),Lo(g)){l++;continue}if(r.lineIndente)&&l!==0)dt(r,"bad indentation of a sequence entry");else if(r.lineIndente)&&(ag(r,e,sI,!0,n)&&(p?f=r.result:h=r.result),p||(og(r,c,u,g,f,h,s,o),g=f=h=null),ei(r,!0,-1),y=r.input.charCodeAt(r.position)),r.lineIndent>e&&y!==0)dt(r,"bad indentation of a mapping entry");else if(r.lineIndente?l=1:r.lineIndent===e?l=0:r.lineIndente?l=1:r.lineIndent===e?l=0:r.lineIndent tag; it should be "scalar", not "'+r.kind+'"'),g=0,f=r.implicitTypes.length;g tag; it should be "'+h.kind+'", not "'+r.kind+'"'),h.resolve(r.result)?(r.result=h.construct(r.result),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):dt(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")):dt(r,"unknown tag !<"+r.tag+">");return r.listener!==null&&r.listener("close",r),r.tag!==null||r.anchor!==null||u}function Vhe(r){var e=r.position,t,i,n,s=!1,o;for(r.version=null,r.checkLineBreaks=r.legacy,r.tagMap={},r.anchorMap={};(o=r.input.charCodeAt(r.position))!==0&&(ei(r,!0,-1),o=r.input.charCodeAt(r.position),!(r.lineIndent>0||o!==37));){for(s=!0,o=r.input.charCodeAt(++r.position),t=r.position;o!==0&&!yn(o);)o=r.input.charCodeAt(++r.position);for(i=r.input.slice(t,r.position),n=[],i.length<1&&dt(r,"directive name must not be less than one character in length");o!==0;){for(;Cc(o);)o=r.input.charCodeAt(++r.position);if(o===35){do o=r.input.charCodeAt(++r.position);while(o!==0&&!Lo(o));break}if(Lo(o))break;for(t=r.position;o!==0&&!yn(o);)o=r.input.charCodeAt(++r.position);n.push(r.input.slice(t,r.position))}o!==0&&MQ(r),JA.call(lK,i)?lK[i](r,i,n):oI(r,'unknown document directive "'+i+'"')}if(ei(r,!0,-1),r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45?(r.position+=3,ei(r,!0,-1)):s&&dt(r,"directives end mark is expected"),ag(r,r.lineIndent-1,sI,!1,!0),ei(r,!0,-1),r.checkLineBreaks&&Nhe.test(r.input.slice(e,r.position))&&oI(r,"non-ASCII line breaks are interpreted as content"),r.documents.push(r.result),r.position===r.lineStart&&aI(r)){r.input.charCodeAt(r.position)===46&&(r.position+=3,ei(r,!0,-1));return}if(r.position{"use strict";var ip=hc(),np=tg(),$he=tp(),epe=ig(),dK=Object.prototype.toString,CK=Object.prototype.hasOwnProperty,tpe=9,sp=10,rpe=13,ipe=32,npe=33,spe=34,mK=35,ope=37,ape=38,Ape=39,lpe=42,EK=44,cpe=45,IK=58,upe=61,gpe=62,fpe=63,hpe=64,yK=91,wK=93,ppe=96,BK=123,dpe=124,bK=125,Ki={};Ki[0]="\\0";Ki[7]="\\a";Ki[8]="\\b";Ki[9]="\\t";Ki[10]="\\n";Ki[11]="\\v";Ki[12]="\\f";Ki[13]="\\r";Ki[27]="\\e";Ki[34]='\\"';Ki[92]="\\\\";Ki[133]="\\N";Ki[160]="\\_";Ki[8232]="\\L";Ki[8233]="\\P";var Cpe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function mpe(r,e){var t,i,n,s,o,a,l;if(e===null)return{};for(t={},i=Object.keys(e),n=0,s=i.length;n0?r.charCodeAt(s-1):null,f=f&&vK(o,a)}else{for(s=0;si&&r[g+1]!==" ",g=s);else if(!Ag(o))return AI;a=s>0?r.charCodeAt(s-1):null,f=f&&vK(o,a)}c=c||u&&s-g-1>i&&r[g+1]!==" "}return!l&&!c?f&&!n(r)?kK:PK:t>9&&xK(r)?AI:c?RK:DK}function Spe(r,e,t,i){r.dump=function(){if(e.length===0)return"''";if(!r.noCompatMode&&Cpe.indexOf(e)!==-1)return"'"+e+"'";var n=r.indent*Math.max(1,t),s=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-n),o=i||r.flowLevel>-1&&t>=r.flowLevel;function a(l){return Ipe(r,l)}switch(Bpe(e,o,r.indent,s,a)){case kK:return e;case PK:return"'"+e.replace(/'/g,"''")+"'";case DK:return"|"+FK(e,r.indent)+NK(SK(e,n));case RK:return">"+FK(e,r.indent)+NK(SK(bpe(e,s),n));case AI:return'"'+Qpe(e,s)+'"';default:throw new np("impossible error: invalid scalar style")}}()}function FK(r,e){var t=xK(r)?String(e):"",i=r[r.length-1]===` +`,n=i&&(r[r.length-2]===` +`||r===` +`),s=n?"+":i?"":"-";return t+s+` +`}function NK(r){return r[r.length-1]===` +`?r.slice(0,-1):r}function bpe(r,e){for(var t=/(\n+)([^\n]*)/g,i=function(){var c=r.indexOf(` +`);return c=c!==-1?c:r.length,t.lastIndex=c,LK(r.slice(0,c),e)}(),n=r[0]===` +`||r[0]===" ",s,o;o=t.exec(r);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?` +`:"")+LK(l,e),n=s}return i}function LK(r,e){if(r===""||r[0]===" ")return r;for(var t=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=t.exec(r);)a=i.index,a-n>e&&(s=o>n?o:a,l+=` +`+r.slice(n,s),n=s+1),o=a;return l+=` +`,r.length-n>e&&o>n?l+=r.slice(n,o)+` +`+r.slice(o+1):l+=r.slice(n),l.slice(1)}function Qpe(r){for(var e="",t,i,n,s=0;s=55296&&t<=56319&&(i=r.charCodeAt(s+1),i>=56320&&i<=57343)){e+=QK((t-55296)*1024+i-56320+65536),s++;continue}n=Ki[t],e+=!n&&Ag(t)?r[s]:n||QK(t)}return e}function vpe(r,e,t){var i="",n=r.tag,s,o;for(s=0,o=t.length;s1024&&(u+="? "),u+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" "),!!mc(r,e,c,!1,!1)&&(u+=r.dump,i+=u));r.tag=n,r.dump="{"+i+"}"}function Ppe(r,e,t,i){var n="",s=r.tag,o=Object.keys(t),a,l,c,u,g,f;if(r.sortKeys===!0)o.sort();else if(typeof r.sortKeys=="function")o.sort(r.sortKeys);else if(r.sortKeys)throw new np("sortKeys must be a boolean or a function");for(a=0,l=o.length;a1024,g&&(r.dump&&sp===r.dump.charCodeAt(0)?f+="?":f+="? "),f+=r.dump,g&&(f+=HQ(r,e)),!!mc(r,e+1,u,!0,g)&&(r.dump&&sp===r.dump.charCodeAt(0)?f+=":":f+=": ",f+=r.dump,n+=f));r.tag=s,r.dump=n||"{}"}function TK(r,e,t){var i,n,s,o,a,l;for(n=t?r.explicitTypes:r.implicitTypes,s=0,o=n.length;s tag resolver accepts not "'+l+'" style');r.dump=i}return!0}return!1}function mc(r,e,t,i,n,s){r.tag=null,r.dump=t,TK(r,t,!1)||TK(r,t,!0);var o=dK.call(r.dump);i&&(i=r.flowLevel<0||r.flowLevel>e);var a=o==="[object Object]"||o==="[object Array]",l,c;if(a&&(l=r.duplicates.indexOf(t),c=l!==-1),(r.tag!==null&&r.tag!=="?"||c||r.indent!==2&&e>0)&&(n=!1),c&&r.usedDuplicates[l])r.dump="*ref_"+l;else{if(a&&c&&!r.usedDuplicates[l]&&(r.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(r.dump).length!==0?(Ppe(r,e,r.dump,n),c&&(r.dump="&ref_"+l+r.dump)):(kpe(r,e,r.dump),c&&(r.dump="&ref_"+l+" "+r.dump));else if(o==="[object Array]"){var u=r.noArrayIndent&&e>0?e-1:e;i&&r.dump.length!==0?(xpe(r,u,r.dump,n),c&&(r.dump="&ref_"+l+r.dump)):(vpe(r,u,r.dump),c&&(r.dump="&ref_"+l+" "+r.dump))}else if(o==="[object String]")r.tag!=="?"&&Spe(r,r.dump,e,s);else{if(r.skipInvalid)return!1;throw new np("unacceptable kind of an object to dump "+o)}r.tag!==null&&r.tag!=="?"&&(r.dump="!<"+r.tag+"> "+r.dump)}return!0}function Dpe(r,e){var t=[],i=[],n,s;for(GQ(r,t,i),n=0,s=i.length;n{"use strict";var lI=pK(),KK=MK();function cI(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}Mr.exports.Type=ci();Mr.exports.Schema=pc();Mr.exports.FAILSAFE_SCHEMA=rI();Mr.exports.JSON_SCHEMA=NQ();Mr.exports.CORE_SCHEMA=LQ();Mr.exports.DEFAULT_SAFE_SCHEMA=ig();Mr.exports.DEFAULT_FULL_SCHEMA=tp();Mr.exports.load=lI.load;Mr.exports.loadAll=lI.loadAll;Mr.exports.safeLoad=lI.safeLoad;Mr.exports.safeLoadAll=lI.safeLoadAll;Mr.exports.dump=KK.dump;Mr.exports.safeDump=KK.safeDump;Mr.exports.YAMLException=tg();Mr.exports.MINIMAL_SCHEMA=rI();Mr.exports.SAFE_SCHEMA=ig();Mr.exports.DEFAULT_SCHEMA=tp();Mr.exports.scan=cI("scan");Mr.exports.parse=cI("parse");Mr.exports.compose=cI("compose");Mr.exports.addConstructor=cI("addConstructor")});var jK=w((AXe,HK)=>{"use strict";var Fpe=UK();HK.exports=Fpe});var YK=w((lXe,GK)=>{"use strict";function Npe(r,e){function t(){this.constructor=r}t.prototype=e.prototype,r.prototype=new t}function Ec(r,e,t,i){this.message=r,this.expected=e,this.found=t,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ec)}Npe(Ec,Error);Ec.buildMessage=function(r,e){var t={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g0){for(g=1,f=1;g({[He]:Ce})))},q=function(R){return R},Y=function(R){return R},$=Zs("correct indentation"),_=" ",ne=gr(" ",!1),ee=function(R){return R.length===KA*Ju},A=function(R){return R.length===(KA+1)*Ju},oe=function(){return KA++,!0},ce=function(){return KA--,!0},Z=function(){return Uu()},O=Zs("pseudostring"),L=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,de=qn(["\r",` +`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Be=/^[^\r\n\t ,\][{}:#"']/,je=qn(["\r",` +`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),re=function(){return Uu().replace(/^ *| *$/g,"")},se="--",be=gr("--",!1),he=/^[a-zA-Z\/0-9]/,Fe=qn([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Ke=/^[^\r\n\t :,]/,ke=qn(["\r",` +`," "," ",":",","],!0,!1),ve="null",pe=gr("null",!1),V=function(){return null},Qe="true",le=gr("true",!1),fe=function(){return!0},gt="false",Ht=gr("false",!1),Mt=function(){return!1},Ei=Zs("string"),jt='"',Qr=gr('"',!1),Oi=function(){return""},Xs=function(R){return R},Un=function(R){return R.join("")},Hn=/^[^"\\\0-\x1F\x7F]/,Sr=qn(['"',"\\",["\0",""],"\x7F"],!0,!1),jn='\\"',fs=gr('\\"',!1),ba=function(){return'"'},DA="\\\\",Nu=gr("\\\\",!1),hs=function(){return"\\"},RA="\\/",Qa=gr("\\/",!1),Lu=function(){return"/"},FA="\\b",NA=gr("\\b",!1),vr=function(){return"\b"},zl="\\f",Tu=gr("\\f",!1),xo=function(){return"\f"},Ou="\\n",Sh=gr("\\n",!1),vh=function(){return` +`},Dr="\\r",Ae=gr("\\r",!1),ko=function(){return"\r"},Gn="\\t",Mu=gr("\\t",!1),St=function(){return" "},_l="\\u",Yn=gr("\\u",!1),ps=function(R,G,Ce,He){return String.fromCharCode(parseInt(`0x${R}${G}${Ce}${He}`))},ds=/^[0-9a-fA-F]/,pt=qn([["0","9"],["a","f"],["A","F"]],!1,!1),Po=Zs("blank space"),lt=/^[ \t]/,mn=qn([" "," "],!1,!1),S=Zs("white space"),Tt=/^[ \t\n\r]/,Ku=qn([" "," ",` +`,"\r"],!1,!1),Vl=`\r +`,xh=gr(`\r +`,!1),kh=` +`,Ph=gr(` +`,!1),Dh="\r",Rh=gr("\r",!1),j=0,wt=0,LA=[{line:1,column:1}],$i=0,Xl=[],$e=0,Sa;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');n=i[e.startRule]}function Uu(){return r.substring(wt,j)}function yE(){return En(wt,j)}function Fh(R,G){throw G=G!==void 0?G:En(wt,j),$l([Zs(R)],r.substring(wt,j),G)}function wE(R,G){throw G=G!==void 0?G:En(wt,j),Hu(R,G)}function gr(R,G){return{type:"literal",text:R,ignoreCase:G}}function qn(R,G,Ce){return{type:"class",parts:R,inverted:G,ignoreCase:Ce}}function Zl(){return{type:"any"}}function Nh(){return{type:"end"}}function Zs(R){return{type:"other",description:R}}function va(R){var G=LA[R],Ce;if(G)return G;for(Ce=R-1;!LA[Ce];)Ce--;for(G=LA[Ce],G={line:G.line,column:G.column};Ce$i&&($i=j,Xl=[]),Xl.push(R))}function Hu(R,G){return new Ec(R,null,null,G)}function $l(R,G,Ce){return new Ec(Ec.buildMessage(R,G),R,G,Ce)}function $s(){var R;return R=ju(),R}function ec(){var R,G,Ce;for(R=j,G=[],Ce=TA();Ce!==t;)G.push(Ce),Ce=TA();return G!==t&&(wt=R,G=s(G)),R=G,R}function TA(){var R,G,Ce,He,Te;return R=j,G=ka(),G!==t?(r.charCodeAt(j)===45?(Ce=o,j++):(Ce=t,$e===0&&Oe(a)),Ce!==t?(He=Tr(),He!==t?(Te=xa(),Te!==t?(wt=R,G=l(Te),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t),R}function ju(){var R,G,Ce;for(R=j,G=[],Ce=Gu();Ce!==t;)G.push(Ce),Ce=Gu();return G!==t&&(wt=R,G=c(G)),R=G,R}function Gu(){var R,G,Ce,He,Te,Xe,Et,Rt,Jn;if(R=j,G=Tr(),G===t&&(G=null),G!==t){if(Ce=j,r.charCodeAt(j)===35?(He=u,j++):(He=t,$e===0&&Oe(g)),He!==t){if(Te=[],Xe=j,Et=j,$e++,Rt=ro(),$e--,Rt===t?Et=void 0:(j=Et,Et=t),Et!==t?(r.length>j?(Rt=r.charAt(j),j++):(Rt=t,$e===0&&Oe(f)),Rt!==t?(Et=[Et,Rt],Xe=Et):(j=Xe,Xe=t)):(j=Xe,Xe=t),Xe!==t)for(;Xe!==t;)Te.push(Xe),Xe=j,Et=j,$e++,Rt=ro(),$e--,Rt===t?Et=void 0:(j=Et,Et=t),Et!==t?(r.length>j?(Rt=r.charAt(j),j++):(Rt=t,$e===0&&Oe(f)),Rt!==t?(Et=[Et,Rt],Xe=Et):(j=Xe,Xe=t)):(j=Xe,Xe=t);else Te=t;Te!==t?(He=[He,Te],Ce=He):(j=Ce,Ce=t)}else j=Ce,Ce=t;if(Ce===t&&(Ce=null),Ce!==t){if(He=[],Te=to(),Te!==t)for(;Te!==t;)He.push(Te),Te=to();else He=t;He!==t?(wt=R,G=h(),R=G):(j=R,R=t)}else j=R,R=t}else j=R,R=t;if(R===t&&(R=j,G=ka(),G!==t?(Ce=tc(),Ce!==t?(He=Tr(),He===t&&(He=null),He!==t?(r.charCodeAt(j)===58?(Te=p,j++):(Te=t,$e===0&&Oe(m)),Te!==t?(Xe=Tr(),Xe===t&&(Xe=null),Xe!==t?(Et=xa(),Et!==t?(wt=R,G=y(Ce,Et),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t),R===t&&(R=j,G=ka(),G!==t?(Ce=eo(),Ce!==t?(He=Tr(),He===t&&(He=null),He!==t?(r.charCodeAt(j)===58?(Te=p,j++):(Te=t,$e===0&&Oe(m)),Te!==t?(Xe=Tr(),Xe===t&&(Xe=null),Xe!==t?(Et=xa(),Et!==t?(wt=R,G=y(Ce,Et),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t),R===t))){if(R=j,G=ka(),G!==t)if(Ce=eo(),Ce!==t)if(He=Tr(),He!==t)if(Te=BE(),Te!==t){if(Xe=[],Et=to(),Et!==t)for(;Et!==t;)Xe.push(Et),Et=to();else Xe=t;Xe!==t?(wt=R,G=y(Ce,Te),R=G):(j=R,R=t)}else j=R,R=t;else j=R,R=t;else j=R,R=t;else j=R,R=t;if(R===t)if(R=j,G=ka(),G!==t)if(Ce=eo(),Ce!==t){if(He=[],Te=j,Xe=Tr(),Xe===t&&(Xe=null),Xe!==t?(r.charCodeAt(j)===44?(Et=b,j++):(Et=t,$e===0&&Oe(v)),Et!==t?(Rt=Tr(),Rt===t&&(Rt=null),Rt!==t?(Jn=eo(),Jn!==t?(wt=Te,Xe=x(Ce,Jn),Te=Xe):(j=Te,Te=t)):(j=Te,Te=t)):(j=Te,Te=t)):(j=Te,Te=t),Te!==t)for(;Te!==t;)He.push(Te),Te=j,Xe=Tr(),Xe===t&&(Xe=null),Xe!==t?(r.charCodeAt(j)===44?(Et=b,j++):(Et=t,$e===0&&Oe(v)),Et!==t?(Rt=Tr(),Rt===t&&(Rt=null),Rt!==t?(Jn=eo(),Jn!==t?(wt=Te,Xe=x(Ce,Jn),Te=Xe):(j=Te,Te=t)):(j=Te,Te=t)):(j=Te,Te=t)):(j=Te,Te=t);else He=t;He!==t?(Te=Tr(),Te===t&&(Te=null),Te!==t?(r.charCodeAt(j)===58?(Xe=p,j++):(Xe=t,$e===0&&Oe(m)),Xe!==t?(Et=Tr(),Et===t&&(Et=null),Et!==t?(Rt=xa(),Rt!==t?(wt=R,G=T(Ce,He,Rt),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)}else j=R,R=t;else j=R,R=t}return R}function xa(){var R,G,Ce,He,Te,Xe,Et;if(R=j,G=j,$e++,Ce=j,He=ro(),He!==t?(Te=nt(),Te!==t?(r.charCodeAt(j)===45?(Xe=o,j++):(Xe=t,$e===0&&Oe(a)),Xe!==t?(Et=Tr(),Et!==t?(He=[He,Te,Xe,Et],Ce=He):(j=Ce,Ce=t)):(j=Ce,Ce=t)):(j=Ce,Ce=t)):(j=Ce,Ce=t),$e--,Ce!==t?(j=G,G=void 0):G=t,G!==t?(Ce=to(),Ce!==t?(He=Do(),He!==t?(Te=ec(),Te!==t?(Xe=OA(),Xe!==t?(wt=R,G=q(Te),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t),R===t&&(R=j,G=ro(),G!==t?(Ce=Do(),Ce!==t?(He=ju(),He!==t?(Te=OA(),Te!==t?(wt=R,G=q(He),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t),R===t))if(R=j,G=rc(),G!==t){if(Ce=[],He=to(),He!==t)for(;He!==t;)Ce.push(He),He=to();else Ce=t;Ce!==t?(wt=R,G=Y(G),R=G):(j=R,R=t)}else j=R,R=t;return R}function ka(){var R,G,Ce;for($e++,R=j,G=[],r.charCodeAt(j)===32?(Ce=_,j++):(Ce=t,$e===0&&Oe(ne));Ce!==t;)G.push(Ce),r.charCodeAt(j)===32?(Ce=_,j++):(Ce=t,$e===0&&Oe(ne));return G!==t?(wt=j,Ce=ee(G),Ce?Ce=void 0:Ce=t,Ce!==t?(G=[G,Ce],R=G):(j=R,R=t)):(j=R,R=t),$e--,R===t&&(G=t,$e===0&&Oe($)),R}function nt(){var R,G,Ce;for(R=j,G=[],r.charCodeAt(j)===32?(Ce=_,j++):(Ce=t,$e===0&&Oe(ne));Ce!==t;)G.push(Ce),r.charCodeAt(j)===32?(Ce=_,j++):(Ce=t,$e===0&&Oe(ne));return G!==t?(wt=j,Ce=A(G),Ce?Ce=void 0:Ce=t,Ce!==t?(G=[G,Ce],R=G):(j=R,R=t)):(j=R,R=t),R}function Do(){var R;return wt=j,R=oe(),R?R=void 0:R=t,R}function OA(){var R;return wt=j,R=ce(),R?R=void 0:R=t,R}function tc(){var R;return R=ic(),R===t&&(R=Lh()),R}function eo(){var R,G,Ce;if(R=ic(),R===t){if(R=j,G=[],Ce=Yu(),Ce!==t)for(;Ce!==t;)G.push(Ce),Ce=Yu();else G=t;G!==t&&(wt=R,G=Z()),R=G}return R}function rc(){var R;return R=Th(),R===t&&(R=bE(),R===t&&(R=ic(),R===t&&(R=Lh()))),R}function BE(){var R;return R=Th(),R===t&&(R=ic(),R===t&&(R=Yu())),R}function Lh(){var R,G,Ce,He,Te,Xe;if($e++,R=j,L.test(r.charAt(j))?(G=r.charAt(j),j++):(G=t,$e===0&&Oe(de)),G!==t){for(Ce=[],He=j,Te=Tr(),Te===t&&(Te=null),Te!==t?(Be.test(r.charAt(j))?(Xe=r.charAt(j),j++):(Xe=t,$e===0&&Oe(je)),Xe!==t?(Te=[Te,Xe],He=Te):(j=He,He=t)):(j=He,He=t);He!==t;)Ce.push(He),He=j,Te=Tr(),Te===t&&(Te=null),Te!==t?(Be.test(r.charAt(j))?(Xe=r.charAt(j),j++):(Xe=t,$e===0&&Oe(je)),Xe!==t?(Te=[Te,Xe],He=Te):(j=He,He=t)):(j=He,He=t);Ce!==t?(wt=R,G=re(),R=G):(j=R,R=t)}else j=R,R=t;return $e--,R===t&&(G=t,$e===0&&Oe(O)),R}function Yu(){var R,G,Ce,He,Te;if(R=j,r.substr(j,2)===se?(G=se,j+=2):(G=t,$e===0&&Oe(be)),G===t&&(G=null),G!==t)if(he.test(r.charAt(j))?(Ce=r.charAt(j),j++):(Ce=t,$e===0&&Oe(Fe)),Ce!==t){for(He=[],Ke.test(r.charAt(j))?(Te=r.charAt(j),j++):(Te=t,$e===0&&Oe(ke));Te!==t;)He.push(Te),Ke.test(r.charAt(j))?(Te=r.charAt(j),j++):(Te=t,$e===0&&Oe(ke));He!==t?(wt=R,G=re(),R=G):(j=R,R=t)}else j=R,R=t;else j=R,R=t;return R}function Th(){var R,G;return R=j,r.substr(j,4)===ve?(G=ve,j+=4):(G=t,$e===0&&Oe(pe)),G!==t&&(wt=R,G=V()),R=G,R}function bE(){var R,G;return R=j,r.substr(j,4)===Qe?(G=Qe,j+=4):(G=t,$e===0&&Oe(le)),G!==t&&(wt=R,G=fe()),R=G,R===t&&(R=j,r.substr(j,5)===gt?(G=gt,j+=5):(G=t,$e===0&&Oe(Ht)),G!==t&&(wt=R,G=Mt()),R=G),R}function ic(){var R,G,Ce,He;return $e++,R=j,r.charCodeAt(j)===34?(G=jt,j++):(G=t,$e===0&&Oe(Qr)),G!==t?(r.charCodeAt(j)===34?(Ce=jt,j++):(Ce=t,$e===0&&Oe(Qr)),Ce!==t?(wt=R,G=Oi(),R=G):(j=R,R=t)):(j=R,R=t),R===t&&(R=j,r.charCodeAt(j)===34?(G=jt,j++):(G=t,$e===0&&Oe(Qr)),G!==t?(Ce=QE(),Ce!==t?(r.charCodeAt(j)===34?(He=jt,j++):(He=t,$e===0&&Oe(Qr)),He!==t?(wt=R,G=Xs(Ce),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)),$e--,R===t&&(G=t,$e===0&&Oe(Ei)),R}function QE(){var R,G,Ce;if(R=j,G=[],Ce=qu(),Ce!==t)for(;Ce!==t;)G.push(Ce),Ce=qu();else G=t;return G!==t&&(wt=R,G=Un(G)),R=G,R}function qu(){var R,G,Ce,He,Te,Xe;return Hn.test(r.charAt(j))?(R=r.charAt(j),j++):(R=t,$e===0&&Oe(Sr)),R===t&&(R=j,r.substr(j,2)===jn?(G=jn,j+=2):(G=t,$e===0&&Oe(fs)),G!==t&&(wt=R,G=ba()),R=G,R===t&&(R=j,r.substr(j,2)===DA?(G=DA,j+=2):(G=t,$e===0&&Oe(Nu)),G!==t&&(wt=R,G=hs()),R=G,R===t&&(R=j,r.substr(j,2)===RA?(G=RA,j+=2):(G=t,$e===0&&Oe(Qa)),G!==t&&(wt=R,G=Lu()),R=G,R===t&&(R=j,r.substr(j,2)===FA?(G=FA,j+=2):(G=t,$e===0&&Oe(NA)),G!==t&&(wt=R,G=vr()),R=G,R===t&&(R=j,r.substr(j,2)===zl?(G=zl,j+=2):(G=t,$e===0&&Oe(Tu)),G!==t&&(wt=R,G=xo()),R=G,R===t&&(R=j,r.substr(j,2)===Ou?(G=Ou,j+=2):(G=t,$e===0&&Oe(Sh)),G!==t&&(wt=R,G=vh()),R=G,R===t&&(R=j,r.substr(j,2)===Dr?(G=Dr,j+=2):(G=t,$e===0&&Oe(Ae)),G!==t&&(wt=R,G=ko()),R=G,R===t&&(R=j,r.substr(j,2)===Gn?(G=Gn,j+=2):(G=t,$e===0&&Oe(Mu)),G!==t&&(wt=R,G=St()),R=G,R===t&&(R=j,r.substr(j,2)===_l?(G=_l,j+=2):(G=t,$e===0&&Oe(Yn)),G!==t?(Ce=MA(),Ce!==t?(He=MA(),He!==t?(Te=MA(),Te!==t?(Xe=MA(),Xe!==t?(wt=R,G=ps(Ce,He,Te,Xe),R=G):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)):(j=R,R=t)))))))))),R}function MA(){var R;return ds.test(r.charAt(j))?(R=r.charAt(j),j++):(R=t,$e===0&&Oe(pt)),R}function Tr(){var R,G;if($e++,R=[],lt.test(r.charAt(j))?(G=r.charAt(j),j++):(G=t,$e===0&&Oe(mn)),G!==t)for(;G!==t;)R.push(G),lt.test(r.charAt(j))?(G=r.charAt(j),j++):(G=t,$e===0&&Oe(mn));else R=t;return $e--,R===t&&(G=t,$e===0&&Oe(Po)),R}function SE(){var R,G;if($e++,R=[],Tt.test(r.charAt(j))?(G=r.charAt(j),j++):(G=t,$e===0&&Oe(Ku)),G!==t)for(;G!==t;)R.push(G),Tt.test(r.charAt(j))?(G=r.charAt(j),j++):(G=t,$e===0&&Oe(Ku));else R=t;return $e--,R===t&&(G=t,$e===0&&Oe(S)),R}function to(){var R,G,Ce,He,Te,Xe;if(R=j,G=ro(),G!==t){for(Ce=[],He=j,Te=Tr(),Te===t&&(Te=null),Te!==t?(Xe=ro(),Xe!==t?(Te=[Te,Xe],He=Te):(j=He,He=t)):(j=He,He=t);He!==t;)Ce.push(He),He=j,Te=Tr(),Te===t&&(Te=null),Te!==t?(Xe=ro(),Xe!==t?(Te=[Te,Xe],He=Te):(j=He,He=t)):(j=He,He=t);Ce!==t?(G=[G,Ce],R=G):(j=R,R=t)}else j=R,R=t;return R}function ro(){var R;return r.substr(j,2)===Vl?(R=Vl,j+=2):(R=t,$e===0&&Oe(xh)),R===t&&(r.charCodeAt(j)===10?(R=kh,j++):(R=t,$e===0&&Oe(Ph)),R===t&&(r.charCodeAt(j)===13?(R=Dh,j++):(R=t,$e===0&&Oe(Rh)))),R}let Ju=2,KA=0;if(Sa=n(),Sa!==t&&j===r.length)return Sa;throw Sa!==t&&j{"use strict";var Upe=r=>{let e=!1,t=!1,i=!1;for(let n=0;n{if(!(typeof r=="string"||Array.isArray(r)))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);let t=n=>e.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;return Array.isArray(r)?r=r.map(n=>n.trim()).filter(n=>n.length).join("-"):r=r.trim(),r.length===0?"":r.length===1?e.pascalCase?r.toUpperCase():r.toLowerCase():(r!==r.toLowerCase()&&(r=Upe(r)),r=r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(n,s)=>s.toUpperCase()).replace(/\d+(\w|$)/g,n=>n.toUpperCase()),t(r))};JQ.exports=_K;JQ.exports.default=_K});var ZK=w((pXe,XK)=>{XK.exports=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:"NOW_BUILDER"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"}]});var Ic=w(Xn=>{"use strict";var $K=ZK(),To=process.env;Object.defineProperty(Xn,"_vendors",{value:$K.map(function(r){return r.constant})});Xn.name=null;Xn.isPR=null;$K.forEach(function(r){let t=(Array.isArray(r.env)?r.env:[r.env]).every(function(i){return eU(i)});if(Xn[r.constant]=t,t)switch(Xn.name=r.name,typeof r.pr){case"string":Xn.isPR=!!To[r.pr];break;case"object":"env"in r.pr?Xn.isPR=r.pr.env in To&&To[r.pr.env]!==r.pr.ne:"any"in r.pr?Xn.isPR=r.pr.any.some(function(i){return!!To[i]}):Xn.isPR=eU(r.pr);break;default:Xn.isPR=null}});Xn.isCI=!!(To.CI||To.CONTINUOUS_INTEGRATION||To.BUILD_NUMBER||To.RUN_ID||Xn.name);function eU(r){return typeof r=="string"?!!To[r]:Object.keys(r).every(function(e){return To[e]===r[e]})}});var cg={};ft(cg,{KeyRelationship:()=>Bc,applyCascade:()=>fp,base64RegExp:()=>sU,colorStringAlphaRegExp:()=>nU,colorStringRegExp:()=>iU,computeKey:()=>zA,getPrintable:()=>ti,hasExactLength:()=>cU,hasForbiddenKeys:()=>mde,hasKeyRelationship:()=>eS,hasMaxLength:()=>tde,hasMinLength:()=>ede,hasMutuallyExclusiveKeys:()=>Ede,hasRequiredKeys:()=>Cde,hasUniqueItems:()=>rde,isArray:()=>Jpe,isAtLeast:()=>sde,isAtMost:()=>ode,isBase64:()=>pde,isBoolean:()=>Gpe,isDate:()=>qpe,isDict:()=>zpe,isEnum:()=>nn,isHexColor:()=>hde,isISO8601:()=>fde,isInExclusiveRange:()=>Ade,isInInclusiveRange:()=>ade,isInstanceOf:()=>Vpe,isInteger:()=>lde,isJSON:()=>dde,isLiteral:()=>Hpe,isLowerCase:()=>cde,isNegative:()=>ide,isNullable:()=>$pe,isNumber:()=>Ype,isObject:()=>_pe,isOneOf:()=>Xpe,isOptional:()=>Zpe,isPositive:()=>nde,isString:()=>gp,isTuple:()=>Wpe,isUUID4:()=>gde,isUnknown:()=>lU,isUpperCase:()=>ude,iso8601RegExp:()=>$Q,makeCoercionFn:()=>wc,makeSetter:()=>AU,makeTrait:()=>aU,makeValidator:()=>vt,matchesRegExp:()=>hp,plural:()=>hI,pushError:()=>mt,simpleKeyRegExp:()=>rU,uuid4RegExp:()=>oU});function vt({test:r}){return aU(r)()}function ti(r){return r===null?"null":r===void 0?"undefined":r===""?"an empty string":JSON.stringify(r)}function zA(r,e){var t,i,n;return typeof e=="number"?`${(t=r==null?void 0:r.p)!==null&&t!==void 0?t:"."}[${e}]`:rU.test(e)?`${(i=r==null?void 0:r.p)!==null&&i!==void 0?i:""}.${e}`:`${(n=r==null?void 0:r.p)!==null&&n!==void 0?n:"."}[${JSON.stringify(e)}]`}function wc(r,e){return t=>{let i=r[e];return r[e]=t,wc(r,e).bind(null,i)}}function AU(r,e){return t=>{r[e]=t}}function hI(r,e,t){return r===1?e:t}function mt({errors:r,p:e}={},t){return r==null||r.push(`${e!=null?e:"."}: ${t}`),!1}function Hpe(r){return vt({test:(e,t)=>e!==r?mt(t,`Expected a literal (got ${ti(r)})`):!0})}function nn(r){let e=Array.isArray(r)?r:Object.values(r),t=new Set(e);return vt({test:(i,n)=>t.has(i)?!0:mt(n,`Expected a valid enumeration value (got ${ti(i)})`)})}var rU,iU,nU,sU,oU,$Q,aU,lU,gp,jpe,Gpe,Ype,qpe,Jpe,Wpe,zpe,_pe,Vpe,Xpe,fp,Zpe,$pe,ede,tde,cU,rde,ide,nde,sde,ode,ade,Ade,lde,hp,cde,ude,gde,fde,hde,pde,dde,Cde,mde,Ede,Bc,Ide,eS,ys=uge(()=>{rU=/^[a-zA-Z_][a-zA-Z0-9_]*$/,iU=/^#[0-9a-f]{6}$/i,nU=/^#[0-9a-f]{6}([0-9a-f]{2})?$/i,sU=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,oU=/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/i,$Q=/^(?:[1-9]\d{3}(-?)(?:(?:0[1-9]|1[0-2])\1(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])\1(?:29|30)|(?:0[13578]|1[02])(?:\1)31|00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[0-5]))|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)(?:(-?)02(?:\2)29|-?366))T(?:[01]\d|2[0-3])(:?)[0-5]\d(?:\3[0-5]\d)?(?:Z|[+-][01]\d(?:\3[0-5]\d)?)$/,aU=r=>()=>r;lU=()=>vt({test:(r,e)=>!0});gp=()=>vt({test:(r,e)=>typeof r!="string"?mt(e,`Expected a string (got ${ti(r)})`):!0});jpe=new Map([["true",!0],["True",!0],["1",!0],[1,!0],["false",!1],["False",!1],["0",!1],[0,!1]]),Gpe=()=>vt({test:(r,e)=>{var t;if(typeof r!="boolean"){if(typeof(e==null?void 0:e.coercions)!="undefined"){if(typeof(e==null?void 0:e.coercion)=="undefined")return mt(e,"Unbound coercion result");let i=jpe.get(r);if(typeof i!="undefined")return e.coercions.push([(t=e.p)!==null&&t!==void 0?t:".",e.coercion.bind(null,i)]),!0}return mt(e,`Expected a boolean (got ${ti(r)})`)}return!0}}),Ype=()=>vt({test:(r,e)=>{var t;if(typeof r!="number"){if(typeof(e==null?void 0:e.coercions)!="undefined"){if(typeof(e==null?void 0:e.coercion)=="undefined")return mt(e,"Unbound coercion result");let i;if(typeof r=="string"){let n;try{n=JSON.parse(r)}catch(s){}if(typeof n=="number")if(JSON.stringify(n)===r)i=n;else return mt(e,`Received a number that can't be safely represented by the runtime (${r})`)}if(typeof i!="undefined")return e.coercions.push([(t=e.p)!==null&&t!==void 0?t:".",e.coercion.bind(null,i)]),!0}return mt(e,`Expected a number (got ${ti(r)})`)}return!0}}),qpe=()=>vt({test:(r,e)=>{var t;if(!(r instanceof Date)){if(typeof(e==null?void 0:e.coercions)!="undefined"){if(typeof(e==null?void 0:e.coercion)=="undefined")return mt(e,"Unbound coercion result");let i;if(typeof r=="string"&&$Q.test(r))i=new Date(r);else{let n;if(typeof r=="string"){let s;try{s=JSON.parse(r)}catch(o){}typeof s=="number"&&(n=s)}else typeof r=="number"&&(n=r);if(typeof n!="undefined")if(Number.isSafeInteger(n)||!Number.isSafeInteger(n*1e3))i=new Date(n*1e3);else return mt(e,`Received a timestamp that can't be safely represented by the runtime (${r})`)}if(typeof i!="undefined")return e.coercions.push([(t=e.p)!==null&&t!==void 0?t:".",e.coercion.bind(null,i)]),!0}return mt(e,`Expected a date (got ${ti(r)})`)}return!0}}),Jpe=(r,{delimiter:e}={})=>vt({test:(t,i)=>{var n;if(typeof t=="string"&&typeof e!="undefined"&&typeof(i==null?void 0:i.coercions)!="undefined"){if(typeof(i==null?void 0:i.coercion)=="undefined")return mt(i,"Unbound coercion result");t=t.split(e),i.coercions.push([(n=i.p)!==null&&n!==void 0?n:".",i.coercion.bind(null,t)])}if(!Array.isArray(t))return mt(i,`Expected an array (got ${ti(t)})`);let s=!0;for(let o=0,a=t.length;o{let t=cU(r.length);return vt({test:(i,n)=>{var s;if(typeof i=="string"&&typeof e!="undefined"&&typeof(n==null?void 0:n.coercions)!="undefined"){if(typeof(n==null?void 0:n.coercion)=="undefined")return mt(n,"Unbound coercion result");i=i.split(e),n.coercions.push([(s=n.p)!==null&&s!==void 0?s:".",n.coercion.bind(null,i)])}if(!Array.isArray(i))return mt(n,`Expected a tuple (got ${ti(i)})`);let o=t(i,Object.assign({},n));for(let a=0,l=i.length;avt({test:(t,i)=>{if(typeof t!="object"||t===null)return mt(i,`Expected an object (got ${ti(t)})`);let n=Object.keys(t),s=!0;for(let o=0,a=n.length;o{let t=Object.keys(r);return vt({test:(i,n)=>{if(typeof i!="object"||i===null)return mt(n,`Expected an object (got ${ti(i)})`);let s=new Set([...t,...Object.keys(i)]),o={},a=!0;for(let l of s){if(l==="constructor"||l==="__proto__")a=mt(Object.assign(Object.assign({},n),{p:zA(n,l)}),"Unsafe property name");else{let c=Object.prototype.hasOwnProperty.call(r,l)?r[l]:void 0,u=Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;typeof c!="undefined"?a=c(u,Object.assign(Object.assign({},n),{p:zA(n,l),coercion:wc(i,l)}))&&a:e===null?a=mt(Object.assign(Object.assign({},n),{p:zA(n,l)}),`Extraneous property (got ${ti(u)})`):Object.defineProperty(o,l,{enumerable:!0,get:()=>u,set:AU(i,l)})}if(!a&&(n==null?void 0:n.errors)==null)break}return e!==null&&(a||(n==null?void 0:n.errors)!=null)&&(a=e(o,n)&&a),a}})},Vpe=r=>vt({test:(e,t)=>e instanceof r?!0:mt(t,`Expected an instance of ${r.name} (got ${ti(e)})`)}),Xpe=(r,{exclusive:e=!1}={})=>vt({test:(t,i)=>{var n,s,o;let a=[],l=typeof(i==null?void 0:i.errors)!="undefined"?[]:void 0;for(let c=0,u=r.length;c1?mt(i,`Expected to match exactly a single predicate (matched ${a.join(", ")})`):(o=i==null?void 0:i.errors)===null||o===void 0||o.push(...l),!1}}),fp=(r,e)=>vt({test:(t,i)=>{var n,s;let o={value:t},a=typeof(i==null?void 0:i.coercions)!="undefined"?wc(o,"value"):void 0,l=typeof(i==null?void 0:i.coercions)!="undefined"?[]:void 0;if(!r(t,Object.assign(Object.assign({},i),{coercion:a,coercions:l})))return!1;let c=[];if(typeof l!="undefined")for(let[,u]of l)c.push(u());try{if(typeof(i==null?void 0:i.coercions)!="undefined"){if(o.value!==t){if(typeof(i==null?void 0:i.coercion)=="undefined")return mt(i,"Unbound coercion result");i.coercions.push([(n=i.p)!==null&&n!==void 0?n:".",i.coercion.bind(null,o.value)])}(s=i==null?void 0:i.coercions)===null||s===void 0||s.push(...l)}return e.every(u=>u(o.value,i))}finally{for(let u of c)u()}}}),Zpe=r=>vt({test:(e,t)=>typeof e=="undefined"?!0:r(e,t)}),$pe=r=>vt({test:(e,t)=>e===null?!0:r(e,t)}),ede=r=>vt({test:(e,t)=>e.length>=r?!0:mt(t,`Expected to have a length of at least ${r} elements (got ${e.length})`)}),tde=r=>vt({test:(e,t)=>e.length<=r?!0:mt(t,`Expected to have a length of at most ${r} elements (got ${e.length})`)}),cU=r=>vt({test:(e,t)=>e.length!==r?mt(t,`Expected to have a length of exactly ${r} elements (got ${e.length})`):!0}),rde=({map:r}={})=>vt({test:(e,t)=>{let i=new Set,n=new Set;for(let s=0,o=e.length;svt({test:(r,e)=>r<=0?!0:mt(e,`Expected to be negative (got ${r})`)}),nde=()=>vt({test:(r,e)=>r>=0?!0:mt(e,`Expected to be positive (got ${r})`)}),sde=r=>vt({test:(e,t)=>e>=r?!0:mt(t,`Expected to be at least ${r} (got ${e})`)}),ode=r=>vt({test:(e,t)=>e<=r?!0:mt(t,`Expected to be at most ${r} (got ${e})`)}),ade=(r,e)=>vt({test:(t,i)=>t>=r&&t<=e?!0:mt(i,`Expected to be in the [${r}; ${e}] range (got ${t})`)}),Ade=(r,e)=>vt({test:(t,i)=>t>=r&&tvt({test:(e,t)=>e!==Math.round(e)?mt(t,`Expected to be an integer (got ${e})`):Number.isSafeInteger(e)?!0:mt(t,`Expected to be a safe integer (got ${e})`)}),hp=r=>vt({test:(e,t)=>r.test(e)?!0:mt(t,`Expected to match the pattern ${r.toString()} (got ${ti(e)})`)}),cde=()=>vt({test:(r,e)=>r!==r.toLowerCase()?mt(e,`Expected to be all-lowercase (got ${r})`):!0}),ude=()=>vt({test:(r,e)=>r!==r.toUpperCase()?mt(e,`Expected to be all-uppercase (got ${r})`):!0}),gde=()=>vt({test:(r,e)=>oU.test(r)?!0:mt(e,`Expected to be a valid UUID v4 (got ${ti(r)})`)}),fde=()=>vt({test:(r,e)=>$Q.test(r)?!1:mt(e,`Expected to be a valid ISO 8601 date string (got ${ti(r)})`)}),hde=({alpha:r=!1})=>vt({test:(e,t)=>(r?iU.test(e):nU.test(e))?!0:mt(t,`Expected to be a valid hexadecimal color string (got ${ti(e)})`)}),pde=()=>vt({test:(r,e)=>sU.test(r)?!0:mt(e,`Expected to be a valid base 64 string (got ${ti(r)})`)}),dde=(r=lU())=>vt({test:(e,t)=>{let i;try{i=JSON.parse(e)}catch(n){return mt(t,`Expected to be a valid JSON string (got ${ti(e)})`)}return r(i,t)}}),Cde=r=>{let e=new Set(r);return vt({test:(t,i)=>{let n=new Set(Object.keys(t)),s=[];for(let o of e)n.has(o)||s.push(o);return s.length>0?mt(i,`Missing required ${hI(s.length,"property","properties")} ${s.map(o=>`"${o}"`).join(", ")}`):!0}})},mde=r=>{let e=new Set(r);return vt({test:(t,i)=>{let n=new Set(Object.keys(t)),s=[];for(let o of e)n.has(o)&&s.push(o);return s.length>0?mt(i,`Forbidden ${hI(s.length,"property","properties")} ${s.map(o=>`"${o}"`).join(", ")}`):!0}})},Ede=r=>{let e=new Set(r);return vt({test:(t,i)=>{let n=new Set(Object.keys(t)),s=[];for(let o of e)n.has(o)&&s.push(o);return s.length>1?mt(i,`Mutually exclusive properties ${s.map(o=>`"${o}"`).join(", ")}`):!0}})};(function(r){r.Forbids="Forbids",r.Requires="Requires"})(Bc||(Bc={}));Ide={[Bc.Forbids]:{expect:!1,message:"forbids using"},[Bc.Requires]:{expect:!0,message:"requires using"}},eS=(r,e,t,{ignore:i=[]}={})=>{let n=new Set(i),s=new Set(t),o=Ide[e];return vt({test:(a,l)=>{let c=new Set(Object.keys(a));if(!c.has(r)||n.has(a[r]))return!0;let u=[];for(let g of s)(c.has(g)&&!n.has(a[g]))!==o.expect&&u.push(g);return u.length>=1?mt(l,`Property "${r}" ${o.message} ${hI(u.length,"property","properties")} ${u.map(g=>`"${g}"`).join(", ")}`):!0}})}});var kU=w((dZe,xU)=>{"use strict";xU.exports=(r,...e)=>new Promise(t=>{t(r(...e))})});var gg=w((CZe,aS)=>{"use strict";var Ode=kU(),PU=r=>{if(r<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=[],t=0,i=()=>{t--,e.length>0&&e.shift()()},n=(a,l,...c)=>{t++;let u=Ode(a,...c);l(u),u.then(i,i)},s=(a,l,...c)=>{tnew Promise(c=>s(a,c,...l));return Object.defineProperties(o,{activeCount:{get:()=>t},pendingCount:{get:()=>e.length}}),o};aS.exports=PU;aS.exports.default=PU});var mp=w((EZe,DU)=>{var Mde="2.0.0",Kde=256,Ude=Number.MAX_SAFE_INTEGER||9007199254740991,Hde=16;DU.exports={SEMVER_SPEC_VERSION:Mde,MAX_LENGTH:Kde,MAX_SAFE_INTEGER:Ude,MAX_SAFE_COMPONENT_LENGTH:Hde}});var Ep=w((IZe,RU)=>{var jde=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};RU.exports=jde});var bc=w((VA,FU)=>{var{MAX_SAFE_COMPONENT_LENGTH:AS}=mp(),Gde=Ep();VA=FU.exports={};var Yde=VA.re=[],rt=VA.src=[],it=VA.t={},qde=0,xt=(r,e,t)=>{let i=qde++;Gde(i,e),it[r]=i,rt[i]=e,Yde[i]=new RegExp(e,t?"g":void 0)};xt("NUMERICIDENTIFIER","0|[1-9]\\d*");xt("NUMERICIDENTIFIERLOOSE","[0-9]+");xt("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");xt("MAINVERSION",`(${rt[it.NUMERICIDENTIFIER]})\\.(${rt[it.NUMERICIDENTIFIER]})\\.(${rt[it.NUMERICIDENTIFIER]})`);xt("MAINVERSIONLOOSE",`(${rt[it.NUMERICIDENTIFIERLOOSE]})\\.(${rt[it.NUMERICIDENTIFIERLOOSE]})\\.(${rt[it.NUMERICIDENTIFIERLOOSE]})`);xt("PRERELEASEIDENTIFIER",`(?:${rt[it.NUMERICIDENTIFIER]}|${rt[it.NONNUMERICIDENTIFIER]})`);xt("PRERELEASEIDENTIFIERLOOSE",`(?:${rt[it.NUMERICIDENTIFIERLOOSE]}|${rt[it.NONNUMERICIDENTIFIER]})`);xt("PRERELEASE",`(?:-(${rt[it.PRERELEASEIDENTIFIER]}(?:\\.${rt[it.PRERELEASEIDENTIFIER]})*))`);xt("PRERELEASELOOSE",`(?:-?(${rt[it.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${rt[it.PRERELEASEIDENTIFIERLOOSE]})*))`);xt("BUILDIDENTIFIER","[0-9A-Za-z-]+");xt("BUILD",`(?:\\+(${rt[it.BUILDIDENTIFIER]}(?:\\.${rt[it.BUILDIDENTIFIER]})*))`);xt("FULLPLAIN",`v?${rt[it.MAINVERSION]}${rt[it.PRERELEASE]}?${rt[it.BUILD]}?`);xt("FULL",`^${rt[it.FULLPLAIN]}$`);xt("LOOSEPLAIN",`[v=\\s]*${rt[it.MAINVERSIONLOOSE]}${rt[it.PRERELEASELOOSE]}?${rt[it.BUILD]}?`);xt("LOOSE",`^${rt[it.LOOSEPLAIN]}$`);xt("GTLT","((?:<|>)?=?)");xt("XRANGEIDENTIFIERLOOSE",`${rt[it.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);xt("XRANGEIDENTIFIER",`${rt[it.NUMERICIDENTIFIER]}|x|X|\\*`);xt("XRANGEPLAIN",`[v=\\s]*(${rt[it.XRANGEIDENTIFIER]})(?:\\.(${rt[it.XRANGEIDENTIFIER]})(?:\\.(${rt[it.XRANGEIDENTIFIER]})(?:${rt[it.PRERELEASE]})?${rt[it.BUILD]}?)?)?`);xt("XRANGEPLAINLOOSE",`[v=\\s]*(${rt[it.XRANGEIDENTIFIERLOOSE]})(?:\\.(${rt[it.XRANGEIDENTIFIERLOOSE]})(?:\\.(${rt[it.XRANGEIDENTIFIERLOOSE]})(?:${rt[it.PRERELEASELOOSE]})?${rt[it.BUILD]}?)?)?`);xt("XRANGE",`^${rt[it.GTLT]}\\s*${rt[it.XRANGEPLAIN]}$`);xt("XRANGELOOSE",`^${rt[it.GTLT]}\\s*${rt[it.XRANGEPLAINLOOSE]}$`);xt("COERCE",`(^|[^\\d])(\\d{1,${AS}})(?:\\.(\\d{1,${AS}}))?(?:\\.(\\d{1,${AS}}))?(?:$|[^\\d])`);xt("COERCERTL",rt[it.COERCE],!0);xt("LONETILDE","(?:~>?)");xt("TILDETRIM",`(\\s*)${rt[it.LONETILDE]}\\s+`,!0);VA.tildeTrimReplace="$1~";xt("TILDE",`^${rt[it.LONETILDE]}${rt[it.XRANGEPLAIN]}$`);xt("TILDELOOSE",`^${rt[it.LONETILDE]}${rt[it.XRANGEPLAINLOOSE]}$`);xt("LONECARET","(?:\\^)");xt("CARETTRIM",`(\\s*)${rt[it.LONECARET]}\\s+`,!0);VA.caretTrimReplace="$1^";xt("CARET",`^${rt[it.LONECARET]}${rt[it.XRANGEPLAIN]}$`);xt("CARETLOOSE",`^${rt[it.LONECARET]}${rt[it.XRANGEPLAINLOOSE]}$`);xt("COMPARATORLOOSE",`^${rt[it.GTLT]}\\s*(${rt[it.LOOSEPLAIN]})$|^$`);xt("COMPARATOR",`^${rt[it.GTLT]}\\s*(${rt[it.FULLPLAIN]})$|^$`);xt("COMPARATORTRIM",`(\\s*)${rt[it.GTLT]}\\s*(${rt[it.LOOSEPLAIN]}|${rt[it.XRANGEPLAIN]})`,!0);VA.comparatorTrimReplace="$1$2$3";xt("HYPHENRANGE",`^\\s*(${rt[it.XRANGEPLAIN]})\\s+-\\s+(${rt[it.XRANGEPLAIN]})\\s*$`);xt("HYPHENRANGELOOSE",`^\\s*(${rt[it.XRANGEPLAINLOOSE]})\\s+-\\s+(${rt[it.XRANGEPLAINLOOSE]})\\s*$`);xt("STAR","(<|>)?=?\\s*\\*");xt("GTE0","^\\s*>=\\s*0.0.0\\s*$");xt("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Ip=w((yZe,NU)=>{var Jde=["includePrerelease","loose","rtl"],Wde=r=>r?typeof r!="object"?{loose:!0}:Jde.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};NU.exports=Wde});var yI=w((wZe,LU)=>{var TU=/^[0-9]+$/,OU=(r,e)=>{let t=TU.test(r),i=TU.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:rOU(e,r);LU.exports={compareIdentifiers:OU,rcompareIdentifiers:zde}});var Hi=w((BZe,MU)=>{var wI=Ep(),{MAX_LENGTH:KU,MAX_SAFE_INTEGER:BI}=mp(),{re:UU,t:HU}=bc(),_de=Ip(),{compareIdentifiers:yp}=yI(),Bs=class{constructor(e,t){if(t=_de(t),e instanceof Bs){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>KU)throw new TypeError(`version is longer than ${KU} characters`);wI("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?UU[HU.LOOSE]:UU[HU.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>BI||this.major<0)throw new TypeError("Invalid major version");if(this.minor>BI||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>BI||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let s=+n;if(s>=0&&s=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};MU.exports=Bs});var Qc=w((bZe,jU)=>{var{MAX_LENGTH:Vde}=mp(),{re:GU,t:YU}=bc(),qU=Hi(),Xde=Ip(),Zde=(r,e)=>{if(e=Xde(e),r instanceof qU)return r;if(typeof r!="string"||r.length>Vde||!(e.loose?GU[YU.LOOSE]:GU[YU.FULL]).test(r))return null;try{return new qU(r,e)}catch(i){return null}};jU.exports=Zde});var WU=w((QZe,JU)=>{var $de=Qc(),eCe=(r,e)=>{let t=$de(r,e);return t?t.version:null};JU.exports=eCe});var _U=w((SZe,zU)=>{var tCe=Qc(),rCe=(r,e)=>{let t=tCe(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};zU.exports=rCe});var XU=w((vZe,VU)=>{var iCe=Hi(),nCe=(r,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new iCe(r,t).inc(e,i).version}catch(n){return null}};VU.exports=nCe});var bs=w((xZe,ZU)=>{var $U=Hi(),sCe=(r,e,t)=>new $U(r,t).compare(new $U(e,t));ZU.exports=sCe});var bI=w((kZe,e2)=>{var oCe=bs(),aCe=(r,e,t)=>oCe(r,e,t)===0;e2.exports=aCe});var i2=w((PZe,t2)=>{var r2=Qc(),ACe=bI(),lCe=(r,e)=>{if(ACe(r,e))return null;{let t=r2(r),i=r2(e),n=t.prerelease.length||i.prerelease.length,s=n?"pre":"",o=n?"prerelease":"";for(let a in t)if((a==="major"||a==="minor"||a==="patch")&&t[a]!==i[a])return s+a;return o}};t2.exports=lCe});var s2=w((DZe,n2)=>{var cCe=Hi(),uCe=(r,e)=>new cCe(r,e).major;n2.exports=uCe});var a2=w((RZe,o2)=>{var gCe=Hi(),fCe=(r,e)=>new gCe(r,e).minor;o2.exports=fCe});var l2=w((FZe,A2)=>{var hCe=Hi(),pCe=(r,e)=>new hCe(r,e).patch;A2.exports=pCe});var u2=w((NZe,c2)=>{var dCe=Qc(),CCe=(r,e)=>{let t=dCe(r,e);return t&&t.prerelease.length?t.prerelease:null};c2.exports=CCe});var f2=w((LZe,g2)=>{var mCe=bs(),ECe=(r,e,t)=>mCe(e,r,t);g2.exports=ECe});var p2=w((TZe,h2)=>{var ICe=bs(),yCe=(r,e)=>ICe(r,e,!0);h2.exports=yCe});var QI=w((OZe,d2)=>{var C2=Hi(),wCe=(r,e,t)=>{let i=new C2(r,t),n=new C2(e,t);return i.compare(n)||i.compareBuild(n)};d2.exports=wCe});var E2=w((MZe,m2)=>{var BCe=QI(),bCe=(r,e)=>r.sort((t,i)=>BCe(t,i,e));m2.exports=bCe});var y2=w((KZe,I2)=>{var QCe=QI(),SCe=(r,e)=>r.sort((t,i)=>QCe(i,t,e));I2.exports=SCe});var wp=w((UZe,w2)=>{var vCe=bs(),xCe=(r,e,t)=>vCe(r,e,t)>0;w2.exports=xCe});var SI=w((HZe,B2)=>{var kCe=bs(),PCe=(r,e,t)=>kCe(r,e,t)<0;B2.exports=PCe});var lS=w((jZe,b2)=>{var DCe=bs(),RCe=(r,e,t)=>DCe(r,e,t)!==0;b2.exports=RCe});var vI=w((GZe,Q2)=>{var FCe=bs(),NCe=(r,e,t)=>FCe(r,e,t)>=0;Q2.exports=NCe});var xI=w((YZe,S2)=>{var LCe=bs(),TCe=(r,e,t)=>LCe(r,e,t)<=0;S2.exports=TCe});var cS=w((qZe,v2)=>{var OCe=bI(),MCe=lS(),KCe=wp(),UCe=vI(),HCe=SI(),jCe=xI(),GCe=(r,e,t,i)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return OCe(r,t,i);case"!=":return MCe(r,t,i);case">":return KCe(r,t,i);case">=":return UCe(r,t,i);case"<":return HCe(r,t,i);case"<=":return jCe(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};v2.exports=GCe});var k2=w((JZe,x2)=>{var YCe=Hi(),qCe=Qc(),{re:kI,t:PI}=bc(),JCe=(r,e)=>{if(r instanceof YCe)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(kI[PI.COERCE]);else{let i;for(;(i=kI[PI.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),kI[PI.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;kI[PI.COERCERTL].lastIndex=-1}return t===null?null:qCe(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};x2.exports=JCe});var D2=w((WZe,P2)=>{"use strict";P2.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Bp=w((zZe,R2)=>{"use strict";R2.exports=Gt;Gt.Node=Sc;Gt.create=Gt;function Gt(r){var e=this;if(e instanceof Gt||(e=new Gt),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var t=0,i=arguments.length;t1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)t=r(t,i.value,n),i=i.next;return t};Gt.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)t=r(t,i.value,n),i=i.prev;return t};Gt.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};Gt.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};Gt.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new Gt;if(ethis.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&ithis.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>r;i--,n=n.prev)t.push(n.value);return t};Gt.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,n=this.head;n!==null&&i{"use strict";var VCe=Bp(),vc=Symbol("max"),Ua=Symbol("length"),fg=Symbol("lengthCalculator"),bp=Symbol("allowStale"),xc=Symbol("maxAge"),Ha=Symbol("dispose"),N2=Symbol("noDisposeOnSet"),yi=Symbol("lruList"),oo=Symbol("cache"),L2=Symbol("updateAgeOnGet"),uS=()=>1,T2=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[vc]=e.max||Infinity,i=e.length||uS;if(this[fg]=typeof i!="function"?uS:i,this[bp]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[xc]=e.maxAge||0,this[Ha]=e.dispose,this[N2]=e.noDisposeOnSet||!1,this[L2]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[vc]=e||Infinity,Qp(this)}get max(){return this[vc]}set allowStale(e){this[bp]=!!e}get allowStale(){return this[bp]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[xc]=e,Qp(this)}get maxAge(){return this[xc]}set lengthCalculator(e){typeof e!="function"&&(e=uS),e!==this[fg]&&(this[fg]=e,this[Ua]=0,this[yi].forEach(t=>{t.length=this[fg](t.value,t.key),this[Ua]+=t.length})),Qp(this)}get lengthCalculator(){return this[fg]}get length(){return this[Ua]}get itemCount(){return this[yi].length}rforEach(e,t){t=t||this;for(let i=this[yi].tail;i!==null;){let n=i.prev;M2(this,e,i,t),i=n}}forEach(e,t){t=t||this;for(let i=this[yi].head;i!==null;){let n=i.next;M2(this,e,i,t),i=n}}keys(){return this[yi].toArray().map(e=>e.key)}values(){return this[yi].toArray().map(e=>e.value)}reset(){this[Ha]&&this[yi]&&this[yi].length&&this[yi].forEach(e=>this[Ha](e.key,e.value)),this[oo]=new Map,this[yi]=new VCe,this[Ua]=0}dump(){return this[yi].map(e=>DI(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[yi]}set(e,t,i){if(i=i||this[xc],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let n=i?Date.now():0,s=this[fg](t,e);if(this[oo].has(e)){if(s>this[vc])return hg(this,this[oo].get(e)),!1;let l=this[oo].get(e).value;return this[Ha]&&(this[N2]||this[Ha](e,l.value)),l.now=n,l.maxAge=i,l.value=t,this[Ua]+=s-l.length,l.length=s,this.get(e),Qp(this),!0}let o=new O2(e,t,s,n,i);return o.length>this[vc]?(this[Ha]&&this[Ha](e,t),!1):(this[Ua]+=o.length,this[yi].unshift(o),this[oo].set(e,this[yi].head),Qp(this),!0)}has(e){if(!this[oo].has(e))return!1;let t=this[oo].get(e).value;return!DI(this,t)}get(e){return gS(this,e,!0)}peek(e){return gS(this,e,!1)}pop(){let e=this[yi].tail;return e?(hg(this,e),e.value):null}del(e){hg(this,this[oo].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let n=e[i],s=n.e||0;if(s===0)this.set(n.k,n.v);else{let o=s-t;o>0&&this.set(n.k,n.v,o)}}}prune(){this[oo].forEach((e,t)=>gS(this,t,!1))}},gS=(r,e,t)=>{let i=r[oo].get(e);if(i){let n=i.value;if(DI(r,n)){if(hg(r,i),!r[bp])return}else t&&(r[L2]&&(i.value.now=Date.now()),r[yi].unshiftNode(i));return n.value}},DI=(r,e)=>{if(!e||!e.maxAge&&!r[xc])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[xc]&&t>r[xc]},Qp=r=>{if(r[Ua]>r[vc])for(let e=r[yi].tail;r[Ua]>r[vc]&&e!==null;){let t=e.prev;hg(r,e),e=t}},hg=(r,e)=>{if(e){let t=e.value;r[Ha]&&r[Ha](t.key,t.value),r[Ua]-=t.length,r[oo].delete(t.key),r[yi].removeNode(e)}},O2=class{constructor(e,t,i,n,s){this.key=e,this.value=t,this.length=i,this.now=n,this.maxAge=s||0}},M2=(r,e,t,i)=>{let n=t.value;DI(r,n)&&(hg(r,t),r[bp]||(n=void 0)),n&&e.call(i,n.value,n.key,r)};F2.exports=T2});var Qs=w((VZe,U2)=>{var pg=class{constructor(e,t){if(t=XCe(t),e instanceof pg)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new pg(e.raw,t);if(e instanceof fS)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!j2(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&rme(n[0])){this.set=[n];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=H2.get(i);if(n)return n;let s=this.options.loose,o=s?ji[ki.HYPHENRANGELOOSE]:ji[ki.HYPHENRANGE];e=e.replace(o,sme(this.options.includePrerelease)),zr("hyphen replace",e),e=e.replace(ji[ki.COMPARATORTRIM],$Ce),zr("comparator trim",e,ji[ki.COMPARATORTRIM]),e=e.replace(ji[ki.TILDETRIM],eme),e=e.replace(ji[ki.CARETTRIM],tme),e=e.split(/\s+/).join(" ");let a=s?ji[ki.COMPARATORLOOSE]:ji[ki.COMPARATOR],l=e.split(" ").map(f=>ime(f,this.options)).join(" ").split(/\s+/).map(f=>nme(f,this.options)).filter(this.options.loose?f=>!!f.match(a):()=>!0).map(f=>new fS(f,this.options)),c=l.length,u=new Map;for(let f of l){if(j2(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let g=[...u.values()];return H2.set(i,g),g}intersects(e,t){if(!(e instanceof pg))throw new TypeError("a Range is required");return this.set.some(i=>G2(i,t)&&e.set.some(n=>G2(n,t)&&i.every(s=>n.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ZCe(e,this.options)}catch(t){return!1}for(let t=0;tr.value==="<0.0.0-0",rme=r=>r.value==="",G2=(r,e)=>{let t=!0,i=r.slice(),n=i.pop();for(;t&&i.length;)t=i.every(s=>n.intersects(s,e)),n=i.pop();return t},ime=(r,e)=>(zr("comp",r,e),r=lme(r,e),zr("caret",r),r=Ame(r,e),zr("tildes",r),r=cme(r,e),zr("xrange",r),r=ume(r,e),zr("stars",r),r),on=r=>!r||r.toLowerCase()==="x"||r==="*",Ame=(r,e)=>r.trim().split(/\s+/).map(t=>gme(t,e)).join(" "),gme=(r,e)=>{let t=e.loose?ji[ki.TILDELOOSE]:ji[ki.TILDE];return r.replace(t,(i,n,s,o,a)=>{zr("tilde",r,i,n,s,o,a);let l;return on(n)?l="":on(s)?l=`>=${n}.0.0 <${+n+1}.0.0-0`:on(o)?l=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:a?(zr("replaceTilde pr",a),l=`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`):l=`>=${n}.${s}.${o} <${n}.${+s+1}.0-0`,zr("tilde return",l),l})},lme=(r,e)=>r.trim().split(/\s+/).map(t=>fme(t,e)).join(" "),fme=(r,e)=>{zr("caret",r,e);let t=e.loose?ji[ki.CARETLOOSE]:ji[ki.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(n,s,o,a,l)=>{zr("caret",r,n,s,o,a,l);let c;return on(s)?c="":on(o)?c=`>=${s}.0.0${i} <${+s+1}.0.0-0`:on(a)?s==="0"?c=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:l?(zr("replaceCaret pr",l),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${l} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${l} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${l} <${+s+1}.0.0-0`):(zr("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${i} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${i} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),zr("caret return",c),c})},cme=(r,e)=>(zr("replaceXRanges",r,e),r.split(/\s+/).map(t=>hme(t,e)).join(" ")),hme=(r,e)=>{r=r.trim();let t=e.loose?ji[ki.XRANGELOOSE]:ji[ki.XRANGE];return r.replace(t,(i,n,s,o,a,l)=>{zr("xRange",r,i,n,s,o,a,l);let c=on(s),u=c||on(o),g=u||on(a),f=g;return n==="="&&f&&(n=""),l=e.includePrerelease?"-0":"",c?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&f?(u&&(o=0),a=0,n===">"?(n=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):n==="<="&&(n="<",u?s=+s+1:o=+o+1),n==="<"&&(l="-0"),i=`${n+s}.${o}.${a}${l}`):u?i=`>=${s}.0.0${l} <${+s+1}.0.0-0`:g&&(i=`>=${s}.${o}.0${l} <${s}.${+o+1}.0-0`),zr("xRange return",i),i})},ume=(r,e)=>(zr("replaceStars",r,e),r.trim().replace(ji[ki.STAR],"")),nme=(r,e)=>(zr("replaceGTE0",r,e),r.trim().replace(ji[e.includePrerelease?ki.GTE0PRE:ki.GTE0],"")),sme=r=>(e,t,i,n,s,o,a,l,c,u,g,f,h)=>(on(i)?t="":on(n)?t=`>=${i}.0.0${r?"-0":""}`:on(s)?t=`>=${i}.${n}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,on(c)?l="":on(u)?l=`<${+c+1}.0.0-0`:on(g)?l=`<${c}.${+u+1}.0-0`:f?l=`<=${c}.${u}.${g}-${f}`:r?l=`<${c}.${u}.${+g+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),ome=(r,e,t)=>{for(let i=0;i0){let n=r[i].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var Sp=w((XZe,Y2)=>{var vp=Symbol("SemVer ANY"),xp=class{static get ANY(){return vp}constructor(e,t){if(t=pme(t),e instanceof xp){if(e.loose===!!t.loose)return e;e=e.value}pS("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===vp?this.value="":this.value=this.operator+this.semver.version,pS("comp",this)}parse(e){let t=this.options.loose?q2[J2.COMPARATORLOOSE]:q2[J2.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new W2(i[2],this.options.loose):this.semver=vp}toString(){return this.value}test(e){if(pS("Comparator.test",e,this.options.loose),this.semver===vp||e===vp)return!0;if(typeof e=="string")try{e=new W2(e,this.options)}catch(t){return!1}return hS(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof xp))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new z2(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new z2(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=hS(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=hS(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||n||s&&o||a||l}};Y2.exports=xp;var pme=Ip(),{re:q2,t:J2}=bc(),hS=cS(),pS=Ep(),W2=Hi(),z2=Qs()});var kp=w((ZZe,_2)=>{var dme=Qs(),Cme=(r,e,t)=>{try{e=new dme(e,t)}catch(i){return!1}return e.test(r)};_2.exports=Cme});var X2=w(($Ze,V2)=>{var mme=Qs(),Eme=(r,e)=>new mme(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));V2.exports=Eme});var $2=w((e$e,Z2)=>{var Ime=Hi(),yme=Qs(),wme=(r,e,t)=>{let i=null,n=null,s=null;try{s=new yme(e,t)}catch(o){return null}return r.forEach(o=>{s.test(o)&&(!i||n.compare(o)===-1)&&(i=o,n=new Ime(i,t))}),i};Z2.exports=wme});var tH=w((t$e,eH)=>{var Bme=Hi(),bme=Qs(),Qme=(r,e,t)=>{let i=null,n=null,s=null;try{s=new bme(e,t)}catch(o){return null}return r.forEach(o=>{s.test(o)&&(!i||n.compare(o)===1)&&(i=o,n=new Bme(i,t))}),i};eH.exports=Qme});var nH=w((r$e,rH)=>{var dS=Hi(),Sme=Qs(),iH=wp(),vme=(r,e)=>{r=new Sme(r,e);let t=new dS("0.0.0");if(r.test(t)||(t=new dS("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i{let a=new dS(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||iH(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!t||iH(t,s))&&(t=s)}return t&&r.test(t)?t:null};rH.exports=vme});var oH=w((i$e,sH)=>{var xme=Qs(),kme=(r,e)=>{try{return new xme(r,e).range||"*"}catch(t){return null}};sH.exports=kme});var RI=w((n$e,aH)=>{var Pme=Hi(),AH=Sp(),{ANY:Dme}=AH,Rme=Qs(),Fme=kp(),lH=wp(),cH=SI(),Nme=xI(),Lme=vI(),Tme=(r,e,t,i)=>{r=new Pme(r,i),e=new Rme(e,i);let n,s,o,a,l;switch(t){case">":n=lH,s=Nme,o=cH,a=">",l=">=";break;case"<":n=cH,s=Lme,o=lH,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Fme(r,e,i))return!1;for(let c=0;c{h.semver===Dme&&(h=new AH(">=0.0.0")),g=g||h,f=f||h,n(h.semver,g.semver,i)?g=h:o(h.semver,f.semver,i)&&(f=h)}),g.operator===a||g.operator===l||(!f.operator||f.operator===a)&&s(r,f.semver))return!1;if(f.operator===l&&o(r,f.semver))return!1}return!0};aH.exports=Tme});var gH=w((s$e,uH)=>{var Ome=RI(),Mme=(r,e,t)=>Ome(r,e,">",t);uH.exports=Mme});var hH=w((o$e,fH)=>{var Kme=RI(),Ume=(r,e,t)=>Kme(r,e,"<",t);fH.exports=Ume});var CH=w((a$e,pH)=>{var dH=Qs(),Hme=(r,e,t)=>(r=new dH(r,t),e=new dH(e,t),r.intersects(e));pH.exports=Hme});var EH=w((A$e,mH)=>{var jme=kp(),Gme=bs();mH.exports=(r,e,t)=>{let i=[],n=null,s=null,o=r.sort((u,g)=>Gme(u,g,t));for(let u of o)jme(u,e,t)?(s=u,n||(n=u)):(s&&i.push([n,s]),s=null,n=null);n&&i.push([n,null]);let a=[];for(let[u,g]of i)u===g?a.push(u):!g&&u===o[0]?a.push("*"):g?u===o[0]?a.push(`<=${g}`):a.push(`${u} - ${g}`):a.push(`>=${u}`);let l=a.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length{var yH=Qs(),FI=Sp(),{ANY:CS}=FI,Pp=kp(),mS=bs(),qme=(r,e,t={})=>{if(r===e)return!0;r=new yH(r,t),e=new yH(e,t);let i=!1;e:for(let n of r.set){for(let s of e.set){let o=Yme(n,s,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Yme=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===CS){if(e.length===1&&e[0].semver===CS)return!0;t.includePrerelease?r=[new FI(">=0.0.0-0")]:r=[new FI(">=0.0.0")]}if(e.length===1&&e[0].semver===CS){if(t.includePrerelease)return!0;e=[new FI(">=0.0.0")]}let i=new Set,n,s;for(let h of r)h.operator===">"||h.operator===">="?n=wH(n,h,t):h.operator==="<"||h.operator==="<="?s=BH(s,h,t):i.add(h.semver);if(i.size>1)return null;let o;if(n&&s){if(o=mS(n.semver,s.semver,t),o>0)return null;if(o===0&&(n.operator!==">="||s.operator!=="<="))return null}for(let h of i){if(n&&!Pp(h,String(n),t)||s&&!Pp(h,String(s),t))return null;for(let p of e)if(!Pp(h,String(p),t))return!1;return!0}let a,l,c,u,g=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1,f=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1;g&&g.prerelease.length===1&&s.operator==="<"&&g.prerelease[0]===0&&(g=!1);for(let h of e){if(u=u||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",n){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator===">"||h.operator===">="){if(a=wH(n,h,t),a===h&&a!==n)return!1}else if(n.operator===">="&&!Pp(n.semver,String(h),t))return!1}if(s){if(g&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===g.major&&h.semver.minor===g.minor&&h.semver.patch===g.patch&&(g=!1),h.operator==="<"||h.operator==="<="){if(l=BH(s,h,t),l===h&&l!==s)return!1}else if(s.operator==="<="&&!Pp(s.semver,String(h),t))return!1}if(!h.operator&&(s||n)&&o!==0)return!1}return!(n&&c&&!s&&o!==0||s&&u&&!n&&o!==0||f||g)},wH=(r,e,t)=>{if(!r)return e;let i=mS(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},BH=(r,e,t)=>{if(!r)return e;let i=mS(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};IH.exports=qme});var ri=w((c$e,QH)=>{var ES=bc();QH.exports={re:ES.re,src:ES.src,tokens:ES.t,SEMVER_SPEC_VERSION:mp().SEMVER_SPEC_VERSION,SemVer:Hi(),compareIdentifiers:yI().compareIdentifiers,rcompareIdentifiers:yI().rcompareIdentifiers,parse:Qc(),valid:WU(),clean:_U(),inc:XU(),diff:i2(),major:s2(),minor:a2(),patch:l2(),prerelease:u2(),compare:bs(),rcompare:f2(),compareLoose:p2(),compareBuild:QI(),sort:E2(),rsort:y2(),gt:wp(),lt:SI(),eq:bI(),neq:lS(),gte:vI(),lte:xI(),cmp:cS(),coerce:k2(),Comparator:Sp(),Range:Qs(),satisfies:kp(),toComparators:X2(),maxSatisfying:$2(),minSatisfying:tH(),minVersion:nH(),validRange:oH(),outside:RI(),gtr:gH(),ltr:hH(),intersects:CH(),simplifyRange:EH(),subset:bH()}});var IS=w(NI=>{"use strict";Object.defineProperty(NI,"__esModule",{value:!0});NI.VERSION=void 0;NI.VERSION="9.1.0"});var Yt=w((exports,module)=>{"use strict";var __spreadArray=exports&&exports.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,s;i{(function(r,e){typeof define=="function"&&define.amd?define([],e):typeof LI=="object"&&LI.exports?LI.exports=e():r.regexpToAst=e()})(typeof self!="undefined"?self:SH,function(){function r(){}r.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},r.prototype.restoreState=function(p){this.idx=p.idx,this.input=p.input,this.groupIdx=p.groupIdx},r.prototype.pattern=function(p){this.idx=0,this.input=p,this.groupIdx=0,this.consumeChar("/");var m=this.disjunction();this.consumeChar("/");for(var y={type:"Flags",loc:{begin:this.idx,end:p.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":o(y,"global");break;case"i":o(y,"ignoreCase");break;case"m":o(y,"multiLine");break;case"u":o(y,"unicode");break;case"y":o(y,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:y,value:m,loc:this.loc(0)}},r.prototype.disjunction=function(){var p=[],m=this.idx;for(p.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),p.push(this.alternative());return{type:"Disjunction",value:p,loc:this.loc(m)}},r.prototype.alternative=function(){for(var p=[],m=this.idx;this.isTerm();)p.push(this.term());return{type:"Alternative",value:p,loc:this.loc(m)}},r.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},r.prototype.assertion=function(){var p=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(p)};case"$":return{type:"EndAnchor",loc:this.loc(p)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(p)};case"B":return{type:"NonWordBoundary",loc:this.loc(p)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var m;switch(this.popChar()){case"=":m="Lookahead";break;case"!":m="NegativeLookahead";break}a(m);var y=this.disjunction();return this.consumeChar(")"),{type:m,value:y,loc:this.loc(p)}}l()},r.prototype.quantifier=function(p){var m,y=this.idx;switch(this.popChar()){case"*":m={atLeast:0,atMost:Infinity};break;case"+":m={atLeast:1,atMost:Infinity};break;case"?":m={atLeast:0,atMost:1};break;case"{":var b=this.integerIncludingZero();switch(this.popChar()){case"}":m={atLeast:b,atMost:b};break;case",":var v;this.isDigit()?(v=this.integerIncludingZero(),m={atLeast:b,atMost:v}):m={atLeast:b,atMost:Infinity},this.consumeChar("}");break}if(p===!0&&m===void 0)return;a(m);break}if(!(p===!0&&m===void 0))return a(m),this.peekChar(0)==="?"?(this.consumeChar("?"),m.greedy=!1):m.greedy=!0,m.type="Quantifier",m.loc=this.loc(y),m},r.prototype.atom=function(){var p,m=this.idx;switch(this.peekChar()){case".":p=this.dotAll();break;case"\\":p=this.atomEscape();break;case"[":p=this.characterClass();break;case"(":p=this.group();break}return p===void 0&&this.isPatternCharacter()&&(p=this.patternCharacter()),a(p),p.loc=this.loc(m),this.isQuantifier()&&(p.quantifier=this.quantifier()),p},r.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[n(` +`),n("\r"),n("\u2028"),n("\u2029")]}},r.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},r.prototype.decimalEscapeAtom=function(){var p=this.positiveInteger();return{type:"GroupBackReference",value:p}},r.prototype.characterClassEscape=function(){var p,m=!1;switch(this.popChar()){case"d":p=u;break;case"D":p=u,m=!0;break;case"s":p=f;break;case"S":p=f,m=!0;break;case"w":p=g;break;case"W":p=g,m=!0;break}return a(p),{type:"Set",value:p,complement:m}},r.prototype.controlEscapeAtom=function(){var p;switch(this.popChar()){case"f":p=n("\f");break;case"n":p=n(` +`);break;case"r":p=n("\r");break;case"t":p=n(" ");break;case"v":p=n("\v");break}return a(p),{type:"Character",value:p}},r.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var p=this.popChar();if(/[a-zA-Z]/.test(p)===!1)throw Error("Invalid ");var m=p.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:m}},r.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:n("\0")}},r.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},r.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},r.prototype.identityEscapeAtom=function(){var p=this.popChar();return{type:"Character",value:n(p)}},r.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var p=this.popChar();return{type:"Character",value:n(p)}}},r.prototype.characterClass=function(){var p=[],m=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),m=!0);this.isClassAtom();){var y=this.classAtom(),b=y.type==="Character";if(b&&this.isRangeDash()){this.consumeChar("-");var v=this.classAtom(),x=v.type==="Character";if(x){if(v.value=this.input.length)throw Error("Unexpected end of input");this.idx++},r.prototype.loc=function(p){return{begin:p,end:this.idx}};var e=/[0-9a-fA-F]/,t=/[0-9]/,i=/[1-9]/;function n(p){return p.charCodeAt(0)}function s(p,m){p.length!==void 0?p.forEach(function(y){m.push(y)}):m.push(p)}function o(p,m){if(p[m]===!0)throw"duplicate flag "+m;p[m]=!0}function a(p){if(p===void 0)throw Error("Internal Error - Should never get here!")}function l(){throw Error("Internal Error - Should never get here!")}var c,u=[];for(c=n("0");c<=n("9");c++)u.push(c);var g=[n("_")].concat(u);for(c=n("a");c<=n("z");c++)g.push(c);for(c=n("A");c<=n("Z");c++)g.push(c);var f=[n(" "),n("\f"),n(` +`),n("\r"),n(" "),n("\v"),n(" "),n("\xA0"),n("\u1680"),n("\u2000"),n("\u2001"),n("\u2002"),n("\u2003"),n("\u2004"),n("\u2005"),n("\u2006"),n("\u2007"),n("\u2008"),n("\u2009"),n("\u200A"),n("\u2028"),n("\u2029"),n("\u202F"),n("\u205F"),n("\u3000"),n("\uFEFF")];function h(){}return h.prototype.visitChildren=function(p){for(var m in p){var y=p[m];p.hasOwnProperty(m)&&(y.type!==void 0?this.visit(y):Array.isArray(y)&&y.forEach(function(b){this.visit(b)},this))}},h.prototype.visit=function(p){switch(p.type){case"Pattern":this.visitPattern(p);break;case"Flags":this.visitFlags(p);break;case"Disjunction":this.visitDisjunction(p);break;case"Alternative":this.visitAlternative(p);break;case"StartAnchor":this.visitStartAnchor(p);break;case"EndAnchor":this.visitEndAnchor(p);break;case"WordBoundary":this.visitWordBoundary(p);break;case"NonWordBoundary":this.visitNonWordBoundary(p);break;case"Lookahead":this.visitLookahead(p);break;case"NegativeLookahead":this.visitNegativeLookahead(p);break;case"Character":this.visitCharacter(p);break;case"Set":this.visitSet(p);break;case"Group":this.visitGroup(p);break;case"GroupBackReference":this.visitGroupBackReference(p);break;case"Quantifier":this.visitQuantifier(p);break}this.visitChildren(p)},h.prototype.visitPattern=function(p){},h.prototype.visitFlags=function(p){},h.prototype.visitDisjunction=function(p){},h.prototype.visitAlternative=function(p){},h.prototype.visitStartAnchor=function(p){},h.prototype.visitEndAnchor=function(p){},h.prototype.visitWordBoundary=function(p){},h.prototype.visitNonWordBoundary=function(p){},h.prototype.visitLookahead=function(p){},h.prototype.visitNegativeLookahead=function(p){},h.prototype.visitCharacter=function(p){},h.prototype.visitSet=function(p){},h.prototype.visitGroup=function(p){},h.prototype.visitGroupBackReference=function(p){},h.prototype.visitQuantifier=function(p){},{RegExpParser:r,BaseRegExpVisitor:h,VERSION:"0.5.0"}})});var MI=w(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.clearRegExpParserCache=dg.getRegExpAst=void 0;var Jme=TI(),OI={},Wme=new Jme.RegExpParser;function zme(r){var e=r.toString();if(OI.hasOwnProperty(e))return OI[e];var t=Wme.pattern(e);return OI[e]=t,t}dg.getRegExpAst=zme;function _me(){OI={}}dg.clearRegExpParserCache=_me});var DH=w(Bn=>{"use strict";var Vme=Bn&&Bn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.canMatchCharCode=Bn.firstCharOptimizedIndices=Bn.getOptimizedStartCodesIndices=Bn.failedOptimizationPrefixMsg=void 0;var vH=TI(),Ss=Yt(),xH=MI(),ja=yS(),kH="Complement Sets are not supported for first char optimization";Bn.failedOptimizationPrefixMsg=`Unable to use "first char" lexer optimizations: +`;function Xme(r,e){e===void 0&&(e=!1);try{var t=(0,xH.getRegExpAst)(r),i=KI(t.value,{},t.flags.ignoreCase);return i}catch(s){if(s.message===kH)e&&(0,Ss.PRINT_WARNING)(""+Bn.failedOptimizationPrefixMsg+(" Unable to optimize: < "+r.toString()+` > +`)+` Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var n="";e&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),(0,Ss.PRINT_ERROR)(Bn.failedOptimizationPrefixMsg+` +`+(" Failed parsing: < "+r.toString()+` > +`)+(" Using the regexp-to-ast library version: "+vH.VERSION+` +`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}Bn.getOptimizedStartCodesIndices=Xme;function KI(r,e,t){switch(r.type){case"Disjunction":for(var i=0;i=ja.minOptimizationVal)for(var f=u.from>=ja.minOptimizationVal?u.from:ja.minOptimizationVal,h=u.to,p=(0,ja.charCodeToOptimizedIndex)(f),m=(0,ja.charCodeToOptimizedIndex)(h),y=p;y<=m;y++)e[y]=y}}});break;case"Group":KI(o.value,e,t);break;default:throw Error("Non Exhaustive Match")}var a=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&wS(o)===!1||o.type!=="Group"&&a===!1)break}break;default:throw Error("non exhaustive match!")}return(0,Ss.values)(e)}Bn.firstCharOptimizedIndices=KI;function UI(r,e,t){var i=(0,ja.charCodeToOptimizedIndex)(r);e[i]=i,t===!0&&Zme(r,e)}function Zme(r,e){var t=String.fromCharCode(r),i=t.toUpperCase();if(i!==t){var n=(0,ja.charCodeToOptimizedIndex)(i.charCodeAt(0));e[n]=n}else{var s=t.toLowerCase();if(s!==t){var n=(0,ja.charCodeToOptimizedIndex)(s.charCodeAt(0));e[n]=n}}}function PH(r,e){return(0,Ss.find)(r.value,function(t){if(typeof t=="number")return(0,Ss.contains)(e,t);var i=t;return(0,Ss.find)(e,function(n){return i.from<=n&&n<=i.to})!==void 0})}function wS(r){return r.quantifier&&r.quantifier.atLeast===0?!0:r.value?(0,Ss.isArray)(r.value)?(0,Ss.every)(r.value,wS):wS(r.value):!1}var $me=function(r){Vme(e,r);function e(t){var i=r.call(this)||this;return i.targetCharCodes=t,i.found=!1,i}return e.prototype.visitChildren=function(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}r.prototype.visitChildren.call(this,t)}},e.prototype.visitCharacter=function(t){(0,Ss.contains)(this.targetCharCodes,t.value)&&(this.found=!0)},e.prototype.visitSet=function(t){t.complement?PH(t,this.targetCharCodes)===void 0&&(this.found=!0):PH(t,this.targetCharCodes)!==void 0&&(this.found=!0)},e}(vH.BaseRegExpVisitor);function eEe(r,e){if(e instanceof RegExp){var t=(0,xH.getRegExpAst)(e),i=new $me(r);return i.visit(t),i.found}else return(0,Ss.find)(e,function(n){return(0,Ss.contains)(r,n.charCodeAt(0))})!==void 0}Bn.canMatchCharCode=eEe});var yS=w(Ze=>{"use strict";var RH=Ze&&Ze.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.charCodeToOptimizedIndex=Ze.minOptimizationVal=Ze.buildLineBreakIssueMessage=Ze.LineTerminatorOptimizedTester=Ze.isShortPattern=Ze.isCustomPattern=Ze.cloneEmptyGroups=Ze.performWarningRuntimeChecks=Ze.performRuntimeChecks=Ze.addStickyFlag=Ze.addStartOfInput=Ze.findUnreachablePatterns=Ze.findModesThatDoNotExist=Ze.findInvalidGroupType=Ze.findDuplicatePatterns=Ze.findUnsupportedFlags=Ze.findStartOfInputAnchor=Ze.findEmptyMatchRegExps=Ze.findEndOfInputAnchor=Ze.findInvalidPatterns=Ze.findMissingPatterns=Ze.validatePatterns=Ze.analyzeTokenTypes=Ze.enableSticky=Ze.disableSticky=Ze.SUPPORT_STICKY=Ze.MODES=Ze.DEFAULT_MODE=void 0;var FH=TI(),Ar=Dp(),Ne=Yt(),Cg=DH(),NH=MI(),Mo="PATTERN";Ze.DEFAULT_MODE="defaultMode";Ze.MODES="modes";Ze.SUPPORT_STICKY=typeof new RegExp("(?:)").sticky=="boolean";function tEe(){Ze.SUPPORT_STICKY=!1}Ze.disableSticky=tEe;function rEe(){Ze.SUPPORT_STICKY=!0}Ze.enableSticky=rEe;function nEe(r,e){e=(0,Ne.defaults)(e,{useSticky:Ze.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:function(v,x){return x()}});var t=e.tracer;t("initCharCodeToOptimizedIndexMap",function(){iEe()});var i;t("Reject Lexer.NA",function(){i=(0,Ne.reject)(r,function(v){return v[Mo]===Ar.Lexer.NA})});var n=!1,s;t("Transform Patterns",function(){n=!1,s=(0,Ne.map)(i,function(v){var x=v[Mo];if((0,Ne.isRegExp)(x)){var T=x.source;return T.length===1&&T!=="^"&&T!=="$"&&T!=="."&&!x.ignoreCase?T:T.length===2&&T[0]==="\\"&&!(0,Ne.contains)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],T[1])?T[1]:e.useSticky?bS(x):BS(x)}else{if((0,Ne.isFunction)(x))return n=!0,{exec:x};if((0,Ne.has)(x,"exec"))return n=!0,x;if(typeof x=="string"){if(x.length===1)return x;var q=x.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),Y=new RegExp(q);return e.useSticky?bS(Y):BS(Y)}else throw Error("non exhaustive match")}})});var o,a,l,c,u;t("misc mapping",function(){o=(0,Ne.map)(i,function(v){return v.tokenTypeIdx}),a=(0,Ne.map)(i,function(v){var x=v.GROUP;if(x!==Ar.Lexer.SKIPPED){if((0,Ne.isString)(x))return x;if((0,Ne.isUndefined)(x))return!1;throw Error("non exhaustive match")}}),l=(0,Ne.map)(i,function(v){var x=v.LONGER_ALT;if(x){var T=(0,Ne.isArray)(x)?(0,Ne.map)(x,function(q){return(0,Ne.indexOf)(i,q)}):[(0,Ne.indexOf)(i,x)];return T}}),c=(0,Ne.map)(i,function(v){return v.PUSH_MODE}),u=(0,Ne.map)(i,function(v){return(0,Ne.has)(v,"POP_MODE")})});var g;t("Line Terminator Handling",function(){var v=OH(e.lineTerminatorCharacters);g=(0,Ne.map)(i,function(x){return!1}),e.positionTracking!=="onlyOffset"&&(g=(0,Ne.map)(i,function(x){if((0,Ne.has)(x,"LINE_BREAKS"))return x.LINE_BREAKS;if(TH(x,v)===!1)return(0,Cg.canMatchCharCode)(v,x.PATTERN)}))});var f,h,p,m;t("Misc Mapping #2",function(){f=(0,Ne.map)(i,QS),h=(0,Ne.map)(s,LH),p=(0,Ne.reduce)(i,function(v,x){var T=x.GROUP;return(0,Ne.isString)(T)&&T!==Ar.Lexer.SKIPPED&&(v[T]=[]),v},{}),m=(0,Ne.map)(s,function(v,x){return{pattern:s[x],longerAlt:l[x],canLineTerminator:g[x],isCustom:f[x],short:h[x],group:a[x],push:c[x],pop:u[x],tokenTypeIdx:o[x],tokenType:i[x]}})});var y=!0,b=[];return e.safeMode||t("First Char Optimization",function(){b=(0,Ne.reduce)(i,function(v,x,T){if(typeof x.PATTERN=="string"){var q=x.PATTERN.charCodeAt(0),Y=vS(q);SS(v,Y,m[T])}else if((0,Ne.isArray)(x.START_CHARS_HINT)){var $;(0,Ne.forEach)(x.START_CHARS_HINT,function(ne){var ee=typeof ne=="string"?ne.charCodeAt(0):ne,A=vS(ee);$!==A&&($=A,SS(v,A,m[T]))})}else if((0,Ne.isRegExp)(x.PATTERN))if(x.PATTERN.unicode)y=!1,e.ensureOptimizations&&(0,Ne.PRINT_ERROR)(""+Cg.failedOptimizationPrefixMsg+(" Unable to analyze < "+x.PATTERN.toString()+` > pattern. +`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var _=(0,Cg.getOptimizedStartCodesIndices)(x.PATTERN,e.ensureOptimizations);(0,Ne.isEmpty)(_)&&(y=!1),(0,Ne.forEach)(_,function(ne){SS(v,ne,m[T])})}else e.ensureOptimizations&&(0,Ne.PRINT_ERROR)(""+Cg.failedOptimizationPrefixMsg+(" TokenType: <"+x.name+`> is using a custom token pattern without providing parameter. +`)+` This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return v},[])}),t("ArrayPacking",function(){b=(0,Ne.packArray)(b)}),{emptyGroups:p,patternIdxToConfig:m,charCodeToPatternIdxToConfig:b,hasCustom:n,canBeOptimized:y}}Ze.analyzeTokenTypes=nEe;function oEe(r,e){var t=[],i=MH(r);t=t.concat(i.errors);var n=KH(i.valid),s=n.valid;return t=t.concat(n.errors),t=t.concat(sEe(s)),t=t.concat(UH(s)),t=t.concat(HH(s,e)),t=t.concat(jH(s)),t}Ze.validatePatterns=oEe;function sEe(r){var e=[],t=(0,Ne.filter)(r,function(i){return(0,Ne.isRegExp)(i[Mo])});return e=e.concat(GH(t)),e=e.concat(qH(t)),e=e.concat(JH(t)),e=e.concat(WH(t)),e=e.concat(YH(t)),e}function MH(r){var e=(0,Ne.filter)(r,function(n){return!(0,Ne.has)(n,Mo)}),t=(0,Ne.map)(e,function(n){return{message:"Token Type: ->"+n.name+"<- missing static 'PATTERN' property",type:Ar.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[n]}}),i=(0,Ne.difference)(r,e);return{errors:t,valid:i}}Ze.findMissingPatterns=MH;function KH(r){var e=(0,Ne.filter)(r,function(n){var s=n[Mo];return!(0,Ne.isRegExp)(s)&&!(0,Ne.isFunction)(s)&&!(0,Ne.has)(s,"exec")&&!(0,Ne.isString)(s)}),t=(0,Ne.map)(e,function(n){return{message:"Token Type: ->"+n.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Ar.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[n]}}),i=(0,Ne.difference)(r,e);return{errors:t,valid:i}}Ze.findInvalidPatterns=KH;var aEe=/[^\\][\$]/;function GH(r){var e=function(n){RH(s,n);function s(){var o=n!==null&&n.apply(this,arguments)||this;return o.found=!1,o}return s.prototype.visitEndAnchor=function(o){this.found=!0},s}(FH.BaseRegExpVisitor),t=(0,Ne.filter)(r,function(n){var s=n[Mo];try{var o=(0,NH.getRegExpAst)(s),a=new e;return a.visit(o),a.found}catch(l){return aEe.test(s.source)}}),i=(0,Ne.map)(t,function(n){return{message:`Unexpected RegExp Anchor Error: + Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ar.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[n]}});return i}Ze.findEndOfInputAnchor=GH;function YH(r){var e=(0,Ne.filter)(r,function(i){var n=i[Mo];return n.test("")}),t=(0,Ne.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:Ar.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return t}Ze.findEmptyMatchRegExps=YH;var AEe=/[^\\[][\^]|^\^/;function qH(r){var e=function(n){RH(s,n);function s(){var o=n!==null&&n.apply(this,arguments)||this;return o.found=!1,o}return s.prototype.visitStartAnchor=function(o){this.found=!0},s}(FH.BaseRegExpVisitor),t=(0,Ne.filter)(r,function(n){var s=n[Mo];try{var o=(0,NH.getRegExpAst)(s),a=new e;return a.visit(o),a.found}catch(l){return AEe.test(s.source)}}),i=(0,Ne.map)(t,function(n){return{message:`Unexpected RegExp Anchor Error: + Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ar.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[n]}});return i}Ze.findStartOfInputAnchor=qH;function JH(r){var e=(0,Ne.filter)(r,function(i){var n=i[Mo];return n instanceof RegExp&&(n.multiline||n.global)}),t=(0,Ne.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Ar.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return t}Ze.findUnsupportedFlags=JH;function WH(r){var e=[],t=(0,Ne.map)(r,function(s){return(0,Ne.reduce)(r,function(o,a){return s.PATTERN.source===a.PATTERN.source&&!(0,Ne.contains)(e,a)&&a.PATTERN!==Ar.Lexer.NA&&(e.push(a),o.push(a)),o},[])});t=(0,Ne.compact)(t);var i=(0,Ne.filter)(t,function(s){return s.length>1}),n=(0,Ne.map)(i,function(s){var o=(0,Ne.map)(s,function(l){return l.name}),a=(0,Ne.first)(s).PATTERN;return{message:"The same RegExp pattern ->"+a+"<-"+("has been used in all of the following Token Types: "+o.join(", ")+" <-"),type:Ar.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:s}});return n}Ze.findDuplicatePatterns=WH;function UH(r){var e=(0,Ne.filter)(r,function(i){if(!(0,Ne.has)(i,"GROUP"))return!1;var n=i.GROUP;return n!==Ar.Lexer.SKIPPED&&n!==Ar.Lexer.NA&&!(0,Ne.isString)(n)}),t=(0,Ne.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Ar.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return t}Ze.findInvalidGroupType=UH;function HH(r,e){var t=(0,Ne.filter)(r,function(n){return n.PUSH_MODE!==void 0&&!(0,Ne.contains)(e,n.PUSH_MODE)}),i=(0,Ne.map)(t,function(n){var s="Token Type: ->"+n.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+n.PUSH_MODE+"<-which does not exist";return{message:s,type:Ar.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[n]}});return i}Ze.findModesThatDoNotExist=HH;function jH(r){var e=[],t=(0,Ne.reduce)(r,function(i,n,s){var o=n.PATTERN;return o===Ar.Lexer.NA||((0,Ne.isString)(o)?i.push({str:o,idx:s,tokenType:n}):(0,Ne.isRegExp)(o)&&cEe(o)&&i.push({str:o.source,idx:s,tokenType:n})),i},[]);return(0,Ne.forEach)(r,function(i,n){(0,Ne.forEach)(t,function(s){var o=s.str,a=s.idx,l=s.tokenType;if(n"+i.name+"<-")+`in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:c,type:Ar.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[i,l]})}})}),e}Ze.findUnreachablePatterns=jH;function lEe(r,e){if((0,Ne.isRegExp)(e)){var t=e.exec(r);return t!==null&&t.index===0}else{if((0,Ne.isFunction)(e))return e(r,0,[],{});if((0,Ne.has)(e,"exec"))return e.exec(r,0,[],{});if(typeof e=="string")return e===r;throw Error("non exhaustive match")}}function cEe(r){var e=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return(0,Ne.find)(e,function(t){return r.source.indexOf(t)!==-1})===void 0}function BS(r){var e=r.ignoreCase?"i":"";return new RegExp("^(?:"+r.source+")",e)}Ze.addStartOfInput=BS;function bS(r){var e=r.ignoreCase?"iy":"y";return new RegExp(""+r.source,e)}Ze.addStickyFlag=bS;function uEe(r,e,t){var i=[];return(0,Ne.has)(r,Ze.DEFAULT_MODE)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ze.DEFAULT_MODE+`> property in its definition +`,type:Ar.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,Ne.has)(r,Ze.MODES)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ze.MODES+`> property in its definition +`,type:Ar.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,Ne.has)(r,Ze.MODES)&&(0,Ne.has)(r,Ze.DEFAULT_MODE)&&!(0,Ne.has)(r.modes,r.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Ze.DEFAULT_MODE+": <"+r.defaultMode+`>which does not exist +`,type:Ar.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,Ne.has)(r,Ze.MODES)&&(0,Ne.forEach)(r.modes,function(n,s){(0,Ne.forEach)(n,function(o,a){(0,Ne.isUndefined)(o)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+s+"> at index: <"+a+`> +`),type:Ar.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}Ze.performRuntimeChecks=uEe;function gEe(r,e,t){var i=[],n=!1,s=(0,Ne.compact)((0,Ne.flatten)((0,Ne.mapValues)(r.modes,function(l){return l}))),o=(0,Ne.reject)(s,function(l){return l[Mo]===Ar.Lexer.NA}),a=OH(t);return e&&(0,Ne.forEach)(o,function(l){var c=TH(l,a);if(c!==!1){var u=zH(l,c),g={message:u,type:c.issue,tokenType:l};i.push(g)}else(0,Ne.has)(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(n=!0):(0,Cg.canMatchCharCode)(a,l.PATTERN)&&(n=!0)}),e&&!n&&i.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:Ar.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),i}Ze.performWarningRuntimeChecks=gEe;function fEe(r){var e={},t=(0,Ne.keys)(r);return(0,Ne.forEach)(t,function(i){var n=r[i];if((0,Ne.isArray)(n))e[i]=[];else throw Error("non exhaustive match")}),e}Ze.cloneEmptyGroups=fEe;function QS(r){var e=r.PATTERN;if((0,Ne.isRegExp)(e))return!1;if((0,Ne.isFunction)(e))return!0;if((0,Ne.has)(e,"exec"))return!0;if((0,Ne.isString)(e))return!1;throw Error("non exhaustive match")}Ze.isCustomPattern=QS;function LH(r){return(0,Ne.isString)(r)&&r.length===1?r.charCodeAt(0):!1}Ze.isShortPattern=LH;Ze.LineTerminatorOptimizedTester={test:function(r){for(var e=r.length,t=this.lastIndex;t Token Type +`)+(" Root cause: "+e.errMsg+`. +`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(e.issue===Ar.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. +`+(" The problem is in the <"+r.name+`> Token Type +`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}Ze.buildLineBreakIssueMessage=zH;function OH(r){var e=(0,Ne.map)(r,function(t){return(0,Ne.isString)(t)&&t.length>0?t.charCodeAt(0):t});return e}function SS(r,e,t){r[e]===void 0?r[e]=[t]:r[e].push(t)}Ze.minOptimizationVal=256;var HI=[];function vS(r){return r255?255+~~(r/255):r}}});var mg=w(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.isTokenType=Ft.hasExtendingTokensTypesMapProperty=Ft.hasExtendingTokensTypesProperty=Ft.hasCategoriesProperty=Ft.hasShortKeyProperty=Ft.singleAssignCategoriesToksMap=Ft.assignCategoriesMapProp=Ft.assignCategoriesTokensProp=Ft.assignTokenDefaultProps=Ft.expandCategories=Ft.augmentTokenTypes=Ft.tokenIdxToClass=Ft.tokenShortNameIdx=Ft.tokenStructuredMatcherNoCategories=Ft.tokenStructuredMatcher=void 0;var ii=Yt();function hEe(r,e){var t=r.tokenTypeIdx;return t===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[t]===!0}Ft.tokenStructuredMatcher=hEe;function pEe(r,e){return r.tokenTypeIdx===e.tokenTypeIdx}Ft.tokenStructuredMatcherNoCategories=pEe;Ft.tokenShortNameIdx=1;Ft.tokenIdxToClass={};function dEe(r){var e=_H(r);VH(e),ZH(e),XH(e),(0,ii.forEach)(e,function(t){t.isParent=t.categoryMatches.length>0})}Ft.augmentTokenTypes=dEe;function _H(r){for(var e=(0,ii.cloneArr)(r),t=r,i=!0;i;){t=(0,ii.compact)((0,ii.flatten)((0,ii.map)(t,function(s){return s.CATEGORIES})));var n=(0,ii.difference)(t,e);e=e.concat(n),(0,ii.isEmpty)(n)?i=!1:t=n}return e}Ft.expandCategories=_H;function VH(r){(0,ii.forEach)(r,function(e){$H(e)||(Ft.tokenIdxToClass[Ft.tokenShortNameIdx]=e,e.tokenTypeIdx=Ft.tokenShortNameIdx++),xS(e)&&!(0,ii.isArray)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),xS(e)||(e.CATEGORIES=[]),ej(e)||(e.categoryMatches=[]),tj(e)||(e.categoryMatchesMap={})})}Ft.assignTokenDefaultProps=VH;function XH(r){(0,ii.forEach)(r,function(e){e.categoryMatches=[],(0,ii.forEach)(e.categoryMatchesMap,function(t,i){e.categoryMatches.push(Ft.tokenIdxToClass[i].tokenTypeIdx)})})}Ft.assignCategoriesTokensProp=XH;function ZH(r){(0,ii.forEach)(r,function(e){kS([],e)})}Ft.assignCategoriesMapProp=ZH;function kS(r,e){(0,ii.forEach)(r,function(t){e.categoryMatchesMap[t.tokenTypeIdx]=!0}),(0,ii.forEach)(e.CATEGORIES,function(t){var i=r.concat(e);(0,ii.contains)(i,t)||kS(i,t)})}Ft.singleAssignCategoriesToksMap=kS;function $H(r){return(0,ii.has)(r,"tokenTypeIdx")}Ft.hasShortKeyProperty=$H;function xS(r){return(0,ii.has)(r,"CATEGORIES")}Ft.hasCategoriesProperty=xS;function ej(r){return(0,ii.has)(r,"categoryMatches")}Ft.hasExtendingTokensTypesProperty=ej;function tj(r){return(0,ii.has)(r,"categoryMatchesMap")}Ft.hasExtendingTokensTypesMapProperty=tj;function CEe(r){return(0,ii.has)(r,"tokenTypeIdx")}Ft.isTokenType=CEe});var PS=w(jI=>{"use strict";Object.defineProperty(jI,"__esModule",{value:!0});jI.defaultLexerErrorProvider=void 0;jI.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(r){return"Unable to pop Lexer Mode after encountering Token ->"+r.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(r,e,t,i,n){return"unexpected character: ->"+r.charAt(e)+"<- at offset: "+e+","+(" skipped "+t+" characters.")}}});var Dp=w(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.Lexer=kc.LexerDefinitionErrorType=void 0;var ao=yS(),lr=Yt(),mEe=mg(),EEe=PS(),IEe=MI(),yEe;(function(r){r[r.MISSING_PATTERN=0]="MISSING_PATTERN",r[r.INVALID_PATTERN=1]="INVALID_PATTERN",r[r.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",r[r.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",r[r.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",r[r.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",r[r.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",r[r.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",r[r.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",r[r.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",r[r.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",r[r.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",r[r.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",r[r.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",r[r.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",r[r.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",r[r.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(yEe=kc.LexerDefinitionErrorType||(kc.LexerDefinitionErrorType={}));var Rp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:EEe.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(Rp);var wEe=function(){function r(e,t){var i=this;if(t===void 0&&(t=Rp),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=(0,lr.merge)(Rp,t);var n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=Infinity,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var s,o=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===Rp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=ao.LineTerminatorOptimizedTester;else if(i.config.lineTerminatorCharacters===Rp.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),(0,lr.isArray)(e)?(s={modes:{}},s.modes[ao.DEFAULT_MODE]=(0,lr.cloneArr)(e),s[ao.DEFAULT_MODE]=ao.DEFAULT_MODE):(o=!1,s=(0,lr.cloneObj)(e))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((0,ao.performRuntimeChecks)(s,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat((0,ao.performWarningRuntimeChecks)(s,i.trackStartLines,i.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},(0,lr.forEach)(s.modes,function(u,g){s.modes[g]=(0,lr.reject)(u,function(f){return(0,lr.isUndefined)(f)})});var a=(0,lr.keys)(s.modes);if((0,lr.forEach)(s.modes,function(u,g){i.TRACE_INIT("Mode: <"+g+"> processing",function(){if(i.modes.push(g),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((0,ao.validatePatterns)(u,a))}),(0,lr.isEmpty)(i.lexerDefinitionErrors)){(0,mEe.augmentTokenTypes)(u);var f;i.TRACE_INIT("analyzeTokenTypes",function(){f=(0,ao.analyzeTokenTypes)(u,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[g]=f.patternIdxToConfig,i.charCodeToPatternIdxToConfig[g]=f.charCodeToPatternIdxToConfig,i.emptyGroups=(0,lr.merge)(i.emptyGroups,f.emptyGroups),i.hasCustom=f.hasCustom||i.hasCustom,i.canModeBeOptimized[g]=f.canBeOptimized}})}),i.defaultMode=s.defaultMode,!(0,lr.isEmpty)(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var l=(0,lr.map)(i.lexerDefinitionErrors,function(u){return u.message}),c=l.join(`----------------------- +`);throw new Error(`Errors detected in definition of Lexer: +`+c)}(0,lr.forEach)(i.lexerDefinitionWarning,function(u){(0,lr.PRINT_WARNING)(u.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(ao.SUPPORT_STICKY?(i.chopInput=lr.IDENTITY,i.match=i.matchWithTest):(i.updateLastIndex=lr.NOOP,i.match=i.matchWithExec),o&&(i.handleModes=lr.NOOP),i.trackStartLines===!1&&(i.computeNewColumn=lr.IDENTITY),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=lr.NOOP),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var u=(0,lr.reduce)(i.canModeBeOptimized,function(g,f,h){return f===!1&&g.push(h),g},[]);if(t.ensureOptimizations&&!(0,lr.isEmpty)(u))throw Error("Lexer Modes: < "+u.join(", ")+` > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){(0,IEe.clearRegExpParserCache)()}),i.TRACE_INIT("toFastProperties",function(){(0,lr.toFastProperties)(i)})})}return r.prototype.tokenize=function(e,t){if(t===void 0&&(t=this.defaultMode),!(0,lr.isEmpty)(this.lexerDefinitionErrors)){var i=(0,lr.map)(this.lexerDefinitionErrors,function(o){return o.message}),n=i.join(`----------------------- +`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+n)}var s=this.tokenizeInternal(e,t);return s},r.prototype.tokenizeInternal=function(e,t){var i=this,n,s,o,a,l,c,u,g,f,h,p,m,y,b,v,x,T=e,q=T.length,Y=0,$=0,_=this.hasCustom?0:Math.floor(e.length/10),ne=new Array(_),ee=[],A=this.trackStartLines?1:void 0,oe=this.trackStartLines?1:void 0,ce=(0,ao.cloneEmptyGroups)(this.emptyGroups),Z=this.trackStartLines,O=this.config.lineTerminatorsPattern,L=0,de=[],Be=[],je=[],re=[];Object.freeze(re);var se=void 0;function be(){return de}function he(Sr){var jn=(0,ao.charCodeToOptimizedIndex)(Sr),fs=Be[jn];return fs===void 0?re:fs}var Fe=function(Sr){if(je.length===1&&Sr.tokenType.PUSH_MODE===void 0){var jn=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Sr);ee.push({offset:Sr.startOffset,line:Sr.startLine!==void 0?Sr.startLine:void 0,column:Sr.startColumn!==void 0?Sr.startColumn:void 0,length:Sr.image.length,message:jn})}else{je.pop();var fs=(0,lr.last)(je);de=i.patternIdxToConfig[fs],Be=i.charCodeToPatternIdxToConfig[fs],L=de.length;var ba=i.canModeBeOptimized[fs]&&i.config.safeMode===!1;Be&&ba?se=he:se=be}};function Ke(Sr){je.push(Sr),Be=this.charCodeToPatternIdxToConfig[Sr],de=this.patternIdxToConfig[Sr],L=de.length,L=de.length;var jn=this.canModeBeOptimized[Sr]&&this.config.safeMode===!1;Be&&jn?se=he:se=be}Ke.call(this,t);for(var ke;Yc.length){c=a,u=g,ke=gt;break}}}break}}if(c!==null){if(f=c.length,h=ke.group,h!==void 0&&(p=ke.tokenTypeIdx,m=this.createTokenInstance(c,Y,p,ke.tokenType,A,oe,f),this.handlePayload(m,u),h===!1?$=this.addToken(ne,$,m):ce[h].push(m)),e=this.chopInput(e,f),Y=Y+f,oe=this.computeNewColumn(oe,f),Z===!0&&ke.canLineTerminator===!0){var Mt=0,Ei=void 0,jt=void 0;O.lastIndex=0;do Ei=O.test(c),Ei===!0&&(jt=O.lastIndex-1,Mt++);while(Ei===!0);Mt!==0&&(A=A+Mt,oe=f-jt,this.updateTokenEndLineColumnLocation(m,h,jt,Mt,A,oe,f))}this.handleModes(ke,Fe,Ke,m)}else{for(var Qr=Y,Oi=A,Xs=oe,Un=!1;!Un&&Y <"+e+">");var n=(0,lr.timer)(t),s=n.time,o=n.value,a=s>10?console.warn:console.log;return this.traceInitIndent time: "+s+"ms"),this.traceInitIndent--,o}else return t()},r.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",r.NA=/NOT_APPLICABLE/,r}();kc.Lexer=wEe});var XA=w(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.tokenMatcher=Pi.createTokenInstance=Pi.EOF=Pi.createToken=Pi.hasTokenLabel=Pi.tokenName=Pi.tokenLabel=void 0;var Ao=Yt(),BEe=Dp(),DS=mg();function bEe(r){return rj(r)?r.LABEL:r.name}Pi.tokenLabel=bEe;function QEe(r){return r.name}Pi.tokenName=QEe;function rj(r){return(0,Ao.isString)(r.LABEL)&&r.LABEL!==""}Pi.hasTokenLabel=rj;var SEe="parent",ij="categories",nj="label",sj="group",oj="push_mode",aj="pop_mode",Aj="longer_alt",lj="line_breaks",cj="start_chars_hint";function uj(r){return vEe(r)}Pi.createToken=uj;function vEe(r){var e=r.pattern,t={};if(t.name=r.name,(0,Ao.isUndefined)(e)||(t.PATTERN=e),(0,Ao.has)(r,SEe))throw`The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return(0,Ao.has)(r,ij)&&(t.CATEGORIES=r[ij]),(0,DS.augmentTokenTypes)([t]),(0,Ao.has)(r,nj)&&(t.LABEL=r[nj]),(0,Ao.has)(r,sj)&&(t.GROUP=r[sj]),(0,Ao.has)(r,aj)&&(t.POP_MODE=r[aj]),(0,Ao.has)(r,oj)&&(t.PUSH_MODE=r[oj]),(0,Ao.has)(r,Aj)&&(t.LONGER_ALT=r[Aj]),(0,Ao.has)(r,lj)&&(t.LINE_BREAKS=r[lj]),(0,Ao.has)(r,cj)&&(t.START_CHARS_HINT=r[cj]),t}Pi.EOF=uj({name:"EOF",pattern:BEe.Lexer.NA});(0,DS.augmentTokenTypes)([Pi.EOF]);function xEe(r,e,t,i,n,s,o,a){return{image:e,startOffset:t,endOffset:i,startLine:n,endLine:s,startColumn:o,endColumn:a,tokenTypeIdx:r.tokenTypeIdx,tokenType:r}}Pi.createTokenInstance=xEe;function kEe(r,e){return(0,DS.tokenStructuredMatcher)(r,e)}Pi.tokenMatcher=kEe});var bn=w(Vt=>{"use strict";var Ga=Vt&&Vt.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Vt,"__esModule",{value:!0});Vt.serializeProduction=Vt.serializeGrammar=Vt.Terminal=Vt.Alternation=Vt.RepetitionWithSeparator=Vt.Repetition=Vt.RepetitionMandatoryWithSeparator=Vt.RepetitionMandatory=Vt.Option=Vt.Alternative=Vt.Rule=Vt.NonTerminal=Vt.AbstractProduction=void 0;var fr=Yt(),PEe=XA(),Ko=function(){function r(e){this._definition=e}return Object.defineProperty(r.prototype,"definition",{get:function(){return this._definition},set:function(e){this._definition=e},enumerable:!1,configurable:!0}),r.prototype.accept=function(e){e.visit(this),(0,fr.forEach)(this.definition,function(t){t.accept(e)})},r}();Vt.AbstractProduction=Ko;var gj=function(r){Ga(e,r);function e(t){var i=r.call(this,[])||this;return i.idx=1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return Object.defineProperty(e.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this)},e}(Ko);Vt.NonTerminal=gj;var fj=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.orgText="",(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.Rule=fj;var hj=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.ignoreAmbiguities=!1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.Alternative=hj;var pj=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.Option=pj;var dj=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.RepetitionMandatory=dj;var Cj=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.RepetitionMandatoryWithSeparator=Cj;var mj=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.Repetition=mj;var Ej=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return e}(Ko);Vt.RepetitionWithSeparator=Ej;var Ij=function(r){Ga(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,(0,fr.assign)(i,(0,fr.pick)(t,function(n){return n!==void 0})),i}return Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e}(Ko);Vt.Alternation=Ij;var GI=function(){function r(e){this.idx=1,(0,fr.assign)(this,(0,fr.pick)(e,function(t){return t!==void 0}))}return r.prototype.accept=function(e){e.visit(this)},r}();Vt.Terminal=GI;function DEe(r){return(0,fr.map)(r,Fp)}Vt.serializeGrammar=DEe;function Fp(r){function e(s){return(0,fr.map)(s,Fp)}if(r instanceof gj){var t={type:"NonTerminal",name:r.nonTerminalName,idx:r.idx};return(0,fr.isString)(r.label)&&(t.label=r.label),t}else{if(r instanceof hj)return{type:"Alternative",definition:e(r.definition)};if(r instanceof pj)return{type:"Option",idx:r.idx,definition:e(r.definition)};if(r instanceof dj)return{type:"RepetitionMandatory",idx:r.idx,definition:e(r.definition)};if(r instanceof Cj)return{type:"RepetitionMandatoryWithSeparator",idx:r.idx,separator:Fp(new GI({terminalType:r.separator})),definition:e(r.definition)};if(r instanceof Ej)return{type:"RepetitionWithSeparator",idx:r.idx,separator:Fp(new GI({terminalType:r.separator})),definition:e(r.definition)};if(r instanceof mj)return{type:"Repetition",idx:r.idx,definition:e(r.definition)};if(r instanceof Ij)return{type:"Alternation",idx:r.idx,definition:e(r.definition)};if(r instanceof GI){var i={type:"Terminal",name:r.terminalType.name,label:(0,PEe.tokenLabel)(r.terminalType),idx:r.idx};(0,fr.isString)(r.label)&&(i.terminalLabel=r.label);var n=r.terminalType.PATTERN;return r.terminalType.PATTERN&&(i.pattern=(0,fr.isRegExp)(n)?n.source:n),i}else{if(r instanceof fj)return{type:"Rule",name:r.name,orgText:r.orgText,definition:e(r.definition)};throw Error("non exhaustive match")}}}Vt.serializeProduction=Fp});var qI=w(YI=>{"use strict";Object.defineProperty(YI,"__esModule",{value:!0});YI.RestWalker=void 0;var RS=Yt(),Qn=bn(),REe=function(){function r(){}return r.prototype.walk=function(e,t){var i=this;t===void 0&&(t=[]),(0,RS.forEach)(e.definition,function(n,s){var o=(0,RS.drop)(e.definition,s+1);if(n instanceof Qn.NonTerminal)i.walkProdRef(n,o,t);else if(n instanceof Qn.Terminal)i.walkTerminal(n,o,t);else if(n instanceof Qn.Alternative)i.walkFlat(n,o,t);else if(n instanceof Qn.Option)i.walkOption(n,o,t);else if(n instanceof Qn.RepetitionMandatory)i.walkAtLeastOne(n,o,t);else if(n instanceof Qn.RepetitionMandatoryWithSeparator)i.walkAtLeastOneSep(n,o,t);else if(n instanceof Qn.RepetitionWithSeparator)i.walkManySep(n,o,t);else if(n instanceof Qn.Repetition)i.walkMany(n,o,t);else if(n instanceof Qn.Alternation)i.walkOr(n,o,t);else throw Error("non exhaustive match")})},r.prototype.walkTerminal=function(e,t,i){},r.prototype.walkProdRef=function(e,t,i){},r.prototype.walkFlat=function(e,t,i){var n=t.concat(i);this.walk(e,n)},r.prototype.walkOption=function(e,t,i){var n=t.concat(i);this.walk(e,n)},r.prototype.walkAtLeastOne=function(e,t,i){var n=[new Qn.Option({definition:e.definition})].concat(t,i);this.walk(e,n)},r.prototype.walkAtLeastOneSep=function(e,t,i){var n=yj(e,t,i);this.walk(e,n)},r.prototype.walkMany=function(e,t,i){var n=[new Qn.Option({definition:e.definition})].concat(t,i);this.walk(e,n)},r.prototype.walkManySep=function(e,t,i){var n=yj(e,t,i);this.walk(e,n)},r.prototype.walkOr=function(e,t,i){var n=this,s=t.concat(i);(0,RS.forEach)(e.definition,function(o){var a=new Qn.Alternative({definition:[o]});n.walk(a,s)})},r}();YI.RestWalker=REe;function yj(r,e,t){var i=[new Qn.Option({definition:[new Qn.Terminal({terminalType:r.separator})].concat(r.definition)})],n=i.concat(e,t);return n}});var Eg=w(JI=>{"use strict";Object.defineProperty(JI,"__esModule",{value:!0});JI.GAstVisitor=void 0;var Uo=bn(),FEe=function(){function r(){}return r.prototype.visit=function(e){var t=e;switch(t.constructor){case Uo.NonTerminal:return this.visitNonTerminal(t);case Uo.Alternative:return this.visitAlternative(t);case Uo.Option:return this.visitOption(t);case Uo.RepetitionMandatory:return this.visitRepetitionMandatory(t);case Uo.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(t);case Uo.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(t);case Uo.Repetition:return this.visitRepetition(t);case Uo.Alternation:return this.visitAlternation(t);case Uo.Terminal:return this.visitTerminal(t);case Uo.Rule:return this.visitRule(t);default:throw Error("non exhaustive match")}},r.prototype.visitNonTerminal=function(e){},r.prototype.visitAlternative=function(e){},r.prototype.visitOption=function(e){},r.prototype.visitRepetition=function(e){},r.prototype.visitRepetitionMandatory=function(e){},r.prototype.visitRepetitionMandatoryWithSeparator=function(e){},r.prototype.visitRepetitionWithSeparator=function(e){},r.prototype.visitAlternation=function(e){},r.prototype.visitTerminal=function(e){},r.prototype.visitRule=function(e){},r}();JI.GAstVisitor=FEe});var Lp=w(Gi=>{"use strict";var NEe=Gi&&Gi.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Gi,"__esModule",{value:!0});Gi.collectMethods=Gi.DslMethodsCollectorVisitor=Gi.getProductionDslName=Gi.isBranchingProd=Gi.isOptionalProd=Gi.isSequenceProd=void 0;var Np=Yt(),xr=bn(),LEe=Eg();function TEe(r){return r instanceof xr.Alternative||r instanceof xr.Option||r instanceof xr.Repetition||r instanceof xr.RepetitionMandatory||r instanceof xr.RepetitionMandatoryWithSeparator||r instanceof xr.RepetitionWithSeparator||r instanceof xr.Terminal||r instanceof xr.Rule}Gi.isSequenceProd=TEe;function FS(r,e){e===void 0&&(e=[]);var t=r instanceof xr.Option||r instanceof xr.Repetition||r instanceof xr.RepetitionWithSeparator;return t?!0:r instanceof xr.Alternation?(0,Np.some)(r.definition,function(i){return FS(i,e)}):r instanceof xr.NonTerminal&&(0,Np.contains)(e,r)?!1:r instanceof xr.AbstractProduction?(r instanceof xr.NonTerminal&&e.push(r),(0,Np.every)(r.definition,function(i){return FS(i,e)})):!1}Gi.isOptionalProd=FS;function OEe(r){return r instanceof xr.Alternation}Gi.isBranchingProd=OEe;function MEe(r){if(r instanceof xr.NonTerminal)return"SUBRULE";if(r instanceof xr.Option)return"OPTION";if(r instanceof xr.Alternation)return"OR";if(r instanceof xr.RepetitionMandatory)return"AT_LEAST_ONE";if(r instanceof xr.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(r instanceof xr.RepetitionWithSeparator)return"MANY_SEP";if(r instanceof xr.Repetition)return"MANY";if(r instanceof xr.Terminal)return"CONSUME";throw Error("non exhaustive match")}Gi.getProductionDslName=MEe;var wj=function(r){NEe(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitTerminal=function(t){var i=t.terminalType.name+this.separator+"Terminal";(0,Np.has)(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(t)},e.prototype.visitNonTerminal=function(t){var i=t.nonTerminalName+this.separator+"Terminal";(0,Np.has)(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(t)},e.prototype.visitOption=function(t){this.dslMethods.option.push(t)},e.prototype.visitRepetitionWithSeparator=function(t){this.dslMethods.repetitionWithSeparator.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.dslMethods.repetitionMandatory.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)},e.prototype.visitRepetition=function(t){this.dslMethods.repetition.push(t)},e.prototype.visitAlternation=function(t){this.dslMethods.alternation.push(t)},e}(LEe.GAstVisitor);Gi.DslMethodsCollectorVisitor=wj;var WI=new wj;function KEe(r){WI.reset(),r.accept(WI);var e=WI.dslMethods;return WI.reset(),e}Gi.collectMethods=KEe});var LS=w(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.firstForTerminal=Ho.firstForBranching=Ho.firstForSequence=Ho.first=void 0;var zI=Yt(),Bj=bn(),NS=Lp();function _I(r){if(r instanceof Bj.NonTerminal)return _I(r.referencedRule);if(r instanceof Bj.Terminal)return Sj(r);if((0,NS.isSequenceProd)(r))return bj(r);if((0,NS.isBranchingProd)(r))return Qj(r);throw Error("non exhaustive match")}Ho.first=_I;function bj(r){for(var e=[],t=r.definition,i=0,n=t.length>i,s,o=!0;n&&o;)s=t[i],o=(0,NS.isOptionalProd)(s),e=e.concat(_I(s)),i=i+1,n=t.length>i;return(0,zI.uniq)(e)}Ho.firstForSequence=bj;function Qj(r){var e=(0,zI.map)(r.definition,function(t){return _I(t)});return(0,zI.uniq)((0,zI.flatten)(e))}Ho.firstForBranching=Qj;function Sj(r){return[r.terminalType]}Ho.firstForTerminal=Sj});var TS=w(VI=>{"use strict";Object.defineProperty(VI,"__esModule",{value:!0});VI.IN=void 0;VI.IN="_~IN~_"});var Dj=w(vs=>{"use strict";var UEe=vs&&vs.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(vs,"__esModule",{value:!0});vs.buildInProdFollowPrefix=vs.buildBetweenProdsFollowPrefix=vs.computeAllProdsFollows=vs.ResyncFollowsWalker=void 0;var HEe=qI(),jEe=LS(),vj=Yt(),xj=TS(),GEe=bn(),Pj=function(r){UEe(e,r);function e(t){var i=r.call(this)||this;return i.topProd=t,i.follows={},i}return e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(t,i,n){},e.prototype.walkProdRef=function(t,i,n){var s=kj(t.referencedRule,t.idx)+this.topProd.name,o=i.concat(n),a=new GEe.Alternative({definition:o}),l=(0,jEe.first)(a);this.follows[s]=l},e}(HEe.RestWalker);vs.ResyncFollowsWalker=Pj;function YEe(r){var e={};return(0,vj.forEach)(r,function(t){var i=new Pj(t).startWalking();(0,vj.assign)(e,i)}),e}vs.computeAllProdsFollows=YEe;function kj(r,e){return r.name+e+xj.IN}vs.buildBetweenProdsFollowPrefix=kj;function qEe(r){var e=r.terminalType.name;return e+r.idx+xj.IN}vs.buildInProdFollowPrefix=qEe});var Tp=w(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.defaultGrammarValidatorErrorProvider=Ya.defaultGrammarResolverErrorProvider=Ya.defaultParserErrorProvider=void 0;var Ig=XA(),JEe=Yt(),lo=Yt(),OS=bn(),Rj=Lp();Ya.defaultParserErrorProvider={buildMismatchTokenMessage:function(r){var e=r.expected,t=r.actual,i=r.previous,n=r.ruleName,s=(0,Ig.hasTokenLabel)(e),o=s?"--> "+(0,Ig.tokenLabel)(e)+" <--":"token of type --> "+e.name+" <--",a="Expecting "+o+" but found --> '"+t.image+"' <--";return a},buildNotAllInputParsedMessage:function(r){var e=r.firstRedundant,t=r.ruleName;return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage:function(r){var e=r.expectedPathsPerAlt,t=r.actual,i=r.previous,n=r.customUserDescription,s=r.ruleName,o="Expecting: ",a=(0,lo.first)(t).image,l=` +but found: '`+a+"'";if(n)return o+n+l;var c=(0,lo.reduce)(e,function(h,p){return h.concat(p)},[]),u=(0,lo.map)(c,function(h){return"["+(0,lo.map)(h,function(p){return(0,Ig.tokenLabel)(p)}).join(", ")+"]"}),g=(0,lo.map)(u,function(h,p){return" "+(p+1)+". "+h}),f=`one of these possible Token sequences: +`+g.join(` +`);return o+f+l},buildEarlyExitMessage:function(r){var e=r.expectedIterationPaths,t=r.actual,i=r.customUserDescription,n=r.ruleName,s="Expecting: ",o=(0,lo.first)(t).image,a=` +but found: '`+o+"'";if(i)return s+i+a;var l=(0,lo.map)(e,function(u){return"["+(0,lo.map)(u,function(g){return(0,Ig.tokenLabel)(g)}).join(",")+"]"}),c=`expecting at least one iteration which starts with one of these possible Token sequences:: + `+("<"+l.join(" ,")+">");return s+c+a}};Object.freeze(Ya.defaultParserErrorProvider);Ya.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(r,e){var t="Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- +inside top level rule: ->`+r.name+"<-";return t}};Ya.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(r,e){function t(u){return u instanceof OS.Terminal?u.terminalType.name:u instanceof OS.NonTerminal?u.nonTerminalName:""}var i=r.name,n=(0,lo.first)(e),s=n.idx,o=(0,Rj.getProductionDslName)(n),a=t(n),l=s>0,c="->"+o+(l?s:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+` + appears more than once (`+e.length+" times) in the top level rule: ->"+i+`<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return c=c.replace(/[ \t]+/g," "),c=c.replace(/\s\s+/g,` +`),c},buildNamespaceConflictError:function(r){var e=`Namespace conflict found in grammar. +`+("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+r.name+`>. +`)+`To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`;return e},buildAlternationPrefixAmbiguityError:function(r){var e=(0,lo.map)(r.prefixPath,function(n){return(0,Ig.tokenLabel)(n)}).join(", "),t=r.alternation.idx===0?"":r.alternation.idx,i="Ambiguous alternatives: <"+r.ambiguityIndices.join(" ,")+`> due to common lookahead prefix +`+("in inside <"+r.topLevelRule.name+`> Rule, +`)+("<"+e+`> may appears as a prefix path in all these alternatives. +`)+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`;return i},buildAlternationAmbiguityError:function(r){var e=(0,lo.map)(r.prefixPath,function(n){return(0,Ig.tokenLabel)(n)}).join(", "),t=r.alternation.idx===0?"":r.alternation.idx,i="Ambiguous Alternatives Detected: <"+r.ambiguityIndices.join(" ,")+"> in "+(" inside <"+r.topLevelRule.name+`> Rule, +`)+("<"+e+`> may appears as a prefix path in all these alternatives. +`);return i=i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,i},buildEmptyRepetitionError:function(r){var e=(0,Rj.getProductionDslName)(r.repetition);r.repetition.idx!==0&&(e+=r.repetition.idx);var t="The repetition <"+e+"> within Rule <"+r.topLevelRule.name+`> can never consume any tokens. +This could lead to an infinite loop.`;return t},buildTokenNameError:function(r){return"deprecated"},buildEmptyAlternationError:function(r){var e="Ambiguous empty alternative: <"+(r.emptyChoiceIdx+1)+">"+(" in inside <"+r.topLevelRule.name+`> Rule. +`)+"Only the last alternative may be an empty alternative.";return e},buildTooManyAlternativesError:function(r){var e=`An Alternation cannot have more than 256 alternatives: +`+(" inside <"+r.topLevelRule.name+`> Rule. + has `+(r.alternation.definition.length+1)+" alternatives.");return e},buildLeftRecursionError:function(r){var e=r.topLevelRule.name,t=JEe.map(r.leftRecursionPath,function(s){return s.name}),i=e+" --> "+t.concat([e]).join(" --> "),n=`Left Recursion found in grammar. +`+("rule: <"+e+`> can be invoked from itself (directly or indirectly) +`)+(`without consuming any Tokens. The grammar path that causes this is: + `+i+` +`)+` To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return n},buildInvalidRuleNameError:function(r){return"deprecated"},buildDuplicateRuleNameError:function(r){var e;r.topLevelRule instanceof OS.Rule?e=r.topLevelRule.name:e=r.topLevelRule;var t="Duplicate definition, rule: ->"+e+"<- is already defined in the grammar: ->"+r.grammarName+"<-";return t}}});var Lj=w(ZA=>{"use strict";var WEe=ZA&&ZA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(ZA,"__esModule",{value:!0});ZA.GastRefResolverVisitor=ZA.resolveGrammar=void 0;var zEe=$n(),Fj=Yt(),_Ee=Eg();function VEe(r,e){var t=new Nj(r,e);return t.resolveRefs(),t.errors}ZA.resolveGrammar=VEe;var Nj=function(r){WEe(e,r);function e(t,i){var n=r.call(this)||this;return n.nameToTopRule=t,n.errMsgProvider=i,n.errors=[],n}return e.prototype.resolveRefs=function(){var t=this;(0,Fj.forEach)((0,Fj.values)(this.nameToTopRule),function(i){t.currTopLevel=i,i.accept(t)})},e.prototype.visitNonTerminal=function(t){var i=this.nameToTopRule[t.nonTerminalName];if(i)t.referencedRule=i;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:n,type:zEe.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}},e}(_Ee.GAstVisitor);ZA.GastRefResolverVisitor=Nj});var Mp=w(Kr=>{"use strict";var Pc=Kr&&Kr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.nextPossibleTokensAfter=Kr.possiblePathsFrom=Kr.NextTerminalAfterAtLeastOneSepWalker=Kr.NextTerminalAfterAtLeastOneWalker=Kr.NextTerminalAfterManySepWalker=Kr.NextTerminalAfterManyWalker=Kr.AbstractNextTerminalAfterProductionWalker=Kr.NextAfterTokenWalker=Kr.AbstractNextPossibleTokensWalker=void 0;var Tj=qI(),Kt=Yt(),XEe=LS(),Dt=bn(),Oj=function(r){Pc(e,r);function e(t,i){var n=r.call(this)||this;return n.topProd=t,n.path=i,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,Kt.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,Kt.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(t,i){i===void 0&&(i=[]),this.found||r.prototype.walk.call(this,t,i)},e.prototype.walkProdRef=function(t,i,n){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){var s=i.concat(n);this.updateExpectedNext(),this.walk(t.referencedRule,s)}},e.prototype.updateExpectedNext=function(){(0,Kt.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(Tj.RestWalker);Kr.AbstractNextPossibleTokensWalker=Oj;var ZEe=function(r){Pc(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.path=i,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return e.prototype.walkTerminal=function(t,i,n){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){var s=i.concat(n),o=new Dt.Alternative({definition:s});this.possibleTokTypes=(0,XEe.first)(o),this.found=!0}},e}(Oj);Kr.NextAfterTokenWalker=ZEe;var Op=function(r){Pc(e,r);function e(t,i){var n=r.call(this)||this;return n.topRule=t,n.occurrence=i,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(Tj.RestWalker);Kr.AbstractNextTerminalAfterProductionWalker=Op;var $Ee=function(r){Pc(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkMany=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Kt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Dt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkMany.call(this,t,i,n)},e}(Op);Kr.NextTerminalAfterManyWalker=$Ee;var eIe=function(r){Pc(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkManySep=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Kt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Dt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkManySep.call(this,t,i,n)},e}(Op);Kr.NextTerminalAfterManySepWalker=eIe;var tIe=function(r){Pc(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkAtLeastOne=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Kt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Dt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkAtLeastOne.call(this,t,i,n)},e}(Op);Kr.NextTerminalAfterAtLeastOneWalker=tIe;var rIe=function(r){Pc(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkAtLeastOneSep=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Kt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Dt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkAtLeastOneSep.call(this,t,i,n)},e}(Op);Kr.NextTerminalAfterAtLeastOneSepWalker=rIe;function Mj(r,e,t){t===void 0&&(t=[]),t=(0,Kt.cloneArr)(t);var i=[],n=0;function s(c){return c.concat((0,Kt.drop)(r,n+1))}function o(c){var u=Mj(s(c),e,t);return i.concat(u)}for(;t.length=0;ce--){var Z=b.definition[ce],O={idx:p,def:Z.definition.concat((0,Kt.drop)(h)),ruleStack:m,occurrenceStack:y};g.push(O),g.push(o)}else if(b instanceof Dt.Alternative)g.push({idx:p,def:b.definition.concat((0,Kt.drop)(h)),ruleStack:m,occurrenceStack:y});else if(b instanceof Dt.Rule)g.push(iIe(b,p,m,y));else throw Error("non exhaustive match")}}return u}Kr.nextPossibleTokensAfter=nIe;function iIe(r,e,t,i){var n=(0,Kt.cloneArr)(t);n.push(r.name);var s=(0,Kt.cloneArr)(i);return s.push(1),{idx:e,def:r.definition,ruleStack:n,occurrenceStack:s}}});var Kp=w(tr=>{"use strict";var Kj=tr&&tr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(tr,"__esModule",{value:!0});tr.areTokenCategoriesNotUsed=tr.isStrictPrefixOfPath=tr.containsPath=tr.getLookaheadPathsForOptionalProd=tr.getLookaheadPathsForOr=tr.lookAheadSequenceFromAlternatives=tr.buildSingleAlternativeLookaheadFunction=tr.buildAlternativesLookAheadFunc=tr.buildLookaheadFuncForOptionalProd=tr.buildLookaheadFuncForOr=tr.getProdType=tr.PROD_TYPE=void 0;var cr=Yt(),Uj=Mp(),sIe=qI(),XI=mg(),$A=bn(),oIe=Eg(),ui;(function(r){r[r.OPTION=0]="OPTION",r[r.REPETITION=1]="REPETITION",r[r.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",r[r.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",r[r.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",r[r.ALTERNATION=5]="ALTERNATION"})(ui=tr.PROD_TYPE||(tr.PROD_TYPE={}));function aIe(r){if(r instanceof $A.Option)return ui.OPTION;if(r instanceof $A.Repetition)return ui.REPETITION;if(r instanceof $A.RepetitionMandatory)return ui.REPETITION_MANDATORY;if(r instanceof $A.RepetitionMandatoryWithSeparator)return ui.REPETITION_MANDATORY_WITH_SEPARATOR;if(r instanceof $A.RepetitionWithSeparator)return ui.REPETITION_WITH_SEPARATOR;if(r instanceof $A.Alternation)return ui.ALTERNATION;throw Error("non exhaustive match")}tr.getProdType=aIe;function AIe(r,e,t,i,n,s){var o=Hj(r,e,t),a=MS(o)?XI.tokenStructuredMatcherNoCategories:XI.tokenStructuredMatcher;return s(o,i,a,n)}tr.buildLookaheadFuncForOr=AIe;function lIe(r,e,t,i,n,s){var o=jj(r,e,n,t),a=MS(o)?XI.tokenStructuredMatcherNoCategories:XI.tokenStructuredMatcher;return s(o[0],a,i)}tr.buildLookaheadFuncForOptionalProd=lIe;function cIe(r,e,t,i){var n=r.length,s=(0,cr.every)(r,function(l){return(0,cr.every)(l,function(c){return c.length===1})});if(e)return function(l){for(var c=(0,cr.map)(l,function(x){return x.GATE}),u=0;u{"use strict";var HS=Xt&&Xt.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.checkPrefixAlternativesAmbiguities=Xt.validateSomeNonEmptyLookaheadPath=Xt.validateTooManyAlts=Xt.RepetionCollector=Xt.validateAmbiguousAlternationAlternatives=Xt.validateEmptyOrAlternative=Xt.getFirstNoneTerminal=Xt.validateNoLeftRecursion=Xt.validateRuleIsOverridden=Xt.validateRuleDoesNotAlreadyExist=Xt.OccurrenceValidationCollector=Xt.identifyProductionForDuplicates=Xt.validateGrammar=void 0;var nr=Yt(),kr=Yt(),jo=$n(),jS=Lp(),yg=Kp(),pIe=Mp(),co=bn(),GS=Eg();function mIe(r,e,t,i,n){var s=nr.map(r,function(h){return dIe(h,i)}),o=nr.map(r,function(h){return YS(h,h,i)}),a=[],l=[],c=[];(0,kr.every)(o,kr.isEmpty)&&(a=(0,kr.map)(r,function(h){return Wj(h,i)}),l=(0,kr.map)(r,function(h){return zj(h,e,i)}),c=Vj(r,e,i));var u=CIe(r,t,i),g=(0,kr.map)(r,function(h){return _j(h,i)}),f=(0,kr.map)(r,function(h){return Jj(h,r,n,i)});return nr.flatten(s.concat(c,o,a,l,u,g,f))}Xt.validateGrammar=mIe;function dIe(r,e){var t=new $j;r.accept(t);var i=t.allProductions,n=nr.groupBy(i,Xj),s=nr.pick(n,function(a){return a.length>1}),o=nr.map(nr.values(s),function(a){var l=nr.first(a),c=e.buildDuplicateFoundError(r,a),u=(0,jS.getProductionDslName)(l),g={message:c,type:jo.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:r.name,dslName:u,occurrence:l.idx},f=Zj(l);return f&&(g.parameter=f),g});return o}function Xj(r){return(0,jS.getProductionDslName)(r)+"_#_"+r.idx+"_#_"+Zj(r)}Xt.identifyProductionForDuplicates=Xj;function Zj(r){return r instanceof co.Terminal?r.terminalType.name:r instanceof co.NonTerminal?r.nonTerminalName:""}var $j=function(r){HS(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.allProductions=[],t}return e.prototype.visitNonTerminal=function(t){this.allProductions.push(t)},e.prototype.visitOption=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetition=function(t){this.allProductions.push(t)},e.prototype.visitAlternation=function(t){this.allProductions.push(t)},e.prototype.visitTerminal=function(t){this.allProductions.push(t)},e}(GS.GAstVisitor);Xt.OccurrenceValidationCollector=$j;function Jj(r,e,t,i){var n=[],s=(0,kr.reduce)(e,function(a,l){return l.name===r.name?a+1:a},0);if(s>1){var o=i.buildDuplicateRuleNameError({topLevelRule:r,grammarName:t});n.push({message:o,type:jo.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:r.name})}return n}Xt.validateRuleDoesNotAlreadyExist=Jj;function EIe(r,e,t){var i=[],n;return nr.contains(e,r)||(n="Invalid rule override, rule: ->"+r+"<- cannot be overridden in the grammar: ->"+t+"<-as it is not defined in any of the super grammars ",i.push({message:n,type:jo.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:r})),i}Xt.validateRuleIsOverridden=EIe;function YS(r,e,t,i){i===void 0&&(i=[]);var n=[],s=Up(e.definition);if(nr.isEmpty(s))return[];var o=r.name,a=nr.contains(s,r);a&&n.push({message:t.buildLeftRecursionError({topLevelRule:r,leftRecursionPath:i}),type:jo.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:o});var l=nr.difference(s,i.concat([r])),c=nr.map(l,function(u){var g=nr.cloneArr(i);return g.push(u),YS(r,u,t,g)});return n.concat(nr.flatten(c))}Xt.validateNoLeftRecursion=YS;function Up(r){var e=[];if(nr.isEmpty(r))return e;var t=nr.first(r);if(t instanceof co.NonTerminal)e.push(t.referencedRule);else if(t instanceof co.Alternative||t instanceof co.Option||t instanceof co.RepetitionMandatory||t instanceof co.RepetitionMandatoryWithSeparator||t instanceof co.RepetitionWithSeparator||t instanceof co.Repetition)e=e.concat(Up(t.definition));else if(t instanceof co.Alternation)e=nr.flatten(nr.map(t.definition,function(o){return Up(o.definition)}));else if(!(t instanceof co.Terminal))throw Error("non exhaustive match");var i=(0,jS.isOptionalProd)(t),n=r.length>1;if(i&&n){var s=nr.drop(r);return e.concat(Up(s))}else return e}Xt.getFirstNoneTerminal=Up;var qS=function(r){HS(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.alternations=[],t}return e.prototype.visitAlternation=function(t){this.alternations.push(t)},e}(GS.GAstVisitor);function Wj(r,e){var t=new qS;r.accept(t);var i=t.alternations,n=nr.reduce(i,function(s,o){var a=nr.dropRight(o.definition),l=nr.map(a,function(c,u){var g=(0,pIe.nextPossibleTokensAfter)([c],[],null,1);return nr.isEmpty(g)?{message:e.buildEmptyAlternationError({topLevelRule:r,alternation:o,emptyChoiceIdx:u}),type:jo.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:r.name,occurrence:o.idx,alternative:u+1}:null});return s.concat(nr.compact(l))},[]);return n}Xt.validateEmptyOrAlternative=Wj;function zj(r,e,t){var i=new qS;r.accept(i);var n=i.alternations;n=(0,kr.reject)(n,function(o){return o.ignoreAmbiguities===!0});var s=nr.reduce(n,function(o,a){var l=a.idx,c=a.maxLookahead||e,u=(0,yg.getLookaheadPathsForOr)(l,r,c,a),g=IIe(u,a,r,t),f=eG(u,a,r,t);return o.concat(g,f)},[]);return s}Xt.validateAmbiguousAlternationAlternatives=zj;var tG=function(r){HS(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.allProductions=[],t}return e.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetition=function(t){this.allProductions.push(t)},e}(GS.GAstVisitor);Xt.RepetionCollector=tG;function _j(r,e){var t=new qS;r.accept(t);var i=t.alternations,n=nr.reduce(i,function(s,o){return o.definition.length>255&&s.push({message:e.buildTooManyAlternativesError({topLevelRule:r,alternation:o}),type:jo.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:r.name,occurrence:o.idx}),s},[]);return n}Xt.validateTooManyAlts=_j;function Vj(r,e,t){var i=[];return(0,kr.forEach)(r,function(n){var s=new tG;n.accept(s);var o=s.allProductions;(0,kr.forEach)(o,function(a){var l=(0,yg.getProdType)(a),c=a.maxLookahead||e,u=a.idx,g=(0,yg.getLookaheadPathsForOptionalProd)(u,n,l,c),f=g[0];if((0,kr.isEmpty)((0,kr.flatten)(f))){var h=t.buildEmptyRepetitionError({topLevelRule:n,repetition:a});i.push({message:h,type:jo.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:n.name})}})}),i}Xt.validateSomeNonEmptyLookaheadPath=Vj;function IIe(r,e,t,i){var n=[],s=(0,kr.reduce)(r,function(a,l,c){return e.definition[c].ignoreAmbiguities===!0||(0,kr.forEach)(l,function(u){var g=[c];(0,kr.forEach)(r,function(f,h){c!==h&&(0,yg.containsPath)(f,u)&&e.definition[h].ignoreAmbiguities!==!0&&g.push(h)}),g.length>1&&!(0,yg.containsPath)(n,u)&&(n.push(u),a.push({alts:g,path:u}))}),a},[]),o=nr.map(s,function(a){var l=(0,kr.map)(a.alts,function(u){return u+1}),c=i.buildAlternationAmbiguityError({topLevelRule:t,alternation:e,ambiguityIndices:l,prefixPath:a.path});return{message:c,type:jo.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:t.name,occurrence:e.idx,alternatives:[a.alts]}});return o}function eG(r,e,t,i){var n=[],s=(0,kr.reduce)(r,function(o,a,l){var c=(0,kr.map)(a,function(u){return{idx:l,path:u}});return o.concat(c)},[]);return(0,kr.forEach)(s,function(o){var a=e.definition[o.idx];if(a.ignoreAmbiguities!==!0){var l=o.idx,c=o.path,u=(0,kr.findAll)(s,function(f){return e.definition[f.idx].ignoreAmbiguities!==!0&&f.idx{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.validateGrammar=wg.resolveGrammar=void 0;var WS=Yt(),yIe=Lj(),wIe=JS(),rG=Tp();function BIe(r){r=(0,WS.defaults)(r,{errMsgProvider:rG.defaultGrammarResolverErrorProvider});var e={};return(0,WS.forEach)(r.rules,function(t){e[t.name]=t}),(0,yIe.resolveGrammar)(e,r.errMsgProvider)}wg.resolveGrammar=BIe;function bIe(r){return r=(0,WS.defaults)(r,{errMsgProvider:rG.defaultGrammarValidatorErrorProvider}),(0,wIe.validateGrammar)(r.rules,r.maxLookahead,r.tokenTypes,r.errMsgProvider,r.grammarName)}wg.validateGrammar=bIe});var Bg=w(Sn=>{"use strict";var Hp=Sn&&Sn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.EarlyExitException=Sn.NotAllInputParsedException=Sn.NoViableAltException=Sn.MismatchedTokenException=Sn.isRecognitionException=void 0;var QIe=Yt(),nG="MismatchedTokenException",sG="NoViableAltException",oG="EarlyExitException",aG="NotAllInputParsedException",AG=[nG,sG,oG,aG];Object.freeze(AG);function SIe(r){return(0,QIe.contains)(AG,r.name)}Sn.isRecognitionException=SIe;var ZI=function(r){Hp(e,r);function e(t,i){var n=this.constructor,s=r.call(this,t)||this;return s.token=i,s.resyncedTokens=[],Object.setPrototypeOf(s,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(s,s.constructor),s}return e}(Error),vIe=function(r){Hp(e,r);function e(t,i,n){var s=r.call(this,t,i)||this;return s.previousToken=n,s.name=nG,s}return e}(ZI);Sn.MismatchedTokenException=vIe;var xIe=function(r){Hp(e,r);function e(t,i,n){var s=r.call(this,t,i)||this;return s.previousToken=n,s.name=sG,s}return e}(ZI);Sn.NoViableAltException=xIe;var kIe=function(r){Hp(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name=aG,n}return e}(ZI);Sn.NotAllInputParsedException=kIe;var PIe=function(r){Hp(e,r);function e(t,i,n){var s=r.call(this,t,i)||this;return s.previousToken=n,s.name=oG,s}return e}(ZI);Sn.EarlyExitException=PIe});var _S=w(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.attemptInRepetitionRecovery=Yi.Recoverable=Yi.InRuleRecoveryException=Yi.IN_RULE_RECOVERY_EXCEPTION=Yi.EOF_FOLLOW_KEY=void 0;var $I=XA(),xs=Yt(),DIe=Bg(),RIe=TS(),FIe=$n();Yi.EOF_FOLLOW_KEY={};Yi.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";function zS(r){this.name=Yi.IN_RULE_RECOVERY_EXCEPTION,this.message=r}Yi.InRuleRecoveryException=zS;zS.prototype=Error.prototype;var NIe=function(){function r(){}return r.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,xs.has)(e,"recoveryEnabled")?e.recoveryEnabled:FIe.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=lG)},r.prototype.getTokenToInsert=function(e){var t=(0,$I.createTokenInstance)(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},r.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},r.prototype.tryInRepetitionRecovery=function(e,t,i,n){for(var s=this,o=this.findReSyncTokenType(),a=this.exportLexerState(),l=[],c=!1,u=this.LA(1),g=this.LA(1),f=function(){var h=s.LA(0),p=s.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:u,previous:h,ruleName:s.getCurrRuleFullName()}),m=new DIe.MismatchedTokenException(p,u,s.LA(0));m.resyncedTokens=(0,xs.dropRight)(l),s.SAVE_ERROR(m)};!c;)if(this.tokenMatcher(g,n)){f();return}else if(i.call(this)){f(),e.apply(this,t);return}else this.tokenMatcher(g,o)?c=!0:(g=this.SKIP_TOKEN(),this.addToResyncTokens(g,l));this.importLexerState(a)},r.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,i){return!(i===!1||e===void 0||t===void 0||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))},r.prototype.getFollowsForInRuleRecovery=function(e,t){var i=this.getCurrentGrammarPath(e,t),n=this.getNextPossibleTokenTypes(i);return n},r.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t)){var i=this.getTokenToInsert(e);return i}if(this.canRecoverWithSingleTokenDeletion(e)){var n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new zS("sad sad panda")},r.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},r.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(e)||(0,xs.isEmpty)(t))return!1;var n=this.LA(1),s=(0,xs.find)(t,function(o){return i.tokenMatcher(n,o)})!==void 0;return s},r.prototype.canRecoverWithSingleTokenDeletion=function(e){var t=this.tokenMatcher(this.LA(2),e);return t},r.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(t);return(0,xs.contains)(i,e)},r.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),i=2;;){var n=t.tokenType;if((0,xs.contains)(e,n))return n;t=this.LA(i),i++}},r.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return Yi.EOF_FOLLOW_KEY;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(i)}},r.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return(0,xs.map)(t,function(n,s){return s===0?Yi.EOF_FOLLOW_KEY:{ruleName:e.shortRuleNameToFullName(n),idxInCallingRule:i[s],inRule:e.shortRuleNameToFullName(t[s-1])}})},r.prototype.flattenFollowSet=function(){var e=this,t=(0,xs.map)(this.buildFullFollowKeyStack(),function(i){return e.getFollowSetFromFollowKey(i)});return(0,xs.flatten)(t)},r.prototype.getFollowSetFromFollowKey=function(e){if(e===Yi.EOF_FOLLOW_KEY)return[$I.EOF];var t=e.ruleName+e.idxInCallingRule+RIe.IN+e.inRule;return this.resyncFollows[t]},r.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,$I.EOF)||t.push(e),t},r.prototype.reSyncTo=function(e){for(var t=[],i=this.LA(1);this.tokenMatcher(i,e)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,t);return(0,xs.dropRight)(t)},r.prototype.attemptInRepetitionRecovery=function(e,t,i,n,s,o,a){},r.prototype.getCurrentGrammarPath=function(e,t){var i=this.getHumanReadableRuleStack(),n=(0,xs.cloneArr)(this.RULE_OCCURRENCE_STACK),s={ruleStack:i,occurrenceStack:n,lastTok:e,lastTokOccurrence:t};return s},r.prototype.getHumanReadableRuleStack=function(){var e=this;return(0,xs.map)(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)})},r}();Yi.Recoverable=NIe;function lG(r,e,t,i,n,s,o){var a=this.getKeyForAutomaticLookahead(i,n),l=this.firstAfterRepMap[a];if(l===void 0){var c=this.getCurrRuleFullName(),u=this.getGAstProductions()[c],g=new s(u,n);l=g.startWalking(),this.firstAfterRepMap[a]=l}var f=l.token,h=l.occurrence,p=l.isEndOfRule;this.RULE_STACK.length===1&&p&&f===void 0&&(f=$I.EOF,h=1),this.shouldInRepetitionRecoveryBeTried(f,h,o)&&this.tryInRepetitionRecovery(r,e,t,f)}Yi.attemptInRepetitionRecovery=lG});var ey=w(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getKeyForAutomaticLookahead=Jt.AT_LEAST_ONE_SEP_IDX=Jt.MANY_SEP_IDX=Jt.AT_LEAST_ONE_IDX=Jt.MANY_IDX=Jt.OPTION_IDX=Jt.OR_IDX=Jt.BITS_FOR_ALT_IDX=Jt.BITS_FOR_RULE_IDX=Jt.BITS_FOR_OCCURRENCE_IDX=Jt.BITS_FOR_METHOD_TYPE=void 0;Jt.BITS_FOR_METHOD_TYPE=4;Jt.BITS_FOR_OCCURRENCE_IDX=8;Jt.BITS_FOR_RULE_IDX=12;Jt.BITS_FOR_ALT_IDX=8;Jt.OR_IDX=1<{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.LooksAhead=void 0;var qa=Kp(),uo=Yt(),cG=$n(),Ja=ey(),Dc=Lp(),TIe=function(){function r(){}return r.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=(0,uo.has)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:cG.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,uo.has)(e,"maxLookahead")?e.maxLookahead:cG.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=(0,uo.isES2015MapSupported)()?new Map:[],(0,uo.isES2015MapSupported)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},r.prototype.preComputeLookaheadFunctions=function(e){var t=this;(0,uo.forEach)(e,function(i){t.TRACE_INIT(i.name+" Rule Lookahead",function(){var n=(0,Dc.collectMethods)(i),s=n.alternation,o=n.repetition,a=n.option,l=n.repetitionMandatory,c=n.repetitionMandatoryWithSeparator,u=n.repetitionWithSeparator;(0,uo.forEach)(s,function(g){var f=g.idx===0?"":g.idx;t.TRACE_INIT(""+(0,Dc.getProductionDslName)(g)+f,function(){var h=(0,qa.buildLookaheadFuncForOr)(g.idx,i,g.maxLookahead||t.maxLookahead,g.hasPredicates,t.dynamicTokensEnabled,t.lookAheadBuilderForAlternatives),p=(0,Ja.getKeyForAutomaticLookahead)(t.fullRuleNameToShort[i.name],Ja.OR_IDX,g.idx);t.setLaFuncCache(p,h)})}),(0,uo.forEach)(o,function(g){t.computeLookaheadFunc(i,g.idx,Ja.MANY_IDX,qa.PROD_TYPE.REPETITION,g.maxLookahead,(0,Dc.getProductionDslName)(g))}),(0,uo.forEach)(a,function(g){t.computeLookaheadFunc(i,g.idx,Ja.OPTION_IDX,qa.PROD_TYPE.OPTION,g.maxLookahead,(0,Dc.getProductionDslName)(g))}),(0,uo.forEach)(l,function(g){t.computeLookaheadFunc(i,g.idx,Ja.AT_LEAST_ONE_IDX,qa.PROD_TYPE.REPETITION_MANDATORY,g.maxLookahead,(0,Dc.getProductionDslName)(g))}),(0,uo.forEach)(c,function(g){t.computeLookaheadFunc(i,g.idx,Ja.AT_LEAST_ONE_SEP_IDX,qa.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,g.maxLookahead,(0,Dc.getProductionDslName)(g))}),(0,uo.forEach)(u,function(g){t.computeLookaheadFunc(i,g.idx,Ja.MANY_SEP_IDX,qa.PROD_TYPE.REPETITION_WITH_SEPARATOR,g.maxLookahead,(0,Dc.getProductionDslName)(g))})})})},r.prototype.computeLookaheadFunc=function(e,t,i,n,s,o){var a=this;this.TRACE_INIT(""+o+(t===0?"":t),function(){var l=(0,qa.buildLookaheadFuncForOptionalProd)(t,e,s||a.maxLookahead,a.dynamicTokensEnabled,n,a.lookAheadBuilderForOptional),c=(0,Ja.getKeyForAutomaticLookahead)(a.fullRuleNameToShort[e.name],i,t);a.setLaFuncCache(c,l)})},r.prototype.lookAheadBuilderForOptional=function(e,t,i){return(0,qa.buildSingleAlternativeLookaheadFunction)(e,t,i)},r.prototype.lookAheadBuilderForAlternatives=function(e,t,i,n){return(0,qa.buildAlternativesLookAheadFunc)(e,t,i,n)},r.prototype.getKeyForAutomaticLookahead=function(e,t){var i=this.getLastExplicitRuleShortName();return(0,Ja.getKeyForAutomaticLookahead)(i,e,t)},r.prototype.getLaFuncFromCache=function(e){},r.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},r.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},r.prototype.setLaFuncCache=function(e,t){},r.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},r.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},r}();ty.LooksAhead=TIe});var gG=w(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.addNoneTerminalToCst=Go.addTerminalToCst=Go.setNodeLocationFull=Go.setNodeLocationOnlyOffset=void 0;function OIe(r,e){isNaN(r.startOffset)===!0?(r.startOffset=e.startOffset,r.endOffset=e.endOffset):r.endOffset{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.defineNameProp=el.functionName=el.classNameFromInstance=void 0;var HIe=Yt();function jIe(r){return fG(r.constructor)}el.classNameFromInstance=jIe;var hG="name";function fG(r){var e=r.name;return e||"anonymous"}el.functionName=fG;function GIe(r,e){var t=Object.getOwnPropertyDescriptor(r,hG);return(0,HIe.isUndefined)(t)||t.configurable?(Object.defineProperty(r,hG,{enumerable:!1,configurable:!0,writable:!1,value:e}),!0):!1}el.defineNameProp=GIe});var EG=w(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.validateRedundantMethods=Di.validateMissingCstMethods=Di.validateVisitor=Di.CstVisitorDefinitionError=Di.createBaseVisitorConstructorWithDefaults=Di.createBaseSemanticVisitorConstructor=Di.defaultVisit=void 0;var ks=Yt(),jp=VS();function pG(r,e){for(var t=(0,ks.keys)(r),i=t.length,n=0;n: + `+(""+s.join(` + +`).replace(/\n/g,` + `)))}}};return t.prototype=i,t.prototype.constructor=t,t._RULE_NAMES=e,t}Di.createBaseSemanticVisitorConstructor=YIe;function qIe(r,e,t){var i=function(){};(0,jp.defineNameProp)(i,r+"BaseSemanticsWithDefaults");var n=Object.create(t.prototype);return(0,ks.forEach)(e,function(s){n[s]=pG}),i.prototype=n,i.prototype.constructor=i,i}Di.createBaseVisitorConstructorWithDefaults=qIe;var XS;(function(r){r[r.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",r[r.MISSING_METHOD=1]="MISSING_METHOD"})(XS=Di.CstVisitorDefinitionError||(Di.CstVisitorDefinitionError={}));function dG(r,e){var t=CG(r,e),i=mG(r,e);return t.concat(i)}Di.validateVisitor=dG;function CG(r,e){var t=(0,ks.map)(e,function(i){if(!(0,ks.isFunction)(r[i]))return{msg:"Missing visitor method: <"+i+"> on "+(0,jp.functionName)(r.constructor)+" CST Visitor.",type:XS.MISSING_METHOD,methodName:i}});return(0,ks.compact)(t)}Di.validateMissingCstMethods=CG;var JIe=["constructor","visit","validateVisitor"];function mG(r,e){var t=[];for(var i in r)(0,ks.isFunction)(r[i])&&!(0,ks.contains)(JIe,i)&&!(0,ks.contains)(e,i)&&t.push({msg:"Redundant visitor method: <"+i+"> on "+(0,jp.functionName)(r.constructor)+` CST Visitor +There is no Grammar Rule corresponding to this method's name. +`,type:XS.REDUNDANT_METHOD,methodName:i});return t}Di.validateRedundantMethods=mG});var yG=w(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.TreeBuilder=void 0;var bg=gG(),ni=Yt(),IG=EG(),WIe=$n(),zIe=function(){function r(){}return r.prototype.initTreeBuilder=function(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(0,ni.has)(e,"nodeLocationTracking")?e.nodeLocationTracking:WIe.DEFAULT_PARSER_CONFIG.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ni.NOOP,this.cstFinallyStateUpdate=ni.NOOP,this.cstPostTerminal=ni.NOOP,this.cstPostNonTerminal=ni.NOOP,this.cstPostRule=ni.NOOP;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=bg.setNodeLocationFull,this.setNodeLocationFromNode=bg.setNodeLocationFull,this.cstPostRule=ni.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ni.NOOP,this.setNodeLocationFromNode=ni.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=bg.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=bg.setNodeLocationOnlyOffset,this.cstPostRule=ni.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ni.NOOP,this.setNodeLocationFromNode=ni.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ni.NOOP,this.setNodeLocationFromNode=ni.NOOP,this.cstPostRule=ni.NOOP,this.setInitialNodeLocation=ni.NOOP;else throw Error('Invalid config option: "'+e.nodeLocationTracking+'"')},r.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},r.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},r.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},r.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},r.prototype.cstInvocationStateUpdate=function(e,t){var i={name:e,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},r.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},r.prototype.cstPostRuleFull=function(e){var t=this.LA(0),i=e.location;i.startOffset<=t.startOffset?(i.endOffset=t.endOffset,i.endLine=t.endLine,i.endColumn=t.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},r.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),i=e.location;i.startOffset<=t.startOffset?i.endOffset=t.endOffset:i.startOffset=NaN},r.prototype.cstPostTerminal=function(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];(0,bg.addTerminalToCst)(i,t,e),this.setNodeLocationFromToken(i.location,t)},r.prototype.cstPostNonTerminal=function(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];(0,bg.addNoneTerminalToCst)(i,t,e),this.setNodeLocationFromNode(i.location,e.location)},r.prototype.getBaseCstVisitorConstructor=function(){if((0,ni.isUndefined)(this.baseCstVisitorConstructor)){var e=(0,IG.createBaseSemanticVisitorConstructor)(this.className,(0,ni.keys)(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},r.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,ni.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=(0,IG.createBaseVisitorConstructorWithDefaults)(this.className,(0,ni.keys)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},r.prototype.getLastExplicitRuleShortName=function(){var e=this.RULE_STACK;return e[e.length-1]},r.prototype.getPreviousExplicitRuleShortName=function(){var e=this.RULE_STACK;return e[e.length-2]},r.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},r}();ry.TreeBuilder=zIe});var BG=w(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.LexerAdapter=void 0;var wG=$n(),_Ie=function(){function r(){}return r.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(r.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!1,configurable:!0}),r.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):wG.END_OF_FILE},r.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?wG.END_OF_FILE:this.tokVector[t]},r.prototype.consumeToken=function(){this.currIdx++},r.prototype.exportLexerState=function(){return this.currIdx},r.prototype.importLexerState=function(e){this.currIdx=e},r.prototype.resetLexerState=function(){this.currIdx=-1},r.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},r.prototype.getLexerPosition=function(){return this.exportLexerState()},r}();iy.LexerAdapter=_Ie});var QG=w(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.RecognizerApi=void 0;var bG=Yt(),VIe=Bg(),ZS=$n(),XIe=Tp(),ZIe=JS(),$Ie=bn(),eye=function(){function r(){}return r.prototype.ACTION=function(e){return e.call(this)},r.prototype.consume=function(e,t,i){return this.consumeInternal(t,e,i)},r.prototype.subrule=function(e,t,i){return this.subruleInternal(t,e,i)},r.prototype.option=function(e,t){return this.optionInternal(t,e)},r.prototype.or=function(e,t){return this.orInternal(t,e)},r.prototype.many=function(e,t){return this.manyInternal(e,t)},r.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},r.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},r.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},r.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},r.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},r.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},r.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},r.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},r.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},r.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},r.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},r.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},r.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},r.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},r.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},r.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},r.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},r.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},r.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},r.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},r.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},r.prototype.OPTION=function(e){return this.optionInternal(e,0)},r.prototype.OPTION1=function(e){return this.optionInternal(e,1)},r.prototype.OPTION2=function(e){return this.optionInternal(e,2)},r.prototype.OPTION3=function(e){return this.optionInternal(e,3)},r.prototype.OPTION4=function(e){return this.optionInternal(e,4)},r.prototype.OPTION5=function(e){return this.optionInternal(e,5)},r.prototype.OPTION6=function(e){return this.optionInternal(e,6)},r.prototype.OPTION7=function(e){return this.optionInternal(e,7)},r.prototype.OPTION8=function(e){return this.optionInternal(e,8)},r.prototype.OPTION9=function(e){return this.optionInternal(e,9)},r.prototype.OR=function(e){return this.orInternal(e,0)},r.prototype.OR1=function(e){return this.orInternal(e,1)},r.prototype.OR2=function(e){return this.orInternal(e,2)},r.prototype.OR3=function(e){return this.orInternal(e,3)},r.prototype.OR4=function(e){return this.orInternal(e,4)},r.prototype.OR5=function(e){return this.orInternal(e,5)},r.prototype.OR6=function(e){return this.orInternal(e,6)},r.prototype.OR7=function(e){return this.orInternal(e,7)},r.prototype.OR8=function(e){return this.orInternal(e,8)},r.prototype.OR9=function(e){return this.orInternal(e,9)},r.prototype.MANY=function(e){this.manyInternal(0,e)},r.prototype.MANY1=function(e){this.manyInternal(1,e)},r.prototype.MANY2=function(e){this.manyInternal(2,e)},r.prototype.MANY3=function(e){this.manyInternal(3,e)},r.prototype.MANY4=function(e){this.manyInternal(4,e)},r.prototype.MANY5=function(e){this.manyInternal(5,e)},r.prototype.MANY6=function(e){this.manyInternal(6,e)},r.prototype.MANY7=function(e){this.manyInternal(7,e)},r.prototype.MANY8=function(e){this.manyInternal(8,e)},r.prototype.MANY9=function(e){this.manyInternal(9,e)},r.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},r.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},r.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},r.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},r.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},r.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},r.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},r.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},r.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},r.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},r.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},r.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},r.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},r.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},r.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},r.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},r.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},r.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},r.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},r.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},r.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},r.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},r.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},r.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},r.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},r.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},r.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},r.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},r.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},r.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},r.prototype.RULE=function(e,t,i){if(i===void 0&&(i=ZS.DEFAULT_RULE_CONFIG),(0,bG.contains)(this.definedRulesNames,e)){var n=XIe.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),s={message:n,type:ZS.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);var o=this.defineRule(e,t,i);return this[e]=o,o},r.prototype.OVERRIDE_RULE=function(e,t,i){i===void 0&&(i=ZS.DEFAULT_RULE_CONFIG);var n=[];n=n.concat((0,ZIe.validateRuleIsOverridden)(e,this.definedRulesNames,this.className)),this.definitionErrors=this.definitionErrors.concat(n);var s=this.defineRule(e,t,i);return this[e]=s,s},r.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if((0,VIe.isRecognitionException)(n))return!1;throw n}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},r.prototype.getGAstProductions=function(){return this.gastProductionsCache},r.prototype.getSerializedGastProductions=function(){return(0,$Ie.serializeGrammar)((0,bG.values)(this.gastProductionsCache))},r}();ny.RecognizerApi=eye});var kG=w(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.RecognizerEngine=void 0;var Fr=Yt(),es=ey(),oy=Bg(),SG=Kp(),Qg=Mp(),vG=$n(),tye=_S(),xG=XA(),Gp=mg(),rye=VS(),iye=function(){function r(){}return r.prototype.initRecognizerEngine=function(e,t){if(this.className=(0,rye.classNameFromInstance)(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Gp.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,Fr.has)(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if((0,Fr.isArray)(e)){if((0,Fr.isEmpty)(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if((0,Fr.isArray)(e))this.tokensMap=(0,Fr.reduce)(e,function(o,a){return o[a.name]=a,o},{});else if((0,Fr.has)(e,"modes")&&(0,Fr.every)((0,Fr.flatten)((0,Fr.values)(e.modes)),Gp.isTokenType)){var i=(0,Fr.flatten)((0,Fr.values)(e.modes)),n=(0,Fr.uniq)(i);this.tokensMap=(0,Fr.reduce)(n,function(o,a){return o[a.name]=a,o},{})}else if((0,Fr.isObject)(e))this.tokensMap=(0,Fr.cloneObj)(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=xG.EOF;var s=(0,Fr.every)((0,Fr.values)(e),function(o){return(0,Fr.isEmpty)(o.categoryMatches)});this.tokenMatcher=s?Gp.tokenStructuredMatcherNoCategories:Gp.tokenStructuredMatcher,(0,Gp.augmentTokenTypes)((0,Fr.values)(this.tokensMap))},r.prototype.defineRule=function(e,t,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+`> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var n=(0,Fr.has)(i,"resyncEnabled")?i.resyncEnabled:vG.DEFAULT_RULE_CONFIG.resyncEnabled,s=(0,Fr.has)(i,"recoveryValueFunc")?i.recoveryValueFunc:vG.DEFAULT_RULE_CONFIG.recoveryValueFunc,o=this.ruleShortNameIdx<t},r.prototype.orInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(es.OR_IDX,t),n=(0,Fr.isArray)(e)?e:e.DEF,s=this.getLaFuncFromCache(i),o=s.call(this,n);if(o!==void 0){var a=n[o];return a.ALT.call(this)}this.raiseNoAltException(t,e.ERR_MSG)},r.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new oy.NotAllInputParsedException(t,e))}},r.prototype.subruleInternal=function(e,t,i){var n;try{var s=i!==void 0?i.ARGS:void 0;return n=e.call(this,t,s),this.cstPostNonTerminal(n,i!==void 0&&i.LABEL!==void 0?i.LABEL:e.ruleName),n}catch(o){this.subruleInternalError(o,i,e.ruleName)}},r.prototype.subruleInternalError=function(e,t,i){throw(0,oy.isRecognitionException)(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:i),delete e.partialCstResult),e},r.prototype.consumeInternal=function(e,t,i){var n;try{var s=this.LA(1);this.tokenMatcher(s,e)===!0?(this.consumeToken(),n=s):this.consumeInternalError(e,s,i)}catch(o){n=this.consumeInternalRecovery(e,t,o)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:e.name,n),n},r.prototype.consumeInternalError=function(e,t,i){var n,s=this.LA(0);throw i!==void 0&&i.ERR_MSG?n=i.ERR_MSG:n=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:s,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new oy.MismatchedTokenException(n,t,s))},r.prototype.consumeInternalRecovery=function(e,t,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(s){throw s.name===tye.IN_RULE_RECOVERY_EXCEPTION?i:s}}else throw i},r.prototype.saveRecogState=function(){var e=this.errors,t=(0,Fr.cloneArr)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}},r.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},r.prototype.ruleInvocationStateUpdate=function(e,t,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},r.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},r.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},r.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},r.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),xG.EOF)},r.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},r}();sy.RecognizerEngine=iye});var DG=w(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.ErrorHandler=void 0;var $S=Bg(),ev=Yt(),PG=Kp(),nye=$n(),sye=function(){function r(){}return r.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=(0,ev.has)(e,"errorMessageProvider")?e.errorMessageProvider:nye.DEFAULT_PARSER_CONFIG.errorMessageProvider},r.prototype.SAVE_ERROR=function(e){if((0,$S.isRecognitionException)(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,ev.cloneArr)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(r.prototype,"errors",{get:function(){return(0,ev.cloneArr)(this._errors)},set:function(e){this._errors=e},enumerable:!1,configurable:!0}),r.prototype.raiseEarlyExitException=function(e,t,i){for(var n=this.getCurrRuleFullName(),s=this.getGAstProductions()[n],o=(0,PG.getLookaheadPathsForOptionalProd)(e,s,t,this.maxLookahead),a=o[0],l=[],c=1;c<=this.maxLookahead;c++)l.push(this.LA(c));var u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:l,previous:this.LA(0),customUserDescription:i,ruleName:n});throw this.SAVE_ERROR(new $S.EarlyExitException(u,this.LA(1),this.LA(0)))},r.prototype.raiseNoAltException=function(e,t){for(var i=this.getCurrRuleFullName(),n=this.getGAstProductions()[i],s=(0,PG.getLookaheadPathsForOr)(e,n,this.maxLookahead),o=[],a=1;a<=this.maxLookahead;a++)o.push(this.LA(a));var l=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:s,actual:o,previous:l,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new $S.NoViableAltException(c,this.LA(1),l))},r}();ay.ErrorHandler=sye});var NG=w(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.ContentAssist=void 0;var RG=Mp(),FG=Yt(),oye=function(){function r(){}return r.prototype.initContentAssist=function(){},r.prototype.computeContentAssist=function(e,t){var i=this.gastProductionsCache[e];if((0,FG.isUndefined)(i))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return(0,RG.nextPossibleTokensAfter)([i],t,this.tokenMatcher,this.maxLookahead)},r.prototype.getNextPossibleTokenTypes=function(e){var t=(0,FG.first)(e.ruleStack),i=this.getGAstProductions(),n=i[t],s=new RG.NextAfterTokenWalker(n,e).startWalking();return s},r}();Ay.ContentAssist=oye});var jG=w(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.GastRecorder=void 0;var vn=Yt(),Yo=bn(),aye=Dp(),LG=mg(),TG=XA(),Aye=$n(),lye=ey(),cy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(cy);var OG=!0,MG=Math.pow(2,lye.BITS_FOR_OCCURRENCE_IDX)-1,KG=(0,TG.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:aye.Lexer.NA});(0,LG.augmentTokenTypes)([KG]);var UG=(0,TG.createTokenInstance)(KG,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(UG);var cye={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},gye=function(){function r(){}return r.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},r.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(n){var s=n>0?n:"";e["CONSUME"+s]=function(o,a){return this.consumeInternalRecord(o,n,a)},e["SUBRULE"+s]=function(o,a){return this.subruleInternalRecord(o,n,a)},e["OPTION"+s]=function(o){return this.optionInternalRecord(o,n)},e["OR"+s]=function(o){return this.orInternalRecord(o,n)},e["MANY"+s]=function(o){this.manyInternalRecord(n,o)},e["MANY_SEP"+s]=function(o){this.manySepFirstInternalRecord(n,o)},e["AT_LEAST_ONE"+s]=function(o){this.atLeastOneInternalRecord(n,o)},e["AT_LEAST_ONE_SEP"+s]=function(o){this.atLeastOneSepFirstInternalRecord(n,o)}},i=0;i<10;i++)t(i);e.consume=function(n,s,o){return this.consumeInternalRecord(s,n,o)},e.subrule=function(n,s,o){return this.subruleInternalRecord(s,n,o)},e.option=function(n,s){return this.optionInternalRecord(s,n)},e.or=function(n,s){return this.orInternalRecord(s,n)},e.many=function(n,s){this.manyInternalRecord(n,s)},e.atLeastOne=function(n,s){this.atLeastOneInternalRecord(n,s)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},r.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var i=t>0?t:"";delete e["CONSUME"+i],delete e["SUBRULE"+i],delete e["OPTION"+i],delete e["OR"+i],delete e["MANY"+i],delete e["MANY_SEP"+i],delete e["AT_LEAST_ONE"+i],delete e["AT_LEAST_ONE_SEP"+i]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},r.prototype.ACTION_RECORD=function(e){},r.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},r.prototype.LA_RECORD=function(e){return Aye.END_OF_FILE},r.prototype.topLevelRuleRecord=function(e,t){try{var i=new Yo.Rule({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),t.call(this),this.recordingProdStack.pop(),i}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(s){throw n}throw n}},r.prototype.optionInternalRecord=function(e,t){return Yp.call(this,Yo.Option,e,t)},r.prototype.atLeastOneInternalRecord=function(e,t){Yp.call(this,Yo.RepetitionMandatory,t,e)},r.prototype.atLeastOneSepFirstInternalRecord=function(e,t){Yp.call(this,Yo.RepetitionMandatoryWithSeparator,t,e,OG)},r.prototype.manyInternalRecord=function(e,t){Yp.call(this,Yo.Repetition,t,e)},r.prototype.manySepFirstInternalRecord=function(e,t){Yp.call(this,Yo.RepetitionWithSeparator,t,e,OG)},r.prototype.orInternalRecord=function(e,t){return uye.call(this,e,t)},r.prototype.subruleInternalRecord=function(e,t,i){if(uy(t),!e||(0,vn.has)(e,"ruleName")===!1){var n=new Error(" argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(e)+">")+(` + inside top level rule: <`+this.recordingProdStack[0].name+">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var s=(0,vn.peek)(this.recordingProdStack),o=e.ruleName,a=new Yo.NonTerminal({idx:t,nonTerminalName:o,label:i==null?void 0:i.LABEL,referencedRule:void 0});return s.definition.push(a),this.outputCst?cye:cy},r.prototype.consumeInternalRecord=function(e,t,i){if(uy(t),!(0,LG.hasShortKeyProperty)(e)){var n=new Error(" argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(e)+">")+(` + inside top level rule: <`+this.recordingProdStack[0].name+">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var s=(0,vn.peek)(this.recordingProdStack),o=new Yo.Terminal({idx:t,terminalType:e,label:i==null?void 0:i.LABEL});return s.definition.push(o),UG},r}();ly.GastRecorder=gye;function Yp(r,e,t,i){i===void 0&&(i=!1),uy(t);var n=(0,vn.peek)(this.recordingProdStack),s=(0,vn.isFunction)(e)?e:e.DEF,o=new r({definition:[],idx:t});return i&&(o.separator=e.SEP),(0,vn.has)(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),n.definition.push(o),this.recordingProdStack.pop(),cy}function uye(r,e){var t=this;uy(e);var i=(0,vn.peek)(this.recordingProdStack),n=(0,vn.isArray)(r)===!1,s=n===!1?r:r.DEF,o=new Yo.Alternation({definition:[],idx:e,ignoreAmbiguities:n&&r.IGNORE_AMBIGUITIES===!0});(0,vn.has)(r,"MAX_LOOKAHEAD")&&(o.maxLookahead=r.MAX_LOOKAHEAD);var a=(0,vn.some)(s,function(l){return(0,vn.isFunction)(l.GATE)});return o.hasPredicates=a,i.definition.push(o),(0,vn.forEach)(s,function(l){var c=new Yo.Alternative({definition:[]});o.definition.push(c),(0,vn.has)(l,"IGNORE_AMBIGUITIES")?c.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:(0,vn.has)(l,"GATE")&&(c.ignoreAmbiguities=!0),t.recordingProdStack.push(c),l.ALT.call(t),t.recordingProdStack.pop()}),cy}function HG(r){return r===0?"":""+r}function uy(r){if(r<0||r>MG){var e=new Error("Invalid DSL Method idx value: <"+r+`> + `+("Idx value must be a none negative value smaller than "+(MG+1)));throw e.KNOWN_RECORDER_ERROR=!0,e}}});var YG=w(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});gy.PerformanceTracer=void 0;var GG=Yt(),fye=$n(),hye=function(){function r(){}return r.prototype.initPerformanceTracer=function(e){if((0,GG.has)(e,"traceInitPerf")){var t=e.traceInitPerf,i=typeof t=="number";this.traceInitMaxIdent=i?t:Infinity,this.traceInitPerf=i?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=fye.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},r.prototype.TRACE_INIT=function(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <"+e+">");var n=(0,GG.timer)(t),s=n.time,o=n.value,a=s>10?console.warn:console.log;return this.traceInitIndent time: "+s+"ms"),this.traceInitIndent--,o}else return t()},r}();gy.PerformanceTracer=hye});var qG=w(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.applyMixins=void 0;function pye(r,e){e.forEach(function(t){var i=t.prototype;Object.getOwnPropertyNames(i).forEach(function(n){if(n!=="constructor"){var s=Object.getOwnPropertyDescriptor(i,n);s&&(s.get||s.set)?Object.defineProperty(r.prototype,n,s):r.prototype[n]=t.prototype[n]}})})}fy.applyMixins=pye});var $n=w(Er=>{"use strict";var JG=Er&&Er.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Er,"__esModule",{value:!0});Er.EmbeddedActionsParser=Er.CstParser=Er.Parser=Er.EMPTY_ALT=Er.ParserDefinitionErrorType=Er.DEFAULT_RULE_CONFIG=Er.DEFAULT_PARSER_CONFIG=Er.END_OF_FILE=void 0;var an=Yt(),dye=Dj(),WG=XA(),zG=Tp(),_G=iG(),Cye=_S(),mye=uG(),Eye=yG(),Iye=BG(),yye=QG(),wye=kG(),Bye=DG(),bye=NG(),Qye=jG(),Sye=YG(),vye=qG();Er.END_OF_FILE=(0,WG.createTokenInstance)(WG.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Er.END_OF_FILE);Er.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:zG.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1});Er.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});var xye;(function(r){r[r.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",r[r.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",r[r.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",r[r.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",r[r.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",r[r.LEFT_RECURSION=5]="LEFT_RECURSION",r[r.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",r[r.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",r[r.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",r[r.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",r[r.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",r[r.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",r[r.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(xye=Er.ParserDefinitionErrorType||(Er.ParserDefinitionErrorType={}));function kye(r){return r===void 0&&(r=void 0),function(){return r}}Er.EMPTY_ALT=kye;var hy=function(){function r(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(t),i.initLexerAdapter(),i.initLooksAhead(t),i.initRecognizerEngine(e,t),i.initRecoverable(t),i.initTreeBuilder(t),i.initContentAssist(),i.initGastRecorder(t),i.initPerformanceTracer(t),(0,an.has)(t,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=(0,an.has)(t,"skipValidations")?t.skipValidations:Er.DEFAULT_PARSER_CONFIG.skipValidations}return r.performSelfAnalysis=function(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},r.prototype.performSelfAnalysis=function(){var e=this;this.TRACE_INIT("performSelfAnalysis",function(){var t;e.selfAnalysisDone=!0;var i=e.className;e.TRACE_INIT("toFastProps",function(){(0,an.toFastProperties)(e)}),e.TRACE_INIT("Grammar Recording",function(){try{e.enableRecording(),(0,an.forEach)(e.definedRulesNames,function(s){var o=e[s],a=o.originalGrammarAction,l=void 0;e.TRACE_INIT(s+" Rule",function(){l=e.topLevelRuleRecord(s,a)}),e.gastProductionsCache[s]=l})}finally{e.disableRecording()}});var n=[];if(e.TRACE_INIT("Grammar Resolving",function(){n=(0,_G.resolveGrammar)({rules:(0,an.values)(e.gastProductionsCache)}),e.definitionErrors=e.definitionErrors.concat(n)}),e.TRACE_INIT("Grammar Validations",function(){if((0,an.isEmpty)(n)&&e.skipValidations===!1){var s=(0,_G.validateGrammar)({rules:(0,an.values)(e.gastProductionsCache),maxLookahead:e.maxLookahead,tokenTypes:(0,an.values)(e.tokensMap),errMsgProvider:zG.defaultGrammarValidatorErrorProvider,grammarName:i});e.definitionErrors=e.definitionErrors.concat(s)}}),(0,an.isEmpty)(e.definitionErrors)&&(e.recoveryEnabled&&e.TRACE_INIT("computeAllProdsFollows",function(){var s=(0,dye.computeAllProdsFollows)((0,an.values)(e.gastProductionsCache));e.resyncFollows=s}),e.TRACE_INIT("ComputeLookaheadFunctions",function(){e.preComputeLookaheadFunctions((0,an.values)(e.gastProductionsCache))})),!r.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,an.isEmpty)(e.definitionErrors))throw t=(0,an.map)(e.definitionErrors,function(s){return s.message}),new Error(`Parser Definition Errors detected: + `+t.join(` +------------------------------- +`))})},r.DEFER_DEFINITION_ERRORS_HANDLING=!1,r}();Er.Parser=hy;(0,vye.applyMixins)(hy,[Cye.Recoverable,mye.LooksAhead,Eye.TreeBuilder,Iye.LexerAdapter,wye.RecognizerEngine,yye.RecognizerApi,Bye.ErrorHandler,bye.ContentAssist,Qye.GastRecorder,Sye.PerformanceTracer]);var Pye=function(r){JG(e,r);function e(t,i){i===void 0&&(i=Er.DEFAULT_PARSER_CONFIG);var n=this,s=(0,an.cloneObj)(i);return s.outputCst=!0,n=r.call(this,t,s)||this,n}return e}(hy);Er.CstParser=Pye;var Dye=function(r){JG(e,r);function e(t,i){i===void 0&&(i=Er.DEFAULT_PARSER_CONFIG);var n=this,s=(0,an.cloneObj)(i);return s.outputCst=!1,n=r.call(this,t,s)||this,n}return e}(hy);Er.EmbeddedActionsParser=Dye});var XG=w(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.createSyntaxDiagramsCode=void 0;var VG=IS();function Rye(r,e){var t=e===void 0?{}:e,i=t.resourceBase,n=i===void 0?"https://unpkg.com/chevrotain@"+VG.VERSION+"/diagrams/":i,s=t.css,o=s===void 0?"https://unpkg.com/chevrotain@"+VG.VERSION+"/diagrams/diagrams.css":s,a=` + + + + + +`,l=` + +`,c=` + + + + +`,u=` +
+`,g=` + +`,f=` + +`;return a+l+c+u+g+f}py.createSyntaxDiagramsCode=Rye});var eY=w(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Parser=Ve.createSyntaxDiagramsCode=Ve.clearCache=Ve.GAstVisitor=Ve.serializeProduction=Ve.serializeGrammar=Ve.Terminal=Ve.Rule=Ve.RepetitionWithSeparator=Ve.RepetitionMandatoryWithSeparator=Ve.RepetitionMandatory=Ve.Repetition=Ve.Option=Ve.NonTerminal=Ve.Alternative=Ve.Alternation=Ve.defaultLexerErrorProvider=Ve.NoViableAltException=Ve.NotAllInputParsedException=Ve.MismatchedTokenException=Ve.isRecognitionException=Ve.EarlyExitException=Ve.defaultParserErrorProvider=Ve.tokenName=Ve.tokenMatcher=Ve.tokenLabel=Ve.EOF=Ve.createTokenInstance=Ve.createToken=Ve.LexerDefinitionErrorType=Ve.Lexer=Ve.EMPTY_ALT=Ve.ParserDefinitionErrorType=Ve.EmbeddedActionsParser=Ve.CstParser=Ve.VERSION=void 0;var Fye=IS();Object.defineProperty(Ve,"VERSION",{enumerable:!0,get:function(){return Fye.VERSION}});var dy=$n();Object.defineProperty(Ve,"CstParser",{enumerable:!0,get:function(){return dy.CstParser}});Object.defineProperty(Ve,"EmbeddedActionsParser",{enumerable:!0,get:function(){return dy.EmbeddedActionsParser}});Object.defineProperty(Ve,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return dy.ParserDefinitionErrorType}});Object.defineProperty(Ve,"EMPTY_ALT",{enumerable:!0,get:function(){return dy.EMPTY_ALT}});var ZG=Dp();Object.defineProperty(Ve,"Lexer",{enumerable:!0,get:function(){return ZG.Lexer}});Object.defineProperty(Ve,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return ZG.LexerDefinitionErrorType}});var Sg=XA();Object.defineProperty(Ve,"createToken",{enumerable:!0,get:function(){return Sg.createToken}});Object.defineProperty(Ve,"createTokenInstance",{enumerable:!0,get:function(){return Sg.createTokenInstance}});Object.defineProperty(Ve,"EOF",{enumerable:!0,get:function(){return Sg.EOF}});Object.defineProperty(Ve,"tokenLabel",{enumerable:!0,get:function(){return Sg.tokenLabel}});Object.defineProperty(Ve,"tokenMatcher",{enumerable:!0,get:function(){return Sg.tokenMatcher}});Object.defineProperty(Ve,"tokenName",{enumerable:!0,get:function(){return Sg.tokenName}});var Nye=Tp();Object.defineProperty(Ve,"defaultParserErrorProvider",{enumerable:!0,get:function(){return Nye.defaultParserErrorProvider}});var qp=Bg();Object.defineProperty(Ve,"EarlyExitException",{enumerable:!0,get:function(){return qp.EarlyExitException}});Object.defineProperty(Ve,"isRecognitionException",{enumerable:!0,get:function(){return qp.isRecognitionException}});Object.defineProperty(Ve,"MismatchedTokenException",{enumerable:!0,get:function(){return qp.MismatchedTokenException}});Object.defineProperty(Ve,"NotAllInputParsedException",{enumerable:!0,get:function(){return qp.NotAllInputParsedException}});Object.defineProperty(Ve,"NoViableAltException",{enumerable:!0,get:function(){return qp.NoViableAltException}});var Lye=PS();Object.defineProperty(Ve,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return Lye.defaultLexerErrorProvider}});var qo=bn();Object.defineProperty(Ve,"Alternation",{enumerable:!0,get:function(){return qo.Alternation}});Object.defineProperty(Ve,"Alternative",{enumerable:!0,get:function(){return qo.Alternative}});Object.defineProperty(Ve,"NonTerminal",{enumerable:!0,get:function(){return qo.NonTerminal}});Object.defineProperty(Ve,"Option",{enumerable:!0,get:function(){return qo.Option}});Object.defineProperty(Ve,"Repetition",{enumerable:!0,get:function(){return qo.Repetition}});Object.defineProperty(Ve,"RepetitionMandatory",{enumerable:!0,get:function(){return qo.RepetitionMandatory}});Object.defineProperty(Ve,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return qo.RepetitionMandatoryWithSeparator}});Object.defineProperty(Ve,"RepetitionWithSeparator",{enumerable:!0,get:function(){return qo.RepetitionWithSeparator}});Object.defineProperty(Ve,"Rule",{enumerable:!0,get:function(){return qo.Rule}});Object.defineProperty(Ve,"Terminal",{enumerable:!0,get:function(){return qo.Terminal}});var $G=bn();Object.defineProperty(Ve,"serializeGrammar",{enumerable:!0,get:function(){return $G.serializeGrammar}});Object.defineProperty(Ve,"serializeProduction",{enumerable:!0,get:function(){return $G.serializeProduction}});var Tye=Eg();Object.defineProperty(Ve,"GAstVisitor",{enumerable:!0,get:function(){return Tye.GAstVisitor}});function Oye(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API. + It performs no action other than printing this message. + Please avoid using it as it will be completely removed in the future`)}Ve.clearCache=Oye;var Mye=XG();Object.defineProperty(Ve,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return Mye.createSyntaxDiagramsCode}});var Kye=function(){function r(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead. +See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return r}();Ve.Parser=Kye});var iY=w((Z$e,tY)=>{var Cy=eY(),Wa=Cy.createToken,rY=Cy.tokenMatcher,tv=Cy.Lexer,Uye=Cy.EmbeddedActionsParser;tY.exports=r=>{let e=Wa({name:"LogicalOperator",pattern:tv.NA}),t=Wa({name:"Or",pattern:/\|/,categories:e}),i=Wa({name:"Xor",pattern:/\^/,categories:e}),n=Wa({name:"And",pattern:/&/,categories:e}),s=Wa({name:"Not",pattern:/!/}),o=Wa({name:"LParen",pattern:/\(/}),a=Wa({name:"RParen",pattern:/\)/}),l=Wa({name:"Query",pattern:r}),u=[Wa({name:"WhiteSpace",pattern:/\s+/,group:tv.SKIPPED}),t,i,n,o,a,s,e,l],g=new tv(u);class f extends Uye{constructor(p){super(u);this.RULE("expression",()=>this.SUBRULE(this.logicalExpression)),this.RULE("logicalExpression",()=>{let y=this.SUBRULE(this.atomicExpression);return this.MANY(()=>{let b=y,v=this.CONSUME(e),x=this.SUBRULE2(this.atomicExpression);rY(v,t)?y=T=>b(T)||x(T):rY(v,i)?y=T=>!!(b(T)^x(T)):y=T=>b(T)&&x(T)}),y}),this.RULE("atomicExpression",()=>this.OR([{ALT:()=>this.SUBRULE(this.parenthesisExpression)},{ALT:()=>{let{image:m}=this.CONSUME(l);return y=>y(m)}},{ALT:()=>{this.CONSUME(s);let m=this.SUBRULE(this.atomicExpression);return y=>!m(y)}}])),this.RULE("parenthesisExpression",()=>{let m;return this.CONSUME(o),m=this.SUBRULE(this.expression),this.CONSUME(a),m}),this.performSelfAnalysis()}}return{TinylogicLexer:g,TinylogicParser:f}}});var nY=w(my=>{var Hye=iY();my.makeParser=(r=/[a-z]+/)=>{let{TinylogicLexer:e,TinylogicParser:t}=Hye(r),i=new t;return(n,s)=>{let o=e.tokenize(n);return i.input=o.tokens,i.expression()(s)}};my.parse=my.makeParser()});var oY=w((eet,sY)=>{"use strict";sY.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var rv=w((tet,aY)=>{var Jp=oY(),AY={};for(let r of Object.keys(Jp))AY[Jp[r]]=r;var at={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};aY.exports=at;for(let r of Object.keys(at)){if(!("channels"in at[r]))throw new Error("missing channels property: "+r);if(!("labels"in at[r]))throw new Error("missing channel labels property: "+r);if(at[r].labels.length!==at[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=at[r];delete at[r].channels,delete at[r].labels,Object.defineProperty(at[r],"channels",{value:e}),Object.defineProperty(at[r],"labels",{value:t})}at.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),s=Math.max(e,t,i),o=s-n,a,l;s===n?a=0:e===s?a=(t-i)/o:t===s?a=2+(i-e)/o:i===s&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(n+s)/2;return s===n?l=0:c<=.5?l=o/(s+n):l=o/(2-s-n),[a,l*100,c*100]};at.rgb.hsv=function(r){let e,t,i,n,s,o=r[0]/255,a=r[1]/255,l=r[2]/255,c=Math.max(o,a,l),u=c-Math.min(o,a,l),g=function(f){return(c-f)/6/u+1/2};return u===0?(n=0,s=0):(s=u/c,e=g(o),t=g(a),i=g(l),o===c?n=i-t:a===c?n=1/3+e-i:l===c&&(n=2/3+t-e),n<0?n+=1:n>1&&(n-=1)),[n*360,s*100,c*100]};at.rgb.hwb=function(r){let e=r[0],t=r[1],i=r[2],n=at.rgb.hsl(r)[0],s=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[n,s*100,i*100]};at.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(1-e,1-t,1-i),s=(1-e-n)/(1-n)||0,o=(1-t-n)/(1-n)||0,a=(1-i-n)/(1-n)||0;return[s*100,o*100,a*100,n*100]};function jye(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}at.rgb.keyword=function(r){let e=AY[r];if(e)return e;let t=Infinity,i;for(let n of Object.keys(Jp)){let s=Jp[n],o=jye(r,s);o.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let n=e*.4124+t*.3576+i*.1805,s=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[n*100,s*100,o*100]};at.rgb.lab=function(r){let e=at.rgb.xyz(r),t=e[0],i=e[1],n=e[2];t/=95.047,i/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let s=116*i-16,o=500*(t-i),a=200*(i-n);return[s,o,a]};at.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,n,s,o;if(t===0)return o=i*255,[o,o,o];i<.5?n=i*(1+t):n=i+t-i*t;let a=2*i-n,l=[0,0,0];for(let c=0;c<3;c++)s=e+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(n-a)*6*s:2*s<1?o=n:3*s<2?o=a+(n-a)*(2/3-s)*6:o=a,l[c]=o*255;return l};at.hsl.hsv=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,n=t,s=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,n*=s<=1?s:2-s;let o=(i+t)/2,a=i===0?2*n/(s+n):2*t/(i+t);return[e,a*100,o*100]};at.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,i=r[2]/100,n=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*s),l=255*i*(1-t*(1-s));switch(i*=255,n){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};at.hsv.hsl=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,n=Math.max(i,.01),s,o;o=(2-t)*i;let a=(2-t)*n;return s=t*n,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};at.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,n=t+i,s;n>1&&(t/=n,i/=n);let o=Math.floor(6*e),a=1-i;s=6*e-o,(o&1)!=0&&(s=1-s);let l=t+s*(a-t),c,u,g;switch(o){default:case 6:case 0:c=a,u=l,g=t;break;case 1:c=l,u=a,g=t;break;case 2:c=t,u=a,g=l;break;case 3:c=t,u=l,g=a;break;case 4:c=l,u=t,g=a;break;case 5:c=a,u=t,g=l;break}return[c*255,u*255,g*255]};at.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,n=r[3]/100,s=1-Math.min(1,e*(1-n)+n),o=1-Math.min(1,t*(1-n)+n),a=1-Math.min(1,i*(1-n)+n);return[s*255,o*255,a*255]};at.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,n,s,o;return n=e*3.2406+t*-1.5372+i*-.4986,s=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[n*255,s*255,o*255]};at.xyz.lab=function(r){let e=r[0],t=r[1],i=r[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*t-16,s=500*(e-t),o=200*(t-i);return[n,s,o]};at.lab.xyz=function(r){let e=r[0],t=r[1],i=r[2],n,s,o;s=(e+16)/116,n=t/500+s,o=s-i/200;let a=s**3,l=n**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,n*=95.047,s*=100,o*=108.883,[n,s,o]};at.lab.lch=function(r){let e=r[0],t=r[1],i=r[2],n;n=Math.atan2(i,t)*360/2/Math.PI,n<0&&(n+=360);let o=Math.sqrt(t*t+i*i);return[e,o,n]};at.lch.lab=function(r){let e=r[0],t=r[1],n=r[2]/360*2*Math.PI,s=t*Math.cos(n),o=t*Math.sin(n);return[e,s,o]};at.rgb.ansi16=function(r,e=null){let[t,i,n]=r,s=e===null?at.rgb.hsv(r)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return s===2&&(o+=60),o};at.hsv.ansi16=function(r){return at.rgb.ansi16(at.hsv.rgb(r),r[2])};at.rgb.ansi256=function(r){let e=r[0],t=r[1],i=r[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};at.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,i=(e&1)*t*255,n=(e>>1&1)*t*255,s=(e>>2&1)*t*255;return[i,n,s]};at.ansi256.rgb=function(r){if(r>=232){let s=(r-232)*10+8;return[s,s,s]}r-=16;let e,t=Math.floor(r/36)/5*255,i=Math.floor((e=r%36)/6)/5*255,n=e%6/5*255;return[t,i,n]};at.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};at.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let i=parseInt(t,16),n=i>>16&255,s=i>>8&255,o=i&255;return[n,s,o]};at.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.max(Math.max(e,t),i),s=Math.min(Math.min(e,t),i),o=n-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:n===e?l=(t-i)/o%6:n===t?l=2+(i-e)/o:l=4+(e-t)/o,l/=6,l%=1,[l*360,o*100,a*100]};at.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=t<.5?2*e*t:2*e*(1-t),n=0;return i<1&&(n=(t-.5*i)/(1-i)),[r[0],i*100,n*100]};at.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=e*t,n=0;return i<1&&(n=(t-i)/(1-i)),[r[0],i*100,n*100]};at.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100;if(t===0)return[i*255,i*255,i*255];let n=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return l=(1-t)*i,[(t*n[0]+l)*255,(t*n[1]+l)*255,(t*n[2]+l)*255]};at.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e),n=0;return i>0&&(n=e/i),[r[0],n*100,i*100]};at.hcg.hsl=function(r){let e=r[1]/100,i=r[2]/100*(1-e)+.5*e,n=0;return i>0&&i<.5?n=e/(2*i):i>=.5&&i<1&&(n=e/(2*(1-i))),[r[0],n*100,i*100]};at.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e);return[r[0],(i-e)*100,(1-i)*100]};at.hwb.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=1-t,n=i-e,s=0;return n<1&&(s=(i-n)/(1-n)),[r[0],n*100,s*100]};at.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};at.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};at.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};at.gray.hsl=function(r){return[0,0,r[0]]};at.gray.hsv=at.gray.hsl;at.gray.hwb=function(r){return[0,100,r[0]]};at.gray.cmyk=function(r){return[0,0,0,r[0]]};at.gray.lab=function(r){return[r[0],0,0]};at.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};at.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var cY=w((ret,lY)=>{var Ey=rv();function Gye(){let r={},e=Object.keys(Ey);for(let t=e.length,i=0;i{var iv=rv(),Wye=cY(),vg={},zye=Object.keys(iv);function _ye(r){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function Vye(r){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let n=r(t);if(typeof n=="object")for(let s=n.length,o=0;o{vg[r]={},Object.defineProperty(vg[r],"channels",{value:iv[r].channels}),Object.defineProperty(vg[r],"labels",{value:iv[r].labels});let e=Wye(r);Object.keys(e).forEach(i=>{let n=e[i];vg[r][i]=Vye(n),vg[r][i].raw=_ye(n)})});uY.exports=vg});var mY=w((net,fY)=>{"use strict";var hY=(r,e)=>(...t)=>`[${r(...t)+e}m`,pY=(r,e)=>(...t)=>{let i=r(...t);return`[${38+e};5;${i}m`},dY=(r,e)=>(...t)=>{let i=r(...t);return`[${38+e};2;${i[0]};${i[1]};${i[2]}m`},Iy=r=>r,CY=(r,e,t)=>[r,e,t],xg=(r,e,t)=>{Object.defineProperty(r,e,{get:()=>{let i=t();return Object.defineProperty(r,e,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},nv,kg=(r,e,t,i)=>{nv===void 0&&(nv=gY());let n=i?10:0,s={};for(let[o,a]of Object.entries(nv)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=r(t,n):typeof a=="object"&&(s[l]=r(a[e],n))}return s};function Xye(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[n,s]of Object.entries(i))e[n]={open:`[${s[0]}m`,close:`[${s[1]}m`},i[n]=e[n],r.set(s[0],s[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="",e.bgColor.close="",xg(e.color,"ansi",()=>kg(hY,"ansi16",Iy,!1)),xg(e.color,"ansi256",()=>kg(pY,"ansi256",Iy,!1)),xg(e.color,"ansi16m",()=>kg(dY,"rgb",CY,!1)),xg(e.bgColor,"ansi",()=>kg(hY,"ansi16",Iy,!0)),xg(e.bgColor,"ansi256",()=>kg(pY,"ansi256",Iy,!0)),xg(e.bgColor,"ansi16m",()=>kg(dY,"rgb",CY,!0)),e}Object.defineProperty(fY,"exports",{enumerable:!0,get:Xye})});var IY=w((set,EY)=>{"use strict";EY.exports=(r,e=process.argv)=>{let t=r.startsWith("-")?"":r.length===1?"-":"--",i=e.indexOf(t+r),n=e.indexOf("--");return i!==-1&&(n===-1||i{"use strict";var Zye=require("os"),wY=require("tty"),Ps=IY(),{env:gi}=process,tl;Ps("no-color")||Ps("no-colors")||Ps("color=false")||Ps("color=never")?tl=0:(Ps("color")||Ps("colors")||Ps("color=true")||Ps("color=always"))&&(tl=1);"FORCE_COLOR"in gi&&(gi.FORCE_COLOR==="true"?tl=1:gi.FORCE_COLOR==="false"?tl=0:tl=gi.FORCE_COLOR.length===0?1:Math.min(parseInt(gi.FORCE_COLOR,10),3));function sv(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function ov(r,e){if(tl===0)return 0;if(Ps("color=16m")||Ps("color=full")||Ps("color=truecolor"))return 3;if(Ps("color=256"))return 2;if(r&&!e&&tl===void 0)return 0;let t=tl||0;if(gi.TERM==="dumb")return t;if(process.platform==="win32"){let i=Zye.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in gi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(i=>i in gi)||gi.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in gi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gi.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in gi)return 1;if(gi.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gi){let i=parseInt((gi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gi.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gi.TERM)||"COLORTERM"in gi?1:t}function $ye(r){let e=ov(r,r&&r.isTTY);return sv(e)}yY.exports={supportsColor:$ye,stdout:sv(ov(!0,wY.isatty(1))),stderr:sv(ov(!0,wY.isatty(2)))}});var QY=w((aet,bY)=>{"use strict";var ewe=(r,e,t)=>{let i=r.indexOf(e);if(i===-1)return r;let n=e.length,s=0,o="";do o+=r.substr(s,i-s)+e+t,s=i+n,i=r.indexOf(e,s);while(i!==-1);return o+=r.substr(s),o},twe=(r,e,t,i)=>{let n=0,s="";do{let o=r[i-1]==="\r";s+=r.substr(n,(o?i-1:i)-n)+e+(o?`\r +`:` +`)+t,n=i+1,i=r.indexOf(` +`,n)}while(i!==-1);return s+=r.substr(n),s};bY.exports={stringReplaceAll:ewe,stringEncaseCRLFWithFirstIndex:twe}});var PY=w((Aet,SY)=>{"use strict";var rwe=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,vY=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,iwe=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,nwe=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,swe=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function xY(r){let e=r[0]==="u",t=r[1]==="{";return e&&!t&&r.length===5||r[0]==="x"&&r.length===3?String.fromCharCode(parseInt(r.slice(1),16)):e&&t?String.fromCodePoint(parseInt(r.slice(2,-1),16)):swe.get(r)||r}function owe(r,e){let t=[],i=e.trim().split(/\s*,\s*/g),n;for(let s of i){let o=Number(s);if(!Number.isNaN(o))t.push(o);else if(n=s.match(iwe))t.push(n[2].replace(nwe,(a,l,c)=>l?xY(l):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${r}')`)}return t}function awe(r){vY.lastIndex=0;let e=[],t;for(;(t=vY.exec(r))!==null;){let i=t[1];if(t[2]){let n=owe(i,t[2]);e.push([i].concat(n))}else e.push([i])}return e}function kY(r,e){let t={};for(let n of e)for(let s of n.styles)t[s[0]]=n.inverse?null:s.slice(1);let i=r;for(let[n,s]of Object.entries(t))if(!!Array.isArray(s)){if(!(n in i))throw new Error(`Unknown Chalk style: ${n}`);i=s.length>0?i[n](...s):i[n]}return i}SY.exports=(r,e)=>{let t=[],i=[],n=[];if(e.replace(rwe,(s,o,a,l,c,u)=>{if(o)n.push(xY(o));else if(l){let g=n.join("");n=[],i.push(t.length===0?g:kY(r,t)(g)),t.push({inverse:a,styles:awe(l)})}else if(c){if(t.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(kY(r,t)(n.join(""))),n=[],t.pop()}else n.push(u)}),i.push(n.join("")),t.length>0){let s=`Chalk template literal is missing ${t.length} closing bracket${t.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return i.join("")}});var uv=w((cet,DY)=>{"use strict";var Wp=mY(),{stdout:av,stderr:Av}=BY(),{stringReplaceAll:Awe,stringEncaseCRLFWithFirstIndex:lwe}=QY(),RY=["ansi","ansi","ansi256","ansi16m"],Pg=Object.create(null),cwe=(r,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let t=av?av.level:0;r.level=e.level===void 0?t:e.level},FY=class{constructor(e){return NY(e)}},NY=r=>{let e={};return cwe(e,r),e.template=(...t)=>uwe(e.template,...t),Object.setPrototypeOf(e,yy.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=FY,e.template};function yy(r){return NY(r)}for(let[r,e]of Object.entries(Wp))Pg[r]={get(){let t=wy(this,lv(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,r,{value:t}),t}};Pg.visible={get(){let r=wy(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:r}),r}};var LY=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let r of LY)Pg[r]={get(){let{level:e}=this;return function(...t){let i=lv(Wp.color[RY[e]][r](...t),Wp.color.close,this._styler);return wy(this,i,this._isEmpty)}}};for(let r of LY){let e="bg"+r[0].toUpperCase()+r.slice(1);Pg[e]={get(){let{level:t}=this;return function(...i){let n=lv(Wp.bgColor[RY[t]][r](...i),Wp.bgColor.close,this._styler);return wy(this,n,this._isEmpty)}}}}var gwe=Object.defineProperties(()=>{},te(N({},Pg),{level:{enumerable:!0,get(){return this._generator.level},set(r){this._generator.level=r}}})),lv=(r,e,t)=>{let i,n;return t===void 0?(i=r,n=e):(i=t.openAll+r,n=e+t.closeAll),{open:r,close:e,openAll:i,closeAll:n,parent:t}},wy=(r,e,t)=>{let i=(...n)=>fwe(i,n.length===1?""+n[0]:n.join(" "));return i.__proto__=gwe,i._generator=r,i._styler=e,i._isEmpty=t,i},fwe=(r,e)=>{if(r.level<=0||!e)return r._isEmpty?"":e;let t=r._styler;if(t===void 0)return e;let{openAll:i,closeAll:n}=t;if(e.indexOf("")!==-1)for(;t!==void 0;)e=Awe(e,t.close,t.open),t=t.parent;let s=e.indexOf(` +`);return s!==-1&&(e=lwe(e,n,i,s)),i+e+n},cv,uwe=(r,...e)=>{let[t]=e;if(!Array.isArray(t))return e.join(" ");let i=e.slice(1),n=[t.raw[0]];for(let s=1;s{"use strict";Ds.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1;Ds.find=(r,e)=>r.nodes.find(t=>t.type===e);Ds.exceedsLimit=(r,e,t=1,i)=>i===!1||!Ds.isInteger(r)||!Ds.isInteger(e)?!1:(Number(e)-Number(r))/Number(t)>=i;Ds.escapeNode=(r,e=0,t)=>{let i=r.nodes[e];!i||(t&&i.type===t||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Ds.encloseBrace=r=>r.type!=="brace"?!1:r.commas>>0+r.ranges>>0==0?(r.invalid=!0,!0):!1;Ds.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:r.commas>>0+r.ranges>>0==0||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1;Ds.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0;Ds.reduce=r=>r.reduce((e,t)=>(t.type==="text"&&e.push(t.value),t.type==="range"&&(t.type="text"),e),[]);Ds.flatten=(...r)=>{let e=[],t=i=>{for(let n=0;n{"use strict";var OY=By();TY.exports=(r,e={})=>{let t=(i,n={})=>{let s=e.escapeInvalid&&OY.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&OY.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=t(l);return a};return t(r)}});var KY=w((fet,MY)=>{"use strict";MY.exports=function(r){return typeof r=="number"?r-r==0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var zY=w((het,UY)=>{"use strict";var HY=KY(),Rc=(r,e,t)=>{if(HY(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||r===e)return String(r);if(HY(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i=N({relaxZeros:!0},t);typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=r+":"+e+"="+n+s+o+a;if(Rc.cache.hasOwnProperty(l))return Rc.cache[l].result;let c=Math.min(r,e),u=Math.max(r,e);if(Math.abs(c-u)===1){let m=r+"|"+e;return i.capture?`(${m})`:i.wrap===!1?m:`(?:${m})`}let g=GY(r)||GY(e),f={min:r,max:e,a:c,b:u},h=[],p=[];if(g&&(f.isPadded=g,f.maxLen=String(f.max).length),c<0){let m=u<0?Math.abs(u):1;p=jY(m,Math.abs(c),f,i),c=f.a=0}return u>=0&&(h=jY(c,u,f,i)),f.negatives=p,f.positives=h,f.result=hwe(p,h,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&h.length+p.length>1&&(f.result=`(?:${f.result})`),Rc.cache[l]=f,f.result};function hwe(r,e,t){let i=gv(r,e,"-",!1,t)||[],n=gv(e,r,"",!1,t)||[],s=gv(r,e,"-?",!0,t)||[];return i.concat(s).concat(n).join("|")}function dwe(r,e){let t=1,i=1,n=YY(r,t),s=new Set([e]);for(;r<=n&&n<=e;)s.add(n),t+=1,n=YY(r,t);for(n=qY(e+1,i)-1;r1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+JY(a.count),o=c+1;continue}t.isPadded&&(g=Iwe(c,t,i)),u.string=g+u.pattern+JY(u.count),s.push(u),o=c+1,a=u}return s}function gv(r,e,t,i,n){let s=[];for(let o of r){let{string:a}=o;!i&&!WY(e,"string",a)&&s.push(t+a),i&&WY(e,"string",a)&&s.push(t+a)}return s}function Cwe(r,e){let t=[];for(let i=0;ie?1:e>r?-1:0}function WY(r,e,t){return r.some(i=>i[e]===t)}function YY(r,e){return Number(String(r).slice(0,-e)+"9".repeat(e))}function qY(r,e){return r-r%Math.pow(10,e)}function JY(r){let[e=0,t=""]=r;return t||e>1?`{${e+(t?","+t:"")}}`:""}function mwe(r,e,t){return`[${r}${e-r==1?"":"-"}${e}]`}function GY(r){return/^-?(0+)\d/.test(r)}function Iwe(r,e,t){if(!e.isPadded)return r;let i=Math.abs(e.maxLen-String(r).length),n=t.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Rc.cache={};Rc.clearCache=()=>Rc.cache={};UY.exports=Rc});var pv=w((pet,_Y)=>{"use strict";var ywe=require("util"),VY=zY(),XY=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),wwe=r=>e=>r===!0?Number(e):String(e),fv=r=>typeof r=="number"||typeof r=="string"&&r!=="",_p=r=>Number.isInteger(+r),hv=r=>{let e=`${r}`,t=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++t]==="0";);return t>0},Bwe=(r,e,t)=>typeof r=="string"||typeof e=="string"?!0:t.stringify===!0,bwe=(r,e,t)=>{if(e>0){let i=r[0]==="-"?"-":"";i&&(r=r.slice(1)),r=i+r.padStart(i?e-1:e,"0")}return t===!1?String(r):r},ZY=(r,e)=>{let t=r[0]==="-"?"-":"";for(t&&(r=r.slice(1),e--);r.length{r.negatives.sort((o,a)=>oa?1:0),r.positives.sort((o,a)=>oa?1:0);let t=e.capture?"":"?:",i="",n="",s;return r.positives.length&&(i=r.positives.join("|")),r.negatives.length&&(n=`-(${t}${r.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${t}${s})`:s},$Y=(r,e,t,i)=>{if(t)return VY(r,e,N({wrap:!1},i));let n=String.fromCharCode(r);if(r===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},eq=(r,e,t)=>{if(Array.isArray(r)){let i=t.wrap===!0,n=t.capture?"":"?:";return i?`(${n}${r.join("|")})`:r.join("|")}return VY(r,e,t)},tq=(...r)=>new RangeError("Invalid range arguments: "+ywe.inspect(...r)),rq=(r,e,t)=>{if(t.strictRanges===!0)throw tq([r,e]);return[]},Swe=(r,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},vwe=(r,e,t=1,i={})=>{let n=Number(r),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw tq([r,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(r),l=String(e),c=String(t);t=Math.max(Math.abs(t),1);let u=hv(a)||hv(l)||hv(c),g=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&Bwe(r,e,i)===!1,h=i.transform||wwe(f);if(i.toRegex&&t===1)return $Y(ZY(r,g),ZY(e,g),!0,i);let p={negatives:[],positives:[]},m=v=>p[v<0?"negatives":"positives"].push(Math.abs(v)),y=[],b=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&t>1?m(n):y.push(bwe(h(n,b),g,f)),n=o?n-t:n+t,b++;return i.toRegex===!0?t>1?Qwe(p,i):eq(y,null,N({wrap:!1},i)):y},xwe=(r,e,t=1,i={})=>{if(!_p(r)&&r.length>1||!_p(e)&&e.length>1)return rq(r,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${r}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&t===1)return $Y(l,c,!1,i);let u=[],g=0;for(;a?s>=o:s<=o;)u.push(n(s,g)),s=a?s-t:s+t,g++;return i.toRegex===!0?eq(u,null,{wrap:!1,options:i}):u},Qy=(r,e,t,i={})=>{if(e==null&&fv(r))return[r];if(!fv(r)||!fv(e))return rq(r,e,i);if(typeof t=="function")return Qy(r,e,1,{transform:t});if(XY(t))return Qy(r,e,0,t);let n=N({},i);return n.capture===!0&&(n.wrap=!0),t=t||n.step||1,_p(t)?_p(r)&&_p(e)?vwe(r,e,t,n):xwe(r,e,Math.max(Math.abs(t),1),n):t!=null&&!XY(t)?Swe(t,n):Qy(r,e,1,t)};_Y.exports=Qy});var sq=w((det,iq)=>{"use strict";var kwe=pv(),nq=By(),Pwe=(r,e={})=>{let t=(i,n={})=>{let s=nq.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=nq.reduce(i.nodes),g=kwe(...u,te(N({},e),{wrap:!1,toRegex:!0}));if(g.length!==0)return u.length>1&&g.length>1?`(${g})`:g}if(i.nodes)for(let u of i.nodes)c+=t(u,i);return c};return t(r)};iq.exports=Pwe});var Aq=w((Cet,oq)=>{"use strict";var Dwe=pv(),aq=by(),Dg=By(),Fc=(r="",e="",t=!1)=>{let i=[];if(r=[].concat(r),e=[].concat(e),!e.length)return r;if(!r.length)return t?Dg.flatten(e).map(n=>`{${n}}`):e;for(let n of r)if(Array.isArray(n))for(let s of n)i.push(Fc(s,e,t));else for(let s of e)t===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Fc(n,s,t):n+s);return Dg.flatten(i)},Rwe=(r,e={})=>{let t=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(Fc(a.pop(),aq(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(Fc(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let g=Dg.reduce(n.nodes);if(Dg.exceedsLimit(...g,e.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Dwe(...g,e);f.length===0&&(f=aq(n,e)),a.push(Fc(a.pop(),f)),n.nodes=[];return}let l=Dg.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let g=0;g{"use strict";lq.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` +`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var pq=w((Eet,uq)=>{"use strict";var Fwe=by(),{MAX_LENGTH:gq,CHAR_BACKSLASH:dv,CHAR_BACKTICK:Nwe,CHAR_COMMA:Lwe,CHAR_DOT:Twe,CHAR_LEFT_PARENTHESES:Owe,CHAR_RIGHT_PARENTHESES:Mwe,CHAR_LEFT_CURLY_BRACE:Kwe,CHAR_RIGHT_CURLY_BRACE:Uwe,CHAR_LEFT_SQUARE_BRACKET:fq,CHAR_RIGHT_SQUARE_BRACKET:hq,CHAR_DOUBLE_QUOTE:Hwe,CHAR_SINGLE_QUOTE:jwe,CHAR_NO_BREAK_SPACE:Gwe,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ywe}=cq(),qwe=(r,e={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let t=e||{},i=typeof t.maxLength=="number"?Math.min(gq,t.maxLength):gq;if(r.length>i)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${i})`);let n={type:"root",input:r,nodes:[]},s=[n],o=n,a=n,l=0,c=r.length,u=0,g=0,f,h={},p=()=>r[u++],m=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(m({type:"bos"});u0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:Fwe(o)}]}m({type:"comma",value:f}),o.commas++;continue}if(f===Twe&&g>0&&o.commas===0){let y=o.nodes;if(g===0||y.length===0){m({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let b=y[y.length-1];b.value+=a.value+f,a=b,o.ranges--;continue}m({type:"dot",value:f});continue}m({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let y=s[s.length-1],b=y.nodes.indexOf(o);y.nodes.splice(b,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),n};uq.exports=qwe});var mq=w((Iet,dq)=>{"use strict";var Cq=by(),Jwe=sq(),Wwe=Aq(),zwe=pq(),ts=(r,e={})=>{let t=[];if(Array.isArray(r))for(let i of r){let n=ts.create(i,e);Array.isArray(n)?t.push(...n):t.push(n)}else t=[].concat(ts.create(r,e));return e&&e.expand===!0&&e.nodupes===!0&&(t=[...new Set(t)]),t};ts.parse=(r,e={})=>zwe(r,e);ts.stringify=(r,e={})=>typeof r=="string"?Cq(ts.parse(r,e),e):Cq(r,e);ts.compile=(r,e={})=>(typeof r=="string"&&(r=ts.parse(r,e)),Jwe(r,e));ts.expand=(r,e={})=>{typeof r=="string"&&(r=ts.parse(r,e));let t=Wwe(r,e);return e.noempty===!0&&(t=t.filter(Boolean)),e.nodupes===!0&&(t=[...new Set(t)]),t};ts.create=(r,e={})=>r===""||r.length<3?[r]:e.expand!==!0?ts.compile(r,e):ts.expand(r,e);dq.exports=ts});var Vp=w((yet,Eq)=>{"use strict";var _we=require("path"),Jo="\\\\/",Iq=`[^${Jo}]`,za="\\.",Vwe="\\+",Xwe="\\?",Sy="\\/",Zwe="(?=.)",yq="[^/]",Cv=`(?:${Sy}|$)`,wq=`(?:^|${Sy})`,mv=`${za}{1,2}${Cv}`,$we=`(?!${za})`,eBe=`(?!${wq}${mv})`,tBe=`(?!${za}{0,1}${Cv})`,rBe=`(?!${mv})`,iBe=`[^.${Sy}]`,nBe=`${yq}*?`,Bq={DOT_LITERAL:za,PLUS_LITERAL:Vwe,QMARK_LITERAL:Xwe,SLASH_LITERAL:Sy,ONE_CHAR:Zwe,QMARK:yq,END_ANCHOR:Cv,DOTS_SLASH:mv,NO_DOT:$we,NO_DOTS:eBe,NO_DOT_SLASH:tBe,NO_DOTS_SLASH:rBe,QMARK_NO_DOT:iBe,STAR:nBe,START_ANCHOR:wq},sBe=te(N({},Bq),{SLASH_LITERAL:`[${Jo}]`,QMARK:Iq,STAR:`${Iq}*?`,DOTS_SLASH:`${za}{1,2}(?:[${Jo}]|$)`,NO_DOT:`(?!${za})`,NO_DOTS:`(?!(?:^|[${Jo}])${za}{1,2}(?:[${Jo}]|$))`,NO_DOT_SLASH:`(?!${za}{0,1}(?:[${Jo}]|$))`,NO_DOTS_SLASH:`(?!${za}{1,2}(?:[${Jo}]|$))`,QMARK_NO_DOT:`[^.${Jo}]`,START_ANCHOR:`(?:^|[${Jo}])`,END_ANCHOR:`(?:[${Jo}]|$)`}),oBe={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Eq.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:oBe,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:_we.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?sBe:Bq}}});var Xp=w(xn=>{"use strict";var aBe=require("path"),ABe=process.platform==="win32",{REGEX_BACKSLASH:lBe,REGEX_REMOVE_BACKSLASH:cBe,REGEX_SPECIAL_CHARS:uBe,REGEX_SPECIAL_CHARS_GLOBAL:gBe}=Vp();xn.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);xn.hasRegexChars=r=>uBe.test(r);xn.isRegexChar=r=>r.length===1&&xn.hasRegexChars(r);xn.escapeRegex=r=>r.replace(gBe,"\\$1");xn.toPosixSlashes=r=>r.replace(lBe,"/");xn.removeBackslashes=r=>r.replace(cBe,e=>e==="\\"?"":e);xn.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10};xn.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:ABe===!0||aBe.sep==="\\";xn.escapeLast=(r,e,t)=>{let i=r.lastIndexOf(e,t);return i===-1?r:r[i-1]==="\\"?xn.escapeLast(r,e,i-1):`${r.slice(0,i)}\\${r.slice(i)}`};xn.removePrefix=(r,e={})=>{let t=r;return t.startsWith("./")&&(t=t.slice(2),e.prefix="./"),t};xn.wrapOutput=(r,e={},t={})=>{let i=t.contains?"":"^",n=t.contains?"":"$",s=`${i}(?:${r})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Dq=w((Bet,bq)=>{"use strict";var Qq=Xp(),{CHAR_ASTERISK:Ev,CHAR_AT:fBe,CHAR_BACKWARD_SLASH:Zp,CHAR_COMMA:hBe,CHAR_DOT:Iv,CHAR_EXCLAMATION_MARK:yv,CHAR_FORWARD_SLASH:Sq,CHAR_LEFT_CURLY_BRACE:wv,CHAR_LEFT_PARENTHESES:Bv,CHAR_LEFT_SQUARE_BRACKET:pBe,CHAR_PLUS:dBe,CHAR_QUESTION_MARK:vq,CHAR_RIGHT_CURLY_BRACE:CBe,CHAR_RIGHT_PARENTHESES:xq,CHAR_RIGHT_SQUARE_BRACKET:mBe}=Vp(),kq=r=>r===Sq||r===Zp,Pq=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?Infinity:1)},EBe=(r,e)=>{let t=e||{},i=r.length-1,n=t.parts===!0||t.scanToEnd===!0,s=[],o=[],a=[],l=r,c=-1,u=0,g=0,f=!1,h=!1,p=!1,m=!1,y=!1,b=!1,v=!1,x=!1,T=!1,q=!1,Y=0,$,_,ne={value:"",depth:0,isGlob:!1},ee=()=>c>=i,A=()=>l.charCodeAt(c+1),oe=()=>($=_,l.charCodeAt(++c));for(;c0&&(Z=l.slice(0,u),l=l.slice(u),g-=u),ce&&p===!0&&g>0?(ce=l.slice(0,g),O=l.slice(g)):p===!0?(ce="",O=l):ce=l,ce&&ce!==""&&ce!=="/"&&ce!==l&&kq(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),t.unescape===!0&&(O&&(O=Qq.removeBackslashes(O)),ce&&v===!0&&(ce=Qq.removeBackslashes(ce)));let L={prefix:Z,input:r,start:u,base:ce,glob:O,isBrace:f,isBracket:h,isGlob:p,isExtglob:m,isGlobstar:y,negated:x,negatedExtglob:T};if(t.tokens===!0&&(L.maxDepth=0,kq(_)||o.push(ne),L.tokens=o),t.parts===!0||t.tokens===!0){let de;for(let Be=0;Be{"use strict";var vy=Vp(),rs=Xp(),{MAX_LENGTH:xy,POSIX_REGEX_SOURCE:IBe,REGEX_NON_SPECIAL_CHARS:yBe,REGEX_SPECIAL_CHARS_BACKREF:wBe,REPLACEMENTS:Fq}=vy,BBe=(r,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...r,e);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(i){return r.map(n=>rs.escapeRegex(n)).join("..")}return t},Rg=(r,e)=>`Missing ${r}: "${e}" - use "\\\\${e}" to match literal characters`,Nq=(r,e)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=Fq[r]||r;let t=N({},e),i=typeof t.maxLength=="number"?Math.min(xy,t.maxLength):xy,n=r.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:t.prepend||""},o=[s],a=t.capture?"":"?:",l=rs.isWindows(e),c=vy.globChars(l),u=vy.extglobChars(c),{DOT_LITERAL:g,PLUS_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:v,QMARK:x,QMARK_NO_DOT:T,STAR:q,START_ANCHOR:Y}=c,$=V=>`(${a}(?:(?!${Y}${V.dot?m:g}).)*?)`,_=t.dot?"":y,ne=t.dot?x:T,ee=t.bash===!0?$(t):q;t.capture&&(ee=`(${ee})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let A={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};r=rs.removePrefix(r,A),n=r.length;let oe=[],ce=[],Z=[],O=s,L,de=()=>A.index===n-1,Be=A.peek=(V=1)=>r[A.index+V],je=A.advance=()=>r[++A.index]||"",re=()=>r.slice(A.index+1),se=(V="",Qe=0)=>{A.consumed+=V,A.index+=Qe},be=V=>{A.output+=V.output!=null?V.output:V.value,se(V.value)},he=()=>{let V=1;for(;Be()==="!"&&(Be(2)!=="("||Be(3)==="?");)je(),A.start++,V++;return V%2==0?!1:(A.negated=!0,A.start++,!0)},Fe=V=>{A[V]++,Z.push(V)},Ke=V=>{A[V]--,Z.pop()},ke=V=>{if(O.type==="globstar"){let Qe=A.braces>0&&(V.type==="comma"||V.type==="brace"),le=V.extglob===!0||oe.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!Qe&&!le&&(A.output=A.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=ee,A.output+=O.output)}if(oe.length&&V.type!=="paren"&&(oe[oe.length-1].inner+=V.value),(V.value||V.output)&&be(V),O&&O.type==="text"&&V.type==="text"){O.value+=V.value,O.output=(O.output||"")+V.value;return}V.prev=O,o.push(V),O=V},ve=(V,Qe)=>{let le=te(N({},u[Qe]),{conditions:1,inner:""});le.prev=O,le.parens=A.parens,le.output=A.output;let fe=(t.capture?"(":"")+le.open;Fe("parens"),ke({type:V,value:Qe,output:A.output?"":p}),ke({type:"paren",extglob:!0,value:je(),output:fe}),oe.push(le)},pe=V=>{let Qe=V.close+(t.capture?")":""),le;if(V.type==="negate"){let fe=ee;V.inner&&V.inner.length>1&&V.inner.includes("/")&&(fe=$(t)),(fe!==ee||de()||/^\)+$/.test(re()))&&(Qe=V.close=`)$))${fe}`),V.inner.includes("*")&&(le=re())&&/^\.[^\\/.]+$/.test(le)&&(Qe=V.close=`)${le})${fe})`),V.prev.type==="bos"&&(A.negatedExtglob=!0)}ke({type:"paren",extglob:!0,value:L,output:Qe}),Ke("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let V=!1,Qe=r.replace(wBe,(le,fe,gt,Ht,Mt,Ei)=>Ht==="\\"?(V=!0,le):Ht==="?"?fe?fe+Ht+(Mt?x.repeat(Mt.length):""):Ei===0?ne+(Mt?x.repeat(Mt.length):""):x.repeat(gt.length):Ht==="."?g.repeat(gt.length):Ht==="*"?fe?fe+Ht+(Mt?ee:""):ee:fe?le:`\\${le}`);return V===!0&&(t.unescape===!0?Qe=Qe.replace(/\\/g,""):Qe=Qe.replace(/\\+/g,le=>le.length%2==0?"\\\\":le?"\\":"")),Qe===r&&t.contains===!0?(A.output=r,A):(A.output=rs.wrapOutput(Qe,A,e),A)}for(;!de();){if(L=je(),L==="\0")continue;if(L==="\\"){let le=Be();if(le==="/"&&t.bash!==!0||le==="."||le===";")continue;if(!le){L+="\\",ke({type:"text",value:L});continue}let fe=/^\\+/.exec(re()),gt=0;if(fe&&fe[0].length>2&&(gt=fe[0].length,A.index+=gt,gt%2!=0&&(L+="\\")),t.unescape===!0?L=je():L+=je(),A.brackets===0){ke({type:"text",value:L});continue}}if(A.brackets>0&&(L!=="]"||O.value==="["||O.value==="[^")){if(t.posix!==!1&&L===":"){let le=O.value.slice(1);if(le.includes("[")&&(O.posix=!0,le.includes(":"))){let fe=O.value.lastIndexOf("["),gt=O.value.slice(0,fe),Ht=O.value.slice(fe+2),Mt=IBe[Ht];if(Mt){O.value=gt+Mt,A.backtrack=!0,je(),!s.output&&o.indexOf(O)===1&&(s.output=p);continue}}}(L==="["&&Be()!==":"||L==="-"&&Be()==="]")&&(L=`\\${L}`),L==="]"&&(O.value==="["||O.value==="[^")&&(L=`\\${L}`),t.posix===!0&&L==="!"&&O.value==="["&&(L="^"),O.value+=L,be({value:L});continue}if(A.quotes===1&&L!=='"'){L=rs.escapeRegex(L),O.value+=L,be({value:L});continue}if(L==='"'){A.quotes=A.quotes===1?0:1,t.keepQuotes===!0&&ke({type:"text",value:L});continue}if(L==="("){Fe("parens"),ke({type:"paren",value:L});continue}if(L===")"){if(A.parens===0&&t.strictBrackets===!0)throw new SyntaxError(Rg("opening","("));let le=oe[oe.length-1];if(le&&A.parens===le.parens+1){pe(oe.pop());continue}ke({type:"paren",value:L,output:A.parens?")":"\\)"}),Ke("parens");continue}if(L==="["){if(t.nobracket===!0||!re().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(Rg("closing","]"));L=`\\${L}`}else Fe("brackets");ke({type:"bracket",value:L});continue}if(L==="]"){if(t.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){ke({type:"text",value:L,output:`\\${L}`});continue}if(A.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(Rg("opening","["));ke({type:"text",value:L,output:`\\${L}`});continue}Ke("brackets");let le=O.value.slice(1);if(O.posix!==!0&&le[0]==="^"&&!le.includes("/")&&(L=`/${L}`),O.value+=L,be({value:L}),t.literalBrackets===!1||rs.hasRegexChars(le))continue;let fe=rs.escapeRegex(O.value);if(A.output=A.output.slice(0,-O.value.length),t.literalBrackets===!0){A.output+=fe,O.value=fe;continue}O.value=`(${a}${fe}|${O.value})`,A.output+=O.value;continue}if(L==="{"&&t.nobrace!==!0){Fe("braces");let le={type:"brace",value:L,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};ce.push(le),ke(le);continue}if(L==="}"){let le=ce[ce.length-1];if(t.nobrace===!0||!le){ke({type:"text",value:L,output:L});continue}let fe=")";if(le.dots===!0){let gt=o.slice(),Ht=[];for(let Mt=gt.length-1;Mt>=0&&(o.pop(),gt[Mt].type!=="brace");Mt--)gt[Mt].type!=="dots"&&Ht.unshift(gt[Mt].value);fe=BBe(Ht,t),A.backtrack=!0}if(le.comma!==!0&&le.dots!==!0){let gt=A.output.slice(0,le.outputIndex),Ht=A.tokens.slice(le.tokensIndex);le.value=le.output="\\{",L=fe="\\}",A.output=gt;for(let Mt of Ht)A.output+=Mt.output||Mt.value}ke({type:"brace",value:L,output:fe}),Ke("braces"),ce.pop();continue}if(L==="|"){oe.length>0&&oe[oe.length-1].conditions++,ke({type:"text",value:L});continue}if(L===","){let le=L,fe=ce[ce.length-1];fe&&Z[Z.length-1]==="braces"&&(fe.comma=!0,le="|"),ke({type:"comma",value:L,output:le});continue}if(L==="/"){if(O.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",o.pop(),O=s;continue}ke({type:"slash",value:L,output:h});continue}if(L==="."){if(A.braces>0&&O.type==="dot"){O.value==="."&&(O.output=g);let le=ce[ce.length-1];O.type="dots",O.output+=L,O.value+=L,le.dots=!0;continue}if(A.braces+A.parens===0&&O.type!=="bos"&&O.type!=="slash"){ke({type:"text",value:L,output:g});continue}ke({type:"dot",value:L,output:g});continue}if(L==="?"){if(!(O&&O.value==="(")&&t.noextglob!==!0&&Be()==="("&&Be(2)!=="?"){ve("qmark",L);continue}if(O&&O.type==="paren"){let fe=Be(),gt=L;if(fe==="<"&&!rs.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(O.value==="("&&!/[!=<:]/.test(fe)||fe==="<"&&!/<([!=]|\w+>)/.test(re()))&&(gt=`\\${L}`),ke({type:"text",value:L,output:gt});continue}if(t.dot!==!0&&(O.type==="slash"||O.type==="bos")){ke({type:"qmark",value:L,output:T});continue}ke({type:"qmark",value:L,output:x});continue}if(L==="!"){if(t.noextglob!==!0&&Be()==="("&&(Be(2)!=="?"||!/[!=<:]/.test(Be(3)))){ve("negate",L);continue}if(t.nonegate!==!0&&A.index===0){he();continue}}if(L==="+"){if(t.noextglob!==!0&&Be()==="("&&Be(2)!=="?"){ve("plus",L);continue}if(O&&O.value==="("||t.regex===!1){ke({type:"plus",value:L,output:f});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||A.parens>0){ke({type:"plus",value:L});continue}ke({type:"plus",value:f});continue}if(L==="@"){if(t.noextglob!==!0&&Be()==="("&&Be(2)!=="?"){ke({type:"at",extglob:!0,value:L,output:""});continue}ke({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let le=yBe.exec(re());le&&(L+=le[0],A.index+=le[0].length),ke({type:"text",value:L});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=L,O.output=ee,A.backtrack=!0,A.globstar=!0,se(L);continue}let V=re();if(t.noextglob!==!0&&/^\([^?]/.test(V)){ve("star",L);continue}if(O.type==="star"){if(t.noglobstar===!0){se(L);continue}let le=O.prev,fe=le.prev,gt=le.type==="slash"||le.type==="bos",Ht=fe&&(fe.type==="star"||fe.type==="globstar");if(t.bash===!0&&(!gt||V[0]&&V[0]!=="/")){ke({type:"star",value:L,output:""});continue}let Mt=A.braces>0&&(le.type==="comma"||le.type==="brace"),Ei=oe.length&&(le.type==="pipe"||le.type==="paren");if(!gt&&le.type!=="paren"&&!Mt&&!Ei){ke({type:"star",value:L,output:""});continue}for(;V.slice(0,3)==="/**";){let jt=r[A.index+4];if(jt&&jt!=="/")break;V=V.slice(3),se("/**",3)}if(le.type==="bos"&&de()){O.type="globstar",O.value+=L,O.output=$(t),A.output=O.output,A.globstar=!0,se(L);continue}if(le.type==="slash"&&le.prev.type!=="bos"&&!Ht&&de()){A.output=A.output.slice(0,-(le.output+O.output).length),le.output=`(?:${le.output}`,O.type="globstar",O.output=$(t)+(t.strictSlashes?")":"|$)"),O.value+=L,A.globstar=!0,A.output+=le.output+O.output,se(L);continue}if(le.type==="slash"&&le.prev.type!=="bos"&&V[0]==="/"){let jt=V[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(le.output+O.output).length),le.output=`(?:${le.output}`,O.type="globstar",O.output=`${$(t)}${h}|${h}${jt})`,O.value+=L,A.output+=le.output+O.output,A.globstar=!0,se(L+je()),ke({type:"slash",value:"/",output:""});continue}if(le.type==="bos"&&V[0]==="/"){O.type="globstar",O.value+=L,O.output=`(?:^|${h}|${$(t)}${h})`,A.output=O.output,A.globstar=!0,se(L+je()),ke({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-O.output.length),O.type="globstar",O.output=$(t),O.value+=L,A.output+=O.output,A.globstar=!0,se(L);continue}let Qe={type:"star",value:L,output:ee};if(t.bash===!0){Qe.output=".*?",(O.type==="bos"||O.type==="slash")&&(Qe.output=_+Qe.output),ke(Qe);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&t.regex===!0){Qe.output=L,ke(Qe);continue}(A.index===A.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(A.output+=b,O.output+=b):t.dot===!0?(A.output+=v,O.output+=v):(A.output+=_,O.output+=_),Be()!=="*"&&(A.output+=p,O.output+=p)),ke(Qe)}for(;A.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(Rg("closing","]"));A.output=rs.escapeLast(A.output,"["),Ke("brackets")}for(;A.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(Rg("closing",")"));A.output=rs.escapeLast(A.output,"("),Ke("parens")}for(;A.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(Rg("closing","}"));A.output=rs.escapeLast(A.output,"{"),Ke("braces")}if(t.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&ke({type:"maybe_slash",value:"",output:`${h}?`}),A.backtrack===!0){A.output="";for(let V of A.tokens)A.output+=V.output!=null?V.output:V.value,V.suffix&&(A.output+=V.suffix)}return A};Nq.fastpaths=(r,e)=>{let t=N({},e),i=typeof t.maxLength=="number"?Math.min(xy,t.maxLength):xy,n=r.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);r=Fq[r]||r;let s=rs.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:g,NO_DOTS_SLASH:f,STAR:h,START_ANCHOR:p}=vy.globChars(s),m=t.dot?g:u,y=t.dot?f:u,b=t.capture?"":"?:",v={negated:!1,prefix:""},x=t.bash===!0?".*?":h;t.capture&&(x=`(${x})`);let T=_=>_.noglobstar===!0?x:`(${b}(?:(?!${p}${_.dot?c:o}).)*?)`,q=_=>{switch(_){case"*":return`${m}${l}${x}`;case".*":return`${o}${l}${x}`;case"*.*":return`${m}${x}${o}${l}${x}`;case"*/*":return`${m}${x}${a}${l}${y}${x}`;case"**":return m+T(t);case"**/*":return`(?:${m}${T(t)}${a})?${y}${l}${x}`;case"**/*.*":return`(?:${m}${T(t)}${a})?${y}${x}${o}${l}${x}`;case"**/.*":return`(?:${m}${T(t)}${a})?${o}${l}${x}`;default:{let ne=/^(.*?)\.(\w+)$/.exec(_);if(!ne)return;let ee=q(ne[1]);return ee?ee+o+ne[2]:void 0}}},Y=rs.removePrefix(r,v),$=q(Y);return $&&t.strictSlashes!==!0&&($+=`${a}?`),$};Rq.exports=Nq});var Oq=w((Qet,Tq)=>{"use strict";var bBe=require("path"),QBe=Dq(),bv=Lq(),Qv=Xp(),SBe=Vp(),vBe=r=>r&&typeof r=="object"&&!Array.isArray(r),_r=(r,e,t=!1)=>{if(Array.isArray(r)){let u=r.map(f=>_r(f,e,t));return f=>{for(let h of u){let p=h(f);if(p)return p}return!1}}let i=vBe(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Qv.isWindows(e),o=i?_r.compileRe(r,e):_r.makeRe(r,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u=te(N({},e),{ignore:null,onMatch:null,onResult:null});l=_r(n.ignore,u,t)}let c=(u,g=!1)=>{let{isMatch:f,match:h,output:p}=_r.test(u,o,e,{glob:r,posix:s}),m={glob:r,state:a,regex:o,posix:s,input:u,output:p,match:h,isMatch:f};return typeof n.onResult=="function"&&n.onResult(m),f===!1?(m.isMatch=!1,g?m:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(m),m.isMatch=!1,g?m:!1):(typeof n.onMatch=="function"&&n.onMatch(m),g?m:!0)};return t&&(c.state=a),c};_r.test=(r,e,t,{glob:i,posix:n}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let s=t||{},o=s.format||(n?Qv.toPosixSlashes:null),a=r===i,l=a&&o?o(r):r;return a===!1&&(l=o?o(r):r,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=_r.matchBase(r,e,t,n):a=e.exec(l)),{isMatch:Boolean(a),match:a,output:l}};_r.matchBase=(r,e,t,i=Qv.isWindows(t))=>(e instanceof RegExp?e:_r.makeRe(e,t)).test(bBe.basename(r));_r.isMatch=(r,e,t)=>_r(e,t)(r);_r.parse=(r,e)=>Array.isArray(r)?r.map(t=>_r.parse(t,e)):bv(r,te(N({},e),{fastpaths:!1}));_r.scan=(r,e)=>QBe(r,e);_r.compileRe=(r,e,t=!1,i=!1)=>{if(t===!0)return r.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${r.output})${o}`;r&&r.negated===!0&&(a=`^(?!${a}).*$`);let l=_r.toRegex(a,e);return i===!0&&(l.state=r),l};_r.makeRe=(r,e={},t=!1,i=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(n.output=bv.fastpaths(r,e)),n.output||(n=bv(r,e)),_r.compileRe(n,e,t,i)};_r.toRegex=(r,e)=>{try{let t=e||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(e&&e.debug===!0)throw t;return/$^/}};_r.constants=SBe;Tq.exports=_r});var Sv=w((vet,Mq)=>{"use strict";Mq.exports=Oq()});var is=w((xet,Kq)=>{"use strict";var Uq=require("util"),Hq=mq(),Wo=Sv(),vv=Xp(),jq=r=>r===""||r==="./",Pr=(r,e,t)=>{e=[].concat(e),r=[].concat(r);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),t&&t.onResult&&t.onResult(u)};for(let u=0;u!i.has(u));if(t&&c.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Pr.match=Pr;Pr.matcher=(r,e)=>Wo(r,e);Pr.isMatch=(r,e,t)=>Wo(e,t)(r);Pr.any=Pr.isMatch;Pr.not=(r,e,t={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{t.onResult&&t.onResult(a),n.push(a.output)},o=Pr(r,e,te(N({},t),{onResult:s}));for(let a of n)o.includes(a)||i.add(a);return[...i]};Pr.contains=(r,e,t)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${Uq.inspect(r)}"`);if(Array.isArray(e))return e.some(i=>Pr.contains(r,i,t));if(typeof e=="string"){if(jq(r)||jq(e))return!1;if(r.includes(e)||r.startsWith("./")&&r.slice(2).includes(e))return!0}return Pr.isMatch(r,e,te(N({},t),{contains:!0}))};Pr.matchKeys=(r,e,t)=>{if(!vv.isObject(r))throw new TypeError("Expected the first argument to be an object");let i=Pr(Object.keys(r),e,t),n={};for(let s of i)n[s]=r[s];return n};Pr.some=(r,e,t)=>{let i=[].concat(r);for(let n of[].concat(e)){let s=Wo(String(n),t);if(i.some(o=>s(o)))return!0}return!1};Pr.every=(r,e,t)=>{let i=[].concat(r);for(let n of[].concat(e)){let s=Wo(String(n),t);if(!i.every(o=>s(o)))return!1}return!0};Pr.all=(r,e,t)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${Uq.inspect(r)}"`);return[].concat(e).every(i=>Wo(i,t)(r))};Pr.capture=(r,e,t)=>{let i=vv.isWindows(t),s=Wo.makeRe(String(r),te(N({},t),{capture:!0})).exec(i?vv.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Pr.makeRe=(...r)=>Wo.makeRe(...r);Pr.scan=(...r)=>Wo.scan(...r);Pr.parse=(r,e)=>{let t=[];for(let i of[].concat(r||[]))for(let n of Hq(String(i),e))t.push(Wo.parse(n,e));return t};Pr.braces=(r,e)=>{if(typeof r!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(r)?[r]:Hq(r,e)};Pr.braceExpand=(r,e)=>{if(typeof r!="string")throw new TypeError("Expected a string");return Pr.braces(r,te(N({},e),{expand:!0}))};Kq.exports=Pr});var Yq=w((ket,Gq)=>{"use strict";Gq.exports=({onlyFirst:r=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")}});var Jq=w((Pet,qq)=>{"use strict";var xBe=Yq();qq.exports=r=>typeof r=="string"?r.replace(xBe(),""):r});var AJ=w((zet,aJ)=>{"use strict";aJ.exports=(...r)=>[...new Set([].concat(...r))]});var jv=w((_et,lJ)=>{"use strict";var UBe=require("stream"),cJ=UBe.PassThrough,HBe=Array.prototype.slice;lJ.exports=jBe;function jBe(){let r=[],e=!1,t=HBe.call(arguments),i=t[t.length-1];i&&!Array.isArray(i)&&i.pipe==null?t.pop():i={};let n=i.end!==!1;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let s=cJ(i);function o(){for(let c=0,u=arguments.length;c0||(e=!1,a())}function f(h){function p(){h.removeListener("merge2UnpipeEnd",p),h.removeListener("end",p),g()}if(h._readableState.endEmitted)return g();h.on("merge2UnpipeEnd",p),h.on("end",p),h.pipe(s,{end:!1}),h.resume()}for(let h=0;h{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});function GBe(r){return r.reduce((e,t)=>[].concat(e,t),[])}Fy.flatten=GBe;function YBe(r,e){let t=[[]],i=0;for(let n of r)e(n)?(i++,t[i]=[]):t[i].push(n);return t}Fy.splitWhen=YBe});var fJ=w(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});function qBe(r){return r.code==="ENOENT"}Gv.isEnoentCodeError=qBe});var pJ=w(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});var hJ=class{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function JBe(r,e){return new hJ(r,e)}Yv.createDirentFromStats=JBe});var dJ=w(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});var WBe=require("path"),zBe=2,_Be=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function VBe(r){return r.replace(/\\/g,"/")}Kg.unixify=VBe;function XBe(r,e){return WBe.resolve(r,e)}Kg.makeAbsolute=XBe;function ZBe(r){return r.replace(_Be,"\\$2")}Kg.escape=ZBe;function $Be(r){if(r.charAt(0)==="."){let e=r.charAt(1);if(e==="/"||e==="\\")return r.slice(zBe)}return r}Kg.removeLeadingDotSegment=$Be});var mJ=w((ett,CJ)=>{CJ.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}});var yJ=w((ttt,EJ)=>{var e0e=mJ(),IJ={"{":"}","(":")","[":"]"},t0e=function(r){if(r[0]==="!")return!0;for(var e=0,t=-2,i=-2,n=-2,s=-2,o=-2;ee&&(o===-1||o>i||(o=r.indexOf("\\",e),o===-1||o>i)))||n!==-1&&r[e]==="{"&&r[e+1]!=="}"&&(n=r.indexOf("}",e),n>e&&(o=r.indexOf("\\",e),o===-1||o>n))||s!==-1&&r[e]==="("&&r[e+1]==="?"&&/[:!=]/.test(r[e+2])&&r[e+3]!==")"&&(s=r.indexOf(")",e),s>e&&(o=r.indexOf("\\",e),o===-1||o>s))||t!==-1&&r[e]==="("&&r[e+1]!=="|"&&(tt&&(o=r.indexOf("\\",t),o===-1||o>s))))return!0;if(r[e]==="\\"){var a=r[e+1];e+=2;var l=IJ[a];if(l){var c=r.indexOf(l,e);c!==-1&&(e=c+1)}if(r[e]==="!")return!0}else e++}return!1},r0e=function(r){if(r[0]==="!")return!0;for(var e=0;e{"use strict";var i0e=yJ(),n0e=require("path").posix.dirname,s0e=require("os").platform()==="win32",qv="/",o0e=/\\/g,a0e=/[\{\[].*[\}\]]$/,A0e=/(^|[^\\])([\{\[]|\([^\)]+$)/,l0e=/\\([\!\*\?\|\[\]\(\)\{\}])/g;wJ.exports=function(e,t){var i=Object.assign({flipBackslashes:!0},t);i.flipBackslashes&&s0e&&e.indexOf(qv)<0&&(e=e.replace(o0e,qv)),a0e.test(e)&&(e+=qv),e+="a";do e=n0e(e);while(i0e(e)||A0e.test(e));return e.replace(l0e,"$1")}});var RJ=w(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});var c0e=require("path"),u0e=BJ(),bJ=is(),g0e=Sv(),QJ="**",f0e="\\",h0e=/[*?]|^!/,p0e=/\[.*]/,d0e=/(?:^|[^!*+?@])\(.*\|.*\)/,C0e=/[!*+?@]\(.*\)/,m0e=/{.*(?:,|\.\.).*}/;function vJ(r,e={}){return!SJ(r,e)}si.isStaticPattern=vJ;function SJ(r,e={}){return!!(e.caseSensitiveMatch===!1||r.includes(f0e)||h0e.test(r)||p0e.test(r)||d0e.test(r)||e.extglob!==!1&&C0e.test(r)||e.braceExpansion!==!1&&m0e.test(r))}si.isDynamicPattern=SJ;function E0e(r){return Ny(r)?r.slice(1):r}si.convertToPositivePattern=E0e;function I0e(r){return"!"+r}si.convertToNegativePattern=I0e;function Ny(r){return r.startsWith("!")&&r[1]!=="("}si.isNegativePattern=Ny;function xJ(r){return!Ny(r)}si.isPositivePattern=xJ;function y0e(r){return r.filter(Ny)}si.getNegativePatterns=y0e;function w0e(r){return r.filter(xJ)}si.getPositivePatterns=w0e;function B0e(r){return u0e(r,{flipBackslashes:!1})}si.getBaseDirectory=B0e;function b0e(r){return r.includes(QJ)}si.hasGlobStar=b0e;function kJ(r){return r.endsWith("/"+QJ)}si.endsWithSlashGlobStar=kJ;function Q0e(r){let e=c0e.basename(r);return kJ(r)||vJ(e)}si.isAffectDepthOfReadingPattern=Q0e;function S0e(r){return r.reduce((e,t)=>e.concat(PJ(t)),[])}si.expandPatternsWithBraceExpansion=S0e;function PJ(r){return bJ.braces(r,{expand:!0,nodupes:!0})}si.expandBraceExpansion=PJ;function v0e(r,e){let t=g0e.scan(r,Object.assign(Object.assign({},e),{parts:!0}));return t.parts.length===0?[r]:t.parts}si.getPatternParts=v0e;function DJ(r,e){return bJ.makeRe(r,e)}si.makeRe=DJ;function x0e(r,e){return r.map(t=>DJ(t,e))}si.convertPatternsToRe=x0e;function k0e(r,e){return e.some(t=>t.test(r))}si.matchAny=k0e});var NJ=w(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});var P0e=jv();function D0e(r){let e=P0e(r);return r.forEach(t=>{t.once("error",i=>e.emit("error",i))}),e.once("close",()=>FJ(r)),e.once("end",()=>FJ(r)),e}Jv.merge=D0e;function FJ(r){r.forEach(e=>e.emit("close"))}});var LJ=w(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});function R0e(r){return typeof r=="string"}Ly.isString=R0e;function F0e(r){return r===""}Ly.isEmpty=F0e});var Xa=w(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var N0e=gJ();Va.array=N0e;var L0e=fJ();Va.errno=L0e;var T0e=pJ();Va.fs=T0e;var O0e=dJ();Va.path=O0e;var M0e=RJ();Va.pattern=M0e;var K0e=NJ();Va.stream=K0e;var U0e=LJ();Va.string=U0e});var UJ=w(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var Mc=Xa();function H0e(r,e){let t=TJ(r),i=OJ(r,e.ignore),n=t.filter(l=>Mc.pattern.isStaticPattern(l,e)),s=t.filter(l=>Mc.pattern.isDynamicPattern(l,e)),o=Wv(n,i,!1),a=Wv(s,i,!0);return o.concat(a)}Za.generate=H0e;function Wv(r,e,t){let i=MJ(r);return"."in i?[zv(".",r,e,t)]:KJ(i,e,t)}Za.convertPatternsToTasks=Wv;function TJ(r){return Mc.pattern.getPositivePatterns(r)}Za.getPositivePatterns=TJ;function OJ(r,e){return Mc.pattern.getNegativePatterns(r).concat(e).map(Mc.pattern.convertToPositivePattern)}Za.getNegativePatternsAsPositive=OJ;function MJ(r){let e={};return r.reduce((t,i)=>{let n=Mc.pattern.getBaseDirectory(i);return n in t?t[n].push(i):t[n]=[i],t},e)}Za.groupPatternsByBaseDirectory=MJ;function KJ(r,e,t){return Object.keys(r).map(i=>zv(i,r[i],e,t))}Za.convertPatternGroupsToTasks=KJ;function zv(r,e,t,i){return{dynamic:i,positive:e,negative:t,base:r,patterns:[].concat(e,t.map(Mc.pattern.convertToNegativePattern))}}Za.convertPatternGroupToTask=zv});var jJ=w(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.read=void 0;function j0e(r,e,t){e.fs.lstat(r,(i,n)=>{if(i!==null){HJ(t,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){_v(t,n);return}e.fs.stat(r,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){HJ(t,s);return}_v(t,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),_v(t,o)})})}Ty.read=j0e;function HJ(r,e){r(e)}function _v(r,e){r(null,e)}});var GJ=w(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.read=void 0;function G0e(r,e){let t=e.fs.lstatSync(r);if(!t.isSymbolicLink()||!e.followSymbolicLink)return t;try{let i=e.fs.statSync(r);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return t;throw i}}Oy.read=G0e});var YJ=w(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.createFileSystemAdapter=rl.FILE_SYSTEM_ADAPTER=void 0;var My=require("fs");rl.FILE_SYSTEM_ADAPTER={lstat:My.lstat,stat:My.stat,lstatSync:My.lstatSync,statSync:My.statSync};function Y0e(r){return r===void 0?rl.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rl.FILE_SYSTEM_ADAPTER),r)}rl.createFileSystemAdapter=Y0e});var JJ=w(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var q0e=YJ(),qJ=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=q0e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return e!=null?e:t}};Vv.default=qJ});var Kc=w(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.statSync=il.stat=il.Settings=void 0;var WJ=jJ(),J0e=GJ(),Xv=JJ();il.Settings=Xv.default;function W0e(r,e,t){if(typeof e=="function"){WJ.read(r,Zv(),e);return}WJ.read(r,Zv(e),t)}il.stat=W0e;function z0e(r,e){let t=Zv(e);return J0e.read(r,t)}il.statSync=z0e;function Zv(r={}){return r instanceof Xv.default?r:new Xv.default(r)}});var _J=w((ftt,zJ)=>{zJ.exports=_0e;function _0e(r,e){var t,i,n,s=!0;Array.isArray(r)?(t=[],i=r.length):(n=Object.keys(r),t={},i=n.length);function o(l){function c(){e&&e(l,t),e=null}s?process.nextTick(c):c()}function a(l,c,u){t[l]=u,(--i==0||c)&&o(c)}i?n?n.forEach(function(l){r[l](function(c,u){a(l,c,u)})}):r.forEach(function(l,c){l(function(u,g){a(c,u,g)})}):o(null),s=!1}});var $v=w(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Uy=process.versions.node.split(".");if(Uy[0]===void 0||Uy[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var VJ=Number.parseInt(Uy[0],10),V0e=Number.parseInt(Uy[1],10),XJ=10,X0e=10,Z0e=VJ>XJ,$0e=VJ===XJ&&V0e>=X0e;Ky.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Z0e||$0e});var $J=w(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.createDirentFromStats=void 0;var ZJ=class{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function ebe(r,e){return new ZJ(r,e)}Hy.createDirentFromStats=ebe});var ex=w(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.fs=void 0;var tbe=$J();jy.fs=tbe});var tx=w(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.joinPathSegments=void 0;function rbe(r,e,t){return r.endsWith(t)?r+e:r+t+e}Gy.joinPathSegments=rbe});var s3=w(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.readdir=nl.readdirWithFileTypes=nl.read=void 0;var ibe=Kc(),e3=_J(),nbe=$v(),t3=ex(),r3=tx();function sbe(r,e,t){if(!e.stats&&nbe.IS_SUPPORT_READDIR_WITH_FILE_TYPES){i3(r,e,t);return}n3(r,e,t)}nl.read=sbe;function i3(r,e,t){e.fs.readdir(r,{withFileTypes:!0},(i,n)=>{if(i!==null){Yy(t,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:r3.joinPathSegments(r,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){rx(t,s);return}let o=s.map(a=>obe(a,e));e3(o,(a,l)=>{if(a!==null){Yy(t,a);return}rx(t,l)})})}nl.readdirWithFileTypes=i3;function obe(r,e){return t=>{if(!r.dirent.isSymbolicLink()){t(null,r);return}e.fs.stat(r.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){t(i);return}t(null,r);return}r.dirent=t3.fs.createDirentFromStats(r.name,n),t(null,r)})}}function n3(r,e,t){e.fs.readdir(r,(i,n)=>{if(i!==null){Yy(t,i);return}let s=n.map(o=>{let a=r3.joinPathSegments(r,o,e.pathSegmentSeparator);return l=>{ibe.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let g={name:o,path:a,dirent:t3.fs.createDirentFromStats(o,u)};e.stats&&(g.stats=u),l(null,g)})}});e3(s,(o,a)=>{if(o!==null){Yy(t,o);return}rx(t,a)})})}nl.readdir=n3;function Yy(r,e){r(e)}function rx(r,e){r(null,e)}});var c3=w(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.readdir=sl.readdirWithFileTypes=sl.read=void 0;var abe=Kc(),Abe=$v(),o3=ex(),a3=tx();function lbe(r,e){return!e.stats&&Abe.IS_SUPPORT_READDIR_WITH_FILE_TYPES?A3(r,e):l3(r,e)}sl.read=lbe;function A3(r,e){return e.fs.readdirSync(r,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:a3.joinPathSegments(r,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=o3.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sl.readdirWithFileTypes=A3;function l3(r,e){return e.fs.readdirSync(r).map(i=>{let n=a3.joinPathSegments(r,i,e.pathSegmentSeparator),s=abe.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:o3.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sl.readdir=l3});var u3=w(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.createFileSystemAdapter=ol.FILE_SYSTEM_ADAPTER=void 0;var Ug=require("fs");ol.FILE_SYSTEM_ADAPTER={lstat:Ug.lstat,stat:Ug.stat,lstatSync:Ug.lstatSync,statSync:Ug.statSync,readdir:Ug.readdir,readdirSync:Ug.readdirSync};function cbe(r){return r===void 0?ol.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ol.FILE_SYSTEM_ADAPTER),r)}ol.createFileSystemAdapter=cbe});var f3=w(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});var ube=require("path"),gbe=Kc(),fbe=u3(),g3=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=fbe.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ube.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gbe.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!=null?e:t}};ix.default=g3});var qy=w(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.Settings=al.scandirSync=al.scandir=void 0;var h3=s3(),hbe=c3(),nx=f3();al.Settings=nx.default;function pbe(r,e,t){if(typeof e=="function"){h3.read(r,sx(),e);return}h3.read(r,sx(e),t)}al.scandir=pbe;function dbe(r,e){let t=sx(e);return hbe.read(r,t)}al.scandirSync=dbe;function sx(r={}){return r instanceof nx.default?r:new nx.default(r)}});var d3=w((Btt,p3)=>{"use strict";function Cbe(r){var e=new r,t=e;function i(){var s=e;return s.next?e=s.next:(e=new r,t=e),s.next=null,s}function n(s){t.next=s,t=s}return{get:i,release:n}}p3.exports=Cbe});var m3=w((btt,ox)=>{"use strict";var mbe=d3();function C3(r,e,t){if(typeof r=="function"&&(t=e,e=r,r=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var i=mbe(Ebe),n=null,s=null,o=0,a=null,l={push:m,drain:Vo,saturated:Vo,pause:u,paused:!1,concurrency:t,running:c,resume:h,idle:p,length:g,getQueue:f,unshift:y,empty:Vo,kill:v,killAndDrain:x,error:T};return l;function c(){return o}function u(){l.paused=!0}function g(){for(var q=n,Y=0;q;)q=q.next,Y++;return Y}function f(){for(var q=n,Y=[];q;)Y.push(q.value),q=q.next;return Y}function h(){if(!!l.paused){l.paused=!1;for(var q=0;q{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.joinPathSegments=Xo.replacePathSegmentSeparator=Xo.isAppliedFilter=Xo.isFatalError=void 0;function ybe(r,e){return r.errorFilter===null?!0:!r.errorFilter(e)}Xo.isFatalError=ybe;function wbe(r,e){return r===null||r(e)}Xo.isAppliedFilter=wbe;function Bbe(r,e){return r.split(/[/\\]/).join(e)}Xo.replacePathSegmentSeparator=Bbe;function bbe(r,e,t){return r===""?e:r.endsWith(t)?r+e:r+t+e}Xo.joinPathSegments=bbe});var Ax=w(ax=>{"use strict";Object.defineProperty(ax,"__esModule",{value:!0});var Qbe=Jy(),E3=class{constructor(e,t){this._root=e,this._settings=t,this._root=Qbe.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}};ax.default=E3});var cx=w(lx=>{"use strict";Object.defineProperty(lx,"__esModule",{value:!0});var Sbe=require("events"),vbe=qy(),xbe=m3(),Wy=Jy(),kbe=Ax(),I3=class extends kbe.default{constructor(e,t){super(e,t);this._settings=t,this._scandir=vbe.scandir,this._emitter=new Sbe.EventEmitter,this._queue=xbe(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){let i={directory:e,base:t};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){t(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);t(null,void 0)})}_handleError(e){this._isDestroyed||!Wy.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let i=e.path;t!==void 0&&(e.path=Wy.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),Wy.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Wy.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};lx.default=I3});var w3=w(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var Pbe=cx(),y3=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new Pbe.default(this._root,this._settings),this._storage=new Set}read(e){this._reader.onError(t=>{Dbe(e,t)}),this._reader.onEntry(t=>{this._storage.add(t)}),this._reader.onEnd(()=>{Rbe(e,[...this._storage])}),this._reader.read()}};ux.default=y3;function Dbe(r,e){r(e)}function Rbe(r,e){r(null,e)}});var b3=w(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});var Fbe=require("stream"),Nbe=cx(),B3=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new Nbe.default(this._root,this._settings),this._stream=new Fbe.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};gx.default=B3});var S3=w(fx=>{"use strict";Object.defineProperty(fx,"__esModule",{value:!0});var Lbe=qy(),zy=Jy(),Tbe=Ax(),Q3=class extends Tbe.default{constructor(){super(...arguments);this._scandir=Lbe.scandirSync,this._storage=new Set,this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),[...this._storage]}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,t)}catch(i){this._handleError(i)}}_handleError(e){if(!!zy.isFatalError(this._settings,e))throw e}_handleEntry(e,t){let i=e.path;t!==void 0&&(e.path=zy.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),zy.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&zy.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,e.path)}_pushToStorage(e){this._storage.add(e)}};fx.default=Q3});var x3=w(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});var Obe=S3(),v3=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new Obe.default(this._root,this._settings)}read(){return this._reader.read()}};hx.default=v3});var P3=w(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});var Mbe=require("path"),Kbe=qy(),k3=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Mbe.sep),this.fsScandirSettings=new Kbe.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!=null?e:t}};px.default=k3});var Cx=w(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.Settings=Zo.walkStream=Zo.walkSync=Zo.walk=void 0;var D3=w3(),Ube=b3(),Hbe=x3(),dx=P3();Zo.Settings=dx.default;function jbe(r,e,t){if(typeof e=="function"){new D3.default(r,_y()).read(e);return}new D3.default(r,_y(e)).read(t)}Zo.walk=jbe;function Gbe(r,e){let t=_y(e);return new Hbe.default(r,t).read()}Zo.walkSync=Gbe;function Ybe(r,e){let t=_y(e);return new Ube.default(r,t).read()}Zo.walkStream=Ybe;function _y(r={}){return r instanceof dx.default?r:new dx.default(r)}});var Ex=w(mx=>{"use strict";Object.defineProperty(mx,"__esModule",{value:!0});var qbe=require("path"),Jbe=Kc(),R3=Xa(),F3=class{constructor(e){this._settings=e,this._fsStatSettings=new Jbe.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return qbe.resolve(this._settings.cwd,e)}_makeEntry(e,t){let i={name:t,path:t,dirent:R3.fs.createDirentFromStats(t,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!R3.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};mx.default=F3});var yx=w(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});var Wbe=require("stream"),zbe=Kc(),_be=Cx(),Vbe=Ex(),N3=class extends Vbe.default{constructor(){super(...arguments);this._walkStream=_be.walkStream,this._stat=zbe.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let i=e.map(this._getFullEntryPath,this),n=new Wbe.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],t).then(l=>{l!==null&&t.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;sthis._makeEntry(n,t)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((t,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?t(s):i(n))})}};Ix.default=N3});var T3=w(wx=>{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});var Hg=Xa(),L3=class{constructor(e,t,i){this._patterns=e,this._settings=t,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Hg.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of e){let i=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:t,segments:i,sections:n})}}_getPatternSegments(e){return Hg.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Hg.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Hg.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Hg.array.splitWhen(e,t=>t.dynamic&&Hg.pattern.hasGlobStar(t.pattern))}};wx.default=L3});var M3=w(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});var Xbe=T3(),O3=class extends Xbe.default{match(e){let t=e.split("/"),i=t.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||t.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Bx.default=O3});var U3=w(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0});var Vy=Xa(),Zbe=M3(),K3=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,i){let n=this._getMatcher(t),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new Zbe.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let t=e.filter(Vy.pattern.isAffectDepthOfReadingPattern);return Vy.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,i,n){let s=this._getEntryLevel(e,t.path);if(this._isSkippedByDeep(s)||this._isSkippedSymbolicLink(t))return!1;let o=Vy.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(o,i)?!1:this._isSkippedByNegativePatterns(o,n)}_isSkippedByDeep(e){return e>=this._settings.deep}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_getEntryLevel(e,t){let i=e.split("/").length;return t.split("/").length-(e===""?0:i)}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!Vy.pattern.matchAny(e,t)}};bx.default=K3});var j3=w(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});var sd=Xa(),H3=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){let i=sd.pattern.convertPatternsToRe(e,this._micromatchOptions),n=sd.pattern.convertPatternsToRe(t,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,t,i){if(this._settings.unique){if(this._isDuplicateEntry(e))return!1;this._createIndexRecord(e)}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path;return this._isMatchToPatterns(n,t)&&!this._isMatchToPatterns(e.path,i)}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return!1;let i=sd.path.makeAbsolute(this._settings.cwd,e.path);return this._isMatchToPatterns(i,t)}_isMatchToPatterns(e,t){let i=sd.path.removeLeadingDotSegment(e);return sd.pattern.matchAny(i,t)}};Qx.default=H3});var Y3=w(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});var $be=Xa(),G3=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return $be.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Sx.default=G3});var W3=w(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var q3=Xa(),J3=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;return this._settings.absolute&&(t=q3.path.makeAbsolute(this._settings.cwd,t),t=q3.path.unixify(t)),this._settings.markDirectories&&e.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:t}):t}};vx.default=J3});var Xy=w(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0});var eQe=require("path"),tQe=U3(),rQe=j3(),iQe=Y3(),nQe=W3(),z3=class{constructor(e){this._settings=e,this.errorFilter=new iQe.default(this._settings),this.entryFilter=new rQe.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new tQe.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new nQe.default(this._settings)}_getRootDirectory(e){return eQe.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};xx.default=z3});var V3=w(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});var sQe=yx(),oQe=Xy(),_3=class extends oQe.default{constructor(){super(...arguments);this._reader=new sQe.default(this._settings)}read(e){let t=this._getRootDirectory(e),i=this._getReaderOptions(e),n=[];return new Promise((s,o)=>{let a=this.api(t,e,i);a.once("error",o),a.on("data",l=>n.push(i.transform(l))),a.once("end",()=>s(n))})}api(e,t,i){return t.dynamic?this._reader.dynamic(e,i):this._reader.static(t.patterns,i)}};kx.default=_3});var Z3=w(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});var aQe=require("stream"),AQe=yx(),lQe=Xy(),X3=class extends lQe.default{constructor(){super(...arguments);this._reader=new AQe.default(this._settings)}read(e){let t=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(t,e,i),s=new aQe.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,t,i){return t.dynamic?this._reader.dynamic(e,i):this._reader.static(t.patterns,i)}};Px.default=X3});var eW=w(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});var cQe=Kc(),uQe=Cx(),gQe=Ex(),$3=class extends gQe.default{constructor(){super(...arguments);this._walkSync=uQe.walkSync,this._statSync=cQe.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,t);o===null||!t.entryFilter(o)||i.push(o)}return i}_getEntry(e,t,i){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Dx.default=$3});var rW=w(Rx=>{"use strict";Object.defineProperty(Rx,"__esModule",{value:!0});var fQe=eW(),hQe=Xy(),tW=class extends hQe.default{constructor(){super(...arguments);this._reader=new fQe.default(this._settings)}read(e){let t=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(t,e,i).map(i.transform)}api(e,t,i){return t.dynamic?this._reader.dynamic(e,i):this._reader.static(t.patterns,i)}};Rx.default=tW});var nW=w(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var jg=require("fs"),pQe=require("os"),dQe=pQe.cpus().length;od.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:jg.lstat,lstatSync:jg.lstatSync,stat:jg.stat,statSync:jg.statSync,readdir:jg.readdir,readdirSync:jg.readdirSync};var iW=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,dQe),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,Infinity),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,t){return e===void 0?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},od.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};od.default=iW});var Zy=w((ztt,sW)=>{"use strict";var oW=UJ(),CQe=V3(),mQe=Z3(),EQe=rW(),Fx=nW(),Uc=Xa();async function Lx(r,e){Gg(r);let t=Nx(r,CQe.default,e),i=await Promise.all(t);return Uc.array.flatten(i)}(function(r){function e(o,a){Gg(o);let l=Nx(o,EQe.default,a);return Uc.array.flatten(l)}r.sync=e;function t(o,a){Gg(o);let l=Nx(o,mQe.default,a);return Uc.stream.merge(l)}r.stream=t;function i(o,a){Gg(o);let l=[].concat(o),c=new Fx.default(a);return oW.generate(l,c)}r.generateTasks=i;function n(o,a){Gg(o);let l=new Fx.default(a);return Uc.pattern.isDynamicPattern(o,l)}r.isDynamicPattern=n;function s(o){return Gg(o),Uc.path.escape(o)}r.escapePath=s})(Lx||(Lx={}));function Nx(r,e,t){let i=[].concat(r),n=new Fx.default(t),s=oW.generate(i,n),o=new e(n);return s.map(o.read,o)}function Gg(r){if(![].concat(r).every(i=>Uc.string.isString(i)&&!Uc.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}sW.exports=Lx});var AW=w(Hc=>{"use strict";var{promisify:IQe}=require("util"),aW=require("fs");async function Tx(r,e,t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);try{return(await IQe(aW[r])(t))[e]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}function Ox(r,e,t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);try{return aW[r](t)[e]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}Hc.isFile=Tx.bind(null,"stat","isFile");Hc.isDirectory=Tx.bind(null,"stat","isDirectory");Hc.isSymlink=Tx.bind(null,"lstat","isSymbolicLink");Hc.isFileSync=Ox.bind(null,"statSync","isFile");Hc.isDirectorySync=Ox.bind(null,"statSync","isDirectory");Hc.isSymlinkSync=Ox.bind(null,"lstatSync","isSymbolicLink")});var fW=w((Vtt,Mx)=>{"use strict";var jc=require("path"),lW=AW(),cW=r=>r.length>1?`{${r.join(",")}}`:r[0],uW=(r,e)=>{let t=r[0]==="!"?r.slice(1):r;return jc.isAbsolute(t)?t:jc.join(e,t)},yQe=(r,e)=>jc.extname(r)?`**/${r}`:`**/${r}.${cW(e)}`,gW=(r,e)=>{if(e.files&&!Array.isArray(e.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);if(e.extensions&&!Array.isArray(e.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);return e.files&&e.extensions?e.files.map(t=>jc.posix.join(r,yQe(t,e.extensions))):e.files?e.files.map(t=>jc.posix.join(r,`**/${t}`)):e.extensions?[jc.posix.join(r,`**/*.${cW(e.extensions)}`)]:[jc.posix.join(r,"**")]};Mx.exports=async(r,e)=>{if(e=N({cwd:process.cwd()},e),typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let t=await Promise.all([].concat(r).map(async i=>await lW.isDirectory(uW(i,e.cwd))?gW(i,e):i));return[].concat.apply([],t)};Mx.exports.sync=(r,e)=>{if(e=N({cwd:process.cwd()},e),typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let t=[].concat(r).map(i=>lW.isDirectorySync(uW(i,e.cwd))?gW(i,e):i);return[].concat.apply([],t)}});var BW=w((Xtt,hW)=>{function pW(r){return Array.isArray(r)?r:[r]}var dW="",CW=" ",Kx="\\",wQe=/^\s+$/,BQe=/^\\!/,bQe=/^\\#/,QQe=/\r?\n/g,SQe=/^\.*\/|^\.+$/,Ux="/",mW=typeof Symbol!="undefined"?Symbol.for("node-ignore"):"node-ignore",vQe=(r,e,t)=>Object.defineProperty(r,e,{value:t}),xQe=/([0-z])-([0-z])/g,kQe=r=>r.replace(xQe,(e,t,i)=>t.charCodeAt(0)<=i.charCodeAt(0)?e:dW),PQe=r=>{let{length:e}=r;return r.slice(0,e-e%2)},DQe=[[/\\?\s+$/,r=>r.indexOf("\\")===0?CW:dW],[/\\\s/g,()=>CW],[/[\\$.|*+(){^]/g,r=>`\\${r}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(r,e,t)=>e+6`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>Kx],[/\\\\/g,()=>Kx],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(r,e,t,i,n)=>e===Kx?`\\[${t}${PQe(i)}${n}`:n==="]"&&i.length%2==0?`[${kQe(t)}${i}]`:"[]"],[/(?:[^*])$/,r=>/\/$/.test(r)?`${r}$`:`${r}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(r,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],EW=Object.create(null),RQe=(r,e)=>{let t=EW[r];return t||(t=DQe.reduce((i,n)=>i.replace(n[0],n[1].bind(r)),r),EW[r]=t),e?new RegExp(t,"i"):new RegExp(t)},Hx=r=>typeof r=="string",FQe=r=>r&&Hx(r)&&!wQe.test(r)&&r.indexOf("#")!==0,NQe=r=>r.split(QQe),IW=class{constructor(e,t,i,n){this.origin=e,this.pattern=t,this.negative=i,this.regex=n}},LQe=(r,e)=>{let t=r,i=!1;r.indexOf("!")===0&&(i=!0,r=r.substr(1)),r=r.replace(BQe,"!").replace(bQe,"#");let n=RQe(r,e);return new IW(t,r,i,n)},TQe=(r,e)=>{throw new e(r)},$a=(r,e,t)=>Hx(r)?r?$a.isNotRelative(r)?t(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:t("path must not be empty",TypeError):t(`path must be a string, but got \`${e}\``,TypeError),yW=r=>SQe.test(r);$a.isNotRelative=yW;$a.convert=r=>r;var wW=class{constructor({ignorecase:e=!0}={}){vQe(this,mW,!0),this._rules=[],this._ignorecase=e,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[mW]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(FQe(e)){let t=LQe(e,this._ignorecase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,pW(Hx(e)?NQe(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let i=!1,n=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(n===o&&i!==n||o&&!i&&!n&&!t)return;s.regex.test(e)&&(i=!o,n=o)}),{ignored:i,unignored:n}}_test(e,t,i,n){let s=e&&$a.convert(e);return $a(s,e,TQe),this._t(s,t,i,n)}_t(e,t,i,n){if(e in t)return t[e];if(n||(n=e.split(Ux)),n.pop(),!n.length)return t[e]=this._testOne(e,i);let s=this._t(n.join(Ux)+Ux,t,i,n);return t[e]=s.ignored?s:this._testOne(e,i)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return pW(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},$y=r=>new wW(r),OQe=()=>!1,MQe=r=>$a(r&&$a.convert(r),r,OQe);$y.isPathValid=MQe;$y.default=$y;hW.exports=$y;if(typeof process!="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let r=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");$a.convert=r;let e=/^[a-z]:\//i;$a.isNotRelative=t=>e.test(t)||yW(t)}});var QW=w((Ztt,bW)=>{"use strict";bW.exports=r=>{let e=/^\\\\\?\\/.test(r),t=/[^\u0000-\u0080]+/.test(r);return e||t?r:r.replace(/\\/g,"/")}});var RW=w(($tt,jx)=>{"use strict";var{promisify:KQe}=require("util"),SW=require("fs"),eA=require("path"),vW=Zy(),UQe=BW(),ad=QW(),xW=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],HQe=KQe(SW.readFile),jQe=r=>e=>e.startsWith("!")?"!"+eA.posix.join(r,e.slice(1)):eA.posix.join(r,e),GQe=(r,e)=>{let t=ad(eA.relative(e.cwd,eA.dirname(e.fileName)));return r.split(/\r?\n/).filter(Boolean).filter(i=>!i.startsWith("#")).map(jQe(t))},kW=r=>{let e=UQe();for(let t of r)e.add(GQe(t.content,{cwd:t.cwd,fileName:t.filePath}));return e},YQe=(r,e)=>{if(r=ad(r),eA.isAbsolute(e)){if(ad(e).startsWith(r))return e;throw new Error(`Path ${e} is not in cwd ${r}`)}return eA.join(r,e)},PW=(r,e)=>t=>r.ignores(ad(eA.relative(e,YQe(e,t.path||t)))),qQe=async(r,e)=>{let t=eA.join(e,r),i=await HQe(t,"utf8");return{cwd:e,filePath:t,content:i}},JQe=(r,e)=>{let t=eA.join(e,r),i=SW.readFileSync(t,"utf8");return{cwd:e,filePath:t,content:i}},DW=({ignore:r=[],cwd:e=ad(process.cwd())}={})=>({ignore:r,cwd:e});jx.exports=async r=>{r=DW(r);let e=await vW("**/.gitignore",{ignore:xW.concat(r.ignore),cwd:r.cwd}),t=await Promise.all(e.map(n=>qQe(n,r.cwd))),i=kW(t);return PW(i,r.cwd)};jx.exports.sync=r=>{r=DW(r);let t=vW.sync("**/.gitignore",{ignore:xW.concat(r.ignore),cwd:r.cwd}).map(n=>JQe(n,r.cwd)),i=kW(t);return PW(i,r.cwd)}});var TW=w((ert,FW)=>{"use strict";var{Transform:WQe}=require("stream"),Gx=class extends WQe{constructor(){super({objectMode:!0})}},NW=class extends Gx{constructor(e){super();this._filter=e}_transform(e,t,i){this._filter(e)&&this.push(e),i()}},LW=class extends Gx{constructor(){super();this._pushed=new Set}_transform(e,t,i){this._pushed.has(e)||(this.push(e),this._pushed.add(e)),i()}};FW.exports={FilterStream:NW,UniqueStream:LW}});var Wx=w((trt,Gc)=>{"use strict";var OW=require("fs"),ew=AJ(),zQe=jv(),tw=Zy(),rw=fW(),Yx=RW(),{FilterStream:_Qe,UniqueStream:VQe}=TW(),MW=()=>!1,KW=r=>r[0]==="!",XQe=r=>{if(!r.every(e=>typeof e=="string"))throw new TypeError("Patterns must be a string or an array of strings")},ZQe=(r={})=>{if(!r.cwd)return;let e;try{e=OW.statSync(r.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},$Qe=r=>r.stats instanceof OW.Stats?r.path:r,iw=(r,e)=>{r=ew([].concat(r)),XQe(r),ZQe(e);let t=[];e=N({ignore:[],expandDirectories:!0},e);for(let[i,n]of r.entries()){if(KW(n))continue;let s=r.slice(i).filter(a=>KW(a)).map(a=>a.slice(1)),o=te(N({},e),{ignore:e.ignore.concat(s)});t.push({pattern:n,options:o})}return t},eSe=(r,e)=>{let t={};return r.options.cwd&&(t.cwd=r.options.cwd),Array.isArray(r.options.expandDirectories)?t=te(N({},t),{files:r.options.expandDirectories}):typeof r.options.expandDirectories=="object"&&(t=N(N({},t),r.options.expandDirectories)),e(r.pattern,t)},qx=(r,e)=>r.options.expandDirectories?eSe(r,e):[r.pattern],UW=r=>r&&r.gitignore?Yx.sync({cwd:r.cwd,ignore:r.ignore}):MW,Jx=r=>e=>{let{options:t}=r;return t.ignore&&Array.isArray(t.ignore)&&t.expandDirectories&&(t.ignore=rw.sync(t.ignore)),{pattern:e,options:t}};Gc.exports=async(r,e)=>{let t=iw(r,e),i=async()=>e&&e.gitignore?Yx({cwd:e.cwd,ignore:e.ignore}):MW,n=async()=>{let l=await Promise.all(t.map(async c=>{let u=await qx(c,rw);return Promise.all(u.map(Jx(c)))}));return ew(...l)},[s,o]=await Promise.all([i(),n()]),a=await Promise.all(o.map(l=>tw(l.pattern,l.options)));return ew(...a).filter(l=>!s($Qe(l)))};Gc.exports.sync=(r,e)=>{let t=iw(r,e),i=[];for(let o of t){let a=qx(o,rw.sync).map(Jx(o));i.push(...a)}let n=UW(e),s=[];for(let o of i)s=ew(s,tw.sync(o.pattern,o.options));return s.filter(o=>!n(o))};Gc.exports.stream=(r,e)=>{let t=iw(r,e),i=[];for(let a of t){let l=qx(a,rw.sync).map(Jx(a));i.push(...l)}let n=UW(e),s=new _Qe(a=>!n(a)),o=new VQe;return zQe(i.map(a=>tw.stream(a.pattern,a.options))).pipe(s).pipe(o)};Gc.exports.generateGlobTasks=iw;Gc.exports.hasMagic=(r,e)=>[].concat(r).some(t=>tw.isDynamicPattern(t,e));Gc.exports.gitignore=Yx});var Rn=w((xrt,t4)=>{function fSe(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}t4.exports=fSe});var rk=w((krt,r4)=>{var hSe=typeof global=="object"&&global&&global.Object===Object&&global;r4.exports=hSe});var Ns=w((Prt,i4)=>{var pSe=rk(),dSe=typeof self=="object"&&self&&self.Object===Object&&self,CSe=pSe||dSe||Function("return this")();i4.exports=CSe});var s4=w((Drt,n4)=>{var mSe=Ns(),ESe=function(){return mSe.Date.now()};n4.exports=ESe});var a4=w((Rrt,o4)=>{var ISe=/\s/;function ySe(r){for(var e=r.length;e--&&ISe.test(r.charAt(e)););return e}o4.exports=ySe});var l4=w((Frt,A4)=>{var wSe=a4(),BSe=/^\s+/;function bSe(r){return r&&r.slice(0,wSe(r)+1).replace(BSe,"")}A4.exports=bSe});var Jc=w((Nrt,c4)=>{var QSe=Ns(),SSe=QSe.Symbol;c4.exports=SSe});var h4=w((Lrt,u4)=>{var g4=Jc(),f4=Object.prototype,vSe=f4.hasOwnProperty,xSe=f4.toString,Ed=g4?g4.toStringTag:void 0;function kSe(r){var e=vSe.call(r,Ed),t=r[Ed];try{r[Ed]=void 0;var i=!0}catch(s){}var n=xSe.call(r);return i&&(e?r[Ed]=t:delete r[Ed]),n}u4.exports=kSe});var d4=w((Trt,p4)=>{var PSe=Object.prototype,DSe=PSe.toString;function RSe(r){return DSe.call(r)}p4.exports=RSe});var Wc=w((Ort,C4)=>{var m4=Jc(),FSe=h4(),NSe=d4(),LSe="[object Null]",TSe="[object Undefined]",E4=m4?m4.toStringTag:void 0;function OSe(r){return r==null?r===void 0?TSe:LSe:E4&&E4 in Object(r)?FSe(r):NSe(r)}C4.exports=OSe});var ta=w((Mrt,I4)=>{function MSe(r){return r!=null&&typeof r=="object"}I4.exports=MSe});var Id=w((Krt,y4)=>{var KSe=Wc(),USe=ta(),HSe="[object Symbol]";function jSe(r){return typeof r=="symbol"||USe(r)&&KSe(r)==HSe}y4.exports=jSe});var Q4=w((Urt,w4)=>{var GSe=l4(),B4=Rn(),YSe=Id(),b4=0/0,qSe=/^[-+]0x[0-9a-f]+$/i,JSe=/^0b[01]+$/i,WSe=/^0o[0-7]+$/i,zSe=parseInt;function _Se(r){if(typeof r=="number")return r;if(YSe(r))return b4;if(B4(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=B4(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=GSe(r);var t=JSe.test(r);return t||WSe.test(r)?zSe(r.slice(2),t?2:8):qSe.test(r)?b4:+r}w4.exports=_Se});var x4=w((Hrt,S4)=>{var VSe=Rn(),ik=s4(),v4=Q4(),XSe="Expected a function",ZSe=Math.max,$Se=Math.min;function eve(r,e,t){var i,n,s,o,a,l,c=0,u=!1,g=!1,f=!0;if(typeof r!="function")throw new TypeError(XSe);e=v4(e)||0,VSe(t)&&(u=!!t.leading,g="maxWait"in t,s=g?ZSe(v4(t.maxWait)||0,e):s,f="trailing"in t?!!t.trailing:f);function h(Y){var $=i,_=n;return i=n=void 0,c=Y,o=r.apply(_,$),o}function p(Y){return c=Y,a=setTimeout(b,e),u?h(Y):o}function m(Y){var $=Y-l,_=Y-c,ne=e-$;return g?$Se(ne,s-_):ne}function y(Y){var $=Y-l,_=Y-c;return l===void 0||$>=e||$<0||g&&_>=s}function b(){var Y=ik();if(y(Y))return v(Y);a=setTimeout(b,m(Y))}function v(Y){return a=void 0,f&&i?h(Y):(i=n=void 0,o)}function x(){a!==void 0&&clearTimeout(a),c=0,i=l=n=a=void 0}function T(){return a===void 0?o:v(ik())}function q(){var Y=ik(),$=y(Y);if(i=arguments,n=this,l=Y,$){if(a===void 0)return p(l);if(g)return clearTimeout(a),a=setTimeout(b,e),h(l)}return a===void 0&&(a=setTimeout(b,e)),o}return q.cancel=x,q.flush=T,q}S4.exports=eve});var P4=w((jrt,k4)=>{var tve=x4(),rve=Rn(),ive="Expected a function";function nve(r,e,t){var i=!0,n=!0;if(typeof r!="function")throw new TypeError(ive);return rve(t)&&(i="leading"in t?!!t.leading:i,n="trailing"in t?!!t.trailing:n),tve(r,e,{leading:i,maxWait:e,trailing:n})}k4.exports=nve});var iA=w((rA,Bw)=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});var M4=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Cve(r){return M4.includes(r)}var mve=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...M4];function Eve(r){return mve.includes(r)}var Ive=["null","undefined","string","number","bigint","boolean","symbol"];function yve(r){return Ive.includes(r)}function Xg(r){return e=>typeof e===r}var{toString:K4}=Object.prototype,vd=r=>{let e=K4.call(r).slice(8,-1);if(/HTML\w+Element/.test(e)&&W.domElement(r))return"HTMLElement";if(Eve(e))return e},hr=r=>e=>vd(e)===r;function W(r){if(r===null)return"null";switch(typeof r){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(W.observable(r))return"Observable";if(W.array(r))return"Array";if(W.buffer(r))return"Buffer";let e=vd(r);if(e)return e;if(r instanceof String||r instanceof Boolean||r instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}W.undefined=Xg("undefined");W.string=Xg("string");var wve=Xg("number");W.number=r=>wve(r)&&!W.nan(r);W.bigint=Xg("bigint");W.function_=Xg("function");W.null_=r=>r===null;W.class_=r=>W.function_(r)&&r.toString().startsWith("class ");W.boolean=r=>r===!0||r===!1;W.symbol=Xg("symbol");W.numericString=r=>W.string(r)&&!W.emptyStringOrWhitespace(r)&&!Number.isNaN(Number(r));W.array=(r,e)=>Array.isArray(r)?W.function_(e)?r.every(e):!0:!1;W.buffer=r=>{var e,t,i,n;return(n=(i=(t=(e=r)===null||e===void 0?void 0:e.constructor)===null||t===void 0?void 0:t.isBuffer)===null||i===void 0?void 0:i.call(t,r))!==null&&n!==void 0?n:!1};W.nullOrUndefined=r=>W.null_(r)||W.undefined(r);W.object=r=>!W.null_(r)&&(typeof r=="object"||W.function_(r));W.iterable=r=>{var e;return W.function_((e=r)===null||e===void 0?void 0:e[Symbol.iterator])};W.asyncIterable=r=>{var e;return W.function_((e=r)===null||e===void 0?void 0:e[Symbol.asyncIterator])};W.generator=r=>W.iterable(r)&&W.function_(r.next)&&W.function_(r.throw);W.asyncGenerator=r=>W.asyncIterable(r)&&W.function_(r.next)&&W.function_(r.throw);W.nativePromise=r=>hr("Promise")(r);var Bve=r=>{var e,t;return W.function_((e=r)===null||e===void 0?void 0:e.then)&&W.function_((t=r)===null||t===void 0?void 0:t.catch)};W.promise=r=>W.nativePromise(r)||Bve(r);W.generatorFunction=hr("GeneratorFunction");W.asyncGeneratorFunction=r=>vd(r)==="AsyncGeneratorFunction";W.asyncFunction=r=>vd(r)==="AsyncFunction";W.boundFunction=r=>W.function_(r)&&!r.hasOwnProperty("prototype");W.regExp=hr("RegExp");W.date=hr("Date");W.error=hr("Error");W.map=r=>hr("Map")(r);W.set=r=>hr("Set")(r);W.weakMap=r=>hr("WeakMap")(r);W.weakSet=r=>hr("WeakSet")(r);W.int8Array=hr("Int8Array");W.uint8Array=hr("Uint8Array");W.uint8ClampedArray=hr("Uint8ClampedArray");W.int16Array=hr("Int16Array");W.uint16Array=hr("Uint16Array");W.int32Array=hr("Int32Array");W.uint32Array=hr("Uint32Array");W.float32Array=hr("Float32Array");W.float64Array=hr("Float64Array");W.bigInt64Array=hr("BigInt64Array");W.bigUint64Array=hr("BigUint64Array");W.arrayBuffer=hr("ArrayBuffer");W.sharedArrayBuffer=hr("SharedArrayBuffer");W.dataView=hr("DataView");W.directInstanceOf=(r,e)=>Object.getPrototypeOf(r)===e.prototype;W.urlInstance=r=>hr("URL")(r);W.urlString=r=>{if(!W.string(r))return!1;try{return new URL(r),!0}catch(e){return!1}};W.truthy=r=>Boolean(r);W.falsy=r=>!r;W.nan=r=>Number.isNaN(r);W.primitive=r=>W.null_(r)||yve(typeof r);W.integer=r=>Number.isInteger(r);W.safeInteger=r=>Number.isSafeInteger(r);W.plainObject=r=>{if(K4.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.getPrototypeOf({})};W.typedArray=r=>Cve(vd(r));var bve=r=>W.safeInteger(r)&&r>=0;W.arrayLike=r=>!W.nullOrUndefined(r)&&!W.function_(r)&&bve(r.length);W.inRange=(r,e)=>{if(W.number(e))return r>=Math.min(0,e)&&r<=Math.max(e,0);if(W.array(e)&&e.length===2)return r>=Math.min(...e)&&r<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var Qve=1,Sve=["innerHTML","ownerDocument","style","attributes","nodeValue"];W.domElement=r=>W.object(r)&&r.nodeType===Qve&&W.string(r.nodeName)&&!W.plainObject(r)&&Sve.every(e=>e in r);W.observable=r=>{var e,t,i,n;return r?r===((t=(e=r)[Symbol.observable])===null||t===void 0?void 0:t.call(e))||r===((n=(i=r)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};W.nodeStream=r=>W.object(r)&&W.function_(r.pipe)&&!W.observable(r);W.infinite=r=>r===Infinity||r===-Infinity;var U4=r=>e=>W.integer(e)&&Math.abs(e%2)===r;W.evenInteger=U4(0);W.oddInteger=U4(1);W.emptyArray=r=>W.array(r)&&r.length===0;W.nonEmptyArray=r=>W.array(r)&&r.length>0;W.emptyString=r=>W.string(r)&&r.length===0;W.nonEmptyString=r=>W.string(r)&&r.length>0;var vve=r=>W.string(r)&&!/\S/.test(r);W.emptyStringOrWhitespace=r=>W.emptyString(r)||vve(r);W.emptyObject=r=>W.object(r)&&!W.map(r)&&!W.set(r)&&Object.keys(r).length===0;W.nonEmptyObject=r=>W.object(r)&&!W.map(r)&&!W.set(r)&&Object.keys(r).length>0;W.emptySet=r=>W.set(r)&&r.size===0;W.nonEmptySet=r=>W.set(r)&&r.size>0;W.emptyMap=r=>W.map(r)&&r.size===0;W.nonEmptyMap=r=>W.map(r)&&r.size>0;W.propertyKey=r=>W.any([W.string,W.number,W.symbol],r);W.formData=r=>hr("FormData")(r);W.urlSearchParams=r=>hr("URLSearchParams")(r);var H4=(r,e,t)=>{if(!W.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(t.length===0)throw new TypeError("Invalid number of values");return r.call(t,e)};W.any=(r,...e)=>(W.array(r)?r:[r]).some(i=>H4(Array.prototype.some,i,e));W.all=(r,...e)=>H4(Array.prototype.every,r,e);var We=(r,e,t,i={})=>{if(!r){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(t.map(o=>`\`${W(o)}\``))].join(", ")}`:`received value of type \`${W(t)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};rA.assert={undefined:r=>We(W.undefined(r),"undefined",r),string:r=>We(W.string(r),"string",r),number:r=>We(W.number(r),"number",r),bigint:r=>We(W.bigint(r),"bigint",r),function_:r=>We(W.function_(r),"Function",r),null_:r=>We(W.null_(r),"null",r),class_:r=>We(W.class_(r),"Class",r),boolean:r=>We(W.boolean(r),"boolean",r),symbol:r=>We(W.symbol(r),"symbol",r),numericString:r=>We(W.numericString(r),"string with a number",r),array:(r,e)=>{We(W.array(r),"Array",r),e&&r.forEach(e)},buffer:r=>We(W.buffer(r),"Buffer",r),nullOrUndefined:r=>We(W.nullOrUndefined(r),"null or undefined",r),object:r=>We(W.object(r),"Object",r),iterable:r=>We(W.iterable(r),"Iterable",r),asyncIterable:r=>We(W.asyncIterable(r),"AsyncIterable",r),generator:r=>We(W.generator(r),"Generator",r),asyncGenerator:r=>We(W.asyncGenerator(r),"AsyncGenerator",r),nativePromise:r=>We(W.nativePromise(r),"native Promise",r),promise:r=>We(W.promise(r),"Promise",r),generatorFunction:r=>We(W.generatorFunction(r),"GeneratorFunction",r),asyncGeneratorFunction:r=>We(W.asyncGeneratorFunction(r),"AsyncGeneratorFunction",r),asyncFunction:r=>We(W.asyncFunction(r),"AsyncFunction",r),boundFunction:r=>We(W.boundFunction(r),"Function",r),regExp:r=>We(W.regExp(r),"RegExp",r),date:r=>We(W.date(r),"Date",r),error:r=>We(W.error(r),"Error",r),map:r=>We(W.map(r),"Map",r),set:r=>We(W.set(r),"Set",r),weakMap:r=>We(W.weakMap(r),"WeakMap",r),weakSet:r=>We(W.weakSet(r),"WeakSet",r),int8Array:r=>We(W.int8Array(r),"Int8Array",r),uint8Array:r=>We(W.uint8Array(r),"Uint8Array",r),uint8ClampedArray:r=>We(W.uint8ClampedArray(r),"Uint8ClampedArray",r),int16Array:r=>We(W.int16Array(r),"Int16Array",r),uint16Array:r=>We(W.uint16Array(r),"Uint16Array",r),int32Array:r=>We(W.int32Array(r),"Int32Array",r),uint32Array:r=>We(W.uint32Array(r),"Uint32Array",r),float32Array:r=>We(W.float32Array(r),"Float32Array",r),float64Array:r=>We(W.float64Array(r),"Float64Array",r),bigInt64Array:r=>We(W.bigInt64Array(r),"BigInt64Array",r),bigUint64Array:r=>We(W.bigUint64Array(r),"BigUint64Array",r),arrayBuffer:r=>We(W.arrayBuffer(r),"ArrayBuffer",r),sharedArrayBuffer:r=>We(W.sharedArrayBuffer(r),"SharedArrayBuffer",r),dataView:r=>We(W.dataView(r),"DataView",r),urlInstance:r=>We(W.urlInstance(r),"URL",r),urlString:r=>We(W.urlString(r),"string with a URL",r),truthy:r=>We(W.truthy(r),"truthy",r),falsy:r=>We(W.falsy(r),"falsy",r),nan:r=>We(W.nan(r),"NaN",r),primitive:r=>We(W.primitive(r),"primitive",r),integer:r=>We(W.integer(r),"integer",r),safeInteger:r=>We(W.safeInteger(r),"integer",r),plainObject:r=>We(W.plainObject(r),"plain object",r),typedArray:r=>We(W.typedArray(r),"TypedArray",r),arrayLike:r=>We(W.arrayLike(r),"array-like",r),domElement:r=>We(W.domElement(r),"HTMLElement",r),observable:r=>We(W.observable(r),"Observable",r),nodeStream:r=>We(W.nodeStream(r),"Node.js Stream",r),infinite:r=>We(W.infinite(r),"infinite number",r),emptyArray:r=>We(W.emptyArray(r),"empty array",r),nonEmptyArray:r=>We(W.nonEmptyArray(r),"non-empty array",r),emptyString:r=>We(W.emptyString(r),"empty string",r),nonEmptyString:r=>We(W.nonEmptyString(r),"non-empty string",r),emptyStringOrWhitespace:r=>We(W.emptyStringOrWhitespace(r),"empty string or whitespace",r),emptyObject:r=>We(W.emptyObject(r),"empty object",r),nonEmptyObject:r=>We(W.nonEmptyObject(r),"non-empty object",r),emptySet:r=>We(W.emptySet(r),"empty set",r),nonEmptySet:r=>We(W.nonEmptySet(r),"non-empty set",r),emptyMap:r=>We(W.emptyMap(r),"empty map",r),nonEmptyMap:r=>We(W.nonEmptyMap(r),"non-empty map",r),propertyKey:r=>We(W.propertyKey(r),"PropertyKey",r),formData:r=>We(W.formData(r),"FormData",r),urlSearchParams:r=>We(W.urlSearchParams(r),"URLSearchParams",r),evenInteger:r=>We(W.evenInteger(r),"even integer",r),oddInteger:r=>We(W.oddInteger(r),"odd integer",r),directInstanceOf:(r,e)=>We(W.directInstanceOf(r,e),"T",r),inRange:(r,e)=>We(W.inRange(r,e),"in range",r),any:(r,...e)=>We(W.any(r,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(r,...e)=>We(W.all(r,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(W,{class:{value:W.class_},function:{value:W.function_},null:{value:W.null_}});Object.defineProperties(rA.assert,{class:{value:rA.assert.class_},function:{value:rA.assert.function_},null:{value:rA.assert.null_}});rA.default=W;Bw.exports=W;Bw.exports.default=W;Bw.exports.assert=rA.assert});var j4=w((Wit,Bk)=>{"use strict";var bk=class extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return!0}},xd=class{static fn(e){return(...t)=>new xd((i,n,s)=>{t.push(s),e(...t).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((t,i)=>{this._reject=i;let n=a=>{this._isPending=!1,t(a)},s=a=>{this._isPending=!1,i(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(n,s,o)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._cancelHandlers.length>0)try{for(let t of this._cancelHandlers)t()}catch(t){this._reject(t)}this._isCanceled=!0,this._rejectOnCancel&&this._reject(new bk(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(xd.prototype,Promise.prototype);Bk.exports=xd;Bk.exports.CancelError=bk});var G4=w((Qk,Sk)=>{"use strict";Object.defineProperty(Qk,"__esModule",{value:!0});var xve=require("tls"),vk=(r,e)=>{let t;typeof e=="function"?t={connect:e}:t=e;let i=typeof t.connect=="function",n=typeof t.secureConnect=="function",s=typeof t.close=="function",o=()=>{i&&t.connect(),r instanceof xve.TLSSocket&&n&&(r.authorized?t.secureConnect():r.authorizationError||r.once("secureConnect",t.secureConnect)),s&&r.once("close",t.close)};r.writable&&!r.connecting?o():r.connecting?r.once("connect",o):r.destroyed&&s&&t.close(r._hadError)};Qk.default=vk;Sk.exports=vk;Sk.exports.default=vk});var Y4=w((xk,kk)=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0});var kve=G4(),Pve=Number(process.versions.node.split(".")[0]),Pk=r=>{let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};r.timings=e;let t=o=>{let a=o.emit.bind(o);o.emit=(l,...c)=>(l==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,o.emit=a),a(l,...c))};t(r),r.prependOnceListener("abort",()=>{e.abort=Date.now(),(!e.response||Pve>=13)&&(e.phases.total=Date.now()-e.start)});let i=o=>{e.socket=Date.now(),e.phases.wait=e.socket-e.start;let a=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};o.prependOnceListener("lookup",a),kve.default(o,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(o.removeListener("lookup",a),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};r.socket?i(r.socket):r.prependOnceListener("socket",i);let n=()=>{var o;e.upload=Date.now(),e.phases.request=e.upload-(o=e.secureConnect,o!=null?o:e.connect)};return(()=>typeof r.writableFinished=="boolean"?r.writableFinished:r.finished&&r.outputSize===0&&(!r.socket||r.socket.writableLength===0))()?n():r.prependOnceListener("finish",n),r.prependOnceListener("response",o=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,o.timings=e,t(o),o.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start})}),e};xk.default=Pk;kk.exports=Pk;kk.exports.default=Pk});var X4=w((zit,Dk)=>{"use strict";var{V4MAPPED:Dve,ADDRCONFIG:Rve,ALL:q4,promises:{Resolver:J4},lookup:Fve}=require("dns"),{promisify:Rk}=require("util"),Nve=require("os"),Zg=Symbol("cacheableLookupCreateConnection"),Fk=Symbol("cacheableLookupInstance"),W4=Symbol("expires"),Lve=typeof q4=="number",z4=r=>{if(!(r&&typeof r.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},Tve=r=>{for(let e of r)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},_4=()=>{let r=!1,e=!1;for(let t of Object.values(Nve.networkInterfaces()))for(let i of t)if(!i.internal&&(i.family==="IPv6"?e=!0:r=!0,r&&e))return{has4:r,has6:e};return{has4:r,has6:e}},Ove=r=>Symbol.iterator in r,V4={ttl:!0},Mve={all:!0},Nk=class{constructor({cache:e=new Map,maxTtl:t=Infinity,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new J4,lookup:o=Fve}={}){if(this.maxTtl=t,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=Rk(o),this._resolver instanceof J4?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Rk(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Rk(this._resolver.resolve6.bind(this._resolver))),this._iface=_4(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,i){if(typeof t=="function"?(i=t,t={}):typeof t=="number"&&(t={family:t}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,t).then(n=>{t.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,t={}){typeof t=="number"&&(t={family:t});let i=await this.query(e);if(t.family===6){let n=i.filter(s=>s.family===6);t.hints&Dve&&(Lve&&t.hints&q4||n.length===0)?Tve(i):i=n}else t.family===4&&(i=i.filter(n=>n.family===4));if(t.hints&Rve){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return t.all?i:i[0]}async query(e){let t=await this._cache.get(e);if(!t){let i=this._pending[e];if(i)t=await i;else{let n=this.queryAndCache(e);this._pending[e]=n,t=await n}}return t=t.map(i=>N({},i)),t}async _resolve(e){let t=async c=>{try{return await c}catch(u){if(u.code==="ENODATA"||u.code==="ENOTFOUND")return[];throw u}},[i,n]=await Promise.all([this._resolve4(e,V4),this._resolve6(e,V4)].map(c=>t(c))),s=0,o=0,a=0,l=Date.now();for(let c of i)c.family=4,c.expires=l+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=l+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch(t){return{entries:[],cacheTtl:0}}}async _set(e,t,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,t[W4]=Date.now()+i;try{await this._cache.set(e,t,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}Ove(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,Mve);try{let t=await this._resolve(e);t.entries.length===0&&this._fallback&&(t=await this._lookup(e),t.entries.length!==0&&this._hostnamesToFallback.add(e));let i=t.entries.length===0?this.errorTtl:t.cacheTtl;return await this._set(e,t.entries,i),delete this._pending[e],t.entries}catch(t){throw delete this._pending[e],t}}_tick(e){let t=this._nextRemovalTime;(!t||e{this._nextRemovalTime=!1;let i=Infinity,n=Date.now();for(let[s,o]of this._cache){let a=o[W4];n>=a?this._cache.delete(s):a("lookup"in t||(t.lookup=this.lookup),e[Zg](t,i))}uninstall(e){if(z4(e),e[Zg]){if(e[Fk]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Zg],delete e[Zg],delete e[Fk]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=_4(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Dk.exports=Nk;Dk.exports.default=Nk});var e8=w((_it,Lk)=>{"use strict";var Kve=typeof URL=="undefined"?require("url").URL:URL,Uve="text/plain",Hve="us-ascii",Z4=(r,e)=>e.some(t=>t instanceof RegExp?t.test(r):t===r),jve=(r,{stripHash:e})=>{let t=r.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!t)throw new Error(`Invalid URL: ${r}`);let i=t[1].split(";"),n=t[2],s=e?"":t[3],o=!1;i[i.length-1]==="base64"&&(i.pop(),o=!0);let a=(i.shift()||"").toLowerCase(),c=[...i.map(u=>{let[g,f=""]=u.split("=").map(h=>h.trim());return g==="charset"&&(f=f.toLowerCase(),f===Hve)?"":`${g}${f?`=${f}`:""}`}).filter(Boolean)];return o&&c.push("base64"),(c.length!==0||a&&a!==Uve)&&c.unshift(a),`data:${c.join(";")},${o?n.trim():n}${s?`#${s}`:""}`},$4=(r,e)=>{if(e=N({defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},e),Reflect.has(e,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(e,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(e,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(r=r.trim(),/^data:/i.test(r))return jve(r,e);let t=r.startsWith("//");!t&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let n=new Kve(r);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash&&(n.hash=""),n.pathname&&(n.pathname=n.pathname.replace(/((?!:).|^)\/{2,}/g,(s,o)=>/^(?!\/)/g.test(o)?`${o}/`:"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let s=n.pathname.split("/"),o=s[s.length-1];Z4(o,e.removeDirectoryIndex)&&(s=s.slice(0,s.length-1),n.pathname=s.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let s of[...n.searchParams.keys()])Z4(s,e.removeQueryParameters)&&n.searchParams.delete(s);return e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,"")),r=n.toString(),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&(r=r.replace(/\/$/,"")),t&&!e.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),e.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};Lk.exports=$4;Lk.exports.default=$4});var i8=w((Vit,t8)=>{t8.exports=r8;function r8(r,e){if(r&&e)return r8(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(i){t[i]=r[i]}),t;function t(){for(var i=new Array(arguments.length),n=0;n{var n8=i8();Tk.exports=n8(bw);Tk.exports.strict=n8(s8);bw.proto=bw(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return bw(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s8(this)},configurable:!0})});function bw(r){var e=function(){return e.called?e.value:(e.called=!0,e.value=r.apply(this,arguments))};return e.called=!1,e}function s8(r){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=r.apply(this,arguments)},t=r.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var Mk=w((Zit,o8)=>{var Gve=Ok(),Yve=function(){},qve=function(r){return r.setHeader&&typeof r.abort=="function"},Jve=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},a8=function(r,e,t){if(typeof e=="function")return a8(r,null,e);e||(e={}),t=Gve(t||Yve);var i=r._writableState,n=r._readableState,s=e.readable||e.readable!==!1&&r.readable,o=e.writable||e.writable!==!1&&r.writable,a=function(){r.writable||l()},l=function(){o=!1,s||t.call(r)},c=function(){s=!1,o||t.call(r)},u=function(p){t.call(r,p?new Error("exited with error code: "+p):null)},g=function(p){t.call(r,p)},f=function(){if(s&&!(n&&n.ended))return t.call(r,new Error("premature close"));if(o&&!(i&&i.ended))return t.call(r,new Error("premature close"))},h=function(){r.req.on("finish",l)};return qve(r)?(r.on("complete",l),r.on("abort",f),r.req?h():r.on("request",h)):o&&!i&&(r.on("end",a),r.on("close",a)),Jve(r)&&r.on("exit",u),r.on("end",c),r.on("finish",l),e.error!==!1&&r.on("error",g),r.on("close",f),function(){r.removeListener("complete",l),r.removeListener("abort",f),r.removeListener("request",h),r.req&&r.req.removeListener("finish",l),r.removeListener("end",a),r.removeListener("close",a),r.removeListener("finish",l),r.removeListener("exit",u),r.removeListener("end",c),r.removeListener("error",g),r.removeListener("close",f)}};o8.exports=a8});var c8=w(($it,A8)=>{var Wve=Ok(),zve=Mk(),Kk=require("fs"),kd=function(){},_ve=/^v?\.0/.test(process.version),Qw=function(r){return typeof r=="function"},Vve=function(r){return!_ve||!Kk?!1:(r instanceof(Kk.ReadStream||kd)||r instanceof(Kk.WriteStream||kd))&&Qw(r.close)},Xve=function(r){return r.setHeader&&Qw(r.abort)},Zve=function(r,e,t,i){i=Wve(i);var n=!1;r.on("close",function(){n=!0}),zve(r,{readable:e,writable:t},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,Vve(r))return r.close(kd);if(Xve(r))return r.abort();if(Qw(r.destroy))return r.destroy();i(o||new Error("stream was destroyed"))}}},l8=function(r){r()},$ve=function(r,e){return r.pipe(e)},exe=function(){var r=Array.prototype.slice.call(arguments),e=Qw(r[r.length-1]||kd)&&r.pop()||kd;if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new Error("pump requires two streams per minimum");var t,i=r.map(function(n,s){var o=s0;return Zve(n,o,a,function(l){t||(t=l),l&&i.forEach(l8),!o&&(i.forEach(l8),e(t))})});return r.reduce($ve)};A8.exports=exe});var g8=w((ent,u8)=>{"use strict";var{PassThrough:txe}=require("stream");u8.exports=r=>{r=N({},r);let{array:e}=r,{encoding:t}=r,i=t==="buffer",n=!1;e?n=!(t||i):t=t||"utf8",i&&(t=null);let s=new txe({objectMode:n});t&&s.setEncoding(t);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var f8=w((tnt,$g)=>{"use strict";var rxe=c8(),ixe=g8(),Uk=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function Sw(r,e){if(!r)return Promise.reject(new Error("Expected a stream"));e=N({maxBuffer:Infinity},e);let{maxBuffer:t}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&(a.bufferedData=i.getBufferedValue()),s(a)};i=rxe(r,ixe(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>t&&o(new Uk)})}),i.getBufferedValue()}$g.exports=Sw;$g.exports.default=Sw;$g.exports.buffer=(r,e)=>Sw(r,te(N({},e),{encoding:"buffer"}));$g.exports.array=(r,e)=>Sw(r,te(N({},e),{array:!0}));$g.exports.MaxBufferError=Uk});var p8=w((int,h8)=>{"use strict";var nxe=[200,203,204,206,300,301,404,405,410,414,501],sxe=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],oxe={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},axe={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Hk(r){let e={};if(!r)return e;let t=r.trim().split(/\s*,\s*/);for(let i of t){let[n,s]=i.split(/\s*=\s*/,2);e[n]=s===void 0?!0:s.replace(/^"|"$/g,"")}return e}function Axe(r){let e=[];for(let t in r){let i=r[t];e.push(i===!0?t:t+"="+i)}if(!!e.length)return e.join(", ")}h8.exports=class{constructor(e,t,{shared:i,cacheHeuristic:n,immutableMinTimeToLive:s,ignoreCargoCult:o,trustServerDate:a,_fromObject:l}={}){if(l){this._fromObject(l);return}if(!t||!t.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=i!==!1,this._trustServerDate=a!==void 0?a:!0,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in t?t.status:200,this._resHeaders=t.headers,this._rescc=Hk(t.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=t.headers.vary?e.headers:null,this._reqcc=Hk(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Axe(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!t.headers["cache-control"]&&/no-cache/.test(t.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&sxe.indexOf(this._status)!==-1&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||nxe.indexOf(this._status)!==-1))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let t=Hk(e.headers["cache-control"]);return t["no-cache"]||/no-cache/.test(e.headers.pragma)||t["max-age"]&&this.age()>t["max-age"]||t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]||this.stale()&&!(t["max-stale"]&&!this._rescc["must-revalidate"]&&(t["max-stale"]===!0||t["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let i of t)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let t={};for(let i in e)oxe[i]||(t[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete t[n]}if(t.warning){let i=t.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?t.warning=i.join(",").trim():delete t.warning}return t}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(t)}`,e.date=new Date(this.now()).toUTCString(),e}date(){return this._trustServerDate?this._serverDate():this._responseTime}_serverDate(){let e=Date.parse(this._resHeaders.date);if(isFinite(e)){let t=8*3600*1e3;if(Math.abs(this._responseTime-e)e&&(e=i)}let t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){let e=parseInt(this._resHeaders.age);return isFinite(e)?e:0}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);let e=this._rescc.immutable?this._immutableMinTtl:0,t=this._serverDate();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||ii)return Math.max(e,(t-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){return Math.max(0,this.maxAge()-this.age())*1e3}stale(){return this.maxAge()<=this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;if(this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete t["if-modified-since"],t["if-none-match"]){let n=t["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?t["if-none-match"]=n.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t}revalidatedPolicy(e,t){if(this._assertRequestHasHeaders(e),!t||!t.headers)throw Error("Response headers missing");let i=!1;if(t.status!==void 0&&t.status!=304?i=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===t.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,t),modified:t.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in t.headers&&!axe[o]?t.headers[o]:this._resHeaders[o];let s=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl,trustServerDate:this._trustServerDate}),modified:!1,matches:!0}}}});var vw=w((nnt,d8)=>{"use strict";d8.exports=r=>{let e={};for(let[t,i]of Object.entries(r))e[t.toLowerCase()]=i;return e}});var E8=w((snt,C8)=>{"use strict";var lxe=require("stream").Readable,cxe=vw(),m8=class extends lxe{constructor(e,t,i,n){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof t!="object")throw new TypeError("Argument `headers` should be an object");if(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super();this.statusCode=e,this.headers=cxe(t),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};C8.exports=m8});var y8=w((ont,I8)=>{"use strict";var uxe=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];I8.exports=(r,e)=>{let t=new Set(Object.keys(r).concat(uxe));for(let i of t)i in e||(e[i]=typeof r[i]=="function"?r[i].bind(r):r[i])}});var B8=w((ant,w8)=>{"use strict";var gxe=require("stream").PassThrough,fxe=y8(),hxe=r=>{if(!(r&&r.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new gxe;return fxe(r,e),r.pipe(e)};w8.exports=hxe});var b8=w(jk=>{jk.stringify=function r(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var t="",i=Array.isArray(e);t=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(t+=","),n=!1,i?e[s]==null?t+="null":t+=r(e[s]):e[s]!==void 0&&(t+=r(s)+":"+r(e[s])))}return t+=i?"]":"}",t}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};jk.parse=function(r){return JSON.parse(r,function(e,t){return typeof t=="string"?/^:base64:/.test(t)?Buffer.from(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t})}});var x8=w((lnt,Q8)=>{"use strict";var pxe=require("events"),S8=b8(),dxe=r=>{let e={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(r.adapter||r.uri){let t=r.adapter||/^[^:]*/.exec(r.uri)[0];return new(require(e[t]))(r)}return new Map},v8=class extends pxe{constructor(e,t){super();if(this.opts=Object.assign({namespace:"keyv",serialize:S8.stringify,deserialize:S8.parse},typeof e=="string"?{uri:e}:e,t),!this.opts.store){let i=Object.assign({},this.opts);this.opts.store=dxe(i)}typeof this.opts.store.on=="function"&&this.opts.store.on("error",i=>this.emit("error",i)),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e,t){e=this._getKeyPrefix(e);let{store:i}=this.opts;return Promise.resolve().then(()=>i.get(e)).then(n=>typeof n=="string"?this.opts.deserialize(n):n).then(n=>{if(n!==void 0){if(typeof n.expires=="number"&&Date.now()>n.expires){this.delete(e);return}return t&&t.raw?n:n.value}})}set(e,t,i){e=this._getKeyPrefix(e),typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:n}=this.opts;return Promise.resolve().then(()=>{let s=typeof i=="number"?Date.now()+i:null;return t={value:t,expires:s},this.opts.serialize(t)}).then(s=>n.set(e,s,i)).then(()=>!0)}delete(e){e=this._getKeyPrefix(e);let{store:t}=this.opts;return Promise.resolve().then(()=>t.delete(e))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}};Q8.exports=v8});var D8=w((cnt,k8)=>{"use strict";var Cxe=require("events"),xw=require("url"),mxe=e8(),Exe=f8(),Gk=p8(),P8=E8(),Ixe=vw(),yxe=B8(),wxe=x8(),ia=class{constructor(e,t){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new wxe({uri:typeof t=="string"&&t,store:typeof t!="string"&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,i)=>{let n;if(typeof t=="string")n=Yk(xw.parse(t)),t={};else if(t instanceof xw.URL)n=Yk(xw.parse(t.toString())),t={};else{let[g,...f]=(t.path||"").split("?"),h=f.length>0?`?${f.join("?")}`:"";n=Yk(te(N({},t),{pathname:g,search:h}))}t=N(N({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},t),Bxe(n)),t.headers=Ixe(t.headers);let s=new Cxe,o=mxe(xw.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${t.method}:${o}`,l=!1,c=!1,u=g=>{c=!0;let f=!1,h,p=new Promise(y=>{h=()=>{f||(f=!0,y())}}),m=y=>{if(l&&!g.forceRefresh){y.status=y.statusCode;let v=Gk.fromObject(l.cachePolicy).revalidatedPolicy(g,y);if(!v.modified){let x=v.policy.responseHeaders();y=new P8(l.statusCode,x,l.body,l.url),y.cachePolicy=v.policy,y.fromCache=!0}}y.fromCache||(y.cachePolicy=new Gk(g,y,g),y.fromCache=!1);let b;g.cache&&y.cachePolicy.storable()?(b=yxe(y),(async()=>{try{let v=Exe.buffer(y);if(await Promise.race([p,new Promise(Y=>y.once("end",Y))]),f)return;let x=await v,T={cachePolicy:y.cachePolicy.toObject(),url:y.url,statusCode:y.fromCache?l.statusCode:y.statusCode,body:x},q=g.strictTtl?y.cachePolicy.timeToLive():void 0;g.maxTtl&&(q=q?Math.min(q,g.maxTtl):g.maxTtl),await this.cache.set(a,T,q)}catch(v){s.emit("error",new ia.CacheError(v))}})()):g.cache&&l&&(async()=>{try{await this.cache.delete(a)}catch(v){s.emit("error",new ia.CacheError(v))}})(),s.emit("response",b||y),typeof i=="function"&&i(b||y)};try{let y=e(g,m);y.once("error",h),y.once("abort",h),s.emit("request",y)}catch(y){s.emit("error",new ia.RequestError(y))}};return(async()=>{let g=async h=>{await Promise.resolve();let p=h.cache?await this.cache.get(a):void 0;if(typeof p=="undefined")return u(h);let m=Gk.fromObject(p.cachePolicy);if(m.satisfiesWithoutRevalidation(h)&&!h.forceRefresh){let y=m.responseHeaders(),b=new P8(p.statusCode,y,p.body,p.url);b.cachePolicy=m,b.fromCache=!0,s.emit("response",b),typeof i=="function"&&i(b)}else l=p,h.headers=m.revalidationHeaders(h),u(h)},f=h=>s.emit("error",new ia.CacheError(h));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await g(t)}catch(h){t.automaticFailover&&!c&&u(t),s.emit("error",new ia.CacheError(h))}})(),s}}};function Bxe(r){let e=N({},r);return e.path=`${r.pathname||"/"}${r.search||""}`,delete e.pathname,delete e.search,e}function Yk(r){return{protocol:r.protocol,auth:r.auth,hostname:r.hostname||r.host||"localhost",port:r.port,pathname:r.pathname,search:r.search}}ia.RequestError=class extends Error{constructor(r){super(r.message);this.name="RequestError",Object.assign(this,r)}};ia.CacheError=class extends Error{constructor(r){super(r.message);this.name="CacheError",Object.assign(this,r)}};k8.exports=ia});var F8=w((unt,R8)=>{"use strict";var bxe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];R8.exports=(r,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(r).concat(bxe)),i={};for(let n of t)n in e||(i[n]={get(){let s=r[n];return typeof s=="function"?s.bind(r):s},set(s){r[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),r.once("aborted",()=>{e.destroy(),e.emit("aborted")}),r.once("close",()=>{r.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var L8=w((gnt,N8)=>{"use strict";var{Transform:Qxe,PassThrough:Sxe}=require("stream"),qk=require("zlib"),vxe=F8();N8.exports=r=>{let e=(r.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return r;let t=e==="br";if(t&&typeof qk.createBrotliDecompress!="function")return r.destroy(new Error("Brotli is not supported on Node.js < 12")),r;let i=!0,n=new Qxe({transform(a,l,c){i=!1,c(null,a)},flush(a){a()}}),s=new Sxe({autoDestroy:!1,destroy(a,l){r.destroy(),l(a)}}),o=t?qk.createBrotliDecompress():qk.createUnzip();return o.once("error",a=>{if(i&&!r.readable){s.end();return}s.destroy(a)}),vxe(r,s),r.pipe(n).pipe(o).pipe(s),s}});var Jk=w((fnt,T8)=>{"use strict";var O8=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[i,n]of this.oldCache.entries())this.onEviction(i,n);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(let t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}};T8.exports=O8});var zk=w((hnt,M8)=>{"use strict";var xxe=require("events"),kxe=require("tls"),Pxe=require("http2"),Dxe=Jk(),gn=Symbol("currentStreamsCount"),K8=Symbol("request"),Ls=Symbol("cachedOriginSet"),ef=Symbol("gracefullyClosing"),Rxe=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],Fxe=(r,e,t)=>{let i=0,n=r.length;for(;i>>1;t(r[s],e)?i=s+1:n=s}return i},Nxe=(r,e)=>r.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,Wk=(r,e)=>{for(let t of r)t[Ls].lengthe[Ls].includes(i))&&t[gn]+e[gn]<=e.remoteSettings.maxConcurrentStreams&&U8(t)},Lxe=(r,e)=>{for(let t of r)e[Ls].lengtht[Ls].includes(i))&&e[gn]+t[gn]<=t.remoteSettings.maxConcurrentStreams&&U8(e)},H8=({agent:r,isFree:e})=>{let t={};for(let i in r.sessions){let s=r.sessions[i].filter(o=>{let a=o[nA.kCurrentStreamsCount]{r[ef]=!0,r[gn]===0&&r.close()},nA=class extends xxe{constructor({timeout:e=6e4,maxSessions:t=Infinity,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super();this.sessions={},this.queue={},this.timeout=e,this.maxSessions=t,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new Dxe({maxSize:n})}static normalizeOrigin(e,t){return typeof e=="string"&&(e=new URL(e)),t&&e.hostname!==t&&(e.hostname=t),e.origin}normalizeOptions(e){let t="";if(e)for(let i of Rxe)e[i]&&(t+=`:${e[i]}`);return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e]))return;let i=this.queue[e][t];this._sessionsCount{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(t),a=nA.normalizeOrigin(e,t&&t.servername);if(a===void 0){for(let{reject:u}of i)u(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let u=this.sessions[o],g=-1,f=-1,h;for(let p of u){let m=p.remoteSettings.maxConcurrentStreams;if(m=m||p[ef]||p.destroyed)continue;h||(g=m),y>f&&(h=p,f=y)}}if(h){if(i.length!==1){for(let{reject:p}of i){let m=new Error(`Expected the length of listeners to be 1, got ${i.length}. +Please report this to https://github.com/szmarczak/http2-wrapper/`);p(m)}return}i[0].resolve(h);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let l=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let u=`${a}:${o}`,g=!1;try{let f=Pxe.connect(e,N({createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(u)},t));f[gn]=0,f[ef]=!1;let h=()=>f[gn]{this.tlsSessionCache.set(u,y)}),f.once("error",y=>{for(let{reject:b}of i)b(y);this.tlsSessionCache.delete(u)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(g){p&&this._freeSessionsCount--,this._sessionsCount--;let y=this.sessions[o];y.splice(y.indexOf(f),1),y.length===0&&delete this.sessions[o]}else{let y=new Error("Session closed without receiving a SETTINGS frame");y.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:b}of i)b(y);l()}this._tryToCreateNewSession(o,a)});let m=()=>{if(!(!(o in this.queue)||!h())){for(let y of f[Ls])if(y in this.queue[o]){let{listeners:b}=this.queue[o][y];for(;b.length!==0&&h();)b.shift().resolve(f);let v=this.queue[o];if(v[y].listeners.length===0&&(delete v[y],Object.keys(v).length===0)){delete this.queue[o];break}if(!h())break}}};f.on("origin",()=>{f[Ls]=f.originSet,!!h()&&(m(),Wk(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let y=new Error("Agent has been destroyed");for(let b of i)b.reject(y);f.destroy();return}f[Ls]=f.originSet;{let y=this.sessions;if(o in y){let b=y[o];b.splice(Fxe(b,f,Nxe),0,f)}else y[o]=[f]}this._freeSessionsCount+=1,g=!0,this.emit("session",f),m(),l(),f[gn]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,t,i),i.length=0),f.on("remoteSettings",()=>{m(),Wk(this.sessions[o],f)})}),f[K8]=f.request,f.request=(y,b)=>{if(f[ef])throw new Error("The session is gracefully closing. No new streams are allowed.");let v=f[K8](y,b);return f.ref(),++f[gn],f[gn]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,v.once("close",()=>{if(p=h(),--f[gn],!f.destroyed&&!f.closed&&(Lxe(this.sessions[o],f),h()&&!f.closed)){p||(this._freeSessionsCount++,p=!0);let x=f[gn]===0;x&&f.unref(),x&&(this._freeSessionsCount>this.maxFreeSessions||f[ef])?f.close():(Wk(this.sessions[o],f),m())}}),v}}catch(f){for(let h of i)h.reject(f);l()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,t,i,n){return new Promise((s,o)=>{this.getSession(e,t,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(l){o(l)}}}])})}createConnection(e,t){return nA.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof t.servername=="undefined"&&(t.servername=n),kxe.connect(i,n,t)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let t of e)t[gn]===0&&t.close()}destroy(e){for(let t of Object.values(this.sessions))for(let i of t)i.destroy(e);for(let t of Object.values(this.queue))for(let i of Object.values(t))i.destroyed=!0;this.queue={}}get freeSessions(){return H8({agent:this,isFree:!0})}get busySessions(){return H8({agent:this,isFree:!1})}};nA.kCurrentStreamsCount=gn;nA.kGracefullyClosing=ef;M8.exports={Agent:nA,globalAgent:new nA}});var _k=w((pnt,j8)=>{"use strict";var{Readable:Txe}=require("stream"),G8=class extends Txe{constructor(e,t){super({highWaterMark:t,autoDestroy:!1});this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){return this.req.setTimeout(e,t),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};j8.exports=G8});var Vk=w((dnt,Y8)=>{"use strict";Y8.exports=r=>{let e={protocol:r.protocol,hostname:typeof r.hostname=="string"&&r.hostname.startsWith("[")?r.hostname.slice(1,-1):r.hostname,host:r.host,hash:r.hash,search:r.search,pathname:r.pathname,href:r.href,path:`${r.pathname||""}${r.search||""}`};return typeof r.port=="string"&&r.port.length!==0&&(e.port=Number(r.port)),(r.username||r.password)&&(e.auth=`${r.username||""}:${r.password||""}`),e}});var J8=w((Cnt,q8)=>{"use strict";q8.exports=(r,e,t)=>{for(let i of t)r.on(i,(...n)=>e.emit(i,...n))}});var z8=w((mnt,W8)=>{"use strict";W8.exports=r=>{switch(r){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var V8=w((Int,_8)=>{"use strict";var tf=(r,e,t)=>{_8.exports[e]=class extends r{constructor(...n){super(typeof t=="string"?t:t(n));this.name=`${super.name} [${e}]`,this.code=e}}};tf(TypeError,"ERR_INVALID_ARG_TYPE",r=>{let e=r[0].includes(".")?"property":"argument",t=r[1],i=Array.isArray(t);return i&&(t=`${t.slice(0,-1).join(", ")} or ${t.slice(-1)}`),`The "${r[0]}" ${e} must be ${i?"one of":"of"} type ${t}. Received ${typeof r[2]}`});tf(TypeError,"ERR_INVALID_PROTOCOL",r=>`Protocol "${r[0]}" not supported. Expected "${r[1]}"`);tf(Error,"ERR_HTTP_HEADERS_SENT",r=>`Cannot ${r[0]} headers after they are sent to the client`);tf(TypeError,"ERR_INVALID_HTTP_TOKEN",r=>`${r[0]} must be a valid HTTP token [${r[1]}]`);tf(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",r=>`Invalid value "${r[0]} for header "${r[1]}"`);tf(TypeError,"ERR_INVALID_CHAR",r=>`Invalid character in ${r[0]} [${r[1]}]`)});var eP=w((ynt,X8)=>{"use strict";var Oxe=require("http2"),{Writable:Mxe}=require("stream"),{Agent:Z8,globalAgent:Kxe}=zk(),Uxe=_k(),Hxe=Vk(),jxe=J8(),Gxe=z8(),{ERR_INVALID_ARG_TYPE:Xk,ERR_INVALID_PROTOCOL:Yxe,ERR_HTTP_HEADERS_SENT:$8,ERR_INVALID_HTTP_TOKEN:qxe,ERR_HTTP_INVALID_HEADER_VALUE:Jxe,ERR_INVALID_CHAR:Wxe}=V8(),{HTTP2_HEADER_STATUS:ez,HTTP2_HEADER_METHOD:tz,HTTP2_HEADER_PATH:rz,HTTP2_METHOD_CONNECT:zxe}=Oxe.constants,Wi=Symbol("headers"),Zk=Symbol("origin"),$k=Symbol("session"),iz=Symbol("options"),kw=Symbol("flushedHeaders"),Pd=Symbol("jobs"),_xe=/^[\^`\-\w!#$%&*+.|~]+$/,Vxe=/[^\t\u0020-\u007E\u0080-\u00FF]/,nz=class extends Mxe{constructor(e,t,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=Hxe(e instanceof URL?e:new URL(e))),typeof t=="function"||t===void 0?(i=t,t=n?e:N({},e)):t=N(N({},e),t),t.h2session)this[$k]=t.h2session;else if(t.agent===!1)this.agent=new Z8({maxFreeSessions:0});else if(typeof t.agent=="undefined"||t.agent===null)typeof t.createConnection=="function"?(this.agent=new Z8({maxFreeSessions:0}),this.agent.createConnection=t.createConnection):this.agent=Kxe;else if(typeof t.agent.request=="function")this.agent=t.agent;else throw new Xk("options.agent",["Agent-like Object","undefined","false"],t.agent);if(t.protocol&&t.protocol!=="https:")throw new Yxe(t.protocol,"https:");let s=t.port||t.defaultPort||this.agent&&this.agent.defaultPort||443,o=t.hostname||t.host||"localhost";delete t.hostname,delete t.host,delete t.port;let{timeout:a}=t;if(t.timeout=void 0,this[Wi]=Object.create(null),this[Pd]=[],this.socket=null,this.connection=null,this.method=t.method||"GET",this.path=t.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,t.headers)for(let[l,c]of Object.entries(t.headers))this.setHeader(l,c);t.auth&&!("authorization"in this[Wi])&&(this[Wi].authorization="Basic "+Buffer.from(t.auth).toString("base64")),t.session=t.tlsSession,t.path=t.socketPath,this[iz]=t,s===443?(this[Zk]=`https://${o}`,":authority"in this[Wi]||(this[Wi][":authority"]=o)):(this[Zk]=`https://${o}:${s}`,":authority"in this[Wi]||(this[Wi][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[kw]=!1}get method(){return this[Wi][tz]}set method(e){e&&(this[Wi][tz]=e.toUpperCase())}get path(){return this[Wi][rz]}set path(e){e&&(this[Wi][rz]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,t,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,t,i);this._request?n():this[Pd].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let t=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?t():this[Pd].push(t)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,t){this.res&&this.res._dump(),this._request&&this._request.destroy(),t(e)}async flushHeaders(){if(this[kw]||this.destroyed)return;this[kw]=!0;let e=this.method===zxe,t=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||jxe(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,l)=>{let c=new Uxe(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[ez],c.headers=o,c.rawHeaders=l,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),e?(c.upgrade=!0,this.emit("connect",c,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",u=>{!c._dumped&&!c.push(u)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[ez]}))),i.once("trailers",n((o,a,l)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=l}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[Pd])o();this.emit("socket",this.socket)};if(this[$k])try{t(this[$k].request(this[Wi]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{t(await this.agent.request(this[Zk],this[iz],this[Wi]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new Xk("name","string",e);return this[Wi][e.toLowerCase()]}get headersSent(){return this[kw]}removeHeader(e){if(typeof e!="string")throw new Xk("name","string",e);if(this.headersSent)throw new $8("remove");delete this[Wi][e.toLowerCase()]}setHeader(e,t){if(this.headersSent)throw new $8("set");if(typeof e!="string"||!_xe.test(e)&&!Gxe(e))throw new qxe("Header name",e);if(typeof t=="undefined")throw new Jxe(t,e);if(Vxe.test(t))throw new Wxe("header content",e);this[Wi][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){let i=()=>this._request.setTimeout(e,t);return this._request?i():this[Pd].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};X8.exports=nz});var oz=w((wnt,sz)=>{"use strict";var Xxe=require("tls");sz.exports=(r={})=>new Promise((e,t)=>{let i=Xxe.connect(r,()=>{r.resolveSocket?(i.off("error",t),e({alpnProtocol:i.alpnProtocol,socket:i})):(i.destroy(),e({alpnProtocol:i.alpnProtocol}))});i.on("error",t)})});var Az=w((Bnt,az)=>{"use strict";var Zxe=require("net");az.exports=r=>{let e=r.host,t=r.headers&&r.headers.host;return t&&(t.startsWith("[")?t.indexOf("]")===-1?e=t:e=t.slice(1,-1):e=t.split(":",1)[0]),Zxe.isIP(e)?"":e}});var uz=w((bnt,tP)=>{"use strict";var lz=require("http"),rP=require("https"),$xe=oz(),eke=Jk(),tke=eP(),rke=Az(),ike=Vk(),Pw=new eke({maxSize:100}),Dd=new Map,cz=(r,e,t)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{r.emit("free",e,t)};e.on("free",i);let n=()=>{r.removeSocket(e,t)};e.on("close",n);let s=()=>{r.removeSocket(e,t),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),r.emit("free",e,t)},nke=async r=>{let e=`${r.host}:${r.port}:${r.ALPNProtocols.sort()}`;if(!Pw.has(e)){if(Dd.has(e))return(await Dd.get(e)).alpnProtocol;let{path:t,agent:i}=r;r.path=r.socketPath;let n=$xe(r);Dd.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Pw.set(e,o),r.path=t,o==="h2")s.destroy();else{let{globalAgent:a}=rP,l=rP.Agent.prototype.createConnection;i?i.createConnection===l?cz(i,s,r):s.destroy():a.createConnection===l?cz(a,s,r):s.destroy()}return Dd.delete(e),o}catch(s){throw Dd.delete(e),s}}return Pw.get(e)};tP.exports=async(r,e,t)=>{if((typeof r=="string"||r instanceof URL)&&(r=ike(new URL(r))),typeof e=="function"&&(t=e,e=void 0),e=te(N(N({ALPNProtocols:["h2","http/1.1"]},r),e),{resolveSocket:!0}),!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||rke(e),e.port=e.port||(i?443:80),e._defaultAgent=i?rP.globalAgent:lz.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await nke(e)==="h2"?(n&&(e.agent=n.http2),new tke(e,t)):lz.request(e,t)};tP.exports.protocolCache=Pw});var fz=w((Qnt,gz)=>{"use strict";var ske=require("http2"),oke=zk(),iP=eP(),ake=_k(),Ake=uz(),lke=(r,e,t)=>new iP(r,e,t),cke=(r,e,t)=>{let i=new iP(r,e,t);return i.end(),i};gz.exports=te(N(te(N({},ske),{ClientRequest:iP,IncomingMessage:ake}),oke),{request:lke,get:cke,auto:Ake})});var sP=w(nP=>{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});var hz=iA();nP.default=r=>hz.default.nodeStream(r)&&hz.default.function_(r.getBoundary)});var mz=w(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0});var pz=require("fs"),dz=require("util"),Cz=iA(),uke=sP(),gke=dz.promisify(pz.stat);oP.default=async(r,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!r)return 0;if(Cz.default.string(r))return Buffer.byteLength(r);if(Cz.default.buffer(r))return r.length;if(uke.default(r))return dz.promisify(r.getLength.bind(r))();if(r instanceof pz.ReadStream){let{size:t}=await gke(r.path);return t===0?void 0:t}}});var AP=w(aP=>{"use strict";Object.defineProperty(aP,"__esModule",{value:!0});function fke(r,e,t){let i={};for(let n of t)i[n]=(...s)=>{e.emit(n,...s)},r.on(n,i[n]);return()=>{for(let n of t)r.off(n,i[n])}}aP.default=fke});var Ez=w(lP=>{"use strict";Object.defineProperty(lP,"__esModule",{value:!0});lP.default=()=>{let r=[];return{once(e,t,i){e.once(t,i),r.push({origin:e,event:t,fn:i})},unhandleAll(){for(let e of r){let{origin:t,event:i,fn:n}=e;t.removeListener(i,n)}r.length=0}}}});var yz=w(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.TimeoutError=void 0;var hke=require("net"),pke=Ez(),Iz=Symbol("reentry"),dke=()=>{},cP=class extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.event=t,this.name="TimeoutError",this.code="ETIMEDOUT"}};Rd.TimeoutError=cP;Rd.default=(r,e,t)=>{if(Iz in r)return dke;r[Iz]=!0;let i=[],{once:n,unhandleAll:s}=pke.default(),o=(g,f,h)=>{var p;let m=setTimeout(f,g,g,h);(p=m.unref)===null||p===void 0||p.call(m);let y=()=>{clearTimeout(m)};return i.push(y),y},{host:a,hostname:l}=t,c=(g,f)=>{r.destroy(new cP(g,f))},u=()=>{for(let g of i)g();s()};if(r.once("error",g=>{if(u(),r.listenerCount("error")===0)throw g}),r.once("close",u),n(r,"response",g=>{n(g,"end",u)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let g=()=>{c(e.socket,"socket")};r.setTimeout(e.socket,g),i.push(()=>{r.removeListener("timeout",g)})}return n(r,"socket",g=>{var f;let{socketPath:h}=r;if(g.connecting){let p=Boolean(h!=null?h:hke.isIP((f=l!=null?l:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!p&&typeof g.address().address=="undefined"){let m=o(e.lookup,c,"lookup");n(g,"lookup",m)}if(typeof e.connect!="undefined"){let m=()=>o(e.connect,c,"connect");p?n(g,"connect",m()):n(g,"lookup",y=>{y===null&&n(g,"connect",m())})}typeof e.secureConnect!="undefined"&&t.protocol==="https:"&&n(g,"connect",()=>{let m=o(e.secureConnect,c,"secureConnect");n(g,"secureConnect",m)})}if(typeof e.send!="undefined"){let p=()=>o(e.send,c,"send");g.connecting?n(g,"connect",()=>{n(r,"upload-complete",p())}):n(r,"upload-complete",p())}}),typeof e.response!="undefined"&&n(r,"upload-complete",()=>{let g=o(e.response,c,"response");n(r,"response",g)}),u}});var Bz=w(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});var wz=iA();uP.default=r=>{r=r;let e={protocol:r.protocol,hostname:wz.default.string(r.hostname)&&r.hostname.startsWith("[")?r.hostname.slice(1,-1):r.hostname,host:r.host,hash:r.hash,search:r.search,pathname:r.pathname,href:r.href,path:`${r.pathname||""}${r.search||""}`};return wz.default.string(r.port)&&r.port.length>0&&(e.port=Number(r.port)),(r.username||r.password)&&(e.auth=`${r.username||""}:${r.password||""}`),e}});var bz=w(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});var Cke=require("url"),mke=["protocol","host","hostname","port","pathname","search"];gP.default=(r,e)=>{var t,i;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!r){if(!e.protocol)throw new TypeError("No URL protocol specified");r=`${e.protocol}//${(i=(t=e.hostname)!==null&&t!==void 0?t:e.host)!==null&&i!==void 0?i:""}`}let n=new Cke.URL(r);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of mke)e[s]&&(n[s]=e[s].toString());return n}});var Sz=w(fP=>{"use strict";Object.defineProperty(fP,"__esModule",{value:!0});var Qz=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,t){typeof e=="object"?this.weakMap.set(e,t):this.map.set(e,t)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};fP.default=Qz});var pP=w(hP=>{"use strict";Object.defineProperty(hP,"__esModule",{value:!0});var Eke=async r=>{let e=[],t=0;for await(let i of r)e.push(i),t+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,t):Buffer.from(e.join(""))};hP.default=Eke});var xz=w(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.dnsLookupIpVersionToFamily=Vc.isDnsLookupIpVersion=void 0;var vz={auto:0,ipv4:4,ipv6:6};Vc.isDnsLookupIpVersion=r=>r in vz;Vc.dnsLookupIpVersionToFamily=r=>{if(Vc.isDnsLookupIpVersion(r))return vz[r];throw new Error("Invalid DNS lookup IP version")}});var dP=w(Dw=>{"use strict";Object.defineProperty(Dw,"__esModule",{value:!0});Dw.isResponseOk=void 0;Dw.isResponseOk=r=>{let{statusCode:e}=r,t=r.request.options.followRedirect?299:399;return e>=200&&e<=t||e===304}});var Pz=w(CP=>{"use strict";Object.defineProperty(CP,"__esModule",{value:!0});var kz=new Set;CP.default=r=>{kz.has(r)||(kz.add(r),process.emitWarning(`Got: ${r}`,{type:"DeprecationWarning"}))}});var Dz=w(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});var Ir=iA(),Ike=(r,e)=>{if(Ir.default.null_(r.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Ir.assert.any([Ir.default.string,Ir.default.undefined],r.encoding),Ir.assert.any([Ir.default.boolean,Ir.default.undefined],r.resolveBodyOnly),Ir.assert.any([Ir.default.boolean,Ir.default.undefined],r.methodRewriting),Ir.assert.any([Ir.default.boolean,Ir.default.undefined],r.isStream),Ir.assert.any([Ir.default.string,Ir.default.undefined],r.responseType),r.responseType===void 0&&(r.responseType="text");let{retry:t}=r;if(e?r.retry=N({},e.retry):r.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Ir.default.object(t)?(r.retry=N(N({},r.retry),t),r.retry.methods=[...new Set(r.retry.methods.map(i=>i.toUpperCase()))],r.retry.statusCodes=[...new Set(r.retry.statusCodes)],r.retry.errorCodes=[...new Set(r.retry.errorCodes)]):Ir.default.number(t)&&(r.retry.limit=t),Ir.default.undefined(r.retry.maxRetryAfter)&&(r.retry.maxRetryAfter=Math.min(...[r.timeout.request,r.timeout.connect].filter(Ir.default.number))),Ir.default.object(r.pagination)){e&&(r.pagination=N(N({},e.pagination),r.pagination));let{pagination:i}=r;if(!Ir.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Ir.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Ir.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Ir.default.function_(i.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return r.responseType==="json"&&r.headers.accept===void 0&&(r.headers.accept="application/json"),r};mP.default=Ike});var Rz=w(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.retryAfterStatusCodes=void 0;Fd.retryAfterStatusCodes=new Set([413,429,503]);var yke=({attemptCount:r,retryOptions:e,error:t,retryAfter:i})=>{if(r>e.limit)return 0;let n=e.methods.includes(t.options.method),s=e.errorCodes.includes(t.code),o=t.response&&e.statusCodes.includes(t.response.statusCode);if(!n||!s&&!o)return 0;if(t.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(t.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(r-1)*1e3+a};Fd.default=yke});var Ld=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.UnsupportedProtocolError=qt.ReadError=qt.TimeoutError=qt.UploadError=qt.CacheError=qt.HTTPError=qt.MaxRedirectsError=qt.RequestError=qt.setNonEnumerableProperties=qt.knownHookEvents=qt.withoutBody=qt.kIsNormalizedAlready=void 0;var Fz=require("util"),Nz=require("stream"),wke=require("fs"),gl=require("url"),Lz=require("http"),EP=require("http"),Bke=require("https"),bke=Y4(),Qke=X4(),Tz=D8(),Ske=L8(),vke=fz(),xke=vw(),Ee=iA(),kke=mz(),Oz=sP(),Pke=AP(),Mz=yz(),Dke=Bz(),Kz=bz(),Rke=Sz(),Fke=pP(),Uz=xz(),Nke=dP(),fl=Pz(),Lke=Dz(),Tke=Rz(),IP,Fi=Symbol("request"),Rw=Symbol("response"),rf=Symbol("responseSize"),nf=Symbol("downloadedSize"),sf=Symbol("bodySize"),of=Symbol("uploadedSize"),Fw=Symbol("serverResponsesPiped"),Hz=Symbol("unproxyEvents"),jz=Symbol("isFromCache"),yP=Symbol("cancelTimeouts"),Gz=Symbol("startedReading"),af=Symbol("stopReading"),Nw=Symbol("triggerRead"),hl=Symbol("body"),Nd=Symbol("jobs"),Yz=Symbol("originalResponse"),qz=Symbol("retryTimeout");qt.kIsNormalizedAlready=Symbol("isNormalizedAlready");var Oke=Ee.default.string(process.versions.brotli);qt.withoutBody=new Set(["GET","HEAD"]);qt.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function Mke(r){for(let e in r){let t=r[e];if(!Ee.default.string(t)&&!Ee.default.number(t)&&!Ee.default.boolean(t)&&!Ee.default.null_(t)&&!Ee.default.undefined(t))throw new TypeError(`The \`searchParams\` value '${String(t)}' must be a string, number, boolean or null`)}}function Kke(r){return Ee.default.object(r)&&!("statusCode"in r)}var wP=new Rke.default,Uke=async r=>new Promise((e,t)=>{let i=n=>{t(n)};r.pending||e(),r.once("error",i),r.once("ready",()=>{r.off("error",i),e()})}),Hke=new Set([300,301,302,303,304,307,308]),jke=["context","body","json","form"];qt.setNonEnumerableProperties=(r,e)=>{let t={};for(let i of r)if(!!i)for(let n of jke)n in i&&(t[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,t)};var hi=class extends Error{constructor(e,t,i){var n;super(e);if(Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=t.code,i instanceof BP?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[Rw]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(n=this.request)===null||n===void 0?void 0:n.timings,Ee.default.string(t.stack)&&Ee.default.string(this.stack)){let s=this.stack.indexOf(this.message)+this.message.length,o=this.stack.slice(s).split(` +`).reverse(),a=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split(` +`).reverse();for(;a.length!==0&&a[0]===o[0];)o.shift();this.stack=`${this.stack.slice(0,s)}${o.reverse().join(` +`)}${a.reverse().join(` +`)}`}}};qt.RequestError=hi;var bP=class extends hi{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e);this.name="MaxRedirectsError"}};qt.MaxRedirectsError=bP;var QP=class extends hi{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request);this.name="HTTPError"}};qt.HTTPError=QP;var SP=class extends hi{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};qt.CacheError=SP;var vP=class extends hi{constructor(e,t){super(e.message,e,t);this.name="UploadError"}};qt.UploadError=vP;var xP=class extends hi{constructor(e,t,i){super(e.message,e,i);this.name="TimeoutError",this.event=e.event,this.timings=t}};qt.TimeoutError=xP;var Lw=class extends hi{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};qt.ReadError=Lw;var kP=class extends hi{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};qt.UnsupportedProtocolError=kP;var Gke=["socket","connect","continue","information","upgrade","timeout"],BP=class extends Nz.Duplex{constructor(e,t={},i){super({autoDestroy:!1,highWaterMark:0});this[nf]=0,this[of]=0,this.requestInitialized=!1,this[Fw]=new Set,this.redirects=[],this[af]=!1,this[Nw]=!1,this[Nd]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof EP.IncomingMessage&&(this.options.headers=N(N({},c.headers),this.options.headers))});let{json:o,body:a,form:l}=t;if((o||a||l)&&this._lockWrite(),qt.kIsNormalizedAlready in t)this.options=t;else try{this.options=this.constructor.normalizeArguments(e,t,i)}catch(c){Ee.default.nodeStream(t.body)&&t.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof wke.ReadStream&&await Uke(this.options.body);let{url:u}=this.options;if(!u)throw new TypeError("Missing `url` property");if(this.requestUrl=u.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Fi])===null||c===void 0||c.destroy();return}for(let g of this[Nd])g();this[Nd].length=0,this.requestInitialized=!0}catch(u){if(u instanceof hi){this._beforeError(u);return}this.destroyed||this.destroy(u)}})()}static normalizeArguments(e,t,i){var n,s,o,a,l;let c=t;if(Ee.default.object(e)&&!Ee.default.urlInstance(e))t=N(N(N({},i),e),t);else{if(e&&t&&t.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");t=N(N({},i),t),e!==void 0&&(t.url=e),Ee.default.urlInstance(t.url)&&(t.url=new gl.URL(t.url.toString()))}if(t.cache===!1&&(t.cache=void 0),t.dnsCache===!1&&(t.dnsCache=void 0),Ee.assert.any([Ee.default.string,Ee.default.undefined],t.method),Ee.assert.any([Ee.default.object,Ee.default.undefined],t.headers),Ee.assert.any([Ee.default.string,Ee.default.urlInstance,Ee.default.undefined],t.prefixUrl),Ee.assert.any([Ee.default.object,Ee.default.undefined],t.cookieJar),Ee.assert.any([Ee.default.object,Ee.default.string,Ee.default.undefined],t.searchParams),Ee.assert.any([Ee.default.object,Ee.default.string,Ee.default.undefined],t.cache),Ee.assert.any([Ee.default.object,Ee.default.number,Ee.default.undefined],t.timeout),Ee.assert.any([Ee.default.object,Ee.default.undefined],t.context),Ee.assert.any([Ee.default.object,Ee.default.undefined],t.hooks),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.decompress),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.ignoreInvalidCookies),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.followRedirect),Ee.assert.any([Ee.default.number,Ee.default.undefined],t.maxRedirects),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.throwHttpErrors),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.http2),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.allowGetBody),Ee.assert.any([Ee.default.string,Ee.default.undefined],t.localAddress),Ee.assert.any([Uz.isDnsLookupIpVersion,Ee.default.undefined],t.dnsLookupIpVersion),Ee.assert.any([Ee.default.object,Ee.default.undefined],t.https),Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.rejectUnauthorized),t.https&&(Ee.assert.any([Ee.default.boolean,Ee.default.undefined],t.https.rejectUnauthorized),Ee.assert.any([Ee.default.function_,Ee.default.undefined],t.https.checkServerIdentity),Ee.assert.any([Ee.default.string,Ee.default.object,Ee.default.array,Ee.default.undefined],t.https.certificateAuthority),Ee.assert.any([Ee.default.string,Ee.default.object,Ee.default.array,Ee.default.undefined],t.https.key),Ee.assert.any([Ee.default.string,Ee.default.object,Ee.default.array,Ee.default.undefined],t.https.certificate),Ee.assert.any([Ee.default.string,Ee.default.undefined],t.https.passphrase),Ee.assert.any([Ee.default.string,Ee.default.buffer,Ee.default.array,Ee.default.undefined],t.https.pfx)),Ee.assert.any([Ee.default.object,Ee.default.undefined],t.cacheOptions),Ee.default.string(t.method)?t.method=t.method.toUpperCase():t.method="GET",t.headers===(i==null?void 0:i.headers)?t.headers=N({},t.headers):t.headers=xke(N(N({},i==null?void 0:i.headers),t.headers)),"slashes"in t)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in t)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in t&&t.searchParams&&t.searchParams!==(i==null?void 0:i.searchParams)){let h;if(Ee.default.string(t.searchParams)||t.searchParams instanceof gl.URLSearchParams)h=new gl.URLSearchParams(t.searchParams);else{Mke(t.searchParams),h=new gl.URLSearchParams;for(let p in t.searchParams){let m=t.searchParams[p];m===null?h.append(p,""):m!==void 0&&h.append(p,m)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((p,m)=>{h.has(m)||h.append(m,p)}),t.searchParams=h}if(t.username=(s=t.username)!==null&&s!==void 0?s:"",t.password=(o=t.password)!==null&&o!==void 0?o:"",Ee.default.undefined(t.prefixUrl)?t.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(t.prefixUrl=t.prefixUrl.toString(),t.prefixUrl!==""&&!t.prefixUrl.endsWith("/")&&(t.prefixUrl+="/")),Ee.default.string(t.url)){if(t.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");t.url=Kz.default(t.prefixUrl+t.url,t)}else(Ee.default.undefined(t.url)&&t.prefixUrl!==""||t.protocol)&&(t.url=Kz.default(t.prefixUrl,t));if(t.url){"port"in t&&delete t.port;let{prefixUrl:h}=t;Object.defineProperty(t,"prefixUrl",{set:m=>{let y=t.url;if(!y.href.startsWith(m))throw new Error(`Cannot change \`prefixUrl\` from ${h} to ${m}: ${y.href}`);t.url=new gl.URL(m+y.href.slice(h.length)),h=m},get:()=>h});let{protocol:p}=t.url;if(p==="unix:"&&(p="http:",t.url=new gl.URL(`http://unix${t.url.pathname}${t.url.search}`)),t.searchParams&&(t.url.search=t.searchParams.toString()),p!=="http:"&&p!=="https:")throw new kP(t);t.username===""?t.username=t.url.username:t.url.username=t.username,t.password===""?t.password=t.url.password:t.url.password=t.password}let{cookieJar:u}=t;if(u){let{setCookie:h,getCookieString:p}=u;Ee.assert.function_(h),Ee.assert.function_(p),h.length===4&&p.length===0&&(h=Fz.promisify(h.bind(t.cookieJar)),p=Fz.promisify(p.bind(t.cookieJar)),t.cookieJar={setCookie:h,getCookieString:p})}let{cache:g}=t;if(g&&(wP.has(g)||wP.set(g,new Tz((h,p)=>{let m=h[Fi](h,p);return Ee.default.promise(m)&&(m.once=(y,b)=>{if(y==="error")m.catch(b);else if(y==="abort")(async()=>{try{(await m).once("abort",b)}catch(v){}})();else throw new Error(`Unknown HTTP2 promise event: ${y}`);return m}),m},g))),t.cacheOptions=N({},t.cacheOptions),t.dnsCache===!0)IP||(IP=new Qke.default),t.dnsCache=IP;else if(!Ee.default.undefined(t.dnsCache)&&!t.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Ee.default(t.dnsCache)}`);Ee.default.number(t.timeout)?t.timeout={request:t.timeout}:i&&t.timeout!==i.timeout?t.timeout=N(N({},i.timeout),t.timeout):t.timeout=N({},t.timeout),t.context||(t.context={});let f=t.hooks===(i==null?void 0:i.hooks);t.hooks=N({},t.hooks);for(let h of qt.knownHookEvents)if(h in t.hooks)if(Ee.default.array(t.hooks[h]))t.hooks[h]=[...t.hooks[h]];else throw new TypeError(`Parameter \`${h}\` must be an Array, got ${Ee.default(t.hooks[h])}`);else t.hooks[h]=[];if(i&&!f)for(let h of qt.knownHookEvents)i.hooks[h].length>0&&(t.hooks[h]=[...i.hooks[h],...t.hooks[h]]);if("family"in t&&fl.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),(i==null?void 0:i.https)&&(t.https=N(N({},i.https),t.https)),"rejectUnauthorized"in t&&fl.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in t&&fl.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in t&&fl.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in t&&fl.default('"options.key" was never documented, please use "options.https.key"'),"cert"in t&&fl.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in t&&fl.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in t&&fl.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in t)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(t.agent){for(let h in t.agent)if(h!=="http"&&h!=="https"&&h!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${h}\``)}return t.maxRedirects=(l=t.maxRedirects)!==null&&l!==void 0?l:0,qt.setNonEnumerableProperties([i,c],t),Lke.default(t,i)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:t}=e,i=!Ee.default.undefined(e.form),n=!Ee.default.undefined(e.json),s=!Ee.default.undefined(e.body),o=i||n||s,a=qt.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,i,n].filter(l=>l).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof Nz.Readable)&&!Ee.default.string(e.body)&&!Ee.default.buffer(e.body)&&!Oz.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!Ee.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let l=!Ee.default.string(t["content-type"]);s?(Oz.default(e.body)&&l&&(t["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[hl]=e.body):i?(l&&(t["content-type"]="application/x-www-form-urlencoded"),this[hl]=new gl.URLSearchParams(e.form).toString()):(l&&(t["content-type"]="application/json"),this[hl]=e.stringifyJson(e.json));let c=await kke.default(this[hl],e.headers);Ee.default.undefined(t["content-length"])&&Ee.default.undefined(t["transfer-encoding"])&&!a&&!Ee.default.undefined(c)&&(t["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[sf]=Number(t["content-length"])||void 0}async _onResponseBase(e){let{options:t}=this,{url:i}=t;this[Yz]=e,t.decompress&&(e=Ske(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:Lz.STATUS_CODES[n],s.url=t.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[jz]=s.isFromCache,this[rf]=Number(e.headers["content-length"])||void 0,this[Rw]=e,e.once("end",()=>{this[rf]=this[nf],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Lw(a,this))}),e.once("aborted",()=>{this._beforeError(new Lw({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Ee.default.object(t.cookieJar)&&o){let a=o.map(async l=>t.cookieJar.setCookie(l,i.toString()));t.ignoreInvalidCookies&&(a=a.map(async l=>l.catch(()=>{})));try{await Promise.all(a)}catch(l){this._beforeError(l);return}}if(t.followRedirect&&e.headers.location&&Hke.has(n)){if(e.resume(),this[Fi]&&(this[yP](),delete this[Fi],this[Hz]()),(n===303&&t.method!=="GET"&&t.method!=="HEAD"||!t.methodRewriting)&&(t.method="GET","body"in t&&delete t.body,"json"in t&&delete t.json,"form"in t&&delete t.form,this[hl]=void 0,delete t.headers["content-length"]),this.redirects.length>=t.maxRedirects){this._beforeError(new bP(this));return}try{let l=Buffer.from(e.headers.location,"binary").toString(),c=new gl.URL(l,i),u=c.toString();decodeURI(u),c.hostname!==i.hostname||c.port!==i.port?("host"in t.headers&&delete t.headers.host,"cookie"in t.headers&&delete t.headers.cookie,"authorization"in t.headers&&delete t.headers.authorization,(t.username||t.password)&&(t.username="",t.password="")):(c.username=t.username,c.password=t.password),this.redirects.push(u),t.url=c;for(let g of t.hooks.beforeRedirect)await g(t,s);this.emit("redirect",s,t),await this._makeRequest()}catch(l){this._beforeError(l);return}return}if(t.isStream&&t.throwHttpErrors&&!Nke.isResponseOk(s)){this._beforeError(new QP(s));return}e.on("readable",()=>{this[Nw]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Fw])if(!a.headersSent){for(let l in e.headers){let c=t.decompress?l!=="content-encoding":!0,u=e.headers[l];c&&a.setHeader(l,u)}a.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(t){this._beforeError(t)}}_onRequest(e){let{options:t}=this,{timeout:i,url:n}=t;bke.default(e),this[yP]=Mz.default(e,i,n);let s=t.cache?"cacheableResponse":"response";e.once(s,l=>{this._onResponse(l)}),e.once("error",l=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),l=l instanceof Mz.TimeoutError?new xP(l,this.timings,this):new hi(l.message,l,this),this._beforeError(l)}),this[Hz]=Pke.default(e,this,Gke),this[Fi]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[hl],a=this.redirects.length===0?this:e;Ee.default.nodeStream(o)?(o.pipe(a),o.once("error",l=>{this._beforeError(new vP(l,this))})):(this._unlockWrite(),Ee.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise((i,n)=>{Object.assign(t,Dke.default(e)),delete t.url;let s,o=wP.get(t.cache)(t,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});t.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,t,i,n,s;let{options:o}=this,{headers:a}=o;for(let b in a)if(Ee.default.undefined(a[b]))delete a[b];else if(Ee.default.null_(a[b]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${b}\` header`);if(o.decompress&&Ee.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=Oke?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let b=await o.cookieJar.getCookieString(o.url.toString());Ee.default.nonEmptyString(b)&&(o.headers.cookie=b)}for(let b of o.hooks.beforeRequest){let v=await b(o);if(!Ee.default.undefined(v)){o.request=()=>v;break}}o.body&&this[hl]!==o.body&&(this[hl]=o.body);let{agent:l,request:c,timeout:u,url:g}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),g.hostname==="unix"){let b=/(?.+?):(?.+)/.exec(`${g.pathname}${g.search}`);if(b==null?void 0:b.groups){let{socketPath:v,path:x}=b.groups;Object.assign(o,{socketPath:v,path:x,host:""})}}let f=g.protocol==="https:",h;o.http2?h=vke.auto:h=f?Bke.request:Lz.request;let p=(e=o.request)!==null&&e!==void 0?e:h,m=o.cache?this._createCacheableRequest:p;l&&!o.http2&&(o.agent=l[f?"https":"http"]),o[Fi]=p,delete o.request,delete o.timeout;let y=o;if(y.shared=(t=o.cacheOptions)===null||t===void 0?void 0:t.shared,y.cacheHeuristic=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,y.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,y.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{y.family=Uz.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch(b){throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(y.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(y.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(y.ca=o.https.certificateAuthority),o.https.certificate&&(y.cert=o.https.certificate),o.https.key&&(y.key=o.https.key),o.https.passphrase&&(y.passphrase=o.https.passphrase),o.https.pfx&&(y.pfx=o.https.pfx));try{let b=await m(g,y);Ee.default.undefined(b)&&(b=h(g,y)),o.request=c,o.timeout=u,o.agent=l,o.https&&("rejectUnauthorized"in o.https&&delete y.rejectUnauthorized,o.https.checkServerIdentity&&delete y.checkServerIdentity,o.https.certificateAuthority&&delete y.ca,o.https.certificate&&delete y.cert,o.https.key&&delete y.key,o.https.passphrase&&delete y.passphrase,o.https.pfx&&delete y.pfx),Kke(b)?this._onRequest(b):this.writable?(this.once("finish",()=>{this._onResponse(b)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(b)}catch(b){throw b instanceof Tz.CacheError?new SP(b,this):new hi(b.message,b,this)}}async _error(e){try{for(let t of this.options.hooks.beforeError)e=await t(e)}catch(t){e=new hi(t.message,t,this)}this.destroy(e)}_beforeError(e){if(this[af])return;let{options:t}=this,i=this.retryCount+1;this[af]=!0,e instanceof hi||(e=new hi(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await Fke.default(s),s.body=s.rawBody.toString()}catch(o){}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await t.retry.calculateDelay({attemptCount:i,retryOptions:t.retry,error:n,retryAfter:a,computedValue:Tke.default({attemptCount:i,retryOptions:t.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new hi(a.message,a,this));return}if(o){let a=async()=>{try{for(let l of this.options.hooks.beforeRetry)await l(this.options,n,i)}catch(l){this._error(new hi(l.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[qz]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Nw]=!0;let e=this[Rw];if(e&&!this[af]){e.readableLength&&(this[Nw]=!1);let t;for(;(t=e.read())!==null;){this[nf]+=t.length,this[Gz]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(t)}}}_write(e,t,i){let n=()=>{this._writeRequest(e,t,i)};this.requestInitialized?n():this[Nd].push(n)}_writeRequest(e,t,i){this[Fi].destroyed||(this._progressCallbacks.push(()=>{this[of]+=Buffer.byteLength(e,t);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Fi].write(e,t,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let t=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Fi in this)){e();return}if(this[Fi].destroyed){e();return}this[Fi].end(i=>{i||(this[sf]=this[of],this.emit("uploadProgress",this.uploadProgress),this[Fi].emit("upload-complete")),e(i)})};this.requestInitialized?t():this[Nd].push(t)}_destroy(e,t){var i;this[af]=!0,clearTimeout(this[qz]),Fi in this&&(this[yP](),((i=this[Rw])===null||i===void 0?void 0:i.complete)||this[Fi].destroy()),e!==null&&!Ee.default.undefined(e)&&!(e instanceof hi)&&(e=new hi(e.message,e,this)),t(e)}get _isAboutToError(){return this[af]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,t,i;return((t=(e=this[Fi])===null||e===void 0?void 0:e.destroyed)!==null&&t!==void 0?t:this.destroyed)&&!((i=this[Yz])===null||i===void 0?void 0:i.complete)}get socket(){var e,t;return(t=(e=this[Fi])===null||e===void 0?void 0:e.socket)!==null&&t!==void 0?t:void 0}get downloadProgress(){let e;return this[rf]?e=this[nf]/this[rf]:this[rf]===this[nf]?e=1:e=0,{percent:e,transferred:this[nf],total:this[rf]}}get uploadProgress(){let e;return this[sf]?e=this[of]/this[sf]:this[sf]===this[of]?e=1:e=0,{percent:e,transferred:this[of],total:this[sf]}}get timings(){var e;return(e=this[Fi])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[jz]}pipe(e,t){if(this[Gz])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof EP.ServerResponse&&this[Fw].add(e),super.pipe(e,t)}unpipe(e){return e instanceof EP.ServerResponse&&this[Fw].delete(e),super.unpipe(e),this}};qt.default=BP});var Td=w(Co=>{"use strict";var Yke=Co&&Co.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t),Object.defineProperty(r,i,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),qke=Co&&Co.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Yke(e,r,t)};Object.defineProperty(Co,"__esModule",{value:!0});Co.CancelError=Co.ParseError=void 0;var Jz=Ld(),Wz=class extends Jz.RequestError{constructor(e,t){let{options:i}=t.request;super(`${e.message} in "${i.url.toString()}"`,e,t.request);this.name="ParseError"}};Co.ParseError=Wz;var zz=class extends Jz.RequestError{constructor(e){super("Promise was canceled",{},e);this.name="CancelError"}get isCanceled(){return!0}};Co.CancelError=zz;qke(Ld(),Co)});var Vz=w(PP=>{"use strict";Object.defineProperty(PP,"__esModule",{value:!0});var _z=Td(),Jke=(r,e,t,i)=>{let{rawBody:n}=r;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":t(n.toString());if(e==="buffer")return n;throw new _z.ParseError({message:`Unknown body type '${e}'`,name:"Error"},r)}catch(s){throw new _z.ParseError(s,r)}};PP.default=Jke});var DP=w(pl=>{"use strict";var Wke=pl&&pl.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t),Object.defineProperty(r,i,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),zke=pl&&pl.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Wke(e,r,t)};Object.defineProperty(pl,"__esModule",{value:!0});var _ke=require("events"),Vke=iA(),Xke=j4(),Tw=Td(),Xz=Vz(),Zz=Ld(),Zke=AP(),$ke=pP(),$z=dP(),ePe=["request","response","redirect","uploadProgress","downloadProgress"];function e5(r){let e,t,i=new _ke.EventEmitter,n=new Xke((o,a,l)=>{let c=u=>{let g=new Zz.default(void 0,r);g.retryCount=u,g._noPipe=!0,l(()=>g.destroy()),l.shouldReject=!1,l(()=>a(new Tw.CancelError(g))),e=g,g.once("response",async p=>{var m;if(p.retryCount=u,p.request.aborted)return;let y;try{y=await $ke.default(g),p.rawBody=y}catch(T){return}if(g._isAboutToError)return;let b=((m=p.headers["content-encoding"])!==null&&m!==void 0?m:"").toLowerCase(),v=["gzip","deflate","br"].includes(b),{options:x}=g;if(v&&!x.decompress)p.body=y;else try{p.body=Xz.default(p,x.responseType,x.parseJson,x.encoding)}catch(T){if(p.body=y.toString(),$z.isResponseOk(p)){g._beforeError(T);return}}try{for(let[T,q]of x.hooks.afterResponse.entries())p=await q(p,async Y=>{let $=Zz.default.normalizeArguments(void 0,te(N({},Y),{retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1}),x);$.hooks.afterResponse=$.hooks.afterResponse.slice(0,T);for(let ne of $.hooks.beforeRetry)await ne($);let _=e5($);return l(()=>{_.catch(()=>{}),_.cancel()}),_})}catch(T){g._beforeError(new Tw.RequestError(T.message,T,g));return}if(!$z.isResponseOk(p)){g._beforeError(new Tw.HTTPError(p));return}t=p,o(g.options.resolveBodyOnly?p.body:p)});let f=p=>{if(n.isCanceled)return;let{options:m}=g;if(p instanceof Tw.HTTPError&&!m.throwHttpErrors){let{response:y}=p;o(g.options.resolveBodyOnly?y.body:y);return}a(p)};g.once("error",f);let h=g.options.body;g.once("retry",(p,m)=>{var y,b;if(h===((y=m.request)===null||y===void 0?void 0:y.options.body)&&Vke.default.nodeStream((b=m.request)===null||b===void 0?void 0:b.options.body)){f(m);return}c(p)}),Zke.default(g,i,ePe)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:l}=t.request;return Xz.default(t,o,l.parseJson,l.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}pl.default=e5;zke(Td(),pl)});var t5=w(RP=>{"use strict";Object.defineProperty(RP,"__esModule",{value:!0});var tPe=Td();function rPe(r,...e){let t=(async()=>{if(r instanceof tPe.RequestError)try{for(let n of e)if(n)for(let s of n)r=await s(r)}catch(n){r=n}throw r})(),i=()=>t;return t.json=i,t.text=i,t.buffer=i,t.on=i,t}RP.default=rPe});var n5=w(FP=>{"use strict";Object.defineProperty(FP,"__esModule",{value:!0});var r5=iA();function i5(r){for(let e of Object.values(r))(r5.default.plainObject(e)||r5.default.array(e))&&i5(e);return Object.freeze(r)}FP.default=i5});var o5=w(s5=>{"use strict";Object.defineProperty(s5,"__esModule",{value:!0})});var NP=w(Ts=>{"use strict";var iPe=Ts&&Ts.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t),Object.defineProperty(r,i,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),nPe=Ts&&Ts.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&iPe(e,r,t)};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.defaultHandler=void 0;var a5=iA(),Os=DP(),sPe=t5(),Ow=Ld(),oPe=n5(),aPe={RequestError:Os.RequestError,CacheError:Os.CacheError,ReadError:Os.ReadError,HTTPError:Os.HTTPError,MaxRedirectsError:Os.MaxRedirectsError,TimeoutError:Os.TimeoutError,ParseError:Os.ParseError,CancelError:Os.CancelError,UnsupportedProtocolError:Os.UnsupportedProtocolError,UploadError:Os.UploadError},APe=async r=>new Promise(e=>{setTimeout(e,r)}),{normalizeArguments:Mw}=Ow.default,A5=(...r)=>{let e;for(let t of r)e=Mw(void 0,t,e);return e},lPe=r=>r.isStream?new Ow.default(void 0,r):Os.default(r),cPe=r=>"defaults"in r&&"options"in r.defaults,uPe=["get","post","put","patch","head","delete"];Ts.defaultHandler=(r,e)=>e(r);var l5=(r,e)=>{if(r)for(let t of r)t(e)},c5=r=>{r._rawHandlers=r.handlers,r.handlers=r.handlers.map(i=>(n,s)=>{let o,a=i(n,l=>(o=s(l),o));if(a!==o&&!n.isStream&&o){let l=a,{then:c,catch:u,finally:g}=l;Object.setPrototypeOf(l,Object.getPrototypeOf(o)),Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)),l.then=c,l.catch=u,l.finally=g}return a});let e=(i,n={},s)=>{var o,a;let l=0,c=u=>r.handlers[l++](u,l===r.handlers.length?lPe:c);if(a5.default.plainObject(i)){let u=N(N({},i),n);Ow.setNonEnumerableProperties([i,n],u),n=u,i=void 0}try{let u;try{l5(r.options.hooks.init,n),l5((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){u=f}let g=Mw(i,n,s!=null?s:r.options);if(g[Ow.kIsNormalizedAlready]=!0,u)throw new Os.RequestError(u.message,u,g);return c(g)}catch(u){if(n.isStream)throw u;return sPe.default(u,r.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[r.options],s=[...r._rawHandlers],o;for(let a of i)cPe(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Ts.defaultHandler),s.length===0&&s.push(Ts.defaultHandler),c5({options:A5(...n),handlers:s,mutableDefaults:Boolean(o)})};let t=async function*(i,n){let s=Mw(i,n,r.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!a5.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:l}=o,c=0;for(;c{let s=[];for await(let o of t(i,n))s.push(o);return s},e.paginate.each=t,e.stream=(i,n)=>e(i,te(N({},n),{isStream:!0}));for(let i of uPe)e[i]=(n,s)=>e(n,te(N({},s),{method:i})),e.stream[i]=(n,s)=>e(n,te(N({},s),{method:i,isStream:!0}));return Object.assign(e,aPe),Object.defineProperty(e,"defaults",{value:r.mutableDefaults?r:oPe.default(r),writable:r.mutableDefaults,configurable:r.mutableDefaults,enumerable:!0}),e.mergeOptions=A5,e};Ts.default=c5;nPe(o5(),Ts)});var Uw=w((sA,Kw)=>{"use strict";var gPe=sA&&sA.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t),Object.defineProperty(r,i,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),u5=sA&&sA.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&gPe(e,r,t)};Object.defineProperty(sA,"__esModule",{value:!0});var fPe=require("url"),g5=NP(),hPe={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:r})=>r},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:r=>r.request.options.responseType==="json"?r.body:JSON.parse(r.body),paginate:r=>{if(!Reflect.has(r.headers,"link"))return!1;let e=r.headers.link.split(","),t;for(let i of e){let n=i.split(";");if(n[1].includes("next")){t=n[0].trimStart().trim(),t=t.slice(1,-1);break}}return t?{url:new fPe.URL(t)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:Infinity,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:r=>JSON.parse(r),stringifyJson:r=>JSON.stringify(r),cacheOptions:{}},handlers:[g5.defaultHandler],mutableDefaults:!1},LP=g5.default(hPe);sA.default=LP;Kw.exports=LP;Kw.exports.default=LP;Kw.exports.__esModule=!0;u5(NP(),sA);u5(DP(),sA)});var d5=w(Af=>{"use strict";var znt=require("net"),pPe=require("tls"),TP=require("http"),f5=require("https"),dPe=require("events"),_nt=require("assert"),CPe=require("util");Af.httpOverHttp=mPe;Af.httpsOverHttp=EPe;Af.httpOverHttps=IPe;Af.httpsOverHttps=yPe;function mPe(r){var e=new oA(r);return e.request=TP.request,e}function EPe(r){var e=new oA(r);return e.request=TP.request,e.createSocket=h5,e.defaultPort=443,e}function IPe(r){var e=new oA(r);return e.request=f5.request,e}function yPe(r){var e=new oA(r);return e.request=f5.request,e.createSocket=h5,e.defaultPort=443,e}function oA(r){var e=this;e.options=r||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||TP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(var a=p5(n,s,o),l=0,c=e.requests.length;l=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",l),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function l(){s.emit("free",a,o)}function c(u){s.removeSocket(a),a.removeListener("free",l),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};oA.prototype.createSocket=function(e,t){var i=this,n={};i.sockets.push(n);var s=OP({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),dl("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",l),o.once("connect",c),o.once("error",u),o.end();function a(g){g.upgrade=!0}function l(g,f,h){process.nextTick(function(){c(g,f,h)})}function c(g,f,h){if(o.removeAllListeners(),f.removeAllListeners(),g.statusCode!==200){dl("tunneling socket could not be established, statusCode=%d",g.statusCode),f.destroy();var p=new Error("tunneling socket could not be established, statusCode="+g.statusCode);p.code="ECONNRESET",e.request.emit("error",p),i.removeSocket(n);return}if(h.length>0){dl("got illegal response body from proxy"),f.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),i.removeSocket(n);return}return dl("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=f,t(f)}function u(g){o.removeAllListeners(),dl(`tunneling socket could not be established, cause=%s +`,g.message,g.stack);var f=new Error("tunneling socket could not be established, cause="+g.message);f.code="ECONNRESET",e.request.emit("error",f),i.removeSocket(n)}};oA.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function h5(r,e){var t=this;oA.prototype.createSocket.call(t,r,function(i){var n=r.request.getHeader("host"),s=OP({},t.options,{socket:i,servername:n?n.replace(/:.*$/,""):r.host}),o=pPe.connect(0,s);t.sockets[t.sockets.indexOf(i)]=o,e(o)})}function p5(r,e,t){return typeof r=="string"?{host:r,port:e,localAddress:t}:r}function OP(r){for(var e=1,t=arguments.length;e{C5.exports=d5()});var x5=w((Gw,jP)=>{var v5=Object.assign({},require("fs")),GP=function(){var r=typeof document!="undefined"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename!="undefined"&&(r=r||__filename),function(e){e=e||{};var t=typeof e!="undefined"?e:{},i,n;t.ready=new Promise(function(d,E){i=d,n=E});var s={},o;for(o in t)t.hasOwnProperty(o)&&(s[o]=t[o]);var a=[],l="./this.program",c=function(d,E){throw E},u=!1,g=!0,f="";function h(d){return t.locateFile?t.locateFile(d,f):f+d}var p,m,y,b;g&&(u?f=require("path").dirname(f)+"/":f=__dirname+"/",p=function(E,I){var D=xa(E);return D?I?D:D.toString():(y||(y=v5),b||(b=require("path")),E=b.normalize(E),y.readFileSync(E,I?null:"utf8"))},m=function(E){var I=p(E,!0);return I.buffer||(I=new Uint8Array(I)),Z(I.buffer),I},process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),a=process.argv.slice(2),c=function(d){process.exit(d)},t.inspect=function(){return"[Emscripten Module object]"});var v=t.print||console.log.bind(console),x=t.printErr||console.warn.bind(console);for(o in s)s.hasOwnProperty(o)&&(t[o]=s[o]);s=null,t.arguments&&(a=t.arguments),t.thisProgram&&(l=t.thisProgram),t.quit&&(c=t.quit);var T=16;function q(d,E){return E||(E=T),Math.ceil(d/E)*E}var Y=0,$=function(d){Y=d},_;t.wasmBinary&&(_=t.wasmBinary);var ne=t.noExitRuntime||!0;typeof WebAssembly!="object"&&vr("no native wasm support detected");function ee(d,E,I){switch(E=E||"i8",E.charAt(E.length-1)==="*"&&(E="i32"),E){case"i1":return pe[d>>0];case"i8":return pe[d>>0];case"i16":return Qe[d>>1];case"i32":return fe[d>>2];case"i64":return fe[d>>2];case"float":return Ht[d>>2];case"double":return Mt[d>>3];default:vr("invalid type for getValue: "+E)}return null}var A,oe=!1,ce;function Z(d,E){d||vr("Assertion failed: "+E)}function O(d){var E=t["_"+d];return Z(E,"Cannot call unknown function "+d+", make sure it is exported"),E}function L(d,E,I,D,M){var z={string:function(st){var yt=0;if(st!=null&&st!==0){var xe=(st.length<<2)+1;yt=B(xe),be(st,yt,xe)}return yt},array:function(st){var yt=B(st.length);return Ke(st,yt),yt}};function ie(st){return E==="string"?re(st):E==="boolean"?Boolean(st):st}var we=O(d),me=[],_e=0;if(D)for(var ot=0;ot=D);)++M;if(M-E>16&&d.subarray&&Be)return Be.decode(d.subarray(E,M));for(var z="";E>10,56320|_e&1023)}}return z}function re(d,E){return d?je(V,d,E):""}function se(d,E,I,D){if(!(D>0))return 0;for(var M=I,z=I+D-1,ie=0;ie=55296&&we<=57343){var me=d.charCodeAt(++ie);we=65536+((we&1023)<<10)|me&1023}if(we<=127){if(I>=z)break;E[I++]=we}else if(we<=2047){if(I+1>=z)break;E[I++]=192|we>>6,E[I++]=128|we&63}else if(we<=65535){if(I+2>=z)break;E[I++]=224|we>>12,E[I++]=128|we>>6&63,E[I++]=128|we&63}else{if(I+3>=z)break;E[I++]=240|we>>18,E[I++]=128|we>>12&63,E[I++]=128|we>>6&63,E[I++]=128|we&63}}return E[I]=0,I-M}function be(d,E,I){return se(d,V,E,I)}function he(d){for(var E=0,I=0;I=55296&&D<=57343&&(D=65536+((D&1023)<<10)|d.charCodeAt(++I)&1023),D<=127?++E:D<=2047?E+=2:D<=65535?E+=3:E+=4}return E}function Fe(d){var E=he(d)+1,I=Et(E);return I&&se(d,pe,I,E),I}function Ke(d,E){pe.set(d,E)}function ke(d,E){return d%E>0&&(d+=E-d%E),d}var ve,pe,V,Qe,le,fe,gt,Ht,Mt;function Ei(d){ve=d,t.HEAP8=pe=new Int8Array(d),t.HEAP16=Qe=new Int16Array(d),t.HEAP32=fe=new Int32Array(d),t.HEAPU8=V=new Uint8Array(d),t.HEAPU16=le=new Uint16Array(d),t.HEAPU32=gt=new Uint32Array(d),t.HEAPF32=Ht=new Float32Array(d),t.HEAPF64=Mt=new Float64Array(d)}var jt=t.INITIAL_MEMORY||16777216,Qr,Oi=[],Xs=[],Un=[],Hn=!1;function Sr(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)ba(t.preRun.shift());ko(Oi)}function jn(){Hn=!0,!t.noFSInit&&!S.init.initialized&&S.init(),ps.init(),ko(Xs)}function fs(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Nu(t.postRun.shift());ko(Un)}function ba(d){Oi.unshift(d)}function DA(d){Xs.unshift(d)}function Nu(d){Un.unshift(d)}var hs=0,RA=null,Qa=null;function Lu(d){return d}function FA(d){hs++,t.monitorRunDependencies&&t.monitorRunDependencies(hs)}function NA(d){if(hs--,t.monitorRunDependencies&&t.monitorRunDependencies(hs),hs==0&&(RA!==null&&(clearInterval(RA),RA=null),Qa)){var E=Qa;Qa=null,E()}}t.preloadedImages={},t.preloadedAudios={};function vr(d){t.onAbort&&t.onAbort(d),d+="",x(d),oe=!0,ce=1,d="abort("+d+"). Build with -s ASSERTIONS=1 for more info.";var E=new WebAssembly.RuntimeError(d);throw n(E),E}var zl="data:application/octet-stream;base64,";function Tu(d){return d.startsWith(zl)}var xo="data:application/octet-stream;base64,AGFzbQEAAAABlAInYAF/AX9gA39/fwF/YAF/AGACf38Bf2ACf38AYAV/f39/fwF/YAR/f39/AX9gA39/fwBgBH9+f38Bf2AAAX9gBX9/f35/AX5gA39+fwF/YAF/AX5gAn9+AX9gBH9/fn8BfmADf35/AX5gA39/fgF/YAR/f35/AX9gBn9/f39/fwF/YAR/f39/AGADf39+AX5gAn5/AX9gA398fwBgBH9/f38BfmADf39/AX5gBn98f39/fwF/YAV/f35/fwF/YAV/fn9/fwF/YAV/f39/fwBgAn9+AGACf38BfmACf3wAYAh/fn5/f39+fwF/YAV/f39+fwBgAABgBX5+f35/AX5gBX9/f39/AX5gAnx/AXxgAn9+AX4CeRQBYQFhAAIBYQFiAAABYQFjAAMBYQFkAAYBYQFlAAEBYQFmAAABYQFnAAYBYQFoAAABYQFpAAMBYQFqAAMBYQFrAAMBYQFsAAEBYQFtAAABYQFuAAUBYQFvAAEBYQFwAAMBYQFxAAEBYQFyAAABYQFzAAMBYQF0AAADggKAAgcCAgQAAQECAgANBA4EBwICAhwLEw0AFA0dAAAMDAIHHgwQAgIDAwICAQAIAAcIFBUEBgAADAAECAgDAQYAAgIBBgAfFwEBAwITAiAPBgIFEQMFAxgBCAIBAAAHBQEYABoSAQIABwQDIREIAyIGAAEBAwMAIwUbASQHAQsVAQMABQMEAA0bFw0BBAALCwMDDAw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AU0EQCADQQN2IgBBA3RBjJwBaiECAn9B5JsBKAIAIgFBASAAdCIAcUUEQEHkmwEgACABcjYCACACDAELIAIoAggLIQAgAiAGNgIIIAAgBjYCDCAGIAI2AgwgBiAANgIIDAELQR8hACADQf///wdNBEAgA0EIdiIAIABBgP4/akEQdkEIcSICdCIAIABBgOAfakEQdkEEcSIBdCIAIABBgIAPakEQdkECcSIAdEEPdiABIAJyIAByayIAQQF0IAMgAEEVanZBAXFyQRxqIQALIAYgADYCHCAGQgA3AhAgAEECdEGUngFqIQICQAJAIAlBASAAdCIBcUUEQEHomwEgASAJcjYCACACIAY2AgAgBiACNgIYDAELIANBAEEZIABBAXZrIABBH0YbdCEAIAIoAgAhCANAIAgiASgCBEF4cSADRg0CIABBHXYhAiAAQQF0IQAgASACQQRxaiICKAIQIggNAAsgAiAGNgIQIAYgATYCGAsgBiAGNgIMIAYgBjYCCAwBCyABKAIIIgAgBjYCDCABIAY2AgggBkEANgIYIAYgATYCDCAGIAA2AggLIARBCGohAAwBCwJAIAtFDQACQCABKAIcIgJBAnRBlJ4BaiIAKAIAIAFGBEAgACAENgIAIAQNAUHomwEgBkF+IAJ3cTYCAAwCCyALQRBBFCALKAIQIAFGG2ogBDYCACAERQ0BCyAEIAs2AhggASgCECIABEAgBCAANgIQIAAgBDYCGAsgASgCFCIARQ0AIAQgADYCFCAAIAQ2AhgLAkAgA0EPTQRAIAEgAyAIaiIAQQNyNgIEIAAgAWoiACAAKAIEQQFyNgIEDAELIAEgCEEDcjYCBCAJIANBAXI2AgQgAyAJaiADNgIAIAoEQCAKQQN2IgBBA3RBjJwBaiEEQfibASgCACECAn9BASAAdCIAIAVxRQRAQeSbASAAIAVyNgIAIAQMAQsgBCgCCAshACAEIAI2AgggACACNgIMIAIgBDYCDCACIAA2AggLQfibASAJNgIAQeybASADNgIACyABQQhqIQALIAxBEGokACAAC4MEAQN/IAJBgARPBEAgACABIAIQCxogAA8LIAAgAmohAwJAIAAgAXNBA3FFBEACQCAA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moiAUEEayAANgIAIAJBCUkNACADIAA2AgggAyAANgIEIAFBCGsgADYCACABQQxrIAA2AgAgAkEZSQ0AIAMgADYCGCADIAA2AhQgAyAANgIQIAMgADYCDCABQRBrIAA2AgAgAUEUayAANgIAIAFBGGsgADYCACABQRxrIAA2AgAgAiADQQRxQRhyIgFrIgJBIEkNACAArUKBgICAEH4hBSABIANqIQEDQCABIAU3AxggASAFNwMQIAEgBTcDCCABIAU3AwAgAUEgaiEBIAJBIGsiAkEfSw0ACwsLawEBfyMAQSBrIgIgADYCHCACQgEgAigCHK2GNwMQIAJBDGogATYCAANAIAIgAigCDCIAQQRqNgIMIAIgACgCADYCCCACKAIIQQBIRQRAIAIgAikDEEIBIAIoAgithoQ3AxAMAQsLIAIpAxALYAIBfwF+IwBBEGsiASQAIAEgADYCBAJAIAEoAgQoAiRBAUcEQCABKAIEQQxqQRJBABAUIAFCfzcDCAwBCyABIAEoAgRBAEIAQQ0QIDcDCAsgASkDCCECIAFBEGokACACC6UCAQJ/IwBBIGsiAyQAIAMgADYCGCADIAE2AhQgAyACNwMIIAMoAhgoAgAhASADKAIUIQQgAykDCCECIwBBIGsiACQAIAAgATYCFCAAIAQ2AhAgACACNwMIAkACQCAAKAIUKAIkQQFGBEAgACkDCEL///////////8AWA0BCyAAKAIUQQxqQRJBABAUIABCfzcDGAwBCyAAIAAoAhQgACgCECAAKQMIQQsQIDcDGAsgACkDGCECIABBIGokACADIAI3AwACQCACQgBTBEAgAygCGEEIaiADKAIYKAIAEBcgA0F/NgIcDAELIAMpAwAgAykDCFIEQCADKAIYQQhqQQZBGxAUIANBfzYCHAwBCyADQQA2AhwLIAMoAhwhACADQSBqJAAgAAsxAQF/IwBBEGsiASQAIAEgADYCDCABKAIMBEAgASgCDBBSIAEoAgwQFQsgAUEQaiQACy8BAX8jAEEQayIBJAAgASAANgIMIAEoAgwoAggQFSABKAIMQQA2AgggAUEQaiQAC80BAQF/IwBBEGsiAiQAIAIgADYCCCACIAE2AgQCQCACKAIILQAoQQFxBEAgAkF/NgIMDAELIAIoAgRFBEAgAigCCEEMakESQQAQFCACQX82AgwMAQsgAigCBBA7IAIoAggoAgAEQCACKAIIKAIAIAIoAgQQOUEASARAIAIoAghBDGogAigCCCgCABAXIAJBfzYCDAwCCwsgAigCCCACKAIEQjhBAxAgQgBTBEAgAkF/NgIMDAELIAJBADYCDAsgAigCDCEAIAJBEGokACAAC98EAQF/IwBBIGsiAiAANgIYIAIgATYCFAJAIAIoAhhFBEAgAkEBNgIcDAELIAIgAigCGCgCADYCDAJAIAIoAhgoAggEQCACIAIoAhgoAgg2AhAMAQsgAkEBNgIQIAJBADYCCANAAkAgAigCCCACKAIYLwEETw0AAkAgAigCDCACKAIIai0AAEEfSwRAIAIoAgwgAigCCGotAABBgAFJDQELIAIoAgwgAigCCGotAABBDUYNACACKAIMIAIoAghqLQAAQQpGDQAgAigCDCACKAIIai0AAEEJRgRADAELIAJBAzYCEAJAIAIoAgwgAigCCGotAABB4AFxQcABRgRAIAJBATYCAAwBCwJAIAIoAgwgAigCCGotAABB8AFxQeABRgRAIAJBAjYCAAwBCwJAIAIoAgwgAigCCGotAABB+AFxQfABRgRAIAJBAzYCAAwBCyACQQQ2AhAMBAsLCyACKAIYLwEEIAIoAgggAigCAGpNBEAgAkEENgIQDAILIAJBATYCBANAIAIoAgQgAigCAE0EQCACKAIMIAIoAgggAigCBGpqLQAAQcABcUGAAUcEQCACQQQ2AhAMBgUgAiACKAIEQQFqNgIEDAILAAsLIAIgAigCACACKAIIajYCCAsgAiACKAIIQQFqNgIIDAELCwsgAigCGCACKAIQNgIIIAIoAhQEQAJAIAIoAhRBAkcNACACKAIQQQNHDQAgAkECNgIQIAIoAhhBAjYCCAsCQCACKAIUIAIoAhBGDQAgAigCEEEBRg0AIAJBBTYCHAwCCwsgAiACKAIQNgIcCyACKAIcC2oBAX8jAEEQayIBIAA2AgwgASgCDEIANwMAIAEoAgxBADYCCCABKAIMQn83AxAgASgCDEEANgIsIAEoAgx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gCVBAuEDMLIAEoAgwoAlQQFSABKAIMQQA2AlQLIAFBEGokAAvxAQEBfyMAQRBrIgEgADYCDCABKAIMQQA2AgAgASgCDEEAOgAEIAEoAgxBADoABSABKAIMQQE6AAYgASgCDEG/BjsBCCABKAIMQQo7AQogASgCDEEAOwEMIAEoAgxBfzYCECABKAIMQQA2AhQgASgCDEEANgIYIAEoAgxCADcDICABKAIMQgA3AyggASgCDEEANgIwIAEoAgxBADYCNCABKAIMQQA2AjggASgCDEEANgI8IAEoAgxBADsBQCABKAIMQYCA2I14NgJEIAEoAgxCADcDSCABKAIMQQA7AVAgASgCDEEAOwFSIAEoAgxBADYCVAvSEwEBfyMAQbABayIDJAAgAyAANgKoASADIAE2AqQBIAMgAjYCoAEgA0EANgKQASADIAMoAqQBKAIwQQAQOjYClAEgAyADKAKkASgCOEEAEDo2ApgBAkACQAJAAkAgAygClAFBAkYEQCADKAKYAUEBRg0BCyADKAKUAUEBRgRAIAMoApgBQQJGDQELIAMoApQBQQJHDQEgAygCmAFBAkcNAQsgAygCpAEiACAALwEMQYAQcjsBDAwBCyADKAKkASIAIAAvAQxB/+8DcTsBDCADKAKUAUECRgRAIANB9eABIAMoAqQBKAIwIAMoAqgBQQhqEI4BNgKQASADKAKQAUUEQCADQX82AqwBDAMLCwJAIAMoAqABQYACcQ0AIAMoApgBQQJHDQAgA0H1xgEgAygCpAEoAjggAygCqAFBCGoQjgE2AkggAygCSEUEQCADKAKQARAjIANBfzYCrAEMAwsgAygCSCADKAKQATYCACADIAMoAkg2ApABCwsCQCADKAKkAS8BUkUEQCADKAKkASIAIAAvAQxB/v8DcTsBDAwBCyADKAKkASIAIAAvAQxBAXI7AQwLIAMgAygCpAEgAygCoAEQZUEBcToAhgEgAyADKAKgAUGACnFBgApHBH8gAy0AhgEFQQELQQFxOgCHASADAn9BASADKAKkAS8BUkGBAkYNABpBASADKAKkAS8BUkGCAkYNABogAygCpAEvAVJBgwJGC0EBcToAhQEgAy0AhwFBAXEEQCADIANBIGpCHBApNgIcIAMoAhxFBEAgAygCqAFBCGpBDkEAEBQgAygCkAEQIyADQX82AqwBDAILAkAgAygCoAFBgAJxBEACQCADKAKgAUGACHENACADKAKkASkDIEL/////D1YNACADKAKkASkDKEL/////D1gNAgsgAygCHCADKAKkASkDKBAtIAMoAhwgAygCpAEpAyAQLQwBCwJAAkAgAygCoAFBgAhxDQAgAygCpAEpAyBC/////w9WDQAgAygCpAEpAyhC/////w9WDQAgAygCpAEpA0hC/////w9YDQELIAMoAqQBKQMoQv////8PWgRAIAMoAhwgAygCpAEpAygQLQsgAygCpAEpAyBC/////w9aBEAgAygCHCADKAKkASkDIBAtCyADKAKkASkDSEL/////D1oEQCADKAIcIAMoAqQBKQNIEC0LCwsCfyMAQRBrIgAgAygCHDYCDCAAKAIMLQAAQQFxRQsEQCADKAKoAUEIakEUQQAQFCADKAIcEBYgAygCkAEQIyADQX82AqwBDAILIANBAQJ/IwBBEGsiACADKAIcNgIMAn4gACgCDC0AAEEBcQRAIAAoAgwpAxAMAQtCAAunQf//A3ELIANBIGpBgAYQVTYCjAEgAygCHBAWIAMoAowBIAMoApABNgIAIAMgAygCjAE2ApABCyADLQCFAUEBcQRAIAMgA0EVakIHECk2AhAgAygCEEUEQCADKAKoAUEIakEOQQAQFCADKAKQARAjIANBfzYCrAEMAgsgAygCEEECEB8gAygCEEG9EkECEEEgAygCECADKAKkAS8BUkH/AXEQlgEgAygCECADKAKkASgCEEH//wNxEB8CfyMAQRBrIgAgAygCEDYCDCAAKAIMLQAAQQFxRQsEQCADKAKoAUEIakEUQQAQFCADKAIQEBYgAygCkAEQIyADQX82AqwBDAILIANBgbICQQcgA0EVakGABhBVNgIMIAMoAhAQFiADKAIMIAMoApABNgIAIAMgAygCDDYCkAELIAMgA0HQAGpCLhApIgA2AkwgAEUEQCADKAKoAUEIakEOQQAQFCADKAKQARAjIANBfzYCrAEMAQsgAygCTEHxEkH2EiADKAKgAUGAAnEbQQQQQSADKAKgAUGAAnFFBEAgAygCTCADLQCGAUEBcQR/QS0FIAMoAqQBLwEIC0H//wNxEB8LIAMoAkwgAy0AhgFBAXEEf0EtBSADKAKkAS8BCgtB//8DcRAfIAMoAkwgAygCpAEvAQwQHwJAIAMtAIUBQQFxBEAgAygCTEHjABAfDAELIAMoAkwgAygCpAEoAhBB//8DcRAfCyADKAKkASgCFCADQZ4BaiADQZwBahCNASADKAJMIAMvAZ4BEB8gAygCTCADLwGcARAfAkACQCADLQCFAUEBcUUNACADKAKkASkDKEIUWg0AIAMoAkxBABAhDAELIAMoAkwgAygCpAEoAhgQIQsCQAJAIAMoAqABQYACcUGAAkcNACADKAKkASkDIEL/////D1QEQCADKAKkASkDKEL/////D1QNAQsgAygCTEF/ECEgAygCTEF/ECEMAQsCQCADKAKkASkDIEL/////D1QEQCADKAJMIAMoAqQBKQMgpxAhDAELIAMoAkxBfxAhCwJAIAMoAqQBKQMoQv////8PVARAIAMoAkwgAygCpAEpAyinECEMAQsgAygCTEF/ECELCyADKAJMIAMoAqQBKAIwEFFB//8DcRAfIAMgAygCpAEoAjQgAygCoAEQkgFB//8DcSADKAKQAUGABhCSAUH//wNxajYCiAEgAygCTCADKAKIAUH//wNxEB8gAygCoAFBgAJxRQRAIAMoAkwgAygCpAEoAjgQUUH//wNxEB8gAygCTCADKAKkASgCPEH//wNxEB8gAygCTCADKAKkAS8BQBAfIAMoAkwgAygCpAEoAkQQIQJAIAMoAqQBKQNIQv////8PVARAIAMoAkwgAygCpAEpA0inECEMAQsgAygCTEF/ECELCwJ/IwBBEGsiACADKAJMNgIMIAAoAgwtAABBAXFFCwRAIAMoAqgBQQhqQRRBABAUIAMoAkwQFiADKAKQARAjIANBfzYCrAEMAQsgAygCqAEgA0HQAGoCfiMAQRBrIgAgAygCTDYCDAJ+IAAoAgwtAABBAXEEQCAAKAIMKQMQDAELQgALCxA2QQBIBEAgAygCTBAWIAMoApABECMgA0F/NgKsAQwBCyADKAJMEBYgAygCpAEoAjAEQCADKAKoASADKAKkASgCM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BEAgABARIQELIAFBgWBPCwR/QbSbAUEAIAFrNgIAQX8FIAELC2kBAn8CQCAAKAIUIAAoAhxNDQAgAEEAQQAgACgCJBEBABogACgCFA0AQX8PCyAAKAIEIgEgACgCCCICSQRAIAAgASACa6xBASAAKAIoEQ8AGgsgAEEANgIcIABCADcDECAAQgA3AgRBAAvaAwEGfyMAQRBrIgUkACAFIAI2AgwjAEGgAWsiBCQAIARBCGpBkIcBQZABEBkaIAQgADYCNCAEIAA2AhwgBEF+IABrIgNB/////wcgA0H/////B0kbIgY2AjggBCAAIAZqIgA2AiQgBCAANgIYIARBCGohACMAQdABayIDJAAgAyACNgLMASADQaABakEAQSgQMyADIAMoAswBNgLIAQJAQQAgASADQcgBaiADQdAAaiADQaABahBwQQBIDQAgACgCTEEATiEHIAAoAgAhAiAALABKQQBMBEAgACACQV9xNgIACyACQSBxIQgCfyAAKAIwBEAgACABIANByAFqIANB0ABqIANBoAFqEHAMAQsgAEHQADYCMCAAIANB0ABqNgIQIAAgAzYCHCAAIAM2AhQgACgCLCECIAAgAzYCLCAAIAEgA0HIAWogA0HQAGogA0GgAWoQcCACRQ0AGiAAQQBBACAAKAIkEQEAGiAAQQA2AjAgACACNgIsIABBADYCHCAAQQA2AhAgACgCFBogAEEANgIUQQALGiAAIAAoAgAgCHI2AgAgB0UNAAsgA0HQAWokACAGBEAgBCgCHCIAIAAgBCgCGEZrQQA6AAALIARBoAFqJAAgBUEQaiQAC4wSAg9/AX4jAEHQAGsiBSQAIAUgATYCTCAFQTdqIRMgBUE4aiEQQQAhAQNAAkAgDUEASA0AQf////8HIA1rIAFIBEBBtJsBQT02AgBBfyENDAELIAEgDWohDQsgBSgCTCIHIQECQAJAAkACQAJAAkACQAJAIAUCfwJAIActAAAiBgRAA0ACQAJAIAZB/wFxIgZFBEAgASEGDAELIAZBJUcNASABIQYDQCABLQABQSVHDQEgBSABQQJqIgg2AkwgBkEBaiEGIAEtAAIhDiAIIQEgDkElRg0ACwsgBiAHayEBIAA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AIANBIGokACAACzYBAX8jAEEQayIBJAAgASAANgIMIAEoAgwQXiABKAIMKAIAEDcgASgCDCgCBBA3IAFBEGokAAvtAQEBfyMAQRBrIgEgADYCCAJAAkACQCABKAIIRQ0AIAEoAggoAiBFDQAgASgCCCgCJA0BCyABQQE2AgwMAQsgASABKAIIKAIcNgIEAkACQCABKAIERQ0AIAEoAgQoAgAgASgCCEcNACABKAIEKAIEQSpGDQEgASgCBCgCBEE5Rg0BIAEoAgQoAgRBxQBGDQEgASgCBCgCBEHJAEYNASABKAIEKAIEQdsARg0BIAEoAgQoAgRB5wBGDQEgASgCBCgCBEHxAEYNASABKAIEKAIEQZoFRg0BCyABQQE2AgwMAQsgAUEANgIMCyABKAIMC9IEAQF/IwBBIGsiAyAANgIcIAMgATYCGCADIAI2AhQgAyADKAIcQdwWaiADKAIUQQJ0aigCADYCECADIAMoAhRBAXQ2AgwDQAJAIAMoAgwgAygCHCgC0ChKDQACQCADKAIMIAMoAhwoAtAoTg0AIAMoAhggAygCHCADKAIMQQJ0akHgFmooAgBBAnRqLwEAIAMoAhggAygCHEHcFmogAygCDEECdGooAgBBAnRqLwEATgRAIAMoAhggAygCHCADKAIMQQJ0akHgFmooAgBBAnRqLwEAIAMoAhggAygCHEHcFmogAygCDEECdGooAgBBAnRqLwEARw0BIAMoAhwgAygCDEECdGpB4BZqKAIAIAMoAhxB2Chqai0AACADKAIcQdwWaiADKAIMQQJ0aigCACADKAIcQdgoamotAABKDQELIAMgAygCDEEBajYCDAsgAygCGCADKAIQQQJ0ai8BACADKAIYIAMoAhxB3BZqIAMoAgxBAnRqKAIAQQJ0ai8BAEgNAAJAIAMoAhggAygCEEECdGovAQAgAygCGCADKAIcQdwWaiADKAIMQQJ0aigCAEECdGovAQBHDQAgAygCECADKAIcQdgoamotAAAgAygCHEHcFmogAygCDEECdGooAgAgAygCHEHYKGpqLQAASg0ADAELIAMoAhxB3BZqIAMoAhRBAnRqIAMoAhxB3BZqIAMoAgxBAnRqKAIANgIAIAMgAygCDDYCFCADIAMoAgxBAXQ2AgwMAQsLIAMoAhxB3BZqIAMoAhRBAnRqIAMoAhA2AgAL1xMBA38jAEEwayICJAAgAiAANgIsIAIgATYCKCACIAIoAigoAgA2AiQgAiACKAIoKAIIKAIANgIgIAIgAigCKCgCCCgCDDYCHCACQX82AhAgAigCLEEANgLQKCACKAIsQb0ENgLUKCACQQA2AhgDQCACKAIYIAIoAhxIBEACQCACKAIkIAIoAhhBAnRqLwEABEAgAiACKAIYIgE2AhAgAigCLEHcFmohAyACKAIsIgQoAtAoQQFqIQAgBCAANgLQKCAAQQJ0IANqIAE2AgAgAigCGCACKAIsQdgoampBADoAAAwBCyACKAIkIAIoAhhBAnRqQQA7AQILIAIgAigCGEEBajYCGAwBCwsDQCACKAIsKALQKEECSARAAkAgAigCEEECSARAIAIgAigCEEEBaiIANgIQDAELQQAhAAsgAigCLEHcFmohAyACKAIsIgQoAtAoQQFqIQEgBCABNgLQKCABQQJ0IANqIAA2AgAgAiAANgIMIAIoAiQgAigCDEECdGpBATsBACACKAIMIAIoAixB2ChqakEAOgAAIAIoAiwiACAAKAKoLUEBazYCqC0gAigCIARAIAIoAiwiACAAKAKsLSACKAIgIAIoAgxBAnRqLwECazYCrC0LDAELCyACKAIoIAIoAhA2AgQgAiACKAIsKALQKEECbTYCGANAIAIoAhhBAU4EQCACKAIsIAIoAiQgAigCGBB5IAIgAigCGEEBazYCGAwBCwsgAiACKAIcNgIMA0AgAiACKAIsKALgFjYCGCACKAIsQdwWaiEBIAIoAiwiAygC0CghACADIABBAWs2AtAoIAIoAiwgAEECdCABaigCADYC4BYgAigCLCACKAIkQQEQeSACIAIoAiwoAuAWNgIUIAIoAhghASACKAIsQdwWaiEDIAIoAiwiBCgC1ChBAWshACAEIAA2AtQoIABBAnQgA2ogATYCACACKAIUIQEgAigCLEHcFmohAyACKAIsIgQoAtQoQQFrIQAgBCAANgLUKCAAQQJ0IANqIAE2AgAgAigCJCACKAIMQQJ0aiACKAIkI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BAAsgA0EQaiQAC4MDAQF/IwBBIGsiAyQAIAMgADsBGiADIAE2AhQgAyACNgIQIAMgAygCFCADQQhqQcAAQQAQRiIANgIMAkAgAEUEQCADQQA2AhwMAQsgAygCCEEFakH//wNLBEAgAygCEEESQQAQFCADQQA2AhwMAQsgA0EAIAMoAghBBWqtECkiADYCBCAARQRAIAMoAhBBDkEAEBQgA0EANgIcDAELIAMoAgRBARCWASADKAIEIAMoAhQQhwEQISADKAIEIAMoAgwgAygCCBBBAn8jAEEQayIAIAMoAgQ2AgwgACgCDC0AAEEBcUULBEAgAygCEEEUQQAQFCADKAIEEBYgA0EANgIcDAELIAMgAy8BGgJ/IwBBEGsiACADKAIENgIMAn4gACgCDC0AAEEBcQRAIAAoAgwpAxAMAQtCAAunQf//A3ELAn8jAEEQayIAIAMoAgQ2AgwgACgCDCgCBAtBgAYQVTYCACADKAIEEBYgAyADKAIANgIcCyADKAIcIQAgA0EgaiQAIAALtAIBAX8jAEEwayIDJAAgAyAANgIoIAMgATcDICADIAI2AhwCQCADKQMgUARAIANBAToALwwBCyADIAMoAigpAxAgAykDIHw3AwgCQCADKQMIIAMpAyBaBEAgAykDCEL/////AFgNAQsgAygCHEEOQQAQFCADQQA6AC8MAQsgAyADKAIoKAIAIAMpAwinQQR0EE4iADYCBCAARQRAIAMoAhxBDkEAEBQgA0EAOgAvDAELIAMoAiggAygCBDYCACADIAMoAigpAwg3AxADQCADKQMQIAMpAwhaRQRAIAMoAigoAgAgAykDEKdBBHRqELUBIAMgAykDEEIBfDcDEAwBCwsgAygCKCADKQMIIgE3AxAgAygCKCABNwMIIANBAToALwsgAy0AL0EBcSEAIANBMGokACAAC8wBAQF/IwBBIGsiAiQAIAIgADcDECACIAE2AgwgAkEwEBgiATYCCAJAIAFFBEAgAigCDEEOQQAQFCACQQA2AhwMAQsgAigCCEEANgIAIAIoAghCADcDECACKAIIQgA3AwggAigCCEIANwMgIAIoAghCADcDGCACKAIIQQA2AiggAigCCEEAOgAsIAIo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EGwAWsiASQAIAEgBTYCqAEgASAGNgKkASABIAk3A5gBIAEgBzYClAEgASAINgKQASMAQRBrIgUgASgCpAE2AgwgAQJ+IAUoAgwtAABBAXEEQCAFKAIMKQMQDAELQgALNwMYIAEoAqQBQgQQHhogASABKAKkARAdQf//A3E2AhAgASABKAKkARAdQf//A3E2AgggASABKAKkARAxNwM4AkAgASkDOEL///////////8AVgRAIAEoApABQQRBFhAUIAFBADYCrAEMAQsgASkDOEI4fCABKQMYIAEpA5gBfFYEQCABKAKQAUEVQQAQFCABQQA2AqwBDAELAkACQCABKQM4IAEpA5gBVA0AIAEpAzhCOHwgASkDmAECfiMAQRBrIgUgASgCpAE2AgwgBSgCDCkDCAt8Vg0AIAEoAqQBIAEpAzggASkDmAF9ECwaIAFBADoAFwwBCyABKAKoASABKQM4QQAQJ0EASARAIAEoApABIAEoAqgBEBcgAUEANgKsAQwCCyABIAEoAqgBQjggAUFAayABKAKQARBCIgU2AqQBIAVFBEAgAUEANgKsAQwCCyABQQE6ABcLIAEoAqQBQgQQHigAAEHQlpkwRwRAIAEoApABQRVBABAUIAEtABdBAXEEQCABKAKkARAWCyABQQA2AqwBDAELIAEgASgCpAEQMTcDMAJAIAEoApQBQQRxRQ0AIAEpAzAgASkDOHxCDHwgASkDmAEgASkDGHxRDQAgASgCkAFBFUEAEBQgAS0AF0EBcQRAIAEoAqQBEBYLIAFBADYCrAEMAQsgASgCpAFCBBAeGiABIAEoAqQBECo2AgwgASABKAKkARAqNgIEIAEoAhBB//8DRgRAIAEgASgCDDYCEAsgASgCCEH//wNGBEAgASABKAIENgIICwJAIAEoApQBQQRxRQ0AIAEoAgggASgCBEYEQCABKAIQIAEoAgxGDQELIAEoApABQRVBABAUIAEtABdBAXEEQCABKAKkARAWCyABQQA2AqwBDAELAkAgASgCEEUEQCABKAIIRQ0BCyABKAKQAUEBQQAQFCABLQAXQQFxBEAgASgCpAEQFgsgAUEANgKsAQwBCyABIAEoAqQBEDE3AyggASABKAKkARAxNwMgIAEpAyggASkDIFIEQCABKAKQAUEBQQAQFCABLQAXQQFxBEAgASgCpAEQFgsgAUEANgKsAQwBCyABIAEoAqQBEDE3AzAgASABKAKkARAxNwOAAQJ/IwBBEGsiBSABKAKkATYCDCAFKAIMLQAAQQFxRQsEQCABKAKQAUEUQQAQFCABLQAXQQFxBEAgASgCpAEQFgsgAUEANgKsAQwBCyABLQAXQQFxBEAgASgCpAEQFgsCQCABKQOAAUL///////////8AWARAIAEpA4ABIAEpA4ABIAEpAzB8WA0BCyABKAKQAUEEQRYQFCABQQA2AqwBDAELIAEpA4ABIAEpAzB8IAEpA5gBIAEpAzh8VgRAIAEoApABQRVBABAUIAFBADYCrAEMAQsCQCABKAKUAUEEcUUNACABKQOAASABKQMwfCABKQOYASABKQM4fFENACABKAKQAUEVQQAQFCABQQA2AqwBDAELIAEpAyggASkDMEIugFYEQCABKAKQAUEVQQAQFCABQQA2AqwBDAELIAEgASkDKCABKAKQARCQASIFNgKMASAFRQRAIAFBADYCrAEMAQsgASgCjAFBAToALCABKAKMASABKQMwNwMYIAEoAowBIAEpA4ABNwMgIAEgASgCjAE2AqwBCyABKAKsASEFIAFBsAFqJAAgACAFNgJQDAELIAAoAmQgACkDMBAsGiAAKAJkIQUgACkDWCEJIAAoAmgoAhQhBiAAKAJUIQcjAEHQAGsiASQAIAEgBTYCSCABIAk3A0AgASAGNgI8IAEgBzYCOAJAIAEoAkgQMEIWVARAIAEoAjhBFUEAEBQgAUEANgJMDAELIwBBEGsiBSABKAJINgIMIAECfiAFKAIMLQAAQQFxBEAgBSgCDCkDEAwBC0IACzcDCCABKAJIQgQQHhogASgCSBAqBEAgASgCOEEBQQAQFCABQQA2AkwMAQsgASABKAJIEB1B//8Dca03AyggASABKAJIEB1B//8Dca03AyAgASkDICABKQMoUgRAIAEoAjhBE0EAEBQgAUEANgJMDAELIAEgASgCSBAqrTcDGCABIAEoAkgQKq03AxAgASkDECABKQMQIAEpAxh8VgRAIAEoAjhBBEEWEBQgAU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F/IwBBQGoiAiAANgI4IAIgATYCNCACIAIoAjgoAnw2AjAgAiACKAI4KAI4IAIoAjgoAmxqNgIsIAIgAigCOCgCeDYCICACIAIoAjgoApABNgIcIAICfyACKAI4KAJsIAIoAjgoAixBhgJrSwRAIAIoAjgoAmwgAigCOCgCLEGGAmtrDAELQQALNgIYIAIgAigCOCgCQDYCFCACIAIoAjgoAjQ2AhAgAiACKAI4KAI4IAIoAjgoAmxqQYICajYCDCACIAIoAiwgAigCIEEBa2otAAA6AAsgAiACKAIsIAIoAiBqLQAAOgAKIAIoAjgoAnggAigCOCgCjAFPBEAgAiACKAIwQQJ2NgIwCyACKAIcIAIoAjgoAnRLBEAgAiACKAI4KAJ0NgIcCwNAAkAgAiACKAI4KAI4IAIoAjRqNgIoAkAgAigCKCACKAIgai0AACACLQAKRw0AIAIoAiggAigCIEEBa2otAAAgAi0AC0cNACACKAIoLQAAIAIoAiwtAABHDQAgAiACKAIoIgBBAWo2AiggAC0AASACKAIsLQABRwRADAELIAIgAigCLEECajYCLCACIAIoAihBAWo2AigDQCACIAIoAiwiAEEBajYCLCAALQABIQEgAiACKAIoIgBBAWo2AigCf0EAIAAtAAEgAUcNABogAiACKAIsIgBBAWo2AiwgAC0AASEBIAIgAigCKCIAQQFqNgIoQQAgAC0AASABRw0AGiACIAIoAiwiAEEBajYCLCAALQABIQEgAiACKAIoIgBBAWo2AihBACAALQABIAFHDQAaIAIgAigCLCIAQQFqNgIsIAAtAAEhASACIAIoAigiAEEBajYCKEEAIAAtAAEgAUcNABogAiACKAIsIgBBAWo2AiwgAC0AASEBIAIgAigCKCIAQQFqNgIoQQAgAC0AASABRw0AGiACIAIoAiwiAEEBajYCLCAALQABIQEgAiACKAIoIgBBAWo2AihBACAALQABIAFHDQAaIAIgAigCLCIAQQFqNgIsIAAtAAEhASACIAIoAigiAEEBajYCKEEAIAAtAAEgAUcNABogAiACKAIsIgBBAWo2AiwgAC0AASEBIAIgAigCKCIAQQFqNgIoQQAgAC0AASABRw0AGiACKAIsIAIoAgxJC0EBcQ0ACyACQYICIAIoAgwgAigCLGtrNgIkIAIgAigCDEGCAms2AiwgAigCJCACKAIgSgRAIAIoAjggAigCNDYCcCACIAIoAiQ2AiAgAigCJCACKAIcTg0CIAIgAigCLCACKAIgQQFrai0AADoACyACIAIoAiwgAigCIGotAAA6AAoLCyACIAIoAhQgAigCNCACKAIQcUEBdGovAQAiATYCNEEAIQAgASACKAIYSwR/IAIgAigCMEEBayIANgIwIABBAEcFQQALQQFxDQELCwJAIAIoAiAgAigCOCgCdE0EQCACIAIoAiA2AjwMAQsgAiACKAI4KAJ0NgI8CyACKAI8C5IQAQF/IwBBMGsiAiQAIAIgADYCKCACIAE2AiQgAgJ/IAIoAigoAiwgAigCKCgCDEEFa0kEQCACKAIoKAIsDAELIAIoAigoAgxBBWsLNgIgIAJBADYCECACIAIoAigoAgAoAgQ2AgwDQAJAIAJB//8DNgIcIAIgAigCKCgCvC1BKmpBA3U2AhQgAigCKCgCACgCECACKAIUSQ0AIAIgAigCKCgCACgCECACKAIUazYCFCACIAIoAigoAmwgAigCKCgCXGs2AhggAigCHCACKAIYIAIoAigoAgAoAgRqSwRAIAIgAigCGCACKAIoKAIAKAIEajYCHAsgAigCHCACKAIUSwRAIAIgAigCFDYCHAsCQCACKAIcIAIoAiBPDQACQCACKAIcRQRAIAIoAiRBBEcNAQsgAigCJEUNACACKAIcIAIoAhggAigCKCgCACgCBGpGDQELDAELQQAhACACIAIoAiRBBEYEfyACKAIcIAIoAhggAigCKCgCACgCBGpGBUEAC0EBcTYCECACKAIoQQBBACACKAIQEF0gAigCKCgCCCACKAIoKAIUQQRraiACKAIcOgAAIAIoAigoAgggAigCKCgCFEEDa2ogAigCHEEIdjoAACACKAIoKAIIIAIoAigoAhRBAmtqIAIoAhxBf3M6AAAgAigCKCgCCCACKAIoKAIUQQFraiACKAIcQX9zQQh2OgAAIAIoAigoAgAQHCACKAIYBEAgAigCGCACKAIcSwRAIAIgAigCHDYCGAsgAigCKCgCACgCDCACKAIoKAI4IAIoAigoAlxqIAIoAhgQGRogAigCKCgCACIAIAIoAhggACgCDGo2AgwgAigCKCgCACIAIAAoAhAgAigCGGs2AhAgAigCKCgCACIAIAIoAhggACgCFGo2AhQgAigCKCIAIAIoAhggACgCXGo2AlwgAiACKAIcIAIoAhhrNgIcCyACKAIcBEAgAigCKCgCACACKAIoKAIAKAIMIAIoAhwQdhogAigCKCgCACIAIAIoAhwgACgCDGo2AgwgAigCKCgCACIAIAAoAhAgAigCHGs2AhAgAigCKCgCACIAIAIoAhwgACgCFGo2AhQLIAIoAhBFDQELCyACIAIoAgwgAigCKCgCACgCBGs2AgwgAigCDARAAkAgAigCDCACKAIoKAIsTwRAIAIoAihBAjYCsC0gAigCKCgCOCACKAIoKAIAKAIAIAIoAigoAixrIAIoAigoAiwQGRogAigCKCACKAIoKAIsNgJsDAELIAIoAgwgAigCKCgCPCACKAIoKAJsa08EQCACKAIoIgAgACgCbCACKAIoKAIsazYCbCACKAIoKAI4IAIoAigoAjggAigCKCgCLGogAigCKCgCbBAZGiACKAIoKAKwLUECSQRAIAIoAigiACAAKAKwLUEBajYCsC0LCyACKAIoKAI4IAIoAigoAmxqIAIoAigoAgAoAgAgAigCDGsgAigCDBAZGiACKAIoIgAgAigCDCAAKAJsajYCbAsgAigCKCACKAIoKAJsNgJcIAIoAigiAQJ/IAIoAgwgAigCKCgCLCACKAIoKAK0LWtLBEAgAigCKCgCLCACKAIoKAK0LWsMAQsgAigCDAsgASgCtC1qNgK0LQsgAigCKCgCwC0gAigCKCgCbEkEQCACKAIoIAIoAigoAmw2AsAtCwJAIAIoAhAEQCACQQM2AiwMAQsCQCACKAIkRQ0AIAIoAiRBBEYNACACKAIoKAIAKAIEDQAgAigCKCgCbCACKAIoKAJcRw0AIAJBATYCLAwBCyACIAIoAigoAjwgAigCKCgCbGtBAWs2AhQCQCACKAIoKAIAKAIEIAIoAhRNDQAgAigCKCgCXCACKAIoKAIsSA0AIAIoAigiACAAKAJcIAIoAigoAixrNgJcIAIoAigiACAAKAJsIAIoAigoAixrNgJsIAIoAigoAjggAigCKCgCOCACKAIoKAIsaiACKAIoKAJsEBkaIAIoAigoArAtQQJJBEAgAigCKCIAIAAoArAtQQFqNgKwLQsgAiACKAIoKAIsIAIoAhRqNgIUCyACKAIUIAIoAigoAgAoAgRLBEAgAiACKAIoKAIAKAIENgIUCyACKAIUBEAgAigCKCgCACACKAIoKAI4IAIoAigoAmxqIAIoAhQQdhogAigCKCIAIAIoAhQgACgCbGo2AmwLIAIoAigoAsAtIAIoAigoAmxJBEAgAigCKCACKAIoKAJsNgLALQsgAiACKAIoKAK8LUEqakEDdTYCFCACIAIoAigoAgwgAigCFGtB//8DSwR/Qf//AwUgAigCKCgCDCACKAIUaws2AhQgAgJ/IAIoAhQgAigCKCgCLEsEQCACKAIoKAIsDAELIAIoAhQLNgIgIAIgAigCKCgCbCACKAIoKAJcazYCGAJAIAIoAhggAigCIEkEQCACKAIYRQRAIAIoAiRBBEcNAgsgAigCJEUNASACKAIoKAIAKAIEDQEgAigCGCACKAIUSw0BCyACAn8gAigCGCACKAIUSwRAIAIoAhQMAQsgAigCGAs2AhwgAgJ/QQAgAigCJEEERw0AGkEAIAIoAigoAgAoAgQNABogAigCHCACKAIYRgtBAXE2AhAgAigCKCACKAIoKAI4IAIoAigoAlxqIAIoAhwgAigCEBBdIAIoAigiACACKAIcIAAoAlxqNgJcIAIoAigoAgAQHAsgAkECQQAgAigCEBs2AiwLIAIoAiwhACACQTBqJAAgAAuyAgEBfyMAQRBrIgEkACABIAA2AggCQCABKAIIEHgEQCABQX42AgwMAQsgASABKAIIKAIcKAIENgIEIAEoAggoAhwoAggEQCABKAIIKAIoIAEoAggoAhwoAgggASgCCCgCJBEEAAsgASgCCCgCHCgCRARAIAEoAggoAiggASgCCCgCHCgCRCABKAIIKAIkEQQACyABKAIIKAIcKAJABEAgASgCCCgCKCABKAIIKAIcKAJAIAEoAggoAiQRBAALIAEoAggoAhwoAj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EdGooAgApA0hUBEAgASkDOAwBCyABKAJYKAJAIAEpA1CnQQR0aigCACkDSAs3AzgLIAEoAlgoAkAgASkDUKdBBHRqLQAMQQFxRQRAIAEpA0ggASkDQFoEQCABKAIoEBUgASgCWEEIakEUQQAQFCABQX82AlwMBAsgASgCKCABKQNIp0EDdGogASkDUDcDACABIAEpA0hCAXw3A0gLIAEgASkDUEIBfDcDUAwBCwsgASkDSCABKQNAVARAIAEoAigQFSABKAJYQQhqQRRBABAUIAFBfzYCXAwBCwJAAn8jAEEQayIAIAEoAlgoAgA2AgwgACgCDCkDGEKAgAiDUAsEQCABQgA3AzgMAQsgASkDOEJ/UQRAIAFCfzcDGCABQgA3AzggAUIANwNQA0AgASkDUCABKAJYKQMwVARAIAEoAlgoAkAgASkDUKdBBHRqKAIABEAgASgCWCgCQCABKQNQp0EEdGooAgApA0ggASkDOFoEQCABIAEoAlgoAkAgASkDUKdBBHRqKAIAKQNINwM4IAEgASkDUDcDGAsLIAEgASkDUEIBfDcDUAwBCwsgASkDGEJ/UgRAIAEoAlghAiABKQMYIQcgASgCWEEIaiEDIwBBMGsiACQAIAAgAjYCJCAAIAc3AxggACADNgIUIAAgACgCJCAAKQMYIAAoAhQQYCIHNwMIAkAgB1AEQCAAQgA3AygMAQsgACAAKAIkKAJAIAApAxinQQR0aigCADYCBAJAIAApAwggACkDCCAAKAIEKQMgfFgEQCAAKQMIIAAoAgQpAyB8Qv///////////wBYDQELIAAoAhRBBEEWEBQgAEIANwMoDAELIAAgACgCBCkDICAAKQMIfDcDCCAAKAIELwEMQQhxBEAgACgCJCgCACAAKQMIQQAQJ0EASARAIAAoAhQgACgCJCgCABAXIABCADcDKAwCCyAAKAIkKAIAIABCBBArQgRSBEAgACgCFCAAKAIkKAIAEBcgAEIANwMoDAILIAAoAABB0JadwABGBEAgACAAKQMIQgR8NwMICyAAIAApAwhCDHw3AwggACgCBEEAEGVBAXEEQCAAIAApAwhCCHw3AwgLIAApAwhC////////////AFYEQCAAKAI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MEQCABQQE2AiwMAgsgASgCDCABKQMwNwNIAkAgASgCFARAIAFBADYCCCABKAIQKAIIRQRAIAEgASgCWCABKAJYIAEpA1BBCEEAEK4BIgA2AgggAEUEQCABQQE2AiwMBQsLAn8gASgCWCECAn8gASgCCARAIAEoAggMAQsgASgCECgCCAshAyABKAIMIQQjAEGgAWsiACQAIAAgAjYCmAEgACADNgKUASAAIAQ2ApABAkAgACgClAEgAEE4ahA5QQBIBEAgACgCmAFBCGogACgClAEQFyAAQX82ApwBDAELIAApAzhCwACDUARAIAAgACkDOELAAIQ3AzggAEEAOwFoCwJAAkAgACgCkAEoAhBBf0cEQCAAKAKQASgCEEF+Rw0BCyAALwFoRQ0AIAAoApABIAAvAWg2AhAMAQsCQAJAIAAoApABKAIQDQAgACkDOEIEg1ANACAAIAApAzhCCIQ3AzggACAAKQNQNwNYDAELIAAgACkDOEL3////D4M3AzgLCyAAKQM4QoABg1AEQCAAIAApAzhCgAGENwM4IABBADsBagsgAEGAAjYCJAJAIAApAzhCBINQBEAgACAAKAIkQYAIcjYCJCAAQn83A3AMAQsgACgCkAEgACkDUDcDKCAAIAApA1A3A3ACQCAAKQM4QgiDUARAAkACQAJAAkACQAJ/AkAgACgCkAEoAhBBf0cEQCAAKAKQASgCEEF+Rw0BC0EIDAELIAAoApABKAIQC0H//wNxDg0CAwMDAwMDAwEDAwMAAwsgAEKUwuTzDzcDEAwDCyAAQoODsP8PNwMQDAILIABC/////w83AxAMAQsgAEIANwMQCyAAKQNQIAApAxBWBEAgACAAKAIkQYAIcjYCJAsMAQsgACgCkAEgACkDWDcDIAsLIAAgACgCmAEoAgAQNSIHNwOIASAHQgBTBEAgACgCmAFBCGogACgCmAEoAgAQFyAAQX82ApwBDAELIAAoApABIgIgAi8BDEH3/wNxOwEMIAAgACgCmAEgACgCkAEgACgCJBBUIgI2AiggAkEASARAIABBfzYCnAEMAQsgACAALwFoAn8CQCAAKAKQASgCEEF/RwRAIAAoApABKAIQQX5HDQELQQgMAQs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HCEAAn8gASgCpAEEQCABKAKkAQwBC0H6EgshA0HfEkH6EiABKAKkARshAiABIAEoAqABNgIIIAEgAjYCBCABIAM2AgAgAEG+CiABEG8gASgCqAEgASgCHDYCCCABIAEoAhw2AqwBCyABKAKsASEAIAFBsAFqJAAgAAsIAEEBQTgQfwszAQF/IAAoAhQiAyABIAIgACgCECADayIBIAEgAksbIgEQGRogACAAKAIUIAFqNgIUIAILjwUCBn4BfyABIAEoAgBBD2pBcHEiAUEQajYCACAAAnwgASkDACEDIAEpAwghBiMAQSBrIggkAAJAIAZC////////////AIMiBEKAgICAgIDAgDx9IARCgICAgICAwP/DAH1UBEAgBkIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAiFQgBSDQEgAiAEQgGDfCECDAELIANQIARCgICAgICAwP//AFQgBEKAgICAgIDA//8AURtFBEAgBkIEhiADQjyIhEL/////////A4NCgICAgICAgPz/AIQhAgwBC0KAgICAgICA+P8AIQIgBEL///////+//8MAVg0AQgAhAiAEQjCIpyIAQZH3AEkNACADIQIgBkL///////8/g0KAgICAgIDAAIQiBSEHAkAgAEGB9wBrIgFBwABxBEAgAiABQUBqrYYhB0IAIQIMAQsgAUUNACAHIAGtIgSGIAJBwAAgAWutiIQhByACIASGIQILIAggAjcDECAIIAc3AxgCQEGB+AAgAGsiAEHAAHEEQCAFIABBQGqtiCEDQgAhBQwBCyAARQ0AIAVBwAAgAGuthiADIACtIgKIhCEDIAUgAoghBQsgCCADNwMAIAggBTcDCCAIKQMIQgSGIAgpAwAiA0I8iIQhAiAIKQMQIAgpAxiEQgBSrSADQv//////////D4OEIgNCgYCAgICAgIAIWgRAIAJCAXwhAgwBCyADQoCAgICAgICACIVCAFINACACQgGDIAJ8IQILIAhBIGokACACIAZCgICAgICAgICAf4OEvws5AwALrRcDEn8CfgF8IwBBsARrIgkkACAJQQA2AiwCQCABvSIYQn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gCGCgCOCABKAIYKAJcagwBC0EACyABKAIYKAJsIAEoAhgoAlxrQQEQKCABKAIYIAEoAhgoAmw2AlwgASgCGCgCABAcIAEoAhgoAgAoAhBFBEAgAUECNgIcDAILIAFBAzYCHAwBCyABKAIYKAKgLQRAIAEoAhgCfyABKAIYKAJcQQBOBEAgASgCGCgCOCABKAIYKAJcagwBC0EACyABKAIYKAJsIAEoAhgoAlxrQQAQKCABKAIYIAEoAhgoAmw2AlwgASgCGCgCABAcIAEoAhgoAgAoAhBFBEAgAUEANgIcDAILCyABQQE2AhwLIAEoAhwhAiABQSBqJAAgAgwBCwJ/IAAoAiwoAogBQQNGBEAgACgCLCECIAAoAjQhAyMAQTBrIgEkACABIAI2AiggASADNgIkAkADQAJAIAEoAigoAnRBggJNBEAgASgCKBBcAkAgASgCKCgCdEGCAksNACABKAIkDQAgAUEANgIsDAQLIAEoAigoAnRFDQELIAEoAihBADYCYAJAIAEoAigoAnRBA0kNACABKAIoKAJsRQ0AIAEgASgCKCgCOCABKAIoKAJsakEBazYCGCABIAEoAhgtAAA2AhwgASgCHCECIAEgASgCGCIDQQFqNgIYAkAgAy0AASACRw0AIAEoAhwhAiABIAEoAhgiA0EBajYCGCADLQABIAJHDQAgASgCHCECIAEgASgCGCIDQQFqNgIYIAMtAAEgAkcNACABIAEoAigoAjggASgCKCgCbGpBggJqNgIUA0AgASgCHCECIAEgASgCGCIDQQFqNgIYAn9BACADLQABIAJHDQAaIAEoAhwhAiABIAEoAhgiA0EBajYCGEEAIAMtAAEgAkcNABogASgCHCECIAEgASgCGCIDQQFqNgIYQQAgAy0AASACRw0AGiABKAIcIQIgASABKAIYIgNBAWo2AhhBACADLQABIAJHDQAaIAEoAhwhAiABIAEoAhgiA0EBajYCGEEAIAMtAAEgAkcNABogASgCHCECIAEgASgCGCIDQQFqNgIYQQAgAy0AASACRw0AGiABKAIcIQIgASABKAIYIgNBAWo2AhhBACADLQABIAJHDQAaIAEoAhwhAiABIAEoAhgiA0EBajYCGEEAIAMtAAEgAkcNABogASgCGCABKAIUSQtBAXENAAsgASgCKEGCAiABKAIUIAEoAhhrazYCYCABKAIoKAJgIAEoAigoAnRLBEAgASgCKCABKAIoKAJ0NgJgCwsLAkAgASgCKCgCYEEDTwRAIAEgASgCKCgCYEEDazoAEyABQQE7ARAgASgCKCICKAKkLSACKAKgLUEBdGogAS8BEDsBACABLQATIQMgASgCKCICKAKYLSEEIAIgAigCoC0iAkEBajYCoC0gAiAEaiADOgAAIAEgAS8BEEEBazsBECABKAIoIAEtABNB0N0Aai0AAEECdGpBmAlqIgIgAi8BAEEBajsBACABKAIoQYgTagJ/IAEvARBBgAJJBEAgAS8BEC0A0FkMAQsgAS8BEEEHdkGAAmotANBZC0ECdGoiAiACLwEAQQFqOwEAIAEgASgCKCgCoC0gASgCKCgCnC1BAWtGNgIgIAEoAigiAiACKAJ0IAEoAigoAmBrNgJ0IAEoAigiAiABKAIoKAJgIAIoAmxqNgJsIAEoAihBADYCYAwBCyABIAEoAigiAigCOCACKAJsai0AADoADyABKAIoIgIoAqQtIAIoAqAtQQF0akEAOwEAIAEtAA8hAyABKAIoIgIoApgtIQQgAiACKAKgLSICQQFqNgKgLSACIARqIAM6AAAgASgCKCABLQAPQQJ0aiICIAIvAZQBQQFqOwGUASABIAEoAigoAqAtIAEoAigoApwtQQFrRjYCICABKAIoIgIgAigCdEEBazYCdCABKAIoIgIgAigCbEEBajYCbAsgASgCIARAIAEoAigCfyABKAIoKAJcQQBOBEAgASgCKCgCOCABKAIoKAJcagwBC0EACyABKAIoKAJsIAEoAigoAlxrQQAQKCABKAIoIAEoAigoAmw2AlwgASgCKCgCABAcIAEoAigoAgAoAhBFBEAgAUEANgIsDAQLCwwBCwsgASgCKEEANgK0LSABKAIkQQRGBEAgASgCKAJ/IAEoAigoAlxBAE4EQCABKAIoKAI4IAEoAigoAlxqDAELQQALIAEoAigoAmwgASgCKCgCXGtBARAoIAEoAiggASgCKCgCbDYCXCABKAIoKAIAEBwgASgCKC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ABIAEoAiQgASgCLCABKAIccUECdGooAQA2ARACQAJAA0AgASABLQARNgIMIAEgASgCLCABKAIMdjYCLCABIAEoAiggASgCDGs2AiggASABLQAQNgIMIAEoAgxFBEAgAS8BEiECIAEgASgCSCIDQQFqNgJIIAMgAjoAAAwCCyABKAIMQRBxBEAgASABLwESNgIIIAEgASgCDEEPcTYCDCABKAIMBEAgASgCKCABKAIMSQRAIAEgASgCUCICQQFqNgJQIAEgASgCLCACLQAAIAEoAih0ajYCLCABIAEoAihBCGo2AigLIAEgASgCCCABKAIsQQEgASgCDHRBAWtxajYCCCABIAEoAiwgASgCDHY2AiwgASABKAIoIAEoAgxrNgIoCyABKAIoQQ9JBEAgASABKAJQIgJBAWo2AlAgASABKAIsIAItAAAgASgCKHRqNgIsIAEgASgCKEEIajYCKCABIAEoAlAiAkEBajYCUCABIAEoAiwgAi0AACABKAIodGo2AiwgASABKAIoQQhqNgIoCyABIAEoAiAgASgCLCABKAIYcUECdGooAQA2ARACQANAIAEgAS0AETYCDCABIAEoAiwgASgCDHY2AiwgASABKAIoIAEoAgxrNgIoIAEgAS0AEDYCDCABKAIMQRBxBEAgASABLwESNgIEIAEgASgCDEEPcTYCDCABKAIoIAEoAgxJBEAgASABKAJQIgJBAWo2AlAgASABKAIsIAItAAAgASgCKHRqNgIsIAEgASgCKEEIajYCKCABKAIoIAEoAgxJBEAgASABKAJQIgJBAWo2AlAgASABKAIsIAItAAAgASgCKHRqNgIsIAEgASgCKEEIajYCKAsLIAEgASgCBCABKAIsQQEgASgCDHRBAWtxajYCBCABIAEoAiwgASgCDHY2AiwgASABKAIoIAEoAgxrNgIoIAEgASgCSCABKAJEazYCDAJAIAEoAgQgASgCDEsEQCABIAEoAgQgASgCDGs2AgwgASgCDCABKAI4SwRAIAEoAlQoAsQ3BEAgASgCXEHdDDYCGCABKAJUQdH+ADYCBAwKCwsgASABKAIwNgIAAkAgASgCNEUEQCABIAEoAgAgASgCPCABKAIMa2o2AgAgASgCDCABKAIISQRAIAEgASgCCCABKAIMazYCCANAIAEgASgCACICQQFqNgIAIAItAAAhAiABIAEoAkgiA0EBajYCSCADIAI6AAAgASABKAIMQQFrIgI2AgwgAg0ACyABIAEoAkggASgCBGs2AgALDAELAkAgASgCNCABKAIMSQRAIAEgASgCACABKAI8IAEoAjRqIAEoAgxrajYCACABIAEoAgwgASgCNGs2AgwgASgCDCABKAIISQRAIAEgASgCCCABKAIMazYCCANAIAEgASgCACICQQFqNgIAIAItAAAhAiABIAEoAkgiA0EBajYCSCADIAI6AAAgASABKAIMQQFrIgI2AgwgAg0ACyABIAEoAjA2AgAgASgCNCABKAIISQRAIAEgASgCNDYCDCABIAEoAgggASgCDGs2AggDQCABIAEoAgAiAkEBajYCACACLQAAIQIgASABKAJIIgNBAWo2AkggAyACOgAAIAEgASgCDEEBayICNgIMIAINAAsgASABKAJIIAEoAgRrNgIACwsMAQsgASABKAIAIAEoAjQgASgCDGtqNgIAIAEoAgwgASgCCEkEQCABIAEoAgggASgCDGs2AggDQCABIAEoAgAiAkEBajYCACACLQAAIQIgASABKAJIIgNBAWo2AkggAyACOgAAIAEgASgCDEEBayICNgIMIAINAAsgASABKAJIIAEoAgRrNgIACwsLA0AgASgCCEECSwRAIAEgASgCACICQQFqNgIAIAItAAAhAiABIAEoAkgiA0EBajYCSCADIAI6AAAgASABKAIAIgJBAWo2AgAgAi0AACECIAEgASgCSCIDQQFqNgJIIAMgAjoAACABIAEoAgAiAkEBajYCACACLQAAIQIgASABKAJIIgNBAWo2AkggAyACOgAAIAEgASgCCEEDazYCCAwBCwsMAQsgASABKAJIIAEoAgRrNgIAA0AgASABKAIAIgJBAWo2AgAgAi0AACECIAEgASgCSCIDQQFqNgJIIAMgAjoAACABIAEoAgAiAkEBajYCACACLQAAIQIgASABKAJIIgNBAWo2AkggAyACOgAAIAEgASgCACICQQFqNgIAIAItAAAhAiABIAEoAkgiA0EBajYCSCADIAI6AAAgASABKAIIQQNrNgIIIAEoAghBAksNAAsLIAEoAggEQC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GxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxwQMAAAEDUAAAEBAAAeAQAADwAAAJA0AACQNQAAAAAAAB4AAAAPAAAAAAAAABA2AAAAAAAAEwAAAAcAAAAAAAAADAAIAIwACABMAAgAzAAIACwACACsAAgAbAAIAOwACAAcAAgAnAAIAFwACADcAAgAPAAIALwACAB8AAgA/AAIAAIACACCAAgAQgAIAMIACAAiAAgAogAIAGIACADiAAgAEgAIAJIACABSAAgA0gAIADIACACyAAgAcgAIAPIACAAKAAgAigAIAEoACADKAAgAKgAIAKoACABqAAgA6gAIABoACACaAAgAWgAIANoACAA6AAgAugAIAHoACAD6AAgABgAIAIYACABGAAgAxgAIACYACACmAAgAZgAIAOYACAAWAAgAlgAIAFYACADWAAgANgAIALYACAB2AAgA9gAIAA4ACACOAAgATgAIAM4ACAAuAAgArgAIAG4ACADuAAgAHgAIAJ4ACABeAAgA3gAIAD4ACAC+AAgAfgAIAP4ACAABAAgAgQAIAEEACADBAAgAIQAIAKEACABhAAgA4QAIABEACACRAAgAUQAIANEACAAxAAgAsQAIAHEACADxAAgACQAIAIkACABJAAgAyQAIACkACACpAAgAaQAIAOkACAAZAAgAmQAIAFkACADZAAgAOQAIALkACAB5AAgA+QAIAAUACACFAAgARQAIAMUACAAlAAgApQAIAGUACADlAAgAFQAIAJUACABVAAgA1QAIADUACAC1AAgAdQAIAPUACAANAAgAjQAIAE0ACADNAAgALQAIAK0ACABtAAgA7QAIAB0ACACdAAgAXQAIAN0ACAA9AAgAvQAIAH0ACAD9AAgAEwAJABMBCQCTAAkAkwEJAFMACQBTAQkA0wAJANMBCQAzAAkAMwEJALMACQCzAQkAcwAJAHMBCQDzAAkA8wEJAAsACQALAQkAiwAJAIsBCQBLAAkASwEJAMsACQDLAQkAKwAJACsBCQCrAAkAqwEJAGsACQBrAQkA6wAJAOsBCQAbAAkAGwEJAJsACQCbAQkAWwAJAFsBCQDbAAkA2wEJADsACQA7AQkAuwAJALsBCQB7AAkAewEJAP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AEAAAABQAAAAYAAAAHAAAACAAAAAoAAAAMAAAADgAEGE7gALegEAAAACAAAAAwAAAAQAAAAGAAAACAAAAAwAAAAQAAAAGAAAACAAAAAwAAAAQAAAAGAAAACAAAAAwAAAAAABAACAAQAAAAIAAAADAAAABAAAAAYAAAAIAAAADAAAABAAAAAYAAAAIAAAADAAAABAAAAAYAAAMS4yLjExAEGI7wALbQcAAAAEAAQACAAEAAgAAAAEAAUAEAAIAAgAAAAEAAYAIAAgAAgAAAAEAAQAEAAQAAkAAAAIABAAIAAgAAkAAAAIABAAgACAAAkAAAAIACAAgAAAAQkAAAAgAIAAAgEABAkAAAAgAAIBAgEAEAkAQYDwAAulAgMABAAFAAYABwAIAAkACgALAA0ADwARABMAFwAbAB8AIwArADMAOwBDAFMAYwBzAIMAowDDAOMAAgEAAAAAAAAQABAAEAAQABAAEAAQABAAEQARABEAEQASABIAEgASABMAEwATABMAFAAUABQAFAAVABUAFQAVABAATQDKAAAAAQACAAMABAAFAAcACQANABEAGQAhADEAQQBhAIEAwQABAYEBAQIBAwEEAQYBCAEMARABGAEgATABQAFgAAAAABAAEAAQABAAEQARABIAEgATABMAFAAUABUAFQAWABYAFwAXABgAGAAZABkAGgAaABsAGwAcABwAHQAdAEAAQAAQABEAEgAAAAgABwAJAAYACgAFAAsABAAMAAMADQACAA4AAQAPAEGw8gALwRFgBwAAAAhQAAAIEAAUCHMAEgcfAAAIcAAACDAAAAnAABAHCgAACGAAAAggAAAJoAAACAAAAAiAAAAIQAAACeAAEAcGAAAIWAAACBgAAAmQABMHOwAACHgAAAg4AAAJ0AARBxEAAAhoAAAIKAAACbAAAAgIAAAIiAAACEgAAAnwABAHBAAACFQAAAgUABUI4wATBysAAAh0AAAINAAACcgAEQcNAAAIZAAACCQAAAmoAAAIBAAACIQAAAhEAAAJ6AAQBwgAAAhcAAAIHAAACZgAFAdTAAAIfAAACDwAAAnYABIHFwAACGwAAAgsAAAJuAAACAwAAAiMAAAITAAACfgAEAcDAAAIUg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mRsZQBSZW1vdGUgSS9PIGVycm9yAFF1b3RhIGV4Y2VlZGVkAE5vIG1lZGl1bSBmb3VuZABXcm9uZyBtZWRpdW0gdHlwZQBObyBlcnJvciBpbmZvcm1hdGlvbgBBkJcBC1JQUFAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAAAEAAAAIAAAAlEsAALRLAEGQmQELAgxQAEHImQELCR8AAADkTAAAAwBB5JkBC4wBLfRRWM+MscBG9rXLKTEDxwRbcDC0Xf0geH+LmthZKVBoSImrp1YDbP+3zYg/1He0K6WjcPG65Kj8QYP92W/hinovLXSWBx8NCV4Ddixw90ClLKdvV0GoqnTfoFhkA0rHxDxTrq9fGAQVseNtKIarDKS/Q/DpUIE5VxZSN/////////////////////8=";Tu(xo)||(xo=h(xo));function Ou(d){try{if(d==xo&&_)return new Uint8Array(_);var E=xa(d);if(E)return E;if(m)return m(d);throw"sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)"}catch(I){vr(I)}}function Sh(d,E){var I,D,M;try{M=Ou(d),D=new WebAssembly.Module(M),I=new WebAssembly.Instance(D,E)}catch(ie){var z=ie.toString();throw x("failed to compile wasm module: "+z),(z.includes("imported Memory")||z.includes("memory import"))&&x("Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time)."),ie}return[I,D]}function vh(){var d={a:ka};function E(M,z){var ie=M.exports;t.asm=ie,A=t.asm.u,Ei(A.buffer),Qr=t.asm.pa,DA(t.asm.v),NA("wasm-instantiate")}if(FA("wasm-instantiate"),t.instantiateWasm)try{var I=t.instantiateWasm(d,E);return I}catch(M){return x("Module.instantiateWasm callback failed with error: "+M),!1}var D=Sh(xo,d);return E(D[0]),t.asm}var Dr,Ae;function ko(d){for(;d.length>0;){var E=d.shift();if(typeof E=="function"){E(t);continue}var I=E.func;typeof I=="number"?E.arg===void 0?Qr.get(I)():Qr.get(I)(E.arg):I(E.arg===void 0?null:E.arg)}}function Gn(d,E){var I=new Date(fe[d>>2]*1e3);fe[E>>2]=I.getUTCSeconds(),fe[E+4>>2]=I.getUTCMinutes(),fe[E+8>>2]=I.getUTCHours(),fe[E+12>>2]=I.getUTCDate(),fe[E+16>>2]=I.getUTCMonth(),fe[E+20>>2]=I.getUTCFullYear()-1900,fe[E+24>>2]=I.getUTCDay(),fe[E+36>>2]=0,fe[E+32>>2]=0;var D=Date.UTC(I.getUTCFullYear(),0,1,0,0,0,0),M=(I.getTime()-D)/(1e3*60*60*24)|0;return fe[E+28>>2]=M,Gn.GMTString||(Gn.GMTString=Fe("GMT")),fe[E+40>>2]=Gn.GMTString,E}function Mu(d,E){return Gn(d,E)}var St={splitPath:function(d){var E=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return E.exec(d).slice(1)},normalizeArray:function(d,E){for(var I=0,D=d.length-1;D>=0;D--){var M=d[D];M==="."?d.splice(D,1):M===".."?(d.splice(D,1),I++):I&&(d.splice(D,1),I--)}if(E)for(;I;I--)d.unshift("..");return d},normalize:function(d){var E=d.charAt(0)==="/",I=d.substr(-1)==="/";return d=St.normalizeArray(d.split("/").filter(function(D){return!!D}),!E).join("/"),!d&&!E&&(d="."),d&&I&&(d+="/"),(E?"/":"")+d},dirname:function(d){var E=St.splitPath(d),I=E[0],D=E[1];return!I&&!D?".":(D&&(D=D.substr(0,D.length-1)),I+D)},basename:function(d){if(d==="/")return"/";d=St.normalize(d),d=d.replace(/\/$/,"");var E=d.lastIndexOf("/");return E===-1?d:d.substr(E+1)},extname:function(d){return St.splitPath(d)[3]},join:function(){var d=Array.prototype.slice.call(arguments,0);return St.normalize(d.join("/"))},join2:function(d,E){return St.normalize(d+"/"+E)}};function _l(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var d=new Uint8Array(1);return function(){return crypto.getRandomValues(d),d[0]}}else if(g)try{var E=require("crypto");return function(){return E.randomBytes(1)[0]}}catch(I){}return function(){vr("randomDevice")}}var Yn={resolve:function(){for(var d="",E=!1,I=arguments.length-1;I>=-1&&!E;I--){var D=I>=0?arguments[I]:S.cwd();if(typeof D!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!D)return"";d=D+"/"+d,E=D.charAt(0)==="/"}return d=St.normalizeArray(d.split("/").filter(function(M){return!!M}),!E).join("/"),(E?"/":"")+d||"."},relative:function(d,E){d=Yn.resolve(d).substr(1),E=Yn.resolve(E).substr(1);function I(_e){for(var ot=0;ot<_e.length&&_e[ot]==="";ot++);for(var Bt=_e.length-1;Bt>=0&&_e[Bt]==="";Bt--);return ot>Bt?[]:_e.slice(ot,Bt-ot+1)}for(var D=I(d.split("/")),M=I(E.split("/")),z=Math.min(D.length,M.length),ie=z,we=0;we0?E=D.slice(0,M).toString("utf-8"):E=null}else typeof window!="undefined"&&typeof window.prompt=="function"?(E=window.prompt("Input: "),E!==null&&(E+=` +`)):typeof readline=="function"&&(E=readline(),E!==null&&(E+=` +`));if(!E)return null;d.input=TA(E,!0)}return d.input.shift()},put_char:function(d,E){E===null||E===10?(v(je(d.output,0)),d.output=[]):E!=0&&d.output.push(E)},flush:function(d){d.output&&d.output.length>0&&(v(je(d.output,0)),d.output=[])}},default_tty1_ops:{put_char:function(d,E){E===null||E===10?(x(je(d.output,0)),d.output=[]):E!=0&&d.output.push(E)},flush:function(d){d.output&&d.output.length>0&&(x(je(d.output,0)),d.output=[])}}};function ds(d){for(var E=q(d,65536),I=Et(E);d=E)){var D=1024*1024;E=Math.max(E,I*(I>>0),I!=0&&(E=Math.max(E,256));var M=d.contents;d.contents=new Uint8Array(E),d.usedBytes>0&&d.contents.set(M.subarray(0,d.usedBytes),0)}},resizeFileStorage:function(d,E){if(d.usedBytes!=E)if(E==0)d.contents=null,d.usedBytes=0;else{var I=d.contents;d.contents=new Uint8Array(E),I&&d.contents.set(I.subarray(0,Math.min(E,d.usedBytes))),d.usedBytes=E}},node_ops:{getattr:function(d){var E={};return E.dev=S.isChrdev(d.mode)?d.id:1,E.ino=d.id,E.mode=d.mode,E.nlink=1,E.uid=0,E.gid=0,E.rdev=d.rdev,S.isDir(d.mode)?E.size=4096:S.isFile(d.mode)?E.size=d.usedBytes:S.isLink(d.mode)?E.size=d.link.length:E.size=0,E.atime=new Date(d.timestamp),E.mtime=new Date(d.timestamp),E.ctime=new Date(d.timestamp),E.blksize=4096,E.blocks=Math.ceil(E.size/E.blksize),E},setattr:function(d,E){E.mode!==void 0&&(d.mode=E.mode),E.timestamp!==void 0&&(d.timestamp=E.timestamp),E.size!==void 0&&pt.resizeFileStorage(d,E.size)},lookup:function(d,E){throw S.genericErrors[44]},mknod:function(d,E,I,D){return pt.createNode(d,E,I,D)},rename:function(d,E,I){if(S.isDir(d.mode)){var D;try{D=S.lookupNode(E,I)}catch(z){}if(D)for(var M in D.contents)throw new S.ErrnoError(55)}delete d.parent.contents[d.name],d.parent.timestamp=Date.now(),d.name=I,E.contents[I]=d,E.timestamp=d.parent.timestamp,d.parent=E},unlink:function(d,E){delete d.contents[E],d.timestamp=Date.now()},rmdir:function(d,E){var I=S.lookupNode(d,E);for(var D in I.contents)throw new S.ErrnoError(55);delete d.contents[E],d.timestamp=Date.now()},readdir:function(d){var E=[".",".."];for(var I in d.contents)!d.contents.hasOwnProperty(I)||E.push(I);return E},symlink:function(d,E,I){var D=pt.createNode(d,E,511|40960,0);return D.link=I,D},readlink:function(d){if(!S.isLink(d.mode))throw new S.ErrnoError(28);return d.link}},stream_ops:{read:function(d,E,I,D,M){var z=d.node.contents;if(M>=d.node.usedBytes)return 0;var ie=Math.min(d.node.usedBytes-M,D);if(ie>8&&z.subarray)E.set(z.subarray(M,M+ie),I);else for(var we=0;we0||D+I>2)}catch(I){throw I.code?new S.ErrnoError(lt.convertNodeCode(I)):I}return E.mode},realPath:function(d){for(var E=[];d.parent!==d;)E.push(d.name),d=d.parent;return E.push(d.mount.opts.root),E.reverse(),St.join.apply(null,E)},flagsForNode:function(d){d&=~2097152,d&=~2048,d&=~32768,d&=~524288;var E=0;for(var I in lt.flagsForNodeMap)d&I&&(E|=lt.flagsForNodeMap[I],d^=I);if(d)throw new S.ErrnoError(28);return E},node_ops:{getattr:function(d){var E=lt.realPath(d),I;try{I=Oe.lstatSync(E)}catch(D){throw D.code?new S.ErrnoError(lt.convertNodeCode(D)):D}return lt.isWindows&&!I.blksize&&(I.blksize=4096),lt.isWindows&&!I.blocks&&(I.blocks=(I.size+I.blksize-1)/I.blksize|0),{dev:I.dev,ino:I.ino,mode:I.mode,nlink:I.nlink,uid:I.uid,gid:I.gid,rdev:I.rdev,size:I.size,atime:I.atime,mtime:I.mtime,ctime:I.ctime,blksize:I.blksize,blocks:I.blocks}},setattr:function(d,E){var I=lt.realPath(d);try{if(E.mode!==void 0&&(Oe.chmodSync(I,E.mode),d.mode=E.mode),E.timestamp!==void 0){var D=new Date(E.timestamp);Oe.utimesSync(I,D,D)}E.size!==void 0&&Oe.truncateSync(I,E.size)}catch(M){throw M.code?new S.ErrnoError(lt.convertNodeCode(M)):M}},lookup:function(d,E){var I=St.join2(lt.realPath(d),E),D=lt.getMode(I);return lt.createNode(d,E,D)},mknod:function(d,E,I,D){var M=lt.createNode(d,E,I,D),z=lt.realPath(M);try{S.isDir(M.mode)?Oe.mkdirSync(z,M.mode):Oe.writeFileSync(z,"",{mode:M.mode})}catch(ie){throw ie.code?new S.ErrnoError(lt.convertNodeCode(ie)):ie}return M},rename:function(d,E,I){var D=lt.realPath(d),M=St.join2(lt.realPath(E),I);try{Oe.renameSync(D,M)}catch(z){throw z.code?new S.ErrnoError(lt.convertNodeCode(z)):z}d.name=I},unlink:function(d,E){var I=St.join2(lt.realPath(d),E);try{Oe.unlinkSync(I)}catch(D){throw D.code?new S.ErrnoError(lt.convertNodeCode(D)):D}},rmdir:function(d,E){var I=St.join2(lt.realPath(d),E);try{Oe.rmdirSync(I)}catch(D){throw D.code?new S.ErrnoError(lt.convertNodeCode(D)):D}},readdir:function(d){var E=lt.realPath(d);try{return Oe.readdirSync(E)}catch(I){throw I.code?new S.ErrnoError(lt.convertNodeCode(I)):I}},symlink:function(d,E,I){var D=St.join2(lt.realPath(d),E);try{Oe.symlinkSync(I,D)}catch(M){throw M.code?new S.ErrnoError(lt.convertNodeCode(M)):M}},readlink:function(d){var E=lt.realPath(d);try{return E=Oe.readlinkSync(E),E=Hu.relative(Hu.resolve(d.mount.opts.root),E),E}catch(I){throw I.code?new S.ErrnoError(lt.convertNodeCode(I)):I}}},stream_ops:{open:function(d){var E=lt.realPath(d.node);try{S.isFile(d.node.mode)&&(d.nfd=Oe.openSync(E,lt.flagsForNode(d.flags)))}catch(I){throw I.code?new S.ErrnoError(lt.convertNodeCode(I)):I}},close:function(d){try{S.isFile(d.node.mode)&&d.nfd&&Oe.closeSync(d.nfd)}catch(E){throw E.code?new S.ErrnoError(lt.convertNodeCode(E)):E}},read:function(d,E,I,D,M){if(D===0)return 0;try{return Oe.readSync(d.nfd,lt.bufferFrom(E.buffer),I,D,M)}catch(z){throw new S.ErrnoError(lt.convertNodeCode(z))}},write:function(d,E,I,D,M){try{return Oe.writeSync(d.nfd,lt.bufferFrom(E.buffer),I,D,M)}catch(z){throw new S.ErrnoError(lt.convertNodeCode(z))}},llseek:function(d,E,I){var D=E;if(I===1)D+=d.position;else if(I===2&&S.isFile(d.node.mode))try{var M=Oe.fstatSync(d.nfd);D+=M.size}catch(z){throw new S.ErrnoError(lt.convertNodeCode(z))}if(D<0)throw new S.ErrnoError(28);return D},mmap:function(d,E,I,D,M,z){if(E!==0)throw new S.ErrnoError(28);if(!S.isFile(d.node.mode))throw new S.ErrnoError(43);var ie=ds(I);return lt.stream_ops.read(d,pe,ie,I,D),{ptr:ie,allocated:!0}},msync:function(d,E,I,D,M){if(!S.isFile(d.node.mode))throw new S.ErrnoError(43);if(M&2)return 0;var z=lt.stream_ops.write(d,E,0,D,I,!1);return 0}}},mn={lookupPath:function(d){return{path:d,node:{mode:lt.getMode(d)}}},createStandardStreams:function(){S.streams[0]={fd:0,nfd:0,position:0,path:"",flags:0,tty:!0,seekable:!1};for(var d=1;d<3;d++)S.streams[d]={fd:d,nfd:d,position:0,path:"",flags:577,tty:!0,seekable:!1}},cwd:function(){return process.cwd()},chdir:function(){process.chdir.apply(void 0,arguments)},mknod:function(d,E){S.isDir(d)?Oe.mkdirSync(d,E):Oe.writeFileSync(d,"",{mode:E})},mkdir:function(){Oe.mkdirSync.apply(void 0,arguments)},symlink:function(){Oe.symlinkSync.apply(void 0,arguments)},rename:function(){Oe.renameSync.apply(void 0,arguments)},rmdir:function(){Oe.rmdirSync.apply(void 0,arguments)},readdir:function(){Oe.readdirSync.apply(void 0,arguments)},unlink:function(){Oe.unlinkSync.apply(void 0,arguments)},readlink:function(){return Oe.readlinkSync.apply(void 0,arguments)},stat:function(){return Oe.statSync.apply(void 0,arguments)},lstat:function(){return Oe.lstatSync.apply(void 0,arguments)},chmod:function(){Oe.chmodSync.apply(void 0,arguments)},fchmod:function(){Oe.fchmodSync.apply(void 0,arguments)},chown:function(){Oe.chownSync.apply(void 0,arguments)},fchown:function(){Oe.fchownSync.apply(void 0,arguments)},truncate:function(){Oe.truncateSync.apply(void 0,arguments)},ftruncate:function(d,E){if(E<0)throw new S.ErrnoError(28);Oe.ftruncateSync.apply(void 0,arguments)},utime:function(){Oe.utimesSync.apply(void 0,arguments)},open:function(d,E,I,D){typeof E=="string"&&(E=$s.modeStringToFlags(E));var M=Oe.openSync(d,lt.flagsForNode(E),I),z=D!=null?D:S.nextfd(M),ie={fd:z,nfd:M,position:0,path:d,flags:E,seekable:!0};return S.streams[z]=ie,ie},close:function(d){d.stream_ops||Oe.closeSync(d.nfd),S.closeStream(d.fd)},llseek:function(d,E,I){if(d.stream_ops)return $s.llseek(d,E,I);var D=E;if(I===1)D+=d.position;else if(I===2)D+=Oe.fstatSync(d.nfd).size;else if(I!==0)throw new S.ErrnoError(Po.EINVAL);if(D<0)throw new S.ErrnoError(Po.EINVAL);return d.position=D,D},read:function(d,E,I,D,M){if(d.stream_ops)return $s.read(d,E,I,D,M);var z=typeof M!="undefined";!z&&d.seekable&&(M=d.position);var ie=Oe.readSync(d.nfd,lt.bufferFrom(E.buffer),I,D,M);return z||(d.position+=ie),ie},write:function(d,E,I,D,M){if(d.stream_ops)return $s.write(d,E,I,D,M);d.flags&+"1024"&&S.llseek(d,0,+"2");var z=typeof M!="undefined";!z&&d.seekable&&(M=d.position);var ie=Oe.writeSync(d.nfd,lt.bufferFrom(E.buffer),I,D,M);return z||(d.position+=ie),ie},allocate:function(){throw new S.ErrnoError(Po.EOPNOTSUPP)},mmap:function(d,E,I,D,M,z){if(d.stream_ops)return $s.mmap(d,E,I,D,M,z);if(E!==0)throw new S.ErrnoError(28);var ie=ds(I);return S.read(d,pe,ie,I,D),{ptr:ie,allocated:!0}},msync:function(d,E,I,D,M){return d.stream_ops?$s.msync(d,E,I,D,M):(M&2||S.write(d,E,0,D,I),0)},munmap:function(){return 0},ioctl:function(){throw new S.ErrnoError(Po.ENOTTY)}},S={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(d,E){if(d=Yn.resolve(S.cwd(),d),E=E||{},!d)return{path:"",node:null};var I={follow_mount:!0,recurse_count:0};for(var D in I)E[D]===void 0&&(E[D]=I[D]);if(E.recurse_count>8)throw new S.ErrnoError(32);for(var M=St.normalizeArray(d.split("/").filter(function(ut){return!!ut}),!1),z=S.root,ie="/",we=0;we40)throw new S.ErrnoError(32)}}return{path:ie,node:z}},getPath:function(d){for(var E;;){if(S.isRoot(d)){var I=d.mount.mountpoint;return E?I[I.length-1]!=="/"?I+"/"+E:I+E:I}E=E?d.name+"/"+E:d.name,d=d.parent}},hashName:function(d,E){for(var I=0,D=0;D>>0)%S.nameTable.length},hashAddNode:function(d){var E=S.hashName(d.parent.id,d.name);d.name_next=S.nameTable[E],S.nameTable[E]=d},hashRemoveNode:function(d){var E=S.hashName(d.parent.id,d.name);if(S.nameTable[E]===d)S.nameTable[E]=d.name_next;else for(var I=S.nameTable[E];I;){if(I.name_next===d){I.name_next=d.name_next;break}I=I.name_next}},lookupNode:function(d,E){var I=S.mayLookup(d);if(I)throw new S.ErrnoError(I,d);for(var D=S.hashName(d.id,E),M=S.nameTable[D];M;M=M.name_next){var z=M.name;if(M.parent.id===d.id&&z===E)return M}return S.lookup(d,E)},createNode:function(d,E,I,D){var M=new S.FSNode(d,E,I,D);return S.hashAddNode(M),M},destroyNode:function(d){S.hashRemoveNode(d)},isRoot:function(d){return d===d.parent},isMountpoint:function(d){return!!d.mounted},isFile:function(d){return(d&61440)==32768},isDir:function(d){return(d&61440)==16384},isLink:function(d){return(d&61440)==40960},isChrdev:function(d){return(d&61440)==8192},isBlkdev:function(d){return(d&61440)==24576},isFIFO:function(d){return(d&61440)==4096},isSocket:function(d){return(d&49152)==49152},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(d){var E=S.flagModes[d];if(typeof E=="undefined")throw new Error("Unknown file open mode: "+d);return E},flagsToPermissionString:function(d){var E=["r","w","rw"][d&3];return d&512&&(E+="w"),E},nodePermissions:function(d,E){return S.ignorePermissions?0:E.includes("r")&&!(d.mode&292)||E.includes("w")&&!(d.mode&146)||E.includes("x")&&!(d.mode&73)?2:0},mayLookup:function(d){var E=S.nodePermissions(d,"x");return E||(d.node_ops.lookup?0:2)},mayCreate:function(d,E){try{var I=S.lookupNode(d,E);return 20}catch(D){}return S.nodePermissions(d,"wx")},mayDelete:function(d,E,I){var D;try{D=S.lookupNode(d,E)}catch(z){return z.errno}var M=S.nodePermissions(d,"wx");if(M)return M;if(I){if(!S.isDir(D.mode))return 54;if(S.isRoot(D)||S.getPath(D)===S.cwd())return 10}else if(S.isDir(D.mode))return 31;return 0},mayOpen:function(d,E){return d?S.isLink(d.mode)?32:S.isDir(d.mode)&&(S.flagsToPermissionString(E)!=="r"||E&512)?31:S.nodePermissions(d,S.flagsToPermissionString(E)):44},MAX_OPEN_FDS:4096,nextfd:function(d,E){d=d||0,E=E||S.MAX_OPEN_FDS;for(var I=d;I<=E;I++)if(!S.streams[I])return I;throw new S.ErrnoError(33)},getStream:function(d){return S.streams[d]},createStream:function(d,E,I){S.FSStream||(S.FSStream=function(){},S.FSStream.prototype={object:{get:function(){return this.node},set:function(ie){this.node=ie}},isRead:{get:function(){return(this.flags&2097155)!=1}},isWrite:{get:function(){return(this.flags&2097155)!=0}},isAppend:{get:function(){return this.flags&1024}}});var D=new S.FSStream;for(var M in d)D[M]=d[M];d=D;var z=S.nextfd(E,I);return d.fd=z,S.streams[z]=d,d},closeStream:function(d){S.streams[d]=null},chrdev_stream_ops:{open:function(d){var E=S.getDevice(d.node.rdev);d.stream_ops=E.stream_ops,d.stream_ops.open&&d.stream_ops.open(d)},llseek:function(){throw new S.ErrnoError(70)}},major:function(d){return d>>8},minor:function(d){return d&255},makedev:function(d,E){return d<<8|E},registerDevice:function(d,E){S.devices[d]={stream_ops:E}},getDevice:function(d){return S.devices[d]},getMounts:function(d){for(var E=[],I=[d];I.length;){var D=I.pop();E.push(D),I.push.apply(I,D.mounts)}return E},syncfs:function(d,E){typeof d=="function"&&(E=d,d=!1),S.syncFSRequests++,S.syncFSRequests>1&&x("warning: "+S.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var I=S.getMounts(S.root.mount),D=0;function M(ie){return S.syncFSRequests--,E(ie)}function z(ie){if(ie)return z.errored?void 0:(z.errored=!0,M(ie));++D>=I.length&&M(null)}I.forEach(function(ie){if(!ie.type.syncfs)return z(null);ie.type.syncfs(ie,d,z)})},mount:function(d,E,I){var D=I==="/",M=!I,z;if(D&&S.root)throw new S.ErrnoError(10);if(!D&&!M){var ie=S.lookupPath(I,{follow_mount:!1});if(I=ie.path,z=ie.node,S.isMountpoint(z))throw new S.ErrnoError(10);if(!S.isDir(z.mode))throw new S.ErrnoError(54)}var we={type:d,opts:E,mountpoint:I,mounts:[]},me=d.mount(we);return me.mount=we,we.root=me,D?S.root=me:z&&(z.mounted=we,z.mount&&z.mount.mounts.push(we)),me},unmount:function(d){var E=S.lookupPath(d,{follow_mount:!1});if(!S.isMountpoint(E.node))throw new S.ErrnoError(28);var I=E.node,D=I.mounted,M=S.getMounts(D);Object.keys(S.nameTable).forEach(function(ie){for(var we=S.nameTable[ie];we;){var me=we.name_next;M.includes(we.mount)&&S.destroyNode(we),we=me}}),I.mounted=null;var z=I.mount.mounts.indexOf(D);I.mount.mounts.splice(z,1)},lookup:function(d,E){return d.node_ops.lookup(d,E)},mknod:function(d,E,I){var D=S.lookupPath(d,{parent:!0}),M=D.node,z=St.basename(d);if(!z||z==="."||z==="..")throw new S.ErrnoError(28);var ie=S.mayCreate(M,z);if(ie)throw new S.ErrnoError(ie);if(!M.node_ops.mknod)throw new S.ErrnoError(63);return M.node_ops.mknod(M,z,E,I)},create:function(d,E){return E=E!==void 0?E:438,E&=4095,E|=32768,S.mknod(d,E,0)},mkdir:function(d,E){return E=E!==void 0?E:511,E&=511|512,E|=16384,S.mknod(d,E,0)},mkdirTree:function(d,E){for(var I=d.split("/"),D="",M=0;Mthis.length-1||ut<0)){var st=ut%this.chunkSize,yt=ut/this.chunkSize|0;return this.getter(yt)[st]}},z.prototype.setDataGetter=function(ut){this.getter=ut},z.prototype.cacheLength=function(){var ut=new XMLHttpRequest;if(ut.open("HEAD",I,!1),ut.send(null),!(ut.status>=200&&ut.status<300||ut.status===304))throw new Error("Couldn't load "+I+". Status: "+ut.status);var st=Number(ut.getResponseHeader("Content-length")),yt,xe=(yt=ut.getResponseHeader("Accept-Ranges"))&&yt==="bytes",Wn=(yt=ut.getResponseHeader("Content-Encoding"))&&yt==="gzip",Mi=1024*1024;xe||(Mi=st);var HA=function(Cs,Pa){if(Cs>Pa)throw new Error("invalid range ("+Cs+", "+Pa+") or no bytes requested!");if(Pa>st-1)throw new Error("only "+st+" bytes available! programmer error!");var qr=new XMLHttpRequest;if(qr.open("GET",I,!1),st!==Mi&&qr.setRequestHeader("Range","bytes="+Cs+"-"+Pa),typeof Uint8Array!="undefined"&&(qr.responseType="arraybuffer"),qr.overrideMimeType&&qr.overrideMimeType("text/plain; charset=x-user-defined"),qr.send(null),!(qr.status>=200&&qr.status<300||qr.status===304))throw new Error("Couldn't load "+I+". Status: "+qr.status);return qr.response!==void 0?new Uint8Array(qr.response||[]):TA(qr.responseText||"",!0)},Yr=this;Yr.setDataGetter(function(Cs){var Pa=Cs*Mi,qr=(Cs+1)*Mi-1;if(qr=Math.min(qr,st-1),typeof Yr.chunks[Cs]=="undefined"&&(Yr.chunks[Cs]=HA(Pa,qr)),typeof Yr.chunks[Cs]=="undefined")throw new Error("doXHR failed!");return Yr.chunks[Cs]}),(Wn||!st)&&(Mi=st=1,st=this.getter(0).length,Mi=st,v("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=st,this._chunkSize=Mi,this.lengthKnown=!0},typeof XMLHttpRequest!="undefined"){if(!u)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var ie=new z;Object.defineProperties(ie,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var we={isDevice:!1,contents:ie}}else var we={isDevice:!1,url:I};var me=S.createFile(d,E,we,D,M);we.contents?me.contents=we.contents:we.url&&(me.contents=null,me.url=we.url),Object.defineProperties(me,{usedBytes:{get:function(){return this.contents.length}}});var _e={},ot=Object.keys(me.stream_ops);return ot.forEach(function(Bt){var ut=me.stream_ops[Bt];_e[Bt]=function(){return S.forceLoadFile(me),ut.apply(null,arguments)}}),_e.read=function(ut,st,yt,xe,Wn){S.forceLoadFile(me);var Mi=ut.node.contents;if(Wn>=Mi.length)return 0;var HA=Math.min(Mi.length-Wn,xe);if(Mi.slice)for(var Yr=0;Yr>2]=D.dev,fe[I+4>>2]=0,fe[I+8>>2]=D.ino,fe[I+12>>2]=D.mode,fe[I+16>>2]=D.nlink,fe[I+20>>2]=D.uid,fe[I+24>>2]=D.gid,fe[I+28>>2]=D.rdev,fe[I+32>>2]=0,Ae=[D.size>>>0,(Dr=D.size,+Math.abs(Dr)>=1?Dr>0?(Math.min(+Math.floor(Dr/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Dr-+(~~Dr>>>0))/4294967296)>>>0:0)],fe[I+40>>2]=Ae[0],fe[I+44>>2]=Ae[1],fe[I+48>>2]=4096,fe[I+52>>2]=D.blocks,fe[I+56>>2]=D.atime.getTime()/1e3|0,fe[I+60>>2]=0,fe[I+64>>2]=D.mtime.getTime()/1e3|0,fe[I+68>>2]=0,fe[I+72>>2]=D.ctime.getTime()/1e3|0,fe[I+76>>2]=0,Ae=[D.ino>>>0,(Dr=D.ino,+Math.abs(Dr)>=1?Dr>0?(Math.min(+Math.floor(Dr/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Dr-+(~~Dr>>>0))/4294967296)>>>0:0)],fe[I+80>>2]=Ae[0],fe[I+84>>2]=Ae[1],0},doMsync:function(d,E,I,D,M){var z=V.slice(d,d+I);S.msync(E,z,M,I,D)},doMkdir:function(d,E){return d=St.normalize(d),d[d.length-1]==="/"&&(d=d.substr(0,d.length-1)),S.mkdir(d,E,0),0},doMknod:function(d,E,I){switch(E&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return S.mknod(d,E,I),0},doReadlink:function(d,E,I){if(I<=0)return-28;var D=S.readlink(d),M=Math.min(I,he(D)),z=pe[E+M];return be(D,E,I+1),pe[E+M]=z,M},doAccess:function(d,E){if(E&~7)return-28;var I,D=S.lookupPath(d,{follow:!0});if(I=D.node,!I)return-44;var M="";return E&4&&(M+="r"),E&2&&(M+="w"),E&1&&(M+="x"),M&&S.nodePermissions(I,M)?-2:0},doDup:function(d,E,I){var D=S.getStream(I);return D&&S.close(D),S.open(d,E,0,I,I).fd},doReadv:function(d,E,I,D){for(var M=0,z=0;z>2],we=fe[E+(z*8+4)>>2],me=S.read(d,pe,ie,we,D);if(me<0)return-1;if(M+=me,me>2],we=fe[E+(z*8+4)>>2],me=S.write(d,pe,ie,we,D);if(me<0)return-1;M+=me}return M},varargs:void 0,get:function(){Tt.varargs+=4;var d=fe[Tt.varargs-4>>2];return d},getStr:function(d){var E=re(d);return E},getStreamFromFD:function(d){var E=S.getStream(d);if(!E)throw new S.ErrnoError(8);return E},get64:function(d,E){return d}};function Ku(d,E){try{return d=Tt.getStr(d),S.chmod(d,E),0}catch(I){return(typeof S=="undefined"||!(I instanceof S.ErrnoError))&&vr(I),-I.errno}}function Vl(d){return fe[Rt()>>2]=d,d}function xh(d,E,I){Tt.varargs=I;try{var D=Tt.getStreamFromFD(d);switch(E){case 0:{var M=Tt.get();if(M<0)return-28;var z;return z=S.open(D.path,D.flags,0,M),z.fd}case 1:case 2:return 0;case 3:return D.flags;case 4:{var M=Tt.get();return D.flags|=M,0}case 12:{var M=Tt.get(),ie=0;return Qe[M+ie>>1]=2,0}case 13:case 14:return 0;case 16:case 8:return-28;case 9:return Vl(28),-1;default:return-28}}catch(we){return(typeof S=="undefined"||!(we instanceof S.ErrnoError))&&vr(we),-we.errno}}function kh(d,E){try{var I=Tt.getStreamFromFD(d);return Tt.doStat(S.stat,I.path,E)}catch(D){return(typeof S=="undefined"||!(D instanceof S.ErrnoError))&&vr(D),-D.errno}}function Ph(d,E,I){Tt.varargs=I;try{var D=Tt.getStreamFromFD(d);switch(E){case 21509:case 21505:return D.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return D.tty?0:-59;case 21519:{if(!D.tty)return-59;var M=Tt.get();return fe[M>>2]=0,0}case 21520:return D.tty?-28:-59;case 21531:{var M=Tt.get();return S.ioctl(D,E,M)}case 21523:return D.tty?0:-59;case 21524:return D.tty?0:-59;default:vr("bad ioctl syscall "+E)}}catch(z){return(typeof S=="undefined"||!(z instanceof S.ErrnoError))&&vr(z),-z.errno}}function Dh(d,E,I){Tt.varargs=I;try{var D=Tt.getStr(d),M=I?Tt.get():0,z=S.open(D,E,M);return z.fd}catch(ie){return(typeof S=="undefined"||!(ie instanceof S.ErrnoError))&&vr(ie),-ie.errno}}function Rh(d,E){try{return d=Tt.getStr(d),E=Tt.getStr(E),S.rename(d,E),0}catch(I){return(typeof S=="undefined"||!(I instanceof S.ErrnoError))&&vr(I),-I.errno}}function j(d){try{return d=Tt.getStr(d),S.rmdir(d),0}catch(E){return(typeof S=="undefined"||!(E instanceof S.ErrnoError))&&vr(E),-E.errno}}function wt(d,E){try{return d=Tt.getStr(d),Tt.doStat(S.stat,d,E)}catch(I){return(typeof S=="undefined"||!(I instanceof S.ErrnoError))&&vr(I),-I.errno}}function LA(d){try{return d=Tt.getStr(d),S.unlink(d),0}catch(E){return(typeof S=="undefined"||!(E instanceof S.ErrnoError))&&vr(E),-E.errno}}function $i(d,E,I){V.copyWithin(d,E,E+I)}function Xl(d){try{return A.grow(d-ve.byteLength+65535>>>16),Ei(A.buffer),1}catch(E){}}function $e(d){var E=V.length;d=d>>>0;var I=2147483648;if(d>I)return!1;for(var D=1;D<=4;D*=2){var M=E*(1+.2/D);M=Math.min(M,d+100663296);var z=Math.min(I,ke(Math.max(d,M),65536)),ie=Xl(z);if(ie)return!0}return!1}function Sa(d){try{var E=Tt.getStreamFromFD(d);return S.close(E),0}catch(I){return(typeof S=="undefined"||!(I instanceof S.ErrnoError))&&vr(I),I.errno}}function Uu(d,E){try{var I=Tt.getStreamFromFD(d),D=I.tty?2:S.isDir(I.mode)?3:S.isLink(I.mode)?7:4;return pe[E>>0]=D,0}catch(M){return(typeof S=="undefined"||!(M instanceof S.ErrnoError))&&vr(M),M.errno}}function yE(d,E,I,D){try{var M=Tt.getStreamFromFD(d),z=Tt.doReadv(M,E,I);return fe[D>>2]=z,0}catch(ie){return(typeof S=="undefined"||!(ie instanceof S.ErrnoError))&&vr(ie),ie.errno}}function Fh(d,E,I,D,M){try{var z=Tt.getStreamFromFD(d),ie=4294967296,we=I*ie+(E>>>0),me=9007199254740992;return we<=-me||we>=me?-61:(S.llseek(z,we,D),Ae=[z.position>>>0,(Dr=z.position,+Math.abs(Dr)>=1?Dr>0?(Math.min(+Math.floor(Dr/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Dr-+(~~Dr>>>0))/4294967296)>>>0:0)],fe[M>>2]=Ae[0],fe[M+4>>2]=Ae[1],z.getdents&&we===0&&D===0&&(z.getdents=null),0)}catch(_e){return(typeof S=="undefined"||!(_e instanceof S.ErrnoError))&&vr(_e),_e.errno}}function wE(d,E,I,D){try{var M=Tt.getStreamFromFD(d),z=Tt.doWritev(M,E,I);return fe[D>>2]=z,0}catch(ie){return(typeof S=="undefined"||!(ie instanceof S.ErrnoError))&&vr(ie),ie.errno}}function gr(d){$(d)}function qn(d){var E=Date.now()/1e3|0;return d&&(fe[d>>2]=E),E}function Zl(){if(Zl.called)return;Zl.called=!0;var d=new Date().getFullYear(),E=new Date(d,0,1),I=new Date(d,6,1),D=E.getTimezoneOffset(),M=I.getTimezoneOffset(),z=Math.max(D,M);fe[zb()>>2]=z*60,fe[Wb()>>2]=Number(D!=M);function ie(Bt){var ut=Bt.toTimeString().match(/\(([A-Za-z ]+)\)$/);return ut?ut[1]:"GMT"}var we=ie(E),me=ie(I),_e=Fe(we),ot=Fe(me);M>2]=_e,fe[Wu()+4>>2]=ot):(fe[Wu()>>2]=ot,fe[Wu()+4>>2]=_e)}function Nh(d){Zl();var E=Date.UTC(fe[d+20>>2]+1900,fe[d+16>>2],fe[d+12>>2],fe[d+8>>2],fe[d+4>>2],fe[d>>2],0),I=new Date(E);fe[d+24>>2]=I.getUTCDay();var D=Date.UTC(I.getUTCFullYear(),0,1,0,0,0,0),M=(I.getTime()-D)/(1e3*60*60*24)|0;return fe[d+28>>2]=M,I.getTime()/1e3|0}var Zs=function(d,E,I,D){d||(d=this),this.parent=d,this.mount=d.mount,this.mounted=null,this.id=S.nextInode++,this.name=E,this.mode=I,this.node_ops={},this.stream_ops={},this.rdev=D},va=292|73,En=146;if(Object.defineProperties(Zs.prototype,{read:{get:function(){return(this.mode&va)===va},set:function(d){d?this.mode|=va:this.mode&=~va}},write:{get:function(){return(this.mode&En)===En},set:function(d){d?this.mode|=En:this.mode&=~En}},isFolder:{get:function(){return S.isDir(this.mode)}},isDevice:{get:function(){return S.isChrdev(this.mode)}}}),S.FSNode=Zs,S.staticInit(),g){var Oe=v5,Hu=require("path");lt.staticInit()}if(g){var $l=function(d){return function(){try{return d.apply(this,arguments)}catch(E){throw E.code?new S.ErrnoError(Po[E.code]):E}}},$s=Object.assign({},S);for(var ec in mn)S[ec]=$l(mn[ec])}else throw new Error("NODERAWFS is currently only supported on Node.js environment.");function TA(d,E,I){var D=I>0?I:he(d)+1,M=new Array(D),z=se(d,M,0,M.length);return E&&(M.length=z),M}var ju=typeof atob=="function"?atob:function(d){var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",I="",D,M,z,ie,we,me,_e,ot=0;d=d.replace(/[^A-Za-z0-9\+\/\=]/g,"");do ie=E.indexOf(d.charAt(ot++)),we=E.indexOf(d.charAt(ot++)),me=E.indexOf(d.charAt(ot++)),_e=E.indexOf(d.charAt(ot++)),D=ie<<2|we>>4,M=(we&15)<<4|me>>2,z=(me&3)<<6|_e,I=I+String.fromCharCode(D),me!==64&&(I=I+String.fromCharCode(M)),_e!==64&&(I=I+String.fromCharCode(z));while(ot0||(Sr(),hs>0))return;function E(){Ue||(Ue=!0,t.calledRun=!0,!oe&&(jn(),i(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),fs()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),E()},1)):E()}if(t.run=UA,t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return UA(),e}}();typeof Gw=="object"&&typeof jP=="object"?jP.exports=GP:typeof define=="function"&&define.amd?define([],function(){return GP}):typeof Gw=="object"&&(Gw.createModule=GP)});var $5=w((Nst,Z5)=>{function KPe(r,e){for(var t=-1,i=r==null?0:r.length,n=Array(i);++t{var UPe=Array.isArray;e9.exports=UPe});var o9=w((Tst,t9)=>{var r9=Jc(),HPe=$5(),jPe=Ks(),GPe=Id(),YPe=1/0,i9=r9?r9.prototype:void 0,n9=i9?i9.toString:void 0;function s9(r){if(typeof r=="string")return r;if(jPe(r))return HPe(r,s9)+"";if(GPe(r))return n9?n9.call(r):"";var e=r+"";return e=="0"&&1/r==-YPe?"-0":e}t9.exports=s9});var lf=w((Ost,a9)=>{var qPe=o9();function JPe(r){return r==null?"":qPe(r)}a9.exports=JPe});var VP=w((Mst,A9)=>{function WPe(r,e,t){var i=-1,n=r.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(n);++i{var zPe=VP();function _Pe(r,e,t){var i=r.length;return t=t===void 0?i:t,!e&&t>=i?r:zPe(r,e,t)}l9.exports=_Pe});var XP=w((Ust,u9)=>{var VPe="\\ud800-\\udfff",XPe="\\u0300-\\u036f",ZPe="\\ufe20-\\ufe2f",$Pe="\\u20d0-\\u20ff",eDe=XPe+ZPe+$Pe,tDe="\\ufe0e\\ufe0f",rDe="\\u200d",iDe=RegExp("["+rDe+VPe+eDe+tDe+"]");function nDe(r){return iDe.test(r)}u9.exports=nDe});var f9=w((Hst,g9)=>{function sDe(r){return r.split("")}g9.exports=sDe});var y9=w((jst,h9)=>{var p9="\\ud800-\\udfff",oDe="\\u0300-\\u036f",aDe="\\ufe20-\\ufe2f",ADe="\\u20d0-\\u20ff",lDe=oDe+aDe+ADe,cDe="\\ufe0e\\ufe0f",uDe="["+p9+"]",ZP="["+lDe+"]",$P="\\ud83c[\\udffb-\\udfff]",gDe="(?:"+ZP+"|"+$P+")",d9="[^"+p9+"]",C9="(?:\\ud83c[\\udde6-\\uddff]){2}",m9="[\\ud800-\\udbff][\\udc00-\\udfff]",fDe="\\u200d",E9=gDe+"?",I9="["+cDe+"]?",hDe="(?:"+fDe+"(?:"+[d9,C9,m9].join("|")+")"+I9+E9+")*",pDe=I9+E9+hDe,dDe="(?:"+[d9+ZP+"?",ZP,C9,m9,uDe].join("|")+")",CDe=RegExp($P+"(?="+$P+")|"+dDe+pDe,"g");function mDe(r){return r.match(CDe)||[]}h9.exports=mDe});var B9=w((Gst,w9)=>{var EDe=f9(),IDe=XP(),yDe=y9();function wDe(r){return IDe(r)?yDe(r):EDe(r)}w9.exports=wDe});var Q9=w((Yst,b9)=>{var BDe=c9(),bDe=XP(),QDe=B9(),SDe=lf();function vDe(r){return function(e){e=SDe(e);var t=bDe(e)?QDe(e):void 0,i=t?t[0]:e.charAt(0),n=t?BDe(t,1).join(""):e.slice(1);return i[r]()+n}}b9.exports=vDe});var v9=w((qst,S9)=>{var xDe=Q9(),kDe=xDe("toUpperCase");S9.exports=kDe});var Zw=w((Jst,x9)=>{var PDe=lf(),DDe=v9();function RDe(r){return DDe(PDe(r).toLowerCase())}x9.exports=RDe});var k9=w((Wst,$w)=>{function FDe(){var r=0,e=1,t=2,i=3,n=4,s=5,o=6,a=7,l=8,c=9,u=10,g=11,f=12,h=13,p=14,m=15,y=16,b=17,v=0,x=1,T=2,q=3,Y=4;function $(A,oe){return 55296<=A.charCodeAt(oe)&&A.charCodeAt(oe)<=56319&&56320<=A.charCodeAt(oe+1)&&A.charCodeAt(oe+1)<=57343}function _(A,oe){oe===void 0&&(oe=0);var ce=A.charCodeAt(oe);if(55296<=ce&&ce<=56319&&oe=1){var Z=A.charCodeAt(oe-1),O=ce;return 55296<=Z&&Z<=56319?(Z-55296)*1024+(O-56320)+65536:O}return ce}function ne(A,oe,ce){var Z=[A].concat(oe).concat([ce]),O=Z[Z.length-2],L=ce,de=Z.lastIndexOf(p);if(de>1&&Z.slice(1,de).every(function(re){return re==i})&&[i,h,b].indexOf(A)==-1)return T;var Be=Z.lastIndexOf(n);if(Be>0&&Z.slice(1,Be).every(function(re){return re==n})&&[f,n].indexOf(O)==-1)return Z.filter(function(re){return re==n}).length%2==1?q:Y;if(O==r&&L==e)return v;if(O==t||O==r||O==e)return L==p&&oe.every(function(re){return re==i})?T:x;if(L==t||L==r||L==e)return x;if(O==o&&(L==o||L==a||L==c||L==u))return v;if((O==c||O==a)&&(L==a||L==l))return v;if((O==u||O==l)&&L==l)return v;if(L==i||L==m)return v;if(L==s)return v;if(O==f)return v;var je=Z.indexOf(i)!=-1?Z.lastIndexOf(i)-1:Z.length-2;return[h,b].indexOf(Z[je])!=-1&&Z.slice(je+1,-1).every(function(re){return re==i})&&L==p||O==m&&[y,b].indexOf(L)!=-1?v:oe.indexOf(n)!=-1?T:O==n&&L==n?v:x}this.nextBreak=function(A,oe){if(oe===void 0&&(oe=0),oe<0)return 0;if(oe>=A.length-1)return A.length;for(var ce=ee(_(A,oe)),Z=[],O=oe+1;O{var NDe=/^(.*?)(\x1b\[[^m]+m|\x1b\]8;;.*?(\x1b\\|\u0007))/,eB;function LDe(){if(eB)return eB;if(typeof Intl.Segmenter!="undefined"){let r=new Intl.Segmenter("en",{granularity:"grapheme"});return eB=e=>Array.from(r.segment(e),({segment:t})=>t)}else{let r=k9(),e=new r;return eB=t=>e.splitGraphemes(t)}}P9.exports=(r,e=0,t=r.length)=>{if(e<0||t<0)throw new RangeError("Negative indices aren't supported by this implementation");let i=t-e,n="",s=0,o=0;for(;r.length>0;){let a=r.match(NDe)||[r,r,void 0],l=LDe()(a[1]),c=Math.min(e-s,l.length);l=l.slice(c);let u=Math.min(i-o,l.length);n+=l.slice(0,u).join(""),s+=c,o+=u,typeof a[2]!="undefined"&&(n+=a[2]),r=r.slice(a[0].length)}return n}});var cf=w((Bot,q9)=>{"use strict";var J9=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]),wot=q9.exports=r=>r?Object.keys(r).map(e=>[J9.has(e)?J9.get(e):e,r[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var uf=w((bot,W9)=>{"use strict";var zDe=require("events"),z9=require("stream"),qd=Bp(),_9=require("string_decoder").StringDecoder,lA=Symbol("EOF"),Jd=Symbol("maybeEmitEnd"),Il=Symbol("emittedEnd"),oB=Symbol("emittingEnd"),aB=Symbol("closed"),V9=Symbol("read"),iD=Symbol("flush"),X9=Symbol("flushChunk"),Nn=Symbol("encoding"),cA=Symbol("decoder"),AB=Symbol("flowing"),Wd=Symbol("paused"),zd=Symbol("resume"),pn=Symbol("bufferLength"),Z9=Symbol("bufferPush"),nD=Symbol("bufferShift"),_i=Symbol("objectMode"),Vi=Symbol("destroyed"),$9=global._MP_NO_ITERATOR_SYMBOLS_!=="1",_De=$9&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),VDe=$9&&Symbol.iterator||Symbol("iterator not implemented"),e_=r=>r==="end"||r==="finish"||r==="prefinish",XDe=r=>r instanceof ArrayBuffer||typeof r=="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0,ZDe=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r);W9.exports=class t_ extends z9{constructor(e){super();this[AB]=!1,this[Wd]=!1,this.pipes=new qd,this.buffer=new qd,this[_i]=e&&e.objectMode||!1,this[_i]?this[Nn]=null:this[Nn]=e&&e.encoding||null,this[Nn]==="buffer"&&(this[Nn]=null),this[cA]=this[Nn]?new _9(this[Nn]):null,this[lA]=!1,this[Il]=!1,this[oB]=!1,this[aB]=!1,this.writable=!0,this.readable=!0,this[pn]=0,this[Vi]=!1}get bufferLength(){return this[pn]}get encoding(){return this[Nn]}set encoding(e){if(this[_i])throw new Error("cannot set encoding in objectMode");if(this[Nn]&&e!==this[Nn]&&(this[cA]&&this[cA].lastNeed||this[pn]))throw new Error("cannot change encoding");this[Nn]!==e&&(this[cA]=e?new _9(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[cA].write(t)))),this[Nn]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_i]}set objectMode(e){this[_i]=this[_i]||!!e}write(e,t,i){if(this[lA])throw new Error("write after end");return this[Vi]?(this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0):(typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8"),!this[_i]&&!Buffer.isBuffer(e)&&(ZDe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):XDe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),!this.objectMode&&!e.length?(this[pn]!==0&&this.emit("readable"),i&&i(),this.flowing):(typeof e=="string"&&!this[_i]&&!(t===this[Nn]&&!this[cA].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Nn]&&(e=this[cA].write(e)),this.flowing?(this[pn]!==0&&this[iD](!0),this.emit("data",e)):this[Z9](e),this[pn]!==0&&this.emit("readable"),i&&i(),this.flowing))}read(e){if(this[Vi])return null;try{return this[pn]===0||e===0||e>this[pn]?null:(this[_i]&&(e=null),this.buffer.length>1&&!this[_i]&&(this.encoding?this.buffer=new qd([Array.from(this.buffer).join("")]):this.buffer=new qd([Buffer.concat(Array.from(this.buffer),this[pn])])),this[V9](e||null,this.buffer.head.value))}finally{this[Jd]()}}[V9](e,t){return e===t.length||e===null?this[nD]():(this.buffer.head.value=t.slice(e),t=t.slice(0,e),this[pn]-=e),this.emit("data",t),!this.buffer.length&&!this[lA]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t="utf8"),e&&this.write(e,t),i&&this.once("end",i),this[lA]=!0,this.writable=!1,(this.flowing||!this[Wd])&&this[Jd](),this}[zd](){this[Vi]||(this[Wd]=!1,this[AB]=!0,this.emit("resume"),this.buffer.length?this[iD]():this[lA]?this[Jd]():this.emit("drain"))}resume(){return this[zd]()}pause(){this[AB]=!1,this[Wd]=!0}get destroyed(){return this[Vi]}get flowing(){return this[AB]}get paused(){return this[Wd]}[Z9](e){return this[_i]?this[pn]+=1:this[pn]+=e.length,this.buffer.push(e)}[nD](){return this.buffer.length&&(this[_i]?this[pn]-=1:this[pn]-=this.buffer.head.value.length),this.buffer.shift()}[iD](e){do;while(this[X9](this[nD]()));!e&&!this.buffer.length&&!this[lA]&&this.emit("drain")}[X9](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[Vi])return;let i=this[Il];t=t||{},e===process.stdout||e===process.stderr?t.end=!1:t.end=t.end!==!1;let n={dest:e,opts:t,ondrain:s=>this[zd]()};return this.pipes.push(n),e.on("drain",n.ondrain),this[zd](),i&&n.opts.end&&n.dest.end(),e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{e==="data"&&!this.pipes.length&&!this.flowing?this[zd]():e_(e)&&this[Il]&&(super.emit(e),this.removeAllListeners(e))}}get emittedEnd(){return this[Il]}[Jd](){!this[oB]&&!this[Il]&&!this[Vi]&&this.buffer.length===0&&this[lA]&&(this[oB]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[aB]&&this.emit("close"),this[oB]=!1)}emit(e,t){if(e!=="error"&&e!=="close"&&e!==Vi&&this[Vi])return;if(e==="data"){if(!t)return;this.pipes.length&&this.pipes.forEach(n=>n.dest.write(t)===!1&&this.pause())}else if(e==="end"){if(this[Il]===!0)return;this[Il]=!0,this.readable=!1,this[cA]&&(t=this[cA].end(),t&&(this.pipes.forEach(n=>n.dest.write(t)),super.emit("data",t))),this.pipes.forEach(n=>{n.dest.removeListener("drain",n.ondrain),n.opts.end&&n.dest.end()})}else if(e==="close"&&(this[aB]=!0,!this[Il]&&!this[Vi]))return;let i=new Array(arguments.length);if(i[0]=e,i[1]=t,arguments.length>2)for(let n=2;n{e.push(i),this[_i]||(e.dataLength+=i.length)}),t.then(()=>e)}concat(){return this[_i]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_i]?Promise.reject(new Error("cannot concat in objectMode")):this[Nn]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(Vi,()=>t(new Error("stream destroyed"))),this.on("end",()=>e()),this.on("error",i=>t(i))})}[_De](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[lA])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[lA]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Vi,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[VDe](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[Vi]?(e?this.emit("error",e):this.emit(Vi),this):(this[Vi]=!0,this.buffer=new qd,this[pn]=0,typeof this.close=="function"&&!this[aB]&&this.close(),e?this.emit("error",e):this.emit(Vi),this)}static isStream(e){return!!e&&(e instanceof t_||e instanceof z9||e instanceof zDe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var i_=w((Qot,r_)=>{var $De=require("zlib").constants||{ZLIB_VERNUM:4736};r_.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},$De))});var fD=w(as=>{"use strict";var sD=require("assert"),yl=require("buffer").Buffer,n_=require("zlib"),Zc=as.constants=i_(),eRe=uf(),s_=yl.concat,$c=Symbol("_superWrite"),_d=class extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},tRe=Symbol("opts"),Vd=Symbol("flushFlag"),o_=Symbol("finishFlushFlag"),oD=Symbol("fullFlushFlag"),pr=Symbol("handle"),lB=Symbol("onError"),gf=Symbol("sawError"),aD=Symbol("level"),AD=Symbol("strategy"),lD=Symbol("ended"),Sot=Symbol("_defaultFullFlush"),cD=class extends eRe{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[gf]=!1,this[lD]=!1,this[tRe]=e,this[Vd]=e.flush,this[o_]=e.finishFlush;try{this[pr]=new n_[t](e)}catch(i){throw new _d(i)}this[lB]=i=>{this[gf]||(this[gf]=!0,this.close(),this.emit("error",i))},this[pr].on("error",i=>this[lB](new _d(i))),this.once("end",()=>this.close)}close(){this[pr]&&(this[pr].close(),this[pr]=null,this.emit("close"))}reset(){if(!this[gf])return sD(this[pr],"zlib binding closed"),this[pr].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[oD]),this.write(Object.assign(yl.alloc(0),{[Vd]:e})))}end(e,t,i){return e&&this.write(e,t),this.flush(this[o_]),this[lD]=!0,super.end(null,null,i)}get ended(){return this[lD]}write(e,t,i){if(typeof t=="function"&&(i=t,t="utf8"),typeof e=="string"&&(e=yl.from(e,t)),this[gf])return;sD(this[pr],"zlib binding closed");let n=this[pr]._handle,s=n.close;n.close=()=>{};let o=this[pr].close;this[pr].close=()=>{},yl.concat=c=>c;let a;try{let c=typeof e[Vd]=="number"?e[Vd]:this[Vd];a=this[pr]._processChunk(e,c),yl.concat=s_}catch(c){yl.concat=s_,this[lB](new _d(c))}finally{this[pr]&&(this[pr]._handle=n,n.close=s,this[pr].close=o,this[pr].removeAllListeners("error"))}this[pr]&&this[pr].on("error",c=>this[lB](new _d(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[$c](yl.from(a[0]));for(let c=1;c{this.flush(n),s()};try{this[pr].params(e,t)}finally{this[pr].flush=i}this[pr]&&(this[aD]=e,this[AD]=t)}}}},a_=class extends wl{constructor(e){super(e,"Deflate")}},A_=class extends wl{constructor(e){super(e,"Inflate")}},uD=Symbol("_portable"),l_=class extends wl{constructor(e){super(e,"Gzip");this[uD]=e&&!!e.portable}[$c](e){return this[uD]?(this[uD]=!1,e[9]=255,super[$c](e)):super[$c](e)}},c_=class extends wl{constructor(e){super(e,"Gunzip")}},u_=class extends wl{constructor(e){super(e,"DeflateRaw")}},g_=class extends wl{constructor(e){super(e,"InflateRaw")}},f_=class extends wl{constructor(e){super(e,"Unzip")}},gD=class extends cD{constructor(e,t){e=e||{},e.flush=e.flush||Zc.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Zc.BROTLI_OPERATION_FINISH,super(e,t),this[oD]=Zc.BROTLI_OPERATION_FLUSH}},h_=class extends gD{constructor(e){super(e,"BrotliCompress")}},p_=class extends gD{constructor(e){super(e,"BrotliDecompress")}};as.Deflate=a_;as.Inflate=A_;as.Gzip=l_;as.Gunzip=c_;as.DeflateRaw=u_;as.InflateRaw=g_;as.Unzip=f_;typeof n_.BrotliCompress=="function"?(as.BrotliCompress=h_,as.BrotliDecompress=p_):as.BrotliCompress=as.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Xd=w(cB=>{"use strict";cB.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);cB.code=new Map(Array.from(cB.name).map(r=>[r[1],r[0]]))});var Zd=w((Dot,d_)=>{"use strict";var kot=Xd(),rRe=uf(),hD=Symbol("slurp");d_.exports=class extends rRe{constructor(e,t,i){super();switch(this.pause(),this.extended=t,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=e.path,this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath,this.uname=e.uname,this.gname=e.gname,t&&this[hD](t),i&&this[hD](i,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-t),this.blockRemain=Math.max(0,n-t),this.ignore?!0:i>=t?super.write(e):super.write(e.slice(0,i))}[hD](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=e[i])}}});var E_=w(pD=>{"use strict";var Rot=pD.encode=(r,e)=>{if(Number.isSafeInteger(r))r<0?nRe(r,e):iRe(r,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},iRe=(r,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=r&255,r=Math.floor(r/256)},nRe=(r,e)=>{e[0]=255;var t=!1;r=r*-1;for(var i=e.length;i>1;i--){var n=r&255;r=Math.floor(r/256),t?e[i-1]=C_(n):n===0?e[i-1]=0:(t=!0,e[i-1]=m_(n))}},Fot=pD.parse=r=>{var e=r[r.length-1],t=r[0],i;if(t===128)i=oRe(r.slice(1,r.length));else if(t===255)i=sRe(r);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(i))throw Error("parsed number outside of javascript safe integer range");return i},sRe=r=>{for(var e=r.length,t=0,i=!1,n=e-1;n>-1;n--){var s=r[n],o;i?o=C_(s):s===0?o=s:(i=!0,o=m_(s)),o!==0&&(t-=o*Math.pow(256,e-n-1))}return t},oRe=r=>{for(var e=r.length,t=0,i=e-1;i>-1;i--){var n=r[i];n!==0&&(t+=n*Math.pow(256,e-i-1))}return t},C_=r=>(255^r)&255,m_=r=>(255^r)+1&255});var hf=w((Lot,I_)=>{"use strict";var dD=Xd(),ff=require("path").posix,y_=E_(),CD=Symbol("slurp"),As=Symbol("type"),w_=class{constructor(e,t,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[As]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,i,n):e&&this.set(e)}decode(e,t,i,n){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=eu(e,t,100),this.mode=Bl(e,t+100,8),this.uid=Bl(e,t+108,8),this.gid=Bl(e,t+116,8),this.size=Bl(e,t+124,12),this.mtime=mD(e,t+136,12),this.cksum=Bl(e,t+148,12),this[CD](i),this[CD](n,!0),this[As]=eu(e,t+156,1),this[As]===""&&(this[As]="0"),this[As]==="0"&&this.path.substr(-1)==="/"&&(this[As]="5"),this[As]==="5"&&(this.size=0),this.linkpath=eu(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=eu(e,t+265,32),this.gname=eu(e,t+297,32),this.devmaj=Bl(e,t+329,8),this.devmin=Bl(e,t+337,8),e[t+475]!==0){let o=eu(e,t+345,155);this.path=o+"/"+this.path}else{let o=eu(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=mD(e,t+476,12),this.ctime=mD(e,t+488,12)}let s=8*32;for(let o=t;o=t+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=aRe(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=tu(e,t,100,s)||this.needPax,this.needPax=bl(e,t+100,8,this.mode)||this.needPax,this.needPax=bl(e,t+108,8,this.uid)||this.needPax,this.needPax=bl(e,t+116,8,this.gid)||this.needPax,this.needPax=bl(e,t+124,12,this.size)||this.needPax,this.needPax=ED(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[As].charCodeAt(0),this.needPax=tu(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=tu(e,t+265,32,this.uname)||this.needPax,this.needPax=tu(e,t+297,32,this.gname)||this.needPax,this.needPax=bl(e,t+329,8,this.devmaj)||this.needPax,this.needPax=bl(e,t+337,8,this.devmin)||this.needPax,this.needPax=tu(e,t+345,i,o)||this.needPax,e[t+475]!==0?this.needPax=tu(e,t+345,155,o)||this.needPax:(this.needPax=tu(e,t+345,130,o)||this.needPax,this.needPax=ED(e,t+476,12,this.atime)||this.needPax,this.needPax=ED(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=t;l{let t=100,i=r,n="",s,o=ff.parse(r).root||".";if(Buffer.byteLength(i)t&&Buffer.byteLength(n)<=e?s=[i.substr(0,t-1),n,!0]:(i=ff.join(ff.basename(n),i),n=ff.dirname(n));while(n!==o&&!s);s||(s=[r.substr(0,t-1),"",!0])}return s},eu=(r,e,t)=>r.slice(e,e+t).toString("utf8").replace(/\0.*/,""),mD=(r,e,t)=>ARe(Bl(r,e,t)),ARe=r=>r===null?null:new Date(r*1e3),Bl=(r,e,t)=>r[e]&128?y_.parse(r.slice(e,e+t)):lRe(r,e,t),cRe=r=>isNaN(r)?null:r,lRe=(r,e,t)=>cRe(parseInt(r.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),uRe={12:8589934591,8:2097151},bl=(r,e,t,i)=>i===null?!1:i>uRe[t]||i<0?(y_.encode(i,r.slice(e,e+t)),!0):(gRe(r,e,t,i),!1),gRe=(r,e,t,i)=>r.write(fRe(i,t),e,t,"ascii"),fRe=(r,e)=>hRe(Math.floor(r).toString(8),e),hRe=(r,e)=>(r.length===e-1?r:new Array(e-r.length-1).join("0")+r+" ")+"\0",ED=(r,e,t,i)=>i===null?!1:bl(r,e,t,i.getTime()/1e3),pRe=new Array(156).join("\0"),tu=(r,e,t,i)=>i===null?!1:(r.write(i+pRe,e,t,"utf8"),i.length!==Buffer.byteLength(i)||i.length>t);I_.exports=w_});var gB=w((Tot,B_)=>{"use strict";var dRe=hf(),CRe=require("path"),uB=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),i=512*Math.ceil(1+t/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new dRe({path:("PaxHeader/"+CRe.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,t,"utf8");for(let s=t+512;s=Math.pow(10,s)&&(s+=1),s+n+i}};uB.parse=(r,e,t)=>new uB(mRe(ERe(r),e),t);var mRe=(r,e)=>e?Object.keys(r).reduce((t,i)=>(t[i]=r[i],t),e):r,ERe=r=>r.replace(/\n$/,"").split(` +`).reduce(IRe,Object.create(null)),IRe=(r,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return r;e=e.substr((t+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return r;let s=i.join("=");return r[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,r};B_.exports=uB});var fB=w((Oot,b_)=>{"use strict";b_.exports=r=>class extends r{warn(e,t,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=t instanceof Error&&t.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(t instanceof Error&&(i=Object.assign(t,i),t=t.message),this.emit("warn",i.tarCode,t,i)):t instanceof Error?this.emit("error",Object.assign(t,i)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}});var yD=w((Mot,Q_)=>{"use strict";var hB=["|","<",">","?",":"],ID=hB.map(r=>String.fromCharCode(61440+r.charCodeAt(0))),yRe=new Map(hB.map((r,e)=>[r,ID[e]])),wRe=new Map(ID.map((r,e)=>[r,hB[e]]));Q_.exports={encode:r=>hB.reduce((e,t)=>e.split(t).join(yRe.get(t)),r),decode:r=>ID.reduce((e,t)=>e.split(t).join(wRe.get(t)),r)}});var v_=w((Kot,S_)=>{"use strict";S_.exports=(r,e,t)=>(r&=4095,t&&(r=(r|384)&~18),e&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)});var xD=w((Yot,x_)=>{"use strict";var k_=uf(),P_=gB(),D_=hf(),Uot=Zd(),sa=require("fs"),pf=require("path"),Hot=Xd(),BRe=16*1024*1024,R_=Symbol("process"),F_=Symbol("file"),N_=Symbol("directory"),wD=Symbol("symlink"),L_=Symbol("hardlink"),$d=Symbol("header"),pB=Symbol("read"),BD=Symbol("lstat"),dB=Symbol("onlstat"),bD=Symbol("onread"),QD=Symbol("onreadlink"),SD=Symbol("openfile"),vD=Symbol("onopenfile"),ru=Symbol("close"),CB=Symbol("mode"),T_=fB(),bRe=yD(),O_=v_(),mB=T_(class extends k_{constructor(e,t){if(t=t||{},super(t),typeof e!="string")throw new TypeError("path is required");this.path=e,this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid(),this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||BRe,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=t.cwd||process.cwd(),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths&&pf.win32.isAbsolute(e)){let n=pf.win32.parse(e);this.path=e.substr(n.root.length),i=n.root}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=bRe.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=t.absolute||pf.resolve(this.cwd,e),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[dB](this.statCache.get(this.absolute)):this[BD]()}[BD](){sa.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[dB](t)})}[dB](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=QRe(e),this.emit("stat",e),this[R_]()}[R_](){switch(this.type){case"File":return this[F_]();case"Directory":return this[N_]();case"SymbolicLink":return this[wD]();default:return this.end()}}[CB](e){return O_(e,this.type==="Directory",this.portable)}[$d](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new D_({path:this.path,linkpath:this.linkpath,mode:this[CB](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&this.write(new P_({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),this.write(this.header.block)}[N_](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[$d](),this.end()}[wD](){sa.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[QD](t)})}[QD](e){this.linkpath=e.replace(/\\/g,"/"),this[$d](),this.end()}[L_](e){this.type="Link",this.linkpath=pf.relative(this.cwd,e).replace(/\\/g,"/"),this.stat.size=0,this[$d](),this.end()}[F_](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[L_](t)}this.linkCache.set(e,this.absolute)}if(this[$d](),this.stat.size===0)return this.end();this[SD]()}[SD](){sa.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[vD](t)})}[vD](e){let t=512*Math.ceil(this.stat.size/512),i=Math.min(t,this.maxReadSize),n=Buffer.allocUnsafe(i);this[pB](e,n,0,n.length,0,this.stat.size,t)}[pB](e,t,i,n,s,o,a){sa.read(e,t,i,n,s,(l,c)=>{if(l)return this[ru](e,()=>this.emit("error",l));this[bD](e,t,i,n,s,o,a,c)})}[ru](e,t){sa.close(e,t)}[bD](e,t,i,n,s,o,a,l){if(l<=0&&o>0){let u=new Error("encountered unexpected EOF");return u.path=this.absolute,u.syscall="read",u.code="EOF",this[ru](e,()=>this.emit("error",u))}if(l>o){let u=new Error("did not encounter expected EOF");return u.path=this.absolute,u.syscall="read",u.code="EOF",this[ru](e,()=>this.emit("error",u))}if(l===o)for(let u=l;uu?this.emit("error",u):this.end());i>=n&&(t=Buffer.allocUnsafe(n),i=0),n=t.length-i,this[pB](e,t,i,n,s,o,a)}}),M_=class extends mB{constructor(e,t){super(e,t)}[BD](){this[dB](sa.lstatSync(this.absolute))}[wD](){this[QD](sa.readlinkSync(this.absolute))}[SD](){this[vD](sa.openSync(this.absolute,"r"))}[pB](e,t,i,n,s,o,a){let l=!0;try{let c=sa.readSync(e,t,i,n,s);this[bD](e,t,i,n,s,o,a,c),l=!1}finally{if(l)try{this[ru](e,()=>{})}catch(c){}}}[ru](e,t){sa.closeSync(e),t()}},SRe=T_(class extends k_{constructor(e,t){t=t||{},super(t),this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.path=e.path,this.mode=this[CB](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=e.linkpath,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(pf.isAbsolute(this.path)&&!this.preservePaths){let n=pf.parse(this.path);i=n.root,this.path=this.path.substr(n.root.length)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new D_({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new P_({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[CB](e){return O_(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&this.write(Buffer.alloc(this.blockRemain)),super.end()}});mB.Sync=M_;mB.Tar=SRe;var QRe=r=>r.isFile()?"File":r.isDirectory()?"Directory":r.isSymbolicLink()?"SymbolicLink":"Unsupported";x_.exports=mB});var SB=w((Jot,K_)=>{"use strict";var kD=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},vRe=uf(),xRe=fD(),kRe=Zd(),PD=xD(),PRe=PD.Sync,DRe=PD.Tar,RRe=Bp(),U_=Buffer.alloc(1024),EB=Symbol("onStat"),IB=Symbol("ended"),oa=Symbol("queue"),df=Symbol("current"),iu=Symbol("process"),yB=Symbol("processing"),H_=Symbol("processJob"),aa=Symbol("jobs"),DD=Symbol("jobDone"),wB=Symbol("addFSEntry"),j_=Symbol("addTarEntry"),RD=Symbol("stat"),FD=Symbol("readdir"),BB=Symbol("onreaddir"),bB=Symbol("pipe"),G_=Symbol("entry"),ND=Symbol("entryOpt"),LD=Symbol("writeEntryClass"),Y_=Symbol("write"),TD=Symbol("ondrain"),QB=require("fs"),q_=require("path"),FRe=fB(),OD=FRe(class extends vRe{constructor(e){super(e);e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[LD]=PD,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new xRe.Gzip(e.gzip),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[TD]()),this.on("resume",t=>this.zip.resume())):this.on("drain",this[TD]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[oa]=new RRe,this[aa]=0,this.jobs=+e.jobs||4,this[yB]=!1,this[IB]=!1}[Y_](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[IB]=!0,this[iu](),this}write(e){if(this[IB])throw new Error("write after end");return e instanceof kRe?this[j_](e):this[wB](e),this.flowing}[j_](e){let t=q_.resolve(this.cwd,e.path);if(this.prefix&&(e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"")),!this.filter(e.path,e))e.resume();else{let i=new kD(e.path,t,!1);i.entry=new DRe(e,this[ND](i)),i.entry.on("end",n=>this[DD](i)),this[aa]+=1,this[oa].push(i)}this[iu]()}[wB](e){let t=q_.resolve(this.cwd,e);this.prefix&&(e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"")),this[oa].push(new kD(e,t)),this[iu]()}[RD](e){e.pending=!0,this[aa]+=1;let t=this.follow?"stat":"lstat";QB[t](e.absolute,(i,n)=>{e.pending=!1,this[aa]-=1,i?this.emit("error",i):this[EB](e,n)})}[EB](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[iu]()}[FD](e){e.pending=!0,this[aa]+=1,QB.readdir(e.absolute,(t,i)=>{if(e.pending=!1,this[aa]-=1,t)return this.emit("error",t);this[BB](e,i)})}[BB](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[iu]()}[iu](){if(!this[yB]){this[yB]=!0;for(let e=this[oa].head;e!==null&&this[aa]this.warn(t,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[G_](e){this[aa]+=1;try{return new this[LD](e.path,this[ND](e)).on("end",()=>this[DD](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[TD](){this[df]&&this[df].entry&&this[df].entry.resume()}[bB](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[wB](o+n)});let t=e.entry,i=this.zip;i?t.on("data",n=>{i.write(n)||t.pause()}):t.on("data",n=>{super.write(n)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),J_=class extends OD{constructor(e){super(e);this[LD]=PRe}pause(){}resume(){}[RD](e){let t=this.follow?"statSync":"lstatSync";this[EB](e,QB[t](e.absolute))}[FD](e,t){this[BB](e,QB.readdirSync(e.absolute))}[bB](e){let t=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[wB](o+n)}),i?t.on("data",n=>{i.write(n)}):t.on("data",n=>{super[Y_](n)})}};OD.Sync=J_;K_.exports=OD});var wf=w(eC=>{"use strict";var NRe=uf(),LRe=require("events").EventEmitter,Us=require("fs"),vB=process.binding("fs"),Wot=vB.writeBuffers,TRe=vB.FSReqWrap||vB.FSReqCallback,Cf=Symbol("_autoClose"),Aa=Symbol("_close"),tC=Symbol("_ended"),or=Symbol("_fd"),W_=Symbol("_finished"),nu=Symbol("_flags"),MD=Symbol("_flush"),KD=Symbol("_handleChunk"),UD=Symbol("_makeBuf"),HD=Symbol("_mode"),xB=Symbol("_needDrain"),mf=Symbol("_onerror"),Ef=Symbol("_onopen"),jD=Symbol("_onread"),su=Symbol("_onwrite"),Ql=Symbol("_open"),Sl=Symbol("_path"),ou=Symbol("_pos"),la=Symbol("_queue"),If=Symbol("_read"),z_=Symbol("_readSize"),vl=Symbol("_reading"),kB=Symbol("_remain"),__=Symbol("_size"),PB=Symbol("_write"),yf=Symbol("_writing"),DB=Symbol("_defaultFlag"),GD=class extends NRe{constructor(e,t){if(t=t||{},super(t),this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[or]=typeof t.fd=="number"?t.fd:null,this[Sl]=e,this[z_]=t.readSize||16*1024*1024,this[vl]=!1,this[__]=typeof t.size=="number"?t.size:Infinity,this[kB]=this[__],this[Cf]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[or]=="number"?this[If]():this[Ql]()}get fd(){return this[or]}get path(){return this[Sl]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ql](){Us.open(this[Sl],"r",(e,t)=>this[Ef](e,t))}[Ef](e,t){e?this[mf](e):(this[or]=t,this.emit("open",t),this[If]())}[UD](){return Buffer.allocUnsafe(Math.min(this[z_],this[kB]))}[If](){if(!this[vl]){this[vl]=!0;let e=this[UD]();if(e.length===0)return process.nextTick(()=>this[jD](null,0,e));Us.read(this[or],e,0,e.length,null,(t,i,n)=>this[jD](t,i,n))}}[jD](e,t,i){this[vl]=!1,e?this[mf](e):this[KD](t,i)&&this[If]()}[Aa](){this[Cf]&&typeof this[or]=="number"&&(Us.close(this[or],e=>this.emit("close")),this[or]=null)}[mf](e){this[vl]=!0,this[Aa](),this.emit("error",e)}[KD](e,t){let i=!1;return this[kB]-=e,e>0&&(i=super.write(ethis[Ef](e,t))}[Ef](e,t){this[DB]&&this[nu]==="r+"&&e&&e.code==="ENOENT"?(this[nu]="w",this[Ql]()):e?this[mf](e):(this[or]=t,this.emit("open",t),this[MD]())}end(e,t){e&&this.write(e,t),this[tC]=!0,!this[yf]&&!this[la].length&&typeof this[or]=="number"&&this[su](null,0)}write(e,t){return typeof e=="string"&&(e=new Buffer(e,t)),this[tC]?(this.emit("error",new Error("write() after end()")),!1):this[or]===null||this[yf]||this[la].length?(this[la].push(e),this[xB]=!0,!1):(this[yf]=!0,this[PB](e),!0)}[PB](e){Us.write(this[or],e,0,e.length,this[ou],(t,i)=>this[su](t,i))}[su](e,t){e?this[mf](e):(this[ou]!==null&&(this[ou]+=t),this[la].length?this[MD]():(this[yf]=!1,this[tC]&&!this[W_]?(this[W_]=!0,this[Aa](),this.emit("finish")):this[xB]&&(this[xB]=!1,this.emit("drain"))))}[MD](){if(this[la].length===0)this[tC]&&this[su](null,0);else if(this[la].length===1)this[PB](this[la].pop());else{let e=this[la];this[la]=[],ORe(this[or],e,this[ou],(t,i)=>this[su](t,i))}}[Aa](){this[Cf]&&typeof this[or]=="number"&&(Us.close(this[or],e=>this.emit("close")),this[or]=null)}},X_=class extends YD{[Ql](){let e;try{e=Us.openSync(this[Sl],this[nu],this[HD])}catch(t){if(this[DB]&&this[nu]==="r+"&&t&&t.code==="ENOENT")return this[nu]="w",this[Ql]();throw t}this[Ef](null,e)}[Aa](){if(this[Cf]&&typeof this[or]=="number"){try{Us.closeSync(this[or])}catch(e){}this[or]=null,this.emit("close")}}[PB](e){try{this[su](null,Us.writeSync(this[or],e,0,e.length,this[ou]))}catch(t){this[su](t,0)}}},ORe=(r,e,t,i)=>{let n=(o,a)=>i(o,a,e),s=new TRe;s.oncomplete=n,vB.writeBuffers(r,e,t,s)};eC.ReadStream=GD;eC.ReadStreamSync=V_;eC.WriteStream=YD;eC.WriteStreamSync=X_});var nC=w((Xot,Z_)=>{"use strict";var MRe=fB(),_ot=require("path"),KRe=hf(),URe=require("events"),HRe=Bp(),jRe=1024*1024,GRe=Zd(),$_=gB(),YRe=fD(),qD=Buffer.from([31,139]),Hs=Symbol("state"),au=Symbol("writeEntry"),uA=Symbol("readEntry"),JD=Symbol("nextEntry"),eV=Symbol("processEntry"),js=Symbol("extendedHeader"),rC=Symbol("globalExtendedHeader"),xl=Symbol("meta"),tV=Symbol("emitMeta"),yr=Symbol("buffer"),gA=Symbol("queue"),Au=Symbol("ended"),rV=Symbol("emittedEnd"),lu=Symbol("emit"),Ln=Symbol("unzip"),RB=Symbol("consumeChunk"),FB=Symbol("consumeChunkSub"),WD=Symbol("consumeBody"),iV=Symbol("consumeMeta"),nV=Symbol("consumeHeader"),NB=Symbol("consuming"),zD=Symbol("bufferConcat"),_D=Symbol("maybeEnd"),iC=Symbol("writing"),kl=Symbol("aborted"),LB=Symbol("onDone"),cu=Symbol("sawValidEntry"),TB=Symbol("sawNullBlock"),OB=Symbol("sawEOF"),qRe=r=>!0;Z_.exports=MRe(class extends URe{constructor(e){e=e||{},super(e),this.file=e.file||"",this[cu]=null,this.on(LB,t=>{(this[Hs]==="begin"||this[cu]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(LB,e.ondone):this.on(LB,t=>{this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||jRe,this.filter=typeof e.filter=="function"?e.filter:qRe,this.writable=!0,this.readable=!1,this[gA]=new HRe,this[yr]=null,this[uA]=null,this[au]=null,this[Hs]="begin",this[xl]="",this[js]=null,this[rC]=null,this[Au]=!1,this[Ln]=null,this[kl]=!1,this[TB]=!1,this[OB]=!1,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[nV](e,t){this[cu]===null&&(this[cu]=!1);let i;try{i=new KRe(e,t,this[js],this[rC])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[TB]?(this[OB]=!0,this[Hs]==="begin"&&(this[Hs]="header"),this[lu]("eof")):(this[TB]=!0,this[lu]("nullBlock"));else if(this[TB]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[au]=new GRe(i,this[js],this[rC]);if(!this[cu])if(s.remain){let o=()=>{s.invalid||(this[cu]=!0)};s.on("end",o)}else this[cu]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[lu]("ignoredEntry",s),this[Hs]="ignore",s.resume()):s.size>0&&(this[xl]="",s.on("data",o=>this[xl]+=o),this[Hs]="meta"):(this[js]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[lu]("ignoredEntry",s),this[Hs]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Hs]="body":(this[Hs]="header",s.end()),this[uA]?this[gA].push(s):(this[gA].push(s),this[JD]())))}}}[eV](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[uA]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[JD]()),t=!1)):(this[uA]=null,t=!1),t}[JD](){do;while(this[eV](this[gA].shift()));if(!this[gA].length){let e=this[uA];!e||e.flowing||e.size===e.remain?this[iC]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[WD](e,t){let i=this[au],n=i.blockRemain,s=n>=e.length&&t===0?e:e.slice(t,t+n);return i.write(s),i.blockRemain||(this[Hs]="header",this[au]=null,i.end()),s.length}[iV](e,t){let i=this[au],n=this[WD](e,t);return this[au]||this[tV](i),n}[lu](e,t,i){!this[gA].length&&!this[uA]?this.emit(e,t,i):this[gA].push([e,t,i])}[tV](e){switch(this[lu]("meta",this[xl]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[js]=$_.parse(this[xl],this[js],!1);break;case"GlobalExtendedHeader":this[rC]=$_.parse(this[xl],this[rC],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[js]=this[js]||Object.create(null),this[js].path=this[xl].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[js]=this[js]||Object.create(null),this[js].linkpath=this[xl].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[kl]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[kl])return;if(this[Ln]===null&&e){if(this[yr]&&(e=Buffer.concat([this[yr],e]),this[yr]=null),e.lengththis[RB](s)),this[Ln].on("error",s=>this.abort(s)),this[Ln].on("end",s=>{this[Au]=!0,this[RB]()}),this[iC]=!0;let n=this[Ln][i?"end":"write"](e);return this[iC]=!1,n}}this[iC]=!0,this[Ln]?this[Ln].write(e):this[RB](e),this[iC]=!1;let t=this[gA].length?!1:this[uA]?this[uA].flowing:!0;return!t&&!this[gA].length&&this[uA].once("drain",i=>this.emit("drain")),t}[zD](e){e&&!this[kl]&&(this[yr]=this[yr]?Buffer.concat([this[yr],e]):e)}[_D](){if(this[Au]&&!this[rV]&&!this[kl]&&!this[NB]){this[rV]=!0;let e=this[au];if(e&&e.blockRemain){let t=this[yr]?this[yr].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[yr]&&e.write(this[yr]),e.end()}this[lu](LB)}}[RB](e){if(this[NB])this[zD](e);else if(!e&&!this[yr])this[_D]();else{if(this[NB]=!0,this[yr]){this[zD](e);let t=this[yr];this[yr]=null,this[FB](t)}else this[FB](e);for(;this[yr]&&this[yr].length>=512&&!this[kl]&&!this[OB];){let t=this[yr];this[yr]=null,this[FB](t)}this[NB]=!1}(!this[yr]||this[Au])&&this[_D]()}[FB](e){let t=0,i=e.length;for(;t+512<=i&&!this[kl]&&!this[OB];)switch(this[Hs]){case"begin":case"header":this[nV](e,t),t+=512;break;case"ignore":case"body":t+=this[WD](e,t);break;case"meta":t+=this[iV](e,t);break;default:throw new Error("invalid state: "+this[Hs])}t{"use strict";var JRe=cf(),oV=nC(),Bf=require("fs"),WRe=wf(),aV=require("path"),Zot=sV.exports=(r,e,t)=>{typeof r=="function"?(t=r,e=null,r={}):Array.isArray(r)&&(e=r,r={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=JRe(r);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&_Re(i,e),i.noResume||zRe(i),i.file&&i.sync?VRe(i):i.file?XRe(i,t):AV(i)},zRe=r=>{let e=r.onentry;r.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},_Re=(r,e)=>{let t=new Map(e.map(s=>[s.replace(/\/+$/,""),!0])),i=r.filter,n=(s,o)=>{let a=o||aV.parse(s).root||".",l=s===a?!1:t.has(s)?t.get(s):n(aV.dirname(s),a);return t.set(s,l),l};r.filter=i?(s,o)=>i(s,o)&&n(s.replace(/\/+$/,"")):s=>n(s.replace(/\/+$/,""))},VRe=r=>{let e=AV(r),t=r.file,i=!0,n;try{let s=Bf.statSync(t),o=r.maxReadSize||16*1024*1024;if(s.size{let t=new oV(r),i=r.maxReadSize||16*1024*1024,n=r.file,s=new Promise((o,a)=>{t.on("error",a),t.on("end",o),Bf.stat(n,(l,c)=>{if(l)a(l);else{let u=new WRe.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(t)}})});return e?s.then(e,e):s},AV=r=>new oV(r)});var hV=w((rat,lV)=>{"use strict";var ZRe=cf(),KB=SB(),eat=require("fs"),cV=wf(),uV=MB(),gV=require("path"),tat=lV.exports=(r,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(r)&&(e=r,r={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=ZRe(r);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?$Re(i,e):i.file?eFe(i,e,t):i.sync?tFe(i,e):rFe(i,e)},$Re=(r,e)=>{let t=new KB.Sync(r),i=new cV.WriteStreamSync(r.file,{mode:r.mode||438});t.pipe(i),fV(t,e)},eFe=(r,e,t)=>{let i=new KB(r),n=new cV.WriteStream(r.file,{mode:r.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return VD(i,e),t?s.then(t,t):s},fV=(r,e)=>{e.forEach(t=>{t.charAt(0)==="@"?uV({file:gV.resolve(r.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>r.add(i)}):r.add(t)}),r.end()},VD=(r,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return uV({file:gV.resolve(r.cwd,t.substr(1)),noResume:!0,onentry:i=>r.add(i)}).then(i=>VD(r,e));r.add(t)}r.end()},tFe=(r,e)=>{let t=new KB.Sync(r);return fV(t,e),t},rFe=(r,e)=>{let t=new KB(r);return VD(t,e),t}});var XD=w((sat,pV)=>{"use strict";var iFe=cf(),dV=SB(),iat=nC(),Gs=require("fs"),CV=wf(),mV=MB(),EV=require("path"),IV=hf(),nat=pV.exports=(r,e,t)=>{let i=iFe(r);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?nFe(i,e):sFe(i,e,t)},nFe=(r,e)=>{let t=new dV.Sync(r),i=!0,n,s;try{try{n=Gs.openSync(r.file,"r+")}catch(l){if(l.code==="ENOENT")n=Gs.openSync(r.file,"w+");else throw l}let o=Gs.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;so.size)break;s+=c,r.mtimeCache&&r.mtimeCache.set(l.path,l.mtime)}i=!1,oFe(r,t,s,n,e)}finally{if(i)try{Gs.closeSync(n)}catch(o){}}},oFe=(r,e,t,i,n)=>{let s=new CV.WriteStreamSync(r.file,{fd:i,start:t});e.pipe(s),aFe(e,n)},sFe=(r,e,t)=>{e=Array.from(e);let i=new dV(r),n=(o,a,l)=>{let c=(p,m)=>{p?Gs.close(o,y=>l(p)):l(null,m)},u=0;if(a===0)return c(null,0);let g=0,f=Buffer.alloc(512),h=(p,m)=>{if(p)return c(p);if(g+=m,g<512&&m)return Gs.read(o,f,g,f.length-g,u+g,h);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(g<512)return c(null,u);let y=new IV(f);if(!y.cksumValid)return c(null,u);let b=512*Math.ceil(y.size/512);if(u+b+512>a||(u+=b+512,u>=a))return c(null,u);r.mtimeCache&&r.mtimeCache.set(y.path,y.mtime),g=0,Gs.read(o,f,0,512,u,h)};Gs.read(o,f,0,512,u,h)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,g)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",Gs.open(r.file,l,c);if(u)return a(u);Gs.fstat(g,(f,h)=>{if(f)return a(f);n(g,h.size,(p,m)=>{if(p)return a(p);let y=new CV.WriteStream(r.file,{fd:g,start:m});i.pipe(y),y.on("error",a),y.on("close",o),yV(i,e)})})};Gs.open(r.file,l,c)});return t?s.then(t,t):s},aFe=(r,e)=>{e.forEach(t=>{t.charAt(0)==="@"?mV({file:EV.resolve(r.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>r.add(i)}):r.add(t)}),r.end()},yV=(r,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return mV({file:EV.resolve(r.cwd,t.substr(1)),noResume:!0,onentry:i=>r.add(i)}).then(i=>yV(r,e));r.add(t)}r.end()}});var BV=w((aat,wV)=>{"use strict";var AFe=cf(),lFe=XD(),oat=wV.exports=(r,e,t)=>{let i=AFe(r);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),cFe(i),lFe(i,e,t)},cFe=r=>{let e=r.filter;r.mtimeCache||(r.mtimeCache=new Map),r.filter=e?(t,i)=>e(t,i)&&!(r.mtimeCache.get(t)>i.mtime):(t,i)=>!(r.mtimeCache.get(t)>i.mtime)}});var SV=w((Aat,bV)=>{var{promisify:QV}=require("util"),Pl=require("fs"),uFe=r=>{if(!r)r={mode:511,fs:Pl};else if(typeof r=="object")r=N({mode:511,fs:Pl},r);else if(typeof r=="number")r={mode:r,fs:Pl};else if(typeof r=="string")r={mode:parseInt(r,8),fs:Pl};else throw new TypeError("invalid options argument");return r.mkdir=r.mkdir||r.fs.mkdir||Pl.mkdir,r.mkdirAsync=QV(r.mkdir),r.stat=r.stat||r.fs.stat||Pl.stat,r.statAsync=QV(r.stat),r.statSync=r.statSync||r.fs.statSync||Pl.statSync,r.mkdirSync=r.mkdirSync||r.fs.mkdirSync||Pl.mkdirSync,r};bV.exports=uFe});var xV=w((lat,vV)=>{var gFe=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:fFe,parse:hFe}=require("path"),pFe=r=>{if(/\0/.test(r))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:r,code:"ERR_INVALID_ARG_VALUE"});if(r=fFe(r),gFe==="win32"){let e=/[*|"<>?:]/,{root:t}=hFe(r);if(e.test(r.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:r,code:"EINVAL"})}return r};vV.exports=pFe});var FV=w((cat,kV)=>{var{dirname:PV}=require("path"),DV=(r,e,t=void 0)=>t===e?Promise.resolve():r.statAsync(e).then(i=>i.isDirectory()?t:void 0,i=>i.code==="ENOENT"?DV(r,PV(e),e):void 0),RV=(r,e,t=void 0)=>{if(t!==e)try{return r.statSync(e).isDirectory()?t:void 0}catch(i){return i.code==="ENOENT"?RV(r,PV(e),e):void 0}};kV.exports={findMade:DV,findMadeSync:RV}});var eR=w((uat,NV)=>{var{dirname:LV}=require("path"),ZD=(r,e,t)=>{e.recursive=!1;let i=LV(r);return i===r?e.mkdirAsync(r,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(r,e).then(()=>t||r,n=>{if(n.code==="ENOENT")return ZD(i,e).then(s=>ZD(r,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(r).then(s=>{if(s.isDirectory())return t;throw n},()=>{throw n})})},$D=(r,e,t)=>{let i=LV(r);if(e.recursive=!1,i===r)try{return e.mkdirSync(r,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(r,e),t||r}catch(n){if(n.code==="ENOENT")return $D(r,e,$D(i,e,t));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(r).isDirectory())throw n}catch(s){throw n}}};NV.exports={mkdirpManual:ZD,mkdirpManualSync:$D}});var MV=w((gat,TV)=>{var{dirname:OV}=require("path"),{findMade:dFe,findMadeSync:CFe}=FV(),{mkdirpManual:mFe,mkdirpManualSync:EFe}=eR(),IFe=(r,e)=>(e.recursive=!0,OV(r)===r?e.mkdirAsync(r,e):dFe(e,r).then(i=>e.mkdirAsync(r,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return mFe(r,e);throw n}))),yFe=(r,e)=>{if(e.recursive=!0,OV(r)===r)return e.mkdirSync(r,e);let i=CFe(e,r);try{return e.mkdirSync(r,e),i}catch(n){if(n.code==="ENOENT")return EFe(r,e);throw n}};TV.exports={mkdirpNative:IFe,mkdirpNativeSync:yFe}});var jV=w((fat,KV)=>{var UV=require("fs"),wFe=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,tR=wFe.replace(/^v/,"").split("."),HV=+tR[0]>10||+tR[0]==10&&+tR[1]>=12,BFe=HV?r=>r.mkdir===UV.mkdir:()=>!1,bFe=HV?r=>r.mkdirSync===UV.mkdirSync:()=>!1;KV.exports={useNative:BFe,useNativeSync:bFe}});var zV=w((hat,GV)=>{var bf=SV(),Qf=xV(),{mkdirpNative:YV,mkdirpNativeSync:qV}=MV(),{mkdirpManual:JV,mkdirpManualSync:WV}=eR(),{useNative:QFe,useNativeSync:SFe}=jV(),Sf=(r,e)=>(r=Qf(r),e=bf(e),QFe(e)?YV(r,e):JV(r,e)),vFe=(r,e)=>(r=Qf(r),e=bf(e),SFe(e)?qV(r,e):WV(r,e));Sf.sync=vFe;Sf.native=(r,e)=>YV(Qf(r),bf(e));Sf.manual=(r,e)=>JV(Qf(r),bf(e));Sf.nativeSync=(r,e)=>qV(Qf(r),bf(e));Sf.manualSync=(r,e)=>WV(Qf(r),bf(e));GV.exports=Sf});var t6=w((pat,_V)=>{"use strict";var Ys=require("fs"),uu=require("path"),xFe=Ys.lchown?"lchown":"chown",kFe=Ys.lchownSync?"lchownSync":"chownSync",VV=Ys.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),XV=(r,e,t)=>{try{return Ys[kFe](r,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},PFe=(r,e,t)=>{try{return Ys.chownSync(r,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},DFe=VV?(r,e,t,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ys.chown(r,e,t,i)}:(r,e,t,i)=>i,rR=VV?(r,e,t)=>{try{return XV(r,e,t)}catch(i){if(i.code!=="EISDIR")throw i;PFe(r,e,t)}}:(r,e,t)=>XV(r,e,t),RFe=process.version,ZV=(r,e,t)=>Ys.readdir(r,e,t),FFe=(r,e)=>Ys.readdirSync(r,e);/^v4\./.test(RFe)&&(ZV=(r,e,t)=>Ys.readdir(r,t));var UB=(r,e,t,i)=>{Ys[xFe](r,e,t,DFe(r,e,t,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},$V=(r,e,t,i,n)=>{if(typeof e=="string")return Ys.lstat(uu.resolve(r,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,$V(r,o,t,i,n)});if(e.isDirectory())iR(uu.resolve(r,e.name),t,i,s=>{if(s)return n(s);let o=uu.resolve(r,e.name);UB(o,t,i,n)});else{let s=uu.resolve(r,e.name);UB(s,t,i,n)}},iR=(r,e,t,i)=>{ZV(r,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return UB(r,e,t,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o==0)return UB(r,e,t,i)}};s.forEach(c=>$V(r,c,e,t,l))})},NFe=(r,e,t,i)=>{if(typeof e=="string")try{let n=Ys.lstatSync(uu.resolve(r,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&e6(uu.resolve(r,e.name),t,i),rR(uu.resolve(r,e.name),t,i)},e6=(r,e,t)=>{let i;try{i=FFe(r,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return rR(r,e,t);throw n}return i&&i.length&&i.forEach(n=>NFe(r,n,e,t)),rR(r,e,t)};_V.exports=iR;iR.sync=e6});var s6=w((mat,nR)=>{"use strict";var r6=zV(),qs=require("fs"),HB=require("path"),i6=t6(),sR=class extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t,this.symlink=e}get name(){return"SylinkError"}},sC=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e,this.code=t}get name(){return"CwdError"}},dat=nR.exports=(r,e,t)=>{let i=e.umask,n=e.mode|448,s=(n&i)!=0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,g=e.cache,f=e.cwd,h=(y,b)=>{y?t(y):(g.set(r,!0),b&&l?i6(b,o,a,v=>h(v)):s?qs.chmod(r,n,t):t())};if(g&&g.get(r)===!0)return h();if(r===f)return qs.stat(r,(y,b)=>{(y||!b.isDirectory())&&(y=new sC(r,y&&y.code||"ENOTDIR")),h(y)});if(c)return r6(r,{mode:n}).then(y=>h(null,y),h);let m=HB.relative(f,r).split(/\/|\\/);jB(f,m,n,g,u,f,null,h)},jB=(r,e,t,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=r+"/"+l;if(i.get(c))return jB(c,e,t,i,n,s,o,a);qs.mkdir(c,t,n6(c,e,t,i,n,s,o,a))},n6=(r,e,t,i,n,s,o,a)=>l=>{if(l){if(l.path&&HB.dirname(l.path)===s&&(l.code==="ENOTDIR"||l.code==="ENOENT"))return a(new sC(s,l.code));qs.lstat(r,(c,u)=>{if(c)a(c);else if(u.isDirectory())jB(r,e,t,i,n,s,o,a);else if(n)qs.unlink(r,g=>{if(g)return a(g);qs.mkdir(r,t,n6(r,e,t,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new sR(r,r+"/"+e.join("/")));a(l)}})}else o=o||r,jB(r,e,t,i,n,s,o,a)},Cat=nR.exports.sync=(r,e)=>{let t=e.umask,i=e.mode|448,n=(i&t)!=0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,g=e.cwd,f=y=>{u.set(r,!0),y&&a&&i6.sync(y,s,o),n&&qs.chmodSync(r,i)};if(u&&u.get(r)===!0)return f();if(r===g){let y=!1,b="ENOTDIR";try{y=qs.statSync(r).isDirectory()}catch(v){b=v.code}finally{if(!y)throw new sC(r,b)}f();return}if(l)return f(r6.sync(r,i));let p=HB.relative(g,r).split(/\/|\\/),m=null;for(let y=p.shift(),b=g;y&&(b+="/"+y);y=p.shift())if(!u.get(b))try{qs.mkdirSync(b,i),m=m||b,u.set(b,!0)}catch(v){if(v.path&&HB.dirname(v.path)===g&&(v.code==="ENOTDIR"||v.code==="ENOENT"))return new sC(g,v.code);let x=qs.lstatSync(b);if(x.isDirectory()){u.set(b,!0);continue}else if(c){qs.unlinkSync(b),qs.mkdirSync(b,i),m=m||b,u.set(b,!0);continue}else if(x.isSymbolicLink())return new sR(b,b+"/"+p.join("/"))}return f(m)}});var A6=w((Eat,o6)=>{var a6=require("assert");o6.exports=()=>{let r=new Map,e=new Map,{join:t}=require("path"),i=u=>t(u).split(/[\\\/]/).slice(0,-1).reduce((g,f)=>g.length?g.concat(t(g[g.length-1],f)):[f],[]),n=new Set,s=u=>{let g=e.get(u);if(!g)throw new Error("function does not have any path reservations");return{paths:g.paths.map(f=>r.get(f)),dirs:[...g.dirs].map(f=>r.get(f))}},o=u=>{let{paths:g,dirs:f}=s(u);return g.every(h=>h[0]===u)&&f.every(h=>h[0]instanceof Set&&h[0].has(u))},a=u=>n.has(u)||!o(u)?!1:(n.add(u),u(()=>l(u)),!0),l=u=>{if(!n.has(u))return!1;let{paths:g,dirs:f}=e.get(u),h=new Set;return g.forEach(p=>{let m=r.get(p);a6.equal(m[0],u),m.length===1?r.delete(p):(m.shift(),typeof m[0]=="function"?h.add(m[0]):m[0].forEach(y=>h.add(y)))}),f.forEach(p=>{let m=r.get(p);a6(m[0]instanceof Set),m[0].size===1&&m.length===1?r.delete(p):m[0].size===1?(m.shift(),h.add(m[0])):m[0].delete(u)}),n.delete(u),h.forEach(p=>a(p)),!0};return{check:o,reserve:(u,g)=>{let f=new Set(u.map(h=>i(h)).reduce((h,p)=>h.concat(p)));return e.set(g,{dirs:f,paths:u}),u.forEach(h=>{let p=r.get(h);p?p.push(g):r.set(h,[g])}),f.forEach(h=>{let p=r.get(h);p?p[p.length-1]instanceof Set?p[p.length-1].add(g):p.push(new Set([g])):r.set(h,[new Set([g])])}),a(g)}}}});var u6=w((Iat,l6)=>{var LFe=process.env.__FAKE_PLATFORM__||process.platform,TFe=LFe==="win32",OFe=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:MFe,O_TRUNC:KFe,O_WRONLY:UFe,UV_FS_O_FILEMAP:c6=0}=OFe.constants,HFe=TFe&&!!c6,jFe=512*1024,GFe=c6|KFe|MFe|UFe;l6.exports=HFe?r=>r"w"});var hR=w((bat,g6)=>{"use strict";var YFe=require("assert"),yat=require("events").EventEmitter,qFe=nC(),$t=require("fs"),JFe=wf(),fA=require("path"),oR=s6(),wat=oR.sync,f6=yD(),WFe=A6(),h6=Symbol("onEntry"),aR=Symbol("checkFs"),p6=Symbol("checkFs2"),AR=Symbol("isReusable"),hA=Symbol("makeFs"),lR=Symbol("file"),cR=Symbol("directory"),GB=Symbol("link"),d6=Symbol("symlink"),C6=Symbol("hardlink"),m6=Symbol("unsupported"),Bat=Symbol("unknown"),E6=Symbol("checkPath"),vf=Symbol("mkdir"),dn=Symbol("onError"),YB=Symbol("pending"),I6=Symbol("pend"),xf=Symbol("unpend"),uR=Symbol("ended"),gR=Symbol("maybeClose"),fR=Symbol("skip"),oC=Symbol("doChown"),aC=Symbol("uid"),AC=Symbol("gid"),y6=require("crypto"),w6=u6(),qB=()=>{throw new Error("sync function called cb somehow?!?")},zFe=(r,e)=>{if(process.platform!=="win32")return $t.unlink(r,e);let t=r+".DELETE."+y6.randomBytes(16).toString("hex");$t.rename(r,t,i=>{if(i)return e(i);$t.unlink(t,e)})},_Fe=r=>{if(process.platform!=="win32")return $t.unlinkSync(r);let e=r+".DELETE."+y6.randomBytes(16).toString("hex");$t.renameSync(r,e),$t.unlinkSync(e)},B6=(r,e,t)=>r===r>>>0?r:e===e>>>0?e:t,JB=class extends qFe{constructor(e){if(e||(e={}),e.ondone=t=>{this[uR]=!0,this[gR]()},super(e),this.reservations=WFe(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[YB]=0,this[uR]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||process.platform==="win32",this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=fA.resolve(e.cwd||process.cwd()),this.strip=+e.strip||0,this.processUmask=process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[h6](t))}warn(e,t,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,t,i)}[gR](){this[uR]&&this[YB]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close"))}[E6](e){if(this.strip){let t=e.path.split(/\/|\\/);if(t.length=this.strip&&(e.linkpath=i.slice(this.strip).join("/"))}}if(!this.preservePaths){let t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;if(fA.win32.isAbsolute(t)){let i=fA.win32.parse(t);e.path=t.substr(i.root.length);let n=i.root;this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:t})}}if(this.win32){let t=fA.win32.parse(e.path);e.path=t.root===""?f6.encode(e.path):t.root+f6.encode(e.path.substr(t.root.length))}return fA.isAbsolute(e.path)?e.absolute=e.path:e.absolute=fA.resolve(this.cwd,e.path),!0}[h6](e){if(!this[E6](e))return e.resume();switch(YFe.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[aR](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[m6](e)}}[dn](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[xf](),t.resume())}[vf](e,t,i){oR(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},i)}[oC](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[aC](e){return B6(this.uid,e.uid,this.processUid)}[AC](e){return B6(this.gid,e.gid,this.processGid)}[lR](e,t){let i=e.mode&4095||this.fmode,n=new JFe.WriteStream(e.absolute,{flags:w6(e.size),mode:i,autoClose:!1});n.on("error",l=>this[dn](l,e));let s=1,o=l=>{if(l)return this[dn](l,e);--s==0&&$t.close(n.fd,c=>{t(),c?this[dn](c,e):this[xf]()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let g=e.atime||new Date,f=e.mtime;$t.futimes(u,g,f,h=>h?$t.utimes(c,g,f,p=>o(p&&h)):o())}if(this[oC](e)){s++;let g=this[aC](e),f=this[AC](e);$t.fchown(u,g,f,h=>h?$t.chown(c,g,f,p=>o(p&&h)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>this[dn](l,e)),e.pipe(a)),a.pipe(n)}[cR](e,t){let i=e.mode&4095||this.dmode;this[vf](e.absolute,i,n=>{if(n)return t(),this[dn](n,e);let s=1,o=a=>{--s==0&&(t(),this[xf](),e.resume())};e.mtime&&!this.noMtime&&(s++,$t.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[oC](e)&&(s++,$t.chown(e.absolute,this[aC](e),this[AC](e),o)),o()})}[m6](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[d6](e,t){this[GB](e,e.linkpath,"symlink",t)}[C6](e,t){this[GB](e,fA.resolve(this.cwd,e.linkpath),"link",t)}[I6](){this[YB]++}[xf](){this[YB]--,this[gR]()}[fR](e){this[xf](),e.resume()}[AR](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[aR](e){this[I6]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,i=>this[p6](e,i))}[p6](e,t){this[vf](fA.dirname(e.absolute),this.dmode,i=>{if(i)return t(),this[dn](i,e);$t.lstat(e.absolute,(n,s)=>{s&&(this.keep||this.newer&&s.mtime>e.mtime)?(this[fR](e),t()):n||this[AR](e,s)?this[hA](null,e,t):s.isDirectory()?e.type==="Directory"?!e.mode||(s.mode&4095)===e.mode?this[hA](null,e,t):$t.chmod(e.absolute,e.mode,o=>this[hA](o,e,t)):$t.rmdir(e.absolute,o=>this[hA](o,e,t)):zFe(e.absolute,o=>this[hA](o,e,t))})})}[hA](e,t,i){if(e)return this[dn](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[lR](t,i);case"Link":return this[C6](t,i);case"SymbolicLink":return this[d6](t,i);case"Directory":case"GNUDumpDir":return this[cR](t,i)}}[GB](e,t,i,n){$t[i](t,e.absolute,s=>{if(s)return this[dn](s,e);n(),this[xf](),e.resume()})}},b6=class extends JB{constructor(e){super(e)}[aR](e){let t=this[vf](fA.dirname(e.absolute),this.dmode,qB);if(t)return this[dn](t,e);try{let i=$t.lstatSync(e.absolute);if(this.keep||this.newer&&i.mtime>e.mtime)return this[fR](e);if(this[AR](e,i))return this[hA](null,e,qB);try{return i.isDirectory()?e.type==="Directory"?e.mode&&(i.mode&4095)!==e.mode&&$t.chmodSync(e.absolute,e.mode):$t.rmdirSync(e.absolute):_Fe(e.absolute),this[hA](null,e,qB)}catch(n){return this[dn](n,e)}}catch(i){return this[hA](null,e,qB)}}[lR](e,t){let i=e.mode&4095||this.fmode,n=l=>{let c;try{$t.closeSync(o)}catch(u){c=u}(l||c)&&this[dn](l||c,e)},s,o;try{o=$t.openSync(e.absolute,w6(e.size),i)}catch(l){return n(l)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>this[dn](l,e)),e.pipe(a)),a.on("data",l=>{try{$t.writeSync(o,l,0,l.length)}catch(c){n(c)}}),a.on("end",l=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,g=e.mtime;try{$t.futimesSync(o,u,g)}catch(f){try{$t.utimesSync(e.absolute,u,g)}catch(h){c=f}}}if(this[oC](e)){let u=this[aC](e),g=this[AC](e);try{$t.fchownSync(o,u,g)}catch(f){try{$t.chownSync(e.absolute,u,g)}catch(h){c=c||f}}}n(c)})}[cR](e,t){let i=e.mode&4095||this.dmode,n=this[vf](e.absolute,i);if(n)return this[dn](n,e);if(e.mtime&&!this.noMtime)try{$t.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(s){}if(this[oC](e))try{$t.chownSync(e.absolute,this[aC](e),this[AC](e))}catch(s){}e.resume()}[vf](e,t){try{return oR.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(i){return i}}[GB](e,t,i,n){try{$t[i+"Sync"](t,e.absolute),e.resume()}catch(s){return this[dn](s,e)}}};JB.Sync=b6;g6.exports=JB});var k6=w((Sat,Q6)=>{"use strict";var VFe=cf(),WB=hR(),S6=require("fs"),v6=wf(),x6=require("path"),Qat=Q6.exports=(r,e,t)=>{typeof r=="function"?(t=r,e=null,r={}):Array.isArray(r)&&(e=r,r={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=VFe(r);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&XFe(i,e),i.file&&i.sync?ZFe(i):i.file?$Fe(i,t):i.sync?eNe(i):tNe(i)},XFe=(r,e)=>{let t=new Map(e.map(s=>[s.replace(/\/+$/,""),!0])),i=r.filter,n=(s,o)=>{let a=o||x6.parse(s).root||".",l=s===a?!1:t.has(s)?t.get(s):n(x6.dirname(s),a);return t.set(s,l),l};r.filter=i?(s,o)=>i(s,o)&&n(s.replace(/\/+$/,"")):s=>n(s.replace(/\/+$/,""))},ZFe=r=>{let e=new WB.Sync(r),t=r.file,i=!0,n,s=S6.statSync(t),o=r.maxReadSize||16*1024*1024;new v6.ReadStreamSync(t,{readSize:o,size:s.size}).pipe(e)},$Fe=(r,e)=>{let t=new WB(r),i=r.maxReadSize||16*1024*1024,n=r.file,s=new Promise((o,a)=>{t.on("error",a),t.on("close",o),S6.stat(n,(l,c)=>{if(l)a(l);else{let u=new v6.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(t)}})});return e?s.then(e,e):s},eNe=r=>new WB.Sync(r),tNe=r=>new WB(r)});var P6=w(pi=>{"use strict";pi.c=pi.create=hV();pi.r=pi.replace=XD();pi.t=pi.list=MB();pi.u=pi.update=BV();pi.x=pi.extract=k6();pi.Pack=SB();pi.Unpack=hR();pi.Parse=nC();pi.ReadEntry=Zd();pi.WriteEntry=xD();pi.Header=hf();pi.Pax=gB();pi.types=Xd()});var L6=w((kat,N6)=>{var dR;N6.exports.getContent=()=>(typeof dR=="undefined"&&(dR=require("zlib").brotliDecompressSync(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MxIU9h30sFd8bSFrp9FD2vKQV+L8hjfhOTJUXPUb/x3Rr9K3FptBbUMlebm48xSmRFpMhhPmGkVF8cuVUuIjJnxJXa1ounFi40T7RMOczN1pX+SMc7Oc+2tJHYTxi4s0QhbDMug7Rk9COX9OadF89oQP5xO1zejgM9nru6oZYKMQn5TSbh3y8I8KVEpMBBaQRotTk+gnRJ/6oPqojCeFs+Pe5LzBCeNxrT4re7R9UsVaI9etNh3pcVjNMnn5peAD3/k0TdF7zpDG8SKIV1YHpgVh2JP9dA83MntXqDzwzI+v13PKZ5STaY/jLEBqfzhTENzkj4bgDFMJAYbGNb8b9683Pp7LvAurNcZnYwZPf90a+nU7JdWUyE4+ys+7oUhaIMbZvPU1o94CaHDgZ8B3K4+NKfM1r/ePUhP7HrHcC0o2gWI4CVW+RWgv7CqIZ/9X1lmAPXI+Y+XtanZQ9/YnC7qAGxqi+QazGaH3BKVB7iCi6P2sGBfHBtyKI7m4fmOCOJ1bPebG250slOEaXVYUmmkS8qL4qz18G78fW/38Iqdd92DSWNioJz4vLl8hmIrR+itRWzmQP+5rk3ASeI9XfTEC22qejk7EQU8SJGPk4+blgvtg7WB6x1yh4CNF0+XEXL+NlLFLqcHJinFlqmjd0OzrSnFjdb5nm2+tDjuQwTKBQ9l8=","base64")).toString()),dR)});var H6=w((CR,U6)=>{(function(r,e){typeof CR=="object"?U6.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(CR,function(){function r(n,s){var o=s?"\u2514":"\u251C";return n?o+="\u2500 ":o+="\u2500\u2500\u2510",o}function e(n,s){var o=[];for(var a in n)!n.hasOwnProperty(a)||s&&typeof n[a]=="function"||o.push(a);return o}function t(n,s,o,a,l,c,u){var g="",f=0,h,p,m=a.slice(0);if(m.push([s,o])&&a.length>0&&(a.forEach(function(b,v){v>0&&(g+=(b[1]?" ":"\u2502")+" "),!p&&b[0]===s&&(p=!0)}),g+=r(n,o)+n,l&&(typeof s!="object"||s instanceof Date)&&(g+=": "+s),p&&(g+=" (circular ref.)"),u(g)),!p&&typeof s=="object"){var y=e(s,c);y.forEach(function(b){h=++f===y.length,t(b,s[b],h,m,l,c,u)})}}var i={};return i.asLines=function(n,s,o,a){var l=typeof o!="function"?o:!1;t(".",n,!1,[],s,l,a||o)},i.asTree=function(n,s,o){var a="";return t(".",n,!1,[],s,o,function(l){a+=l+` +`}),a},i})});var _B=w((sAt,X6)=>{var ENe=Ks(),INe=Id(),yNe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wNe=/^\w*$/;function BNe(r,e){if(ENe(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||INe(r)?!0:wNe.test(r)||!yNe.test(r)||e!=null&&r in Object(e)}X6.exports=BNe});var VB=w((oAt,Z6)=>{var bNe=Wc(),QNe=Rn(),SNe="[object AsyncFunction]",vNe="[object Function]",xNe="[object GeneratorFunction]",kNe="[object Proxy]";function PNe(r){if(!QNe(r))return!1;var e=bNe(r);return e==vNe||e==xNe||e==SNe||e==kNe}Z6.exports=PNe});var e7=w((aAt,$6)=>{var DNe=Ns(),RNe=DNe["__core-js_shared__"];$6.exports=RNe});var i7=w((AAt,t7)=>{var QR=e7(),r7=function(){var r=/[^.]+$/.exec(QR&&QR.keys&&QR.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function FNe(r){return!!r7&&r7 in r}t7.exports=FNe});var SR=w((lAt,n7)=>{var NNe=Function.prototype,LNe=NNe.toString;function TNe(r){if(r!=null){try{return LNe.call(r)}catch(e){}try{return r+""}catch(e){}}return""}n7.exports=TNe});var o7=w((cAt,s7)=>{var ONe=VB(),MNe=i7(),KNe=Rn(),UNe=SR(),HNe=/[\\^$.*+?()[\]{}|]/g,jNe=/^\[object .+?Constructor\]$/,GNe=Function.prototype,YNe=Object.prototype,qNe=GNe.toString,JNe=YNe.hasOwnProperty,WNe=RegExp("^"+qNe.call(JNe).replace(HNe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zNe(r){if(!KNe(r)||MNe(r))return!1;var e=ONe(r)?WNe:jNe;return e.test(UNe(r))}s7.exports=zNe});var A7=w((uAt,a7)=>{function _Ne(r,e){return r==null?void 0:r[e]}a7.exports=_Ne});var Rl=w((gAt,l7)=>{var VNe=o7(),XNe=A7();function ZNe(r,e){var t=XNe(r,e);return VNe(t)?t:void 0}l7.exports=ZNe});var cC=w((fAt,c7)=>{var $Ne=Rl(),eLe=$Ne(Object,"create");c7.exports=eLe});var f7=w((hAt,u7)=>{var g7=cC();function tLe(){this.__data__=g7?g7(null):{},this.size=0}u7.exports=tLe});var p7=w((pAt,h7)=>{function rLe(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}h7.exports=rLe});var C7=w((dAt,d7)=>{var iLe=cC(),nLe="__lodash_hash_undefined__",sLe=Object.prototype,oLe=sLe.hasOwnProperty;function aLe(r){var e=this.__data__;if(iLe){var t=e[r];return t===nLe?void 0:t}return oLe.call(e,r)?e[r]:void 0}d7.exports=aLe});var E7=w((CAt,m7)=>{var ALe=cC(),lLe=Object.prototype,cLe=lLe.hasOwnProperty;function uLe(r){var e=this.__data__;return ALe?e[r]!==void 0:cLe.call(e,r)}m7.exports=uLe});var y7=w((mAt,I7)=>{var gLe=cC(),fLe="__lodash_hash_undefined__";function hLe(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=gLe&&e===void 0?fLe:e,this}I7.exports=hLe});var B7=w((EAt,w7)=>{var pLe=f7(),dLe=p7(),CLe=C7(),mLe=E7(),ELe=y7();function kf(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{function ILe(){this.__data__=[],this.size=0}b7.exports=ILe});var Pf=w((yAt,S7)=>{function yLe(r,e){return r===e||r!==r&&e!==e}S7.exports=yLe});var uC=w((wAt,v7)=>{var wLe=Pf();function BLe(r,e){for(var t=r.length;t--;)if(wLe(r[t][0],e))return t;return-1}v7.exports=BLe});var k7=w((BAt,x7)=>{var bLe=uC(),QLe=Array.prototype,SLe=QLe.splice;function vLe(r){var e=this.__data__,t=bLe(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():SLe.call(e,t,1),--this.size,!0}x7.exports=vLe});var D7=w((bAt,P7)=>{var xLe=uC();function kLe(r){var e=this.__data__,t=xLe(e,r);return t<0?void 0:e[t][1]}P7.exports=kLe});var F7=w((QAt,R7)=>{var PLe=uC();function DLe(r){return PLe(this.__data__,r)>-1}R7.exports=DLe});var L7=w((SAt,N7)=>{var RLe=uC();function FLe(r,e){var t=this.__data__,i=RLe(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}N7.exports=FLe});var gC=w((vAt,T7)=>{var NLe=Q7(),LLe=k7(),TLe=D7(),OLe=F7(),MLe=L7();function Df(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{var KLe=Rl(),ULe=Ns(),HLe=KLe(ULe,"Map");O7.exports=HLe});var U7=w((kAt,M7)=>{var K7=B7(),jLe=gC(),GLe=XB();function YLe(){this.size=0,this.__data__={hash:new K7,map:new(GLe||jLe),string:new K7}}M7.exports=YLe});var j7=w((PAt,H7)=>{function qLe(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}H7.exports=qLe});var fC=w((DAt,G7)=>{var JLe=j7();function WLe(r,e){var t=r.__data__;return JLe(e)?t[typeof e=="string"?"string":"hash"]:t.map}G7.exports=WLe});var q7=w((RAt,Y7)=>{var zLe=fC();function _Le(r){var e=zLe(this,r).delete(r);return this.size-=e?1:0,e}Y7.exports=_Le});var W7=w((FAt,J7)=>{var VLe=fC();function XLe(r){return VLe(this,r).get(r)}J7.exports=XLe});var _7=w((NAt,z7)=>{var ZLe=fC();function $Le(r){return ZLe(this,r).has(r)}z7.exports=$Le});var X7=w((LAt,V7)=>{var eTe=fC();function tTe(r,e){var t=eTe(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}V7.exports=tTe});var ZB=w((TAt,Z7)=>{var rTe=U7(),iTe=q7(),nTe=W7(),sTe=_7(),oTe=X7();function Rf(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{var eX=ZB(),aTe="Expected a function";function vR(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(aTe);var t=function(){var i=arguments,n=e?e.apply(this,i):i[0],s=t.cache;if(s.has(n))return s.get(n);var o=r.apply(this,i);return t.cache=s.set(n,o)||s,o};return t.cache=new(vR.Cache||eX),t}vR.Cache=eX;$7.exports=vR});var iX=w((MAt,rX)=>{var ATe=tX(),lTe=500;function cTe(r){var e=ATe(r,function(i){return t.size===lTe&&t.clear(),i}),t=e.cache;return e}rX.exports=cTe});var sX=w((KAt,nX)=>{var uTe=iX(),gTe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fTe=/\\(\\)?/g,hTe=uTe(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(gTe,function(t,i,n,s){e.push(n?s.replace(fTe,"$1"):i||t)}),e});nX.exports=hTe});var Ff=w((UAt,oX)=>{var pTe=Ks(),dTe=_B(),CTe=sX(),mTe=lf();function ETe(r,e){return pTe(r)?r:dTe(r,e)?[r]:CTe(mTe(r))}oX.exports=ETe});var gu=w((HAt,aX)=>{var ITe=Id(),yTe=1/0;function wTe(r){if(typeof r=="string"||ITe(r))return r;var e=r+"";return e=="0"&&1/r==-yTe?"-0":e}aX.exports=wTe});var hC=w((jAt,AX)=>{var BTe=Ff(),bTe=gu();function QTe(r,e){e=BTe(e,r);for(var t=0,i=e.length;r!=null&&t{var STe=Rl(),vTe=function(){try{var r=STe(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();lX.exports=vTe});var Nf=w((YAt,cX)=>{var uX=xR();function xTe(r,e,t){e=="__proto__"&&uX?uX(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}cX.exports=xTe});var $B=w((qAt,gX)=>{var kTe=Nf(),PTe=Pf(),DTe=Object.prototype,RTe=DTe.hasOwnProperty;function FTe(r,e,t){var i=r[e];(!(RTe.call(r,e)&&PTe(i,t))||t===void 0&&!(e in r))&&kTe(r,e,t)}gX.exports=FTe});var pC=w((JAt,fX)=>{var NTe=9007199254740991,LTe=/^(?:0|[1-9]\d*)$/;function TTe(r,e){var t=typeof r;return e=e==null?NTe:e,!!e&&(t=="number"||t!="symbol"&<e.test(r))&&r>-1&&r%1==0&&r{var OTe=$B(),MTe=Ff(),KTe=pC(),pX=Rn(),UTe=gu();function HTe(r,e,t,i){if(!pX(r))return r;e=MTe(e,r);for(var n=-1,s=e.length,o=s-1,a=r;a!=null&&++n{var jTe=hC(),GTe=kR(),YTe=Ff();function qTe(r,e,t){for(var i=-1,n=e.length,s={};++i{function JTe(r,e){return r!=null&&e in Object(r)}mX.exports=JTe});var yX=w((VAt,IX)=>{var WTe=Wc(),zTe=ta(),_Te="[object Arguments]";function VTe(r){return zTe(r)&&WTe(r)==_Te}IX.exports=VTe});var dC=w((XAt,wX)=>{var BX=yX(),XTe=ta(),bX=Object.prototype,ZTe=bX.hasOwnProperty,$Te=bX.propertyIsEnumerable,eOe=BX(function(){return arguments}())?BX:function(r){return XTe(r)&&ZTe.call(r,"callee")&&!$Te.call(r,"callee")};wX.exports=eOe});var e0=w((ZAt,QX)=>{var tOe=9007199254740991;function rOe(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=tOe}QX.exports=rOe});var PR=w(($At,SX)=>{var iOe=Ff(),nOe=dC(),sOe=Ks(),oOe=pC(),aOe=e0(),AOe=gu();function lOe(r,e,t){e=iOe(e,r);for(var i=-1,n=e.length,s=!1;++i{var cOe=EX(),uOe=PR();function gOe(r,e){return r!=null&&uOe(r,e,cOe)}vX.exports=gOe});var kX=w((tlt,xX)=>{var fOe=CX(),hOe=DR();function pOe(r,e){return fOe(r,e,function(t,i){return hOe(r,i)})}xX.exports=pOe});var t0=w((rlt,PX)=>{function dOe(r,e){for(var t=-1,i=e.length,n=r.length;++t{var RX=Jc(),COe=dC(),mOe=Ks(),FX=RX?RX.isConcatSpreadable:void 0;function EOe(r){return mOe(r)||COe(r)||!!(FX&&r&&r[FX])}DX.exports=EOe});var OX=w((nlt,LX)=>{var IOe=t0(),yOe=NX();function TX(r,e,t,i,n){var s=-1,o=r.length;for(t||(t=yOe),n||(n=[]);++s0&&t(a)?e>1?TX(a,e-1,t,i,n):IOe(n,a):i||(n[n.length]=a)}return n}LX.exports=TX});var KX=w((slt,MX)=>{var wOe=OX();function BOe(r){var e=r==null?0:r.length;return e?wOe(r,1):[]}MX.exports=BOe});var HX=w((olt,UX)=>{function bOe(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}UX.exports=bOe});var RR=w((alt,jX)=>{var QOe=HX(),GX=Math.max;function SOe(r,e,t){return e=GX(e===void 0?r.length-1:e,0),function(){for(var i=arguments,n=-1,s=GX(i.length-e,0),o=Array(s);++n{function vOe(r){return function(){return r}}YX.exports=vOe});var r0=w((llt,JX)=>{function xOe(r){return r}JX.exports=xOe});var _X=w((clt,WX)=>{var kOe=qX(),zX=xR(),POe=r0(),DOe=zX?function(r,e){return zX(r,"toString",{configurable:!0,enumerable:!1,value:kOe(e),writable:!0})}:POe;WX.exports=DOe});var XX=w((ult,VX)=>{var ROe=800,FOe=16,NOe=Date.now;function LOe(r){var e=0,t=0;return function(){var i=NOe(),n=FOe-(i-t);if(t=i,n>0){if(++e>=ROe)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}VX.exports=LOe});var FR=w((glt,ZX)=>{var TOe=_X(),OOe=XX(),MOe=OOe(TOe);ZX.exports=MOe});var eZ=w((flt,$X)=>{var KOe=KX(),UOe=RR(),HOe=FR();function jOe(r){return HOe(UOe(r,void 0,KOe),r+"")}$X.exports=jOe});var rZ=w((hlt,tZ)=>{var GOe=kX(),YOe=eZ(),qOe=YOe(function(r,e){return r==null?{}:GOe(r,e)});tZ.exports=qOe});var hZ=w((uut,uZ)=>{"use strict";var GR;try{GR=Map}catch(r){}var YR;try{YR=Set}catch(r){}function gZ(r,e,t){if(!r||typeof r!="object"||typeof r=="function")return r;if(r.nodeType&&"cloneNode"in r)return r.cloneNode(!0);if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp)return new RegExp(r);if(Array.isArray(r))return r.map(fZ);if(GR&&r instanceof GR)return new Map(Array.from(r.entries()));if(YR&&r instanceof YR)return new Set(Array.from(r.values()));if(r instanceof Object){e.push(r);var i=Object.create(r);t.push(i);for(var n in r){var s=e.findIndex(function(o){return o===r[n]});i[n]=s>-1?t[s]:gZ(r[n],e,t)}return i}return r}function fZ(r){return gZ(r,[],[])}uZ.exports=fZ});var IC=w(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.default=eMe;var tMe=Object.prototype.toString,rMe=Error.prototype.toString,iMe=RegExp.prototype.toString,nMe=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",sMe=/^Symbol\((.*)\)(.*)$/;function oMe(r){return r!=+r?"NaN":r===0&&1/r<0?"-0":""+r}function pZ(r,e=!1){if(r==null||r===!0||r===!1)return""+r;let t=typeof r;if(t==="number")return oMe(r);if(t==="string")return e?`"${r}"`:r;if(t==="function")return"[Function "+(r.name||"anonymous")+"]";if(t==="symbol")return nMe.call(r).replace(sMe,"Symbol($1)");let i=tMe.call(r).slice(8,-1);return i==="Date"?isNaN(r.getTime())?""+r:r.toISOString(r):i==="Error"||r instanceof Error?"["+rMe.call(r)+"]":i==="RegExp"?iMe.call(r):null}function eMe(r,e){let t=pZ(r,e);return t!==null?t:JSON.stringify(r,function(i,n){let s=pZ(this[i],e);return s!==null?s:n},2)}});var CA=w(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.default=bi.array=bi.object=bi.boolean=bi.date=bi.number=bi.string=bi.mixed=void 0;var dZ=aMe(IC());function aMe(r){return r&&r.__esModule?r:{default:r}}var CZ={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:r,type:e,value:t,originalValue:i})=>{let n=i!=null&&i!==t,s=`${r} must be a \`${e}\` type, but the final value was: \`${(0,dZ.default)(t,!0)}\``+(n?` (cast from the value \`${(0,dZ.default)(i,!0)}\`).`:".");return t===null&&(s+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),s},defined:"${path} must be defined"};bi.mixed=CZ;var mZ={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"};bi.string=mZ;var EZ={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"};bi.number=EZ;var IZ={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"};bi.date=IZ;var yZ={isValue:"${path} field must be ${value}"};bi.boolean=yZ;var wZ={noUnknown:"${path} field has unspecified keys: ${unknown}"};bi.object=wZ;var BZ={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must be have ${length} items"};bi.array=BZ;var AMe=Object.assign(Object.create(null),{mixed:CZ,string:mZ,number:EZ,date:IZ,object:wZ,array:BZ,boolean:yZ});bi.default=AMe});var QZ=w((hut,bZ)=>{var lMe=Object.prototype,cMe=lMe.hasOwnProperty;function uMe(r,e){return r!=null&&cMe.call(r,e)}bZ.exports=uMe});var yC=w((put,SZ)=>{var gMe=QZ(),fMe=PR();function hMe(r,e){return r!=null&&fMe(r,e,gMe)}SZ.exports=hMe});var Tf=w(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.default=void 0;var pMe=r=>r&&r.__isYupSchema__;o0.default=pMe});var kZ=w(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.default=void 0;var dMe=vZ(yC()),CMe=vZ(Tf());function vZ(r){return r&&r.__esModule?r:{default:r}}var xZ=class{constructor(e,t){if(this.refs=e,this.refs=e,typeof t=="function"){this.fn=t;return}if(!(0,dMe.default)(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:i,then:n,otherwise:s}=t,o=typeof i=="function"?i:(...a)=>a.every(l=>l===i);this.fn=function(...a){let l=a.pop(),c=a.pop(),u=o(...a)?n:s;if(!!u)return typeof u=="function"?u(c):c.concat(u.resolve(l))}}resolve(e,t){let i=this.refs.map(s=>s.getValue(t==null?void 0:t.value,t==null?void 0:t.parent,t==null?void 0:t.context)),n=this.fn.apply(e,i.concat(e,t));if(n===void 0||n===e)return e;if(!(0,CMe.default)(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}},mMe=xZ;a0.default=mMe});var WR=w(JR=>{"use strict";Object.defineProperty(JR,"__esModule",{value:!0});JR.default=EMe;function EMe(r){return r==null?[]:[].concat(r)}});var fu=w(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.default=void 0;var IMe=PZ(IC()),yMe=PZ(WR());function PZ(r){return r&&r.__esModule?r:{default:r}}function zR(){return zR=Object.assign||function(r){for(var e=1;e(0,IMe.default)(t[s])):typeof e=="function"?e(t):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,t,i,n){super();this.name="ValidationError",this.value=t,this.path=i,this.type=n,this.errors=[],this.inner=[],(0,yMe.default)(e).forEach(s=>{wC.isError(s)?(this.errors.push(...s.errors),this.inner=this.inner.concat(s.inner.length?s.inner:s)):this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,wC)}};A0.default=wC});var l0=w(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});_R.default=BMe;var VR=bMe(fu());function bMe(r){return r&&r.__esModule?r:{default:r}}var QMe=r=>{let e=!1;return(...t)=>{e||(e=!0,r(...t))}};function BMe(r,e){let{endEarly:t,tests:i,args:n,value:s,errors:o,sort:a,path:l}=r,c=QMe(e),u=i.length,g=[];if(o=o||[],!u)return o.length?c(new VR.default(o,s,l)):c(null,s);for(let f=0;f{function SMe(r){return function(e,t,i){for(var n=-1,s=Object(e),o=i(e),a=o.length;a--;){var l=o[r?a:++n];if(t(s[l],l,s)===!1)break}return e}}DZ.exports=SMe});var XR=w((wut,FZ)=>{var vMe=RZ(),xMe=vMe();FZ.exports=xMe});var LZ=w((But,NZ)=>{function kMe(r,e){for(var t=-1,i=Array(r);++t{function PMe(){return!1}TZ.exports=PMe});var bC=w((BC,Of)=>{var DMe=Ns(),RMe=OZ(),MZ=typeof BC=="object"&&BC&&!BC.nodeType&&BC,KZ=MZ&&typeof Of=="object"&&Of&&!Of.nodeType&&Of,FMe=KZ&&KZ.exports===MZ,UZ=FMe?DMe.Buffer:void 0,NMe=UZ?UZ.isBuffer:void 0,LMe=NMe||RMe;Of.exports=LMe});var jZ=w((Qut,HZ)=>{var TMe=Wc(),OMe=e0(),MMe=ta(),KMe="[object Arguments]",UMe="[object Array]",HMe="[object Boolean]",jMe="[object Date]",GMe="[object Error]",YMe="[object Function]",qMe="[object Map]",JMe="[object Number]",WMe="[object Object]",zMe="[object RegExp]",_Me="[object Set]",VMe="[object String]",XMe="[object WeakMap]",ZMe="[object ArrayBuffer]",$Me="[object DataView]",e1e="[object Float32Array]",t1e="[object Float64Array]",r1e="[object Int8Array]",i1e="[object Int16Array]",n1e="[object Int32Array]",s1e="[object Uint8Array]",o1e="[object Uint8ClampedArray]",a1e="[object Uint16Array]",A1e="[object Uint32Array]",wr={};wr[e1e]=wr[t1e]=wr[r1e]=wr[i1e]=wr[n1e]=wr[s1e]=wr[o1e]=wr[a1e]=wr[A1e]=!0;wr[KMe]=wr[UMe]=wr[ZMe]=wr[HMe]=wr[$Me]=wr[jMe]=wr[GMe]=wr[YMe]=wr[qMe]=wr[JMe]=wr[WMe]=wr[zMe]=wr[_Me]=wr[VMe]=wr[XMe]=!1;function l1e(r){return MMe(r)&&OMe(r.length)&&!!wr[TMe(r)]}HZ.exports=l1e});var c0=w((Sut,GZ)=>{function c1e(r){return function(e){return r(e)}}GZ.exports=c1e});var u0=w((QC,Mf)=>{var u1e=rk(),YZ=typeof QC=="object"&&QC&&!QC.nodeType&&QC,SC=YZ&&typeof Mf=="object"&&Mf&&!Mf.nodeType&&Mf,g1e=SC&&SC.exports===YZ,ZR=g1e&&u1e.process,f1e=function(){try{var r=SC&&SC.require&&SC.require("util").types;return r||ZR&&ZR.binding&&ZR.binding("util")}catch(e){}}();Mf.exports=f1e});var g0=w((vut,qZ)=>{var h1e=jZ(),p1e=c0(),JZ=u0(),WZ=JZ&&JZ.isTypedArray,d1e=WZ?p1e(WZ):h1e;qZ.exports=d1e});var $R=w((xut,zZ)=>{var C1e=LZ(),m1e=dC(),E1e=Ks(),I1e=bC(),y1e=pC(),w1e=g0(),B1e=Object.prototype,b1e=B1e.hasOwnProperty;function Q1e(r,e){var t=E1e(r),i=!t&&m1e(r),n=!t&&!i&&I1e(r),s=!t&&!i&&!n&&w1e(r),o=t||i||n||s,a=o?C1e(r.length,String):[],l=a.length;for(var c in r)(e||b1e.call(r,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||y1e(c,l)))&&a.push(c);return a}zZ.exports=Q1e});var f0=w((kut,_Z)=>{var S1e=Object.prototype;function v1e(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||S1e;return r===t}_Z.exports=v1e});var eF=w((Put,VZ)=>{function x1e(r,e){return function(t){return r(e(t))}}VZ.exports=x1e});var ZZ=w((Dut,XZ)=>{var k1e=eF(),P1e=k1e(Object.keys,Object);XZ.exports=P1e});var e$=w((Rut,$Z)=>{var D1e=f0(),R1e=ZZ(),F1e=Object.prototype,N1e=F1e.hasOwnProperty;function L1e(r){if(!D1e(r))return R1e(r);var e=[];for(var t in Object(r))N1e.call(r,t)&&t!="constructor"&&e.push(t);return e}$Z.exports=L1e});var vC=w((Fut,t$)=>{var T1e=VB(),O1e=e0();function M1e(r){return r!=null&&O1e(r.length)&&!T1e(r)}t$.exports=M1e});var Kf=w((Nut,r$)=>{var K1e=$R(),U1e=e$(),H1e=vC();function j1e(r){return H1e(r)?K1e(r):U1e(r)}r$.exports=j1e});var tF=w((Lut,i$)=>{var G1e=XR(),Y1e=Kf();function q1e(r,e){return r&&G1e(r,e,Y1e)}i$.exports=q1e});var s$=w((Tut,n$)=>{var J1e=gC();function W1e(){this.__data__=new J1e,this.size=0}n$.exports=W1e});var a$=w((Out,o$)=>{function z1e(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}o$.exports=z1e});var l$=w((Mut,A$)=>{function _1e(r){return this.__data__.get(r)}A$.exports=_1e});var u$=w((Kut,c$)=>{function V1e(r){return this.__data__.has(r)}c$.exports=V1e});var f$=w((Uut,g$)=>{var X1e=gC(),Z1e=XB(),$1e=ZB(),eKe=200;function tKe(r,e){var t=this.__data__;if(t instanceof X1e){var i=t.__data__;if(!Z1e||i.length{var rKe=gC(),iKe=s$(),nKe=a$(),sKe=l$(),oKe=u$(),aKe=f$();function Uf(r){var e=this.__data__=new rKe(r);this.size=e.size}Uf.prototype.clear=iKe;Uf.prototype.delete=nKe;Uf.prototype.get=sKe;Uf.prototype.has=oKe;Uf.prototype.set=aKe;h$.exports=Uf});var d$=w((jut,p$)=>{var AKe="__lodash_hash_undefined__";function lKe(r){return this.__data__.set(r,AKe),this}p$.exports=lKe});var m$=w((Gut,C$)=>{function cKe(r){return this.__data__.has(r)}C$.exports=cKe});var I$=w((Yut,E$)=>{var uKe=ZB(),gKe=d$(),fKe=m$();function h0(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new uKe;++e{function hKe(r,e){for(var t=-1,i=r==null?0:r.length;++t{function pKe(r,e){return r.has(e)}B$.exports=pKe});var rF=w((Wut,Q$)=>{var dKe=I$(),CKe=w$(),mKe=b$(),EKe=1,IKe=2;function yKe(r,e,t,i,n,s){var o=t&EKe,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(r),u=s.get(e);if(c&&u)return c==e&&u==r;var g=-1,f=!0,h=t&IKe?new dKe:void 0;for(s.set(r,e),s.set(e,r);++g{var wKe=Ns(),BKe=wKe.Uint8Array;S$.exports=BKe});var x$=w((_ut,v$)=>{function bKe(r){var e=-1,t=Array(r.size);return r.forEach(function(i,n){t[++e]=[n,i]}),t}v$.exports=bKe});var P$=w((Vut,k$)=>{function QKe(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}k$.exports=QKe});var L$=w((Xut,D$)=>{var R$=Jc(),F$=iF(),SKe=Pf(),vKe=rF(),xKe=x$(),kKe=P$(),PKe=1,DKe=2,RKe="[object Boolean]",FKe="[object Date]",NKe="[object Error]",LKe="[object Map]",TKe="[object Number]",OKe="[object RegExp]",MKe="[object Set]",KKe="[object String]",UKe="[object Symbol]",HKe="[object ArrayBuffer]",jKe="[object DataView]",N$=R$?R$.prototype:void 0,nF=N$?N$.valueOf:void 0;function GKe(r,e,t,i,n,s,o){switch(t){case jKe:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case HKe:return!(r.byteLength!=e.byteLength||!s(new F$(r),new F$(e)));case RKe:case FKe:case TKe:return SKe(+r,+e);case NKe:return r.name==e.name&&r.message==e.message;case OKe:case KKe:return r==e+"";case LKe:var a=xKe;case MKe:var l=i&PKe;if(a||(a=kKe),r.size!=e.size&&!l)return!1;var c=o.get(r);if(c)return c==e;i|=DKe,o.set(r,e);var u=vKe(a(r),a(e),i,n,s,o);return o.delete(r),u;case UKe:if(nF)return nF.call(r)==nF.call(e)}return!1}D$.exports=GKe});var sF=w((Zut,T$)=>{var YKe=t0(),qKe=Ks();function JKe(r,e,t){var i=e(r);return qKe(r)?i:YKe(i,t(r))}T$.exports=JKe});var M$=w(($ut,O$)=>{function WKe(r,e){for(var t=-1,i=r==null?0:r.length,n=0,s=[];++t{function zKe(){return[]}K$.exports=zKe});var p0=w((tgt,U$)=>{var _Ke=M$(),VKe=oF(),XKe=Object.prototype,ZKe=XKe.propertyIsEnumerable,H$=Object.getOwnPropertySymbols,$Ke=H$?function(r){return r==null?[]:(r=Object(r),_Ke(H$(r),function(e){return ZKe.call(r,e)}))}:VKe;U$.exports=$Ke});var aF=w((rgt,j$)=>{var eUe=sF(),tUe=p0(),rUe=Kf();function iUe(r){return eUe(r,rUe,tUe)}j$.exports=iUe});var q$=w((igt,G$)=>{var Y$=aF(),nUe=1,sUe=Object.prototype,oUe=sUe.hasOwnProperty;function aUe(r,e,t,i,n,s){var o=t&nUe,a=Y$(r),l=a.length,c=Y$(e),u=c.length;if(l!=u&&!o)return!1;for(var g=l;g--;){var f=a[g];if(!(o?f in e:oUe.call(e,f)))return!1}var h=s.get(r),p=s.get(e);if(h&&p)return h==e&&p==r;var m=!0;s.set(r,e),s.set(e,r);for(var y=o;++g{var AUe=Rl(),lUe=Ns(),cUe=AUe(lUe,"DataView");J$.exports=cUe});var _$=w((sgt,z$)=>{var uUe=Rl(),gUe=Ns(),fUe=uUe(gUe,"Promise");z$.exports=fUe});var X$=w((ogt,V$)=>{var hUe=Rl(),pUe=Ns(),dUe=hUe(pUe,"Set");V$.exports=dUe});var $$=w((agt,Z$)=>{var CUe=Rl(),mUe=Ns(),EUe=CUe(mUe,"WeakMap");Z$.exports=EUe});var kC=w((Agt,eee)=>{var AF=W$(),lF=XB(),cF=_$(),uF=X$(),gF=$$(),tee=Wc(),Hf=SR(),ree="[object Map]",IUe="[object Object]",iee="[object Promise]",nee="[object Set]",see="[object WeakMap]",oee="[object DataView]",yUe=Hf(AF),wUe=Hf(lF),BUe=Hf(cF),bUe=Hf(uF),QUe=Hf(gF),hu=tee;(AF&&hu(new AF(new ArrayBuffer(1)))!=oee||lF&&hu(new lF)!=ree||cF&&hu(cF.resolve())!=iee||uF&&hu(new uF)!=nee||gF&&hu(new gF)!=see)&&(hu=function(r){var e=tee(r),t=e==IUe?r.constructor:void 0,i=t?Hf(t):"";if(i)switch(i){case yUe:return oee;case wUe:return ree;case BUe:return iee;case bUe:return nee;case QUe:return see}return e});eee.exports=hu});var hee=w((lgt,aee)=>{var fF=xC(),SUe=rF(),vUe=L$(),xUe=q$(),Aee=kC(),lee=Ks(),cee=bC(),kUe=g0(),PUe=1,uee="[object Arguments]",gee="[object Array]",d0="[object Object]",DUe=Object.prototype,fee=DUe.hasOwnProperty;function RUe(r,e,t,i,n,s){var o=lee(r),a=lee(e),l=o?gee:Aee(r),c=a?gee:Aee(e);l=l==uee?d0:l,c=c==uee?d0:c;var u=l==d0,g=c==d0,f=l==c;if(f&&cee(r)){if(!cee(e))return!1;o=!0,u=!1}if(f&&!u)return s||(s=new fF),o||kUe(r)?SUe(r,e,t,i,n,s):vUe(r,e,l,t,i,n,s);if(!(t&PUe)){var h=u&&fee.call(r,"__wrapped__"),p=g&&fee.call(e,"__wrapped__");if(h||p){var m=h?r.value():r,y=p?e.value():e;return s||(s=new fF),n(m,y,t,i,s)}}return f?(s||(s=new fF),xUe(r,e,t,i,n,s)):!1}aee.exports=RUe});var hF=w((cgt,pee)=>{var FUe=hee(),dee=ta();function Cee(r,e,t,i,n){return r===e?!0:r==null||e==null||!dee(r)&&!dee(e)?r!==r&&e!==e:FUe(r,e,t,i,Cee,n)}pee.exports=Cee});var Eee=w((ugt,mee)=>{var NUe=xC(),LUe=hF(),TUe=1,OUe=2;function MUe(r,e,t,i){var n=t.length,s=n,o=!i;if(r==null)return!s;for(r=Object(r);n--;){var a=t[n];if(o&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++n{var KUe=Rn();function UUe(r){return r===r&&!KUe(r)}Iee.exports=UUe});var wee=w((fgt,yee)=>{var HUe=pF(),jUe=Kf();function GUe(r){for(var e=jUe(r),t=e.length;t--;){var i=e[t],n=r[i];e[t]=[i,n,HUe(n)]}return e}yee.exports=GUe});var dF=w((hgt,Bee)=>{function YUe(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}Bee.exports=YUe});var Qee=w((pgt,bee)=>{var qUe=Eee(),JUe=wee(),WUe=dF();function zUe(r){var e=JUe(r);return e.length==1&&e[0][2]?WUe(e[0][0],e[0][1]):function(t){return t===r||qUe(t,r,e)}}bee.exports=zUe});var C0=w((dgt,See)=>{var _Ue=hC();function VUe(r,e,t){var i=r==null?void 0:_Ue(r,e);return i===void 0?t:i}See.exports=VUe});var xee=w((Cgt,vee)=>{var XUe=hF(),ZUe=C0(),$Ue=DR(),e2e=_B(),t2e=pF(),r2e=dF(),i2e=gu(),n2e=1,s2e=2;function o2e(r,e){return e2e(r)&&t2e(e)?r2e(i2e(r),e):function(t){var i=ZUe(t,r);return i===void 0&&i===e?$Ue(t,r):XUe(e,i,n2e|s2e)}}vee.exports=o2e});var Pee=w((mgt,kee)=>{function a2e(r){return function(e){return e==null?void 0:e[r]}}kee.exports=a2e});var Ree=w((Egt,Dee)=>{var A2e=hC();function l2e(r){return function(e){return A2e(e,r)}}Dee.exports=l2e});var Nee=w((Igt,Fee)=>{var c2e=Pee(),u2e=Ree(),g2e=_B(),f2e=gu();function h2e(r){return g2e(r)?c2e(f2e(r)):u2e(r)}Fee.exports=h2e});var CF=w((ygt,Lee)=>{var p2e=Qee(),d2e=xee(),C2e=r0(),m2e=Ks(),E2e=Nee();function I2e(r){return typeof r=="function"?r:r==null?C2e:typeof r=="object"?m2e(r)?d2e(r[0],r[1]):p2e(r):E2e(r)}Lee.exports=I2e});var mF=w((wgt,Tee)=>{var y2e=Nf(),w2e=tF(),B2e=CF();function b2e(r,e){var t={};return e=B2e(e,3),w2e(r,function(i,n,s){y2e(t,n,e(i,n,s))}),t}Tee.exports=b2e});var PC=w((Bgt,Oee)=>{"use strict";function pu(r){this._maxSize=r,this.clear()}pu.prototype.clear=function(){this._size=0,this._values=Object.create(null)};pu.prototype.get=function(r){return this._values[r]};pu.prototype.set=function(r,e){return this._size>=this._maxSize&&this.clear(),r in this._values||this._size++,this._values[r]=e};var Q2e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Mee=/^\d+$/,S2e=/^\d/,v2e=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,x2e=/^\s*(['"]?)(.*?)(\1)\s*$/,EF=512,Kee=new pu(EF),Uee=new pu(EF),Hee=new pu(EF);Oee.exports={Cache:pu,split:yF,normalizePath:IF,setter:function(r){var e=IF(r);return Uee.get(r)||Uee.set(r,function(i,n){for(var s=0,o=e.length,a=i;s{"use strict";Object.defineProperty(DC,"__esModule",{value:!0});DC.create=F2e;DC.default=void 0;var N2e=PC(),m0={context:"$",value:"."};function F2e(r,e){return new E0(r,e)}var E0=class{constructor(e,t={}){if(typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===m0.context,this.isValue=this.key[0]===m0.value,this.isSibling=!this.isContext&&!this.isValue;let i=this.isContext?m0.context:this.isValue?m0.value:"";this.path=this.key.slice(i.length),this.getter=this.path&&(0,N2e.getter)(this.path,!0),this.map=t.map}getValue(e,t,i){let n=this.isContext?i:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,t==null?void 0:t.parent,t==null?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};DC.default=E0;E0.prototype.__isYupRef=!0});var jee=w(BF=>{"use strict";Object.defineProperty(BF,"__esModule",{value:!0});BF.default=L2e;var T2e=bF(mF()),I0=bF(fu()),O2e=bF(du());function bF(r){return r&&r.__esModule?r:{default:r}}function y0(){return y0=Object.assign||function(r){for(var e=1;e=0)&&(t[n]=r[n]);return t}function L2e(r){function e(t,i){let{value:n,path:s="",label:o,options:a,originalValue:l,sync:c}=t,u=M2e(t,["value","path","label","options","originalValue","sync"]),{name:g,test:f,params:h,message:p}=r,{parent:m,context:y}=a;function b(Y){return O2e.default.isRef(Y)?Y.getValue(n,m,y):Y}function v(Y={}){let $=(0,T2e.default)(y0({value:n,originalValue:l,label:o,path:Y.path||s},h,Y.params),b),_=new I0.default(I0.default.formatError(Y.message||p,$),n,$.path,Y.type||g);return _.params=$,_}let x=y0({path:s,parent:m,type:g,createError:v,resolve:b,options:a,originalValue:l},u);if(!c){try{Promise.resolve(f.call(x,n,x)).then(Y=>{I0.default.isError(Y)?i(Y):Y?i(null,Y):i(v())})}catch(Y){i(Y)}return}let T;try{var q;if(T=f.call(x,n,x),typeof((q=T)==null?void 0:q.then)=="function")throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(Y){i(Y);return}I0.default.isError(T)?i(T):T?i(null,T):i(v())}return e.OPTIONS=r,e}});var QF=w(RC=>{"use strict";Object.defineProperty(RC,"__esModule",{value:!0});RC.getIn=Gee;RC.default=void 0;var K2e=PC(),U2e=r=>r.substr(0,r.length-1).substr(1);function Gee(r,e,t,i=t){let n,s,o;return e?((0,K2e.forEach)(e,(a,l,c)=>{let u=l?U2e(a):a;if(r=r.resolve({context:i,parent:n,value:t}),r.innerType){let g=c?parseInt(u,10):0;if(t&&g>=t.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);n=t,t=t&&t[g],r=r.innerType}if(!c){if(!r.fields||!r.fields[u])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${o} which is a type: "${r._type}")`);n=t,t=t&&t[u],r=r.fields[u]}s=u,o=l?"["+a+"]":"."+a}),{schema:r,parent:n,parentPath:s}):{parent:n,parentPath:e,schema:r}}var H2e=(r,e,t,i)=>Gee(r,e,t,i).schema,j2e=H2e;RC.default=j2e});var qee=w(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.default=void 0;var Yee=G2e(du());function G2e(r){return r&&r.__esModule?r:{default:r}}var B0=class{constructor(){this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}add(e){Yee.default.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){Yee.default.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}has(e,t){if(this.list.has(e))return!0;let i,n=this.refs.values();for(;i=n.next(),!i.done;)if(t(i.value)===e)return!0;return!1}clone(){let e=new B0;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let i=this.clone();return e.list.forEach(n=>i.add(n)),e.refs.forEach(n=>i.add(n)),t.list.forEach(n=>i.delete(n)),t.refs.forEach(n=>i.delete(n)),i}};w0.default=B0});var EA=w(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.default=void 0;var Jee=mA(hZ()),jf=CA(),Y2e=mA(kZ()),Wee=mA(l0()),Q0=mA(jee()),zee=mA(IC()),q2e=mA(du()),J2e=QF(),W2e=mA(WR()),_ee=mA(fu()),Vee=mA(qee());function mA(r){return r&&r.__esModule?r:{default:r}}function Js(){return Js=Object.assign||function(r){for(var e=1;e{this.typeError(jf.mixed.notType)}),this.type=(e==null?void 0:e.type)||"mixed",this.spec=Js({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},e==null?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=Js({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=(0,Jee.default)(Js({},this.spec,e)),t}label(e){var t=this.clone();return t.spec.label=e,t}meta(...e){if(e.length===0)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let i=e(this);return this._mutate=t,i}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,i=e.clone(),n=Js({},t.spec,i.spec);return i.spec=n,i._typeError||(i._typeError=t._typeError),i._whitelistError||(i._whitelistError=t._whitelistError),i._blacklistError||(i._blacklistError=t._blacklistError),i._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),i._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),i.tests=t.tests,i.exclusiveTests=t.exclusiveTests,i.withMutation(s=>{e.tests.forEach(o=>{s.test(o.OPTIONS)})}),i}isType(e){return this.spec.nullable&&e===null?!0:this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let i=t.conditions;t=t.clone(),t.conditions=[],t=i.reduce((n,s)=>s.resolve(n,e),t),t=t.resolve(e)}return t}cast(e,t={}){let i=this.resolve(Js({value:e},t)),n=i._cast(e,t);if(e!==void 0&&t.assert!==!1&&i.isType(n)!==!0){let s=(0,zee.default)(e),o=(0,zee.default)(n);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${i._type}". + +attempted value: ${s} +`+(o!==s?`result of cast: ${o}`:""))}return n}_cast(e,t){let i=e===void 0?e:this.transforms.reduce((n,s)=>s.call(this,n,e,this),e);return i===void 0&&(i=this.getDefault()),i}_validate(e,t={},i){let{sync:n,path:s,from:o=[],originalValue:a=e,strict:l=this.spec.strict,abortEarly:c=this.spec.abortEarly}=t,u=e;l||(u=this._cast(u,Js({assert:!1},t)));let g={value:u,path:s,options:t,originalValue:a,schema:this,label:this.spec.label,sync:n,from:o},f=[];this._typeError&&f.push(this._typeError),this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),(0,Wee.default)({args:g,value:u,path:s,sync:n,tests:f,endEarly:c},h=>{if(h)return void i(h,u);(0,Wee.default)({tests:this.tests,args:g,path:s,sync:n,value:u,endEarly:c},i)})}validate(e,t,i){let n=this.resolve(Js({},t,{value:e}));return typeof i=="function"?n._validate(e,t,i):new Promise((s,o)=>n._validate(e,t,(a,l)=>{a?o(a):s(l)}))}validateSync(e,t){let i=this.resolve(Js({},t,{value:e})),n;return i._validate(e,Js({},t,{sync:!0}),(s,o)=>{if(s)throw s;n=o}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,i=>{if(_ee.default.isError(i))return!1;throw i})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(i){if(_ee.default.isError(i))return!1;throw i}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):(0,Jee.default)(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){var t=this.clone();return t.spec.strict=e,t}_isPresent(e){return e!=null}defined(e=jf.mixed.defined){return this.test({message:e,name:"defined",exclusive:!0,test(t){return t!==void 0}})}required(e=jf.mixed.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(i){return this.schema._isPresent(i)}}))}notRequired(){var e=this.clone({presence:"optional"});return e.tests=e.tests.filter(t=>t.OPTIONS.name!=="required"),e}nullable(e=!0){var t=this.clone({nullable:e!==!1});return t}transform(e){var t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(e.length===1?typeof e[0]=="function"?t={test:e[0]}:t=e[0]:e.length===2?t={name:e[0],test:e[1]}:t={name:e[0],message:e[1],test:e[2]},t.message===void 0&&(t.message=jf.mixed.default),typeof t.test!="function")throw new TypeError("`test` is a required parameters");let i=this.clone(),n=(0,Q0.default)(t),s=t.exclusive||t.name&&i.exclusiveTests[t.name]===!0;if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(i.exclusiveTests[t.name]=!!t.exclusive),i.tests=i.tests.filter(o=>!(o.OPTIONS.name===t.name&&(s||o.OPTIONS.test===n.OPTIONS.test))),i.tests.push(n),i}when(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=".");let i=this.clone(),n=(0,W2e.default)(e).map(s=>new q2e.default(s));return n.forEach(s=>{s.isSibling&&i.deps.push(s.key)}),i.conditions.push(new Y2e.default(n,t)),i}typeError(e){var t=this.clone();return t._typeError=(0,Q0.default)({message:e,name:"typeError",test(i){return i!==void 0&&!this.schema.isType(i)?this.createError({params:{type:this.schema._type}}):!0}}),t}oneOf(e,t=jf.mixed.oneOf){var i=this.clone();return e.forEach(n=>{i._whitelist.add(n),i._blacklist.delete(n)}),i._whitelistError=(0,Q0.default)({message:t,name:"oneOf",test(n){if(n===void 0)return!0;let s=this.schema._whitelist;return s.has(n,this.resolve)?!0:this.createError({params:{values:s.toArray().join(", ")}})}}),i}notOneOf(e,t=jf.mixed.notOneOf){var i=this.clone();return e.forEach(n=>{i._blacklist.add(n),i._whitelist.delete(n)}),i._blacklistError=(0,Q0.default)({message:t,name:"notOneOf",test(n){let s=this.schema._blacklist;return s.has(n,this.resolve)?this.createError({params:{values:s.toArray().join(", ")}}):!0}}),i}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:i}=e.spec;return{meta:i,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,o,a)=>a.findIndex(l=>l.name===s.name)===o)}}};b0.default=ua;ua.prototype.__isYupSchema__=!0;for(let r of["validate","validateSync"])ua.prototype[`${r}At`]=function(e,t,i={}){let{parent:n,parentPath:s,schema:o}=(0,J2e.getIn)(this,e,t,i.context);return o[r](n&&n[s],Js({},i,{parent:n,path:e}))};for(let r of["equals","is"])ua.prototype[r]=ua.prototype.oneOf;for(let r of["not","nope"])ua.prototype[r]=ua.prototype.notOneOf;ua.prototype.optional=ua.prototype.notRequired});var Zee=w(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.create=Xee;FC.default=void 0;var _2e=z2e(EA());function z2e(r){return r&&r.__esModule?r:{default:r}}var SF=_2e.default,V2e=SF;FC.default=V2e;function Xee(){return new SF}Xee.prototype=SF.prototype});var Gf=w(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.default=void 0;var X2e=r=>r==null;S0.default=X2e});var ite=w(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.create=$ee;NC.default=void 0;var Z2e=ete(EA()),tte=CA(),rte=ete(Gf());function ete(r){return r&&r.__esModule?r:{default:r}}function $ee(){return new v0}var v0=class extends Z2e.default{constructor(){super({type:"boolean"});this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}isTrue(e=tte.boolean.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(t){return(0,rte.default)(t)||t===!0}})}isFalse(e=tte.boolean.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(t){return(0,rte.default)(t)||t===!1}})}};NC.default=v0;$ee.prototype=v0.prototype});var ote=w(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.create=nte;LC.default=void 0;var ga=CA(),IA=ste(Gf()),$2e=ste(EA());function ste(r){return r&&r.__esModule?r:{default:r}}var eHe=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,tHe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rHe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,iHe=r=>(0,IA.default)(r)||r===r.trim(),nHe={}.toString();function nte(){return new x0}var x0=class extends $2e.default{constructor(){super({type:"string"});this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=e!=null&&e.toString?e.toString():e;return t===nHe?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=ga.string.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(i){return(0,IA.default)(i)||i.length===this.resolve(e)}})}min(e,t=ga.string.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(i){return(0,IA.default)(i)||i.length>=this.resolve(e)}})}max(e,t=ga.string.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(i){return(0,IA.default)(i)||i.length<=this.resolve(e)}})}matches(e,t){let i=!1,n,s;return t&&(typeof t=="object"?{excludeEmptyString:i=!1,message:n,name:s}=t:n=t),this.test({name:s||"matches",message:n||ga.string.matches,params:{regex:e},test:o=>(0,IA.default)(o)||o===""&&i||o.search(e)!==-1})}email(e=ga.string.email){return this.matches(eHe,{name:"email",message:e,excludeEmptyString:!0})}url(e=ga.string.url){return this.matches(tHe,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ga.string.uuid){return this.matches(rHe,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=ga.string.trim){return this.transform(t=>t!=null?t.trim():t).test({message:e,name:"trim",test:iHe})}lowercase(e=ga.string.lowercase){return this.transform(t=>(0,IA.default)(t)?t:t.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:t=>(0,IA.default)(t)||t===t.toLowerCase()})}uppercase(e=ga.string.uppercase){return this.transform(t=>(0,IA.default)(t)?t:t.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:t=>(0,IA.default)(t)||t===t.toUpperCase()})}};LC.default=x0;nte.prototype=x0.prototype});var lte=w(TC=>{"use strict";Object.defineProperty(TC,"__esModule",{value:!0});TC.create=ate;TC.default=void 0;var Cu=CA(),mu=Ate(Gf()),sHe=Ate(EA());function Ate(r){return r&&r.__esModule?r:{default:r}}var oHe=r=>r!=+r;function ate(){return new k0}var k0=class extends sHe.default{constructor(){super({type:"number"});this.withMutation(()=>{this.transform(function(e){let t=e;if(typeof t=="string"){if(t=t.replace(/\s/g,""),t==="")return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!oHe(e)}min(e,t=Cu.number.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(i){return(0,mu.default)(i)||i>=this.resolve(e)}})}max(e,t=Cu.number.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(i){return(0,mu.default)(i)||i<=this.resolve(e)}})}lessThan(e,t=Cu.number.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(i){return(0,mu.default)(i)||ithis.resolve(e)}})}positive(e=Cu.number.positive){return this.moreThan(0,e)}negative(e=Cu.number.negative){return this.lessThan(0,e)}integer(e=Cu.number.integer){return this.test({name:"integer",message:e,test:t=>(0,mu.default)(t)||Number.isInteger(t)})}truncate(){return this.transform(e=>(0,mu.default)(e)?e:e|0)}round(e){var t,i=["ceil","floor","round","trunc"];if(e=((t=e)==null?void 0:t.toLowerCase())||"round",e==="trunc")return this.truncate();if(i.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+i.join(", "));return this.transform(n=>(0,mu.default)(n)?n:Math[e](n))}};TC.default=k0;ate.prototype=k0.prototype});var cte=w(vF=>{"use strict";Object.defineProperty(vF,"__esModule",{value:!0});vF.default=aHe;var AHe=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function aHe(r){var e=[1,4,5,6,7,10,11],t=0,i,n;if(n=AHe.exec(r)){for(var s=0,o;o=e[s];++s)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(n[8]===void 0||n[8]==="")&&(n[9]===void 0||n[9]==="")?i=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):(n[8]!=="Z"&&n[9]!==void 0&&(t=n[10]*60+n[11],n[9]==="+"&&(t=0-t)),i=Date.UTC(n[1],n[2],n[3],n[4],n[5]+t,n[6],n[7]))}else i=Date.parse?Date.parse(r):NaN;return i}});var fte=w(OC=>{"use strict";Object.defineProperty(OC,"__esModule",{value:!0});OC.create=xF;OC.default=void 0;var lHe=P0(cte()),ute=CA(),gte=P0(Gf()),cHe=P0(du()),uHe=P0(EA());function P0(r){return r&&r.__esModule?r:{default:r}}var kF=new Date(""),gHe=r=>Object.prototype.toString.call(r)==="[object Date]";function xF(){return new MC}var MC=class extends uHe.default{constructor(){super({type:"date"});this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=(0,lHe.default)(e),isNaN(e)?kF:new Date(e))})})}_typeCheck(e){return gHe(e)&&!isNaN(e.getTime())}prepareParam(e,t){let i;if(cHe.default.isRef(e))i=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);i=n}return i}min(e,t=ute.date.min){let i=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(n){return(0,gte.default)(n)||n>=this.resolve(i)}})}max(e,t=ute.date.max){var i=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(n){return(0,gte.default)(n)||n<=this.resolve(i)}})}};OC.default=MC;MC.INVALID_DATE=kF;xF.prototype=MC.prototype;xF.INVALID_DATE=kF});var pte=w((Tgt,hte)=>{function fHe(r,e,t,i){var n=-1,s=r==null?0:r.length;for(i&&s&&(t=r[++n]);++n{function hHe(r){return function(e){return r==null?void 0:r[e]}}dte.exports=hHe});var Ete=w((Mgt,mte)=>{var pHe=Cte(),dHe={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},CHe=pHe(dHe);mte.exports=CHe});var yte=w((Kgt,Ite)=>{var mHe=Ete(),EHe=lf(),IHe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yHe="\\u0300-\\u036f",wHe="\\ufe20-\\ufe2f",BHe="\\u20d0-\\u20ff",bHe=yHe+wHe+BHe,QHe="["+bHe+"]",SHe=RegExp(QHe,"g");function vHe(r){return r=EHe(r),r&&r.replace(IHe,mHe).replace(SHe,"")}Ite.exports=vHe});var Bte=w((Ugt,wte)=>{var xHe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function kHe(r){return r.match(xHe)||[]}wte.exports=kHe});var Qte=w((Hgt,bte)=>{var PHe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function DHe(r){return PHe.test(r)}bte.exports=DHe});var Yte=w((jgt,Ste)=>{var vte="\\ud800-\\udfff",RHe="\\u0300-\\u036f",FHe="\\ufe20-\\ufe2f",NHe="\\u20d0-\\u20ff",LHe=RHe+FHe+NHe,xte="\\u2700-\\u27bf",kte="a-z\\xdf-\\xf6\\xf8-\\xff",THe="\\xac\\xb1\\xd7\\xf7",OHe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",MHe="\\u2000-\\u206f",KHe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pte="A-Z\\xc0-\\xd6\\xd8-\\xde",UHe="\\ufe0e\\ufe0f",Dte=THe+OHe+MHe+KHe,Rte="['\u2019]",Fte="["+Dte+"]",HHe="["+LHe+"]",Nte="\\d+",jHe="["+xte+"]",Lte="["+kte+"]",Tte="[^"+vte+Dte+Nte+xte+kte+Pte+"]",GHe="\\ud83c[\\udffb-\\udfff]",YHe="(?:"+HHe+"|"+GHe+")",qHe="[^"+vte+"]",Ote="(?:\\ud83c[\\udde6-\\uddff]){2}",Mte="[\\ud800-\\udbff][\\udc00-\\udfff]",Yf="["+Pte+"]",JHe="\\u200d",Kte="(?:"+Lte+"|"+Tte+")",WHe="(?:"+Yf+"|"+Tte+")",Ute="(?:"+Rte+"(?:d|ll|m|re|s|t|ve))?",Hte="(?:"+Rte+"(?:D|LL|M|RE|S|T|VE))?",jte=YHe+"?",Gte="["+UHe+"]?",zHe="(?:"+JHe+"(?:"+[qHe,Ote,Mte].join("|")+")"+Gte+jte+")*",_He="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",VHe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",XHe=Gte+jte+zHe,ZHe="(?:"+[jHe,Ote,Mte].join("|")+")"+XHe,$He=RegExp([Yf+"?"+Lte+"+"+Ute+"(?="+[Fte,Yf,"$"].join("|")+")",WHe+"+"+Hte+"(?="+[Fte,Yf+Kte,"$"].join("|")+")",Yf+"?"+Kte+"+"+Ute,Yf+"+"+Hte,VHe,_He,Nte,ZHe].join("|"),"g");function eje(r){return r.match($He)||[]}Ste.exports=eje});var Jte=w((Ggt,qte)=>{var tje=Bte(),rje=Qte(),ije=lf(),nje=Yte();function sje(r,e,t){return r=ije(r),e=t?void 0:e,e===void 0?rje(r)?nje(r):tje(r):r.match(e)||[]}qte.exports=sje});var PF=w((Ygt,Wte)=>{var oje=pte(),aje=yte(),Aje=Jte(),lje="['\u2019]",cje=RegExp(lje,"g");function uje(r){return function(e){return oje(Aje(aje(e).replace(cje,"")),r,"")}}Wte.exports=uje});var _te=w((qgt,zte)=>{var gje=PF(),fje=gje(function(r,e,t){return r+(t?"_":"")+e.toLowerCase()});zte.exports=fje});var Xte=w((Jgt,Vte)=>{var hje=Zw(),pje=PF(),dje=pje(function(r,e,t){return e=e.toLowerCase(),r+(t?hje(e):e)});Vte.exports=dje});var $te=w((Wgt,Zte)=>{var Cje=Nf(),mje=tF(),Eje=CF();function Ije(r,e){var t={};return e=Eje(e,3),mje(r,function(i,n,s){Cje(t,e(i,n,s),i)}),t}Zte.exports=Ije});var tre=w((zgt,DF)=>{DF.exports=function(r){return ere(yje(r),r)};DF.exports.array=ere;function ere(r,e){var t=r.length,i=new Array(t),n={},s=t,o=wje(e),a=Bje(r);for(e.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)n[s]||l(r[s],s,new Set);return i;function l(c,u,g){if(g.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch(m){f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!n[u]){n[u]=!0;var h=o.get(c)||new Set;if(h=Array.from(h),u=h.length){g.add(c);do{var p=h[--u];l(p,a.get(p),g)}while(u);g.delete(c)}i[--t]=c}}}function yje(r){for(var e=new Set,t=0,i=r.length;t{"use strict";Object.defineProperty(RF,"__esModule",{value:!0});RF.default=bje;var Qje=D0(yC()),Sje=D0(tre()),vje=PC(),xje=D0(du()),kje=D0(Tf());function D0(r){return r&&r.__esModule?r:{default:r}}function bje(r,e=[]){let t=[],i=[];function n(s,o){var a=(0,vje.split)(s)[0];~i.indexOf(a)||i.push(a),~e.indexOf(`${o}-${a}`)||t.push([o,a])}for(let s in r)if((0,Qje.default)(r,s)){let o=r[s];~i.indexOf(s)||i.push(s),xje.default.isRef(o)&&o.isSibling?n(o.path,s):(0,kje.default)(o)&&"deps"in o&&o.deps.forEach(a=>n(a,s))}return Sje.default.array(i,t).reverse()}});var nre=w(FF=>{"use strict";Object.defineProperty(FF,"__esModule",{value:!0});FF.default=Pje;function ire(r,e){let t=Infinity;return r.some((i,n)=>{var s;if(((s=e.path)==null?void 0:s.indexOf(i))!==-1)return t=n,!0}),t}function Pje(r){return(e,t)=>ire(r,e)-ire(r,t)}});var ure=w(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.create=sre;KC.default=void 0;var ore=fa(yC()),are=fa(_te()),Dje=fa(Xte()),Rje=fa($te()),Fje=fa(mF()),Nje=PC(),Are=CA(),Lje=fa(rre()),lre=fa(nre()),Tje=fa(l0()),Oje=fa(fu()),NF=fa(EA());function fa(r){return r&&r.__esModule?r:{default:r}}function qf(){return qf=Object.assign||function(r){for(var e=1;eObject.prototype.toString.call(r)==="[object Object]";function Mje(r,e){let t=Object.keys(r.fields);return Object.keys(e).filter(i=>t.indexOf(i)===-1)}var Kje=(0,lre.default)([]),R0=class extends NF.default{constructor(e){super({type:"object"});this.fields=Object.create(null),this._sortErrors=Kje,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(i){if(typeof i=="string")try{i=JSON.parse(i)}catch(n){i=null}return this.isType(i)?i:null}),e&&this.shape(e)})}_typeCheck(e){return cre(e)||typeof e=="function"}_cast(e,t={}){var i;let n=super._cast(e,t);if(n===void 0)return this.getDefault();if(!this._typeCheck(n))return n;let s=this.fields,o=(i=t.stripUnknown)!=null?i:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(g=>this._nodes.indexOf(g)===-1)),l={},c=qf({},t,{parent:l,__validating:t.__validating||!1}),u=!1;for(let g of a){let f=s[g],h=(0,ore.default)(n,g);if(f){let p,m=n[g];c.path=(t.path?`${t.path}.`:"")+g,f=f.resolve({value:m,context:t.context,parent:l});let y="spec"in f?f.spec:void 0,b=y==null?void 0:y.strict;if(y==null?void 0:y.strip){u=u||g in n;continue}p=!t.__validating||!b?f.cast(n[g],c):n[g],p!==void 0&&(l[g]=p)}else h&&!o&&(l[g]=n[g]);l[g]!==n[g]&&(u=!0)}return u?l:n}_validate(e,t={},i){let n=[],{sync:s,from:o=[],originalValue:a=e,abortEarly:l=this.spec.abortEarly,recursive:c=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(u,g)=>{if(u){if(!Oje.default.isError(u)||l)return void i(u,g);n.push(u)}if(!c||!cre(g)){i(n[0]||null,g);return}a=a||g;let f=this._nodes.map(h=>(p,m)=>{let y=h.indexOf(".")===-1?(t.path?`${t.path}.`:"")+h:`${t.path||""}["${h}"]`,b=this.fields[h];if(b&&"validate"in b){b.validate(g[h],qf({},t,{path:y,from:o,strict:!0,parent:g,originalValue:a[h]}),m);return}m(null)});(0,Tje.default)({sync:s,tests:f,value:g,errors:n,endEarly:l,sort:this._sortErrors,path:t.path},i)})}clone(e){let t=super.clone(e);return t.fields=qf({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),i=t.fields;for(let[n,s]of Object.entries(this.fields)){let o=i[n];o===void 0?i[n]=s:o instanceof NF.default&&s instanceof NF.default&&(i[n]=s.concat(o))}return t.withMutation(()=>t.shape(i))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let i=this.fields[t];e[t]="default"in i?i.getDefault():void 0}),e}_getDefault(){if("default"in this.spec)return super._getDefault();if(!!this._nodes.length)return this.getDefaultFromShape()}shape(e,t=[]){let i=this.clone(),n=Object.assign(i.fields,e);if(i.fields=n,i._sortErrors=(0,lre.default)(Object.keys(n)),t.length){Array.isArray(t[0])||(t=[t]);let s=t.map(([o,a])=>`${o}-${a}`);i._excludedEdges=i._excludedEdges.concat(s)}return i._nodes=(0,Lje.default)(n,i._excludedEdges),i}pick(e){let t={};for(let i of e)this.fields[i]&&(t[i]=this.fields[i]);return this.clone().withMutation(i=>(i.fields={},i.shape(t)))}omit(e){let t=this.clone(),i=t.fields;t.fields={};for(let n of e)delete i[n];return t.withMutation(()=>t.shape(i))}from(e,t,i){let n=(0,Nje.getter)(e,!0);return this.transform(s=>{if(s==null)return s;let o=s;return(0,ore.default)(s,e)&&(o=qf({},s),i||delete o[e],o[t]=n(s)),o})}noUnknown(e=!0,t=Are.object.noUnknown){typeof e=="string"&&(t=e,e=!0);let i=this.test({name:"noUnknown",exclusive:!0,message:t,test(n){if(n==null)return!0;let s=Mje(this.schema,n);return!e||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return i.spec.noUnknown=e,i}unknown(e=!0,t=Are.object.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&(0,Rje.default)(t,(i,n)=>e(n)))}camelCase(){return this.transformKeys(Dje.default)}snakeCase(){return this.transformKeys(are.default)}constantCase(){return this.transformKeys(e=>(0,are.default)(e).toUpperCase())}describe(){let e=super.describe();return e.fields=(0,Fje.default)(this.fields,t=>t.describe()),e}};KC.default=R0;function sre(r){return new R0(r)}sre.prototype=R0.prototype});var fre=w(UC=>{"use strict";Object.defineProperty(UC,"__esModule",{value:!0});UC.create=gre;UC.default=void 0;var LF=Jf(Gf()),Uje=Jf(Tf()),Hje=Jf(IC()),TF=CA(),jje=Jf(l0()),Gje=Jf(fu()),Yje=Jf(EA());function Jf(r){return r&&r.__esModule?r:{default:r}}function F0(){return F0=Object.assign||function(r){for(var e=1;e{this.transform(function(t){if(typeof t=="string")try{t=JSON.parse(t)}catch(i){t=null}return this.isType(t)?t:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let i=super._cast(e,t);if(!this._typeCheck(i)||!this.innerType)return i;let n=!1,s=i.map((o,a)=>{let l=this.innerType.cast(o,F0({},t,{path:`${t.path||""}[${a}]`}));return l!==o&&(n=!0),l});return n?s:i}_validate(e,t={},i){var n,s;let o=[],a=t.sync,l=t.path,c=this.innerType,u=(n=t.abortEarly)!=null?n:this.spec.abortEarly,g=(s=t.recursive)!=null?s:this.spec.recursive,f=t.originalValue!=null?t.originalValue:e;super._validate(e,t,(h,p)=>{if(h){if(!Gje.default.isError(h)||u)return void i(h,p);o.push(h)}if(!g||!c||!this._typeCheck(p)){i(o[0]||null,p);return}f=f||p;let m=new Array(p.length);for(let y=0;yc.validate(b,x,q)}(0,jje.default)({sync:a,path:l,value:p,errors:o,endEarly:u,tests:m},i)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!(0,Uje.default)(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+(0,Hje.default)(e));return t.innerType=e,t}length(e,t=TF.array.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(i){return(0,LF.default)(i)||i.length===this.resolve(e)}})}min(e,t){return t=t||TF.array.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(i){return(0,LF.default)(i)||i.length>=this.resolve(e)}})}max(e,t){return t=t||TF.array.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(i){return(0,LF.default)(i)||i.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:t==null?[]:[].concat(t))}compact(e){let t=e?(i,n,s)=>!e(i,n,s):i=>!!i;return this.transform(i=>i!=null?i.filter(t):i)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}};UC.default=N0;gre.prototype=N0.prototype});var hre=w(HC=>{"use strict";Object.defineProperty(HC,"__esModule",{value:!0});HC.create=qje;HC.default=void 0;var Wje=Jje(Tf());function Jje(r){return r&&r.__esModule?r:{default:r}}function qje(r){return new OF(r)}var OF=class{constructor(e){this.type="lazy",this.__isYupSchema__=!0,this._resolve=(t,i={})=>{let n=this.builder(t,i);if(!(0,Wje.default)(n))throw new TypeError("lazy() functions must return a valid schema");return n.resolve(i)},this.builder=e}resolve(e){return this._resolve(e.value,e)}cast(e,t){return this._resolve(e,t).cast(e,t)}validate(e,t,i){return this._resolve(e,t).validate(e,t,i)}validateSync(e,t){return this._resolve(e,t).validateSync(e,t)}validateAt(e,t,i){return this._resolve(t,i).validateAt(e,t,i)}validateSyncAt(e,t,i){return this._resolve(t,i).validateSyncAt(e,t,i)}describe(){return null}isValid(e,t){return this._resolve(e,t).isValid(e,t)}isValidSync(e,t){return this._resolve(e,t).isValidSync(e,t)}},zje=OF;HC.default=zje});var pre=w(MF=>{"use strict";Object.defineProperty(MF,"__esModule",{value:!0});MF.default=_je;var Xje=Vje(CA());function Vje(r){return r&&r.__esModule?r:{default:r}}function _je(r){Object.keys(r).forEach(e=>{Object.keys(r[e]).forEach(t=>{Xje.default[e][t]=r[e][t]})})}});var UF=w(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.addMethod=Zje;Object.defineProperty(Br,"MixedSchema",{enumerable:!0,get:function(){return dre.default}});Object.defineProperty(Br,"mixed",{enumerable:!0,get:function(){return dre.create}});Object.defineProperty(Br,"BooleanSchema",{enumerable:!0,get:function(){return KF.default}});Object.defineProperty(Br,"bool",{enumerable:!0,get:function(){return KF.create}});Object.defineProperty(Br,"boolean",{enumerable:!0,get:function(){return KF.create}});Object.defineProperty(Br,"StringSchema",{enumerable:!0,get:function(){return Cre.default}});Object.defineProperty(Br,"string",{enumerable:!0,get:function(){return Cre.create}});Object.defineProperty(Br,"NumberSchema",{enumerable:!0,get:function(){return mre.default}});Object.defineProperty(Br,"number",{enumerable:!0,get:function(){return mre.create}});Object.defineProperty(Br,"DateSchema",{enumerable:!0,get:function(){return Ere.default}});Object.defineProperty(Br,"date",{enumerable:!0,get:function(){return Ere.create}});Object.defineProperty(Br,"ObjectSchema",{enumerable:!0,get:function(){return Ire.default}});Object.defineProperty(Br,"object",{enumerable:!0,get:function(){return Ire.create}});Object.defineProperty(Br,"ArraySchema",{enumerable:!0,get:function(){return yre.default}});Object.defineProperty(Br,"array",{enumerable:!0,get:function(){return yre.create}});Object.defineProperty(Br,"ref",{enumerable:!0,get:function(){return $je.create}});Object.defineProperty(Br,"lazy",{enumerable:!0,get:function(){return eGe.create}});Object.defineProperty(Br,"ValidationError",{enumerable:!0,get:function(){return tGe.default}});Object.defineProperty(Br,"reach",{enumerable:!0,get:function(){return rGe.default}});Object.defineProperty(Br,"isSchema",{enumerable:!0,get:function(){return wre.default}});Object.defineProperty(Br,"setLocale",{enumerable:!0,get:function(){return iGe.default}});Object.defineProperty(Br,"BaseSchema",{enumerable:!0,get:function(){return nGe.default}});var dre=Eu(Zee()),KF=Eu(ite()),Cre=Eu(ote()),mre=Eu(lte()),Ere=Eu(fte()),Ire=Eu(ure()),yre=Eu(fre()),$je=du(),eGe=hre(),tGe=jC(fu()),rGe=jC(QF()),wre=jC(Tf()),iGe=jC(pre()),nGe=jC(EA());function jC(r){return r&&r.__esModule?r:{default:r}}function Bre(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return Bre=function(){return r},r}function Eu(r){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var e=Bre();if(e&&e.has(r))return e.get(r);var t={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var s=i?Object.getOwnPropertyDescriptor(r,n):null;s&&(s.get||s.set)?Object.defineProperty(t,n,s):t[n]=r[n]}return t.default=r,e&&e.set(r,t),t}function Zje(r,e,t){if(!r||!(0,wre.default)(r.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof e!="string")throw new TypeError("A Method name must be provided");if(typeof t!="function")throw new TypeError("Method function must be provided");r.prototype[e]=t}});var xre=w((hft,YC)=>{"use strict";var aGe=process.env.TERM_PROGRAM==="Hyper",AGe=process.platform==="win32",Qre=process.platform==="linux",HF={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Sre=Object.assign({},HF,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",question:"?",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),vre=Object.assign({},HF,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",question:"?",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Qre?"\u25B8":"\u276F",pointerSmall:Qre?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});YC.exports=AGe&&!aGe?Sre:vre;Reflect.defineProperty(YC.exports,"common",{enumerable:!1,value:HF});Reflect.defineProperty(YC.exports,"windows",{enumerable:!1,value:Sre});Reflect.defineProperty(YC.exports,"other",{enumerable:!1,value:vre})});var Eo=w((pft,jF)=>{"use strict";var lGe=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),cGe=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,kre=()=>{let r={enabled:!0,visible:!0,styles:{},keys:{}};"FORCE_COLOR"in process.env&&(r.enabled=process.env.FORCE_COLOR!=="0");let e=s=>{let o=s.open=`[${s.codes[0]}m`,a=s.close=`[${s.codes[1]}m`,l=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(c,u)=>{c.includes(a)&&(c=c.replace(l,a+o));let g=o+c+a;return u?g.replace(/\r*\n/g,`${a}$&${o}`):g},s},t=(s,o,a)=>typeof s=="function"?s(o):s.wrap(o,a),i=(s,o)=>{if(s===""||s==null)return"";if(r.enabled===!1)return s;if(r.visible===!1)return"";let a=""+s,l=a.includes(` +`),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,l);return a},n=(s,o,a)=>{r.styles[s]=e({name:s,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(s),Reflect.defineProperty(r,s,{configurable:!0,enumerable:!0,set(c){r.alias(s,c)},get(){let c=u=>i(u,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(s):[s],c}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=cGe,r.hasColor=r.hasAnsi=s=>(r.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&r.ansiRegex.test(s)),r.alias=(s,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:s}),r.styles[s]=a,a.stack=[s]),Reflect.defineProperty(r,s,{configurable:!0,enumerable:!0,set(l){r.alias(s,l)},get(){let l=c=>i(c,l.stack);return Reflect.setPrototypeOf(l,r),l.stack=this.stack?this.stack.concat(a.stack):a.stack,l}})},r.theme=s=>{if(!lGe(s))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(s))r.alias(o,s[o]);return r},r.alias("unstyle",s=>typeof s=="string"&&s!==""?(r.ansiRegex.lastIndex=0,s.replace(r.ansiRegex,"")):""),r.alias("noop",s=>s),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=xre(),r.define=n,r};jF.exports=kre();jF.exports.create=kre});var Xi=w(Lt=>{"use strict";var uGe=Object.prototype.toString,Ws=Eo(),Pre=!1,GF=[],Dre={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};Lt.longest=(r,e)=>r.reduce((t,i)=>Math.max(t,e?i[e].length:i.length),0);Lt.hasColor=r=>!!r&&Ws.hasColor(r);var T0=Lt.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);Lt.nativeType=r=>uGe.call(r).slice(8,-1).toLowerCase().replace(/\s/g,"");Lt.isAsyncFn=r=>Lt.nativeType(r)==="asyncfunction";Lt.isPrimitive=r=>r!=null&&typeof r!="object"&&typeof r!="function";Lt.resolve=(r,e,...t)=>typeof e=="function"?e.call(r,...t):e;Lt.scrollDown=(r=[])=>[...r.slice(1),r[0]];Lt.scrollUp=(r=[])=>[r.pop(),...r];Lt.reorder=(r=[])=>{let e=r.slice();return e.sort((t,i)=>t.index>i.index?1:t.index{let i=r.length,n=t===i?0:t<0?i-1:t,s=r[e];r[e]=r[n],r[n]=s};Lt.width=(r,e=80)=>{let t=r&&r.columns?r.columns:e;return r&&typeof r.getWindowSize=="function"&&(t=r.getWindowSize()[0]),process.platform==="win32"?t-1:t};Lt.height=(r,e=20)=>{let t=r&&r.rows?r.rows:e;return r&&typeof r.getWindowSize=="function"&&(t=r.getWindowSize()[1]),t};Lt.wordWrap=(r,e={})=>{if(!r)return r;typeof e=="number"&&(e={width:e});let{indent:t="",newline:i=` +`+t,width:n=80}=e;n-=((i+t).match(/[^\S\n]/g)||[]).length;let o=`.{1,${n}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,a=r.trim(),l=new RegExp(o,"g"),c=a.match(l)||[];return c=c.map(u=>u.replace(/\n$/,"")),e.padEnd&&(c=c.map(u=>u.padEnd(n," "))),e.padStart&&(c=c.map(u=>u.padStart(n," "))),t+c.join(i)};Lt.unmute=r=>{let e=r.stack.find(i=>Ws.keys.color.includes(i));return e?Ws[e]:r.stack.find(i=>i.slice(2)==="bg")?Ws[e.slice(2)]:i=>i};Lt.pascal=r=>r?r[0].toUpperCase()+r.slice(1):"";Lt.inverse=r=>{if(!r||!r.stack)return r;let e=r.stack.find(i=>Ws.keys.color.includes(i));if(e){let i=Ws["bg"+Lt.pascal(e)];return i?i.black:r}let t=r.stack.find(i=>i.slice(0,2)==="bg");return t?Ws[t.slice(2).toLowerCase()]||r:Ws.none};Lt.complement=r=>{if(!r||!r.stack)return r;let e=r.stack.find(i=>Ws.keys.color.includes(i)),t=r.stack.find(i=>i.slice(0,2)==="bg");if(e&&!t)return Ws[Dre[e]||e];if(t){let i=t.slice(2).toLowerCase(),n=Dre[i];return n&&Ws["bg"+Lt.pascal(n)]||r}return Ws.none};Lt.meridiem=r=>{let e=r.getHours(),t=r.getMinutes(),i=e>=12?"pm":"am";e=e%12;let n=e===0?12:e,s=t<10?"0"+t:t;return n+":"+s+" "+i};Lt.set=(r={},e="",t)=>e.split(".").reduce((i,n,s,o)=>{let a=o.length-1>s?i[n]||{}:t;return!Lt.isObject(a)&&s{let i=r[e]==null?e.split(".").reduce((n,s)=>n&&n[s],r):r[e];return i==null?t:i};Lt.mixin=(r,e)=>{if(!T0(r))return e;if(!T0(e))return r;for(let t of Object.keys(e)){let i=Object.getOwnPropertyDescriptor(e,t);if(i.hasOwnProperty("value"))if(r.hasOwnProperty(t)&&T0(i.value)){let n=Object.getOwnPropertyDescriptor(r,t);T0(n.value)?r[t]=Lt.merge({},r[t],e[t]):Reflect.defineProperty(r,t,i)}else Reflect.defineProperty(r,t,i);else Reflect.defineProperty(r,t,i)}return r};Lt.merge=(...r)=>{let e={};for(let t of r)Lt.mixin(e,t);return e};Lt.mixinEmitter=(r,e)=>{let t=e.constructor.prototype;for(let i of Object.keys(t)){let n=t[i];typeof n=="function"?Lt.define(r,i,n.bind(e)):Lt.define(r,i,n)}};Lt.onExit=r=>{let e=(t,i)=>{Pre||(Pre=!0,GF.forEach(n=>n()),t===!0&&process.exit(128+i))};GF.length===0&&(process.once("SIGTERM",e.bind(null,!0,15)),process.once("SIGINT",e.bind(null,!0,2)),process.once("exit",e)),GF.push(r)};Lt.define=(r,e,t)=>{Reflect.defineProperty(r,e,{value:t})};Lt.defineExport=(r,e,t)=>{let i;Reflect.defineProperty(r,e,{enumerable:!0,configurable:!0,set(n){i=n},get(){return i?i():t()}})}});var Rre=w(zf=>{"use strict";zf.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};zf.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};zf.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};zf.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};zf.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var Lre=w((mft,Fre)=>{"use strict";var Nre=require("readline"),gGe=Rre(),fGe=/^(?:\x1b)([a-zA-Z0-9])$/,hGe=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,pGe={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function dGe(r){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(r)}function CGe(r){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(r)}var O0=(r="",e={})=>{let t,i=N({name:e.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:r,raw:r},e);if(Buffer.isBuffer(r)?r[0]>127&&r[1]===void 0?(r[0]-=128,r=""+String(r)):r=String(r):r!==void 0&&typeof r!="string"?r=String(r):r||(r=i.sequence||""),i.sequence=i.sequence||r||i.name,r==="\r")i.raw=void 0,i.name="return";else if(r===` +`)i.name="enter";else if(r===" ")i.name="tab";else if(r==="\b"||r==="\x7F"||r==="\x7F"||r==="\b")i.name="backspace",i.meta=r.charAt(0)==="";else if(r===""||r==="")i.name="escape",i.meta=r.length===2;else if(r===" "||r===" ")i.name="space",i.meta=r.length===2;else if(r<="")i.name=String.fromCharCode(r.charCodeAt(0)+"a".charCodeAt(0)-1),i.ctrl=!0;else if(r.length===1&&r>="0"&&r<="9")i.name="number";else if(r.length===1&&r>="a"&&r<="z")i.name=r;else if(r.length===1&&r>="A"&&r<="Z")i.name=r.toLowerCase(),i.shift=!0;else if(t=fGe.exec(r))i.meta=!0,i.shift=/^[A-Z]$/.test(t[1]);else if(t=hGe.exec(r)){let n=[...r];n[0]===""&&n[1]===""&&(i.option=!0);let s=[t[1],t[2],t[4],t[6]].filter(Boolean).join(""),o=(t[3]||t[5]||1)-1;i.ctrl=!!(o&4),i.meta=!!(o&10),i.shift=!!(o&1),i.code=s,i.name=pGe[s],i.shift=dGe(s)||i.shift,i.ctrl=CGe(s)||i.ctrl}return i};O0.listen=(r={},e)=>{let{stdin:t}=r;if(!t||t!==process.stdin&&!t.isTTY)throw new Error("Invalid stream passed");let i=Nre.createInterface({terminal:!0,input:t});Nre.emitKeypressEvents(t,i);let n=(a,l)=>e(a,O0(a,l),i),s=t.isRaw;return t.isTTY&&t.setRawMode(!0),t.on("keypress",n),i.resume(),()=>{t.isTTY&&t.setRawMode(s),t.removeListener("keypress",n),i.pause(),i.close()}};O0.action=(r,e,t)=>{let i=N(N({},gGe),t);return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};Fre.exports=O0});var Ore=w((Eft,Tre)=>{"use strict";Tre.exports=r=>{r.timers=r.timers||{};let e=r.options.timers;if(!!e)for(let t of Object.keys(e)){let i=e[t];typeof i=="number"&&(i={interval:i}),mGe(r,t,i)}};function mGe(r,e,t={}){let i=r.timers[e]={name:e,start:Date.now(),ms:0,tick:0},n=t.interval||120;i.frames=t.frames||[],i.loading=!0;let s=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,r.render()},n);return i.stop=()=>{i.loading=!1,clearInterval(s)},Reflect.defineProperty(i,"interval",{value:s}),r.once("close",()=>i.stop()),i.stop}});var Ure=w((Ift,Mre)=>{"use strict";var{define:EGe,width:IGe}=Xi(),Kre=class{constructor(e){let t=e.options;EGe(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=IGe(t.stdout||process.stdout),Object.assign(this,t),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e=N({},this);return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let t=this._color||e[this.status];return typeof t=="function"?t:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};Mre.exports=Kre});var jre=w((yft,Hre)=>{"use strict";var YF=Xi(),Ni=Eo(),qF={default:Ni.noop,noop:Ni.noop,set inverse(r){this._inverse=r},get inverse(){return this._inverse||YF.inverse(this.primary)},set complement(r){this._complement=r},get complement(){return this._complement||YF.complement(this.primary)},primary:Ni.cyan,success:Ni.green,danger:Ni.magenta,strong:Ni.bold,warning:Ni.yellow,muted:Ni.dim,disabled:Ni.gray,dark:Ni.dim.gray,underline:Ni.underline,set info(r){this._info=r},get info(){return this._info||this.primary},set em(r){this._em=r},get em(){return this._em||this.primary.underline},set heading(r){this._heading=r},get heading(){return this._heading||this.muted.underline},set pending(r){this._pending=r},get pending(){return this._pending||this.primary},set submitted(r){this._submitted=r},get submitted(){return this._submitted||this.success},set cancelled(r){this._cancelled=r},get cancelled(){return this._cancelled||this.danger},set typing(r){this._typing=r},get typing(){return this._typing||this.dim},set placeholder(r){this._placeholder=r},get placeholder(){return this._placeholder||this.primary.dim},set highlight(r){this._highlight=r},get highlight(){return this._highlight||this.inverse}};qF.merge=(r={})=>{r.styles&&typeof r.styles.enabled=="boolean"&&(Ni.enabled=r.styles.enabled),r.styles&&typeof r.styles.visible=="boolean"&&(Ni.visible=r.styles.visible);let e=YF.merge({},qF,r.styles);delete e.merge;for(let t of Object.keys(Ni))e.hasOwnProperty(t)||Reflect.defineProperty(e,t,{get:()=>Ni[t]});for(let t of Object.keys(Ni.styles))e.hasOwnProperty(t)||Reflect.defineProperty(e,t,{get:()=>Ni[t]});return e};Hre.exports=qF});var Yre=w((wft,Gre)=>{"use strict";var JF=process.platform==="win32",yA=Eo(),yGe=Xi(),WF=te(N({},yA.symbols),{upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:yA.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:yA.symbols.question,submitted:yA.symbols.check,cancelled:yA.symbols.cross},separator:{pending:yA.symbols.pointerSmall,submitted:yA.symbols.middot,cancelled:yA.symbols.middot},radio:{off:JF?"( )":"\u25EF",on:JF?"(*)":"\u25C9",disabled:JF?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]});WF.merge=r=>{let e=yGe.merge({},yA.symbols,WF,r.symbols);return delete e.merge,e};Gre.exports=WF});var Jre=w((Bft,qre)=>{"use strict";var wGe=jre(),BGe=Yre(),bGe=Xi();qre.exports=r=>{r.options=bGe.merge({},r.options.theme,r.options),r.symbols=BGe.merge(r.options),r.styles=wGe.merge(r.options)}});var Xre=w((Wre,zre)=>{"use strict";var _re=process.env.TERM_PROGRAM==="Apple_Terminal",QGe=Eo(),zF=Xi(),Io=zre.exports=Wre,Lr="[",Vre="\x07",_F=!1,Fl=Io.code={bell:Vre,beep:Vre,beginning:`${Lr}G`,down:`${Lr}J`,esc:Lr,getPosition:`${Lr}6n`,hide:`${Lr}?25l`,line:`${Lr}2K`,lineEnd:`${Lr}K`,lineStart:`${Lr}1K`,restorePosition:Lr+(_re?"8":"u"),savePosition:Lr+(_re?"7":"s"),screen:`${Lr}2J`,show:`${Lr}?25h`,up:`${Lr}1J`},Iu=Io.cursor={get hidden(){return _F},hide(){return _F=!0,Fl.hide},show(){return _F=!1,Fl.show},forward:(r=1)=>`${Lr}${r}C`,backward:(r=1)=>`${Lr}${r}D`,nextLine:(r=1)=>`${Lr}E`.repeat(r),prevLine:(r=1)=>`${Lr}F`.repeat(r),up:(r=1)=>r?`${Lr}${r}A`:"",down:(r=1)=>r?`${Lr}${r}B`:"",right:(r=1)=>r?`${Lr}${r}C`:"",left:(r=1)=>r?`${Lr}${r}D`:"",to(r,e){return e?`${Lr}${e+1};${r+1}H`:`${Lr}${r+1}G`},move(r=0,e=0){let t="";return t+=r<0?Iu.left(-r):r>0?Iu.right(r):"",t+=e<0?Iu.up(-e):e>0?Iu.down(e):"",t},restore(r={}){let{after:e,cursor:t,initial:i,input:n,prompt:s,size:o,value:a}=r;if(i=zF.isPrimitive(i)?String(i):"",n=zF.isPrimitive(n)?String(n):"",a=zF.isPrimitive(a)?String(a):"",o){let l=Io.cursor.up(o)+Io.cursor.to(s.length),c=n.length-t;return c>0&&(l+=Io.cursor.left(c)),l}if(a||e){let l=!n&&!!i?-i.length:-n.length+t;return e&&(l-=e.length),n===""&&i&&!s.includes(i)&&(l+=i.length),Io.cursor.move(l)}}},VF=Io.erase={screen:Fl.screen,up:Fl.up,down:Fl.down,line:Fl.line,lineEnd:Fl.lineEnd,lineStart:Fl.lineStart,lines(r){let e="";for(let t=0;t{if(!e)return VF.line+Iu.to(0);let t=s=>[...QGe.unstyle(s)].length,i=r.split(/\r?\n/),n=0;for(let s of i)n+=1+Math.floor(Math.max(t(s)-1,0)/e);return(VF.line+Iu.prevLine()).repeat(n-1)+VF.line+Iu.to(0)}});var _f=w((bft,Zre)=>{"use strict";var SGe=require("events"),$re=Eo(),XF=Lre(),vGe=Ore(),xGe=Ure(),kGe=Jre(),Tn=Xi(),yu=Xre(),M0=class extends SGe{constructor(e={}){super();this.name=e.name,this.type=e.type,this.options=e,kGe(this),vGe(this),this.state=new xGe(this),this.initial=[e.initial,e.default].find(t=>t!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=DGe(this.options.margin),this.setMaxListeners(0),PGe(this)}async keypress(e,t={}){this.keypressed=!0;let i=XF.action(e,XF(e,t),this.options.actions);this.state.keypress=i,this.emit("keypress",e,i),this.emit("state",this.state.clone());let n=this.options[i.action]||this[i.action]||this.dispatch;if(typeof n=="function")return await n.call(this,e,i);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(yu.code.beep)}cursorHide(){this.stdout.write(yu.cursor.hide()),Tn.onExit(()=>this.cursorShow())}cursorShow(){this.stdout.write(yu.cursor.show())}write(e){!e||(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let t=this.state.buffer;this.state.buffer="",!(!t&&!e||this.options.show===!1)&&this.stdout.write(yu.cursor.down(e)+yu.clear(t,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:t,rest:i}=this.sections(),{cursor:n,initial:s="",input:o="",value:a=""}=this,l=this.state.size=i.length,c={after:t,cursor:n,initial:s,input:o,prompt:e,size:l,value:a},u=yu.cursor.restore(c);u&&this.stdout.write(u)}sections(){let{buffer:e,input:t,prompt:i}=this.state;i=$re.unstyle(i);let n=$re.unstyle(e),s=n.indexOf(i),o=n.slice(0,s),l=n.slice(s).split(` +`),c=l[0],u=l[l.length-1],f=(i+(t?" "+t:"")).length,h=fe.call(this,this.value),this.result=()=>i.call(this,this.value),typeof t.initial=="function"&&(this.initial=await t.initial.call(this,this)),typeof t.onRun=="function"&&await t.onRun.call(this,this),typeof t.onSubmit=="function"){let n=t.onSubmit.bind(this),s=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await n(this.name,this.value,this),s())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(e,t)=>{if(this.once("submit",e),this.once("cancel",t),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(e,t,i){let{options:n,state:s,symbols:o,timers:a}=this,l=a&&a[e];s.timer=l;let c=n[e]||s[e]||o[e],u=t&&t[e]!=null?t[e]:await c;if(u==="")return u;let g=await this.resolve(u,s,t,i);return!g&&t&&t[e]?this.resolve(c,s,t,i):g}async prefix(){let e=await this.element("prefix")||this.symbols,t=this.timers&&this.timers.prefix,i=this.state;return i.timer=t,Tn.isObject(e)&&(e=e[i.status]||e.pending),Tn.hasColor(e)?e:(this.styles[i.status]||this.styles.pending)(e)}async message(){let e=await this.element("message");return Tn.hasColor(e)?e:this.styles.strong(e)}async separator(){let e=await this.element("separator")||this.symbols,t=this.timers&&this.timers.separator,i=this.state;i.timer=t;let n=e[i.status]||e.pending||i.separator,s=await this.resolve(n,i);return Tn.isObject(s)&&(s=s[i.status]||s.pending),Tn.hasColor(s)?s:this.styles.muted(s)}async pointer(e,t){let i=await this.element("pointer",e,t);if(typeof i=="string"&&Tn.hasColor(i))return i;if(i){let n=this.styles,s=this.index===t,o=s?n.primary:c=>c,a=await this.resolve(i[s?"on":"off"]||i,this.state),l=Tn.hasColor(a)?a:o(a);return s?l:" ".repeat(a.length)}}async indicator(e,t){let i=await this.element("indicator",e,t);if(typeof i=="string"&&Tn.hasColor(i))return i;if(i){let n=this.styles,s=e.enabled===!0,o=s?n.success:n.dark,a=i[s?"on":"off"]||i;return Tn.hasColor(a)?a:o(a)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let e=await this.element("hint");return Tn.hasColor(e)?e:this.styles.muted(e)}}error(e){return this.state.submitted?"":e||this.state.error}format(e){return e}result(e){return e}validate(e){return this.options.required===!0?this.isValue(e):!0}isValue(e){return e!=null&&e!==""}resolve(e,...t){return Tn.resolve(this,e,...t)}get base(){return M0.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||Tn.height(this.stdout,25)}get width(){return this.options.columns||Tn.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(e){this.state.cursor=e}get cursor(){return this.state.cursor}set input(e){this.state.input=e}get input(){return this.state.input}set value(e){this.state.value=e}get value(){let{input:e,value:t}=this.state,i=[t,e].find(this.isValue.bind(this));return this.isValue(i)?i:this.initial}static get prompt(){return e=>new this(e).run()}};function PGe(r){let e=n=>r[n]===void 0||typeof r[n]=="function",t=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],i=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let n of Object.keys(r.options)){if(t.includes(n)||/^on[A-Z]/.test(n))continue;let s=r.options[n];typeof s=="function"&&e(n)?i.includes(n)||(r[n]=s.bind(r)):typeof r[n]!="function"&&(r[n]=s)}}function DGe(r){typeof r=="number"&&(r=[r,r,r,r]);let e=[].concat(r||[]),t=n=>n%2==0?` +`:" ",i=[];for(let n=0;n<4;n++){let s=t(n);e[n]?i.push(s.repeat(e[n])):i.push("")}return i}Zre.exports=M0});var rie=w((Qft,eie)=>{"use strict";var RGe=Xi(),tie={default(r,e){return e},checkbox(r,e){throw new Error("checkbox role is not implemented yet")},editable(r,e){throw new Error("editable role is not implemented yet")},expandable(r,e){throw new Error("expandable role is not implemented yet")},heading(r,e){return e.disabled="",e.indicator=[e.indicator," "].find(t=>t!=null),e.message=e.message||"",e},input(r,e){throw new Error("input role is not implemented yet")},option(r,e){return tie.default(r,e)},radio(r,e){throw new Error("radio role is not implemented yet")},separator(r,e){return e.disabled="",e.indicator=[e.indicator," "].find(t=>t!=null),e.message=e.message||r.symbols.line.repeat(5),e},spacer(r,e){return e}};eie.exports=(r,e={})=>{let t=RGe.merge({},tie,e.roles);return t[r]||t.default}});var qC=w((Sft,iie)=>{"use strict";var FGe=Eo(),NGe=_f(),LGe=rie(),K0=Xi(),{reorder:ZF,scrollUp:TGe,scrollDown:OGe,isObject:nie,swap:MGe}=K0,sie=class extends NGe{constructor(e){super(e);this.cursorHide(),this.maxSelected=e.maxSelected||Infinity,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:t,autofocus:i,suggest:n}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(s=>s.enabled=!1),typeof n!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");nie(t)&&(t=Object.keys(t)),Array.isArray(t)?(i!=null&&(this.index=this.findIndex(i)),t.forEach(s=>this.enable(this.find(s))),await this.render()):(i!=null&&(t=i),typeof t=="string"&&(t=this.findIndex(t)),typeof t=="number"&&t>-1&&(this.index=Math.max(0,Math.min(t,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,t){this.state.loadingChoices=!0;let i=[],n=0,s=async(o,a)=>{typeof o=="function"&&(o=await o.call(this)),o instanceof Promise&&(o=await o);for(let l=0;l(this.state.loadingChoices=!1,o))}async toChoice(e,t,i){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let n=e.value;if(e=LGe(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=t,e.cursor=0,K0.define(e,"parent",i),e.level=i?i.level+1:1,e.indent==null&&(e.indent=i?i.indent+" ":e.indent||""),e.path=i?i.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,FGe.unstyle(e.message).length));let o=N({},e);return e.reset=(a=o.input,l=o.value)=>{for(let c of Object.keys(o))e[c]=o[c];e.input=a,e.value=l},n==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,t)),e}async onChoice(e,t){this.emit("choice",e,t,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,t)}async addChoice(e,t,i){let n=await this.toChoice(e,t,i);return this.choices.push(n),this.index=this.choices.length-1,this.limit=this.choices.length,n}async newItem(e,t,i){let n=N({name:"New choice name?",editable:!0,newChoice:!0},e),s=await this.addChoice(n,t,i);return s.updateChoice=()=>{delete s.newChoice,s.name=s.message=s.input,s.input="",s.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,t){if(this.multiple&&this[t.name])return this[t.name]();this.alert()}focus(e,t){return typeof t!="boolean"&&(t=e.enabled),t&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=t&&!this.isDisabled(e),e)}space(){return this.multiple?(this.toggle(this.focused),this.render()):this.alert()}a(){if(this.maxSelectedt.enabled);return this.choices.forEach(t=>t.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(e=this.focused){return this.choices.some(t=>!!t.parent)?(this.toggle(e.parent&&!e.choices?e.parent:e),this.render()):this.a()}toggle(e,t){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof t!="boolean"&&(t=!e.enabled),e.enabled=t,e.choices&&e.choices.forEach(n=>this.toggle(n,t));let i=e.parent;for(;i;){let n=i.choices.filter(s=>this.isDisabled(s));i.enabled=n.every(s=>s.enabled===!0),i=i.parent}return oie(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let t=i=>{let n=Number(i);if(n>this.choices.length-1)return this.alert();let s=this.focused,o=this.choices.find(a=>n===a.index);if(!o.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(o)===-1){let a=ZF(this.choices),l=a.indexOf(o);if(s.index>l){let c=a.slice(l,l+this.limit),u=a.filter(g=>!c.includes(g));this.choices=c.concat(u)}else{let c=l-this.limit+1;this.choices=a.slice(c).concat(a.slice(0,c))}}return this.index=this.choices.indexOf(o),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(i=>{let n=this.choices.length,s=this.num,o=(a=!1,l)=>{clearTimeout(this.numberTimeout),a&&(l=t(s)),this.num="",i(l)};if(s==="0"||s.length===1&&Number(s+"0")>n)return o(!0);if(Number(s)>n)return o(!1,this.alert());this.numberTimeout=setTimeout(()=>o(!0),this.delay)})}home(){return this.choices=ZF(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,t=ZF(this.choices);return this.choices=t.slice(e).concat(t.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,t=this.visible.length,i=this.index;return this.options.scroll===!1&&i===0?this.alert():e>t&&i===0?this.scrollUp():(this.index=(i-1%e+e)%e,this.isDisabled()?this.up():this.render())}down(){let e=this.choices.length,t=this.visible.length,i=this.index;return this.options.scroll===!1&&i===t-1?this.alert():e>t&&i===t-1?this.scrollDown():(this.index=(i+1)%e,this.isDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=TGe(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=OGe(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){MGe(this.choices,this.index,e)}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(i=>e[i]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(t=>this.isEnabled(t));if(e.choices){let t=e.choices.filter(i=>!this.isDisabled(i));return e.enabled&&t.every(i=>this.isEnabled(i))}return e.enabled&&!this.isDisabled(e)}isChoice(e,t){return e.name===t||e.index===Number(t)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(t=>this.isChoice(e,t)):this.isChoice(e,this.initial)}map(e=[],t="value"){return[].concat(e||[]).reduce((i,n)=>(i[n]=this.find(n,t),i),{})}filter(e,t){let i=(a,l)=>[a.name,l].includes(e),n=typeof e=="function"?e:i,o=(this.options.multiple?this.state._choices:this.choices).filter(n);return t?o.map(a=>a[t]):o}find(e,t){if(nie(e))return t?e[t]:e;let i=(o,a)=>[o.name,a].includes(e),n=typeof e=="function"?e:i,s=this.choices.find(n);if(s)return t?s[t]:s}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(o=>o.newChoice))return this.alert();let{reorder:t,sort:i}=this.options,n=this.multiple===!0,s=this.selected;return s===void 0?this.alert():(Array.isArray(s)&&t!==!1&&i!==!0&&(s=K0.reorder(s)),this.value=n?s.map(o=>o.name):s.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let t of e)this.state._choices.some(i=>i.name===t.name)||this.state._choices.push(t);if(!this._initial&&this.options.initial){this._initial=!0;let t=this.initial;if(typeof t=="string"||typeof t=="number"){let i=this.find(t);i&&(this.initial=i.index,this.focus(i,!0))}}}get choices(){return oie(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:t,choices:i}=this,n=e.limit||this._limit||t.limit||i.length;return Math.min(n,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function oie(r,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(K0.isAsyncFn(e))return e;e=e.call(r,r)}for(let t of e){if(Array.isArray(t.choices)){let i=t.choices.filter(n=>!r.isDisabled(n));t.enabled=i.every(n=>n.enabled===!0)}r.isDisabled(t)===!0&&delete t.enabled}return e}iie.exports=sie});var Nl=w((vft,aie)=>{"use strict";var KGe=qC(),$F=Xi(),Aie=class extends KGe{constructor(e){super(e);this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,t){if(this.multiple)return this[t.name]?await this[t.name](e,t):await super.dispatch(e,t);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,t){return!this.multiple||this.options.pointer?super.pointer(e,t):""}indicator(e,t){return this.multiple?super.indicator(e,t):""}choiceMessage(e,t){let i=this.resolve(e.message,this.state,e,t);return e.role==="heading"&&!$F.hasColor(i)&&(i=this.styles.strong(i)),this.resolve(i,this.state,e,t)}choiceSeparator(){return":"}async renderChoice(e,t){await this.onChoice(e,t);let i=this.index===t,n=await this.pointer(e,t),s=await this.indicator(e,t)+(e.pad||""),o=await this.resolve(e.hint,this.state,e,t);o&&!$F.hasColor(o)&&(o=this.styles.muted(o));let a=this.indent(e),l=await this.choiceMessage(e,t),c=()=>[this.margin[3],a+n+s,l,this.margin[1],o].filter(Boolean).join(" ");return e.role==="heading"?c():e.disabled?($F.hasColor(l)||(l=this.styles.disabled(l)),c()):(i&&(l=this.styles.em(l)),c())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(s,o)=>await this.renderChoice(s,o)),t=await Promise.all(e);t.length||t.push(this.styles.danger("No matching choices"));let i=this.margin[0]+t.join(` +`),n;return this.options.choicesHeader&&(n=await this.resolve(this.options.choicesHeader,this.state)),[n,i].filter(Boolean).join(` +`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:t}=this.state,i="",n=await this.header(),s=await this.prefix(),o=await this.separator(),a=await this.message();this.options.promptLine!==!1&&(i=[s,a,o,""].join(" "),this.state.prompt=i);let l=await this.format(),c=await this.error()||await this.hint(),u=await this.renderChoices(),g=await this.footer();l&&(i+=l),c&&!i.includes(c)&&(i+=" "+c),e&&!l&&!u.trim()&&this.multiple&&this.emptyError!=null&&(i+=this.styles.danger(this.emptyError)),this.clear(t),this.write([n,i,u,g].filter(Boolean).join(` +`)),this.write(this.margin[2]),this.restore()}};aie.exports=Aie});var uie=w((xft,lie)=>{"use strict";var UGe=Nl(),HGe=(r,e)=>{let t=r.toLowerCase();return i=>{let s=i.toLowerCase().indexOf(t),o=e(i.slice(s,s+t.length));return s>=0?i.slice(0,s)+o+i.slice(s+t.length):i}},cie=class extends UGe{constructor(e){super(e);this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:t,input:i}=this.state;return this.input=i.slice(0,t)+e+i.slice(t),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:t}=this.state;return t?(this.input=t.slice(0,e-1)+t.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:t}=this.state;return t[e]===void 0?this.alert():(this.input=`${t}`.slice(0,e)+`${t}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,t=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,t);let i=e.toLowerCase();return t.filter(n=>n.message.toLowerCase().includes(i))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight?this.options.highlight.bind(this):this.styles.placeholder,t=HGe(this.input,e),i=this.choices;this.choices=i.map(n=>te(N({},n),{message:t(n.message)})),await super.render(),this.choices=i}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};lie.exports=cie});var tN=w((kft,gie)=>{"use strict";var eN=Xi();gie.exports=(r,e={})=>{r.cursorHide();let{input:t="",initial:i="",pos:n,showCursor:s=!0,color:o}=e,a=o||r.styles.placeholder,l=eN.inverse(r.styles.primary),c=m=>l(r.styles.black(m)),u=t,g=" ",f=c(g);if(r.blink&&r.blink.off===!0&&(c=m=>m,f=""),s&&n===0&&i===""&&t==="")return c(g);if(s&&n===0&&(t===i||t===""))return c(i[0])+a(i.slice(1));i=eN.isPrimitive(i)?`${i}`:"",t=eN.isPrimitive(t)?`${t}`:"";let h=i&&i.startsWith(t)&&i!==t,p=h?c(i[t.length]):f;if(n!==t.length&&s===!0&&(u=t.slice(0,n)+c(t[n])+t.slice(n+1),p=""),s===!1&&(p=""),h){let m=r.styles.unstyle(u+p);return u+p+a(i.slice(m.length))}return u+p}});var U0=w((Pft,fie)=>{"use strict";var jGe=Eo(),GGe=Nl(),YGe=tN(),hie=class extends GGe{constructor(e){super(te(N({},e),{multiple:!0}));this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(t=>t!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(t=>t.reset&&t.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let t=this.focused;if(!t)return this.alert();let{cursor:i,input:n}=t;return t.value=t.input=n.slice(0,i)+e+n.slice(i),t.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:t,input:i}=e;return e.value=e.input=i.slice(0,t-1)+i.slice(t),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:t,input:i}=e;if(i[t]===void 0)return this.alert();let n=`${i}`.slice(0,t)+`${i}`.slice(t+1);return e.value=e.input=n,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,t){return this.dispatch(e,t)}number(e,t){return this.dispatch(e,t)}next(){let e=this.focused;if(!e)return this.alert();let{initial:t,input:i}=e;return t&&t.startsWith(i)&&i!==t?(e.value=e.input=t,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,t){let i=await this.resolve(e.separator,this.state,e,t)||":";return i?" "+this.styles.disabled(i):""}async renderChoice(e,t){await this.onChoice(e,t);let{state:i,styles:n}=this,{cursor:s,initial:o="",name:a,hint:l,input:c=""}=e,{muted:u,submitted:g,primary:f,danger:h}=n,p=l,m=this.index===t,y=e.validate||(()=>!0),b=await this.choiceSeparator(e,t),v=e.message;this.align==="right"&&(v=v.padStart(this.longest+1," ")),this.align==="left"&&(v=v.padEnd(this.longest+1," "));let x=this.values[a]=c||o,T=c?"success":"dark";await y.call(e,x,this.state)!==!0&&(T="danger");let Y=n[T](await this.indicator(e,t))+(e.pad||""),$=this.indent(e),_=()=>[$,Y,v+b,c,p].filter(Boolean).join(" ");if(i.submitted)return v=jGe.unstyle(v),c=g(c),p="",_();if(e.format)c=await e.format.call(this,c,e,t);else{let ne=this.styles.muted;c=YGe(this,{input:c,initial:o,pos:s,showCursor:m,color:ne})}return this.isValue(c)||(c=this.styles.muted(this.symbols.ellipsis)),e.result&&(this.values[a]=await e.result.call(this,x,e,t)),m&&(v=f(v)),e.error?c+=(c?" ":"")+h(e.error.trim()):e.hint&&(c+=(c?" ":"")+u(e.hint.trim())),_()}async submit(){return this.value=this.values,super.base.submit.call(this)}};fie.exports=hie});var rN=w((Dft,pie)=>{"use strict";var qGe=U0(),JGe=()=>{throw new Error("expected prompt to have a custom authenticate method")},die=(r=JGe)=>{class e extends qGe{constructor(i){super(i)}async submit(){this.value=await r.call(this,this.values,this.state),super.base.submit.call(this)}static create(i){return die(i)}}return e};pie.exports=die()});var Eie=w((Rft,Cie)=>{"use strict";var WGe=rN();function zGe(r,e){return r.username===this.options.username&&r.password===this.options.password}var mie=(r=zGe)=>{let e=[{name:"username",message:"username"},{name:"password",message:"password",format(i){return this.options.showPassword?i:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(i.length))}}];class t extends WGe.create(r){constructor(n){super(te(N({},n),{choices:e}))}static create(n){return mie(n)}}return t};Cie.exports=mie()});var H0=w((Fft,Iie)=>{"use strict";var _Ge=_f(),{isPrimitive:VGe,hasColor:XGe}=Xi(),yie=class extends _Ge{constructor(e){super(e);this.cursorHide()}async initialize(){let e=await this.resolve(this.initial,this.state);this.input=await this.cast(e),await super.initialize()}dispatch(e){return this.isValue(e)?(this.input=e,this.submit()):this.alert()}format(e){let{styles:t,state:i}=this;return i.submitted?t.success(e):t.primary(e)}cast(e){return this.isTrue(e)}isTrue(e){return/^[ty1]/i.test(e)}isFalse(e){return/^[fn0]/i.test(e)}isValue(e){return VGe(e)&&(this.isTrue(e)||this.isFalse(e))}async hint(){if(this.state.status==="pending"){let e=await this.element("hint");return XGe(e)?e:this.styles.muted(e)}}async render(){let{input:e,size:t}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o=this.styles.muted(this.default),a=[i,s,o,n].filter(Boolean).join(" ");this.state.prompt=a;let l=await this.header(),c=this.value=this.cast(e),u=await this.format(c),g=await this.error()||await this.hint(),f=await this.footer();g&&!a.includes(g)&&(u+=" "+g),a+=" "+u,this.clear(t),this.write([l,a,f].filter(Boolean).join(` +`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};Iie.exports=yie});var bie=w((Nft,wie)=>{"use strict";var ZGe=H0(),Bie=class extends ZGe{constructor(e){super(e);this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};wie.exports=Bie});var vie=w((Lft,Qie)=>{"use strict";var $Ge=Nl(),eYe=U0(),Vf=eYe.prototype,Sie=class extends $Ge{constructor(e){super(te(N({},e),{multiple:!0}));this.align=[this.options.align,"left"].find(t=>t!=null),this.emptyError="",this.values={}}dispatch(e,t){let i=this.focused,n=i.parent||{};return!i.editable&&!n.editable&&(e==="a"||e==="i")?super[e]():Vf.dispatch.call(this,e,t)}append(e,t){return Vf.append.call(this,e,t)}delete(e,t){return Vf.delete.call(this,e,t)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?Vf.next.call(this):super.next()}prev(){return this.focused.editable?Vf.prev.call(this):super.prev()}async indicator(e,t){let i=e.indicator||"",n=e.editable?i:super.indicator(e,t);return await this.resolve(n,this.state,e,t)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,t){return e.indent="",e.editable?Vf.renderChoice.call(this,e,t):super.renderChoice(e,t)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let t of this.choices){if(typeof t.validate!="function"||t.role==="heading")continue;let i=t.parent?this.value[t.parent.name]:this.value;if(t.editable?i=t.value===t.name?t.initial||"":t.value:this.isDisabled(t)||(i=t.enabled===!0),e=await t.validate(i,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let t=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?t[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(t[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};Qie.exports=Sie});var wu=w((Tft,xie)=>{"use strict";var tYe=_f(),rYe=tN(),{isPrimitive:iYe}=Xi(),kie=class extends tYe{constructor(e){super(e);this.initial=iYe(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[]}async keypress(e,t={}){let i=this.state.prevKeypress;return this.state.prevKeypress=t,this.options.multiline===!0&&t.name==="return"&&(!i||i.name!=="return")?this.append(` +`,t):super.keypress(e,t)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,t){if(!e||t.ctrl||t.code)return this.alert();this.append(e)}append(e){let{cursor:t,input:i}=this.state;this.input=`${i}`.slice(0,t)+e+`${i}`.slice(t),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:t}=this.state;if(e<=0)return this.alert();this.input=`${t}`.slice(0,e-1)+`${t}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:t}=this.state;if(t[e]===void 0)return this.alert();this.input=`${t}`.slice(0,e)+`${t}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let t=this.input.slice(0,e),i=this.input.slice(e),n=t.split(" ");this.state.clipboard.push(n.pop()),this.input=n.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let t=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||t):rYe(this,{input:e,initial:t,pos:this.cursor})}async render(){let e=this.state.size,t=await this.prefix(),i=await this.separator(),n=await this.message(),s=[t,n,i].filter(Boolean).join(" ");this.state.prompt=s;let o=await this.header(),a=await this.format(),l=await this.error()||await this.hint(),c=await this.footer();l&&!a.includes(l)&&(a+=" "+l),s+=" "+a,this.clear(e),this.write([o,s,c].filter(Boolean).join(` +`)),this.restore()}};xie.exports=kie});var Die=w((Oft,Pie)=>{"use strict";var nYe=r=>r.filter((e,t)=>r.lastIndexOf(e)===t),j0=r=>nYe(r).filter(Boolean);Pie.exports=(r,e={},t="")=>{let{past:i=[],present:n=""}=e,s,o;switch(r){case"prev":case"undo":return s=i.slice(0,i.length-1),o=i[i.length-1]||"",{past:j0([t,...s]),present:o};case"next":case"redo":return s=i.slice(1),o=i[0]||"",{past:j0([...s,t]),present:o};case"save":return{past:j0([...i,t]),present:""};case"remove":return o=j0(i.filter(a=>a!==t)),n="",o.length&&(n=o.pop()),{past:o,present:n};default:throw new Error(`Invalid action: "${r}"`)}}});var iN=w((Mft,Rie)=>{"use strict";var sYe=wu(),Fie=Die(),Nie=class extends sYe{constructor(e){super(e);let t=this.options.history;if(t&&t.store){let i=t.values||this.initial;this.autosave=!!t.autosave,this.store=t.store,this.data=this.store.get("values")||{past:[],present:i},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=Fie(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){!this.store||(this.data=Fie("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};Rie.exports=Nie});var Oie=w((Kft,Lie)=>{"use strict";var oYe=wu(),Tie=class extends oYe{format(){return""}};Lie.exports=Tie});var Uie=w((Uft,Mie)=>{"use strict";var aYe=wu(),Kie=class extends aYe{constructor(e={}){super(e);this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:t=>t;return this.list.map(e).join(", ")}async submit(e){let t=this.state.error||await this.validate(this.list,this.state);return t!==!0?(this.state.error=t,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};Mie.exports=Kie});var Gie=w((Hft,Hie)=>{"use strict";var AYe=Nl(),jie=class extends AYe{constructor(e){super(te(N({},e),{multiple:!0}))}};Hie.exports=jie});var nN=w((jft,Yie)=>{"use strict";var lYe=wu(),qie=class extends lYe{constructor(e={}){super(N({style:"number"},e));this.min=this.isValue(e.min)?this.toNumber(e.min):-Infinity,this.max=this.isValue(e.max)?this.toNumber(e.max):Infinity,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let t=e||this.minor,i=this.toNumber(this.input);return i>this.max+t?this.alert():(this.input=`${i+t}`,this.render())}down(e){let t=e||this.minor,i=this.toNumber(this.input);return ithis.isValue(t));return this.value=this.toNumber(e||0),super.submit()}};Yie.exports=qie});var Wie=w((Gft,Jie)=>{Jie.exports=nN()});var Vie=w((Yft,zie)=>{"use strict";var cYe=wu(),_ie=class extends cYe{constructor(e){super(e);this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};zie.exports=_ie});var ene=w((qft,Xie)=>{"use strict";var uYe=Eo(),gYe=qC(),Zie=Xi(),$ie=class extends gYe{constructor(e={}){super(e);this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||` + `;let t=e.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((i,n)=>({name:n+t})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let e=0;for(let t of this.choices){e=Math.max(e,t.message.length),t.scaleIndex=t.initial||2,t.scale=[];for(let i=0;i=this.scale.length-1?this.alert():(e.scaleIndex++,this.render())}left(){let e=this.focused;return e.scaleIndex<=0?this.alert():(e.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(t=>this.styles.info(t.index)).join(", "):""}pointer(){return""}renderScaleKey(){if(this.scaleKey===!1||this.state.submitted)return"";let e=this.scale.map(i=>` ${i.name} - ${i.message}`);return["",...e].map(i=>this.styles.muted(i)).join(` +`)}renderScaleHeading(e){let t=this.scale.map(l=>l.name);typeof this.options.renderScaleHeading=="function"&&(t=this.options.renderScaleHeading.call(this,e));let i=this.scaleLength-t.join("").length,n=Math.round(i/(t.length-1)),o=t.map(l=>this.styles.strong(l)).join(" ".repeat(n)),a=" ".repeat(this.widths[0]);return this.margin[3]+a+this.margin[1]+o}scaleIndicator(e,t,i){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,t,i);let n=e.scaleIndex===t.index;return t.disabled?this.styles.hint(this.symbols.radio.disabled):n?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,t){let i=e.scale.map(s=>this.scaleIndicator(e,s,t)),n=this.term==="Hyper"?"":" ";return i.join(n+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,t){await this.onChoice(e,t);let i=this.index===t,n=await this.pointer(e,t),s=await e.hint;s&&!Zie.hasColor(s)&&(s=this.styles.muted(s));let o=p=>this.margin[3]+p.replace(/\s+$/,"").padEnd(this.widths[0]," "),a=this.newline,l=this.indent(e),c=await this.resolve(e.message,this.state,e,t),u=await this.renderScale(e,t),g=this.margin[1]+this.margin[3];this.scaleLength=uYe.unstyle(u).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-g.length);let h=Zie.wordWrap(c,{width:this.widths[0],newline:a}).split(` +`).map(p=>o(p)+this.margin[1]);return i&&(u=this.styles.info(u),h=h.map(p=>this.styles.info(p))),h[0]+=u,this.linebreak&&h.push(""),[l+n,h.join(` +`)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let e=this.visible.map(async(n,s)=>await this.renderChoice(n,s)),t=await Promise.all(e),i=await this.renderScaleHeading();return this.margin[0]+[i,...t.map(n=>n.join(" "))].join(` +`)}async render(){let{submitted:e,size:t}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o="";this.options.promptLine!==!1&&(o=[i,s,n,""].join(" "),this.state.prompt=o);let a=await this.header(),l=await this.format(),c=await this.renderScaleKey(),u=await this.error()||await this.hint(),g=await this.renderChoices(),f=await this.footer(),h=this.emptyError;l&&(o+=l),u&&!o.includes(u)&&(o+=" "+u),e&&!l&&!g.trim()&&this.multiple&&h!=null&&(o+=this.styles.danger(h)),this.clear(t),this.write([a,o,c,g,f].filter(Boolean).join(` +`)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};Xie.exports=$ie});var nne=w((Jft,tne)=>{"use strict";var rne=Eo(),fYe=(r="")=>typeof r=="string"?r.replace(/^['"]|['"]$/g,""):"",ine=class{constructor(e){this.name=e.key,this.field=e.field||{},this.value=fYe(e.initial||this.field.initial||""),this.message=e.message||this.name,this.cursor=0,this.input="",this.lines=[]}},hYe=async(r={},e={},t=i=>i)=>{let i=new Set,n=r.fields||[],s=r.template,o=[],a=[],l=[],c=1;typeof s=="function"&&(s=await s());let u=-1,g=()=>s[++u],f=()=>s[u+1],h=p=>{p.line=c,o.push(p)};for(h({type:"bos",value:""});uT.name===b.key);b.field=n.find(T=>T.name===b.key),x||(x=new ine(b),a.push(x)),x.lines.push(b.line-1);continue}let m=o[o.length-1];m.type==="text"&&m.line===c?m.value+=p:h({type:"text",value:p})}return h({type:"eos",value:""}),{input:s,tabstops:o,unique:i,keys:l,items:a}};tne.exports=async r=>{let e=r.options,t=new Set(e.required===!0?[]:e.required||[]),i=N(N({},e.values),e.initial),{tabstops:n,items:s,keys:o}=await hYe(e,i),a=sN("result",r,e),l=sN("format",r,e),c=sN("validate",r,e,!0),u=r.isValue.bind(r);return async(g={},f=!1)=>{let h=0;g.required=t,g.items=s,g.keys=o,g.output="";let p=async(v,x,T,q)=>{let Y=await c(v,x,T,q);return Y===!1?"Invalid field "+T.name:Y};for(let v of n){let x=v.value,T=v.key;if(v.type!=="template"){x&&(g.output+=x);continue}if(v.type==="template"){let q=s.find(ee=>ee.name===T);e.required===!0&&g.required.add(q.name);let Y=[q.input,g.values[q.value],q.value,x].find(u),_=(q.field||{}).message||v.inner;if(f){let ee=await p(g.values[T],g,q,h);if(ee&&typeof ee=="string"||ee===!1){g.invalid.set(T,ee);continue}g.invalid.delete(T);let A=await a(g.values[T],g,q,h);g.output+=rne.unstyle(A);continue}q.placeholder=!1;let ne=x;x=await l(x,g,q,h),Y!==x?(g.values[T]=Y,x=r.styles.typing(Y),g.missing.delete(_)):(g.values[T]=void 0,Y=`<${_}>`,x=r.styles.primary(Y),q.placeholder=!0,g.required.has(T)&&g.missing.add(_)),g.missing.has(_)&&g.validating&&(x=r.styles.warning(Y)),g.invalid.has(T)&&g.validating&&(x=r.styles.danger(Y)),h===g.index&&(ne!==x?x=r.styles.underline(x):x=r.styles.heading(rne.unstyle(x))),h++}x&&(g.output+=x)}let m=g.output.split(` +`).map(v=>" "+v),y=s.length,b=0;for(let v of s)g.invalid.has(v.name)&&v.lines.forEach(x=>{m[x][0]===" "&&(m[x]=g.styles.danger(g.symbols.bullet)+m[x].slice(1))}),r.isValue(g.values[v.name])&&b++;return g.completed=(b/y*100).toFixed(0),g.output=m.join(` +`),g.output}};function sN(r,e,t,i){return(n,s,o,a)=>typeof o.field[r]=="function"?o.field[r].call(e,n,s,o,a):[i,n].find(l=>e.isValue(l))}});var ane=w((Wft,sne)=>{"use strict";var pYe=Eo(),dYe=nne(),CYe=_f(),one=class extends CYe{constructor(e){super(e);this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await dYe(this),await super.initialize()}async reset(e){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},e!==!0&&(await this.initialize(),await this.render())}moveCursor(e){let t=this.getItem();this.cursor+=e,t.cursor+=e}dispatch(e,t){if(!t.code&&!t.ctrl&&e!=null&&this.getItem()){this.append(e,t);return}this.alert()}append(e,t){let i=this.getItem(),n=i.input.slice(0,this.cursor),s=i.input.slice(this.cursor);this.input=i.input=`${n}${e}${s}`,this.moveCursor(1),this.render()}delete(){let e=this.getItem();if(this.cursor<=0||!e.input)return this.alert();let t=e.input.slice(this.cursor),i=e.input.slice(0,this.cursor-1);this.input=e.input=`${i}${t}`,this.moveCursor(-1),this.render()}increment(e){return e>=this.state.keys.length-1?0:e+1}decrement(e){return e<=0?this.state.keys.length-1:e-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(e){let t=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(t=this.styles.danger),t(`${this.state.completed}% completed`)}async render(){let{index:e,keys:t=[],submitted:i,size:n}=this.state,s=[this.options.newline,` +`].find(v=>v!=null),o=await this.prefix(),a=await this.separator(),l=await this.message(),c=[o,l,a].filter(Boolean).join(" ");this.state.prompt=c;let u=await this.header(),g=await this.error()||"",f=await this.hint()||"",h=i?"":await this.interpolate(this.state),p=this.state.key=t[e]||"",m=await this.format(p),y=await this.footer();m&&(c+=" "+m),f&&!m&&this.state.completed===0&&(c+=" "+f),this.clear(n);let b=[u,c,h,y,g.trim()];this.write(b.filter(Boolean).join(s)),this.restore()}getItem(e){let{items:t,keys:i,index:n}=this.state,s=t.find(o=>o.name===i[n]);return s&&s.input!=null&&(this.input=s.input,this.cursor=s.cursor),s}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:e,missing:t,output:i,values:n}=this.state;if(e.size){let a="";for(let[l,c]of e)a+=`Invalid ${l}: ${c} +`;return this.state.error=a,super.submit()}if(t.size)return this.state.error="Required: "+[...t.keys()].join(", "),super.submit();let o=pYe.unstyle(i).split(` +`).map(a=>a.slice(1)).join(` +`);return this.value={values:n,result:o},super.submit()}};sne.exports=one});var cne=w((zft,Ane)=>{"use strict";var mYe="(Use + to sort)",EYe=Nl(),lne=class extends EYe{constructor(e){super(te(N({},e),{reorder:!1,sort:!0,multiple:!0}));this.state.hint=[this.options.hint,mYe].find(this.isValue.bind(this))}indicator(){return""}async renderChoice(e,t){let i=await super.renderChoice(e,t),n=this.symbols.identicalTo+" ",s=this.index===t&&this.sorting?this.styles.muted(n):" ";return this.options.drag===!1&&(s=""),this.options.numbered===!0?s+`${t+1} - `+i:s+i}get selected(){return this.choices}submit(){return this.value=this.choices.map(e=>e.value),super.submit()}};Ane.exports=lne});var fne=w((_ft,une)=>{"use strict";var IYe=qC(),gne=class extends IYe{constructor(e={}){super(e);if(this.emptyError=e.emptyError||"No items were selected",this.term=process.env.TERM_PROGRAM,!this.options.header){let t=["","4 - Strongly Agree","3 - Agree","2 - Neutral","1 - Disagree","0 - Strongly Disagree",""];t=t.map(i=>this.styles.muted(i)),this.state.header=t.join(` + `)}}async toChoices(...e){if(this.createdScales)return!1;this.createdScales=!0;let t=await super.toChoices(...e);for(let i of t)i.scale=yYe(5,this.options),i.scaleIdx=2;return t}dispatch(){this.alert()}space(){let e=this.focused,t=e.scale[e.scaleIdx],i=t.selected;return e.scale.forEach(n=>n.selected=!1),t.selected=!i,this.render()}indicator(){return""}pointer(){return""}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIdx>=e.scale.length-1?this.alert():(e.scaleIdx++,this.render())}left(){let e=this.focused;return e.scaleIdx<=0?this.alert():(e.scaleIdx--,this.render())}indent(){return" "}async renderChoice(e,t){await this.onChoice(e,t);let i=this.index===t,n=this.term==="Hyper",s=n?9:8,o=n?"":" ",a=this.symbols.line.repeat(s),l=" ".repeat(s+(n?0:1)),c=x=>(x?this.styles.success("\u25C9"):"\u25EF")+o,u=t+1+".",g=i?this.styles.heading:this.styles.noop,f=await this.resolve(e.message,this.state,e,t),h=this.indent(e),p=h+e.scale.map((x,T)=>c(T===e.scaleIdx)).join(a),m=x=>x===e.scaleIdx?g(x):x,y=h+e.scale.map((x,T)=>m(T)).join(l),b=()=>[u,f].filter(Boolean).join(" "),v=()=>[b(),p,y," "].filter(Boolean).join(` +`);return i&&(p=this.styles.cyan(p),y=this.styles.cyan(y)),v()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(i,n)=>await this.renderChoice(i,n)),t=await Promise.all(e);return t.length||t.push(this.styles.danger("No matching choices")),t.join(` +`)}format(){return this.state.submitted?this.choices.map(t=>this.styles.info(t.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:t}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),o=[i,s,n].filter(Boolean).join(" ");this.state.prompt=o;let a=await this.header(),l=await this.format(),c=await this.error()||await this.hint(),u=await this.renderChoices(),g=await this.footer();(l||!c)&&(o+=" "+l),c&&!o.includes(c)&&(o+=" "+c),e&&!l&&!u&&this.multiple&&this.type!=="form"&&(o+=this.styles.danger(this.emptyError)),this.clear(t),this.write([o,a,u,g].filter(Boolean).join(` +`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function yYe(r,e={}){if(Array.isArray(e.scale))return e.scale.map(i=>N({},i));let t=[];for(let i=1;i{hne.exports=iN()});var mne=w((Xft,dne)=>{"use strict";var wYe=H0(),Cne=class extends wYe{async initialize(){await super.initialize(),this.value=this.initial=!!this.options.initial,this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",t){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=i=>this.styles.primary.underline(i);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,t=await this.header(),i=await this.prefix(),n=await this.separator(),s=await this.message(),o=await this.format(),a=await this.error()||await this.hint(),l=await this.footer(),c=[i,s,n,o].join(" ");this.state.prompt=c,a&&!c.includes(a)&&(c+=" "+a),this.clear(e),this.write([t,c,l].filter(Boolean).join(` +`)),this.write(this.margin[2]),this.restore()}};dne.exports=Cne});var yne=w((Zft,Ene)=>{"use strict";var BYe=Nl(),Ine=class extends BYe{constructor(e){super(e);if(typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,t){let i=await super.toChoices(e,t);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Ene.exports=Ine});var Bne=w(oN=>{"use strict";var wne=Xi(),mi=(r,e)=>{wne.defineExport(oN,r,e),wne.defineExport(oN,r.toLowerCase(),e)};mi("AutoComplete",()=>uie());mi("BasicAuth",()=>Eie());mi("Confirm",()=>bie());mi("Editable",()=>vie());mi("Form",()=>U0());mi("Input",()=>iN());mi("Invisible",()=>Oie());mi("List",()=>Uie());mi("MultiSelect",()=>Gie());mi("Numeral",()=>Wie());mi("Password",()=>Vie());mi("Scale",()=>ene());mi("Select",()=>Nl());mi("Snippet",()=>ane());mi("Sort",()=>cne());mi("Survey",()=>fne());mi("Text",()=>pne());mi("Toggle",()=>mne());mi("Quiz",()=>yne())});var Qne=w((eht,bne)=>{bne.exports={ArrayPrompt:qC(),AuthPrompt:rN(),BooleanPrompt:H0(),NumberPrompt:nN(),StringPrompt:wu()}});var WC=w((tht,Sne)=>{"use strict";var vne=require("assert"),aN=require("events"),Ll=Xi(),ha=class extends aN{constructor(e,t){super();this.options=Ll.merge({},e),this.answers=N({},t)}register(e,t){if(Ll.isObject(e)){for(let n of Object.keys(e))this.register(n,e[n]);return this}vne.equal(typeof t,"function","expected a function");let i=e.toLowerCase();return t.prototype instanceof this.Prompt?this.prompts[i]=t:this.prompts[i]=t(this.Prompt,this),this}async prompt(e=[]){for(let t of[].concat(e))try{typeof t=="function"&&(t=await t.call(this)),await this.ask(Ll.merge({},this.options,t))}catch(i){return Promise.reject(i)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let t=Ll.merge({},this.options,e),{type:i,name:n}=e,{set:s,get:o}=Ll;if(typeof i=="function"&&(i=await i.call(this,e,this.answers)),!i)return this.answers[n];vne(this.prompts[i],`Prompt "${i}" is not registered`);let a=new this.prompts[i](t),l=o(this.answers,n);a.state.answers=this.answers,a.enquirer=this,n&&a.on("submit",u=>{this.emit("answer",n,u,a),s(this.answers,n,u)});let c=a.emit.bind(a);return a.emit=(...u)=>(this.emit.call(this,...u),c(...u)),this.emit("prompt",a,this),t.autofill&&l!=null?(a.value=a.input=l,t.autofill==="show"&&await a.submit()):l=a.value=await a.run(),l}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||_f()}static get prompts(){return Bne()}static get types(){return Qne()}static get prompt(){let e=(t,...i)=>{let n=new this(...i),s=n.emit.bind(n);return n.emit=(...o)=>(e.emit(...o),s(...o)),n.prompt(t)};return Ll.mixinEmitter(e,new aN),e}};Ll.mixinEmitter(ha,new aN);var AN=ha.prompts;for(let r of Object.keys(AN)){let e=r.toLowerCase(),t=i=>new AN[r](i).run();ha.prompt[e]=t,ha[e]=t,ha[r]||Reflect.defineProperty(ha,r,{get:()=>AN[r]})}var JC=r=>{Ll.defineExport(ha,r,()=>ha.types[r])};JC("ArrayPrompt");JC("AuthPrompt");JC("BooleanPrompt");JC("NumberPrompt");JC("StringPrompt");Sne.exports=ha});var Une=w((Yht,Kne)=>{function xYe(r,e){for(var t=-1,i=r==null?0:r.length;++t{var kYe=$B(),PYe=Nf();function DYe(r,e,t,i){var n=!t;t||(t={});for(var s=-1,o=e.length;++s{var RYe=Zf(),FYe=Kf();function NYe(r,e){return r&&RYe(e,FYe(e),r)}jne.exports=NYe});var qne=w((Wht,Yne)=>{function LYe(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}Yne.exports=LYe});var Wne=w((zht,Jne)=>{var TYe=Rn(),OYe=f0(),MYe=qne(),KYe=Object.prototype,UYe=KYe.hasOwnProperty;function HYe(r){if(!TYe(r))return MYe(r);var e=OYe(r),t=[];for(var i in r)i=="constructor"&&(e||!UYe.call(r,i))||t.push(i);return t}Jne.exports=HYe});var $f=w((_ht,zne)=>{var jYe=$R(),GYe=Wne(),YYe=vC();function qYe(r){return YYe(r)?jYe(r,!0):GYe(r)}zne.exports=qYe});var Vne=w((Vht,_ne)=>{var JYe=Zf(),WYe=$f();function zYe(r,e){return r&&JYe(e,WYe(e),r)}_ne.exports=zYe});var hN=w((em,eh)=>{var _Ye=Ns(),Xne=typeof em=="object"&&em&&!em.nodeType&&em,Zne=Xne&&typeof eh=="object"&&eh&&!eh.nodeType&&eh,VYe=Zne&&Zne.exports===Xne,$ne=VYe?_Ye.Buffer:void 0,ese=$ne?$ne.allocUnsafe:void 0;function XYe(r,e){if(e)return r.slice();var t=r.length,i=ese?ese(t):new r.constructor(t);return r.copy(i),i}eh.exports=XYe});var pN=w((Xht,tse)=>{function ZYe(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t{var $Ye=Zf(),eqe=p0();function tqe(r,e){return $Ye(r,eqe(r),e)}rse.exports=tqe});var G0=w(($ht,nse)=>{var rqe=eF(),iqe=rqe(Object.getPrototypeOf,Object);nse.exports=iqe});var dN=w((ept,sse)=>{var nqe=t0(),sqe=G0(),oqe=p0(),aqe=oF(),Aqe=Object.getOwnPropertySymbols,lqe=Aqe?function(r){for(var e=[];r;)nqe(e,oqe(r)),r=sqe(r);return e}:aqe;sse.exports=lqe});var ase=w((tpt,ose)=>{var cqe=Zf(),uqe=dN();function gqe(r,e){return cqe(r,uqe(r),e)}ose.exports=gqe});var lse=w((rpt,Ase)=>{var fqe=sF(),hqe=dN(),pqe=$f();function dqe(r){return fqe(r,pqe,hqe)}Ase.exports=dqe});var use=w((ipt,cse)=>{var Cqe=Object.prototype,mqe=Cqe.hasOwnProperty;function Eqe(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&mqe.call(r,"index")&&(t.index=r.index,t.input=r.input),t}cse.exports=Eqe});var Y0=w((npt,gse)=>{var fse=iF();function Iqe(r){var e=new r.constructor(r.byteLength);return new fse(e).set(new fse(r)),e}gse.exports=Iqe});var pse=w((spt,hse)=>{var yqe=Y0();function wqe(r,e){var t=e?yqe(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}hse.exports=wqe});var Cse=w((opt,dse)=>{var Bqe=/\w*$/;function bqe(r){var e=new r.constructor(r.source,Bqe.exec(r));return e.lastIndex=r.lastIndex,e}dse.exports=bqe});var wse=w((apt,mse)=>{var Ese=Jc(),Ise=Ese?Ese.prototype:void 0,yse=Ise?Ise.valueOf:void 0;function Qqe(r){return yse?Object(yse.call(r)):{}}mse.exports=Qqe});var CN=w((Apt,Bse)=>{var Sqe=Y0();function vqe(r,e){var t=e?Sqe(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}Bse.exports=vqe});var Qse=w((lpt,bse)=>{var xqe=Y0(),kqe=pse(),Pqe=Cse(),Dqe=wse(),Rqe=CN(),Fqe="[object Boolean]",Nqe="[object Date]",Lqe="[object Map]",Tqe="[object Number]",Oqe="[object RegExp]",Mqe="[object Set]",Kqe="[object String]",Uqe="[object Symbol]",Hqe="[object ArrayBuffer]",jqe="[object DataView]",Gqe="[object Float32Array]",Yqe="[object Float64Array]",qqe="[object Int8Array]",Jqe="[object Int16Array]",Wqe="[object Int32Array]",zqe="[object Uint8Array]",_qe="[object Uint8ClampedArray]",Vqe="[object Uint16Array]",Xqe="[object Uint32Array]";function Zqe(r,e,t){var i=r.constructor;switch(e){case Hqe:return xqe(r);case Fqe:case Nqe:return new i(+r);case jqe:return kqe(r,t);case Gqe:case Yqe:case qqe:case Jqe:case Wqe:case zqe:case _qe:case Vqe:case Xqe:return Rqe(r,t);case Lqe:return new i;case Tqe:case Kqe:return new i(r);case Oqe:return Pqe(r);case Mqe:return new i;case Uqe:return Dqe(r)}}bse.exports=Zqe});var xse=w((cpt,Sse)=>{var $qe=Rn(),vse=Object.create,eJe=function(){function r(){}return function(e){if(!$qe(e))return{};if(vse)return vse(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Sse.exports=eJe});var mN=w((upt,kse)=>{var tJe=xse(),rJe=G0(),iJe=f0();function nJe(r){return typeof r.constructor=="function"&&!iJe(r)?tJe(rJe(r)):{}}kse.exports=nJe});var Dse=w((gpt,Pse)=>{var sJe=kC(),oJe=ta(),aJe="[object Map]";function AJe(r){return oJe(r)&&sJe(r)==aJe}Pse.exports=AJe});var Lse=w((fpt,Rse)=>{var lJe=Dse(),cJe=c0(),Fse=u0(),Nse=Fse&&Fse.isMap,uJe=Nse?cJe(Nse):lJe;Rse.exports=uJe});var Ose=w((hpt,Tse)=>{var gJe=kC(),fJe=ta(),hJe="[object Set]";function pJe(r){return fJe(r)&&gJe(r)==hJe}Tse.exports=pJe});var Hse=w((ppt,Mse)=>{var dJe=Ose(),CJe=c0(),Kse=u0(),Use=Kse&&Kse.isSet,mJe=Use?CJe(Use):dJe;Mse.exports=mJe});var Jse=w((dpt,jse)=>{var EJe=xC(),IJe=Une(),yJe=$B(),wJe=Gne(),BJe=Vne(),bJe=hN(),QJe=pN(),SJe=ise(),vJe=ase(),xJe=aF(),kJe=lse(),PJe=kC(),DJe=use(),RJe=Qse(),FJe=mN(),NJe=Ks(),LJe=bC(),TJe=Lse(),OJe=Rn(),MJe=Hse(),KJe=Kf(),UJe=$f(),HJe=1,jJe=2,GJe=4,Gse="[object Arguments]",YJe="[object Array]",qJe="[object Boolean]",JJe="[object Date]",WJe="[object Error]",Yse="[object Function]",zJe="[object GeneratorFunction]",_Je="[object Map]",VJe="[object Number]",qse="[object Object]",XJe="[object RegExp]",ZJe="[object Set]",$Je="[object String]",e3e="[object Symbol]",t3e="[object WeakMap]",r3e="[object ArrayBuffer]",i3e="[object DataView]",n3e="[object Float32Array]",s3e="[object Float64Array]",o3e="[object Int8Array]",a3e="[object Int16Array]",A3e="[object Int32Array]",l3e="[object Uint8Array]",c3e="[object Uint8ClampedArray]",u3e="[object Uint16Array]",g3e="[object Uint32Array]",dr={};dr[Gse]=dr[YJe]=dr[r3e]=dr[i3e]=dr[qJe]=dr[JJe]=dr[n3e]=dr[s3e]=dr[o3e]=dr[a3e]=dr[A3e]=dr[_Je]=dr[VJe]=dr[qse]=dr[XJe]=dr[ZJe]=dr[$Je]=dr[e3e]=dr[l3e]=dr[c3e]=dr[u3e]=dr[g3e]=!0;dr[WJe]=dr[Yse]=dr[t3e]=!1;function q0(r,e,t,i,n,s){var o,a=e&HJe,l=e&jJe,c=e&GJe;if(t&&(o=n?t(r,i,n,s):t(r)),o!==void 0)return o;if(!OJe(r))return r;var u=NJe(r);if(u){if(o=DJe(r),!a)return QJe(r,o)}else{var g=PJe(r),f=g==Yse||g==zJe;if(LJe(r))return bJe(r,a);if(g==qse||g==Gse||f&&!n){if(o=l||f?{}:FJe(r),!a)return l?vJe(r,BJe(o,r)):SJe(r,wJe(o,r))}else{if(!dr[g])return n?r:{};o=RJe(r,g,a)}}s||(s=new EJe);var h=s.get(r);if(h)return h;s.set(r,o),MJe(r)?r.forEach(function(y){o.add(q0(y,e,t,y,r,s))}):TJe(r)&&r.forEach(function(y,b){o.set(b,q0(y,e,t,b,r,s))});var p=c?l?kJe:xJe:l?UJe:KJe,m=u?void 0:p(r);return IJe(m||r,function(y,b){m&&(b=y,y=r[b]),yJe(o,b,q0(y,e,t,b,r,s))}),o}jse.exports=q0});var EN=w((Cpt,Wse)=>{var f3e=Jse(),h3e=1,p3e=4;function d3e(r){return f3e(r,h3e|p3e)}Wse.exports=d3e});var _se=w((mpt,zse)=>{var C3e=kR();function m3e(r,e,t){return r==null?r:C3e(r,e,t)}zse.exports=m3e});var toe=w((bpt,eoe)=>{function E3e(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}eoe.exports=E3e});var ioe=w((Qpt,roe)=>{var I3e=hC(),y3e=VP();function w3e(r,e){return e.length<2?r:I3e(r,y3e(e,0,-1))}roe.exports=w3e});var soe=w((Spt,noe)=>{var B3e=Ff(),b3e=toe(),Q3e=ioe(),S3e=gu();function v3e(r,e){return e=B3e(e,r),r=Q3e(r,e),r==null||delete r[S3e(b3e(e))]}noe.exports=v3e});var aoe=w((vpt,ooe)=>{var x3e=soe();function k3e(r,e){return r==null?!0:x3e(r,e)}ooe.exports=k3e});var doe=w((idt,poe)=>{poe.exports={name:"@yarnpkg/cli",version:"3.2.2",license:"BSD-2-Clause",main:"./sources/index.ts",dependencies:{"@yarnpkg/core":"workspace:^","@yarnpkg/fslib":"workspace:^","@yarnpkg/libzip":"workspace:^","@yarnpkg/parsers":"workspace:^","@yarnpkg/plugin-compat":"workspace:^","@yarnpkg/plugin-dlx":"workspace:^","@yarnpkg/plugin-essentials":"workspace:^","@yarnpkg/plugin-file":"workspace:^","@yarnpkg/plugin-git":"workspace:^","@yarnpkg/plugin-github":"workspace:^","@yarnpkg/plugin-http":"workspace:^","@yarnpkg/plugin-init":"workspace:^","@yarnpkg/plugin-link":"workspace:^","@yarnpkg/plugin-nm":"workspace:^","@yarnpkg/plugin-npm":"workspace:^","@yarnpkg/plugin-npm-cli":"workspace:^","@yarnpkg/plugin-pack":"workspace:^","@yarnpkg/plugin-patch":"workspace:^","@yarnpkg/plugin-pnp":"workspace:^","@yarnpkg/plugin-pnpm":"workspace:^","@yarnpkg/shell":"workspace:^",chalk:"^3.0.0","ci-info":"^3.2.0",clipanion:"^3.2.0-rc.4",semver:"^7.1.2",tslib:"^1.13.0",typanion:"^3.3.0",yup:"^0.32.9"},devDependencies:{"@types/semver":"^7.1.0","@types/yup":"^0","@yarnpkg/builder":"workspace:^","@yarnpkg/monorepo":"workspace:^","@yarnpkg/pnpify":"workspace:^",micromatch:"^4.0.2"},peerDependencies:{"@yarnpkg/core":"workspace:^"},scripts:{postpack:"rm -rf lib",prepack:'run build:compile "$(pwd)"',"build:cli+hook":"run build:pnp:hook && builder build bundle","build:cli":"builder build bundle","run:cli":"builder run","update-local":"run build:cli --no-git-hash && rsync -a --delete bundles/ bin/"},publishConfig:{main:"./lib/index.js",types:"./lib/index.d.ts",bin:null},files:["/lib/**/*","!/lib/pluginConfiguration.*","!/lib/cli.*"],"@yarnpkg/builder":{bundles:{standard:["@yarnpkg/plugin-essentials","@yarnpkg/plugin-compat","@yarnpkg/plugin-dlx","@yarnpkg/plugin-file","@yarnpkg/plugin-git","@yarnpkg/plugin-github","@yarnpkg/plugin-http","@yarnpkg/plugin-init","@yarnpkg/plugin-link","@yarnpkg/plugin-nm","@yarnpkg/plugin-npm","@yarnpkg/plugin-npm-cli","@yarnpkg/plugin-pack","@yarnpkg/plugin-patch","@yarnpkg/plugin-pnp","@yarnpkg/plugin-pnpm"]}},repository:{type:"git",url:"ssh://git@github.com/yarnpkg/berry.git",directory:"packages/yarnpkg-cli"},engines:{node:">=12 <14 || 14.2 - 14.9 || >14.10.0"}}});var DN=w((LEt,rae)=>{"use strict";rae.exports=function(e,t){t===!0&&(t=0);var i=e.indexOf("://"),n=e.substring(0,i).split("+").filter(Boolean);return typeof t=="number"?n[t]:n}});var RN=w((TEt,iae)=>{"use strict";var V3e=DN();function nae(r){if(Array.isArray(r))return r.indexOf("ssh")!==-1||r.indexOf("rsync")!==-1;if(typeof r!="string")return!1;var e=V3e(r);return r=r.substring(r.indexOf("://")+3),nae(e)?!0:r.indexOf("@"){"use strict";var X3e=DN(),Z3e=RN(),$3e=require("querystring");function eWe(r){r=(r||"").trim();var e={protocols:X3e(r),protocol:null,port:null,resource:"",user:"",pathname:"",hash:"",search:"",href:r,query:Object.create(null)},t=r.indexOf("://"),i=-1,n=null,s=null;r.startsWith(".")&&(r.startsWith("./")&&(r=r.substring(2)),e.pathname=r,e.protocol="file");var o=r.charAt(1);return e.protocol||(e.protocol=e.protocols[0],e.protocol||(Z3e(r)?e.protocol="ssh":((o==="/"||o==="~")&&(r=r.substring(2)),e.protocol="file"))),t!==-1&&(r=r.substring(t+3)),s=r.split("/"),e.protocol!=="file"?e.resource=s.shift():e.resource="",n=e.resource.split("@"),n.length===2&&(e.user=n[0],e.resource=n[1]),n=e.resource.split(":"),n.length===2&&(e.resource=n[0],n[1]?(e.port=Number(n[1]),isNaN(e.port)&&(e.port=null,s.unshift(n[1]))):e.port=null),s=s.filter(Boolean),e.protocol==="file"?e.pathname=e.href:e.pathname=e.pathname||(e.protocol!=="file"||e.href[0]==="/"?"/":"")+s.join("/"),n=e.pathname.split("#"),n.length===2&&(e.pathname=n[0],e.hash=n[1]),n=e.pathname.split("?"),n.length===2&&(e.pathname=n[0],e.search=n[1]),e.query=$3e.parse(e.search),e.href=e.href.replace(/\/$/,""),e.pathname=e.pathname.replace(/\/$/,""),e}sae.exports=eWe});var lae=w((MEt,aae)=>{"use strict";var tWe="text/plain",rWe="us-ascii",Aae=(r,e)=>e.some(t=>t instanceof RegExp?t.test(r):t===r),iWe=(r,{stripHash:e})=>{let t=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(r);if(!t)throw new Error(`Invalid URL: ${r}`);let{type:i,data:n,hash:s}=t.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let l=(o.shift()||"").toLowerCase(),u=[...o.map(g=>{let[f,h=""]=g.split("=").map(p=>p.trim());return f==="charset"&&(h=h.toLowerCase(),h===rWe)?"":`${f}${h?`=${h}`:""}`}).filter(Boolean)];return a&&u.push("base64"),(u.length!==0||l&&l!==tWe)&&u.unshift(l),`data:${u.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},nWe=(r,e)=>{if(e=N({defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},e),r=r.trim(),/^data:/i.test(r))return iWe(r,e);if(/^view-source:/i.test(r))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let t=r.startsWith("//");!t&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let n=new URL(r);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?0){let o=n.pathname.split("/"),a=o[o.length-1];Aae(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])Aae(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=r;return r=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(r=r.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(r=r.replace(/\/$/,"")),t&&!e.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),e.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};aae.exports=nWe});var uae=w((KEt,cae)=>{"use strict";var sWe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oWe=oae(),aWe=lae();function AWe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(typeof r!="string"||!r.trim())throw new Error("Invalid url.");e&&((typeof e=="undefined"?"undefined":sWe(e))!=="object"&&(e={stripHash:!1}),r=aWe(r,e));var t=oWe(r);return t}cae.exports=AWe});var hae=w((UEt,gae)=>{"use strict";var lWe=uae(),fae=RN();function cWe(r){var e=lWe(r);e.token="";var t=e.user.split(":");return t.length===2&&(t[1]==="x-oauth-basic"?e.token=t[0]:t[0]==="x-token-auth"&&(e.token=t[1])),fae(e.protocols)||fae(r)?e.protocol="ssh":e.protocols.length?e.protocol=e.protocols[0]:e.protocol="file",e.href=e.href.replace(/\/$/,""),e}gae.exports=cWe});var dae=w((HEt,pae)=>{"use strict";var uWe=hae();function FN(r){if(typeof r!="string")throw new Error("The url must be a string.");var e=uWe(r),t=e.resource.split("."),i=null;switch(e.toString=function(l){return FN.stringify(this,l)},e.source=t.length>2?t.slice(1-t.length).join("."):e.source=e.resource,e.git_suffix=/\.git$/.test(e.pathname),e.name=decodeURIComponent(e.pathname.replace(/^\//,"").replace(/\.git$/,"")),e.owner=decodeURIComponent(e.user),e.source){case"git.cloudforge.com":e.owner=e.user,e.organization=t[0],e.source="cloudforge.com";break;case"visualstudio.com":if(e.resource==="vs-ssh.visualstudio.com"){i=e.name.split("/"),i.length===4&&(e.organization=i[1],e.owner=i[2],e.name=i[3],e.full_name=i[2]+"/"+i[3]);break}else{i=e.name.split("/"),i.length===2?(e.owner=i[1],e.name=i[1],e.full_name="_git/"+e.name):i.length===3?(e.name=i[2],i[0]==="DefaultCollection"?(e.owner=i[2],e.organization=i[0],e.full_name=e.organization+"/_git/"+e.name):(e.owner=i[0],e.full_name=e.owner+"/_git/"+e.name)):i.length===4&&(e.organization=i[0],e.owner=i[1],e.name=i[3],e.full_name=e.organization+"/"+e.owner+"/_git/"+e.name);break}case"dev.azure.com":case"azure.com":if(e.resource==="ssh.dev.azure.com"){i=e.name.split("/"),i.length===4&&(e.organization=i[1],e.owner=i[2],e.name=i[3]);break}else{i=e.name.split("/"),i.length===5?(e.organization=i[0],e.owner=i[1],e.name=i[4],e.full_name="_git/"+e.name):i.length===3?(e.name=i[2],i[0]==="DefaultCollection"?(e.owner=i[2],e.organization=i[0],e.full_name=e.organization+"/_git/"+e.name):(e.owner=i[0],e.full_name=e.owner+"/_git/"+e.name)):i.length===4&&(e.organization=i[0],e.owner=i[1],e.name=i[3],e.full_name=e.organization+"/"+e.owner+"/_git/"+e.name);break}default:i=e.name.split("/");var n=i.length-1;if(i.length>=2){var s=i.indexOf("blob",2),o=i.indexOf("tree",2),a=i.indexOf("commit",2);n=s>0?s-1:o>0?o-1:a>0?a-1:n,e.owner=i.slice(0,n).join("/"),e.name=i[n],a&&(e.commit=i[n+2])}e.ref="",e.filepathtype="",e.filepath="",i.length>n+2&&["blob","tree"].indexOf(i[n+1])>=0&&(e.filepathtype=i[n+1],e.ref=i[n+2],i.length>n+3&&(e.filepath=i.slice(n+3).join("/"))),e.organization=e.owner;break}return e.full_name||(e.full_name=e.owner,e.name&&(e.full_name&&(e.full_name+="/"),e.full_name+=e.name)),e}FN.stringify=function(r,e){e=e||(r.protocols&&r.protocols.length?r.protocols.join("+"):r.protocol);var t=r.port?":"+r.port:"",i=r.user||"git",n=r.git_suffix?".git":"";switch(e){case"ssh":return t?"ssh://"+i+"@"+r.resource+t+"/"+r.full_name+n:i+"@"+r.resource+":"+r.full_name+n;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return e+"://"+i+"@"+r.resource+t+"/"+r.full_name+n;case"http":case"https":var s=r.token?gWe(r):r.user&&(r.protocols.includes("http")||r.protocols.includes("https"))?r.user+"@":"";return e+"://"+s+r.resource+t+"/"+r.full_name+n;default:return r.href}};function gWe(r){switch(r.source){case"bitbucket.org":return"x-token-auth:"+r.token+"@";default:return r.token+"@"}}pae.exports=FN});var cL=w((Vwt,Mae)=>{var DWe=Nf(),RWe=Pf();function FWe(r,e,t){(t!==void 0&&!RWe(r[e],t)||t===void 0&&!(e in r))&&DWe(r,e,t)}Mae.exports=FWe});var Uae=w((Xwt,Kae)=>{var NWe=vC(),LWe=ta();function TWe(r){return LWe(r)&&NWe(r)}Kae.exports=TWe});var Gae=w((Zwt,Hae)=>{var OWe=Wc(),MWe=G0(),KWe=ta(),UWe="[object Object]",HWe=Function.prototype,jWe=Object.prototype,jae=HWe.toString,GWe=jWe.hasOwnProperty,YWe=jae.call(Object);function qWe(r){if(!KWe(r)||OWe(r)!=UWe)return!1;var e=MWe(r);if(e===null)return!0;var t=GWe.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&jae.call(t)==YWe}Hae.exports=qWe});var uL=w(($wt,Yae)=>{function JWe(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}Yae.exports=JWe});var Jae=w((eBt,qae)=>{var WWe=Zf(),zWe=$f();function _We(r){return WWe(r,zWe(r))}qae.exports=_We});var Zae=w((tBt,Wae)=>{var zae=cL(),VWe=hN(),XWe=CN(),ZWe=pN(),$We=mN(),_ae=dC(),Vae=Ks(),e4e=Uae(),t4e=bC(),r4e=VB(),i4e=Rn(),n4e=Gae(),s4e=g0(),Xae=uL(),o4e=Jae();function a4e(r,e,t,i,n,s,o){var a=Xae(r,t),l=Xae(e,t),c=o.get(l);if(c){zae(r,t,c);return}var u=s?s(a,l,t+"",r,e,o):void 0,g=u===void 0;if(g){var f=Vae(l),h=!f&&t4e(l),p=!f&&!h&&s4e(l);u=l,f||h||p?Vae(a)?u=a:e4e(a)?u=ZWe(a):h?(g=!1,u=VWe(l,!0)):p?(g=!1,u=XWe(l,!0)):u=[]:n4e(l)||_ae(l)?(u=a,_ae(a)?u=o4e(a):(!i4e(a)||r4e(a))&&(u=$We(l))):g=!1}g&&(o.set(l,u),n(u,l,i,s,o),o.delete(l)),zae(r,t,u)}Wae.exports=a4e});var tAe=w((rBt,$ae)=>{var A4e=xC(),l4e=cL(),c4e=XR(),u4e=Zae(),g4e=Rn(),f4e=$f(),h4e=uL();function eAe(r,e,t,i,n){r!==e&&c4e(e,function(s,o){if(n||(n=new A4e),g4e(s))u4e(r,e,o,t,eAe,i,n);else{var a=i?i(h4e(r,o),s,o+"",r,e,n):void 0;a===void 0&&(a=s),l4e(r,o,a)}},f4e)}$ae.exports=eAe});var iAe=w((iBt,rAe)=>{var p4e=r0(),d4e=RR(),C4e=FR();function m4e(r,e){return C4e(d4e(r,e,p4e),r+"")}rAe.exports=m4e});var sAe=w((nBt,nAe)=>{var E4e=Pf(),I4e=vC(),y4e=pC(),w4e=Rn();function B4e(r,e,t){if(!w4e(t))return!1;var i=typeof e;return(i=="number"?I4e(t)&&y4e(e,t.length):i=="string"&&e in t)?E4e(t[e],r):!1}nAe.exports=B4e});var aAe=w((sBt,oAe)=>{var b4e=iAe(),Q4e=sAe();function S4e(r){return b4e(function(e,t){var i=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(n--,s):void 0,o&&Q4e(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++i{var v4e=tAe(),x4e=aAe(),k4e=x4e(function(r,e,t){v4e(r,e,t)});AAe.exports=k4e});var QAe=w((u0t,bAe)=>{var QL;bAe.exports=()=>(typeof QL=="undefined"&&(QL=require("zlib").brotliDecompressSync(Buffer.from("W8aBWMM86xigdkIKKln3s6WtEQ8xBfvtGm6l6HpWsM0HlG2fJUSg2yACwxuWsoJiQVU1b2mMsbbD2jhAVbLq6wOxXSGkuAai1rhjCNmwktEatn0bh2yzFJ6DjhWTRsWjxW4OZpG5hevFO0Y4KH1xt2tGfiQqb0Ge/cqOg+eObuOoLKh8LvMs05MkvGyS8LZL9Vncf7R/hUSi/6j223sFG6nRVySV/u7AOBf/F0lYp0ki6SkgjpsHYYgoMdd2RLrULU/74nrZNP88vmnLRRMkjFXwVcaklPKSzqyo1wKuaYujlenq36aS8wnL94QsyE1pdubo4/Ts/77N/P/5+bqHblKjKBPS1e7mQOgwZfED0s3HxxhLNhpkSdUVi3OefH6/9Pv6BU7Gohy1y8p45S3L7nQsYkg5VcNJdGwbOu/V6q1av63G/zycE0vIQyyBFtCM/S82r09R5n+b6j2Xm38HUJmXvwRknzrWaSwyBLKVylNeXeSFQnb+Qgc0CCjxBZmmotNKePIDb4M8HpuV1qb0TVDSl9EN0uPj1aL8Lf54eB/QZV08Vvf0TCZfOpMQ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QYrGrnIpgNrESZRQyKvaWGxCRqkdxbz/7ys2l7fEd4lBiwcSriIN2kjkyjeVHMkxLFvDmZNYe+EF/fw9oMFTDbPH6+H4T/GVHAA==","base64")).toString()),QL)});var TAe=w((Y0t,LAe)=>{var kL;LAe.exports=()=>(typeof kL=="undefined"&&(kL=require("zlib").brotliDecompressSync(Buffer.from("G98hACwL4rGroa5xFloZvem1VcYrNr4K3e9n9r8/X5MOCYHdva5v4pXS1QjWc4tyDqmKnix1U4T8ajah2kQmaKYVQGR2JkiPD9HmUr1q9nHCWrGdiqCk8rzbStVePjiEPXFcOP9pv14jAZX9QobAiuy5lEef34ZwEy7i3Jm3yyHaX2JHqrpVVex8hKx0EbLCdhlOrXITGgMCBEptPxtRLx3hx9+LfNF6W/zeX24omB7/7uWCRfCmxauPftgcYYZc1/N6qOmBcOUdvwbvLI38OUjL8ejESp5hWp+kQBAEATki7M6u7q9fchhnAE4D8W85Cf2S3QQ0/4EfJwKCdm8jpLULdW6KyLvQomntUh3lYuX05RMwTeDwW2j0nIezQkcOumBaRlHL/7cZWGBg+2dfJG1P7TVw0bn8anFVAmIccIhluGcMaO+27fgQ0g0zHBslkwLiCSllgiuIBgIeiU8XaPZw9Kx5lsAP7Za6whksslaONmn5DbyjTP0TIsAUugtU8+pnMy6ATpsPVs1B/LovTC/54WpD4sw5lhxZyeUUIJhSJqKz7W3FFhP9+3GgOq7nYWgxrcUi7vxyUksNlu+MuUzXuHHvAqLnqbIckSnxj3eeAJQ+HHe9zP9oAHQ01FtQVDQRgMRes7BGUSBhqNoGVKdCUwE5K/jdXD/d05nCWJljUQBd04UFgw3iR/W0W+y9WdUEuTma8+yUqsvs3+zknyB1zmJzevvkNDKQx3xfoXyhH55laE+dqESxRCaKR2zWk+ZOPTVl1RTz2EVXsHui7N2zqnI8Lk4xy9OrJnQ1BZ92B6Ov2u7O8tQyt9M3N3FgqdF17H7mRVd8XqLaF0dByhD7J+kv0esV7EJuOCJDCToJ+o536lODrimbBZ18udv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oaN+05bGVeVr/ZoAe2muur64b5pcjmDNUAuSZjOctRdLWrZWO7AfdbHVuO8NyNLlXAbvSXAX0x3Ve7unalIzbKlEmVV2PDTL92+DUZwBIUYhkGaFP5ETAA==","base64")).toString()),kL)});var YAe=w((TL,OL)=>{(function(r){TL&&typeof TL=="object"&&typeof OL!="undefined"?OL.exports=r():typeof define=="function"&&define.amd?define([],r):typeof window!="undefined"?window.isWindows=r():typeof global!="undefined"?global.isWindows=r():typeof self!="undefined"?self.isWindows=r():this.isWindows=r()})(function(){"use strict";return function(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}})});var zAe=w((Vbt,qAe)=>{"use strict";ML.ifExists=C8e;var ah=require("util"),zs=require("path"),JAe=YAe(),m8e=/^#!\s*(?:\/usr\/bin\/env)?\s*([^ \t]+)(.*)$/,E8e={createPwshFile:!0,createCmdFile:JAe(),fs:require("fs")},I8e=new Map([[".js","node"],[".cjs","node"],[".mjs","node"],[".cmd","cmd"],[".bat","cmd"],[".ps1","pwsh"],[".sh","sh"]]);function WAe(r){let e=N(N({},E8e),r),t=e.fs;return e.fs_={chmod:t.chmod?ah.promisify(t.chmod):async()=>{},mkdir:ah.promisify(t.mkdir),readFile:ah.promisify(t.readFile),stat:ah.promisify(t.stat),unlink:ah.promisify(t.unlink),writeFile:ah.promisify(t.writeFile)},e}async function ML(r,e,t){let i=WAe(t);await i.fs_.stat(r),await y8e(r,e,i)}function C8e(r,e,t){return ML(r,e,t).catch(()=>{})}function w8e(r,e){return e.fs_.unlink(r).catch(()=>{})}async function y8e(r,e,t){let i=await Q8e(r,t);return await B8e(e,t),b8e(r,e,i,t)}function B8e(r,e){return e.fs_.mkdir(zs.dirname(r),{recursive:!0})}function b8e(r,e,t,i){let n=WAe(i),s=[{generator:x8e,extension:""}];return n.createCmdFile&&s.push({generator:v8e,extension:".cmd"}),n.createPwshFile&&s.push({generator:k8e,extension:".ps1"}),Promise.all(s.map(o=>S8e(r,e+o.extension,t,o.generator,n)))}function P8e(r,e){return w8e(r,e)}function R8e(r,e){return D8e(r,e)}async function Q8e(r,e){let n=(await e.fs_.readFile(r,"utf8")).trim().split(/\r*\n/)[0].match(m8e);if(!n){let s=zs.extname(r).toLowerCase();return{program:I8e.get(s)||null,additionalArgs:""}}return{program:n[1],additionalArgs:n[2]}}async function S8e(r,e,t,i,n){let s=n.preserveSymlinks?"--preserve-symlinks":"",o=[t.additionalArgs,s].filter(a=>a).join(" ");return n=Object.assign({},n,{prog:t.program,args:o}),await P8e(e,n),await n.fs_.writeFile(e,i(r,e,n),"utf8"),R8e(e,n)}function v8e(r,e,t){let n=zs.relative(zs.dirname(e),r).split("/").join("\\"),s=zs.isAbsolute(n)?`"${n}"`:`"%~dp0\\${n}"`,o,a=t.prog,l=t.args||"",c=KL(t.nodePath).win32;a?(o=`"%~dp0\\${a}.exe"`,n=s):(a=s,l="",n="");let u=t.progArgs?`${t.progArgs.join(" ")} `:"",g=c?`@SET NODE_PATH=${c}\r +`:"";return o?g+=`@IF EXIST ${o} (\r + ${o} ${l} ${n} ${u}%*\r +) ELSE (\r + @SETLOCAL\r + @SET PATHEXT=%PATHEXT:;.JS;=;%\r + ${a} ${l} ${n} ${u}%*\r +)\r +`:g+=`@${a} ${l} ${n} ${u}%*\r +`,g}function x8e(r,e,t){let i=zs.relative(zs.dirname(e),r),n=t.prog&&t.prog.split("\\").join("/"),s;i=i.split("\\").join("/");let o=zs.isAbsolute(i)?`"${i}"`:`"$basedir/${i}"`,a=t.args||"",l=KL(t.nodePath).posix;n?(s=`"$basedir/${t.prog}"`,i=o):(n=o,a="",i="");let c=t.progArgs?`${t.progArgs.join(" ")} `:"",u=`#!/bin/sh +basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')") + +case \`uname\` in + *CYGWIN*) basedir=\`cygpath -w "$basedir"\`;; +esac + +`,g=t.nodePath?`export NODE_PATH="${l}" +`:"";return s?u+=`${g}if [ -x ${s} ]; then + exec ${s} ${a} ${i} ${c}"$@" +else + exec ${n} ${a} ${i} ${c}"$@" +fi +`:u+=`${g}${n} ${a} ${i} ${c}"$@" +exit $? +`,u}function k8e(r,e,t){let i=zs.relative(zs.dirname(e),r),n=t.prog&&t.prog.split("\\").join("/"),s=n&&`"${n}$exe"`,o;i=i.split("\\").join("/");let a=zs.isAbsolute(i)?`"${i}"`:`"$basedir/${i}"`,l=t.args||"",c=KL(t.nodePath),u=c.win32,g=c.posix;s?(o=`"$basedir/${t.prog}$exe"`,i=a):(s=a,l="",i="");let f=t.progArgs?`${t.progArgs.join(" ")} `:"",h=`#!/usr/bin/env pwsh +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent + +$exe="" +${t.nodePath?`$env_node_path=$env:NODE_PATH +$env:NODE_PATH="${u}" +`:""}if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { + # Fix case when both the Windows and Linux builds of Node + # are installed in the same directory + $exe=".exe" +}`;return t.nodePath&&(h+=` else { + $env:NODE_PATH="${g}" +}`),o?h+=` +$ret=0 +if (Test-Path ${o}) { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & ${o} ${l} ${i} ${f}$args + } else { + & ${o} ${l} ${i} ${f}$args + } + $ret=$LASTEXITCODE +} else { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & ${s} ${l} ${i} ${f}$args + } else { + & ${s} ${l} ${i} ${f}$args + } + $ret=$LASTEXITCODE +} +${t.nodePath?`$env:NODE_PATH=$env_node_path +`:""}exit $ret +`:h+=` +# Support pipeline input +if ($MyInvocation.ExpectingInput) { + $input | & ${s} ${l} ${i} ${f}$args +} else { + & ${s} ${l} ${i} ${f}$args +} +${t.nodePath?`$env:NODE_PATH=$env_node_path +`:""}exit $LASTEXITCODE +`,h}function D8e(r,e){return e.fs_.chmod(r,493)}function KL(r){if(!r)return{win32:"",posix:""};let e=typeof r=="string"?r.split(zs.delimiter):Array.from(r),t={};for(let i=0;i`/mnt/${a.toLowerCase()}`):e[i];t.win32=t.win32?`${t.win32};${n}`:n,t.posix=t.posix?`${t.posix}:${s}`:s,t[i]={win32:n,posix:s}}return t}qAe.exports=ML});var eT=w((RSt,hle)=>{hle.exports=require("stream")});var mle=w((FSt,ple)=>{"use strict";function dle(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Z8e(r){for(var e=1;e0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(t){var i={data:t,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=t+i.data;return n}},{key:"concat",value:function(t){if(this.length===0)return lb.alloc(0);for(var i=lb.allocUnsafe(t>>>0),n=this.head,s=0;n;)nze(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(t,i){var n;return to.length?o.length:t;if(a===o.length?s+=o:s+=o.slice(0,t),t-=a,t===0){a===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(t){var i=lb.allocUnsafe(t),n=this.head,s=1;for(n.data.copy(i),t-=n.data.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,a),t-=a,t===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:ize,value:function(t,i){return tT(this,Z8e({},i,{depth:0,customInspect:!1}))}}]),r}()});var iT=w((NSt,Ele)=>{"use strict";function sze(r,e){var t=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(rT,this,r)):process.nextTick(rT,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(s){!e&&s?t._writableState?t._writableState.errorEmitted?process.nextTick(cb,t):(t._writableState.errorEmitted=!0,process.nextTick(Ile,t,s)):process.nextTick(Ile,t,s):e?(process.nextTick(cb,t),e(s)):process.nextTick(cb,t)}),this)}function Ile(r,e){rT(r,e),cb(r)}function cb(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function oze(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function rT(r,e){r.emit("error",e)}function aze(r,e){var t=r._readableState,i=r._writableState;t&&t.autoDestroy||i&&i.autoDestroy?r.destroy(e):r.emit("error",e)}Ele.exports={destroy:sze,undestroy:oze,errorOrDestroy:aze}});var Ul=w((LSt,yle)=>{"use strict";var wle={};function _s(r,e,t){t||(t=Error);function i(s,o,a){return typeof e=="string"?e:e(s,o,a)}class n extends t{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=t.name,n.prototype.code=r,wle[r]=n}function Ble(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(i=>String(i)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function Aze(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function lze(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function cze(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}_s("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);_s("ERR_INVALID_ARG_TYPE",function(r,e,t){let i;typeof e=="string"&&Aze(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(lze(r," argument"))n=`The ${r} ${i} ${Ble(e,"type")}`;else{let s=cze(r,".")?"property":"argument";n=`The "${r}" ${s} ${i} ${Ble(e,"type")}`}return n+=`. Received type ${typeof t}`,n},TypeError);_s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");_s("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});_s("ERR_STREAM_PREMATURE_CLOSE","Premature close");_s("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});_s("ERR_MULTIPLE_CALLBACK","Callback called multiple times");_s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");_s("ERR_STREAM_WRITE_AFTER_END","write after end");_s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);_s("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);_s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");yle.exports.codes=wle});var nT=w((TSt,ble)=>{"use strict";var uze=Ul().codes.ERR_INVALID_OPT_VALUE;function gze(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function fze(r,e,t,i){var n=gze(e,i,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?t:"highWaterMark";throw new uze(s,n)}return Math.floor(n)}return r.objectMode?16:16*1024}ble.exports={getHighWaterMark:fze}});var Qle=w((OSt,sT)=>{typeof Object.create=="function"?sT.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:sT.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Hl=w((MSt,oT)=>{try{if(aT=require("util"),typeof aT.inherits!="function")throw"";oT.exports=aT.inherits}catch(r){oT.exports=Qle()}var aT});var vle=w((KSt,Sle)=>{Sle.exports=require("util").deprecate});var cT=w((USt,xle)=>{"use strict";xle.exports=Gr;function kle(r){var e=this;this.next=null,this.entry=null,this.finish=function(){hze(e,r)}}var ch;Gr.WritableState=Gm;var pze={deprecate:vle()},Ple=eT(),ub=require("buffer").Buffer,dze=global.Uint8Array||function(){};function Cze(r){return ub.from(r)}function mze(r){return ub.isBuffer(r)||r instanceof dze}var AT=iT(),Eze=nT(),Ize=Eze.getHighWaterMark,jl=Ul().codes,yze=jl.ERR_INVALID_ARG_TYPE,wze=jl.ERR_METHOD_NOT_IMPLEMENTED,Bze=jl.ERR_MULTIPLE_CALLBACK,bze=jl.ERR_STREAM_CANNOT_PIPE,Qze=jl.ERR_STREAM_DESTROYED,Sze=jl.ERR_STREAM_NULL_VALUES,vze=jl.ERR_STREAM_WRITE_AFTER_END,xze=jl.ERR_UNKNOWN_ENCODING,uh=AT.errorOrDestroy;Hl()(Gr,Ple);function kze(){}function Gm(r,e,t){ch=ch||ku(),r=r||{},typeof t!="boolean"&&(t=e instanceof ch),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Ize(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=r.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Pze(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new kle(this)}Gm.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(Gm.prototype,"buffer",{get:pze.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(r){}})();var gb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(gb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Gr,Symbol.hasInstance,{value:function(e){return gb.call(this,e)?!0:this!==Gr?!1:e&&e._writableState instanceof Gm}})):gb=function(e){return e instanceof this};function Gr(r){ch=ch||ku();var e=this instanceof ch;if(!e&&!gb.call(Gr,this))return new Gr(r);this._writableState=new Gm(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Ple.call(this)}Gr.prototype.pipe=function(){uh(this,new bze)};function Dze(r,e){var t=new vze;uh(r,t),process.nextTick(e,t)}function Rze(r,e,t,i){var n;return t===null?n=new Sze:typeof t!="string"&&!e.objectMode&&(n=new yze("chunk",["string","Buffer"],t)),n?(uh(r,n),process.nextTick(i,n),!1):!0}Gr.prototype.write=function(r,e,t){var i=this._writableState,n=!1,s=!i.objectMode&&mze(r);return s&&!ub.isBuffer(r)&&(r=Cze(r)),typeof e=="function"&&(t=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof t!="function"&&(t=kze),i.ending?Dze(this,t):(s||Rze(this,i,r,t))&&(i.pendingcb++,n=Fze(this,i,s,r,e,t)),n};Gr.prototype.cork=function(){this._writableState.corked++};Gr.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Dle(this,r))};Gr.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new xze(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Gr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Nze(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=ub.from(e,t)),e}Object.defineProperty(Gr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Fze(r,e,t,i,n,s){if(!t){var o=Nze(e,i,n);i!==o&&(t=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length{"use strict";var Hze=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};Nle.exports=Ea;var Lle=uT(),gT=cT();Hl()(Ea,Lle);for(fT=Hze(gT.prototype),fb=0;fb{var pb=require("buffer"),vA=pb.Buffer;function Ole(r,e){for(var t in r)e[t]=r[t]}vA.from&&vA.alloc&&vA.allocUnsafe&&vA.allocUnsafeSlow?Tle.exports=pb:(Ole(pb,hT),hT.Buffer=gh);function gh(r,e,t){return vA(r,e,t)}Ole(vA,gh);gh.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return vA(r,e,t)};gh.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var i=vA(r);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};gh.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return vA(r)};gh.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return pb.SlowBuffer(r)}});var CT=w(Kle=>{"use strict";var pT=Mle().Buffer,Ule=pT.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Yze(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function qze(r){var e=Yze(r);if(typeof e!="string"&&(pT.isEncoding===Ule||!Ule(r)))throw new Error("Unknown encoding: "+r);return e||r}Kle.StringDecoder=qm;function qm(r){this.encoding=qze(r);var e;switch(this.encoding){case"utf16le":this.text=Wze,this.end=zze,e=4;break;case"utf8":this.fillLast=Jze,e=4;break;case"base64":this.text=_ze,this.end=Vze,e=3;break;default:this.write=Xze,this.end=Zze;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=pT.allocUnsafe(e)}qm.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5==6?2:r>>4==14?3:r>>3==30?4:r>>6==2?-1:-2}function t5e(r,e,t){var i=e.length-1;if(i=0?(n>0&&(r.lastNeed=n-1),n):--i=0?(n>0&&(r.lastNeed=n-2),n):--i=0?(n>0&&(n===2?n=0:r.lastNeed=n-3),n):0))}function r5e(r,e,t){if((e[0]&192)!=128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!=128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!=128)return r.lastNeed=2,"\uFFFD"}}function Jze(r){var e=this.lastTotal-this.lastNeed,t=r5e(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function e5e(r,e){var t=t5e(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var i=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,i),r.toString("utf8",e,i)}function $ze(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function Wze(r,e){if((r.length-e)%2==0){var t=r.toString("utf16le",e);if(t){var i=t.charCodeAt(t.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function zze(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function _ze(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Vze(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Xze(r){return r.toString(this.encoding)}function Zze(r){return r&&r.length?this.write(r):""}});var db=w((GSt,Hle)=>{"use strict";var jle=Ul().codes.ERR_STREAM_PREMATURE_CLOSE;function i5e(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,i=new Array(t),n=0;n{"use strict";var Cb;function Gl(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var o5e=db(),Yl=Symbol("lastResolve"),Pu=Symbol("lastReject"),Jm=Symbol("error"),mb=Symbol("ended"),Du=Symbol("lastPromise"),mT=Symbol("handlePromise"),Ru=Symbol("stream");function ql(r,e){return{value:r,done:e}}function a5e(r){var e=r[Yl];if(e!==null){var t=r[Ru].read();t!==null&&(r[Du]=null,r[Yl]=null,r[Pu]=null,e(ql(t,!1)))}}function A5e(r){process.nextTick(a5e,r)}function l5e(r,e){return function(t,i){r.then(function(){if(e[mb]){t(ql(void 0,!0));return}e[mT](t,i)},i)}}var c5e=Object.getPrototypeOf(function(){}),u5e=Object.setPrototypeOf((Cb={get stream(){return this[Ru]},next:function(){var e=this,t=this[Jm];if(t!==null)return Promise.reject(t);if(this[mb])return Promise.resolve(ql(void 0,!0));if(this[Ru].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Jm]?a(e[Jm]):o(ql(void 0,!0))})});var i=this[Du],n;if(i)n=new Promise(l5e(i,this));else{var s=this[Ru].read();if(s!==null)return Promise.resolve(ql(s,!1));n=new Promise(this[mT])}return this[Du]=n,n}},Gl(Cb,Symbol.asyncIterator,function(){return this}),Gl(Cb,"return",function(){var e=this;return new Promise(function(t,i){e[Ru].destroy(null,function(n){if(n){i(n);return}t(ql(void 0,!0))})})}),Cb),c5e),g5e=function(e){var t,i=Object.create(u5e,(t={},Gl(t,Ru,{value:e,writable:!0}),Gl(t,Yl,{value:null,writable:!0}),Gl(t,Pu,{value:null,writable:!0}),Gl(t,Jm,{value:null,writable:!0}),Gl(t,mb,{value:e._readableState.endEmitted,writable:!0}),Gl(t,mT,{value:function(s,o){var a=i[Ru].read();a?(i[Du]=null,i[Yl]=null,i[Pu]=null,s(ql(a,!1))):(i[Yl]=s,i[Pu]=o)},writable:!0}),t));return i[Du]=null,o5e(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Pu];s!==null&&(i[Du]=null,i[Yl]=null,i[Pu]=null,s(n)),i[Jm]=n;return}var o=i[Yl];o!==null&&(i[Du]=null,i[Yl]=null,i[Pu]=null,o(ql(void 0,!0))),i[mb]=!0}),e.on("readable",A5e.bind(null,i)),i};Yle.exports=g5e});var _le=w((qSt,Jle)=>{"use strict";function Wle(r,e,t,i,n,s,o){try{var a=r[s](o),l=a.value}catch(c){t(c);return}a.done?e(l):Promise.resolve(l).then(i,n)}function f5e(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var s=r.apply(e,t);function o(l){Wle(s,i,n,o,a,"next",l)}function a(l){Wle(s,i,n,o,a,"throw",l)}o(void 0)})}}function zle(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function p5e(r){for(var e=1;e{"use strict";Vle.exports=Ut;var fh;Ut.ReadableState=Xle;var JSt=require("events").EventEmitter,Zle=function(e,t){return e.listeners(t).length},Wm=eT(),Eb=require("buffer").Buffer,m5e=global.Uint8Array||function(){};function E5e(r){return Eb.from(r)}function I5e(r){return Eb.isBuffer(r)||r instanceof m5e}var ET=require("util"),Pt;ET&&ET.debuglog?Pt=ET.debuglog("stream"):Pt=function(){};var y5e=mle(),IT=iT(),w5e=nT(),B5e=w5e.getHighWaterMark,Ib=Ul().codes,b5e=Ib.ERR_INVALID_ARG_TYPE,Q5e=Ib.ERR_STREAM_PUSH_AFTER_EOF,S5e=Ib.ERR_METHOD_NOT_IMPLEMENTED,v5e=Ib.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,hh,yT,wT;Hl()(Ut,Wm);var zm=IT.errorOrDestroy,BT=["error","close","destroy","pause","resume"];function x5e(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function Xle(r,e,t){fh=fh||ku(),r=r||{},typeof t!="boolean"&&(t=e instanceof fh),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=B5e(this,r,"readableHighWaterMark",t),this.buffer=new y5e,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(hh||(hh=CT().StringDecoder),this.decoder=new hh(r.encoding),this.encoding=r.encoding)}function Ut(r){if(fh=fh||ku(),!(this instanceof Ut))return new Ut(r);var e=this instanceof fh;this._readableState=new Xle(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),Wm.call(this)}Object.defineProperty(Ut.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});Ut.prototype.destroy=IT.destroy;Ut.prototype._undestroy=IT.undestroy;Ut.prototype._destroy=function(r,e){e(r)};Ut.prototype.push=function(r,e){var t=this._readableState,i;return t.objectMode?i=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Eb.from(r,e),e=""),i=!0),$le(this,r,e,!1,i)};Ut.prototype.unshift=function(r){return $le(this,r,null,!0,!1)};function $le(r,e,t,i,n){Pt("readableAddChunk",e);var s=r._readableState;if(e===null)s.reading=!1,P5e(r,s);else{var o;if(n||(o=k5e(s,e)),o)zm(r,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Eb.prototype&&(e=E5e(e)),i)s.endEmitted?zm(r,new v5e):bT(r,s,e,!0);else if(s.ended)zm(r,new Q5e);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!t?(e=s.decoder.write(e),s.objectMode||e.length!==0?bT(r,s,e,!1):QT(r,s)):bT(r,s,e,!1)}else i||(s.reading=!1,QT(r,s))}return!s.ended&&(s.length=ece?r=ece:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function tce(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=D5e(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}Ut.prototype.read=function(r){Pt("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Pt("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ST(this):yb(this),null;if(r=tce(r,e),r===0&&e.ended)return e.length===0&&ST(this),null;var i=e.needReadable;Pt("need readable",i),(e.length===0||e.length-r0?n=rce(r,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&ST(this)),n!==null&&this.emit("data",n),n};function P5e(r,e){if(Pt("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?yb(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ice(r)))}}function yb(r){var e=r._readableState;Pt("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Pt("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(ice,r))}function ice(r){var e=r._readableState;Pt("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,vT(r)}function QT(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(R5e,r,e))}function R5e(r,e){for(;!e.reading&&!e.ended&&(e.length1&&nce(i.pipes,r)!==-1)&&!c&&(Pt("false write response, pause",i.awaitDrain),i.awaitDrain++),t.pause())}function f(y){Pt("onerror",y),m(),r.removeListener("error",f),Zle(r,"error")===0&&zm(r,y)}x5e(r,"error",f);function h(){r.removeListener("finish",p),m()}r.once("close",h);function p(){Pt("onfinish"),r.removeListener("close",h),m()}r.once("finish",p);function m(){Pt("unpipe"),t.unpipe(r)}return r.emit("pipe",t),i.flowing||(Pt("pipe resume"),t.resume()),r};function F5e(r){return function(){var t=r._readableState;Pt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Zle(r,"data")&&(t.flowing=!0,vT(r))}}Ut.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,i.flowing!==!1&&this.resume()):r==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Pt("on readable",i.length,i.reading),i.length?yb(this):i.reading||process.nextTick(N5e,this)),t};Ut.prototype.addListener=Ut.prototype.on;Ut.prototype.removeListener=function(r,e){var t=Wm.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(sce,this),t};Ut.prototype.removeAllListeners=function(r){var e=Wm.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(sce,this),e};function sce(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function N5e(r){Pt("readable nexttick read 0"),r.read(0)}Ut.prototype.resume=function(){var r=this._readableState;return r.flowing||(Pt("resume"),r.flowing=!r.readableListening,L5e(this,r)),r.paused=!1,this};function L5e(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(T5e,r,e))}function T5e(r,e){Pt("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),vT(r),e.flowing&&!e.reading&&r.read(0)}Ut.prototype.pause=function(){return Pt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function vT(r){var e=r._readableState;for(Pt("flow",e.flowing);e.flowing&&r.read()!==null;);}Ut.prototype.wrap=function(r){var e=this,t=this._readableState,i=!1;r.on("end",function(){if(Pt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),r.on("data",function(o){if(Pt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,r.pause())}});for(var n in r)this[n]===void 0&&typeof r[n]=="function"&&(this[n]=function(a){return function(){return r[a].apply(r,arguments)}}(n));for(var s=0;s=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function ST(r){var e=r._readableState;Pt("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(O5e,e,r))}function O5e(r,e){if(Pt("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(Ut.from=function(r,e){return wT===void 0&&(wT=_le()),wT(Ut,r,e)});function nce(r,e){for(var t=0,i=r.length;t{"use strict";oce.exports=xA;var wb=Ul().codes,M5e=wb.ERR_METHOD_NOT_IMPLEMENTED,K5e=wb.ERR_MULTIPLE_CALLBACK,U5e=wb.ERR_TRANSFORM_ALREADY_TRANSFORMING,H5e=wb.ERR_TRANSFORM_WITH_LENGTH_0,Bb=ku();Hl()(xA,Bb);function j5e(r,e){var t=this._transformState;t.transforming=!1;var i=t.writecb;if(i===null)return this.emit("error",new K5e);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),i(r);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";Ace.exports=_m;var lce=xT();Hl()(_m,lce);function _m(r){if(!(this instanceof _m))return new _m(r);lce.call(this,r)}_m.prototype._transform=function(r,e,t){t(null,r)}});var pce=w((VSt,uce)=>{"use strict";var kT;function Y5e(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var gce=Ul().codes,q5e=gce.ERR_MISSING_ARGS,J5e=gce.ERR_STREAM_DESTROYED;function fce(r){if(r)throw r}function W5e(r){return r.setHeader&&typeof r.abort=="function"}function z5e(r,e,t,i){i=Y5e(i);var n=!1;r.on("close",function(){n=!0}),kT===void 0&&(kT=db()),kT(r,{readable:e,writable:t},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,W5e(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();i(o||new J5e("pipe"))}}}function hce(r){r()}function _5e(r,e){return r.pipe(e)}function V5e(r){return!r.length||typeof r[r.length-1]!="function"?fce:r.pop()}function X5e(){for(var r=arguments.length,e=new Array(r),t=0;t0;return z5e(o,l,c,function(u){n||(n=u),u&&s.forEach(hce),!l&&(s.forEach(hce),i(n))})});return e.reduce(_5e)}uce.exports=X5e});var ph=w((Vs,Vm)=>{var Xm=require("stream");process.env.READABLE_STREAM==="disable"&&Xm?(Vm.exports=Xm.Readable,Object.assign(Vm.exports,Xm),Vm.exports.Stream=Xm):(Vs=Vm.exports=uT(),Vs.Stream=Xm||Vs,Vs.Readable=Vs,Vs.Writable=cT(),Vs.Duplex=ku(),Vs.Transform=xT(),Vs.PassThrough=cce(),Vs.finished=db(),Vs.pipeline=pce())});var mce=w((XSt,dce)=>{"use strict";var{Buffer:So}=require("buffer"),Cce=Symbol.for("BufferList");function mr(r){if(!(this instanceof mr))return new mr(r);mr._init.call(this,r)}mr._init=function(e){Object.defineProperty(this,Cce,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};mr.prototype._new=function(e){return new mr(e)};mr.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let i=0;ithis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};mr.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};mr.prototype.copy=function(e,t,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||So.alloc(0);let s=!!e,o=this._offset(i),a=n-i,l=a,c=s&&t||0,u=o[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:So.concat(this._bufs,this.length);for(let g=0;gf)this._bufs[g].copy(e,c,u),c+=f;else{this._bufs[g].copy(e,c,u,u+l),c+=f;break}l-=f,u&&(u=0)}return e.length>c?e.slice(0,c):e};mr.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let i=this._offset(e),n=this._offset(t),s=this._bufs.slice(i[0],n[0]+1);return n[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,n[1]),i[1]!==0&&(s[0]=s[0].slice(i[1])),this._new(s)};mr.prototype.toString=function(e,t,i){return this.slice(t,i).toString(e)};mr.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};mr.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let i=this._offset(e),n=i[0],s=i[1];for(;n=r.length){let l=o.indexOf(r,s);if(l!==-1)return this._reverseOffset([n,l]);s=o.length-r.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,r))return l;s++}s=0}return-1};mr.prototype._match=function(r,e){if(this.length-r{"use strict";var PT=ph().Duplex,Z5e=Hl(),Zm=mce();function Zi(r){if(!(this instanceof Zi))return new Zi(r);if(typeof r=="function"){this._callback=r;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),r=null}Zm._init.call(this,r),PT.call(this)}Z5e(Zi,PT);Object.assign(Zi.prototype,Zm.prototype);Zi.prototype._new=function(e){return new Zi(e)};Zi.prototype._write=function(e,t,i){this._appendBuffer(e),typeof i=="function"&&i()};Zi.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};Zi.prototype.end=function(e){PT.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Zi.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)};Zi.prototype._isBufferList=function(e){return e instanceof Zi||e instanceof Zm||Zi.isBufferList(e)};Zi.isBufferList=Zm.isBufferList;bb.exports=Zi;bb.exports.BufferListStream=Zi;bb.exports.BufferList=Zm});var FT=w(dh=>{var $5e=Buffer.alloc,e9e="0000000000000000000",t9e="7777777777777777777",Ice="0".charCodeAt(0),yce=Buffer.from("ustar\0","binary"),r9e=Buffer.from("00","binary"),i9e=Buffer.from("ustar ","binary"),n9e=Buffer.from(" \0","binary"),s9e=parseInt("7777",8),$m=257,DT=263,o9e=function(r,e,t){return typeof r!="number"?t:(r=~~r,r>=e?e:r>=0||(r+=e,r>=0)?r:0)},a9e=function(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},A9e=function(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},wce=function(r,e,t,i){for(;te?t9e.slice(0,e)+" ":e9e.slice(0,e-r.length)+r+" "};function l9e(r){var e;if(r[0]===128)e=!0;else if(r[0]===255)e=!1;else return null;for(var t=[],i=r.length-1;i>0;i--){var n=r[i];e?t.push(n):t.push(255-n)}var s=0,o=t.length;for(i=0;i=Math.pow(10,t)&&t++,e+t+r};dh.decodeLongPath=function(r,e){return Ch(r,0,r.length,e)};dh.encodePax=function(r){var e="";r.name&&(e+=RT(" path="+r.name+` +`)),r.linkname&&(e+=RT(" linkpath="+r.linkname+` +`));var t=r.pax;if(t)for(var i in t)e+=RT(" "+i+"="+t[i]+` +`);return Buffer.from(e)};dh.decodePax=function(r){for(var e={};r.length;){for(var t=0;t100;){var n=t.indexOf("/");if(n===-1)return null;i+=i?"/"+t.slice(0,n):t.slice(0,n),t=t.slice(n+1)}return Buffer.byteLength(t)>100||Buffer.byteLength(i)>155||r.linkname&&Buffer.byteLength(r.linkname)>100?null:(e.write(t),e.write(Jl(r.mode&s9e,6),100),e.write(Jl(r.uid,6),108),e.write(Jl(r.gid,6),116),e.write(Jl(r.size,11),124),e.write(Jl(r.mtime.getTime()/1e3|0,11),136),e[156]=Ice+A9e(r.type),r.linkname&&e.write(r.linkname,157),yce.copy(e,$m),r9e.copy(e,DT),r.uname&&e.write(r.uname,265),r.gname&&e.write(r.gname,297),e.write(Jl(r.devmajor||0,6),329),e.write(Jl(r.devminor||0,6),337),i&&e.write(i,345),e.write(Jl(Bce(e),6),148),e)};dh.decode=function(r,e,t){var i=r[156]===0?0:r[156]-Ice,n=Ch(r,0,100,e),s=Wl(r,100,8),o=Wl(r,108,8),a=Wl(r,116,8),l=Wl(r,124,12),c=Wl(r,136,12),u=a9e(i),g=r[157]===0?null:Ch(r,157,100,e),f=Ch(r,265,32),h=Ch(r,297,32),p=Wl(r,329,8),m=Wl(r,337,8),y=Bce(r);if(y===8*32)return null;if(y!==Wl(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(yce.compare(r,$m,$m+6)===0)r[345]&&(n=Ch(r,345,155,e)+"/"+n);else if(!(i9e.compare(r,$m,$m+6)===0&&n9e.compare(r,DT,DT+2)===0)){if(!t)throw new Error("Invalid tar header: unknown format.")}return i===0&&n&&n[n.length-1]==="/"&&(i=5),{name:n,mode:s,uid:o,gid:a,size:l,mtime:new Date(1e3*c),type:u,linkname:g,uname:f,gname:h,devmajor:p,devminor:m}}});var Pce=w((evt,bce)=>{var Qce=require("util"),c9e=Ece(),eE=FT(),Sce=ph().Writable,vce=ph().PassThrough,xce=function(){},kce=function(r){return r&=511,r&&512-r},u9e=function(r,e){var t=new Qb(r,e);return t.end(),t},g9e=function(r,e){return e.path&&(r.name=e.path),e.linkpath&&(r.linkname=e.linkpath),e.size&&(r.size=parseInt(e.size,10)),r.pax=e,r},Qb=function(r,e){this._parent=r,this.offset=e,vce.call(this,{autoDestroy:!1})};Qce.inherits(Qb,vce);Qb.prototype.destroy=function(r){this._parent.destroy(r)};var kA=function(r){if(!(this instanceof kA))return new kA(r);Sce.call(this,r),r=r||{},this._offset=0,this._buffer=c9e(),this._missing=0,this._partial=!1,this._onparse=xce,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var e=this,t=e._buffer,i=function(){e._continue()},n=function(f){if(e._locked=!1,f)return e.destroy(f);e._stream||i()},s=function(){e._stream=null;var f=kce(e._header.size);f?e._parse(f,o):e._parse(512,g),e._locked||i()},o=function(){e._buffer.consume(kce(e._header.size)),e._parse(512,g),i()},a=function(){var f=e._header.size;e._paxGlobal=eE.decodePax(t.slice(0,f)),t.consume(f),s()},l=function(){var f=e._header.size;e._pax=eE.decodePax(t.slice(0,f)),e._paxGlobal&&(e._pax=Object.assign({},e._paxGlobal,e._pax)),t.consume(f),s()},c=function(){var f=e._header.size;this._gnuLongPath=eE.decodeLongPath(t.slice(0,f),r.filenameEncoding),t.consume(f),s()},u=function(){var f=e._header.size;this._gnuLongLinkPath=eE.decodeLongPath(t.slice(0,f),r.filenameEncoding),t.consume(f),s()},g=function(){var f=e._offset,h;try{h=e._header=eE.decode(t.slice(0,512),r.filenameEncoding,r.allowUnknownFormat)}catch(p){e.emit("error",p)}if(t.consume(512),!h){e._parse(512,g),i();return}if(h.type==="gnu-long-path"){e._parse(h.size,c),i();return}if(h.type==="gnu-long-link-path"){e._parse(h.size,u),i();return}if(h.type==="pax-global-header"){e._parse(h.size,a),i();return}if(h.type==="pax-header"){e._parse(h.size,l),i();return}if(e._gnuLongPath&&(h.name=e._gnuLongPath,e._gnuLongPath=null),e._gnuLongLinkPath&&(h.linkname=e._gnuLongLinkPath,e._gnuLongLinkPath=null),e._pax&&(e._header=h=g9e(h,e._pax),e._pax=null),e._locked=!0,!h.size||h.type==="directory"){e._parse(512,g),e.emit("entry",h,u9e(e,f),n);return}e._stream=new Qb(e,f),e.emit("entry",h,e._stream,n),e._parse(h.size,s),i()};this._onheader=g,this._parse(512,g)};Qce.inherits(kA,Sce);kA.prototype.destroy=function(r){this._destroyed||(this._destroyed=!0,r&&this.emit("error",r),this.emit("close"),this._stream&&this._stream.emit("close"))};kA.prototype._parse=function(r,e){this._destroyed||(this._offset+=r,this._missing=r,e===this._onheader&&(this._partial=!1),this._onparse=e)};kA.prototype._continue=function(){if(!this._destroyed){var r=this._cb;this._cb=xce,this._overflow?this._write(this._overflow,void 0,r):r()}};kA.prototype._write=function(r,e,t){if(!this._destroyed){var i=this._stream,n=this._buffer,s=this._missing;if(r.length&&(this._partial=!0),r.lengths&&(o=r.slice(s),r=r.slice(0,s)),i?i.end(r):n.append(r),this._overflow=o,this._onparse()}};kA.prototype._final=function(r){if(this._partial)return this.destroy(new Error("Unexpected end of data"));r()};bce.exports=kA});var Rce=w((tvt,Dce)=>{Dce.exports=require("fs").constants||require("constants")});var Oce=w((rvt,Fce)=>{var mh=Rce(),Nce=Mk(),Sb=Hl(),f9e=Buffer.alloc,Lce=ph().Readable,Eh=ph().Writable,h9e=require("string_decoder").StringDecoder,vb=FT(),p9e=parseInt("755",8),d9e=parseInt("644",8),Tce=f9e(1024),NT=function(){},LT=function(r,e){e&=511,e&&r.push(Tce.slice(0,512-e))};function C9e(r){switch(r&mh.S_IFMT){case mh.S_IFBLK:return"block-device";case mh.S_IFCHR:return"character-device";case mh.S_IFDIR:return"directory";case mh.S_IFIFO:return"fifo";case mh.S_IFLNK:return"symlink"}return"file"}var xb=function(r){Eh.call(this),this.written=0,this._to=r,this._destroyed=!1};Sb(xb,Eh);xb.prototype._write=function(r,e,t){if(this.written+=r.length,this._to.push(r))return t();this._to._drain=t};xb.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var kb=function(){Eh.call(this),this.linkname="",this._decoder=new h9e("utf-8"),this._destroyed=!1};Sb(kb,Eh);kb.prototype._write=function(r,e,t){this.linkname+=this._decoder.write(r),t()};kb.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var tE=function(){Eh.call(this),this._destroyed=!1};Sb(tE,Eh);tE.prototype._write=function(r,e,t){t(new Error("No body allowed for this entry"))};tE.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Ia=function(r){if(!(this instanceof Ia))return new Ia(r);Lce.call(this,r),this._drain=NT,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};Sb(Ia,Lce);Ia.prototype.entry=function(r,e,t){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof e=="function"&&(t=e,e=null),t||(t=NT);var i=this;if((!r.size||r.type==="symlink")&&(r.size=0),r.type||(r.type=C9e(r.mode)),r.mode||(r.mode=r.type==="directory"?p9e:d9e),r.uid||(r.uid=0),r.gid||(r.gid=0),r.mtime||(r.mtime=new Date),typeof e=="string"&&(e=Buffer.from(e)),Buffer.isBuffer(e)){r.size=e.length,this._encode(r);var n=this.push(e);return LT(i,r.size),n?process.nextTick(t):this._drain=t,new tE}if(r.type==="symlink"&&!r.linkname){var s=new kb;return Nce(s,function(a){if(a)return i.destroy(),t(a);r.linkname=s.linkname,i._encode(r),t()}),s}if(this._encode(r),r.type!=="file"&&r.type!=="contiguous-file")return process.nextTick(t),new tE;var o=new xb(this);return this._stream=o,Nce(o,function(a){if(i._stream=null,a)return i.destroy(),t(a);if(o.written!==r.size)return i.destroy(),t(new Error("size mismatch"));LT(i,r.size),i._finalizing&&i.finalize(),t()}),o}};Ia.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(Tce),this.push(null))};Ia.prototype.destroy=function(r){this._destroyed||(this._destroyed=!0,r&&this.emit("error",r),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};Ia.prototype._encode=function(r){if(!r.pax){var e=vb.encode(r);if(e){this.push(e);return}}this._encodePax(r)};Ia.prototype._encodePax=function(r){var e=vb.encodePax({name:r.name,linkname:r.linkname,pax:r.pax}),t={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:e.length,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(vb.encode(t)),this.push(e),LT(this,e.length),t.size=r.size,t.type=r.type,this.push(vb.encode(t))};Ia.prototype._read=function(r){var e=this._drain;this._drain=NT,e()};Fce.exports=Ia});var Mce=w(TT=>{TT.extract=Pce();TT.pack=Oce()});var Xce=w((Qvt,Wce)=>{"use strict";var Ih=class{constructor(e,t,i){this.__specs=e||{},Object.keys(this.__specs).forEach(n=>{if(typeof this.__specs[n]=="string"){let s=this.__specs[n],o=this.__specs[s];if(o){let a=o.aliases||[];a.push(n,s),o.aliases=[...new Set(a)],this.__specs[n]=o}else throw new Error(`Alias refers to invalid key: ${s} -> ${n}`)}}),this.__opts=t||{},this.__providers=_ce(i.filter(n=>n!=null&&typeof n=="object")),this.__isFiggyPudding=!0}get(e){return jT(this,e,!0)}get[Symbol.toStringTag](){return"FiggyPudding"}forEach(e,t=this){for(let[i,n]of this.entries())e.call(t,n,i,this)}toJSON(){let e={};return this.forEach((t,i)=>{e[i]=t}),e}*entries(e){for(let i of Object.keys(this.__specs))yield[i,this.get(i)];let t=e||this.__opts.other;if(t){let i=new Set;for(let n of this.__providers){let s=n.entries?n.entries(t):P9e(n);for(let[o,a]of s)t(o)&&!i.has(o)&&(i.add(o),yield[o,a])}}}*[Symbol.iterator](){for(let[e,t]of this.entries())yield[e,t]}*keys(){for(let[e]of this.entries())yield e}*values(){for(let[,e]of this.entries())yield e}concat(...e){return new Proxy(new Ih(this.__specs,this.__opts,_ce(this.__providers).concat(e)),zce)}};try{let r=require("util");Ih.prototype[r.inspect.custom]=function(e,t){return this[Symbol.toStringTag]+" "+r.inspect(this.toJSON(),t)}}catch(r){}function D9e(r){throw Object.assign(new Error(`invalid config key requested: ${r}`),{code:"EBADKEY"})}function jT(r,e,t){let i=r.__specs[e];if(t&&!i&&(!r.__opts.other||!r.__opts.other(e)))D9e(e);else{i||(i={});let n;for(let s of r.__providers){if(n=Vce(e,s),n===void 0&&i.aliases&&i.aliases.length){for(let o of i.aliases)if(o!==e&&(n=Vce(o,s),n!==void 0))break}if(n!==void 0)break}return n===void 0&&i.default!==void 0?typeof i.default=="function"?i.default(r):i.default:n}}function Vce(r,e){let t;return e.__isFiggyPudding?t=jT(e,r,!1):typeof e.get=="function"?t=e.get(r):t=e[r],t}var zce={has(r,e){return e in r.__specs&&jT(r,e,!1)!==void 0},ownKeys(r){return Object.keys(r.__specs)},get(r,e){return typeof e=="symbol"||e.slice(0,2)==="__"||e in Ih.prototype?r[e]:r.get(e)},set(r,e,t){if(typeof e=="symbol"||e.slice(0,2)==="__")return r[e]=t,!0;throw new Error("figgyPudding options cannot be modified. Use .concat() instead.")},deleteProperty(){throw new Error("figgyPudding options cannot be deleted. Use .concat() and shadow them instead.")}};Wce.exports=R9e;function R9e(r,e){function t(...i){return new Proxy(new Ih(r,e,i),zce)}return t}function _ce(r){let e=[];return r.forEach(t=>e.unshift(t)),e}function P9e(r){return Object.keys(r).map(e=>[e,r[e]])}});var eue=w((Svt,ya)=>{"use strict";var iE=require("crypto"),F9e=Xce(),N9e=require("stream").Transform,Zce=["sha256","sha384","sha512"],L9e=/^[a-z0-9+/]+(?:=?=?)$/i,T9e=/^([^-]+)-([^?]+)([?\S*]*)$/,O9e=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,M9e=/^[\x21-\x7E]+$/,Cn=F9e({algorithms:{default:["sha512"]},error:{default:!1},integrity:{},options:{default:[]},pickAlgorithm:{default:()=>K9e},Promise:{default:()=>Promise},sep:{default:" "},single:{default:!1},size:{},strict:{default:!1}}),Fu=class{get isHash(){return!0}constructor(e,t){t=Cn(t);let i=!!t.strict;this.source=e.trim();let n=this.source.match(i?O9e:T9e);if(!n||i&&!Zce.some(o=>o===n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];this.options=s?s.slice(1).split("?"):[]}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){if(e=Cn(e),e.strict&&!(Zce.some(i=>i===this.algorithm)&&this.digest.match(L9e)&&(this.options||[]).every(i=>i.match(M9e))))return"";let t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}},yh=class{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(e){e=Cn(e);let t=e.sep||" ";return e.strict&&(t=t.replace(/\S+/g," ")),Object.keys(this).map(i=>this[i].map(n=>Fu.prototype.toString.call(n,e)).filter(n=>n.length).join(t)).filter(i=>i.length).join(t)}concat(e,t){t=Cn(t);let i=typeof e=="string"?e:nE(e,t);return wa(`${this.toString(t)} ${i}`,t)}hexDigest(){return wa(this,{single:!0}).hexDigest()}match(e,t){t=Cn(t);let i=wa(e,t),n=i.pickAlgorithm(t);return this[n]&&i[n]&&this[n].find(s=>i[n].find(o=>s.digest===o.digest))||!1}pickAlgorithm(e){e=Cn(e);let t=e.pickAlgorithm,i=Object.keys(this);if(!i.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return i.reduce((n,s)=>t(n,s)||n)}};ya.exports.parse=wa;function wa(r,e){if(e=Cn(e),typeof r=="string")return GT(r,e);if(r.algorithm&&r.digest){let t=new yh;return t[r.algorithm]=[r],GT(nE(t,e),e)}else return GT(nE(r,e),e)}function GT(r,e){return e.single?new Fu(r,e):r.trim().split(/\s+/).reduce((t,i)=>{let n=new Fu(i,e);if(n.algorithm&&n.digest){let s=n.algorithm;t[s]||(t[s]=[]),t[s].push(n)}return t},new yh)}ya.exports.stringify=nE;function nE(r,e){return e=Cn(e),r.algorithm&&r.digest?Fu.prototype.toString.call(r,e):typeof r=="string"?nE(wa(r,e),e):yh.prototype.toString.call(r,e)}ya.exports.fromHex=U9e;function U9e(r,e,t){t=Cn(t);let i=t.options&&t.options.length?`?${t.options.join("?")}`:"";return wa(`${e}-${Buffer.from(r,"hex").toString("base64")}${i}`,t)}ya.exports.fromData=H9e;function H9e(r,e){e=Cn(e);let t=e.algorithms,i=e.options&&e.options.length?`?${e.options.join("?")}`:"";return t.reduce((n,s)=>{let o=iE.createHash(s).update(r).digest("base64"),a=new Fu(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let l=a.algorithm;n[l]||(n[l]=[]),n[l].push(a)}return n},new yh)}ya.exports.fromStream=j9e;function j9e(r,e){e=Cn(e);let t=e.Promise||Promise,i=YT(e);return new t((n,s)=>{r.pipe(i),r.on("error",s),i.on("error",s);let o;i.on("integrity",a=>{o=a}),i.on("end",()=>n(o)),i.on("data",()=>{})})}ya.exports.checkData=G9e;function G9e(r,e,t){if(t=Cn(t),e=wa(e,t),!Object.keys(e).length){if(t.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(t),n=iE.createHash(i).update(r).digest("base64"),s=wa({algorithm:i,digest:n}),o=s.match(e,t);if(o||!t.error)return o;if(typeof t.size=="number"&&r.length!==t.size){let a=new Error(`data size mismatch when checking ${e}. + Wanted: ${t.size} + Found: ${r.length}`);throw a.code="EBADSIZE",a.found=r.length,a.expected=t.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${r.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}ya.exports.checkStream=Y9e;function Y9e(r,e,t){t=Cn(t);let i=t.Promise||Promise,n=YT(t.concat({integrity:e}));return new i((s,o)=>{r.pipe(n),r.on("error",o),n.on("error",o);let a;n.on("verified",l=>{a=l}),n.on("end",()=>s(a)),n.on("data",()=>{})})}ya.exports.integrityStream=YT;function YT(r){r=Cn(r);let e=r.integrity&&wa(r.integrity,r),t=e&&Object.keys(e).length,i=t&&e.pickAlgorithm(r),n=t&&e[i],s=Array.from(new Set(r.algorithms.concat(i?[i]:[]))),o=s.map(iE.createHash),a=0,l=new N9e({transform(c,u,g){a+=c.length,o.forEach(f=>f.update(c,u)),g(null,c,u)}}).on("end",()=>{let c=r.options&&r.options.length?`?${r.options.join("?")}`:"",u=wa(o.map((f,h)=>`${s[h]}-${f.digest("base64")}${c}`).join(" "),r),g=t&&u.match(e,r);if(typeof r.size=="number"&&a!==r.size){let f=new Error(`stream size mismatch when checking ${e}. + Wanted: ${r.size} + Found: ${a}`);f.code="EBADSIZE",f.found=a,f.expected=r.size,f.sri=e,l.emit("error",f)}else if(r.integrity&&!g){let f=new Error(`${e} integrity checksum failed when using ${i}: wanted ${n} but got ${u}. (${a} bytes)`);f.code="EINTEGRITY",f.found=u,f.expected=n,f.algorithm=i,f.sri=e,l.emit("error",f)}else l.emit("size",a),l.emit("integrity",u),g&&l.emit("verified",g)});return l}ya.exports.create=q9e;function q9e(r){r=Cn(r);let e=r.algorithms,t=r.options.length?`?${r.options.join("?")}`:"",i=e.map(iE.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(n){return e.reduce((o,a)=>{let l=i.shift().digest("base64"),c=new Fu(`${a}-${l}${t}`,r);if(c.algorithm&&c.digest){let u=c.algorithm;o[u]||(o[u]=[]),o[u].push(c)}return o},new yh)}}}var J9e=new Set(iE.getHashes()),$ce=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(r=>J9e.has(r));function K9e(r,e){return $ce.indexOf(r.toLowerCase())>=$ce.indexOf(e.toLowerCase())?r:e}});var EC={};ft(EC,{BuildType:()=>cs,Cache:()=>Nt,Configuration:()=>ye,DEFAULT_LOCK_FILENAME:()=>fk,DEFAULT_RC_FILENAME:()=>gk,FormatType:()=>Ri,InstallMode:()=>Ci,LightReport:()=>pA,LinkType:()=>Qt,Manifest:()=>At,MessageName:()=>X,MultiFetcher:()=>yd,PackageExtensionStatus:()=>qi,PackageExtensionType:()=>wi,Project:()=>ze,ProjectLookup:()=>ul,Report:()=>Ji,ReportError:()=>ct,SettingsType:()=>Ie,StreamReport:()=>Je,TAG_REGEXP:()=>zg,TelemetryManager:()=>mC,ThrowReport:()=>di,VirtualFetcher:()=>Bd,Workspace:()=>CC,WorkspaceFetcher:()=>bd,WorkspaceResolver:()=>oi,YarnVersion:()=>Ur,execUtils:()=>Nr,folderUtils:()=>sk,formatUtils:()=>ae,hashUtils:()=>Dn,httpUtils:()=>ir,miscUtils:()=>Se,nodeUtils:()=>Vg,parseMessageName:()=>II,scriptUtils:()=>Zt,semverUtils:()=>Wt,stringifyMessageName:()=>_A,structUtils:()=>P,tgzUtils:()=>Bi,treeUtils:()=>ls});var Nr={};ft(Nr,{EndStrategy:()=>ss,ExecError:()=>Ik,PipeError:()=>ww,execvp:()=>pve,pipevp:()=>ra});var Zh={};ft(Zh,{AliasFS:()=>Na,CwdFS:()=>_t,DEFAULT_COMPRESSION_LEVEL:()=>lc,FakeFS:()=>YA,Filename:()=>kt,JailFS:()=>La,LazyFS:()=>_h,LinkStrategy:()=>Gh,NoFS:()=>jE,NodeFS:()=>ar,PortablePath:()=>Me,PosixFS:()=>Vh,ProxiedFS:()=>Qi,VirtualFS:()=>Wr,ZipFS:()=>li,ZipOpenFS:()=>Is,constants:()=>Rr,extendFs:()=>WE,normalizeLineEndings:()=>sc,npath:()=>H,opendir:()=>KE,patchFs:()=>pQ,ppath:()=>k,statUtils:()=>rQ,toFilename:()=>Jr,xfs:()=>K});var Rr={};ft(Rr,{SAFE_TIME:()=>tQ,S_IFDIR:()=>Da,S_IFLNK:()=>Fa,S_IFMT:()=>_n,S_IFREG:()=>Ra});var _n=61440,Da=16384,Ra=32768,Fa=40960,tQ=456789e3;var rQ={};ft(rQ,{BigIntStatsEntry:()=>Uh,DEFAULT_MODE:()=>Kh,DirEntry:()=>KO,StatEntry:()=>jA,areStatsEqual:()=>nQ,clearStats:()=>RE,convertToBigIntStats:()=>FE,makeDefaultStats:()=>Hh,makeEmptyStats:()=>fge});var iQ=ge(require("util"));var Kh=Ra|420,KO=class{constructor(){this.name="";this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&_n)===Da}isFIFO(){return!1}isFile(){return(this.mode&_n)===Ra}isSocket(){return!1}isSymbolicLink(){return(this.mode&_n)===Fa}},jA=class{constructor(){this.uid=0;this.gid=0;this.size=0;this.blksize=0;this.atimeMs=0;this.mtimeMs=0;this.ctimeMs=0;this.birthtimeMs=0;this.atime=new Date(0);this.mtime=new Date(0);this.ctime=new Date(0);this.birthtime=new Date(0);this.dev=0;this.ino=0;this.mode=Kh;this.nlink=1;this.rdev=0;this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&_n)===Da}isFIFO(){return!1}isFile(){return(this.mode&_n)===Ra}isSocket(){return!1}isSymbolicLink(){return(this.mode&_n)===Fa}},Uh=class{constructor(){this.uid=BigInt(0);this.gid=BigInt(0);this.size=BigInt(0);this.blksize=BigInt(0);this.atimeMs=BigInt(0);this.mtimeMs=BigInt(0);this.ctimeMs=BigInt(0);this.birthtimeMs=BigInt(0);this.atimeNs=BigInt(0);this.mtimeNs=BigInt(0);this.ctimeNs=BigInt(0);this.birthtimeNs=BigInt(0);this.atime=new Date(0);this.mtime=new Date(0);this.ctime=new Date(0);this.birthtime=new Date(0);this.dev=BigInt(0);this.ino=BigInt(0);this.mode=BigInt(Kh);this.nlink=BigInt(1);this.rdev=BigInt(0);this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(_n))===BigInt(Da)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(_n))===BigInt(Ra)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(_n))===BigInt(Fa)}};function Hh(){return new jA}function fge(){return RE(Hh())}function RE(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let t=r[e];typeof t=="number"?r[e]=0:typeof t=="bigint"?r[e]=BigInt(0):iQ.types.isDate(t)&&(r[e]=new Date(0))}return r}function FE(r){let e=new Uh;for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let i=r[t];typeof i=="number"?e[t]=BigInt(i):iQ.types.isDate(i)&&(e[t]=new Date(i))}return e.atimeNs=e.atimeMs*BigInt(1e6),e.mtimeNs=e.mtimeMs*BigInt(1e6),e.ctimeNs=e.ctimeMs*BigInt(1e6),e.birthtimeNs=e.birthtimeMs*BigInt(1e6),e}function nQ(r,e){if(r.atimeMs!==e.atimeMs||r.birthtimeMs!==e.birthtimeMs||r.blksize!==e.blksize||r.blocks!==e.blocks||r.ctimeMs!==e.ctimeMs||r.dev!==e.dev||r.gid!==e.gid||r.ino!==e.ino||r.isBlockDevice()!==e.isBlockDevice()||r.isCharacterDevice()!==e.isCharacterDevice()||r.isDirectory()!==e.isDirectory()||r.isFIFO()!==e.isFIFO()||r.isFile()!==e.isFile()||r.isSocket()!==e.isSocket()||r.isSymbolicLink()!==e.isSymbolicLink()||r.mode!==e.mode||r.mtimeMs!==e.mtimeMs||r.nlink!==e.nlink||r.rdev!==e.rdev||r.size!==e.size||r.uid!==e.uid)return!1;let t=r,i=e;return!(t.atimeNs!==i.atimeNs||t.mtimeNs!==i.mtimeNs||t.ctimeNs!==i.ctimeNs||t.birthtimeNs!==i.birthtimeNs)}var LE=ge(require("fs"));var jh=ge(require("path")),UO;(function(i){i[i.File=0]="File",i[i.Portable=1]="Portable",i[i.Native=2]="Native"})(UO||(UO={}));var Me={root:"/",dot:"."},kt={nodeModules:"node_modules",manifest:"package.json",lockfile:"yarn.lock",virtual:"__virtual__",pnpJs:".pnp.js",pnpCjs:".pnp.cjs",rc:".yarnrc.yml"},H=Object.create(jh.default),k=Object.create(jh.default.posix);H.cwd=()=>process.cwd();k.cwd=()=>sQ(process.cwd());k.resolve=(...r)=>r.length>0&&k.isAbsolute(r[0])?jh.default.posix.resolve(...r):jh.default.posix.resolve(k.cwd(),...r);var HO=function(r,e,t){return e=r.normalize(e),t=r.normalize(t),e===t?".":(e.endsWith(r.sep)||(e=e+r.sep),t.startsWith(e)?t.slice(e.length):null)};H.fromPortablePath=jO;H.toPortablePath=sQ;H.contains=(r,e)=>HO(H,r,e);k.contains=(r,e)=>HO(k,r,e);var hge=/^([a-zA-Z]:.*)$/,pge=/^\/\/(\.\/)?(.*)$/,dge=/^\/([a-zA-Z]:.*)$/,Cge=/^\/unc\/(\.dot\/)?(.*)$/;function jO(r){if(process.platform!=="win32")return r;let e,t;if(e=r.match(dge))r=e[1];else if(t=r.match(Cge))r=`\\\\${t[1]?".\\":""}${t[2]}`;else return r;return r.replace(/\//g,"\\")}function sQ(r){if(process.platform!=="win32")return r;r=r.replace(/\\/g,"/");let e,t;return(e=r.match(hge))?r=`/${e[1]}`:(t=r.match(pge))&&(r=`/unc/${t[1]?".dot/":""}${t[2]}`),r}function NE(r,e){return r===H?jO(e):sQ(e)}function Jr(r){if(H.parse(r).dir!==""||k.parse(r).dir!=="")throw new Error(`Invalid filename: "${r}"`);return r}var TE=new Date(tQ*1e3),Gh;(function(t){t.Allow="allow",t.ReadOnly="readOnly"})(Gh||(Gh={}));async function GO(r,e,t,i,n){let s=r.pathUtils.normalize(e),o=t.pathUtils.normalize(i),a=[],l=[],{atime:c,mtime:u}=n.stableTime?{atime:TE,mtime:TE}:await t.lstatPromise(o);await r.mkdirpPromise(r.pathUtils.dirname(e),{utimes:[c,u]});let g=typeof r.lutimesPromise=="function"?r.lutimesPromise.bind(r):r.utimesPromise.bind(r);await oQ(a,l,g,r,s,t,o,te(N({},n),{didParentExist:!0}));for(let f of a)await f();await Promise.all(l.map(f=>f()))}async function oQ(r,e,t,i,n,s,o,a){var h,p;let l=a.didParentExist?await mge(i,n):null,c=await s.lstatPromise(o),{atime:u,mtime:g}=a.stableTime?{atime:TE,mtime:TE}:c,f;switch(!0){case c.isDirectory():f=await Ege(r,e,t,i,n,l,s,o,c,a);break;case c.isFile():f=await Ige(r,e,t,i,n,l,s,o,c,a);break;case c.isSymbolicLink():f=await yge(r,e,t,i,n,l,s,o,c,a);break;default:throw new Error(`Unsupported file type (${c.mode})`)}return(f||((h=l==null?void 0:l.mtime)==null?void 0:h.getTime())!==g.getTime()||((p=l==null?void 0:l.atime)==null?void 0:p.getTime())!==u.getTime())&&(e.push(()=>t(n,u,g)),f=!0),(l===null||(l.mode&511)!=(c.mode&511))&&(e.push(()=>i.chmodPromise(n,c.mode&511)),f=!0),f}async function mge(r,e){try{return await r.lstatPromise(e)}catch(t){return null}}async function Ege(r,e,t,i,n,s,o,a,l,c){if(s!==null&&!s.isDirectory())if(c.overwrite)r.push(async()=>i.removePromise(n)),s=null;else return!1;let u=!1;s===null&&(r.push(async()=>{try{await i.mkdirPromise(n,{mode:l.mode})}catch(h){if(h.code!=="EEXIST")throw h}}),u=!0);let g=await o.readdirPromise(a),f=c.didParentExist&&!s?te(N({},c),{didParentExist:!1}):c;if(c.stableSort)for(let h of g.sort())await oQ(r,e,t,i,i.pathUtils.join(n,h),o,o.pathUtils.join(a,h),f)&&(u=!0);else(await Promise.all(g.map(async p=>{await oQ(r,e,t,i,i.pathUtils.join(n,p),o,o.pathUtils.join(a,p),f)}))).some(p=>p)&&(u=!0);return u}var aQ=new WeakMap;function AQ(r,e,t,i,n){return async()=>{await r.linkPromise(t,e),n===Gh.ReadOnly&&(i.mode&=~146,await r.chmodPromise(e,i.mode))}}function wge(r,e,t,i,n){let s=aQ.get(r);return typeof s=="undefined"?async()=>{try{await r.copyFilePromise(t,e,LE.default.constants.COPYFILE_FICLONE_FORCE),aQ.set(r,!0)}catch(o){if(o.code==="ENOSYS"||o.code==="ENOTSUP")aQ.set(r,!1),await AQ(r,e,t,i,n)();else throw o}}:s?async()=>r.copyFilePromise(t,e,LE.default.constants.COPYFILE_FICLONE_FORCE):AQ(r,e,t,i,n)}async function Ige(r,e,t,i,n,s,o,a,l,c){var f;if(s!==null)if(c.overwrite)r.push(async()=>i.removePromise(n)),s=null;else return!1;let u=(f=c.linkStrategy)!=null?f:null,g=i===o?u!==null?wge(i,n,a,l,u):async()=>i.copyFilePromise(a,n,LE.default.constants.COPYFILE_FICLONE):u!==null?AQ(i,n,a,l,u):async()=>i.writeFilePromise(n,await o.readFilePromise(a));return r.push(async()=>g()),!0}async function yge(r,e,t,i,n,s,o,a,l,c){if(s!==null)if(c.overwrite)r.push(async()=>i.removePromise(n)),s=null;else return!1;return r.push(async()=>{await i.symlinkPromise(NE(i.pathUtils,await o.readlinkPromise(a)),n)}),!0}function Es(r,e){return Object.assign(new Error(`${r}: ${e}`),{code:r})}function OE(r){return Es("EBUSY",r)}function Yh(r,e){return Es("ENOSYS",`${r}, ${e}`)}function GA(r){return Es("EINVAL",`invalid argument, ${r}`)}function Ai(r){return Es("EBADF",`bad file descriptor, ${r}`)}function io(r){return Es("ENOENT",`no such file or directory, ${r}`)}function Ro(r){return Es("ENOTDIR",`not a directory, ${r}`)}function qh(r){return Es("EISDIR",`illegal operation on a directory, ${r}`)}function ME(r){return Es("EEXIST",`file already exists, ${r}`)}function In(r){return Es("EROFS",`read-only filesystem, ${r}`)}function YO(r){return Es("ENOTEMPTY",`directory not empty, ${r}`)}function qO(r){return Es("EOPNOTSUPP",`operation not supported, ${r}`)}function JO(){return Es("ERR_DIR_CLOSED","Directory handle was closed")}var lQ=class extends Error{constructor(e,t){super(e);this.name="Libzip Error",this.code=t}};var WO=class{constructor(e,t,i={}){this.path=e;this.nextDirent=t;this.opts=i;this.closed=!1}throwIfClosed(){if(this.closed)throw JO()}async*[Symbol.asyncIterator](){try{let e;for(;(e=await this.read())!==null;)yield e}finally{await this.close()}}read(e){let t=this.readSync();return typeof e!="undefined"?e(null,t):Promise.resolve(t)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(e){return this.closeSync(),typeof e!="undefined"?e(null):Promise.resolve()}closeSync(){var e,t;this.throwIfClosed(),(t=(e=this.opts).onClose)==null||t.call(e),this.closed=!0}};function KE(r,e,t,i){let n=()=>{let s=t.shift();return typeof s=="undefined"?null:Object.assign(r.statSync(r.pathUtils.join(e,s)),{name:s})};return new WO(e,n,i)}var zO=ge(require("os"));var YA=class{constructor(e){this.pathUtils=e}async*genTraversePromise(e,{stableSort:t=!1}={}){let i=[e];for(;i.length>0;){let n=i.shift();if((await this.lstatPromise(n)).isDirectory()){let o=await this.readdirPromise(n);if(t)for(let a of o.sort())i.push(this.pathUtils.join(n,a));else throw new Error("Not supported")}else yield n}}async removePromise(e,{recursive:t=!0,maxRetries:i=5}={}){let n;try{n=await this.lstatPromise(e)}catch(s){if(s.code==="ENOENT")return;throw s}if(n.isDirectory()){if(t){let s=await this.readdirPromise(e);await Promise.all(s.map(o=>this.removePromise(this.pathUtils.resolve(e,o))))}for(let s=0;s<=i;s++)try{await this.rmdirPromise(e);break}catch(o){if(o.code!=="EBUSY"&&o.code!=="ENOTEMPTY")throw o;ssetTimeout(a,s*100))}}else await this.unlinkPromise(e)}removeSync(e,{recursive:t=!0}={}){let i;try{i=this.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;throw n}if(i.isDirectory()){if(t)for(let n of this.readdirSync(e))this.removeSync(this.pathUtils.resolve(e,n));this.rmdirSync(e)}else this.unlinkSync(e)}async mkdirpPromise(e,{chmod:t,utimes:i}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let n=e.split(this.pathUtils.sep),s;for(let o=2;o<=n.length;++o){let a=n.slice(0,o).join(this.pathUtils.sep);if(!this.existsSync(a)){try{await this.mkdirPromise(a)}catch(l){if(l.code==="EEXIST")continue;throw l}if(s!=null||(s=a),t!=null&&await this.chmodPromise(a,t),i!=null)await this.utimesPromise(a,i[0],i[1]);else{let l=await this.statPromise(this.pathUtils.dirname(a));await this.utimesPromise(a,l.atime,l.mtime)}}}return s}mkdirpSync(e,{chmod:t,utimes:i}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let n=e.split(this.pathUtils.sep),s;for(let o=2;o<=n.length;++o){let a=n.slice(0,o).join(this.pathUtils.sep);if(!this.existsSync(a)){try{this.mkdirSync(a)}catch(l){if(l.code==="EEXIST")continue;throw l}if(s!=null||(s=a),t!=null&&this.chmodSync(a,t),i!=null)this.utimesSync(a,i[0],i[1]);else{let l=this.statSync(this.pathUtils.dirname(a));this.utimesSync(a,l.atime,l.mtime)}}}return s}async copyPromise(e,t,{baseFs:i=this,overwrite:n=!0,stableSort:s=!1,stableTime:o=!1,linkStrategy:a=null}={}){return await GO(this,e,i,t,{overwrite:n,stableSort:s,stableTime:o,linkStrategy:a})}copySync(e,t,{baseFs:i=this,overwrite:n=!0}={}){let s=i.lstatSync(t),o=this.existsSync(e);if(s.isDirectory()){this.mkdirpSync(e);let l=i.readdirSync(t);for(let c of l)this.copySync(this.pathUtils.join(e,c),i.pathUtils.join(t,c),{baseFs:i,overwrite:n})}else if(s.isFile()){if(!o||n){o&&this.removeSync(e);let l=i.readFileSync(t);this.writeFileSync(e,l)}}else if(s.isSymbolicLink()){if(!o||n){o&&this.removeSync(e);let l=i.readlinkSync(t);this.symlinkSync(NE(this.pathUtils,l),e)}}else throw new Error(`Unsupported file type (file: ${t}, mode: 0o${s.mode.toString(8).padStart(6,"0")})`);let a=s.mode&511;this.chmodSync(e,a)}async changeFilePromise(e,t,i={}){return Buffer.isBuffer(t)?this.changeFileBufferPromise(e,t,i):this.changeFileTextPromise(e,t,i)}async changeFileBufferPromise(e,t,{mode:i}={}){let n=Buffer.alloc(0);try{n=await this.readFilePromise(e)}catch(s){}Buffer.compare(n,t)!==0&&await this.writeFilePromise(e,t,{mode:i})}async changeFileTextPromise(e,t,{automaticNewlines:i,mode:n}={}){let s="";try{s=await this.readFilePromise(e,"utf8")}catch(a){}let o=i?sc(s,t):t;s!==o&&await this.writeFilePromise(e,o,{mode:n})}changeFileSync(e,t,i={}){return Buffer.isBuffer(t)?this.changeFileBufferSync(e,t,i):this.changeFileTextSync(e,t,i)}changeFileBufferSync(e,t,{mode:i}={}){let n=Buffer.alloc(0);try{n=this.readFileSync(e)}catch(s){}Buffer.compare(n,t)!==0&&this.writeFileSync(e,t,{mode:i})}changeFileTextSync(e,t,{automaticNewlines:i=!1,mode:n}={}){let s="";try{s=this.readFileSync(e,"utf8")}catch(a){}let o=i?sc(s,t):t;s!==o&&this.writeFileSync(e,o,{mode:n})}async movePromise(e,t){try{await this.renamePromise(e,t)}catch(i){if(i.code==="EXDEV")await this.copyPromise(t,e),await this.removePromise(e);else throw i}}moveSync(e,t){try{this.renameSync(e,t)}catch(i){if(i.code==="EXDEV")this.copySync(t,e),this.removeSync(e);else throw i}}async lockPromise(e,t){let i=`${e}.flock`,n=1e3/60,s=Date.now(),o=null,a=async()=>{let l;try{[l]=await this.readJsonPromise(i)}catch(c){return Date.now()-s<500}try{return process.kill(l,0),!0}catch(c){return!1}};for(;o===null;)try{o=await this.openPromise(i,"wx")}catch(l){if(l.code==="EEXIST"){if(!await a())try{await this.unlinkPromise(i);continue}catch(c){}if(Date.now()-s<60*1e3)await new Promise(c=>setTimeout(c,n));else throw new Error(`Couldn't acquire a lock in a reasonable time (via ${i})`)}else throw l}await this.writePromise(o,JSON.stringify([process.pid]));try{return await t()}finally{try{await this.closePromise(o),await this.unlinkPromise(i)}catch(l){}}}async readJsonPromise(e){let t=await this.readFilePromise(e,"utf8");try{return JSON.parse(t)}catch(i){throw i.message+=` (in ${e})`,i}}readJsonSync(e){let t=this.readFileSync(e,"utf8");try{return JSON.parse(t)}catch(i){throw i.message+=` (in ${e})`,i}}async writeJsonPromise(e,t){return await this.writeFilePromise(e,`${JSON.stringify(t,null,2)} +`)}writeJsonSync(e,t){return this.writeFileSync(e,`${JSON.stringify(t,null,2)} +`)}async preserveTimePromise(e,t){let i=await this.lstatPromise(e),n=await t();typeof n!="undefined"&&(e=n),this.lutimesPromise?await this.lutimesPromise(e,i.atime,i.mtime):i.isSymbolicLink()||await this.utimesPromise(e,i.atime,i.mtime)}async preserveTimeSync(e,t){let i=this.lstatSync(e),n=t();typeof n!="undefined"&&(e=n),this.lutimesSync?this.lutimesSync(e,i.atime,i.mtime):i.isSymbolicLink()||this.utimesSync(e,i.atime,i.mtime)}},oc=class extends YA{constructor(){super(k)}};function Bge(r){let e=r.match(/\r?\n/g);if(e===null)return zO.EOL;let t=e.filter(n=>n===`\r +`).length,i=e.length-t;return t>i?`\r +`:` +`}function sc(r,e){return e.replace(/\r?\n/g,Bge(r))}var zu=ge(require("fs")),cQ=ge(require("stream")),ZO=ge(require("util")),uQ=ge(require("zlib"));var _O=ge(require("fs"));var ar=class extends oc{constructor(e=_O.default){super();this.realFs=e,typeof this.realFs.lutimes!="undefined"&&(this.lutimesPromise=this.lutimesPromiseImpl,this.lutimesSync=this.lutimesSyncImpl)}getExtractHint(){return!1}getRealPath(){return Me.root}resolve(e){return k.resolve(e)}async openPromise(e,t,i){return await new Promise((n,s)=>{this.realFs.open(H.fromPortablePath(e),t,i,this.makeCallback(n,s))})}openSync(e,t,i){return this.realFs.openSync(H.fromPortablePath(e),t,i)}async opendirPromise(e,t){return await new Promise((i,n)=>{typeof t!="undefined"?this.realFs.opendir(H.fromPortablePath(e),t,this.makeCallback(i,n)):this.realFs.opendir(H.fromPortablePath(e),this.makeCallback(i,n))}).then(i=>Object.defineProperty(i,"path",{value:e,configurable:!0,writable:!0}))}opendirSync(e,t){let i=typeof t!="undefined"?this.realFs.opendirSync(H.fromPortablePath(e),t):this.realFs.opendirSync(H.fromPortablePath(e));return Object.defineProperty(i,"path",{value:e,configurable:!0,writable:!0})}async readPromise(e,t,i=0,n=0,s=-1){return await new Promise((o,a)=>{this.realFs.read(e,t,i,n,s,(l,c)=>{l?a(l):o(c)})})}readSync(e,t,i,n,s){return this.realFs.readSync(e,t,i,n,s)}async writePromise(e,t,i,n,s){return await new Promise((o,a)=>typeof t=="string"?this.realFs.write(e,t,i,this.makeCallback(o,a)):this.realFs.write(e,t,i,n,s,this.makeCallback(o,a)))}writeSync(e,t,i,n,s){return typeof t=="string"?this.realFs.writeSync(e,t,i):this.realFs.writeSync(e,t,i,n,s)}async closePromise(e){await new Promise((t,i)=>{this.realFs.close(e,this.makeCallback(t,i))})}closeSync(e){this.realFs.closeSync(e)}createReadStream(e,t){let i=e!==null?H.fromPortablePath(e):e;return this.realFs.createReadStream(i,t)}createWriteStream(e,t){let i=e!==null?H.fromPortablePath(e):e;return this.realFs.createWriteStream(i,t)}async realpathPromise(e){return await new Promise((t,i)=>{this.realFs.realpath(H.fromPortablePath(e),{},this.makeCallback(t,i))}).then(t=>H.toPortablePath(t))}realpathSync(e){return H.toPortablePath(this.realFs.realpathSync(H.fromPortablePath(e),{}))}async existsPromise(e){return await new Promise(t=>{this.realFs.exists(H.fromPortablePath(e),t)})}accessSync(e,t){return this.realFs.accessSync(H.fromPortablePath(e),t)}async accessPromise(e,t){return await new Promise((i,n)=>{this.realFs.access(H.fromPortablePath(e),t,this.makeCallback(i,n))})}existsSync(e){return this.realFs.existsSync(H.fromPortablePath(e))}async statPromise(e,t){return await new Promise((i,n)=>{t?this.realFs.stat(H.fromPortablePath(e),t,this.makeCallback(i,n)):this.realFs.stat(H.fromPortablePath(e),this.makeCallback(i,n))})}statSync(e,t){return t?this.realFs.statSync(H.fromPortablePath(e),t):this.realFs.statSync(H.fromPortablePath(e))}async fstatPromise(e,t){return await new Promise((i,n)=>{t?this.realFs.fstat(e,t,this.makeCallback(i,n)):this.realFs.fstat(e,this.makeCallback(i,n))})}fstatSync(e,t){return t?this.realFs.fstatSync(e,t):this.realFs.fstatSync(e)}async lstatPromise(e,t){return await new Promise((i,n)=>{t?this.realFs.lstat(H.fromPortablePath(e),t,this.makeCallback(i,n)):this.realFs.lstat(H.fromPortablePath(e),this.makeCallback(i,n))})}lstatSync(e,t){return t?this.realFs.lstatSync(H.fromPortablePath(e),t):this.realFs.lstatSync(H.fromPortablePath(e))}async fchmodPromise(e,t){return await new Promise((i,n)=>{this.realFs.fchmod(e,t,this.makeCallback(i,n))})}fchmodSync(e,t){return this.realFs.fchmodSync(e,t)}async chmodPromise(e,t){return await new Promise((i,n)=>{this.realFs.chmod(H.fromPortablePath(e),t,this.makeCallback(i,n))})}chmodSync(e,t){return this.realFs.chmodSync(H.fromPortablePath(e),t)}async chownPromise(e,t,i){return await new Promise((n,s)=>{this.realFs.chown(H.fromPortablePath(e),t,i,this.makeCallback(n,s))})}chownSync(e,t,i){return this.realFs.chownSync(H.fromPortablePath(e),t,i)}async renamePromise(e,t){return await new Promise((i,n)=>{this.realFs.rename(H.fromPortablePath(e),H.fromPortablePath(t),this.makeCallback(i,n))})}renameSync(e,t){return this.realFs.renameSync(H.fromPortablePath(e),H.fromPortablePath(t))}async copyFilePromise(e,t,i=0){return await new Promise((n,s)=>{this.realFs.copyFile(H.fromPortablePath(e),H.fromPortablePath(t),i,this.makeCallback(n,s))})}copyFileSync(e,t,i=0){return this.realFs.copyFileSync(H.fromPortablePath(e),H.fromPortablePath(t),i)}async appendFilePromise(e,t,i){return await new Promise((n,s)=>{let o=typeof e=="string"?H.fromPortablePath(e):e;i?this.realFs.appendFile(o,t,i,this.makeCallback(n,s)):this.realFs.appendFile(o,t,this.makeCallback(n,s))})}appendFileSync(e,t,i){let n=typeof e=="string"?H.fromPortablePath(e):e;i?this.realFs.appendFileSync(n,t,i):this.realFs.appendFileSync(n,t)}async writeFilePromise(e,t,i){return await new Promise((n,s)=>{let o=typeof e=="string"?H.fromPortablePath(e):e;i?this.realFs.writeFile(o,t,i,this.makeCallback(n,s)):this.realFs.writeFile(o,t,this.makeCallback(n,s))})}writeFileSync(e,t,i){let n=typeof e=="string"?H.fromPortablePath(e):e;i?this.realFs.writeFileSync(n,t,i):this.realFs.writeFileSync(n,t)}async unlinkPromise(e){return await new Promise((t,i)=>{this.realFs.unlink(H.fromPortablePath(e),this.makeCallback(t,i))})}unlinkSync(e){return this.realFs.unlinkSync(H.fromPortablePath(e))}async utimesPromise(e,t,i){return await new Promise((n,s)=>{this.realFs.utimes(H.fromPortablePath(e),t,i,this.makeCallback(n,s))})}utimesSync(e,t,i){this.realFs.utimesSync(H.fromPortablePath(e),t,i)}async lutimesPromiseImpl(e,t,i){let n=this.realFs.lutimes;if(typeof n=="undefined")throw Yh("unavailable Node binding",`lutimes '${e}'`);return await new Promise((s,o)=>{n.call(this.realFs,H.fromPortablePath(e),t,i,this.makeCallback(s,o))})}lutimesSyncImpl(e,t,i){let n=this.realFs.lutimesSync;if(typeof n=="undefined")throw Yh("unavailable Node binding",`lutimes '${e}'`);n.call(this.realFs,H.fromPortablePath(e),t,i)}async mkdirPromise(e,t){return await new Promise((i,n)=>{this.realFs.mkdir(H.fromPortablePath(e),t,this.makeCallback(i,n))})}mkdirSync(e,t){return this.realFs.mkdirSync(H.fromPortablePath(e),t)}async rmdirPromise(e,t){return await new Promise((i,n)=>{t?this.realFs.rmdir(H.fromPortablePath(e),t,this.makeCallback(i,n)):this.realFs.rmdir(H.fromPortablePath(e),this.makeCallback(i,n))})}rmdirSync(e,t){return this.realFs.rmdirSync(H.fromPortablePath(e),t)}async linkPromise(e,t){return await new Promise((i,n)=>{this.realFs.link(H.fromPortablePath(e),H.fromPortablePath(t),this.makeCallback(i,n))})}linkSync(e,t){return this.realFs.linkSync(H.fromPortablePath(e),H.fromPortablePath(t))}async symlinkPromise(e,t,i){return await new Promise((n,s)=>{this.realFs.symlink(H.fromPortablePath(e.replace(/\/+$/,"")),H.fromPortablePath(t),i,this.makeCallback(n,s))})}symlinkSync(e,t,i){return this.realFs.symlinkSync(H.fromPortablePath(e.replace(/\/+$/,"")),H.fromPortablePath(t),i)}async readFilePromise(e,t){return await new Promise((i,n)=>{let s=typeof e=="string"?H.fromPortablePath(e):e;this.realFs.readFile(s,t,this.makeCallback(i,n))})}readFileSync(e,t){let i=typeof e=="string"?H.fromPortablePath(e):e;return this.realFs.readFileSync(i,t)}async readdirPromise(e,t){return await new Promise((i,n)=>{(t==null?void 0:t.withFileTypes)?this.realFs.readdir(H.fromPortablePath(e),{withFileTypes:!0},this.makeCallback(i,n)):this.realFs.readdir(H.fromPortablePath(e),this.makeCallback(s=>i(s),n))})}readdirSync(e,t){return(t==null?void 0:t.withFileTypes)?this.realFs.readdirSync(H.fromPortablePath(e),{withFileTypes:!0}):this.realFs.readdirSync(H.fromPortablePath(e))}async readlinkPromise(e){return await new Promise((t,i)=>{this.realFs.readlink(H.fromPortablePath(e),this.makeCallback(t,i))}).then(t=>H.toPortablePath(t))}readlinkSync(e){return H.toPortablePath(this.realFs.readlinkSync(H.fromPortablePath(e)))}async truncatePromise(e,t){return await new Promise((i,n)=>{this.realFs.truncate(H.fromPortablePath(e),t,this.makeCallback(i,n))})}truncateSync(e,t){return this.realFs.truncateSync(H.fromPortablePath(e),t)}async ftruncatePromise(e,t){return await new Promise((i,n)=>{this.realFs.ftruncate(e,t,this.makeCallback(i,n))})}ftruncateSync(e,t){return this.realFs.ftruncateSync(e,t)}watch(e,t,i){return this.realFs.watch(H.fromPortablePath(e),t,i)}watchFile(e,t,i){return this.realFs.watchFile(H.fromPortablePath(e),t,i)}unwatchFile(e,t){return this.realFs.unwatchFile(H.fromPortablePath(e),t)}makeCallback(e,t){return(i,n)=>{i?t(i):e(n)}}};var VO=ge(require("events"));var ac;(function(t){t.Change="change",t.Stop="stop"})(ac||(ac={}));var Ac;(function(i){i.Ready="ready",i.Running="running",i.Stopped="stopped"})(Ac||(Ac={}));function XO(r,e){if(r!==e)throw new Error(`Invalid StatWatcher status: expected '${e}', got '${r}'`)}var Jh=class extends VO.EventEmitter{constructor(e,t,{bigint:i=!1}={}){super();this.status=Ac.Ready;this.changeListeners=new Map;this.startTimeout=null;this.fakeFs=e,this.path=t,this.bigint=i,this.lastStats=this.stat()}static create(e,t,i){let n=new Jh(e,t,i);return n.start(),n}start(){XO(this.status,Ac.Ready),this.status=Ac.Running,this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.fakeFs.existsSync(this.path)||this.emit(ac.Change,this.lastStats,this.lastStats)},3)}stop(){XO(this.status,Ac.Running),this.status=Ac.Stopped,this.startTimeout!==null&&(clearTimeout(this.startTimeout),this.startTimeout=null),this.emit(ac.Stop)}stat(){try{return this.fakeFs.statSync(this.path,{bigint:this.bigint})}catch(e){let t=this.bigint?new Uh:new jA;return RE(t)}}makeInterval(e){let t=setInterval(()=>{let i=this.stat(),n=this.lastStats;nQ(i,n)||(this.lastStats=i,this.emit(ac.Change,i,n))},e.interval);return e.persistent?t:t.unref()}registerChangeListener(e,t){this.addListener(ac.Change,e),this.changeListeners.set(e,this.makeInterval(t))}unregisterChangeListener(e){this.removeListener(ac.Change,e);let t=this.changeListeners.get(e);typeof t!="undefined"&&clearInterval(t),this.changeListeners.delete(e)}unregisterAllChangeListeners(){for(let e of this.changeListeners.keys())this.unregisterChangeListener(e)}hasChangeListeners(){return this.changeListeners.size>0}ref(){for(let e of this.changeListeners.values())e.ref();return this}unref(){for(let e of this.changeListeners.values())e.unref();return this}};var UE=new WeakMap;function HE(r,e,t,i){let n,s,o,a;switch(typeof t){case"function":n=!1,s=!0,o=5007,a=t;break;default:({bigint:n=!1,persistent:s=!0,interval:o=5007}=t),a=i;break}let l=UE.get(r);typeof l=="undefined"&&UE.set(r,l=new Map);let c=l.get(e);return typeof c=="undefined"&&(c=Jh.create(r,e,{bigint:n}),l.set(e,c)),c.registerChangeListener(a,{persistent:s,interval:o}),c}function Wh(r,e,t){let i=UE.get(r);if(typeof i=="undefined")return;let n=i.get(e);typeof n!="undefined"&&(typeof t=="undefined"?n.unregisterAllChangeListeners():n.unregisterChangeListener(t),n.hasChangeListeners()||(n.stop(),i.delete(e)))}function zh(r){let e=UE.get(r);if(typeof e!="undefined")for(let t of e.keys())Wh(r,t)}var lc="mixed";function bge(r){if(typeof r=="string"&&String(+r)===r)return+r;if(Number.isFinite(r))return r<0?Date.now()/1e3:r;if(ZO.types.isDate(r))return r.getTime()/1e3;throw new Error("Invalid time")}function $O(){return Buffer.from([80,75,5,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}var li=class extends oc{constructor(e,t){super();this.lzSource=null;this.listings=new Map;this.entries=new Map;this.fileSources=new Map;this.fds=new Map;this.nextFd=0;this.ready=!1;this.readOnly=!1;this.libzip=t.libzip;let i=t;if(this.level=typeof i.level!="undefined"?i.level:lc,e!=null||(e=$O()),typeof e=="string"){let{baseFs:o=new ar}=i;this.baseFs=o,this.path=e}else this.path=null,this.baseFs=null;if(t.stats)this.stats=t.stats;else if(typeof e=="string")try{this.stats=this.baseFs.statSync(e)}catch(o){if(o.code==="ENOENT"&&i.create)this.stats=Hh();else throw o}else this.stats=Hh();let n=this.libzip.malloc(4);try{let o=0;if(typeof e=="string"&&i.create&&(o|=this.libzip.ZIP_CREATE|this.libzip.ZIP_TRUNCATE),t.readOnly&&(o|=this.libzip.ZIP_RDONLY,this.readOnly=!0),typeof e=="string")this.zip=this.libzip.open(H.fromPortablePath(e),o,n);else{let a=this.allocateUnattachedSource(e);try{this.zip=this.libzip.openFromSource(a,o,n),this.lzSource=a}catch(l){throw this.libzip.source.free(a),l}}if(this.zip===0){let a=this.libzip.struct.errorS();throw this.libzip.error.initWithCode(a,this.libzip.getValue(n,"i32")),this.makeLibzipError(a)}}finally{this.libzip.free(n)}this.listings.set(Me.root,new Set);let s=this.libzip.getNumEntries(this.zip,0);for(let o=0;oe)throw new Error("Overread");let n=this.libzip.HEAPU8.subarray(t,t+e);return Buffer.from(n)}finally{this.libzip.free(t)}}finally{this.libzip.source.close(this.lzSource),this.libzip.source.free(this.lzSource),this.ready=!1}}prepareClose(){if(!this.ready)throw OE("archive closed, close");zh(this)}saveAndClose(){if(!this.path||!this.baseFs)throw new Error("ZipFS cannot be saved and must be discarded when loaded from a buffer");if(this.prepareClose(),this.readOnly){this.discardAndClose();return}let e=this.baseFs.existsSync(this.path)||this.stats.mode===Kh?void 0:this.stats.mode;if(this.entries.size===0)this.discardAndClose(),this.baseFs.writeFileSync(this.path,$O(),{mode:e});else{if(this.libzip.close(this.zip)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));typeof e!="undefined"&&this.baseFs.chmodSync(this.path,e)}this.ready=!1}discardAndClose(){this.prepareClose(),this.libzip.discard(this.zip),this.ready=!1}resolve(e){return k.resolve(Me.root,e)}async openPromise(e,t,i){return this.openSync(e,t,i)}openSync(e,t,i){let n=this.nextFd++;return this.fds.set(n,{cursor:0,p:e}),n}hasOpenFileHandles(){return!!this.fds.size}async opendirPromise(e,t){return this.opendirSync(e,t)}opendirSync(e,t={}){let i=this.resolveFilename(`opendir '${e}'`,e);if(!this.entries.has(i)&&!this.listings.has(i))throw io(`opendir '${e}'`);let n=this.listings.get(i);if(!n)throw Ro(`opendir '${e}'`);let s=[...n],o=this.openSync(i,"r");return KE(this,i,s,{onClose:()=>{this.closeSync(o)}})}async readPromise(e,t,i,n,s){return this.readSync(e,t,i,n,s)}readSync(e,t,i=0,n=t.byteLength,s=-1){let o=this.fds.get(e);if(typeof o=="undefined")throw Ai("read");let a=s===-1||s===null?o.cursor:s,l=this.readFileSync(o.p);l.copy(t,i,a,a+n);let c=Math.max(0,Math.min(l.length-a,n));return(s===-1||s===null)&&(o.cursor+=c),c}async writePromise(e,t,i,n,s){return typeof t=="string"?this.writeSync(e,t,s):this.writeSync(e,t,i,n,s)}writeSync(e,t,i,n,s){throw typeof this.fds.get(e)=="undefined"?Ai("read"):new Error("Unimplemented")}async closePromise(e){return this.closeSync(e)}closeSync(e){if(typeof this.fds.get(e)=="undefined")throw Ai("read");this.fds.delete(e)}createReadStream(e,{encoding:t}={}){if(e===null)throw new Error("Unimplemented");let i=this.openSync(e,"r"),n=Object.assign(new cQ.PassThrough({emitClose:!0,autoDestroy:!0,destroy:(o,a)=>{clearImmediate(s),this.closeSync(i),a(o)}}),{close(){n.destroy()},bytesRead:0,path:e}),s=setImmediate(async()=>{try{let o=await this.readFilePromise(e,t);n.bytesRead=o.length,n.end(o)}catch(o){n.destroy(o)}});return n}createWriteStream(e,{encoding:t}={}){if(this.readOnly)throw In(`open '${e}'`);if(e===null)throw new Error("Unimplemented");let i=[],n=this.openSync(e,"w"),s=Object.assign(new cQ.PassThrough({autoDestroy:!0,emitClose:!0,destroy:(o,a)=>{try{o?a(o):(this.writeFileSync(e,Buffer.concat(i),t),a(null))}catch(l){a(l)}finally{this.closeSync(n)}}}),{bytesWritten:0,path:e,close(){s.destroy()}});return s.on("data",o=>{let a=Buffer.from(o);s.bytesWritten+=a.length,i.push(a)}),s}async realpathPromise(e){return this.realpathSync(e)}realpathSync(e){let t=this.resolveFilename(`lstat '${e}'`,e);if(!this.entries.has(t)&&!this.listings.has(t))throw io(`lstat '${e}'`);return t}async existsPromise(e){return this.existsSync(e)}existsSync(e){if(!this.ready)throw OE(`archive closed, existsSync '${e}'`);if(this.symlinkCount===0){let i=k.resolve(Me.root,e);return this.entries.has(i)||this.listings.has(i)}let t;try{t=this.resolveFilename(`stat '${e}'`,e,void 0,!1)}catch(i){return!1}return t===void 0?!1:this.entries.has(t)||this.listings.has(t)}async accessPromise(e,t){return this.accessSync(e,t)}accessSync(e,t=zu.constants.F_OK){let i=this.resolveFilename(`access '${e}'`,e);if(!this.entries.has(i)&&!this.listings.has(i))throw io(`access '${e}'`);if(this.readOnly&&t&zu.constants.W_OK)throw In(`access '${e}'`)}async statPromise(e,t={bigint:!1}){return t.bigint?this.statSync(e,{bigint:!0}):this.statSync(e)}statSync(e,t={bigint:!1,throwIfNoEntry:!0}){let i=this.resolveFilename(`stat '${e}'`,e,void 0,t.throwIfNoEntry);if(i!==void 0){if(!this.entries.has(i)&&!this.listings.has(i)){if(t.throwIfNoEntry===!1)return;throw io(`stat '${e}'`)}if(e[e.length-1]==="/"&&!this.listings.has(i))throw Ro(`stat '${e}'`);return this.statImpl(`stat '${e}'`,i,t)}}async fstatPromise(e,t){return this.fstatSync(e,t)}fstatSync(e,t){let i=this.fds.get(e);if(typeof i=="undefined")throw Ai("fstatSync");let{p:n}=i,s=this.resolveFilename(`stat '${n}'`,n);if(!this.entries.has(s)&&!this.listings.has(s))throw io(`stat '${n}'`);if(n[n.length-1]==="/"&&!this.listings.has(s))throw Ro(`stat '${n}'`);return this.statImpl(`fstat '${n}'`,s,t)}async lstatPromise(e,t={bigint:!1}){return t.bigint?this.lstatSync(e,{bigint:!0}):this.lstatSync(e)}lstatSync(e,t={bigint:!1,throwIfNoEntry:!0}){let i=this.resolveFilename(`lstat '${e}'`,e,!1,t.throwIfNoEntry);if(i!==void 0){if(!this.entries.has(i)&&!this.listings.has(i)){if(t.throwIfNoEntry===!1)return;throw io(`lstat '${e}'`)}if(e[e.length-1]==="/"&&!this.listings.has(i))throw Ro(`lstat '${e}'`);return this.statImpl(`lstat '${e}'`,i,t)}}statImpl(e,t,i={}){let n=this.entries.get(t);if(typeof n!="undefined"){let s=this.libzip.struct.statS();if(this.libzip.statIndex(this.zip,n,0,0,s)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));let a=this.stats.uid,l=this.stats.gid,c=this.libzip.struct.statSize(s)>>>0,u=512,g=Math.ceil(c/u),f=(this.libzip.struct.statMtime(s)>>>0)*1e3,h=f,p=f,m=f,y=new Date(h),b=new Date(p),v=new Date(m),x=new Date(f),T=this.listings.has(t)?Da:this.isSymbolicLink(n)?Fa:Ra,q=T===Da?493:420,Y=T|this.getUnixMode(n,q)&511,$=this.libzip.struct.statCrc(s),_=Object.assign(new jA,{uid:a,gid:l,size:c,blksize:u,blocks:g,atime:y,birthtime:b,ctime:v,mtime:x,atimeMs:h,birthtimeMs:p,ctimeMs:m,mtimeMs:f,mode:Y,crc:$});return i.bigint===!0?FE(_):_}if(this.listings.has(t)){let s=this.stats.uid,o=this.stats.gid,a=0,l=512,c=0,u=this.stats.mtimeMs,g=this.stats.mtimeMs,f=this.stats.mtimeMs,h=this.stats.mtimeMs,p=new Date(u),m=new Date(g),y=new Date(f),b=new Date(h),v=Da|493,x=0,T=Object.assign(new jA,{uid:s,gid:o,size:a,blksize:l,blocks:c,atime:p,birthtime:m,ctime:y,mtime:b,atimeMs:u,birthtimeMs:g,ctimeMs:f,mtimeMs:h,mode:v,crc:x});return i.bigint===!0?FE(T):T}throw new Error("Unreachable")}getUnixMode(e,t){if(this.libzip.file.getExternalAttributes(this.zip,e,0,0,this.libzip.uint08S,this.libzip.uint32S)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));return this.libzip.getValue(this.libzip.uint08S,"i8")>>>0!==this.libzip.ZIP_OPSYS_UNIX?t:this.libzip.getValue(this.libzip.uint32S,"i32")>>>16}registerListing(e){let t=this.listings.get(e);if(t)return t;this.registerListing(k.dirname(e)).add(k.basename(e));let n=new Set;return this.listings.set(e,n),n}registerEntry(e,t){this.registerListing(k.dirname(e)).add(k.basename(e)),this.entries.set(e,t)}unregisterListing(e){this.listings.delete(e);let t=this.listings.get(k.dirname(e));t==null||t.delete(k.basename(e))}unregisterEntry(e){this.unregisterListing(e);let t=this.entries.get(e);this.entries.delete(e),typeof t!="undefined"&&(this.fileSources.delete(t),this.isSymbolicLink(t)&&this.symlinkCount--)}deleteEntry(e,t){if(this.unregisterEntry(e),this.libzip.delete(this.zip,t)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip))}resolveFilename(e,t,i=!0,n=!0){if(!this.ready)throw OE(`archive closed, ${e}`);let s=k.resolve(Me.root,t);if(s==="/")return Me.root;let o=this.entries.get(s);if(i&&o!==void 0)if(this.symlinkCount!==0&&this.isSymbolicLink(o)){let a=this.getFileSource(o).toString();return this.resolveFilename(e,k.resolve(k.dirname(s),a),!0,n)}else return s;for(;;){let a=this.resolveFilename(e,k.dirname(s),!0,n);if(a===void 0)return a;let l=this.listings.has(a),c=this.entries.has(a);if(!l&&!c){if(n===!1)return;throw io(e)}if(!l)throw Ro(e);if(s=k.resolve(a,k.basename(s)),!i||this.symlinkCount===0)break;let u=this.libzip.name.locate(this.zip,s.slice(1));if(u===-1)break;if(this.isSymbolicLink(u)){let g=this.getFileSource(u).toString();s=k.resolve(k.dirname(s),g)}else break}return s}allocateBuffer(e){Buffer.isBuffer(e)||(e=Buffer.from(e));let t=this.libzip.malloc(e.byteLength);if(!t)throw new Error("Couldn't allocate enough memory");return new Uint8Array(this.libzip.HEAPU8.buffer,t,e.byteLength).set(e),{buffer:t,byteLength:e.byteLength}}allocateUnattachedSource(e){let t=this.libzip.struct.errorS(),{buffer:i,byteLength:n}=this.allocateBuffer(e),s=this.libzip.source.fromUnattachedBuffer(i,n,0,!0,t);if(s===0)throw this.libzip.free(t),this.makeLibzipError(t);return s}allocateSource(e){let{buffer:t,byteLength:i}=this.allocateBuffer(e),n=this.libzip.source.fromBuffer(this.zip,t,i,0,!0);if(n===0)throw this.libzip.free(t),this.makeLibzipError(this.libzip.getError(this.zip));return n}setFileSource(e,t){let i=Buffer.isBuffer(t)?t:Buffer.from(t),n=k.relative(Me.root,e),s=this.allocateSource(t);try{let o=this.libzip.file.add(this.zip,n,s,this.libzip.ZIP_FL_OVERWRITE);if(o===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));if(this.level!=="mixed"){let a=this.level===0?this.libzip.ZIP_CM_STORE:this.libzip.ZIP_CM_DEFLATE;if(this.libzip.file.setCompression(this.zip,o,0,a,this.level)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip))}return this.fileSources.set(o,i),o}catch(o){throw this.libzip.source.free(s),o}}isSymbolicLink(e){if(this.symlinkCount===0)return!1;if(this.libzip.file.getExternalAttributes(this.zip,e,0,0,this.libzip.uint08S,this.libzip.uint32S)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));return this.libzip.getValue(this.libzip.uint08S,"i8")>>>0!==this.libzip.ZIP_OPSYS_UNIX?!1:(this.libzip.getValue(this.libzip.uint32S,"i32")>>>16&_n)===Fa}getFileSource(e,t={asyncDecompress:!1}){let i=this.fileSources.get(e);if(typeof i!="undefined")return i;let n=this.libzip.struct.statS();if(this.libzip.statIndex(this.zip,e,0,0,n)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));let o=this.libzip.struct.statCompSize(n),a=this.libzip.struct.statCompMethod(n),l=this.libzip.malloc(o);try{let c=this.libzip.fopenIndex(this.zip,e,0,this.libzip.ZIP_FL_COMPRESSED);if(c===0)throw this.makeLibzipError(this.libzip.getError(this.zip));try{let u=this.libzip.fread(c,l,o,0);if(u===-1)throw this.makeLibzipError(this.libzip.file.getError(c));if(uo)throw new Error("Overread");let g=this.libzip.HEAPU8.subarray(l,l+o),f=Buffer.from(g);if(a===0)return this.fileSources.set(e,f),f;if(t.asyncDecompress)return new Promise((h,p)=>{uQ.default.inflateRaw(f,(m,y)=>{m?p(m):(this.fileSources.set(e,y),h(y))})});{let h=uQ.default.inflateRawSync(f);return this.fileSources.set(e,h),h}}finally{this.libzip.fclose(c)}}finally{this.libzip.free(l)}}async fchmodPromise(e,t){return this.chmodPromise(this.fdToPath(e,"fchmod"),t)}fchmodSync(e,t){return this.chmodSync(this.fdToPath(e,"fchmodSync"),t)}async chmodPromise(e,t){return this.chmodSync(e,t)}chmodSync(e,t){if(this.readOnly)throw In(`chmod '${e}'`);t&=493;let i=this.resolveFilename(`chmod '${e}'`,e,!1),n=this.entries.get(i);if(typeof n=="undefined")throw new Error(`Assertion failed: The entry should have been registered (${i})`);let o=this.getUnixMode(n,Ra|0)&~511|t;if(this.libzip.file.setExternalAttributes(this.zip,n,0,0,this.libzip.ZIP_OPSYS_UNIX,o<<16)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip))}async chownPromise(e,t,i){return this.chownSync(e,t,i)}chownSync(e,t,i){throw new Error("Unimplemented")}async renamePromise(e,t){return this.renameSync(e,t)}renameSync(e,t){throw new Error("Unimplemented")}async copyFilePromise(e,t,i){let{indexSource:n,indexDest:s,resolvedDestP:o}=this.prepareCopyFile(e,t,i),a=await this.getFileSource(n,{asyncDecompress:!0}),l=this.setFileSource(o,a);l!==s&&this.registerEntry(o,l)}copyFileSync(e,t,i=0){let{indexSource:n,indexDest:s,resolvedDestP:o}=this.prepareCopyFile(e,t,i),a=this.getFileSource(n),l=this.setFileSource(o,a);l!==s&&this.registerEntry(o,l)}prepareCopyFile(e,t,i=0){if(this.readOnly)throw In(`copyfile '${e} -> '${t}'`);if((i&zu.constants.COPYFILE_FICLONE_FORCE)!=0)throw Yh("unsupported clone operation",`copyfile '${e}' -> ${t}'`);let n=this.resolveFilename(`copyfile '${e} -> ${t}'`,e),s=this.entries.get(n);if(typeof s=="undefined")throw GA(`copyfile '${e}' -> '${t}'`);let o=this.resolveFilename(`copyfile '${e}' -> ${t}'`,t),a=this.entries.get(o);if((i&(zu.constants.COPYFILE_EXCL|zu.constants.COPYFILE_FICLONE_FORCE))!=0&&typeof a!="undefined")throw ME(`copyfile '${e}' -> '${t}'`);return{indexSource:s,resolvedDestP:o,indexDest:a}}async appendFilePromise(e,t,i){if(this.readOnly)throw In(`open '${e}'`);return typeof i=="undefined"?i={flag:"a"}:typeof i=="string"?i={flag:"a",encoding:i}:typeof i.flag=="undefined"&&(i=N({flag:"a"},i)),this.writeFilePromise(e,t,i)}appendFileSync(e,t,i={}){if(this.readOnly)throw In(`open '${e}'`);return typeof i=="undefined"?i={flag:"a"}:typeof i=="string"?i={flag:"a",encoding:i}:typeof i.flag=="undefined"&&(i=N({flag:"a"},i)),this.writeFileSync(e,t,i)}fdToPath(e,t){var n;let i=(n=this.fds.get(e))==null?void 0:n.p;if(typeof i=="undefined")throw Ai(t);return i}async writeFilePromise(e,t,i){let{encoding:n,mode:s,index:o,resolvedP:a}=this.prepareWriteFile(e,i);o!==void 0&&typeof i=="object"&&i.flag&&i.flag.includes("a")&&(t=Buffer.concat([await this.getFileSource(o,{asyncDecompress:!0}),Buffer.from(t)])),n!==null&&(t=t.toString(n));let l=this.setFileSource(a,t);l!==o&&this.registerEntry(a,l),s!==null&&await this.chmodPromise(a,s)}writeFileSync(e,t,i){let{encoding:n,mode:s,index:o,resolvedP:a}=this.prepareWriteFile(e,i);o!==void 0&&typeof i=="object"&&i.flag&&i.flag.includes("a")&&(t=Buffer.concat([this.getFileSource(o),Buffer.from(t)])),n!==null&&(t=t.toString(n));let l=this.setFileSource(a,t);l!==o&&this.registerEntry(a,l),s!==null&&this.chmodSync(a,s)}prepareWriteFile(e,t){if(typeof e=="number"&&(e=this.fdToPath(e,"read")),this.readOnly)throw In(`open '${e}'`);let i=this.resolveFilename(`open '${e}'`,e);if(this.listings.has(i))throw qh(`open '${e}'`);let n=null,s=null;typeof t=="string"?n=t:typeof t=="object"&&({encoding:n=null,mode:s=null}=t);let o=this.entries.get(i);return{encoding:n,mode:s,resolvedP:i,index:o}}async unlinkPromise(e){return this.unlinkSync(e)}unlinkSync(e){if(this.readOnly)throw In(`unlink '${e}'`);let t=this.resolveFilename(`unlink '${e}'`,e);if(this.listings.has(t))throw qh(`unlink '${e}'`);let i=this.entries.get(t);if(typeof i=="undefined")throw GA(`unlink '${e}'`);this.deleteEntry(t,i)}async utimesPromise(e,t,i){return this.utimesSync(e,t,i)}utimesSync(e,t,i){if(this.readOnly)throw In(`utimes '${e}'`);let n=this.resolveFilename(`utimes '${e}'`,e);this.utimesImpl(n,i)}async lutimesPromise(e,t,i){return this.lutimesSync(e,t,i)}lutimesSync(e,t,i){if(this.readOnly)throw In(`lutimes '${e}'`);let n=this.resolveFilename(`utimes '${e}'`,e,!1);this.utimesImpl(n,i)}utimesImpl(e,t){this.listings.has(e)&&(this.entries.has(e)||this.hydrateDirectory(e));let i=this.entries.get(e);if(i===void 0)throw new Error("Unreachable");if(this.libzip.file.setMtime(this.zip,i,0,bge(t),0)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip))}async mkdirPromise(e,t){return this.mkdirSync(e,t)}mkdirSync(e,{mode:t=493,recursive:i=!1}={}){if(i)return this.mkdirpSync(e,{chmod:t});if(this.readOnly)throw In(`mkdir '${e}'`);let n=this.resolveFilename(`mkdir '${e}'`,e);if(this.entries.has(n)||this.listings.has(n))throw ME(`mkdir '${e}'`);this.hydrateDirectory(n),this.chmodSync(n,t)}async rmdirPromise(e,t){return this.rmdirSync(e,t)}rmdirSync(e,{recursive:t=!1}={}){if(this.readOnly)throw In(`rmdir '${e}'`);if(t){this.removeSync(e);return}let i=this.resolveFilename(`rmdir '${e}'`,e),n=this.listings.get(i);if(!n)throw Ro(`rmdir '${e}'`);if(n.size>0)throw YO(`rmdir '${e}'`);let s=this.entries.get(i);if(typeof s=="undefined")throw GA(`rmdir '${e}'`);this.deleteEntry(e,s)}hydrateDirectory(e){let t=this.libzip.dir.add(this.zip,k.relative(Me.root,e));if(t===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));return this.registerListing(e),this.registerEntry(e,t),t}async linkPromise(e,t){return this.linkSync(e,t)}linkSync(e,t){throw qO(`link '${e}' -> '${t}'`)}async symlinkPromise(e,t){return this.symlinkSync(e,t)}symlinkSync(e,t){if(this.readOnly)throw In(`symlink '${e}' -> '${t}'`);let i=this.resolveFilename(`symlink '${e}' -> '${t}'`,t);if(this.listings.has(i))throw qh(`symlink '${e}' -> '${t}'`);if(this.entries.has(i))throw ME(`symlink '${e}' -> '${t}'`);let n=this.setFileSource(i,e);if(this.registerEntry(i,n),this.libzip.file.setExternalAttributes(this.zip,n,0,0,this.libzip.ZIP_OPSYS_UNIX,(Fa|511)<<16)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));this.symlinkCount+=1}async readFilePromise(e,t){typeof t=="object"&&(t=t?t.encoding:void 0);let i=await this.readFileBuffer(e,{asyncDecompress:!0});return t?i.toString(t):i}readFileSync(e,t){typeof t=="object"&&(t=t?t.encoding:void 0);let i=this.readFileBuffer(e);return t?i.toString(t):i}readFileBuffer(e,t={asyncDecompress:!1}){typeof e=="number"&&(e=this.fdToPath(e,"read"));let i=this.resolveFilename(`open '${e}'`,e);if(!this.entries.has(i)&&!this.listings.has(i))throw io(`open '${e}'`);if(e[e.length-1]==="/"&&!this.listings.has(i))throw Ro(`open '${e}'`);if(this.listings.has(i))throw qh("read");let n=this.entries.get(i);if(n===void 0)throw new Error("Unreachable");return this.getFileSource(n,t)}async readdirPromise(e,t){return this.readdirSync(e,t)}readdirSync(e,t){let i=this.resolveFilename(`scandir '${e}'`,e);if(!this.entries.has(i)&&!this.listings.has(i))throw io(`scandir '${e}'`);let n=this.listings.get(i);if(!n)throw Ro(`scandir '${e}'`);let s=[...n];return(t==null?void 0:t.withFileTypes)?s.map(o=>Object.assign(this.statImpl("lstat",k.join(e,o)),{name:o})):s}async readlinkPromise(e){let t=this.prepareReadlink(e);return(await this.getFileSource(t,{asyncDecompress:!0})).toString()}readlinkSync(e){let t=this.prepareReadlink(e);return this.getFileSource(t).toString()}prepareReadlink(e){let t=this.resolveFilename(`readlink '${e}'`,e,!1);if(!this.entries.has(t)&&!this.listings.has(t))throw io(`readlink '${e}'`);if(e[e.length-1]==="/"&&!this.listings.has(t))throw Ro(`open '${e}'`);if(this.listings.has(t))throw GA(`readlink '${e}'`);let i=this.entries.get(t);if(i===void 0)throw new Error("Unreachable");if(!this.isSymbolicLink(i))throw GA(`readlink '${e}'`);return i}async truncatePromise(e,t=0){let i=this.resolveFilename(`open '${e}'`,e),n=this.entries.get(i);if(typeof n=="undefined")throw GA(`open '${e}'`);let s=await this.getFileSource(n,{asyncDecompress:!0}),o=Buffer.alloc(t,0);return s.copy(o),await this.writeFilePromise(e,o)}truncateSync(e,t=0){let i=this.resolveFilename(`open '${e}'`,e),n=this.entries.get(i);if(typeof n=="undefined")throw GA(`open '${e}'`);let s=this.getFileSource(n),o=Buffer.alloc(t,0);return s.copy(o),this.writeFileSync(e,o)}async ftruncatePromise(e,t){return this.truncatePromise(this.fdToPath(e,"ftruncate"),t)}ftruncateSync(e,t){return this.truncateSync(this.fdToPath(e,"ftruncateSync"),t)}watch(e,t,i){let n;switch(typeof t){case"function":case"string":case"undefined":n=!0;break;default:({persistent:n=!0}=t);break}if(!n)return{on:()=>{},close:()=>{}};let s=setInterval(()=>{},24*60*60*1e3);return{on:()=>{},close:()=>{clearInterval(s)}}}watchFile(e,t,i){let n=k.resolve(Me.root,e);return HE(this,n,t,i)}unwatchFile(e,t){let i=k.resolve(Me.root,e);return Wh(this,i,t)}};var Qi=class extends YA{getExtractHint(e){return this.baseFs.getExtractHint(e)}resolve(e){return this.mapFromBase(this.baseFs.resolve(this.mapToBase(e)))}getRealPath(){return this.mapFromBase(this.baseFs.getRealPath())}async openPromise(e,t,i){return this.baseFs.openPromise(this.mapToBase(e),t,i)}openSync(e,t,i){return this.baseFs.openSync(this.mapToBase(e),t,i)}async opendirPromise(e,t){return Object.assign(await this.baseFs.opendirPromise(this.mapToBase(e),t),{path:e})}opendirSync(e,t){return Object.assign(this.baseFs.opendirSync(this.mapToBase(e),t),{path:e})}async readPromise(e,t,i,n,s){return await this.baseFs.readPromise(e,t,i,n,s)}readSync(e,t,i,n,s){return this.baseFs.readSync(e,t,i,n,s)}async writePromise(e,t,i,n,s){return typeof t=="string"?await this.baseFs.writePromise(e,t,i):await this.baseFs.writePromise(e,t,i,n,s)}writeSync(e,t,i,n,s){return typeof t=="string"?this.baseFs.writeSync(e,t,i):this.baseFs.writeSync(e,t,i,n,s)}async closePromise(e){return this.baseFs.closePromise(e)}closeSync(e){this.baseFs.closeSync(e)}createReadStream(e,t){return this.baseFs.createReadStream(e!==null?this.mapToBase(e):e,t)}createWriteStream(e,t){return this.baseFs.createWriteStream(e!==null?this.mapToBase(e):e,t)}async realpathPromise(e){return this.mapFromBase(await this.baseFs.realpathPromise(this.mapToBase(e)))}realpathSync(e){return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(e)))}async existsPromise(e){return this.baseFs.existsPromise(this.mapToBase(e))}existsSync(e){return this.baseFs.existsSync(this.mapToBase(e))}accessSync(e,t){return this.baseFs.accessSync(this.mapToBase(e),t)}async accessPromise(e,t){return this.baseFs.accessPromise(this.mapToBase(e),t)}async statPromise(e,t){return this.baseFs.statPromise(this.mapToBase(e),t)}statSync(e,t){return this.baseFs.statSync(this.mapToBase(e),t)}async fstatPromise(e,t){return this.baseFs.fstatPromise(e,t)}fstatSync(e,t){return this.baseFs.fstatSync(e,t)}lstatPromise(e,t){return this.baseFs.lstatPromise(this.mapToBase(e),t)}lstatSync(e,t){return this.baseFs.lstatSync(this.mapToBase(e),t)}async fchmodPromise(e,t){return this.baseFs.fchmodPromise(e,t)}fchmodSync(e,t){return this.baseFs.fchmodSync(e,t)}async chmodPromise(e,t){return this.baseFs.chmodPromise(this.mapToBase(e),t)}chmodSync(e,t){return this.baseFs.chmodSync(this.mapToBase(e),t)}async chownPromise(e,t,i){return this.baseFs.chownPromise(this.mapToBase(e),t,i)}chownSync(e,t,i){return this.baseFs.chownSync(this.mapToBase(e),t,i)}async renamePromise(e,t){return this.baseFs.renamePromise(this.mapToBase(e),this.mapToBase(t))}renameSync(e,t){return this.baseFs.renameSync(this.mapToBase(e),this.mapToBase(t))}async copyFilePromise(e,t,i=0){return this.baseFs.copyFilePromise(this.mapToBase(e),this.mapToBase(t),i)}copyFileSync(e,t,i=0){return this.baseFs.copyFileSync(this.mapToBase(e),this.mapToBase(t),i)}async appendFilePromise(e,t,i){return this.baseFs.appendFilePromise(this.fsMapToBase(e),t,i)}appendFileSync(e,t,i){return this.baseFs.appendFileSync(this.fsMapToBase(e),t,i)}async writeFilePromise(e,t,i){return this.baseFs.writeFilePromise(this.fsMapToBase(e),t,i)}writeFileSync(e,t,i){return this.baseFs.writeFileSync(this.fsMapToBase(e),t,i)}async unlinkPromise(e){return this.baseFs.unlinkPromise(this.mapToBase(e))}unlinkSync(e){return this.baseFs.unlinkSync(this.mapToBase(e))}async utimesPromise(e,t,i){return this.baseFs.utimesPromise(this.mapToBase(e),t,i)}utimesSync(e,t,i){return this.baseFs.utimesSync(this.mapToBase(e),t,i)}async mkdirPromise(e,t){return this.baseFs.mkdirPromise(this.mapToBase(e),t)}mkdirSync(e,t){return this.baseFs.mkdirSync(this.mapToBase(e),t)}async rmdirPromise(e,t){return this.baseFs.rmdirPromise(this.mapToBase(e),t)}rmdirSync(e,t){return this.baseFs.rmdirSync(this.mapToBase(e),t)}async linkPromise(e,t){return this.baseFs.linkPromise(this.mapToBase(e),this.mapToBase(t))}linkSync(e,t){return this.baseFs.linkSync(this.mapToBase(e),this.mapToBase(t))}async symlinkPromise(e,t,i){let n=this.mapToBase(t);if(this.pathUtils.isAbsolute(e))return this.baseFs.symlinkPromise(this.mapToBase(e),n,i);let s=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(t),e)),o=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(n),s);return this.baseFs.symlinkPromise(o,n,i)}symlinkSync(e,t,i){let n=this.mapToBase(t);if(this.pathUtils.isAbsolute(e))return this.baseFs.symlinkSync(this.mapToBase(e),n,i);let s=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(t),e)),o=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(n),s);return this.baseFs.symlinkSync(o,n,i)}async readFilePromise(e,t){return t==="utf8"?this.baseFs.readFilePromise(this.fsMapToBase(e),t):this.baseFs.readFilePromise(this.fsMapToBase(e),t)}readFileSync(e,t){return t==="utf8"?this.baseFs.readFileSync(this.fsMapToBase(e),t):this.baseFs.readFileSync(this.fsMapToBase(e),t)}async readdirPromise(e,t){return this.baseFs.readdirPromise(this.mapToBase(e),t)}readdirSync(e,t){return this.baseFs.readdirSync(this.mapToBase(e),t)}async readlinkPromise(e){return this.mapFromBase(await this.baseFs.readlinkPromise(this.mapToBase(e)))}readlinkSync(e){return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(e)))}async truncatePromise(e,t){return this.baseFs.truncatePromise(this.mapToBase(e),t)}truncateSync(e,t){return this.baseFs.truncateSync(this.mapToBase(e),t)}async ftruncatePromise(e,t){return this.baseFs.ftruncatePromise(e,t)}ftruncateSync(e,t){return this.baseFs.ftruncateSync(e,t)}watch(e,t,i){return this.baseFs.watch(this.mapToBase(e),t,i)}watchFile(e,t,i){return this.baseFs.watchFile(this.mapToBase(e),t,i)}unwatchFile(e,t){return this.baseFs.unwatchFile(this.mapToBase(e),t)}fsMapToBase(e){return typeof e=="number"?e:this.mapToBase(e)}};var Na=class extends Qi{constructor(e,{baseFs:t,pathUtils:i}){super(i);this.target=e,this.baseFs=t}getRealPath(){return this.target}getBaseFs(){return this.baseFs}mapFromBase(e){return e}mapToBase(e){return e}};var _t=class extends Qi{constructor(e,{baseFs:t=new ar}={}){super(k);this.target=this.pathUtils.normalize(e),this.baseFs=t}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.target)}resolve(e){return this.pathUtils.isAbsolute(e)?k.normalize(e):this.baseFs.resolve(k.join(this.target,e))}mapFromBase(e){return e}mapToBase(e){return this.pathUtils.isAbsolute(e)?e:this.pathUtils.join(this.target,e)}};var eM=Me.root,La=class extends Qi{constructor(e,{baseFs:t=new ar}={}){super(k);this.target=this.pathUtils.resolve(Me.root,e),this.baseFs=t}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.pathUtils.relative(Me.root,this.target))}getTarget(){return this.target}getBaseFs(){return this.baseFs}mapToBase(e){let t=this.pathUtils.normalize(e);if(this.pathUtils.isAbsolute(e))return this.pathUtils.resolve(this.target,this.pathUtils.relative(eM,e));if(t.match(/^\.\.\/?/))throw new Error(`Resolving this path (${e}) would escape the jail`);return this.pathUtils.resolve(this.target,e)}mapFromBase(e){return this.pathUtils.resolve(eM,this.pathUtils.relative(this.target,e))}};var _h=class extends Qi{constructor(e,t){super(t);this.instance=null;this.factory=e}get baseFs(){return this.instance||(this.instance=this.factory()),this.instance}set baseFs(e){this.instance=e}mapFromBase(e){return e}mapToBase(e){return e}};var et=()=>Object.assign(new Error("ENOSYS: unsupported filesystem access"),{code:"ENOSYS"}),gQ=class extends YA{constructor(){super(k)}getExtractHint(){throw et()}getRealPath(){throw et()}resolve(){throw et()}async openPromise(){throw et()}openSync(){throw et()}async opendirPromise(){throw et()}opendirSync(){throw et()}async readPromise(){throw et()}readSync(){throw et()}async writePromise(){throw et()}writeSync(){throw et()}async closePromise(){throw et()}closeSync(){throw et()}createWriteStream(){throw et()}createReadStream(){throw et()}async realpathPromise(){throw et()}realpathSync(){throw et()}async readdirPromise(){throw et()}readdirSync(){throw et()}async existsPromise(e){throw et()}existsSync(e){throw et()}async accessPromise(){throw et()}accessSync(){throw et()}async statPromise(){throw et()}statSync(){throw et()}async fstatPromise(e){throw et()}fstatSync(e){throw et()}async lstatPromise(e){throw et()}lstatSync(e){throw et()}async fchmodPromise(){throw et()}fchmodSync(){throw et()}async chmodPromise(){throw et()}chmodSync(){throw et()}async chownPromise(){throw et()}chownSync(){throw et()}async mkdirPromise(){throw et()}mkdirSync(){throw et()}async rmdirPromise(){throw et()}rmdirSync(){throw et()}async linkPromise(){throw et()}linkSync(){throw et()}async symlinkPromise(){throw et()}symlinkSync(){throw et()}async renamePromise(){throw et()}renameSync(){throw et()}async copyFilePromise(){throw et()}copyFileSync(){throw et()}async appendFilePromise(){throw et()}appendFileSync(){throw et()}async writeFilePromise(){throw et()}writeFileSync(){throw et()}async unlinkPromise(){throw et()}unlinkSync(){throw et()}async utimesPromise(){throw et()}utimesSync(){throw et()}async readFilePromise(){throw et()}readFileSync(){throw et()}async readlinkPromise(){throw et()}readlinkSync(){throw et()}async truncatePromise(){throw et()}truncateSync(){throw et()}async ftruncatePromise(e,t){throw et()}ftruncateSync(e,t){throw et()}watch(){throw et()}watchFile(){throw et()}unwatchFile(){throw et()}},jE=gQ;jE.instance=new gQ;var Vh=class extends Qi{constructor(e){super(H);this.baseFs=e}mapFromBase(e){return H.fromPortablePath(e)}mapToBase(e){return H.toPortablePath(e)}};var Qge=/^[0-9]+$/,fQ=/^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/,Sge=/^([^/]+-)?[a-f0-9]+$/,Wr=class extends Qi{static makeVirtualPath(e,t,i){if(k.basename(e)!=="__virtual__")throw new Error('Assertion failed: Virtual folders must be named "__virtual__"');if(!k.basename(t).match(Sge))throw new Error("Assertion failed: Virtual components must be ended by an hexadecimal hash");let s=k.relative(k.dirname(e),i).split("/"),o=0;for(;o{let t=r.indexOf(e);if(t<=0)return null;let i=t;for(;t>=0&&(i=t+e.length,r[i]!==k.sep);){if(r[t-1]===k.sep)return null;t=r.indexOf(e,i)}return r.length>i&&r[i]!==k.sep?null:r.slice(0,i)},Is=class extends oc{constructor({libzip:e,baseFs:t=new ar,filter:i=null,maxOpenFiles:n=Infinity,readOnlyArchives:s=!1,useCache:o=!0,maxAge:a=5e3,fileExtensions:l=null}){super();this.fdMap=new Map;this.nextFd=3;this.isZip=new Set;this.notZip=new Set;this.realPaths=new Map;this.limitOpenFilesTimeout=null;this.libzipFactory=typeof e!="function"?()=>e:e,this.baseFs=t,this.zipInstances=o?new Map:null,this.filter=i,this.maxOpenFiles=n,this.readOnlyArchives=s,this.maxAge=a,this.fileExtensions=l}static async openPromise(e,t){let i=new Is(t);try{return await e(i)}finally{i.saveAndClose()}}get libzip(){return typeof this.libzipInstance=="undefined"&&(this.libzipInstance=this.libzipFactory()),this.libzipInstance}getExtractHint(e){return this.baseFs.getExtractHint(e)}getRealPath(){return this.baseFs.getRealPath()}saveAndClose(){if(zh(this),this.zipInstances)for(let[e,{zipFs:t}]of this.zipInstances.entries())t.saveAndClose(),this.zipInstances.delete(e)}discardAndClose(){if(zh(this),this.zipInstances)for(let[e,{zipFs:t}]of this.zipInstances.entries())t.discardAndClose(),this.zipInstances.delete(e)}resolve(e){return this.baseFs.resolve(e)}remapFd(e,t){let i=this.nextFd++|Vn;return this.fdMap.set(i,[e,t]),i}async openPromise(e,t,i){return await this.makeCallPromise(e,async()=>await this.baseFs.openPromise(e,t,i),async(n,{subPath:s})=>this.remapFd(n,await n.openPromise(s,t,i)))}openSync(e,t,i){return this.makeCallSync(e,()=>this.baseFs.openSync(e,t,i),(n,{subPath:s})=>this.remapFd(n,n.openSync(s,t,i)))}async opendirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.opendirPromise(e,t),async(i,{subPath:n})=>await i.opendirPromise(n,t),{requireSubpath:!1})}opendirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.opendirSync(e,t),(i,{subPath:n})=>i.opendirSync(n,t),{requireSubpath:!1})}async readPromise(e,t,i,n,s){if((e&Vn)==0)return await this.baseFs.readPromise(e,t,i,n,s);let o=this.fdMap.get(e);if(typeof o=="undefined")throw Ai("read");let[a,l]=o;return await a.readPromise(l,t,i,n,s)}readSync(e,t,i,n,s){if((e&Vn)==0)return this.baseFs.readSync(e,t,i,n,s);let o=this.fdMap.get(e);if(typeof o=="undefined")throw Ai("readSync");let[a,l]=o;return a.readSync(l,t,i,n,s)}async writePromise(e,t,i,n,s){if((e&Vn)==0)return typeof t=="string"?await this.baseFs.writePromise(e,t,i):await this.baseFs.writePromise(e,t,i,n,s);let o=this.fdMap.get(e);if(typeof o=="undefined")throw Ai("write");let[a,l]=o;return typeof t=="string"?await a.writePromise(l,t,i):await a.writePromise(l,t,i,n,s)}writeSync(e,t,i,n,s){if((e&Vn)==0)return typeof t=="string"?this.baseFs.writeSync(e,t,i):this.baseFs.writeSync(e,t,i,n,s);let o=this.fdMap.get(e);if(typeof o=="undefined")throw Ai("writeSync");let[a,l]=o;return typeof t=="string"?a.writeSync(l,t,i):a.writeSync(l,t,i,n,s)}async closePromise(e){if((e&Vn)==0)return await this.baseFs.closePromise(e);let t=this.fdMap.get(e);if(typeof t=="undefined")throw Ai("close");this.fdMap.delete(e);let[i,n]=t;return await i.closePromise(n)}closeSync(e){if((e&Vn)==0)return this.baseFs.closeSync(e);let t=this.fdMap.get(e);if(typeof t=="undefined")throw Ai("closeSync");this.fdMap.delete(e);let[i,n]=t;return i.closeSync(n)}createReadStream(e,t){return e===null?this.baseFs.createReadStream(e,t):this.makeCallSync(e,()=>this.baseFs.createReadStream(e,t),(i,{archivePath:n,subPath:s})=>{let o=i.createReadStream(s,t);return o.path=H.fromPortablePath(this.pathUtils.join(n,s)),o})}createWriteStream(e,t){return e===null?this.baseFs.createWriteStream(e,t):this.makeCallSync(e,()=>this.baseFs.createWriteStream(e,t),(i,{subPath:n})=>i.createWriteStream(n,t))}async realpathPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.realpathPromise(e),async(t,{archivePath:i,subPath:n})=>{let s=this.realPaths.get(i);return typeof s=="undefined"&&(s=await this.baseFs.realpathPromise(i),this.realPaths.set(i,s)),this.pathUtils.join(s,this.pathUtils.relative(Me.root,await t.realpathPromise(n)))})}realpathSync(e){return this.makeCallSync(e,()=>this.baseFs.realpathSync(e),(t,{archivePath:i,subPath:n})=>{let s=this.realPaths.get(i);return typeof s=="undefined"&&(s=this.baseFs.realpathSync(i),this.realPaths.set(i,s)),this.pathUtils.join(s,this.pathUtils.relative(Me.root,t.realpathSync(n)))})}async existsPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.existsPromise(e),async(t,{subPath:i})=>await t.existsPromise(i))}existsSync(e){return this.makeCallSync(e,()=>this.baseFs.existsSync(e),(t,{subPath:i})=>t.existsSync(i))}async accessPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.accessPromise(e,t),async(i,{subPath:n})=>await i.accessPromise(n,t))}accessSync(e,t){return this.makeCallSync(e,()=>this.baseFs.accessSync(e,t),(i,{subPath:n})=>i.accessSync(n,t))}async statPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.statPromise(e,t),async(i,{subPath:n})=>await i.statPromise(n,t))}statSync(e,t){return this.makeCallSync(e,()=>this.baseFs.statSync(e,t),(i,{subPath:n})=>i.statSync(n,t))}async fstatPromise(e,t){if((e&Vn)==0)return this.baseFs.fstatPromise(e,t);let i=this.fdMap.get(e);if(typeof i=="undefined")throw Ai("fstat");let[n,s]=i;return n.fstatPromise(s,t)}fstatSync(e,t){if((e&Vn)==0)return this.baseFs.fstatSync(e,t);let i=this.fdMap.get(e);if(typeof i=="undefined")throw Ai("fstatSync");let[n,s]=i;return n.fstatSync(s,t)}async lstatPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.lstatPromise(e,t),async(i,{subPath:n})=>await i.lstatPromise(n,t))}lstatSync(e,t){return this.makeCallSync(e,()=>this.baseFs.lstatSync(e,t),(i,{subPath:n})=>i.lstatSync(n,t))}async fchmodPromise(e,t){if((e&Vn)==0)return this.baseFs.fchmodPromise(e,t);let i=this.fdMap.get(e);if(typeof i=="undefined")throw Ai("fchmod");let[n,s]=i;return n.fchmodPromise(s,t)}fchmodSync(e,t){if((e&Vn)==0)return this.baseFs.fchmodSync(e,t);let i=this.fdMap.get(e);if(typeof i=="undefined")throw Ai("fchmodSync");let[n,s]=i;return n.fchmodSync(s,t)}async chmodPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.chmodPromise(e,t),async(i,{subPath:n})=>await i.chmodPromise(n,t))}chmodSync(e,t){return this.makeCallSync(e,()=>this.baseFs.chmodSync(e,t),(i,{subPath:n})=>i.chmodSync(n,t))}async chownPromise(e,t,i){return await this.makeCallPromise(e,async()=>await this.baseFs.chownPromise(e,t,i),async(n,{subPath:s})=>await n.chownPromise(s,t,i))}chownSync(e,t,i){return this.makeCallSync(e,()=>this.baseFs.chownSync(e,t,i),(n,{subPath:s})=>n.chownSync(s,t,i))}async renamePromise(e,t){return await this.makeCallPromise(e,async()=>await this.makeCallPromise(t,async()=>await this.baseFs.renamePromise(e,t),async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),async(i,{subPath:n})=>await this.makeCallPromise(t,async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},async(s,{subPath:o})=>{if(i!==s)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return await i.renamePromise(n,o)}))}renameSync(e,t){return this.makeCallSync(e,()=>this.makeCallSync(t,()=>this.baseFs.renameSync(e,t),()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),(i,{subPath:n})=>this.makeCallSync(t,()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},(s,{subPath:o})=>{if(i!==s)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return i.renameSync(n,o)}))}async copyFilePromise(e,t,i=0){let n=async(s,o,a,l)=>{if((i&Xh.constants.COPYFILE_FICLONE_FORCE)!=0)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${o}' -> ${l}'`),{code:"EXDEV"});if(i&Xh.constants.COPYFILE_EXCL&&await this.existsPromise(o))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${o}' -> '${l}'`),{code:"EEXIST"});let c;try{c=await s.readFilePromise(o)}catch(u){throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${o}' -> '${l}'`),{code:"EINVAL"})}await a.writeFilePromise(l,c)};return await this.makeCallPromise(e,async()=>await this.makeCallPromise(t,async()=>await this.baseFs.copyFilePromise(e,t,i),async(s,{subPath:o})=>await n(this.baseFs,e,s,o)),async(s,{subPath:o})=>await this.makeCallPromise(t,async()=>await n(s,o,this.baseFs,t),async(a,{subPath:l})=>s!==a?await n(s,o,a,l):await s.copyFilePromise(o,l,i)))}copyFileSync(e,t,i=0){let n=(s,o,a,l)=>{if((i&Xh.constants.COPYFILE_FICLONE_FORCE)!=0)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${o}' -> ${l}'`),{code:"EXDEV"});if(i&Xh.constants.COPYFILE_EXCL&&this.existsSync(o))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${o}' -> '${l}'`),{code:"EEXIST"});let c;try{c=s.readFileSync(o)}catch(u){throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${o}' -> '${l}'`),{code:"EINVAL"})}a.writeFileSync(l,c)};return this.makeCallSync(e,()=>this.makeCallSync(t,()=>this.baseFs.copyFileSync(e,t,i),(s,{subPath:o})=>n(this.baseFs,e,s,o)),(s,{subPath:o})=>this.makeCallSync(t,()=>n(s,o,this.baseFs,t),(a,{subPath:l})=>s!==a?n(s,o,a,l):s.copyFileSync(o,l,i)))}async appendFilePromise(e,t,i){return await this.makeCallPromise(e,async()=>await this.baseFs.appendFilePromise(e,t,i),async(n,{subPath:s})=>await n.appendFilePromise(s,t,i))}appendFileSync(e,t,i){return this.makeCallSync(e,()=>this.baseFs.appendFileSync(e,t,i),(n,{subPath:s})=>n.appendFileSync(s,t,i))}async writeFilePromise(e,t,i){return await this.makeCallPromise(e,async()=>await this.baseFs.writeFilePromise(e,t,i),async(n,{subPath:s})=>await n.writeFilePromise(s,t,i))}writeFileSync(e,t,i){return this.makeCallSync(e,()=>this.baseFs.writeFileSync(e,t,i),(n,{subPath:s})=>n.writeFileSync(s,t,i))}async unlinkPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.unlinkPromise(e),async(t,{subPath:i})=>await t.unlinkPromise(i))}unlinkSync(e){return this.makeCallSync(e,()=>this.baseFs.unlinkSync(e),(t,{subPath:i})=>t.unlinkSync(i))}async utimesPromise(e,t,i){return await this.makeCallPromise(e,async()=>await this.baseFs.utimesPromise(e,t,i),async(n,{subPath:s})=>await n.utimesPromise(s,t,i))}utimesSync(e,t,i){return this.makeCallSync(e,()=>this.baseFs.utimesSync(e,t,i),(n,{subPath:s})=>n.utimesSync(s,t,i))}async mkdirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.mkdirPromise(e,t),async(i,{subPath:n})=>await i.mkdirPromise(n,t))}mkdirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.mkdirSync(e,t),(i,{subPath:n})=>i.mkdirSync(n,t))}async rmdirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.rmdirPromise(e,t),async(i,{subPath:n})=>await i.rmdirPromise(n,t))}rmdirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.rmdirSync(e,t),(i,{subPath:n})=>i.rmdirSync(n,t))}async linkPromise(e,t){return await this.makeCallPromise(t,async()=>await this.baseFs.linkPromise(e,t),async(i,{subPath:n})=>await i.linkPromise(e,n))}linkSync(e,t){return this.makeCallSync(t,()=>this.baseFs.linkSync(e,t),(i,{subPath:n})=>i.linkSync(e,n))}async symlinkPromise(e,t,i){return await this.makeCallPromise(t,async()=>await this.baseFs.symlinkPromise(e,t,i),async(n,{subPath:s})=>await n.symlinkPromise(e,s))}symlinkSync(e,t,i){return this.makeCallSync(t,()=>this.baseFs.symlinkSync(e,t,i),(n,{subPath:s})=>n.symlinkSync(e,s))}async readFilePromise(e,t){return this.makeCallPromise(e,async()=>{switch(t){case"utf8":return await this.baseFs.readFilePromise(e,t);default:return await this.baseFs.readFilePromise(e,t)}},async(i,{subPath:n})=>await i.readFilePromise(n,t))}readFileSync(e,t){return this.makeCallSync(e,()=>{switch(t){case"utf8":return this.baseFs.readFileSync(e,t);default:return this.baseFs.readFileSync(e,t)}},(i,{subPath:n})=>i.readFileSync(n,t))}async readdirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.readdirPromise(e,t),async(i,{subPath:n})=>await i.readdirPromise(n,t),{requireSubpath:!1})}readdirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.readdirSync(e,t),(i,{subPath:n})=>i.readdirSync(n,t),{requireSubpath:!1})}async readlinkPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.readlinkPromise(e),async(t,{subPath:i})=>await t.readlinkPromise(i))}readlinkSync(e){return this.makeCallSync(e,()=>this.baseFs.readlinkSync(e),(t,{subPath:i})=>t.readlinkSync(i))}async truncatePromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.truncatePromise(e,t),async(i,{subPath:n})=>await i.truncatePromise(n,t))}truncateSync(e,t){return this.makeCallSync(e,()=>this.baseFs.truncateSync(e,t),(i,{subPath:n})=>i.truncateSync(n,t))}async ftruncatePromise(e,t){if((e&Vn)==0)return this.baseFs.ftruncatePromise(e,t);let i=this.fdMap.get(e);if(typeof i=="undefined")throw Ai("ftruncate");let[n,s]=i;return n.ftruncatePromise(s,t)}ftruncateSync(e,t){if((e&Vn)==0)return this.baseFs.ftruncateSync(e,t);let i=this.fdMap.get(e);if(typeof i=="undefined")throw Ai("ftruncateSync");let[n,s]=i;return n.ftruncateSync(s,t)}watch(e,t,i){return this.makeCallSync(e,()=>this.baseFs.watch(e,t,i),(n,{subPath:s})=>n.watch(s,t,i))}watchFile(e,t,i){return this.makeCallSync(e,()=>this.baseFs.watchFile(e,t,i),()=>HE(this,e,t,i))}unwatchFile(e,t){return this.makeCallSync(e,()=>this.baseFs.unwatchFile(e,t),()=>Wh(this,e,t))}async makeCallPromise(e,t,i,{requireSubpath:n=!0}={}){if(typeof e!="string")return await t();let s=this.resolve(e),o=this.findZip(s);return o?n&&o.subPath==="/"?await t():await this.getZipPromise(o.archivePath,async a=>await i(a,o)):await t()}makeCallSync(e,t,i,{requireSubpath:n=!0}={}){if(typeof e!="string")return t();let s=this.resolve(e),o=this.findZip(s);return!o||n&&o.subPath==="/"?t():this.getZipSync(o.archivePath,a=>i(a,o))}findZip(e){if(this.filter&&!this.filter.test(e))return null;let t="";for(;;){let i=e.substring(t.length),n;if(!this.fileExtensions)n=tM(i,".zip");else for(let s of this.fileExtensions)if(n=tM(i,s),n)break;if(!n)return null;if(t=this.pathUtils.join(t,n),this.isZip.has(t)===!1){if(this.notZip.has(t))continue;try{if(!this.baseFs.lstatSync(t).isFile()){this.notZip.add(t);continue}}catch{return null}this.isZip.add(t)}return{archivePath:t,subPath:this.pathUtils.join(Me.root,e.substring(t.length))}}}limitOpenFiles(e){if(this.zipInstances===null)return;let t=Date.now(),i=t+this.maxAge,n=e===null?0:this.zipInstances.size-e;for(let[s,{zipFs:o,expiresAt:a,refCount:l}]of this.zipInstances.entries())if(!(l!==0||o.hasOpenFileHandles())){if(t>=a){o.saveAndClose(),this.zipInstances.delete(s),n-=1;continue}else if(e===null||n<=0){i=a;break}o.saveAndClose(),this.zipInstances.delete(s),n-=1}this.limitOpenFilesTimeout===null&&(e===null&&this.zipInstances.size>0||e!==null)&&(this.limitOpenFilesTimeout=setTimeout(()=>{this.limitOpenFilesTimeout=null,this.limitOpenFiles(null)},i-t).unref())}async getZipPromise(e,t){let i=async()=>({baseFs:this.baseFs,libzip:this.libzip,readOnly:this.readOnlyArchives,stats:await this.baseFs.statPromise(e)});if(this.zipInstances){let n=this.zipInstances.get(e);if(!n){let s=await i();n=this.zipInstances.get(e),n||(n={zipFs:new li(e,s),expiresAt:0,refCount:0})}this.zipInstances.delete(e),this.limitOpenFiles(this.maxOpenFiles-1),this.zipInstances.set(e,n),n.expiresAt=Date.now()+this.maxAge,n.refCount+=1;try{return await t(n.zipFs)}finally{n.refCount-=1}}else{let n=new li(e,await i());try{return await t(n)}finally{n.saveAndClose()}}}getZipSync(e,t){let i=()=>({baseFs:this.baseFs,libzip:this.libzip,readOnly:this.readOnlyArchives,stats:this.baseFs.statSync(e)});if(this.zipInstances){let n=this.zipInstances.get(e);return n||(n={zipFs:new li(e,i()),expiresAt:0,refCount:0}),this.zipInstances.delete(e),this.limitOpenFiles(this.maxOpenFiles-1),this.zipInstances.set(e,n),n.expiresAt=Date.now()+this.maxAge,t(n.zipFs)}else{let n=new li(e,i());try{return t(n)}finally{n.saveAndClose()}}}};var Vu=ge(require("util"));var GE=ge(require("url"));var hQ=class extends Qi{constructor(e){super(H);this.baseFs=e}mapFromBase(e){return e}mapToBase(e){return e instanceof GE.URL?(0,GE.fileURLToPath)(e):e}};var en=Symbol("kBaseFs"),Ta=Symbol("kFd"),qA=Symbol("kClosePromise"),YE=Symbol("kCloseResolve"),qE=Symbol("kCloseReject"),_u=Symbol("kRefs"),Fo=Symbol("kRef"),No=Symbol("kUnref"),Q6e,S6e,v6e,x6e,JE=class{constructor(e,t){this[Q6e]=1;this[S6e]=void 0;this[v6e]=void 0;this[x6e]=void 0;this[en]=t,this[Ta]=e}get fd(){return this[Ta]}async appendFile(e,t){var i;try{this[Fo](this.appendFile);let n=(i=typeof t=="string"?t:t==null?void 0:t.encoding)!=null?i:void 0;return await this[en].appendFilePromise(this.fd,e,n?{encoding:n}:void 0)}finally{this[No]()}}chown(e,t){throw new Error("Method not implemented.")}async chmod(e){try{return this[Fo](this.chmod),await this[en].fchmodPromise(this.fd,e)}finally{this[No]()}}createReadStream(e){return this[en].createReadStream(null,te(N({},e),{fd:this.fd}))}createWriteStream(e){return this[en].createWriteStream(null,te(N({},e),{fd:this.fd}))}datasync(){throw new Error("Method not implemented.")}sync(){throw new Error("Method not implemented.")}async read(e,t,i,n){var s,o,a;try{this[Fo](this.read);let l;return Buffer.isBuffer(e)?l=e:(e!=null||(e={}),l=(s=e.buffer)!=null?s:Buffer.alloc(16384),t=e.offset||0,i=(o=e.length)!=null?o:l.byteLength,n=(a=e.position)!=null?a:null),t!=null||(t=0),i!=null||(i=0),i===0?{bytesRead:i,buffer:l}:{bytesRead:await this[en].readPromise(this.fd,l,t,i,n),buffer:l}}finally{this[No]()}}async readFile(e){var t;try{this[Fo](this.readFile);let i=(t=typeof e=="string"?e:e==null?void 0:e.encoding)!=null?t:void 0;return await this[en].readFilePromise(this.fd,i)}finally{this[No]()}}async stat(e){try{return this[Fo](this.stat),await this[en].fstatPromise(this.fd,e)}finally{this[No]()}}async truncate(e){try{return this[Fo](this.truncate),await this[en].ftruncatePromise(this.fd,e)}finally{this[No]()}}utimes(e,t){throw new Error("Method not implemented.")}async writeFile(e,t){var i;try{this[Fo](this.writeFile);let n=(i=typeof t=="string"?t:t==null?void 0:t.encoding)!=null?i:void 0;await this[en].writeFilePromise(this.fd,e,n)}finally{this[No]()}}async write(...e){try{if(this[Fo](this.write),ArrayBuffer.isView(e[0])){let[t,i,n,s]=e;return{bytesWritten:await this[en].writePromise(this.fd,t,i!=null?i:void 0,n!=null?n:void 0,s!=null?s:void 0),buffer:t}}else{let[t,i,n]=e;return{bytesWritten:await this[en].writePromise(this.fd,t,i,n),buffer:t}}}finally{this[No]()}}async writev(e,t){try{this[Fo](this.writev);let i=0;if(typeof t!="undefined")for(let n of e){let s=await this.write(n,void 0,void 0,t);i+=s.bytesWritten,t+=s.bytesWritten}else for(let n of e)i+=(await this.write(n)).bytesWritten;return{buffers:e,bytesWritten:i}}finally{this[No]()}}readv(e,t){throw new Error("Method not implemented.")}close(){if(this[Ta]===-1)return Promise.resolve();if(this[qA])return this[qA];if(this[_u]--,this[_u]===0){let e=this[Ta];this[Ta]=-1,this[qA]=this[en].closePromise(e).finally(()=>{this[qA]=void 0})}else this[qA]=new Promise((e,t)=>{this[YE]=e,this[qE]=t}).finally(()=>{this[qA]=void 0,this[qE]=void 0,this[YE]=void 0});return this[qA]}[(en,Ta,Q6e=_u,S6e=qA,v6e=YE,x6e=qE,Fo)](e){if(this[Ta]===-1){let t=new Error("file closed");throw t.code="EBADF",t.syscall=e.name,t}this[_u]++}[No](){if(this[_u]--,this[_u]===0){let e=this[Ta];this[Ta]=-1,this[en].closePromise(e).then(this[YE],this[qE])}}};var vge=new Set(["accessSync","appendFileSync","createReadStream","createWriteStream","chmodSync","fchmodSync","chownSync","closeSync","copyFileSync","linkSync","lstatSync","fstatSync","lutimesSync","mkdirSync","openSync","opendirSync","readlinkSync","readFileSync","readdirSync","readlinkSync","realpathSync","renameSync","rmdirSync","statSync","symlinkSync","truncateSync","ftruncateSync","unlinkSync","unwatchFile","utimesSync","watch","watchFile","writeFileSync","writeSync"]),rM=new Set(["accessPromise","appendFilePromise","fchmodPromise","chmodPromise","chownPromise","closePromise","copyFilePromise","linkPromise","fstatPromise","lstatPromise","lutimesPromise","mkdirPromise","openPromise","opendirPromise","readdirPromise","realpathPromise","readFilePromise","readdirPromise","readlinkPromise","renamePromise","rmdirPromise","statPromise","symlinkPromise","truncatePromise","ftruncatePromise","unlinkPromise","utimesPromise","writeFilePromise","writeSync"]);function pQ(r,e){e=new hQ(e);let t=(i,n,s)=>{let o=i[n];i[n]=s,typeof(o==null?void 0:o[Vu.promisify.custom])!="undefined"&&(s[Vu.promisify.custom]=o[Vu.promisify.custom])};{t(r,"exists",(i,...n)=>{let o=typeof n[n.length-1]=="function"?n.pop():()=>{};process.nextTick(()=>{e.existsPromise(i).then(a=>{o(a)},()=>{o(!1)})})}),t(r,"read",(...i)=>{let[n,s,o,a,l,c]=i;if(i.length<=3){let u={};i.length<3?c=i[1]:(u=i[1],c=i[2]),{buffer:s=Buffer.alloc(16384),offset:o=0,length:a=s.byteLength,position:l}=u}if(o==null&&(o=0),a|=0,a===0){process.nextTick(()=>{c(null,0,s)});return}l==null&&(l=-1),process.nextTick(()=>{e.readPromise(n,s,o,a,l).then(u=>{c(null,u,s)},u=>{c(u,0,s)})})});for(let i of rM){let n=i.replace(/Promise$/,"");if(typeof r[n]=="undefined")continue;let s=e[i];if(typeof s=="undefined")continue;t(r,n,(...a)=>{let c=typeof a[a.length-1]=="function"?a.pop():()=>{};process.nextTick(()=>{s.apply(e,a).then(u=>{c(null,u)},u=>{c(u)})})})}r.realpath.native=r.realpath}{t(r,"existsSync",i=>{try{return e.existsSync(i)}catch(n){return!1}}),t(r,"readSync",(...i)=>{let[n,s,o,a,l]=i;return i.length<=3&&({offset:o=0,length:a=s.byteLength,position:l}=i[2]||{}),o==null&&(o=0),a|=0,a===0?0:(l==null&&(l=-1),e.readSync(n,s,o,a,l))});for(let i of vge){let n=i;if(typeof r[n]=="undefined")continue;let s=e[i];typeof s!="undefined"&&t(r,n,s.bind(e))}r.realpathSync.native=r.realpathSync}{let i=process.emitWarning;process.emitWarning=()=>{};let n;try{n=r.promises}finally{process.emitWarning=i}if(typeof n!="undefined"){for(let s of rM){let o=s.replace(/Promise$/,"");if(typeof n[o]=="undefined")continue;let a=e[s];typeof a!="undefined"&&s!=="open"&&t(n,o,(l,...c)=>l instanceof JE?l[o].apply(l,c):a.call(e,l,...c))}t(n,"open",async(...s)=>{let o=await e.openPromise(...s);return new JE(o,e)})}}r.read[Vu.promisify.custom]=async(i,n,...s)=>({bytesRead:await e.readPromise(i,n,...s),buffer:n}),r.write[Vu.promisify.custom]=async(i,n,...s)=>({bytesWritten:await e.writePromise(i,n,...s),buffer:n})}function WE(r,e){let t=Object.create(r);return pQ(t,e),t}var iM=ge(require("os"));function nM(r){let e=Math.ceil(Math.random()*4294967296).toString(16).padStart(8,"0");return`${r}${e}`}var no=new Set,dQ=null;function sM(){if(dQ)return dQ;let r=H.toPortablePath(iM.default.tmpdir()),e=K.realpathSync(r);return process.once("exit",()=>{K.rmtempSync()}),dQ={tmpdir:r,realTmpdir:e}}var K=Object.assign(new ar,{detachTemp(r){no.delete(r)},mktempSync(r){let{tmpdir:e,realTmpdir:t}=sM();for(;;){let i=nM("xfs-");try{this.mkdirSync(k.join(e,i))}catch(s){if(s.code==="EEXIST")continue;throw s}let n=k.join(t,i);if(no.add(n),typeof r=="undefined")return n;try{return r(n)}finally{if(no.has(n)){no.delete(n);try{this.removeSync(n)}catch{}}}}},async mktempPromise(r){let{tmpdir:e,realTmpdir:t}=sM();for(;;){let i=nM("xfs-");try{await this.mkdirPromise(k.join(e,i))}catch(s){if(s.code==="EEXIST")continue;throw s}let n=k.join(t,i);if(no.add(n),typeof r=="undefined")return n;try{return await r(n)}finally{if(no.has(n)){no.delete(n);try{await this.removePromise(n)}catch{}}}}},async rmtempPromise(){await Promise.all(Array.from(no.values()).map(async r=>{try{await K.removePromise(r,{maxRetries:0}),no.delete(r)}catch{}}))},rmtempSync(){for(let r of no)try{K.removeSync(r),no.delete(r)}catch{}}});var mk=ge(SQ());var op={};ft(op,{parseResolution:()=>$E,parseShell:()=>_E,parseSyml:()=>Si,stringifyArgument:()=>PQ,stringifyArgumentSegment:()=>DQ,stringifyArithmeticExpression:()=>ZE,stringifyCommand:()=>kQ,stringifyCommandChain:()=>eg,stringifyCommandChainThen:()=>xQ,stringifyCommandLine:()=>VE,stringifyCommandLineThen:()=>vQ,stringifyEnvSegment:()=>XE,stringifyRedirectArgument:()=>$h,stringifyResolution:()=>eI,stringifyShell:()=>$u,stringifyShellLine:()=>$u,stringifySyml:()=>Ma,stringifyValueArgument:()=>uc});var _M=ge(zM());function _E(r,e={isGlobPattern:()=>!1}){try{return(0,_M.parse)(r,e)}catch(t){throw t.location&&(t.message=t.message.replace(/(\.)?$/,` (line ${t.location.start.line}, column ${t.location.start.column})$1`)),t}}function $u(r,{endSemicolon:e=!1}={}){return r.map(({command:t,type:i},n)=>`${VE(t)}${i===";"?n!==r.length-1||e?";":"":" &"}`).join(" ")}function VE(r){return`${eg(r.chain)}${r.then?` ${vQ(r.then)}`:""}`}function vQ(r){return`${r.type} ${VE(r.line)}`}function eg(r){return`${kQ(r)}${r.then?` ${xQ(r.then)}`:""}`}function xQ(r){return`${r.type} ${eg(r.chain)}`}function kQ(r){switch(r.type){case"command":return`${r.envs.length>0?`${r.envs.map(e=>XE(e)).join(" ")} `:""}${r.args.map(e=>PQ(e)).join(" ")}`;case"subshell":return`(${$u(r.subshell)})${r.args.length>0?` ${r.args.map(e=>$h(e)).join(" ")}`:""}`;case"group":return`{ ${$u(r.group,{endSemicolon:!0})} }${r.args.length>0?` ${r.args.map(e=>$h(e)).join(" ")}`:""}`;case"envs":return r.envs.map(e=>XE(e)).join(" ");default:throw new Error(`Unsupported command type: "${r.type}"`)}}function XE(r){return`${r.name}=${r.args[0]?uc(r.args[0]):""}`}function PQ(r){switch(r.type){case"redirection":return $h(r);case"argument":return uc(r);default:throw new Error(`Unsupported argument type: "${r.type}"`)}}function $h(r){return`${r.subtype} ${r.args.map(e=>uc(e)).join(" ")}`}function uc(r){return r.segments.map(e=>DQ(e)).join("")}function DQ(r){let e=(i,n)=>n?`"${i}"`:i,t=i=>i===""?'""':i.match(/[(){}<>$|&; \t"']/)?`$'${i.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0")}'`:i;switch(r.type){case"text":return t(r.text);case"glob":return r.pattern;case"shell":return e(`\${${$u(r.shell)}}`,r.quoted);case"variable":return e(typeof r.defaultValue=="undefined"?typeof r.alternativeValue=="undefined"?`\${${r.name}}`:r.alternativeValue.length===0?`\${${r.name}:+}`:`\${${r.name}:+${r.alternativeValue.map(i=>uc(i)).join(" ")}}`:r.defaultValue.length===0?`\${${r.name}:-}`:`\${${r.name}:-${r.defaultValue.map(i=>uc(i)).join(" ")}}`,r.quoted);case"arithmetic":return`$(( ${ZE(r.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${r.type}"`)}}function ZE(r){let e=n=>{switch(n){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${n}"`)}},t=(n,s)=>s?`( ${n} )`:n,i=n=>t(ZE(n),!["number","variable"].includes(n.type));switch(r.type){case"number":return String(r.value);case"variable":return r.name;default:return`${i(r.left)} ${e(r.type)} ${i(r.right)}`}}var ZM=ge(XM());function $E(r){let e=r.match(/^\*{1,2}\/(.*)/);if(e)throw new Error(`The override for '${r}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${e[1]}' instead.`);try{return(0,ZM.parse)(r)}catch(t){throw t.location&&(t.message=t.message.replace(/(\.)?$/,` (line ${t.location.start.line}, column ${t.location.start.column})$1`)),t}}function eI(r){let e="";return r.from&&(e+=r.from.fullName,r.from.description&&(e+=`@${r.from.description}`),e+="/"),e+=r.descriptor.fullName,r.descriptor.description&&(e+=`@${r.descriptor.description}`),e}var uI=ge(jK()),qK=ge(YK()),Tpe=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,JK=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"],YQ=class{constructor(e){this.data=e}};function WK(r){return r.match(Tpe)?r:JSON.stringify(r)}function zK(r){return typeof r=="undefined"?!0:typeof r=="object"&&r!==null?Object.keys(r).every(e=>zK(r[e])):!1}function qQ(r,e,t){if(r===null)return`null +`;if(typeof r=="number"||typeof r=="boolean")return`${r.toString()} +`;if(typeof r=="string")return`${WK(r)} +`;if(Array.isArray(r)){if(r.length===0)return`[] +`;let i=" ".repeat(e);return` +${r.map(s=>`${i}- ${qQ(s,e+1,!1)}`).join("")}`}if(typeof r=="object"&&r){let i,n;r instanceof YQ?(i=r.data,n=!1):(i=r,n=!0);let s=" ".repeat(e),o=Object.keys(i);n&&o.sort((l,c)=>{let u=JK.indexOf(l),g=JK.indexOf(c);return u===-1&&g===-1?lc?1:0:u!==-1&&g===-1?-1:u===-1&&g!==-1?1:u-g});let a=o.filter(l=>!zK(i[l])).map((l,c)=>{let u=i[l],g=WK(l),f=qQ(u,e+1,!0),h=c>0||t?s:"",p=g.length>1024?`? ${g} +${h}:`:`${g}:`,m=f.startsWith(` +`)?f:` ${f}`;return`${h}${p}${m}`}).join(e===0?` +`:"")||` +`;return t?` +${a}`:`${a}`}throw new Error(`Unsupported value type (${r})`)}function Ma(r){try{let e=qQ(r,0,!1);return e!==` +`?e:""}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}Ma.PreserveOrdering=YQ;function Ope(r){return r.endsWith(` +`)||(r+=` +`),(0,qK.parse)(r)}var Mpe=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Kpe(r){if(Mpe.test(r))return Ope(r);let e=(0,uI.safeLoad)(r,{schema:uI.FAILSAFE_SCHEMA,json:!0});if(e==null)return{};if(typeof e!="object")throw new Error(`Expected an indexed object, got a ${typeof e} instead. Does your file follow Yaml's rules?`);if(Array.isArray(e))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return e}function Si(r){return Kpe(r)}var T4=ge(VK()),mw=ge(Ic());var Cp={};ft(Cp,{Builtins:()=>oS,Cli:()=>ws,Command:()=>Re,Option:()=>J,UsageError:()=>Pe,formatMarkdownish:()=>Ui});var yc=0,ap=1,tn=2,WQ="",vi="\0",lg=-1,zQ=/^(-h|--help)(?:=([0-9]+))?$/,gI=/^(--[a-z]+(?:-[a-z]+)*|-[a-zA-Z]+)$/,tU=/^-[a-zA-Z]{2,}$/,_Q=/^([^=]+)=([\s\S]*)$/,VQ=process.env.DEBUG_CLI==="1";var Pe=class extends Error{constructor(e){super(e);this.clipanion={type:"usage"},this.name="UsageError"}},Ap=class extends Error{constructor(e,t){super();if(this.input=e,this.candidates=t,this.clipanion={type:"none"},this.name="UnknownSyntaxError",this.candidates.length===0)this.message="Command not found, but we're not sure what's the alternative.";else if(this.candidates.every(i=>i.reason!==null&&i.reason===t[0].reason)){let[{reason:i}]=this.candidates;this.message=`${i} + +${this.candidates.map(({usage:n})=>`$ ${n}`).join(` +`)}`}else if(this.candidates.length===1){let[{usage:i}]=this.candidates;this.message=`Command not found; did you mean: + +$ ${i} +${XQ(e)}`}else this.message=`Command not found; did you mean one of: + +${this.candidates.map(({usage:i},n)=>`${`${n}.`.padStart(4)} ${i}`).join(` +`)} + +${XQ(e)}`}},ZQ=class extends Error{constructor(e,t){super();this.input=e,this.usages=t,this.clipanion={type:"none"},this.name="AmbiguousSyntaxError",this.message=`Cannot find which to pick amongst the following alternatives: + +${this.usages.map((i,n)=>`${`${n}.`.padStart(4)} ${i}`).join(` +`)} + +${XQ(e)}`}},XQ=r=>`While running ${r.filter(e=>e!==vi).map(e=>{let t=JSON.stringify(e);return e.match(/\s/)||e.length===0||t!==`"${e}"`?t:e}).join(" ")}`;var lp=Symbol("clipanion/isOption");function rn(r){return te(N({},r),{[lp]:!0})}function Oo(r,e){return typeof r=="undefined"?[r,e]:typeof r=="object"&&r!==null&&!Array.isArray(r)?[void 0,r]:[r,e]}function fI(r,e=!1){let t=r.replace(/^\.: /,"");return e&&(t=t[0].toLowerCase()+t.slice(1)),t}function cp(r,e){return e.length===1?new Pe(`${r}: ${fI(e[0],!0)}`):new Pe(`${r}: +${e.map(t=>` +- ${fI(t)}`).join("")}`)}function up(r,e,t){if(typeof t=="undefined")return e;let i=[],n=[],s=a=>{let l=e;return e=a,s.bind(null,l)};if(!t(e,{errors:i,coercions:n,coercion:s}))throw cp(`Invalid value for ${r}`,i);for(let[,a]of n)a();return e}var Re=class{constructor(){this.help=!1}static Usage(e){return e}async catch(e){throw e}async validateAndExecute(){let t=this.constructor.schema;if(Array.isArray(t)){let{isDict:n,isUnknown:s,applyCascade:o}=await Promise.resolve().then(()=>(ys(),cg)),a=o(n(s()),t),l=[],c=[];if(!a(this,{errors:l,coercions:c}))throw cp("Invalid option schema",l);for(let[,g]of c)g()}else if(t!=null)throw new Error("Invalid command schema");let i=await this.execute();return typeof i!="undefined"?i:0}};Re.isOption=lp;Re.Default=[];var uU=80,tS=Array(uU).fill("\u2501");for(let r=0;r<=24;++r)tS[tS.length-r]=`[38;5;${232+r}m\u2501`;var rS={header:r=>`\u2501\u2501\u2501 ${r}${r.length`${r}`,error:r=>`${r}`,code:r=>`${r}`},gU={header:r=>r,bold:r=>r,error:r=>r,code:r=>r};function yde(r){let e=r.split(` +`),t=e.filter(n=>n.match(/\S/)),i=t.length>0?t.reduce((n,s)=>Math.min(n,s.length-s.trimStart().length),Number.MAX_VALUE):0;return e.map(n=>n.slice(i).trimRight()).join(` +`)}function Ui(r,{format:e,paragraphs:t}){return r=r.replace(/\r\n?/g,` +`),r=yde(r),r=r.replace(/^\n+|\n+$/g,""),r=r.replace(/^(\s*)-([^\n]*?)\n+/gm,`$1-$2 + +`),r=r.replace(/\n(\n)?\n*/g,"$1"),t&&(r=r.split(/\n/).map(i=>{let n=i.match(/^\s*[*-][\t ]+(.*)/);if(!n)return i.match(/(.{1,80})(?: |$)/g).join(` +`);let s=i.length-i.trimStart().length;return n[1].match(new RegExp(`(.{1,${78-s}})(?: |$)`,"g")).map((o,a)=>" ".repeat(s)+(a===0?"- ":" ")+o).join(` +`)}).join(` + +`)),r=r.replace(/(`+)((?:.|[\n])*?)\1/g,(i,n,s)=>e.code(n+s+n)),r=r.replace(/(\*\*)((?:.|[\n])*?)\1/g,(i,n,s)=>e.bold(n+s+n)),r?`${r} +`:""}var sS=ge(require("tty"));function wn(r){VQ&&console.log(r)}var fU={candidateUsage:null,requiredOptions:[],errorMessage:null,ignoreOptions:!1,path:[],positionals:[],options:[],remainder:null,selectedIndex:lg};function hU(){return{nodes:[sn(),sn(),sn()]}}function Bde(r){let e=hU(),t=[],i=e.nodes.length;for(let n of r){t.push(i);for(let s=0;s{if(e.has(i))return;e.add(i);let n=r.nodes[i];for(let o of Object.values(n.statics))for(let{to:a}of o)t(a);for(let[,{to:o}]of n.dynamics)t(o);for(let{to:o}of n.shortcuts)t(o);let s=new Set(n.shortcuts.map(({to:o})=>o));for(;n.shortcuts.length>0;){let{to:o}=n.shortcuts.shift(),a=r.nodes[o];for(let[l,c]of Object.entries(a.statics)){let u=Object.prototype.hasOwnProperty.call(n.statics,l)?n.statics[l]:n.statics[l]=[];for(let g of c)u.some(({to:f})=>g.to===f)||u.push(g)}for(let[l,c]of a.dynamics)n.dynamics.some(([u,{to:g}])=>l===u&&c.to===g)||n.dynamics.push([l,c]);for(let l of a.shortcuts)s.has(l.to)||(n.shortcuts.push(l),s.add(l.to))}};t(yc)}function Qde(r,{prefix:e=""}={}){if(VQ){wn(`${e}Nodes are:`);for(let t=0;tl!==tn).map(({state:l})=>({usage:l.candidateUsage,reason:null})));if(a.every(({node:l})=>l===tn))throw new Ap(e,a.map(({state:l})=>({usage:l.candidateUsage,reason:l.errorMessage})));i=Sde(a)}if(i.length>0){wn(" Results:");for(let s of i)wn(` - ${s.node} -> ${JSON.stringify(s.state)}`)}else wn(" No results");return i}function vde(r,e){if(e.selectedIndex!==null)return!0;if(Object.prototype.hasOwnProperty.call(r.statics,vi)){for(let{to:t}of r.statics[vi])if(t===ap)return!0}return!1}function kde(r,e,t){let i=t&&e.length>0?[""]:[],n=dU(r,e,t),s=[],o=new Set,a=(l,c,u=!0)=>{let g=[c];for(;g.length>0;){let h=g;g=[];for(let p of h){let m=r.nodes[p],y=Object.keys(m.statics);for(let b of Object.keys(m.statics)){let v=y[0];for(let{to:x,reducer:T}of m.statics[v])T==="pushPath"&&(u||l.push(v),g.push(x))}}u=!1}let f=JSON.stringify(l);o.has(f)||(s.push(l),o.add(f))};for(let{node:l,state:c}of n){if(c.remainder!==null){a([c.remainder],l);continue}let u=r.nodes[l],g=vde(u,c);for(let[f,h]of Object.entries(u.statics))(g&&f!==vi||!f.startsWith("-")&&h.some(({reducer:p})=>p==="pushPath"))&&a([...i,f],l);if(!!g)for(let[f,{to:h}]of u.dynamics){if(h===tn)continue;let p=xde(f,c);if(p!==null)for(let m of p)a([...i,m],l)}}return[...s].sort()}function Dde(r,e){let t=dU(r,[...e,vi]);return Pde(e,t.map(({state:i})=>i))}function Sde(r){let e=0;for(let{state:t}of r)t.path.length>e&&(e=t.path.length);return r.filter(({state:t})=>t.path.length===e)}function Pde(r,e){let t=e.filter(g=>g.selectedIndex!==null);if(t.length===0)throw new Error;let i=t.filter(g=>g.requiredOptions.every(f=>f.some(h=>g.options.find(p=>p.name===h))));if(i.length===0)throw new Ap(r,t.map(g=>({usage:g.candidateUsage,reason:null})));let n=0;for(let g of i)g.path.length>n&&(n=g.path.length);let s=i.filter(g=>g.path.length===n),o=g=>g.positionals.filter(({extra:f})=>!f).length+g.options.length,a=s.map(g=>({state:g,positionalCount:o(g)})),l=0;for(let{positionalCount:g}of a)g>l&&(l=g);let c=a.filter(({positionalCount:g})=>g===l).map(({state:g})=>g),u=Rde(c);if(u.length>1)throw new ZQ(r,u.map(g=>g.candidateUsage));return u[0]}function Rde(r){let e=[],t=[];for(let i of r)i.selectedIndex===lg?t.push(i):e.push(i);return t.length>0&&e.push(te(N({},fU),{path:CU(...t.map(i=>i.path)),options:t.reduce((i,n)=>i.concat(n.options),[])})),e}function CU(r,e,...t){return e===void 0?Array.from(r):CU(r.filter((i,n)=>i===e[n]),...t)}function sn(){return{dynamics:[],shortcuts:[],statics:{}}}function pU(r){return r===ap||r===tn}function nS(r,e=0){return{to:pU(r.to)?r.to:r.to>2?r.to+e-2:r.to+e,reducer:r.reducer}}function wde(r,e=0){let t=sn();for(let[i,n]of r.dynamics)t.dynamics.push([i,nS(n,e)]);for(let i of r.shortcuts)t.shortcuts.push(nS(i,e));for(let[i,n]of Object.entries(r.statics))t.statics[i]=n.map(s=>nS(s,e));return t}function xi(r,e,t,i,n){r.nodes[e].dynamics.push([t,{to:i,reducer:n}])}function ug(r,e,t,i){r.nodes[e].shortcuts.push({to:t,reducer:i})}function Ka(r,e,t,i,n){(Object.prototype.hasOwnProperty.call(r.nodes[e].statics,t)?r.nodes[e].statics[t]:r.nodes[e].statics[t]=[]).push({to:i,reducer:n})}function pI(r,e,t,i){if(Array.isArray(e)){let[n,...s]=e;return r[n](t,i,...s)}else return r[e](t,i)}function xde(r,e){let t=Array.isArray(r)?dI[r[0]]:dI[r];if(typeof t.suggest=="undefined")return null;let i=Array.isArray(r)?r.slice(1):[];return t.suggest(e,...i)}var dI={always:()=>!0,isOptionLike:(r,e)=>!r.ignoreOptions&&e!=="-"&&e.startsWith("-"),isNotOptionLike:(r,e)=>r.ignoreOptions||e==="-"||!e.startsWith("-"),isOption:(r,e,t,i)=>!r.ignoreOptions&&e===t,isBatchOption:(r,e,t)=>!r.ignoreOptions&&tU.test(e)&&[...e.slice(1)].every(i=>t.includes(`-${i}`)),isBoundOption:(r,e,t,i)=>{let n=e.match(_Q);return!r.ignoreOptions&&!!n&&gI.test(n[1])&&t.includes(n[1])&&i.filter(s=>s.names.includes(n[1])).every(s=>s.allowBinding)},isNegatedOption:(r,e,t)=>!r.ignoreOptions&&e===`--no-${t.slice(2)}`,isHelp:(r,e)=>!r.ignoreOptions&&zQ.test(e),isUnsupportedOption:(r,e,t)=>!r.ignoreOptions&&e.startsWith("-")&&gI.test(e)&&!t.includes(e),isInvalidOption:(r,e)=>!r.ignoreOptions&&e.startsWith("-")&&!gI.test(e)};dI.isOption.suggest=(r,e,t=!0)=>t?null:[e];var iS={setCandidateState:(r,e,t)=>N(N({},r),t),setSelectedIndex:(r,e,t)=>te(N({},r),{selectedIndex:t}),pushBatch:(r,e)=>te(N({},r),{options:r.options.concat([...e.slice(1)].map(t=>({name:`-${t}`,value:!0})))}),pushBound:(r,e)=>{let[,t,i]=e.match(_Q);return te(N({},r),{options:r.options.concat({name:t,value:i})})},pushPath:(r,e)=>te(N({},r),{path:r.path.concat(e)}),pushPositional:(r,e)=>te(N({},r),{positionals:r.positionals.concat({value:e,extra:!1})}),pushExtra:(r,e)=>te(N({},r),{positionals:r.positionals.concat({value:e,extra:!0})}),pushExtraNoLimits:(r,e)=>te(N({},r),{positionals:r.positionals.concat({value:e,extra:Zn})}),pushTrue:(r,e,t=e)=>te(N({},r),{options:r.options.concat({name:e,value:!0})}),pushFalse:(r,e,t=e)=>te(N({},r),{options:r.options.concat({name:t,value:!1})}),pushUndefined:(r,e)=>te(N({},r),{options:r.options.concat({name:e,value:void 0})}),pushStringValue:(r,e)=>{var t;let i=te(N({},r),{options:[...r.options]}),n=r.options[r.options.length-1];return n.value=((t=n.value)!==null&&t!==void 0?t:[]).concat([e]),i},setStringValue:(r,e)=>{let t=te(N({},r),{options:[...r.options]}),i=r.options[r.options.length-1];return i.value=e,t},inhibateOptions:r=>te(N({},r),{ignoreOptions:!0}),useHelp:(r,e,t)=>{let[,,i]=e.match(zQ);return typeof i!="undefined"?te(N({},r),{options:[{name:"-c",value:String(t)},{name:"-i",value:i}]}):te(N({},r),{options:[{name:"-c",value:String(t)}]})},setError:(r,e,t)=>e===vi?te(N({},r),{errorMessage:`${t}.`}):te(N({},r),{errorMessage:`${t} ("${e}").`}),setOptionArityError:(r,e)=>{let t=r.options[r.options.length-1];return te(N({},r),{errorMessage:`Not enough arguments to option ${t.name}.`})}},Zn=Symbol(),mU=class{constructor(e,t){this.allOptionNames=[],this.arity={leading:[],trailing:[],extra:[],proxy:!1},this.options=[],this.paths=[],this.cliIndex=e,this.cliOpts=t}addPath(e){this.paths.push(e)}setArity({leading:e=this.arity.leading,trailing:t=this.arity.trailing,extra:i=this.arity.extra,proxy:n=this.arity.proxy}){Object.assign(this.arity,{leading:e,trailing:t,extra:i,proxy:n})}addPositional({name:e="arg",required:t=!0}={}){if(!t&&this.arity.extra===Zn)throw new Error("Optional parameters cannot be declared when using .rest() or .proxy()");if(!t&&this.arity.trailing.length>0)throw new Error("Optional parameters cannot be declared after the required trailing positional arguments");!t&&this.arity.extra!==Zn?this.arity.extra.push(e):this.arity.extra!==Zn&&this.arity.extra.length===0?this.arity.leading.push(e):this.arity.trailing.push(e)}addRest({name:e="arg",required:t=0}={}){if(this.arity.extra===Zn)throw new Error("Infinite lists cannot be declared multiple times in the same command");if(this.arity.trailing.length>0)throw new Error("Infinite lists cannot be declared after the required trailing positional arguments");for(let i=0;i1)throw new Error("The arity cannot be higher than 1 when the option only supports the --arg=value syntax");if(!Number.isInteger(i))throw new Error(`The arity must be an integer, got ${i}`);if(i<0)throw new Error(`The arity must be positive, got ${i}`);this.allOptionNames.push(...e),this.options.push({names:e,description:t,arity:i,hidden:n,required:s,allowBinding:o})}setContext(e){this.context=e}usage({detailed:e=!0,inlineOptions:t=!0}={}){let i=[this.cliOpts.binaryName],n=[];if(this.paths.length>0&&i.push(...this.paths[0]),e){for(let{names:o,arity:a,hidden:l,description:c,required:u}of this.options){if(l)continue;let g=[];for(let h=0;h`:`[${f}]`)}i.push(...this.arity.leading.map(o=>`<${o}>`)),this.arity.extra===Zn?i.push("..."):i.push(...this.arity.extra.map(o=>`[${o}]`)),i.push(...this.arity.trailing.map(o=>`<${o}>`))}return{usage:i.join(" "),options:n}}compile(){if(typeof this.context=="undefined")throw new Error("Assertion failed: No context attached");let e=hU(),t=yc,i=this.usage().usage,n=this.options.filter(a=>a.required).map(a=>a.names);t=so(e,sn()),Ka(e,yc,WQ,t,["setCandidateState",{candidateUsage:i,requiredOptions:n}]);let s=this.arity.proxy?"always":"isNotOptionLike",o=this.paths.length>0?this.paths:[[]];for(let a of o){let l=t;if(a.length>0){let f=so(e,sn());ug(e,l,f),this.registerOptions(e,f),l=f}for(let f=0;f0||!this.arity.proxy){let f=so(e,sn());xi(e,l,"isHelp",f,["useHelp",this.cliIndex]),Ka(e,f,vi,ap,["setSelectedIndex",lg]),this.registerOptions(e,l)}this.arity.leading.length>0&&Ka(e,l,vi,tn,["setError","Not enough positional arguments"]);let c=l;for(let f=0;f0||f+1!==this.arity.leading.length)&&Ka(e,h,vi,tn,["setError","Not enough positional arguments"]),xi(e,c,"isNotOptionLike",h,"pushPositional"),c=h}let u=c;if(this.arity.extra===Zn||this.arity.extra.length>0){let f=so(e,sn());if(ug(e,c,f),this.arity.extra===Zn){let h=so(e,sn());this.arity.proxy||this.registerOptions(e,h),xi(e,c,s,h,"pushExtraNoLimits"),xi(e,h,s,h,"pushExtraNoLimits"),ug(e,h,f)}else for(let h=0;h0&&Ka(e,u,vi,tn,["setError","Not enough positional arguments"]);let g=u;for(let f=0;fo.length>s.length?o:s,"");if(i.arity===0)for(let s of i.names)xi(e,t,["isOption",s,i.hidden||s!==n],t,"pushTrue"),s.startsWith("--")&&!s.startsWith("--no-")&&xi(e,t,["isNegatedOption",s],t,["pushFalse",s]);else{let s=so(e,sn());for(let o of i.names)xi(e,t,["isOption",o,i.hidden||o!==n],s,"pushUndefined");for(let o=0;o=0&&eDde(i,n),suggest:(n,s)=>kde(i,n,s)}}};var dp=class extends Re{constructor(e){super();this.contexts=e,this.commands=[]}static from(e,t){let i=new dp(t);i.path=e.path;for(let n of e.options)switch(n.name){case"-c":i.commands.push(Number(n.value));break;case"-i":i.index=Number(n.value);break}return i}async execute(){let e=this.commands;if(typeof this.index!="undefined"&&this.index>=0&&this.index1){this.context.stdout.write(`Multiple commands match your selection: +`),this.context.stdout.write(` +`);let t=0;for(let i of this.commands)this.context.stdout.write(this.cli.usage(this.contexts[i].commandClass,{prefix:`${t++}. `.padStart(5)}));this.context.stdout.write(` +`),this.context.stdout.write(`Run again with -h= to see the longer details of any of those commands. +`)}}};var EU=Symbol("clipanion/errorCommand");function Fde(){return process.env.FORCE_COLOR==="0"?1:process.env.FORCE_COLOR==="1"||typeof process.stdout!="undefined"&&process.stdout.isTTY?8:1}var ws=class{constructor({binaryLabel:e,binaryName:t="...",binaryVersion:i,enableCapture:n=!1,enableColors:s}={}){this.registrations=new Map,this.builder=new pp({binaryName:t}),this.binaryLabel=e,this.binaryName=t,this.binaryVersion=i,this.enableCapture=n,this.enableColors=s}static from(e,t={}){let i=new ws(t);for(let n of e)i.register(n);return i}register(e){var t;let i=new Map,n=new e;for(let l in n){let c=n[l];typeof c=="object"&&c!==null&&c[Re.isOption]&&i.set(l,c)}let s=this.builder.command(),o=s.cliIndex,a=(t=e.paths)!==null&&t!==void 0?t:n.paths;if(typeof a!="undefined")for(let l of a)s.addPath(l);this.registrations.set(e,{specs:i,builder:s,index:o});for(let[l,{definition:c}]of i.entries())c(s,l);s.setContext({commandClass:e})}process(e){let{contexts:t,process:i}=this.builder.compile(),n=i(e);switch(n.selectedIndex){case lg:return dp.from(n,t);default:{let{commandClass:s}=t[n.selectedIndex],o=this.registrations.get(s);if(typeof o=="undefined")throw new Error("Assertion failed: Expected the command class to have been registered.");let a=new s;a.path=n.path;try{for(let[l,{transformer:c}]of o.specs.entries())a[l]=c(o.builder,l,n);return a}catch(l){throw l[EU]=a,l}}break}}async run(e,t){var i;let n,s=N(N({},ws.defaultContext),t),o=(i=this.enableColors)!==null&&i!==void 0?i:s.colorDepth>1;if(!Array.isArray(e))n=e;else try{n=this.process(e)}catch(c){return s.stdout.write(this.error(c,{colored:o})),1}if(n.help)return s.stdout.write(this.usage(n,{colored:o,detailed:!0})),0;n.context=s,n.cli={binaryLabel:this.binaryLabel,binaryName:this.binaryName,binaryVersion:this.binaryVersion,enableCapture:this.enableCapture,enableColors:this.enableColors,definitions:()=>this.definitions(),error:(c,u)=>this.error(c,u),format:c=>this.format(c),process:c=>this.process(c),run:(c,u)=>this.run(c,N(N({},s),u)),usage:(c,u)=>this.usage(c,u)};let a=this.enableCapture?Nde(s):IU,l;try{l=await a(()=>n.validateAndExecute().catch(c=>n.catch(c).then(()=>0)))}catch(c){return s.stdout.write(this.error(c,{colored:o,command:n})),1}return l}async runExit(e,t){process.exitCode=await this.run(e,t)}suggest(e,t){let{suggest:i}=this.builder.compile();return i(e,t)}definitions({colored:e=!1}={}){let t=[];for(let[i,{index:n}]of this.registrations){if(typeof i.usage=="undefined")continue;let{usage:s}=this.getUsageByIndex(n,{detailed:!1}),{usage:o,options:a}=this.getUsageByIndex(n,{detailed:!0,inlineOptions:!1}),l=typeof i.usage.category!="undefined"?Ui(i.usage.category,{format:this.format(e),paragraphs:!1}):void 0,c=typeof i.usage.description!="undefined"?Ui(i.usage.description,{format:this.format(e),paragraphs:!1}):void 0,u=typeof i.usage.details!="undefined"?Ui(i.usage.details,{format:this.format(e),paragraphs:!0}):void 0,g=typeof i.usage.examples!="undefined"?i.usage.examples.map(([f,h])=>[Ui(f,{format:this.format(e),paragraphs:!1}),h.replace(/\$0/g,this.binaryName)]):void 0;t.push({path:s,usage:o,category:l,description:c,details:u,examples:g,options:a})}return t}usage(e=null,{colored:t,detailed:i=!1,prefix:n="$ "}={}){var s;if(e===null){for(let l of this.registrations.keys()){let c=l.paths,u=typeof l.usage!="undefined";if(!c||c.length===0||c.length===1&&c[0].length===0||((s=c==null?void 0:c.some(h=>h.length===0))!==null&&s!==void 0?s:!1))if(e){e=null;break}else e=l;else if(u){e=null;continue}}e&&(i=!0)}let o=e!==null&&e instanceof Re?e.constructor:e,a="";if(o)if(i){let{description:l="",details:c="",examples:u=[]}=o.usage||{};l!==""&&(a+=Ui(l,{format:this.format(t),paragraphs:!1}).replace(/^./,h=>h.toUpperCase()),a+=` +`),(c!==""||u.length>0)&&(a+=`${this.format(t).header("Usage")} +`,a+=` +`);let{usage:g,options:f}=this.getUsageByRegistration(o,{inlineOptions:!1});if(a+=`${this.format(t).bold(n)}${g} +`,f.length>0){a+=` +`,a+=`${rS.header("Options")} +`;let h=f.reduce((p,m)=>Math.max(p,m.definition.length),0);a+=` +`;for(let{definition:p,description:m}of f)a+=` ${this.format(t).bold(p.padEnd(h))} ${Ui(m,{format:this.format(t),paragraphs:!1})}`}if(c!==""&&(a+=` +`,a+=`${this.format(t).header("Details")} +`,a+=` +`,a+=Ui(c,{format:this.format(t),paragraphs:!0})),u.length>0){a+=` +`,a+=`${this.format(t).header("Examples")} +`;for(let[h,p]of u)a+=` +`,a+=Ui(h,{format:this.format(t),paragraphs:!1}),a+=`${p.replace(/^/m,` ${this.format(t).bold(n)}`).replace(/\$0/g,this.binaryName)} +`}}else{let{usage:l}=this.getUsageByRegistration(o);a+=`${this.format(t).bold(n)}${l} +`}else{let l=new Map;for(let[f,{index:h}]of this.registrations.entries()){if(typeof f.usage=="undefined")continue;let p=typeof f.usage.category!="undefined"?Ui(f.usage.category,{format:this.format(t),paragraphs:!1}):null,m=l.get(p);typeof m=="undefined"&&l.set(p,m=[]);let{usage:y}=this.getUsageByIndex(h);m.push({commandClass:f,usage:y})}let c=Array.from(l.keys()).sort((f,h)=>f===null?-1:h===null?1:f.localeCompare(h,"en",{usage:"sort",caseFirst:"upper"})),u=typeof this.binaryLabel!="undefined",g=typeof this.binaryVersion!="undefined";u||g?(u&&g?a+=`${this.format(t).header(`${this.binaryLabel} - ${this.binaryVersion}`)} + +`:u?a+=`${this.format(t).header(`${this.binaryLabel}`)} +`:a+=`${this.format(t).header(`${this.binaryVersion}`)} +`,a+=` ${this.format(t).bold(n)}${this.binaryName} +`):a+=`${this.format(t).bold(n)}${this.binaryName} +`;for(let f of c){let h=l.get(f).slice().sort((m,y)=>m.usage.localeCompare(y.usage,"en",{usage:"sort",caseFirst:"upper"})),p=f!==null?f.trim():"General commands";a+=` +`,a+=`${this.format(t).header(`${p}`)} +`;for(let{commandClass:m,usage:y}of h){let b=m.usage.description||"undocumented";a+=` +`,a+=` ${this.format(t).bold(y)} +`,a+=` ${Ui(b,{format:this.format(t),paragraphs:!1})}`}}a+=` +`,a+=Ui("You can also print more details about any of these commands by calling them with the `-h,--help` flag right after the command name.",{format:this.format(t),paragraphs:!0})}return a}error(e,t){var i,{colored:n,command:s=(i=e[EU])!==null&&i!==void 0?i:null}=t===void 0?{}:t;e instanceof Error||(e=new Error(`Execution failed with a non-error rejection (rejected value: ${JSON.stringify(e)})`));let o="",a=e.name.replace(/([a-z])([A-Z])/g,"$1 $2");a==="Error"&&(a="Internal Error"),o+=`${this.format(n).error(a)}: ${e.message} +`;let l=e.clipanion;return typeof l!="undefined"?l.type==="usage"&&(o+=` +`,o+=this.usage(s)):e.stack&&(o+=`${e.stack.replace(/^.*\n/,"")} +`),o}format(e){var t;return((t=e!=null?e:this.enableColors)!==null&&t!==void 0?t:ws.defaultContext.colorDepth>1)?rS:gU}getUsageByRegistration(e,t){let i=this.registrations.get(e);if(typeof i=="undefined")throw new Error("Assertion failed: Unregistered command");return this.getUsageByIndex(i.index,t)}getUsageByIndex(e,t){return this.builder.getBuilderByIndex(e).usage(t)}};ws.defaultContext={stdin:process.stdin,stdout:process.stdout,stderr:process.stderr,colorDepth:"getColorDepth"in sS.default.WriteStream.prototype?sS.default.WriteStream.prototype.getColorDepth():Fde()};var yU;function Nde(r){let e=yU;if(typeof e=="undefined"){if(r.stdout===process.stdout&&r.stderr===process.stderr)return IU;let{AsyncLocalStorage:t}=require("async_hooks");e=yU=new t;let i=process.stdout._write;process.stdout._write=function(s,o,a){let l=e.getStore();return typeof l=="undefined"?i.call(this,s,o,a):l.stdout.write(s,o,a)};let n=process.stderr._write;process.stderr._write=function(s,o,a){let l=e.getStore();return typeof l=="undefined"?n.call(this,s,o,a):l.stderr.write(s,o,a)}}return t=>e.run(r,t)}function IU(r){return r()}var oS={};ft(oS,{DefinitionsCommand:()=>CI,HelpCommand:()=>mI,VersionCommand:()=>EI});var CI=class extends Re{async execute(){this.context.stdout.write(`${JSON.stringify(this.cli.definitions(),null,2)} +`)}};CI.paths=[["--clipanion=definitions"]];var mI=class extends Re{async execute(){this.context.stdout.write(this.cli.usage())}};mI.paths=[["-h"],["--help"]];var EI=class extends Re{async execute(){var e;this.context.stdout.write(`${(e=this.cli.binaryVersion)!==null&&e!==void 0?e:""} +`)}};EI.paths=[["-v"],["--version"]];var J={};ft(J,{Array:()=>wU,Boolean:()=>BU,Counter:()=>bU,Proxy:()=>QU,Rest:()=>SU,String:()=>vU,applyValidator:()=>up,cleanValidationError:()=>fI,formatError:()=>cp,isOptionSymbol:()=>lp,makeCommandOption:()=>rn,rerouteArguments:()=>Oo});function wU(r,e,t){let[i,n]=Oo(e,t!=null?t:{}),{arity:s=1}=n,o=r.split(","),a=new Set(o);return rn({definition(l){l.addOption({names:o,arity:s,hidden:n==null?void 0:n.hidden,description:n==null?void 0:n.description,required:n.required})},transformer(l,c,u){let g=typeof i!="undefined"?[...i]:void 0;for(let{name:f,value:h}of u.options)!a.has(f)||(g=g!=null?g:[],g.push(h));return g}})}function BU(r,e,t){let[i,n]=Oo(e,t!=null?t:{}),s=r.split(","),o=new Set(s);return rn({definition(a){a.addOption({names:s,allowBinding:!1,arity:0,hidden:n.hidden,description:n.description,required:n.required})},transformer(a,l,c){let u=i;for(let{name:g,value:f}of c.options)!o.has(g)||(u=f);return u}})}function bU(r,e,t){let[i,n]=Oo(e,t!=null?t:{}),s=r.split(","),o=new Set(s);return rn({definition(a){a.addOption({names:s,allowBinding:!1,arity:0,hidden:n.hidden,description:n.description,required:n.required})},transformer(a,l,c){let u=i;for(let{name:g,value:f}of c.options)!o.has(g)||(u!=null||(u=0),f?u+=1:u=0);return u}})}function QU(r={}){return rn({definition(e,t){var i;e.addProxy({name:(i=r.name)!==null&&i!==void 0?i:t,required:r.required})},transformer(e,t,i){return i.positionals.map(({value:n})=>n)}})}function SU(r={}){return rn({definition(e,t){var i;e.addRest({name:(i=r.name)!==null&&i!==void 0?i:t,required:r.required})},transformer(e,t,i){let n=o=>{let a=i.positionals[o];return a.extra===Zn||a.extra===!1&&oo)}})}function Lde(r,e,t){let[i,n]=Oo(e,t!=null?t:{}),{arity:s=1}=n,o=r.split(","),a=new Set(o);return rn({definition(l){l.addOption({names:o,arity:n.tolerateBoolean?0:s,hidden:n.hidden,description:n.description,required:n.required})},transformer(l,c,u){let g,f=i;for(let{name:h,value:p}of u.options)!a.has(h)||(g=h,f=p);return typeof f=="string"?up(g!=null?g:c,f,n.validator):f}})}function Tde(r={}){let{required:e=!0}=r;return rn({definition(t,i){var n;t.addPositional({name:(n=r.name)!==null&&n!==void 0?n:i,required:r.required})},transformer(t,i,n){var s;for(let o=0;oYW,areIdentsEqual:()=>fd,areLocatorsEqual:()=>hd,areVirtualPackagesEquivalent:()=>aSe,bindDescriptor:()=>sSe,bindLocator:()=>oSe,convertDescriptorToLocator:()=>Aw,convertLocatorToDescriptor:()=>_x,convertPackageToLocator:()=>nSe,convertToIdent:()=>iSe,convertToManifestRange:()=>cSe,copyPackage:()=>cd,devirtualizeDescriptor:()=>ud,devirtualizeLocator:()=>gd,getIdentVendorPath:()=>ek,isPackageCompatible:()=>gw,isVirtualDescriptor:()=>Al,isVirtualLocator:()=>ea,makeDescriptor:()=>rr,makeIdent:()=>$o,makeLocator:()=>cn,makeRange:()=>cw,parseDescriptor:()=>ll,parseFileStyleRange:()=>ASe,parseIdent:()=>An,parseLocator:()=>Yc,parseRange:()=>qg,prettyDependent:()=>Lv,prettyDescriptor:()=>sr,prettyIdent:()=>fi,prettyLocator:()=>It,prettyLocatorNoColors:()=>$x,prettyRange:()=>aw,prettyReference:()=>dd,prettyResolution:()=>Tv,prettyWorkspace:()=>Cd,renamePackage:()=>ld,slugifyIdent:()=>Zx,slugifyLocator:()=>Jg,sortDescriptors:()=>Wg,stringifyDescriptor:()=>Pn,stringifyIdent:()=>Ot,stringifyLocator:()=>Rs,tryParseDescriptor:()=>pd,tryParseIdent:()=>qW,tryParseLocator:()=>lw,virtualizeDescriptor:()=>Vx,virtualizePackage:()=>Xx});var Yg=ge(require("querystring")),HW=ge(ri()),jW=ge(nY());var ae={};ft(ae,{LogLevel:()=>ho,Style:()=>Tc,Type:()=>qe,addLogFilterSupport:()=>nd,applyColor:()=>ns,applyHyperlink:()=>Mg,applyStyle:()=>Ry,json:()=>Oc,jsonOrPretty:()=>KBe,mark:()=>Hv,pretty:()=>tt,prettyField:()=>_o,prettyList:()=>Uv,supportsColor:()=>Py,supportsHyperlinks:()=>Mv,tuple:()=>fo});var rd=ge(uv()),id=ge(Ic());var sJ=ge(is()),oJ=ge(Jq());var Se={};ft(Se,{AsyncActions:()=>$q,BufferStream:()=>Zq,CachingStrategy:()=>Lc,DefaultStream:()=>eJ,allSettledSafe:()=>go,assertNever:()=>Pv,bufferStream:()=>Tg,buildIgnorePattern:()=>LBe,convertMapsToIndexableObjects:()=>ky,dynamicRequire:()=>Og,escapeRegExp:()=>PBe,getArrayWithDefault:()=>Fg,getFactoryWithDefault:()=>_a,getMapWithDefault:()=>Ng,getSetWithDefault:()=>Nc,isIndexableObject:()=>Dv,isPathLike:()=>TBe,isTaggedYarnVersion:()=>kBe,mapAndFilter:()=>zo,mapAndFind:()=>$p,overrideType:()=>kv,parseBoolean:()=>td,parseOptionalBoolean:()=>nJ,prettifyAsyncErrors:()=>Lg,prettifySyncErrors:()=>Rv,releaseAfterUseAsync:()=>RBe,replaceEnvVariables:()=>Fv,sortMap:()=>kn,tryParseOptionalBoolean:()=>Nv,validateEnum:()=>DBe});var Wq=ge(is()),zq=ge(gg()),_q=ge(ri()),xv=ge(require("stream"));function kBe(r){return!!(_q.default.valid(r)&&r.match(/^[^-]+(-rc\.[0-9]+)?$/))}function PBe(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kv(r){}function Pv(r){throw new Error(`Assertion failed: Unexpected object '${r}'`)}function DBe(r,e){let t=Object.values(r);if(!t.includes(e))throw new Pe(`Invalid value for enumeration: ${JSON.stringify(e)} (expected one of ${t.map(i=>JSON.stringify(i)).join(", ")})`);return e}function zo(r,e){let t=[];for(let i of r){let n=e(i);n!==Vq&&t.push(n)}return t}var Vq=Symbol();zo.skip=Vq;function $p(r,e){for(let t of r){let i=e(t);if(i!==Xq)return i}}var Xq=Symbol();$p.skip=Xq;function Dv(r){return typeof r=="object"&&r!==null}async function go(r){let e=await Promise.allSettled(r),t=[];for(let i of e){if(i.status==="rejected")throw i.reason;t.push(i.value)}return t}function ky(r){if(r instanceof Map&&(r=Object.fromEntries(r)),Dv(r))for(let e of Object.keys(r)){let t=r[e];Dv(t)&&(r[e]=ky(t))}return r}function _a(r,e,t){let i=r.get(e);return typeof i=="undefined"&&r.set(e,i=t()),i}function Fg(r,e){let t=r.get(e);return typeof t=="undefined"&&r.set(e,t=[]),t}function Nc(r,e){let t=r.get(e);return typeof t=="undefined"&&r.set(e,t=new Set),t}function Ng(r,e){let t=r.get(e);return typeof t=="undefined"&&r.set(e,t=new Map),t}async function RBe(r,e){if(e==null)return await r();try{return await r()}finally{await e()}}async function Lg(r,e){try{return await r()}catch(t){throw t.message=e(t.message),t}}function Rv(r,e){try{return r()}catch(t){throw t.message=e(t.message),t}}async function Tg(r){return await new Promise((e,t)=>{let i=[];r.on("error",n=>{t(n)}),r.on("data",n=>{i.push(n)}),r.on("end",()=>{e(Buffer.concat(i))})})}var Zq=class extends xv.Transform{constructor(){super(...arguments);this.chunks=[]}_transform(e,t,i){if(t!=="buffer"||!Buffer.isBuffer(e))throw new Error("Assertion failed: BufferStream only accept buffers");this.chunks.push(e),i(null,null)}_flush(e){e(null,Buffer.concat(this.chunks))}};function FBe(){let r,e;return{promise:new Promise((i,n)=>{r=i,e=n}),resolve:r,reject:e}}var $q=class{constructor(e){this.deferred=new Map;this.promises=new Map;this.limit=(0,zq.default)(e)}set(e,t){let i=this.deferred.get(e);typeof i=="undefined"&&this.deferred.set(e,i=FBe());let n=this.limit(()=>t());return this.promises.set(e,n),n.then(()=>{this.promises.get(e)===n&&i.resolve()},s=>{this.promises.get(e)===n&&i.reject(s)}),i.promise}reduce(e,t){var n;let i=(n=this.promises.get(e))!=null?n:Promise.resolve();this.set(e,()=>t(i))}async wait(){await Promise.all(this.promises.values())}},eJ=class extends xv.Transform{constructor(e=Buffer.alloc(0)){super();this.active=!0;this.ifEmpty=e}_transform(e,t,i){if(t!=="buffer"||!Buffer.isBuffer(e))throw new Error("Assertion failed: DefaultStream only accept buffers");this.active=!1,i(null,e)}_flush(e){this.active&&this.ifEmpty.length>0?e(null,this.ifEmpty):e(null)}},ed=eval("require");function tJ(r){return ed(H.fromPortablePath(r))}function rJ(path){let physicalPath=H.fromPortablePath(path),currentCacheEntry=ed.cache[physicalPath];delete ed.cache[physicalPath];let result;try{result=tJ(physicalPath);let freshCacheEntry=ed.cache[physicalPath],dynamicModule=eval("module"),freshCacheIndex=dynamicModule.children.indexOf(freshCacheEntry);freshCacheIndex!==-1&&dynamicModule.children.splice(freshCacheIndex,1)}finally{ed.cache[physicalPath]=currentCacheEntry}return result}var iJ=new Map;function NBe(r){let e=iJ.get(r),t=K.statSync(r);if((e==null?void 0:e.mtime)===t.mtimeMs)return e.instance;let i=rJ(r);return iJ.set(r,{mtime:t.mtimeMs,instance:i}),i}var Lc;(function(i){i[i.NoCache=0]="NoCache",i[i.FsTime=1]="FsTime",i[i.Node=2]="Node"})(Lc||(Lc={}));function Og(r,{cachingStrategy:e=2}={}){switch(e){case 0:return rJ(r);case 1:return NBe(r);case 2:return tJ(r);default:throw new Error("Unsupported caching strategy")}}function kn(r,e){let t=Array.from(r);Array.isArray(e)||(e=[e]);let i=[];for(let s of e)i.push(t.map(o=>s(o)));let n=t.map((s,o)=>o);return n.sort((s,o)=>{for(let a of i){let l=a[s]a[o]?1:0;if(l!==0)return l}return 0}),n.map(s=>t[s])}function LBe(r){return r.length===0?null:r.map(e=>`(${Wq.default.makeRe(e,{windows:!1,dot:!0}).source})`).join("|")}function Fv(r,{env:e}){let t=/\${(?[\d\w_]+)(?:)?(?:-(?[^}]*))?}/g;return r.replace(t,(...i)=>{let{variableName:n,colon:s,fallback:o}=i[i.length-1],a=Object.prototype.hasOwnProperty.call(e,n),l=e[n];if(l||a&&!s)return l;if(o!=null)return o;throw new Pe(`Environment variable not found (${n})`)})}function td(r){switch(r){case"true":case"1":case 1:case!0:return!0;case"false":case"0":case 0:case!1:return!1;default:throw new Error(`Couldn't parse "${r}" as a boolean`)}}function nJ(r){return typeof r=="undefined"?r:td(r)}function Nv(r){try{return nJ(r)}catch{return null}}function TBe(r){return!!(H.isAbsolute(r)||r.match(/^(\.{1,2}|~)\//))}var Qt;(function(t){t.HARD="HARD",t.SOFT="SOFT"})(Qt||(Qt={}));var wi;(function(i){i.Dependency="Dependency",i.PeerDependency="PeerDependency",i.PeerDependencyMeta="PeerDependencyMeta"})(wi||(wi={}));var qi;(function(i){i.Inactive="inactive",i.Redundant="redundant",i.Active="active"})(qi||(qi={}));var qe={NO_HINT:"NO_HINT",NULL:"NULL",SCOPE:"SCOPE",NAME:"NAME",RANGE:"RANGE",REFERENCE:"REFERENCE",NUMBER:"NUMBER",PATH:"PATH",URL:"URL",ADDED:"ADDED",REMOVED:"REMOVED",CODE:"CODE",DURATION:"DURATION",SIZE:"SIZE",IDENT:"IDENT",DESCRIPTOR:"DESCRIPTOR",LOCATOR:"LOCATOR",RESOLUTION:"RESOLUTION",DEPENDENT:"DEPENDENT",PACKAGE_EXTENSION:"PACKAGE_EXTENSION",SETTING:"SETTING",MARKDOWN:"MARKDOWN"},Tc;(function(e){e[e.BOLD=2]="BOLD"})(Tc||(Tc={}));var Ov=id.default.GITHUB_ACTIONS?{level:2}:rd.default.supportsColor?{level:rd.default.supportsColor.level}:{level:0},Py=Ov.level!==0,Mv=Py&&!id.default.GITHUB_ACTIONS&&!id.default.CIRCLE&&!id.default.GITLAB,Kv=new rd.default.Instance(Ov),OBe=new Map([[qe.NO_HINT,null],[qe.NULL,["#a853b5",129]],[qe.SCOPE,["#d75f00",166]],[qe.NAME,["#d7875f",173]],[qe.RANGE,["#00afaf",37]],[qe.REFERENCE,["#87afff",111]],[qe.NUMBER,["#ffd700",220]],[qe.PATH,["#d75fd7",170]],[qe.URL,["#d75fd7",170]],[qe.ADDED,["#5faf00",70]],[qe.REMOVED,["#d70000",160]],[qe.CODE,["#87afff",111]],[qe.SIZE,["#ffd700",220]]]),Fs=r=>r,Dy={[qe.NUMBER]:Fs({pretty:(r,e)=>`${e}`,json:r=>r}),[qe.IDENT]:Fs({pretty:(r,e)=>fi(r,e),json:r=>Ot(r)}),[qe.LOCATOR]:Fs({pretty:(r,e)=>It(r,e),json:r=>Rs(r)}),[qe.DESCRIPTOR]:Fs({pretty:(r,e)=>sr(r,e),json:r=>Pn(r)}),[qe.RESOLUTION]:Fs({pretty:(r,{descriptor:e,locator:t})=>Tv(r,e,t),json:({descriptor:r,locator:e})=>({descriptor:Pn(r),locator:e!==null?Rs(e):null})}),[qe.DEPENDENT]:Fs({pretty:(r,{locator:e,descriptor:t})=>Lv(r,e,t),json:({locator:r,descriptor:e})=>({locator:Rs(r),descriptor:Pn(e)})}),[qe.PACKAGE_EXTENSION]:Fs({pretty:(r,e)=>{switch(e.type){case wi.Dependency:return`${fi(r,e.parentDescriptor)} \u27A4 ${ns(r,"dependencies",qe.CODE)} \u27A4 ${fi(r,e.descriptor)}`;case wi.PeerDependency:return`${fi(r,e.parentDescriptor)} \u27A4 ${ns(r,"peerDependencies",qe.CODE)} \u27A4 ${fi(r,e.descriptor)}`;case wi.PeerDependencyMeta:return`${fi(r,e.parentDescriptor)} \u27A4 ${ns(r,"peerDependenciesMeta",qe.CODE)} \u27A4 ${fi(r,An(e.selector))} \u27A4 ${ns(r,e.key,qe.CODE)}`;default:throw new Error(`Assertion failed: Unsupported package extension type: ${e.type}`)}},json:r=>{switch(r.type){case wi.Dependency:return`${Ot(r.parentDescriptor)} > ${Ot(r.descriptor)}`;case wi.PeerDependency:return`${Ot(r.parentDescriptor)} >> ${Ot(r.descriptor)}`;case wi.PeerDependencyMeta:return`${Ot(r.parentDescriptor)} >> ${r.selector} / ${r.key}`;default:throw new Error(`Assertion failed: Unsupported package extension type: ${r.type}`)}}}),[qe.SETTING]:Fs({pretty:(r,e)=>(r.get(e),Mg(r,ns(r,e,qe.CODE),`https://yarnpkg.com/configuration/yarnrc#${e}`)),json:r=>r}),[qe.DURATION]:Fs({pretty:(r,e)=>{if(e>1e3*60){let t=Math.floor(e/1e3/60),i=Math.ceil((e-t*60*1e3)/1e3);return i===0?`${t}m`:`${t}m ${i}s`}else{let t=Math.floor(e/1e3),i=e-t*1e3;return i===0?`${t}s`:`${t}s ${i}ms`}},json:r=>r}),[qe.SIZE]:Fs({pretty:(r,e)=>{let t=["KB","MB","GB","TB"],i=t.length;for(;i>1&&e<1024**i;)i-=1;let n=1024**i,s=Math.floor(e*100/n)/100;return ns(r,`${s} ${t[i-1]}`,qe.NUMBER)},json:r=>r}),[qe.PATH]:Fs({pretty:(r,e)=>ns(r,H.fromPortablePath(e),qe.PATH),json:r=>H.fromPortablePath(r)}),[qe.MARKDOWN]:Fs({pretty:(r,{text:e,format:t,paragraphs:i})=>Ui(e,{format:t,paragraphs:i}),json:({text:r})=>r})};function fo(r,e){return[e,r]}function Ry(r,e,t){return r.get("enableColors")&&t&2&&(e=rd.default.bold(e)),e}function ns(r,e,t){if(!r.get("enableColors"))return e;let i=OBe.get(t);if(i===null)return e;let n=typeof i=="undefined"?t:Ov.level>=3?i[0]:i[1],s=typeof n=="number"?Kv.ansi256(n):n.startsWith("#")?Kv.hex(n):Kv[n];if(typeof s!="function")throw new Error(`Invalid format type ${n}`);return s(e)}var MBe=!!process.env.KONSOLE_VERSION;function Mg(r,e,t){return r.get("enableHyperlinks")?MBe?`]8;;${t}\\${e}]8;;\\`:`]8;;${t}\x07${e}]8;;\x07`:e}function tt(r,e,t){if(e===null)return ns(r,"null",qe.NULL);if(Object.prototype.hasOwnProperty.call(Dy,t))return Dy[t].pretty(r,e);if(typeof e!="string")throw new Error(`Assertion failed: Expected the value to be a string, got ${typeof e}`);return ns(r,e,t)}function Uv(r,e,t,{separator:i=", "}={}){return[...e].map(n=>tt(r,n,t)).join(i)}function Oc(r,e){if(r===null)return null;if(Object.prototype.hasOwnProperty.call(Dy,e))return kv(e),Dy[e].json(r);if(typeof r!="string")throw new Error(`Assertion failed: Expected the value to be a string, got ${typeof r}`);return r}function KBe(r,e,[t,i]){return r?Oc(t,i):tt(e,t,i)}function Hv(r){return{Check:ns(r,"\u2713","green"),Cross:ns(r,"\u2718","red"),Question:ns(r,"?","cyan")}}function _o(r,{label:e,value:[t,i]}){return`${tt(r,e,qe.CODE)}: ${tt(r,t,i)}`}var ho;(function(n){n.Error="error",n.Warning="warning",n.Info="info",n.Discard="discard"})(ho||(ho={}));function nd(r,{configuration:e}){let t=e.get("logFilters"),i=new Map,n=new Map,s=[];for(let g of t){let f=g.get("level");if(typeof f=="undefined")continue;let h=g.get("code");typeof h!="undefined"&&i.set(h,f);let p=g.get("text");typeof p!="undefined"&&n.set(p,f);let m=g.get("pattern");typeof m!="undefined"&&s.push([sJ.default.matcher(m,{contains:!0}),f])}s.reverse();let o=(g,f,h)=>{if(g===null||g===X.UNNAMED)return h;let p=n.size>0||s.length>0?(0,oJ.default)(f):f;if(n.size>0){let m=n.get(p);if(typeof m!="undefined")return m!=null?m:h}if(s.length>0){for(let[m,y]of s)if(m(p))return y!=null?y:h}if(i.size>0){let m=i.get(_A(g));if(typeof m!="undefined")return m!=null?m:h}return h},a=r.reportInfo,l=r.reportWarning,c=r.reportError,u=function(g,f,h,p){switch(o(f,h,p)){case ho.Info:a.call(g,f,h);break;case ho.Warning:l.call(g,f!=null?f:X.UNNAMED,h);break;case ho.Error:c.call(g,f!=null?f:X.UNNAMED,h);break}};r.reportInfo=function(...g){return u(this,...g,ho.Info)},r.reportWarning=function(...g){return u(this,...g,ho.Warning)},r.reportError=function(...g){return u(this,...g,ho.Error)}}var Dn={};ft(Dn,{checksumFile:()=>sw,checksumPattern:()=>ow,makeHash:()=>ln});var nw=ge(require("crypto")),zx=ge(Wx());function ln(...r){let e=(0,nw.createHash)("sha512"),t="";for(let i of r)typeof i=="string"?t+=i:i&&(t&&(e.update(t),t=""),e.update(i));return t&&e.update(t),e.digest("hex")}async function sw(r,{baseFs:e,algorithm:t}={baseFs:K,algorithm:"sha512"}){let i=await e.openPromise(r,"r");try{let n=65536,s=Buffer.allocUnsafeSlow(n),o=(0,nw.createHash)(t),a=0;for(;(a=await e.readPromise(i,s,0,n))!==0;)o.update(a===n?s:s.slice(0,a));return o.digest("hex")}finally{await e.closePromise(i)}}async function ow(r,{cwd:e}){let i=(await(0,zx.default)(r,{cwd:H.fromPortablePath(e),expandDirectories:!1,onlyDirectories:!0,unique:!0})).map(a=>`${a}/**/*`),n=await(0,zx.default)([r,...i],{cwd:H.fromPortablePath(e),expandDirectories:!1,onlyFiles:!1,unique:!0});n.sort();let s=await Promise.all(n.map(async a=>{let l=[Buffer.from(a)],c=H.toPortablePath(a),u=await K.lstatPromise(c);return u.isSymbolicLink()?l.push(Buffer.from(await K.readlinkPromise(c))):u.isFile()&&l.push(await K.readFilePromise(c)),l.join("\0")})),o=(0,nw.createHash)("sha512");for(let a of s)o.update(a);return o.digest("hex")}var Ad="virtual:",tSe=5,GW=/(os|cpu|libc)=([a-z0-9_-]+)/,rSe=(0,jW.makeParser)(GW);function $o(r,e){if(r==null?void 0:r.startsWith("@"))throw new Error("Invalid scope: don't prefix it with '@'");return{identHash:ln(r,e),scope:r,name:e}}function rr(r,e){return{identHash:r.identHash,scope:r.scope,name:r.name,descriptorHash:ln(r.identHash,e),range:e}}function cn(r,e){return{identHash:r.identHash,scope:r.scope,name:r.name,locatorHash:ln(r.identHash,e),reference:e}}function iSe(r){return{identHash:r.identHash,scope:r.scope,name:r.name}}function Aw(r){return{identHash:r.identHash,scope:r.scope,name:r.name,locatorHash:r.descriptorHash,reference:r.range}}function _x(r){return{identHash:r.identHash,scope:r.scope,name:r.name,descriptorHash:r.locatorHash,range:r.reference}}function nSe(r){return{identHash:r.identHash,scope:r.scope,name:r.name,locatorHash:r.locatorHash,reference:r.reference}}function ld(r,e){return{identHash:e.identHash,scope:e.scope,name:e.name,locatorHash:e.locatorHash,reference:e.reference,version:r.version,languageName:r.languageName,linkType:r.linkType,conditions:r.conditions,dependencies:new Map(r.dependencies),peerDependencies:new Map(r.peerDependencies),dependenciesMeta:new Map(r.dependenciesMeta),peerDependenciesMeta:new Map(r.peerDependenciesMeta),bin:new Map(r.bin)}}function cd(r){return ld(r,r)}function Vx(r,e){if(e.includes("#"))throw new Error("Invalid entropy");return rr(r,`virtual:${e}#${r.range}`)}function Xx(r,e){if(e.includes("#"))throw new Error("Invalid entropy");return ld(r,cn(r,`virtual:${e}#${r.reference}`))}function Al(r){return r.range.startsWith(Ad)}function ea(r){return r.reference.startsWith(Ad)}function ud(r){if(!Al(r))throw new Error("Not a virtual descriptor");return rr(r,r.range.replace(/^[^#]*#/,""))}function gd(r){if(!ea(r))throw new Error("Not a virtual descriptor");return cn(r,r.reference.replace(/^[^#]*#/,""))}function sSe(r,e){return r.range.includes("::")?r:rr(r,`${r.range}::${Yg.default.stringify(e)}`)}function oSe(r,e){return r.reference.includes("::")?r:cn(r,`${r.reference}::${Yg.default.stringify(e)}`)}function fd(r,e){return r.identHash===e.identHash}function YW(r,e){return r.descriptorHash===e.descriptorHash}function hd(r,e){return r.locatorHash===e.locatorHash}function aSe(r,e){if(!ea(r))throw new Error("Invalid package type");if(!ea(e))throw new Error("Invalid package type");if(!fd(r,e)||r.dependencies.size!==e.dependencies.size)return!1;for(let t of r.dependencies.values()){let i=e.dependencies.get(t.identHash);if(!i||!YW(t,i))return!1}return!0}function An(r){let e=qW(r);if(!e)throw new Error(`Invalid ident (${r})`);return e}function qW(r){let e=r.match(/^(?:@([^/]+?)\/)?([^/]+)$/);if(!e)return null;let[,t,i]=e,n=typeof t!="undefined"?t:null;return $o(n,i)}function ll(r,e=!1){let t=pd(r,e);if(!t)throw new Error(`Invalid descriptor (${r})`);return t}function pd(r,e=!1){let t=e?r.match(/^(?:@([^/]+?)\/)?([^/]+?)(?:@(.+))$/):r.match(/^(?:@([^/]+?)\/)?([^/]+?)(?:@(.+))?$/);if(!t)return null;let[,i,n,s]=t;if(s==="unknown")throw new Error(`Invalid range (${r})`);let o=typeof i!="undefined"?i:null,a=typeof s!="undefined"?s:"unknown";return rr($o(o,n),a)}function Yc(r,e=!1){let t=lw(r,e);if(!t)throw new Error(`Invalid locator (${r})`);return t}function lw(r,e=!1){let t=e?r.match(/^(?:@([^/]+?)\/)?([^/]+?)(?:@(.+))$/):r.match(/^(?:@([^/]+?)\/)?([^/]+?)(?:@(.+))?$/);if(!t)return null;let[,i,n,s]=t;if(s==="unknown")throw new Error(`Invalid reference (${r})`);let o=typeof i!="undefined"?i:null,a=typeof s!="undefined"?s:"unknown";return cn($o(o,n),a)}function qg(r,e){let t=r.match(/^([^#:]*:)?((?:(?!::)[^#])*)(?:#((?:(?!::).)*))?(?:::(.*))?$/);if(t===null)throw new Error(`Invalid range (${r})`);let i=typeof t[1]!="undefined"?t[1]:null;if(typeof(e==null?void 0:e.requireProtocol)=="string"&&i!==e.requireProtocol)throw new Error(`Invalid protocol (${i})`);if((e==null?void 0:e.requireProtocol)&&i===null)throw new Error(`Missing protocol (${i})`);let n=typeof t[3]!="undefined"?decodeURIComponent(t[2]):null;if((e==null?void 0:e.requireSource)&&n===null)throw new Error(`Missing source (${r})`);let s=typeof t[3]!="undefined"?decodeURIComponent(t[3]):decodeURIComponent(t[2]),o=(e==null?void 0:e.parseSelector)?Yg.default.parse(s):s,a=typeof t[4]!="undefined"?Yg.default.parse(t[4]):null;return{protocol:i,source:n,selector:o,params:a}}function ASe(r,{protocol:e}){let{selector:t,params:i}=qg(r,{requireProtocol:e,requireBindings:!0});if(typeof i.locator!="string")throw new Error(`Assertion failed: Invalid bindings for ${r}`);return{parentLocator:Yc(i.locator,!0),path:t}}function JW(r){return r=r.replace(/%/g,"%25"),r=r.replace(/:/g,"%3A"),r=r.replace(/#/g,"%23"),r}function lSe(r){return r===null?!1:Object.entries(r).length>0}function cw({protocol:r,source:e,selector:t,params:i}){let n="";return r!==null&&(n+=`${r}`),e!==null&&(n+=`${JW(e)}#`),n+=JW(t),lSe(i)&&(n+=`::${Yg.default.stringify(i)}`),n}function cSe(r){let{params:e,protocol:t,source:i,selector:n}=qg(r);for(let s in e)s.startsWith("__")&&delete e[s];return cw({protocol:t,source:i,params:e,selector:n})}function Ot(r){return r.scope?`@${r.scope}/${r.name}`:`${r.name}`}function Pn(r){return r.scope?`@${r.scope}/${r.name}@${r.range}`:`${r.name}@${r.range}`}function Rs(r){return r.scope?`@${r.scope}/${r.name}@${r.reference}`:`${r.name}@${r.reference}`}function Zx(r){return r.scope!==null?`@${r.scope}-${r.name}`:r.name}function Jg(r){let{protocol:e,selector:t}=qg(r.reference),i=e!==null?e.replace(/:$/,""):"exotic",n=HW.default.valid(t),s=n!==null?`${i}-${n}`:`${i}`,o=10,a=r.scope?`${Zx(r)}-${s}-${r.locatorHash.slice(0,o)}`:`${Zx(r)}-${s}-${r.locatorHash.slice(0,o)}`;return Jr(a)}function fi(r,e){return e.scope?`${tt(r,`@${e.scope}/`,qe.SCOPE)}${tt(r,e.name,qe.NAME)}`:`${tt(r,e.name,qe.NAME)}`}function uw(r){if(r.startsWith(Ad)){let e=uw(r.substring(r.indexOf("#")+1)),t=r.substring(Ad.length,Ad.length+tSe);return`${e} [${t}]`}else return r.replace(/\?.*/,"?[...]")}function aw(r,e){return`${tt(r,uw(e),qe.RANGE)}`}function sr(r,e){return`${fi(r,e)}${tt(r,"@",qe.RANGE)}${aw(r,e.range)}`}function dd(r,e){return`${tt(r,uw(e),qe.REFERENCE)}`}function It(r,e){return`${fi(r,e)}${tt(r,"@",qe.REFERENCE)}${dd(r,e.reference)}`}function $x(r){return`${Ot(r)}@${uw(r.reference)}`}function Wg(r){return kn(r,[e=>Ot(e),e=>e.range])}function Cd(r,e){return fi(r,e.locator)}function Tv(r,e,t){let i=Al(e)?ud(e):e;return t===null?`${sr(r,i)} \u2192 ${Hv(r).Cross}`:i.identHash===t.identHash?`${sr(r,i)} \u2192 ${dd(r,t.reference)}`:`${sr(r,i)} \u2192 ${It(r,t)}`}function Lv(r,e,t){return t===null?`${It(r,e)}`:`${It(r,e)} (via ${aw(r,t.range)})`}function ek(r){return`node_modules/${Ot(r)}`}function gw(r,e){return r.conditions?rSe(r.conditions,t=>{let[,i,n]=t.match(GW),s=e[i];return s?s.includes(n):!0}):!0}var WW={hooks:{reduceDependency:(r,e,t,i,{resolver:n,resolveOptions:s})=>{for(let{pattern:o,reference:a}of e.topLevelWorkspace.manifest.resolutions){if(o.from&&o.from.fullName!==Ot(t)||o.from&&o.from.description&&o.from.description!==t.reference||o.descriptor.fullName!==Ot(r)||o.descriptor.description&&o.descriptor.description!==r.range)continue;return n.bindDescriptor(rr(r,a),e.topLevelWorkspace.anchoredLocator,s)}return r},validateProject:async(r,e)=>{for(let t of r.workspaces){let i=Cd(r.configuration,t);await r.configuration.triggerHook(n=>n.validateWorkspace,t,{reportWarning:(n,s)=>e.reportWarning(n,`${i}: ${s}`),reportError:(n,s)=>e.reportError(n,`${i}: ${s}`)})}},validateWorkspace:async(r,e)=>{let{manifest:t}=r;t.resolutions.length&&r.cwd!==r.project.cwd&&t.errors.push(new Error("Resolutions field will be ignored"));for(let i of t.errors)e.reportWarning(X.INVALID_MANIFEST,i.message)}}};var XW=ge(ri());var md=class{supportsDescriptor(e,t){return!!(e.range.startsWith(md.protocol)||t.project.tryWorkspaceByDescriptor(e)!==null)}supportsLocator(e,t){return!!e.reference.startsWith(md.protocol)}shouldPersistResolution(e,t){return!1}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){return[i.project.getWorkspaceByDescriptor(e).anchoredLocator]}async getSatisfying(e,t,i){return null}async resolve(e,t){let i=t.project.getWorkspaceByCwd(e.reference.slice(md.protocol.length));return te(N({},e),{version:i.manifest.version||"0.0.0",languageName:"unknown",linkType:Qt.SOFT,conditions:null,dependencies:new Map([...i.manifest.dependencies,...i.manifest.devDependencies]),peerDependencies:new Map([...i.manifest.peerDependencies]),dependenciesMeta:i.manifest.dependenciesMeta,peerDependenciesMeta:i.manifest.peerDependenciesMeta,bin:i.manifest.bin})}},oi=md;oi.protocol="workspace:";var Wt={};ft(Wt,{SemVer:()=>zW.SemVer,clean:()=>gSe,satisfiesWithPrereleases:()=>qc,validRange:()=>po});var fw=ge(ri()),zW=ge(ri()),_W=new Map;function qc(r,e,t=!1){if(!r)return!1;let i=`${e}${t}`,n=_W.get(i);if(typeof n=="undefined")try{n=new fw.default.Range(e,{includePrerelease:!0,loose:t})}catch{return!1}finally{_W.set(i,n||null)}else if(n===null)return!1;let s;try{s=new fw.default.SemVer(r,n)}catch(o){return!1}return n.test(s)?!0:(s.prerelease&&(s.prerelease=[]),n.set.some(o=>{for(let a of o)a.semver.prerelease&&(a.semver.prerelease=[]);return o.every(a=>a.test(s))}))}var VW=new Map;function po(r){if(r.indexOf(":")!==-1)return null;let e=VW.get(r);if(typeof e!="undefined")return e;try{e=new fw.default.Range(r)}catch{e=null}return VW.set(r,e),e}var uSe=/^(?:[\sv=]*?)((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\s*)$/;function gSe(r){let e=uSe.exec(r);return e?e[1]:null}var cl=class{constructor(){this.indent=" ";this.name=null;this.version=null;this.os=null;this.cpu=null;this.libc=null;this.type=null;this.packageManager=null;this.private=!1;this.license=null;this.main=null;this.module=null;this.browser=null;this.languageName=null;this.bin=new Map;this.scripts=new Map;this.dependencies=new Map;this.devDependencies=new Map;this.peerDependencies=new Map;this.workspaceDefinitions=[];this.dependenciesMeta=new Map;this.peerDependenciesMeta=new Map;this.resolutions=[];this.files=null;this.publishConfig=null;this.installConfig=null;this.preferUnplugged=null;this.raw={};this.errors=[]}static async tryFind(e,{baseFs:t=new ar}={}){let i=k.join(e,"package.json");try{return await cl.fromFile(i,{baseFs:t})}catch(n){if(n.code==="ENOENT")return null;throw n}}static async find(e,{baseFs:t}={}){let i=await cl.tryFind(e,{baseFs:t});if(i===null)throw new Error("Manifest not found");return i}static async fromFile(e,{baseFs:t=new ar}={}){let i=new cl;return await i.loadFile(e,{baseFs:t}),i}static fromText(e){let t=new cl;return t.loadFromText(e),t}static isManifestFieldCompatible(e,t){if(e===null)return!0;let i=!0,n=!1;for(let s of e)if(s[0]==="!"){if(n=!0,t===s.slice(1))return!1}else if(i=!1,s===t)return!0;return n&&i}loadFromText(e){let t;try{t=JSON.parse($W(e)||"{}")}catch(i){throw i.message+=` (when parsing ${e})`,i}this.load(t),this.indent=ZW(e)}async loadFile(e,{baseFs:t=new ar}){let i=await t.readFilePromise(e,"utf8"),n;try{n=JSON.parse($W(i)||"{}")}catch(s){throw s.message+=` (when parsing ${e})`,s}this.load(n),this.indent=ZW(i)}load(e,{yamlCompatibilityMode:t=!1}={}){if(typeof e!="object"||e===null)throw new Error(`Utterly invalid manifest data (${e})`);this.raw=e;let i=[];if(this.name=null,typeof e.name=="string")try{this.name=An(e.name)}catch(s){i.push(new Error("Parsing failed for the 'name' field"))}if(typeof e.version=="string"?this.version=e.version:this.version=null,Array.isArray(e.os)){let s=[];this.os=s;for(let o of e.os)typeof o!="string"?i.push(new Error("Parsing failed for the 'os' field")):s.push(o)}else this.os=null;if(Array.isArray(e.cpu)){let s=[];this.cpu=s;for(let o of e.cpu)typeof o!="string"?i.push(new Error("Parsing failed for the 'cpu' field")):s.push(o)}else this.cpu=null;if(Array.isArray(e.libc)){let s=[];this.libc=s;for(let o of e.libc)typeof o!="string"?i.push(new Error("Parsing failed for the 'libc' field")):s.push(o)}else this.libc=null;if(typeof e.type=="string"?this.type=e.type:this.type=null,typeof e.packageManager=="string"?this.packageManager=e.packageManager:this.packageManager=null,typeof e.private=="boolean"?this.private=e.private:this.private=!1,typeof e.license=="string"?this.license=e.license:this.license=null,typeof e.languageName=="string"?this.languageName=e.languageName:this.languageName=null,typeof e.main=="string"?this.main=un(e.main):this.main=null,typeof e.module=="string"?this.module=un(e.module):this.module=null,e.browser!=null)if(typeof e.browser=="string")this.browser=un(e.browser);else{this.browser=new Map;for(let[s,o]of Object.entries(e.browser))this.browser.set(un(s),typeof o=="string"?un(o):o)}else this.browser=null;if(this.bin=new Map,typeof e.bin=="string")this.name!==null?this.bin.set(this.name.name,un(e.bin)):i.push(new Error("String bin field, but no attached package name"));else if(typeof e.bin=="object"&&e.bin!==null)for(let[s,o]of Object.entries(e.bin)){if(typeof o!="string"){i.push(new Error(`Invalid bin definition for '${s}'`));continue}let a=An(s);this.bin.set(a.name,un(o))}if(this.scripts=new Map,typeof e.scripts=="object"&&e.scripts!==null)for(let[s,o]of Object.entries(e.scripts)){if(typeof o!="string"){i.push(new Error(`Invalid script definition for '${s}'`));continue}this.scripts.set(s,o)}if(this.dependencies=new Map,typeof e.dependencies=="object"&&e.dependencies!==null)for(let[s,o]of Object.entries(e.dependencies)){if(typeof o!="string"){i.push(new Error(`Invalid dependency range for '${s}'`));continue}let a;try{a=An(s)}catch(c){i.push(new Error(`Parsing failed for the dependency name '${s}'`));continue}let l=rr(a,o);this.dependencies.set(l.identHash,l)}if(this.devDependencies=new Map,typeof e.devDependencies=="object"&&e.devDependencies!==null)for(let[s,o]of Object.entries(e.devDependencies)){if(typeof o!="string"){i.push(new Error(`Invalid dependency range for '${s}'`));continue}let a;try{a=An(s)}catch(c){i.push(new Error(`Parsing failed for the dependency name '${s}'`));continue}let l=rr(a,o);this.devDependencies.set(l.identHash,l)}if(this.peerDependencies=new Map,typeof e.peerDependencies=="object"&&e.peerDependencies!==null)for(let[s,o]of Object.entries(e.peerDependencies)){let a;try{a=An(s)}catch(c){i.push(new Error(`Parsing failed for the dependency name '${s}'`));continue}(typeof o!="string"||!o.startsWith(oi.protocol)&&!po(o))&&(i.push(new Error(`Invalid dependency range for '${s}'`)),o="*");let l=rr(a,o);this.peerDependencies.set(l.identHash,l)}typeof e.workspaces=="object"&&e.workspaces!==null&&e.workspaces.nohoist&&i.push(new Error("'nohoist' is deprecated, please use 'installConfig.hoistingLimits' instead"));let n=Array.isArray(e.workspaces)?e.workspaces:typeof e.workspaces=="object"&&e.workspaces!==null&&Array.isArray(e.workspaces.packages)?e.workspaces.packages:[];this.workspaceDefinitions=[];for(let s of n){if(typeof s!="string"){i.push(new Error(`Invalid workspace definition for '${s}'`));continue}this.workspaceDefinitions.push({pattern:s})}if(this.dependenciesMeta=new Map,typeof e.dependenciesMeta=="object"&&e.dependenciesMeta!==null)for(let[s,o]of Object.entries(e.dependenciesMeta)){if(typeof o!="object"||o===null){i.push(new Error(`Invalid meta field for '${s}`));continue}let a=ll(s),l=this.ensureDependencyMeta(a),c=hw(o.built,{yamlCompatibilityMode:t});if(c===null){i.push(new Error(`Invalid built meta field for '${s}'`));continue}let u=hw(o.optional,{yamlCompatibilityMode:t});if(u===null){i.push(new Error(`Invalid optional meta field for '${s}'`));continue}let g=hw(o.unplugged,{yamlCompatibilityMode:t});if(g===null){i.push(new Error(`Invalid unplugged meta field for '${s}'`));continue}Object.assign(l,{built:c,optional:u,unplugged:g})}if(this.peerDependenciesMeta=new Map,typeof e.peerDependenciesMeta=="object"&&e.peerDependenciesMeta!==null)for(let[s,o]of Object.entries(e.peerDependenciesMeta)){if(typeof o!="object"||o===null){i.push(new Error(`Invalid meta field for '${s}'`));continue}let a=ll(s),l=this.ensurePeerDependencyMeta(a),c=hw(o.optional,{yamlCompatibilityMode:t});if(c===null){i.push(new Error(`Invalid optional meta field for '${s}'`));continue}Object.assign(l,{optional:c})}if(this.resolutions=[],typeof e.resolutions=="object"&&e.resolutions!==null)for(let[s,o]of Object.entries(e.resolutions)){if(typeof o!="string"){i.push(new Error(`Invalid resolution entry for '${s}'`));continue}try{this.resolutions.push({pattern:$E(s),reference:o})}catch(a){i.push(a);continue}}if(Array.isArray(e.files)){this.files=new Set;for(let s of e.files){if(typeof s!="string"){i.push(new Error(`Invalid files entry for '${s}'`));continue}this.files.add(s)}}else this.files=null;if(typeof e.publishConfig=="object"&&e.publishConfig!==null){if(this.publishConfig={},typeof e.publishConfig.access=="string"&&(this.publishConfig.access=e.publishConfig.access),typeof e.publishConfig.main=="string"&&(this.publishConfig.main=un(e.publishConfig.main)),typeof e.publishConfig.module=="string"&&(this.publishConfig.module=un(e.publishConfig.module)),e.publishConfig.browser!=null)if(typeof e.publishConfig.browser=="string")this.publishConfig.browser=un(e.publishConfig.browser);else{this.publishConfig.browser=new Map;for(let[s,o]of Object.entries(e.publishConfig.browser))this.publishConfig.browser.set(un(s),typeof o=="string"?un(o):o)}if(typeof e.publishConfig.registry=="string"&&(this.publishConfig.registry=e.publishConfig.registry),typeof e.publishConfig.bin=="string")this.name!==null?this.publishConfig.bin=new Map([[this.name.name,un(e.publishConfig.bin)]]):i.push(new Error("String bin field, but no attached package name"));else if(typeof e.publishConfig.bin=="object"&&e.publishConfig.bin!==null){this.publishConfig.bin=new Map;for(let[s,o]of Object.entries(e.publishConfig.bin)){if(typeof o!="string"){i.push(new Error(`Invalid bin definition for '${s}'`));continue}this.publishConfig.bin.set(s,un(o))}}if(Array.isArray(e.publishConfig.executableFiles)){this.publishConfig.executableFiles=new Set;for(let s of e.publishConfig.executableFiles){if(typeof s!="string"){i.push(new Error("Invalid executable file definition"));continue}this.publishConfig.executableFiles.add(un(s))}}}else this.publishConfig=null;if(typeof e.installConfig=="object"&&e.installConfig!==null){this.installConfig={};for(let s of Object.keys(e.installConfig))s==="hoistingLimits"?typeof e.installConfig.hoistingLimits=="string"?this.installConfig.hoistingLimits=e.installConfig.hoistingLimits:i.push(new Error("Invalid hoisting limits definition")):s=="selfReferences"?typeof e.installConfig.selfReferences=="boolean"?this.installConfig.selfReferences=e.installConfig.selfReferences:i.push(new Error("Invalid selfReferences definition, must be a boolean value")):i.push(new Error(`Unrecognized installConfig key: ${s}`))}else this.installConfig=null;if(typeof e.optionalDependencies=="object"&&e.optionalDependencies!==null)for(let[s,o]of Object.entries(e.optionalDependencies)){if(typeof o!="string"){i.push(new Error(`Invalid dependency range for '${s}'`));continue}let a;try{a=An(s)}catch(g){i.push(new Error(`Parsing failed for the dependency name '${s}'`));continue}let l=rr(a,o);this.dependencies.set(l.identHash,l);let c=rr(a,"unknown"),u=this.ensureDependencyMeta(c);Object.assign(u,{optional:!0})}typeof e.preferUnplugged=="boolean"?this.preferUnplugged=e.preferUnplugged:this.preferUnplugged=null,this.errors=i}getForScope(e){switch(e){case"dependencies":return this.dependencies;case"devDependencies":return this.devDependencies;case"peerDependencies":return this.peerDependencies;default:throw new Error(`Unsupported value ("${e}")`)}}hasConsumerDependency(e){return!!(this.dependencies.has(e.identHash)||this.peerDependencies.has(e.identHash))}hasHardDependency(e){return!!(this.dependencies.has(e.identHash)||this.devDependencies.has(e.identHash))}hasSoftDependency(e){return!!this.peerDependencies.has(e.identHash)}hasDependency(e){return!!(this.hasHardDependency(e)||this.hasSoftDependency(e))}getConditions(){let e=[];return this.os&&this.os.length>0&&e.push(tk("os",this.os)),this.cpu&&this.cpu.length>0&&e.push(tk("cpu",this.cpu)),this.libc&&this.libc.length>0&&e.push(tk("libc",this.libc)),e.length>0?e.join(" & "):null}isCompatibleWithOS(e){return cl.isManifestFieldCompatible(this.os,e)}isCompatibleWithCPU(e){return cl.isManifestFieldCompatible(this.cpu,e)}ensureDependencyMeta(e){if(e.range!=="unknown"&&!XW.default.valid(e.range))throw new Error(`Invalid meta field range for '${Pn(e)}'`);let t=Ot(e),i=e.range!=="unknown"?e.range:null,n=this.dependenciesMeta.get(t);n||this.dependenciesMeta.set(t,n=new Map);let s=n.get(i);return s||n.set(i,s={}),s}ensurePeerDependencyMeta(e){if(e.range!=="unknown")throw new Error(`Invalid meta field range for '${Pn(e)}'`);let t=Ot(e),i=this.peerDependenciesMeta.get(t);return i||this.peerDependenciesMeta.set(t,i={}),i}setRawField(e,t,{after:i=[]}={}){let n=new Set(i.filter(s=>Object.prototype.hasOwnProperty.call(this.raw,s)));if(n.size===0||Object.prototype.hasOwnProperty.call(this.raw,e))this.raw[e]=t;else{let s=this.raw,o=this.raw={},a=!1;for(let l of Object.keys(s))o[l]=s[l],a||(n.delete(l),n.size===0&&(o[e]=t,a=!0))}}exportTo(e,{compatibilityMode:t=!0}={}){var s;if(Object.assign(e,this.raw),this.name!==null?e.name=Ot(this.name):delete e.name,this.version!==null?e.version=this.version:delete e.version,this.os!==null?e.os=this.os:delete e.os,this.cpu!==null?e.cpu=this.cpu:delete e.cpu,this.type!==null?e.type=this.type:delete e.type,this.packageManager!==null?e.packageManager=this.packageManager:delete e.packageManager,this.private?e.private=!0:delete e.private,this.license!==null?e.license=this.license:delete e.license,this.languageName!==null?e.languageName=this.languageName:delete e.languageName,this.main!==null?e.main=this.main:delete e.main,this.module!==null?e.module=this.module:delete e.module,this.browser!==null){let o=this.browser;typeof o=="string"?e.browser=o:o instanceof Map&&(e.browser=Object.assign({},...Array.from(o.keys()).sort().map(a=>({[a]:o.get(a)}))))}else delete e.browser;this.bin.size===1&&this.name!==null&&this.bin.has(this.name.name)?e.bin=this.bin.get(this.name.name):this.bin.size>0?e.bin=Object.assign({},...Array.from(this.bin.keys()).sort().map(o=>({[o]:this.bin.get(o)}))):delete e.bin,this.workspaceDefinitions.length>0?this.raw.workspaces&&!Array.isArray(this.raw.workspaces)?e.workspaces=te(N({},this.raw.workspaces),{packages:this.workspaceDefinitions.map(({pattern:o})=>o)}):e.workspaces=this.workspaceDefinitions.map(({pattern:o})=>o):this.raw.workspaces&&!Array.isArray(this.raw.workspaces)&&Object.keys(this.raw.workspaces).length>0?e.workspaces=this.raw.workspaces:delete e.workspaces;let i=[],n=[];for(let o of this.dependencies.values()){let a=this.dependenciesMeta.get(Ot(o)),l=!1;if(t&&a){let c=a.get(null);c&&c.optional&&(l=!0)}l?n.push(o):i.push(o)}i.length>0?e.dependencies=Object.assign({},...Wg(i).map(o=>({[Ot(o)]:o.range}))):delete e.dependencies,n.length>0?e.optionalDependencies=Object.assign({},...Wg(n).map(o=>({[Ot(o)]:o.range}))):delete e.optionalDependencies,this.devDependencies.size>0?e.devDependencies=Object.assign({},...Wg(this.devDependencies.values()).map(o=>({[Ot(o)]:o.range}))):delete e.devDependencies,this.peerDependencies.size>0?e.peerDependencies=Object.assign({},...Wg(this.peerDependencies.values()).map(o=>({[Ot(o)]:o.range}))):delete e.peerDependencies,e.dependenciesMeta={};for(let[o,a]of kn(this.dependenciesMeta.entries(),([l,c])=>l))for(let[l,c]of kn(a.entries(),([u,g])=>u!==null?`0${u}`:"1")){let u=l!==null?Pn(rr(An(o),l)):o,g=N({},c);t&&l===null&&delete g.optional,Object.keys(g).length!==0&&(e.dependenciesMeta[u]=g)}if(Object.keys(e.dependenciesMeta).length===0&&delete e.dependenciesMeta,this.peerDependenciesMeta.size>0?e.peerDependenciesMeta=Object.assign({},...kn(this.peerDependenciesMeta.entries(),([o,a])=>o).map(([o,a])=>({[o]:a}))):delete e.peerDependenciesMeta,this.resolutions.length>0?e.resolutions=Object.assign({},...this.resolutions.map(({pattern:o,reference:a})=>({[eI(o)]:a}))):delete e.resolutions,this.files!==null?e.files=Array.from(this.files):delete e.files,this.preferUnplugged!==null?e.preferUnplugged=this.preferUnplugged:delete e.preferUnplugged,this.scripts!==null&&this.scripts.size>0){(s=e.scripts)!=null||(e.scripts={});for(let o of Object.keys(e.scripts))this.scripts.has(o)||delete e.scripts[o];for(let[o,a]of this.scripts.entries())e.scripts[o]=a}else delete e.scripts;return e}},At=cl;At.fileName="package.json",At.allDependencies=["dependencies","devDependencies","peerDependencies"],At.hardDependencies=["dependencies","devDependencies"];function ZW(r){let e=r.match(/^[ \t]+/m);return e?e[0]:" "}function $W(r){return r.charCodeAt(0)===65279?r.slice(1):r}function un(r){return r.replace(/\\/g,"/")}function hw(r,{yamlCompatibilityMode:e}){return e?Nv(r):typeof r=="undefined"||typeof r=="boolean"?r:null}function e4(r,e){let t=e.search(/[^!]/);if(t===-1)return"invalid";let i=t%2==0?"":"!",n=e.slice(t);return`${i}${r}=${n}`}function tk(r,e){return e.length===1?e4(r,e[0]):`(${e.map(t=>e4(r,t)).join(" | ")})`}var D4=ge(P4()),R4=ge(require("stream")),F4=ge(require("string_decoder"));var sve=15,ct=class extends Error{constructor(e,t,i){super(t);this.reportExtra=i;this.reportCode=e}};function ove(r){return typeof r.reportCode!="undefined"}var Ji=class{constructor(){this.reportedInfos=new Set;this.reportedWarnings=new Set;this.reportedErrors=new Set}static progressViaCounter(e){let t=0,i,n=new Promise(l=>{i=l}),s=l=>{let c=i;n=new Promise(u=>{i=u}),t=l,c()},o=(l=0)=>{s(t+1)},a=async function*(){for(;t{t=o}),n=(0,D4.default)(o=>{let a=t;i=new Promise(l=>{t=l}),e=o,a()},1e3/sve),s=async function*(){for(;;)await i,yield{title:e}}();return{[Symbol.asyncIterator](){return s},hasProgress:!1,hasTitle:!0,setTitle:n}}async startProgressPromise(e,t){let i=this.reportProgress(e);try{return await t(e)}finally{i.stop()}}startProgressSync(e,t){let i=this.reportProgress(e);try{return t(e)}finally{i.stop()}}reportInfoOnce(e,t,i){var s;let n=i&&i.key?i.key:t;this.reportedInfos.has(n)||(this.reportedInfos.add(n),this.reportInfo(e,t),(s=i==null?void 0:i.reportExtra)==null||s.call(i,this))}reportWarningOnce(e,t,i){var s;let n=i&&i.key?i.key:t;this.reportedWarnings.has(n)||(this.reportedWarnings.add(n),this.reportWarning(e,t),(s=i==null?void 0:i.reportExtra)==null||s.call(i,this))}reportErrorOnce(e,t,i){var s;let n=i&&i.key?i.key:t;this.reportedErrors.has(n)||(this.reportedErrors.add(n),this.reportError(e,t),(s=i==null?void 0:i.reportExtra)==null||s.call(i,this))}reportExceptionOnce(e){ove(e)?this.reportErrorOnce(e.reportCode,e.message,{key:e,reportExtra:e.reportExtra}):this.reportErrorOnce(X.EXCEPTION,e.stack||e.message,{key:e})}createStreamReporter(e=null){let t=new R4.PassThrough,i=new F4.StringDecoder,n="";return t.on("data",s=>{let o=i.write(s),a;do if(a=o.indexOf(` +`),a!==-1){let l=n+o.substring(0,a);o=o.substring(a+1),n="",e!==null?this.reportInfo(null,`${e} ${l}`):this.reportInfo(null,l)}while(a!==-1);n+=o}),t.on("end",()=>{let s=i.end();s!==""&&(e!==null?this.reportInfo(null,`${e} ${s}`):this.reportInfo(null,s))}),t}};var yd=class{constructor(e){this.fetchers=e}supports(e,t){return!!this.tryFetcher(e,t)}getLocalPath(e,t){return this.getFetcher(e,t).getLocalPath(e,t)}async fetch(e,t){return await this.getFetcher(e,t).fetch(e,t)}tryFetcher(e,t){let i=this.fetchers.find(n=>n.supports(e,t));return i||null}getFetcher(e,t){let i=this.fetchers.find(n=>n.supports(e,t));if(!i)throw new ct(X.FETCHER_NOT_FOUND,`${It(t.project.configuration,e)} isn't supported by any available fetcher`);return i}};var wd=class{constructor(e){this.resolvers=e.filter(t=>t)}supportsDescriptor(e,t){return!!this.tryResolverByDescriptor(e,t)}supportsLocator(e,t){return!!this.tryResolverByLocator(e,t)}shouldPersistResolution(e,t){return this.getResolverByLocator(e,t).shouldPersistResolution(e,t)}bindDescriptor(e,t,i){return this.getResolverByDescriptor(e,i).bindDescriptor(e,t,i)}getResolutionDependencies(e,t){return this.getResolverByDescriptor(e,t).getResolutionDependencies(e,t)}async getCandidates(e,t,i){return await this.getResolverByDescriptor(e,i).getCandidates(e,t,i)}async getSatisfying(e,t,i){return this.getResolverByDescriptor(e,i).getSatisfying(e,t,i)}async resolve(e,t){return await this.getResolverByLocator(e,t).resolve(e,t)}tryResolverByDescriptor(e,t){let i=this.resolvers.find(n=>n.supportsDescriptor(e,t));return i||null}getResolverByDescriptor(e,t){let i=this.resolvers.find(n=>n.supportsDescriptor(e,t));if(!i)throw new Error(`${sr(t.project.configuration,e)} isn't supported by any available resolver`);return i}tryResolverByLocator(e,t){let i=this.resolvers.find(n=>n.supportsLocator(e,t));return i||null}getResolverByLocator(e,t){let i=this.resolvers.find(n=>n.supportsLocator(e,t));if(!i)throw new Error(`${It(t.project.configuration,e)} isn't supported by any available resolver`);return i}};var N4=ge(ri());var zg=/^(?!v)[a-z0-9._-]+$/i,nk=class{supportsDescriptor(e,t){return!!(po(e.range)||zg.test(e.range))}supportsLocator(e,t){return!!(N4.default.valid(e.reference)||zg.test(e.reference))}shouldPersistResolution(e,t){return t.resolver.shouldPersistResolution(this.forwardLocator(e,t),t)}bindDescriptor(e,t,i){return i.resolver.bindDescriptor(this.forwardDescriptor(e,i),t,i)}getResolutionDependencies(e,t){return t.resolver.getResolutionDependencies(this.forwardDescriptor(e,t),t)}async getCandidates(e,t,i){return await i.resolver.getCandidates(this.forwardDescriptor(e,i),t,i)}async getSatisfying(e,t,i){return await i.resolver.getSatisfying(this.forwardDescriptor(e,i),t,i)}async resolve(e,t){let i=await t.resolver.resolve(this.forwardLocator(e,t),t);return ld(i,e)}forwardDescriptor(e,t){return rr(e,`${t.project.configuration.get("defaultProtocol")}${e.range}`)}forwardLocator(e,t){return cn(e,`${t.project.configuration.get("defaultProtocol")}${e.reference}`)}};var Bd=class{supports(e){return!!e.reference.startsWith("virtual:")}getLocalPath(e,t){let i=e.reference.indexOf("#");if(i===-1)throw new Error("Invalid virtual package reference");let n=e.reference.slice(i+1),s=cn(e,n);return t.fetcher.getLocalPath(s,t)}async fetch(e,t){let i=e.reference.indexOf("#");if(i===-1)throw new Error("Invalid virtual package reference");let n=e.reference.slice(i+1),s=cn(e,n),o=await t.fetcher.fetch(s,t);return await this.ensureVirtualLink(e,o,t)}getLocatorFilename(e){return Jg(e)}async ensureVirtualLink(e,t,i){let n=t.packageFs.getRealPath(),s=i.project.configuration.get("virtualFolder"),o=this.getLocatorFilename(e),a=Wr.makeVirtualPath(s,o,n),l=new Na(a,{baseFs:t.packageFs,pathUtils:k});return te(N({},t),{packageFs:l})}};var _g=class{static isVirtualDescriptor(e){return!!e.range.startsWith(_g.protocol)}static isVirtualLocator(e){return!!e.reference.startsWith(_g.protocol)}supportsDescriptor(e,t){return _g.isVirtualDescriptor(e)}supportsLocator(e,t){return _g.isVirtualLocator(e)}shouldPersistResolution(e,t){return!1}bindDescriptor(e,t,i){throw new Error('Assertion failed: calling "bindDescriptor" on a virtual descriptor is unsupported')}getResolutionDependencies(e,t){throw new Error('Assertion failed: calling "getResolutionDependencies" on a virtual descriptor is unsupported')}async getCandidates(e,t,i){throw new Error('Assertion failed: calling "getCandidates" on a virtual descriptor is unsupported')}async getSatisfying(e,t,i){throw new Error('Assertion failed: calling "getSatisfying" on a virtual descriptor is unsupported')}async resolve(e,t){throw new Error('Assertion failed: calling "resolve" on a virtual locator is unsupported')}},pw=_g;pw.protocol="virtual:";var bd=class{supports(e){return!!e.reference.startsWith(oi.protocol)}getLocalPath(e,t){return this.getWorkspace(e,t).cwd}async fetch(e,t){let i=this.getWorkspace(e,t).cwd;return{packageFs:new _t(i),prefixPath:Me.dot,localPath:i}}getWorkspace(e,t){return t.project.getWorkspaceByCwd(e.reference.slice(oi.protocol.length))}};var sk={};ft(sk,{getDefaultGlobalFolder:()=>ak,getHomeFolder:()=>Qd,isFolderInside:()=>Ak});var ok=ge(require("os"));function ak(){if(process.platform==="win32"){let r=H.toPortablePath(process.env.LOCALAPPDATA||H.join((0,ok.homedir)(),"AppData","Local"));return k.resolve(r,"Yarn/Berry")}if(process.env.XDG_DATA_HOME){let r=H.toPortablePath(process.env.XDG_DATA_HOME);return k.resolve(r,"yarn/berry")}return k.resolve(Qd(),".yarn/berry")}function Qd(){return H.toPortablePath((0,ok.homedir)()||"/usr/local/share")}function Ak(r,e){let t=k.relative(e,r);return t&&!t.startsWith("..")&&!k.isAbsolute(t)}var Vg={};ft(Vg,{builtinModules:()=>lk,getArchitecture:()=>Sd,getArchitectureName:()=>Ave,getArchitectureSet:()=>ck});var L4=ge(require("module"));function lk(){return new Set(L4.default.builtinModules||Object.keys(process.binding("natives")))}function ave(){var i,n,s,o;if(process.platform==="win32")return null;let e=(s=((n=(i=process.report)==null?void 0:i.getReport())!=null?n:{}).sharedObjects)!=null?s:[],t=/\/(?:(ld-linux-|[^/]+-linux-gnu\/)|(libc.musl-|ld-musl-))/;return(o=$p(e,a=>{let l=a.match(t);if(!l)return $p.skip;if(l[1])return"glibc";if(l[2])return"musl";throw new Error("Assertion failed: Expected the libc variant to have been detected")}))!=null?o:null}var dw,Cw;function Sd(){return dw=dw!=null?dw:{os:process.platform,cpu:process.arch,libc:ave()}}function Ave(r=Sd()){return r.libc?`${r.os}-${r.cpu}-${r.libc}`:`${r.os}-${r.cpu}`}function ck(){let r=Sd();return Cw=Cw!=null?Cw:{os:[r.os],cpu:[r.cpu],libc:r.libc?[r.libc]:[]}}var lve=new Set(["binFolder","version","flags","profile","gpg","ignoreNode","wrapOutput","home","confDir"]),Ew="yarn_",gk=".yarnrc.yml",fk="yarn.lock",cve="********",Ie;(function(u){u.ANY="ANY",u.BOOLEAN="BOOLEAN",u.ABSOLUTE_PATH="ABSOLUTE_PATH",u.LOCATOR="LOCATOR",u.LOCATOR_LOOSE="LOCATOR_LOOSE",u.NUMBER="NUMBER",u.STRING="STRING",u.SECRET="SECRET",u.SHAPE="SHAPE",u.MAP="MAP"})(Ie||(Ie={}));var Ri=qe,hk={lastUpdateCheck:{description:"Last timestamp we checked whether new Yarn versions were available",type:Ie.STRING,default:null},yarnPath:{description:"Path to the local executable that must be used over the global one",type:Ie.ABSOLUTE_PATH,default:null},ignorePath:{description:"If true, the local executable will be ignored when using the global one",type:Ie.BOOLEAN,default:!1},ignoreCwd:{description:"If true, the `--cwd` flag will be ignored",type:Ie.BOOLEAN,default:!1},cacheKeyOverride:{description:"A global cache key override; used only for test purposes",type:Ie.STRING,default:null},globalFolder:{description:"Folder where all system-global files are stored",type:Ie.ABSOLUTE_PATH,default:ak()},cacheFolder:{description:"Folder where the cache files must be written",type:Ie.ABSOLUTE_PATH,default:"./.yarn/cache"},compressionLevel:{description:"Zip files compression level, from 0 to 9 or mixed (a variant of 9, which stores some files uncompressed, when compression doesn't yield good results)",type:Ie.NUMBER,values:["mixed",0,1,2,3,4,5,6,7,8,9],default:lc},virtualFolder:{description:"Folder where the virtual packages (cf doc) will be mapped on the disk (must be named __virtual__)",type:Ie.ABSOLUTE_PATH,default:"./.yarn/__virtual__"},lockfileFilename:{description:"Name of the files where the Yarn dependency tree entries must be stored",type:Ie.STRING,default:fk},installStatePath:{description:"Path of the file where the install state will be persisted",type:Ie.ABSOLUTE_PATH,default:"./.yarn/install-state.gz"},immutablePatterns:{description:"Array of glob patterns; files matching them won't be allowed to change during immutable installs",type:Ie.STRING,default:[],isArray:!0},rcFilename:{description:"Name of the files where the configuration can be found",type:Ie.STRING,default:Iw()},enableGlobalCache:{description:"If true, the system-wide cache folder will be used regardless of `cache-folder`",type:Ie.BOOLEAN,default:!1},enableColors:{description:"If true, the CLI is allowed to use colors in its output",type:Ie.BOOLEAN,default:Py,defaultText:""},enableHyperlinks:{description:"If true, the CLI is allowed to use hyperlinks in its output",type:Ie.BOOLEAN,default:Mv,defaultText:""},enableInlineBuilds:{description:"If true, the CLI will print the build output on the command line",type:Ie.BOOLEAN,default:mw.isCI,defaultText:""},enableMessageNames:{description:"If true, the CLI will prefix most messages with codes suitable for search engines",type:Ie.BOOLEAN,default:!0},enableProgressBars:{description:"If true, the CLI is allowed to show a progress bar for long-running events",type:Ie.BOOLEAN,default:!mw.isCI,defaultText:""},enableTimers:{description:"If true, the CLI is allowed to print the time spent executing commands",type:Ie.BOOLEAN,default:!0},preferAggregateCacheInfo:{description:"If true, the CLI will only print a one-line report of any cache changes",type:Ie.BOOLEAN,default:mw.isCI},preferInteractive:{description:"If true, the CLI will automatically use the interactive mode when called from a TTY",type:Ie.BOOLEAN,default:!1},preferTruncatedLines:{description:"If true, the CLI will truncate lines that would go beyond the size of the terminal",type:Ie.BOOLEAN,default:!1},progressBarStyle:{description:"Which style of progress bar should be used (only when progress bars are enabled)",type:Ie.STRING,default:void 0,defaultText:""},defaultLanguageName:{description:"Default language mode that should be used when a package doesn't offer any insight",type:Ie.STRING,default:"node"},defaultProtocol:{description:"Default resolution protocol used when resolving pure semver and tag ranges",type:Ie.STRING,default:"npm:"},enableTransparentWorkspaces:{description:"If false, Yarn won't automatically resolve workspace dependencies unless they use the `workspace:` protocol",type:Ie.BOOLEAN,default:!0},supportedArchitectures:{description:"Architectures that Yarn will fetch and inject into the resolver",type:Ie.SHAPE,properties:{os:{description:"Array of supported process.platform strings, or null to target them all",type:Ie.STRING,isArray:!0,isNullable:!0,default:["current"]},cpu:{description:"Array of supported process.arch strings, or null to target them all",type:Ie.STRING,isArray:!0,isNullable:!0,default:["current"]},libc:{description:"Array of supported libc libraries, or null to target them all",type:Ie.STRING,isArray:!0,isNullable:!0,default:["current"]}}},enableMirror:{description:"If true, the downloaded packages will be retrieved and stored in both the local and global folders",type:Ie.BOOLEAN,default:!0},enableNetwork:{description:"If false, the package manager will refuse to use the network if required to",type:Ie.BOOLEAN,default:!0},httpProxy:{description:"URL of the http proxy that must be used for outgoing http requests",type:Ie.STRING,default:null},httpsProxy:{description:"URL of the http proxy that must be used for outgoing https requests",type:Ie.STRING,default:null},unsafeHttpWhitelist:{description:"List of the hostnames for which http queries are allowed (glob patterns are supported)",type:Ie.STRING,default:[],isArray:!0},httpTimeout:{description:"Timeout of each http request in milliseconds",type:Ie.NUMBER,default:6e4},httpRetry:{description:"Retry times on http failure",type:Ie.NUMBER,default:3},networkConcurrency:{description:"Maximal number of concurrent requests",type:Ie.NUMBER,default:50},networkSettings:{description:"Network settings per hostname (glob patterns are supported)",type:Ie.MAP,valueDefinition:{description:"",type:Ie.SHAPE,properties:{caFilePath:{description:"Path to file containing one or multiple Certificate Authority signing certificates",type:Ie.ABSOLUTE_PATH,default:null},enableNetwork:{description:"If false, the package manager will refuse to use the network if required to",type:Ie.BOOLEAN,default:null},httpProxy:{description:"URL of the http proxy that must be used for outgoing http requests",type:Ie.STRING,default:null},httpsProxy:{description:"URL of the http proxy that must be used for outgoing https requests",type:Ie.STRING,default:null},httpsKeyFilePath:{description:"Path to file containing private key in PEM format",type:Ie.ABSOLUTE_PATH,default:null},httpsCertFilePath:{description:"Path to file containing certificate chain in PEM format",type:Ie.ABSOLUTE_PATH,default:null}}}},caFilePath:{description:"A path to a file containing one or multiple Certificate Authority signing certificates",type:Ie.ABSOLUTE_PATH,default:null},httpsKeyFilePath:{description:"Path to file containing private key in PEM format",type:Ie.ABSOLUTE_PATH,default:null},httpsCertFilePath:{description:"Path to file containing certificate chain in PEM format",type:Ie.ABSOLUTE_PATH,default:null},enableStrictSsl:{description:"If false, SSL certificate errors will be ignored",type:Ie.BOOLEAN,default:!0},logFilters:{description:"Overrides for log levels",type:Ie.SHAPE,isArray:!0,concatenateValues:!0,properties:{code:{description:"Code of the messages covered by this override",type:Ie.STRING,default:void 0},text:{description:"Code of the texts covered by this override",type:Ie.STRING,default:void 0},pattern:{description:"Code of the patterns covered by this override",type:Ie.STRING,default:void 0},level:{description:"Log level override, set to null to remove override",type:Ie.STRING,values:Object.values(ho),isNullable:!0,default:void 0}}},enableTelemetry:{description:"If true, telemetry will be periodically sent, following the rules in https://yarnpkg.com/advanced/telemetry",type:Ie.BOOLEAN,default:!0},telemetryInterval:{description:"Minimal amount of time between two telemetry uploads, in days",type:Ie.NUMBER,default:7},telemetryUserId:{description:"If you desire to tell us which project you are, you can set this field. Completely optional and opt-in.",type:Ie.STRING,default:null},enableScripts:{description:"If true, packages are allowed to have install scripts by default",type:Ie.BOOLEAN,default:!0},enableStrictSettings:{description:"If true, unknown settings will cause Yarn to abort",type:Ie.BOOLEAN,default:!0},enableImmutableCache:{description:"If true, the cache is reputed immutable and actions that would modify it will throw",type:Ie.BOOLEAN,default:!1},checksumBehavior:{description:"Enumeration defining what to do when a checksum doesn't match expectations",type:Ie.STRING,default:"throw"},packageExtensions:{description:"Map of package corrections to apply on the dependency tree",type:Ie.MAP,valueDefinition:{description:"The extension that will be applied to any package whose version matches the specified range",type:Ie.SHAPE,properties:{dependencies:{description:"The set of dependencies that must be made available to the current package in order for it to work properly",type:Ie.MAP,valueDefinition:{description:"A range",type:Ie.STRING}},peerDependencies:{description:"Inherited dependencies - the consumer of the package will be tasked to provide them",type:Ie.MAP,valueDefinition:{description:"A semver range",type:Ie.STRING}},peerDependenciesMeta:{description:"Extra information related to the dependencies listed in the peerDependencies field",type:Ie.MAP,valueDefinition:{description:"The peerDependency meta",type:Ie.SHAPE,properties:{optional:{description:"If true, the selected peer dependency will be marked as optional by the package manager and the consumer omitting it won't be reported as an error",type:Ie.BOOLEAN,default:!1}}}}}}}};function dk(r,e,t,i,n){if(i.isArray||i.type===Ie.ANY&&Array.isArray(t))return Array.isArray(t)?t.map((s,o)=>pk(r,`${e}[${o}]`,s,i,n)):String(t).split(/,/).map(s=>pk(r,e,s,i,n));if(Array.isArray(t))throw new Error(`Non-array configuration settings "${e}" cannot be an array`);return pk(r,e,t,i,n)}function pk(r,e,t,i,n){var a;switch(i.type){case Ie.ANY:return t;case Ie.SHAPE:return uve(r,e,t,i,n);case Ie.MAP:return gve(r,e,t,i,n)}if(t===null&&!i.isNullable&&i.default!==null)throw new Error(`Non-nullable configuration settings "${e}" cannot be set to null`);if((a=i.values)==null?void 0:a.includes(t))return t;let o=(()=>{if(i.type===Ie.BOOLEAN&&typeof t!="string")return td(t);if(typeof t!="string")throw new Error(`Expected value (${t}) to be a string`);let l=Fv(t,{env:process.env});switch(i.type){case Ie.ABSOLUTE_PATH:return k.resolve(n,H.toPortablePath(l));case Ie.LOCATOR_LOOSE:return Yc(l,!1);case Ie.NUMBER:return parseInt(l);case Ie.LOCATOR:return Yc(l);case Ie.BOOLEAN:return td(l);default:return l}})();if(i.values&&!i.values.includes(o))throw new Error(`Invalid value, expected one of ${i.values.join(", ")}`);return o}function uve(r,e,t,i,n){if(typeof t!="object"||Array.isArray(t))throw new Pe(`Object configuration settings "${e}" must be an object`);let s=Ck(r,i,{ignoreArrays:!0});if(t===null)return s;for(let[o,a]of Object.entries(t)){let l=`${e}.${o}`;if(!i.properties[o])throw new Pe(`Unrecognized configuration settings found: ${e}.${o} - run "yarn config -v" to see the list of settings supported in Yarn`);s.set(o,dk(r,l,a,i.properties[o],n))}return s}function gve(r,e,t,i,n){let s=new Map;if(typeof t!="object"||Array.isArray(t))throw new Pe(`Map configuration settings "${e}" must be an object`);if(t===null)return s;for(let[o,a]of Object.entries(t)){let l=i.normalizeKeys?i.normalizeKeys(o):o,c=`${e}['${l}']`,u=i.valueDefinition;s.set(l,dk(r,c,a,u,n))}return s}function Ck(r,e,{ignoreArrays:t=!1}={}){switch(e.type){case Ie.SHAPE:{if(e.isArray&&!t)return[];let i=new Map;for(let[n,s]of Object.entries(e.properties))i.set(n,Ck(r,s));return i}break;case Ie.MAP:return e.isArray&&!t?[]:new Map;case Ie.ABSOLUTE_PATH:return e.default===null?null:r.projectCwd===null?k.isAbsolute(e.default)?k.normalize(e.default):e.isNullable?null:void 0:Array.isArray(e.default)?e.default.map(i=>k.resolve(r.projectCwd,i)):k.resolve(r.projectCwd,e.default);default:return e.default}}function yw(r,e,t){if(e.type===Ie.SECRET&&typeof r=="string"&&t.hideSecrets)return cve;if(e.type===Ie.ABSOLUTE_PATH&&typeof r=="string"&&t.getNativePaths)return H.fromPortablePath(r);if(e.isArray&&Array.isArray(r)){let i=[];for(let n of r)i.push(yw(n,e,t));return i}if(e.type===Ie.MAP&&r instanceof Map){let i=new Map;for(let[n,s]of r.entries())i.set(n,yw(s,e.valueDefinition,t));return i}if(e.type===Ie.SHAPE&&r instanceof Map){let i=new Map;for(let[n,s]of r.entries()){let o=e.properties[n];i.set(n,yw(s,o,t))}return i}return r}function fve(){let r={};for(let[e,t]of Object.entries(process.env))e=e.toLowerCase(),!!e.startsWith(Ew)&&(e=(0,T4.default)(e.slice(Ew.length)),r[e]=t);return r}function Iw(){let r=`${Ew}rc_filename`;for(let[e,t]of Object.entries(process.env))if(e.toLowerCase()===r&&typeof t=="string")return t;return gk}var ul;(function(i){i[i.LOCKFILE=0]="LOCKFILE",i[i.MANIFEST=1]="MANIFEST",i[i.NONE=2]="NONE"})(ul||(ul={}));var tA=class{constructor(e){this.projectCwd=null;this.plugins=new Map;this.settings=new Map;this.values=new Map;this.sources=new Map;this.invalid=new Map;this.packageExtensions=new Map;this.limits=new Map;this.startingCwd=e}static create(e,t,i){let n=new tA(e);typeof t!="undefined"&&!(t instanceof Map)&&(n.projectCwd=t),n.importSettings(hk);let s=typeof i!="undefined"?i:t instanceof Map?t:new Map;for(let[o,a]of s)n.activatePlugin(o,a);return n}static async find(e,t,{lookup:i=0,strict:n=!0,usePath:s=!1,useRc:o=!0}={}){let a=fve();delete a.rcFilename;let l=await tA.findRcFiles(e),c=await tA.findHomeRcFile();if(c){let b=l.find(v=>v.path===c.path);b?b.strict=!1:l.push(te(N({},c),{strict:!1}))}let u=({ignoreCwd:b,yarnPath:v,ignorePath:x,lockfileFilename:T})=>({ignoreCwd:b,yarnPath:v,ignorePath:x,lockfileFilename:T}),g=Y=>{var $=Y,{ignoreCwd:b,yarnPath:v,ignorePath:x,lockfileFilename:T}=$,q=Or($,["ignoreCwd","yarnPath","ignorePath","lockfileFilename"]);return q},f=new tA(e);f.importSettings(u(hk)),f.useWithSource("",u(a),e,{strict:!1});for(let{path:b,cwd:v,data:x}of l)f.useWithSource(b,u(x),v,{strict:!1});if(s){let b=f.get("yarnPath"),v=f.get("ignorePath");if(b!==null&&!v)return f}let h=f.get("lockfileFilename"),p;switch(i){case 0:p=await tA.findProjectCwd(e,h);break;case 1:p=await tA.findProjectCwd(e,null);break;case 2:K.existsSync(k.join(e,"package.json"))?p=k.resolve(e):p=null;break}f.startingCwd=e,f.projectCwd=p,f.importSettings(g(hk));let m=new Map([["@@core",WW]]),y=b=>"default"in b?b.default:b;if(t!==null){for(let T of t.plugins.keys())m.set(T,y(t.modules.get(T)));let b=new Map;for(let T of lk())b.set(T,()=>Og(T));for(let[T,q]of t.modules)b.set(T,()=>q);let v=new Set,x=async(T,q)=>{let{factory:Y,name:$}=Og(T);if(v.has($))return;let _=new Map(b),ne=A=>{if(_.has(A))return _.get(A)();throw new Pe(`This plugin cannot access the package referenced via ${A} which is neither a builtin, nor an exposed entry`)},ee=await Lg(async()=>y(await Y(ne)),A=>`${A} (when initializing ${$}, defined in ${q})`);b.set($,()=>ee),v.add($),m.set($,ee)};if(a.plugins)for(let T of a.plugins.split(";")){let q=k.resolve(e,H.toPortablePath(T));await x(q,"")}for(let{path:T,cwd:q,data:Y}of l)if(!!o&&!!Array.isArray(Y.plugins))for(let $ of Y.plugins){let _=typeof $!="string"?$.path:$,ne=k.resolve(q,H.toPortablePath(_));await x(ne,T)}}for(let[b,v]of m)f.activatePlugin(b,v);f.useWithSource("",g(a),e,{strict:n});for(let{path:b,cwd:v,data:x,strict:T}of l)f.useWithSource(b,g(x),v,{strict:T!=null?T:n});return f.get("enableGlobalCache")&&(f.values.set("cacheFolder",`${f.get("globalFolder")}/cache`),f.sources.set("cacheFolder","")),await f.refreshPackageExtensions(),f}static async findRcFiles(e){let t=Iw(),i=[],n=e,s=null;for(;n!==s;){s=n;let o=k.join(s,t);if(K.existsSync(o)){let a=await K.readFilePromise(o,"utf8"),l;try{l=Si(a)}catch(c){let u="";throw a.match(/^\s+(?!-)[^:]+\s+\S+/m)&&(u=" (in particular, make sure you list the colons after each key name)"),new Pe(`Parse error when loading ${o}; please check it's proper Yaml${u}`)}i.push({path:o,cwd:s,data:l})}n=k.dirname(s)}return i}static async findHomeRcFile(){let e=Iw(),t=Qd(),i=k.join(t,e);if(K.existsSync(i)){let n=await K.readFilePromise(i,"utf8"),s=Si(n);return{path:i,cwd:t,data:s}}return null}static async findProjectCwd(e,t){let i=null,n=e,s=null;for(;n!==s;){if(s=n,K.existsSync(k.join(s,"package.json"))&&(i=s),t!==null){if(K.existsSync(k.join(s,t))){i=s;break}}else if(i!==null)break;n=k.dirname(s)}return i}static async updateConfiguration(e,t){let i=Iw(),n=k.join(e,i),s=K.existsSync(n)?Si(await K.readFilePromise(n,"utf8")):{},o=!1,a;if(typeof t=="function"){try{a=t(s)}catch{a=t({})}if(a===s)return}else{a=s;for(let l of Object.keys(t)){let c=s[l],u=t[l],g;if(typeof u=="function")try{g=u(c)}catch{g=u(void 0)}else g=u;c!==g&&(a[l]=g,o=!0)}if(!o)return}await K.changeFilePromise(n,Ma(a),{automaticNewlines:!0})}static async updateHomeConfiguration(e){let t=Qd();return await tA.updateConfiguration(t,e)}activatePlugin(e,t){this.plugins.set(e,t),typeof t.configuration!="undefined"&&this.importSettings(t.configuration)}importSettings(e){for(let[t,i]of Object.entries(e))if(i!=null){if(this.settings.has(t))throw new Error(`Cannot redefine settings "${t}"`);this.settings.set(t,i),this.values.set(t,Ck(this,i))}}useWithSource(e,t,i,n){try{this.use(e,t,i,n)}catch(s){throw s.message+=` (in ${tt(this,e,qe.PATH)})`,s}}use(e,t,i,{strict:n=!0,overwrite:s=!1}={}){n=n&&this.get("enableStrictSettings");for(let o of["enableStrictSettings",...Object.keys(t)]){if(typeof t[o]=="undefined"||o==="plugins"||e===""&&lve.has(o))continue;if(o==="rcFilename")throw new Pe(`The rcFilename settings can only be set via ${`${Ew}RC_FILENAME`.toUpperCase()}, not via a rc file`);let l=this.settings.get(o);if(!l){if(n)throw new Pe(`Unrecognized or legacy configuration settings found: ${o} - run "yarn config -v" to see the list of settings supported in Yarn`);this.invalid.set(o,e);continue}if(this.sources.has(o)&&!(s||l.type===Ie.MAP||l.isArray&&l.concatenateValues))continue;let c;try{c=dk(this,o,t[o],l,i)}catch(u){throw u.message+=` in ${tt(this,e,qe.PATH)}`,u}if(o==="enableStrictSettings"&&e!==""){n=c;continue}if(l.type===Ie.MAP){let u=this.values.get(o);this.values.set(o,new Map(s?[...u,...c]:[...c,...u])),this.sources.set(o,`${this.sources.get(o)}, ${e}`)}else if(l.isArray&&l.concatenateValues){let u=this.values.get(o);this.values.set(o,s?[...u,...c]:[...c,...u]),this.sources.set(o,`${this.sources.get(o)}, ${e}`)}else this.values.set(o,c),this.sources.set(o,e)}}get(e){if(!this.values.has(e))throw new Error(`Invalid configuration key "${e}"`);return this.values.get(e)}getSpecial(e,{hideSecrets:t=!1,getNativePaths:i=!1}){let n=this.get(e),s=this.settings.get(e);if(typeof s=="undefined")throw new Pe(`Couldn't find a configuration settings named "${e}"`);return yw(n,s,{hideSecrets:t,getNativePaths:i})}getSubprocessStreams(e,{header:t,prefix:i,report:n}){let s,o,a=K.createWriteStream(e);if(this.get("enableInlineBuilds")){let l=n.createStreamReporter(`${i} ${tt(this,"STDOUT","green")}`),c=n.createStreamReporter(`${i} ${tt(this,"STDERR","red")}`);s=new uk.PassThrough,s.pipe(l),s.pipe(a),o=new uk.PassThrough,o.pipe(c),o.pipe(a)}else s=a,o=a,typeof t!="undefined"&&s.write(`${t} +`);return{stdout:s,stderr:o}}makeResolver(){let e=[];for(let t of this.plugins.values())for(let i of t.resolvers||[])e.push(new i);return new wd([new pw,new oi,new nk,...e])}makeFetcher(){let e=[];for(let t of this.plugins.values())for(let i of t.fetchers||[])e.push(new i);return new yd([new Bd,new bd,...e])}getLinkers(){let e=[];for(let t of this.plugins.values())for(let i of t.linkers||[])e.push(new i);return e}getSupportedArchitectures(){let e=Sd(),t=this.get("supportedArchitectures"),i=t.get("os");i!==null&&(i=i.map(o=>o==="current"?e.os:o));let n=t.get("cpu");n!==null&&(n=n.map(o=>o==="current"?e.cpu:o));let s=t.get("libc");return s!==null&&(s=zo(s,o=>{var a;return o==="current"?(a=e.libc)!=null?a:zo.skip:o})),{os:i,cpu:n,libc:s}}async refreshPackageExtensions(){this.packageExtensions=new Map;let e=this.packageExtensions,t=(i,n,{userProvided:s=!1}={})=>{if(!po(i.range))throw new Error("Only semver ranges are allowed as keys for the packageExtensions setting");let o=new At;o.load(n,{yamlCompatibilityMode:!0});let a=Fg(e,i.identHash),l=[];a.push([i.range,l]);let c={status:qi.Inactive,userProvided:s,parentDescriptor:i};for(let u of o.dependencies.values())l.push(te(N({},c),{type:wi.Dependency,descriptor:u}));for(let u of o.peerDependencies.values())l.push(te(N({},c),{type:wi.PeerDependency,descriptor:u}));for(let[u,g]of o.peerDependenciesMeta)for(let[f,h]of Object.entries(g))l.push(te(N({},c),{type:wi.PeerDependencyMeta,selector:u,key:f,value:h}))};await this.triggerHook(i=>i.registerPackageExtensions,this,t);for(let[i,n]of this.get("packageExtensions"))t(ll(i,!0),ky(n),{userProvided:!0})}normalizePackage(e){let t=cd(e);if(this.packageExtensions==null)throw new Error("refreshPackageExtensions has to be called before normalizing packages");let i=this.packageExtensions.get(e.identHash);if(typeof i!="undefined"){let s=e.version;if(s!==null){for(let[o,a]of i)if(!!qc(s,o))for(let l of a)switch(l.status===qi.Inactive&&(l.status=qi.Redundant),l.type){case wi.Dependency:typeof t.dependencies.get(l.descriptor.identHash)=="undefined"&&(l.status=qi.Active,t.dependencies.set(l.descriptor.identHash,l.descriptor));break;case wi.PeerDependency:typeof t.peerDependencies.get(l.descriptor.identHash)=="undefined"&&(l.status=qi.Active,t.peerDependencies.set(l.descriptor.identHash,l.descriptor));break;case wi.PeerDependencyMeta:{let c=t.peerDependenciesMeta.get(l.selector);(typeof c=="undefined"||!Object.prototype.hasOwnProperty.call(c,l.key)||c[l.key]!==l.value)&&(l.status=qi.Active,_a(t.peerDependenciesMeta,l.selector,()=>({}))[l.key]=l.value)}break;default:Pv(l);break}}}let n=s=>s.scope?`${s.scope}__${s.name}`:`${s.name}`;for(let s of t.peerDependenciesMeta.keys()){let o=An(s);t.peerDependencies.has(o.identHash)||t.peerDependencies.set(o.identHash,rr(o,"*"))}for(let s of t.peerDependencies.values()){if(s.scope==="types")continue;let o=n(s),a=$o("types",o),l=Ot(a);t.peerDependencies.has(a.identHash)||t.peerDependenciesMeta.has(l)||(t.peerDependencies.set(a.identHash,rr(a,"*")),t.peerDependenciesMeta.set(l,{optional:!0}))}return t.dependencies=new Map(kn(t.dependencies,([,s])=>Pn(s))),t.peerDependencies=new Map(kn(t.peerDependencies,([,s])=>Pn(s))),t}getLimit(e){return _a(this.limits,e,()=>(0,O4.default)(this.get(e)))}async triggerHook(e,...t){for(let i of this.plugins.values()){let n=i.hooks;if(!n)continue;let s=e(n);!s||await s(...t)}}async triggerMultipleHooks(e,t){for(let i of t)await this.triggerHook(e,...i)}async reduceHook(e,t,...i){let n=t;for(let s of this.plugins.values()){let o=s.hooks;if(!o)continue;let a=e(o);!a||(n=await a(n,...i))}return n}async firstHook(e,...t){for(let i of this.plugins.values()){let n=i.hooks;if(!n)continue;let s=e(n);if(!s)continue;let o=await s(...t);if(typeof o!="undefined")return o}return null}},ye=tA;ye.telemetry=null;var ss;(function(i){i[i.Never=0]="Never",i[i.ErrorCode=1]="ErrorCode",i[i.Always=2]="Always"})(ss||(ss={}));var ww=class extends ct{constructor({fileName:e,code:t,signal:i}){let n=ye.create(k.cwd()),s=tt(n,e,qe.PATH);super(X.EXCEPTION,`Child ${s} reported an error`,o=>{hve(t,i,{configuration:n,report:o})});this.code=Ek(t,i)}},Ik=class extends ww{constructor({fileName:e,code:t,signal:i,stdout:n,stderr:s}){super({fileName:e,code:t,signal:i});this.stdout=n,this.stderr=s}};function zc(r){return r!==null&&typeof r.fd=="number"}var _c=new Set;function yk(){}function wk(){for(let r of _c)r.kill()}async function ra(r,e,{cwd:t,env:i=process.env,strict:n=!1,stdin:s=null,stdout:o,stderr:a,end:l=2}){let c=["pipe","pipe","pipe"];s===null?c[0]="ignore":zc(s)&&(c[0]=s),zc(o)&&(c[1]=o),zc(a)&&(c[2]=a);let u=(0,mk.default)(r,e,{cwd:H.fromPortablePath(t),env:te(N({},i),{PWD:H.fromPortablePath(t)}),stdio:c});_c.add(u),_c.size===1&&(process.on("SIGINT",yk),process.on("SIGTERM",wk)),!zc(s)&&s!==null&&s.pipe(u.stdin),zc(o)||u.stdout.pipe(o,{end:!1}),zc(a)||u.stderr.pipe(a,{end:!1});let g=()=>{for(let f of new Set([o,a]))zc(f)||f.end()};return new Promise((f,h)=>{u.on("error",p=>{_c.delete(u),_c.size===0&&(process.off("SIGINT",yk),process.off("SIGTERM",wk)),(l===2||l===1)&&g(),h(p)}),u.on("close",(p,m)=>{_c.delete(u),_c.size===0&&(process.off("SIGINT",yk),process.off("SIGTERM",wk)),(l===2||l===1&&p>0)&&g(),p===0||!n?f({code:Ek(p,m)}):h(new ww({fileName:r,code:p,signal:m}))})})}async function pve(r,e,{cwd:t,env:i=process.env,encoding:n="utf8",strict:s=!1}){let o=["ignore","pipe","pipe"],a=[],l=[],c=H.fromPortablePath(t);typeof i.PWD!="undefined"&&(i=te(N({},i),{PWD:c}));let u=(0,mk.default)(r,e,{cwd:c,env:i,stdio:o});return u.stdout.on("data",g=>{a.push(g)}),u.stderr.on("data",g=>{l.push(g)}),await new Promise((g,f)=>{u.on("error",h=>{let p=ye.create(t),m=tt(p,r,qe.PATH);f(new ct(X.EXCEPTION,`Process ${m} failed to spawn`,y=>{y.reportError(X.EXCEPTION,` ${_o(p,{label:"Thrown Error",value:fo(qe.NO_HINT,h.message)})}`)}))}),u.on("close",(h,p)=>{let m=n==="buffer"?Buffer.concat(a):Buffer.concat(a).toString(n),y=n==="buffer"?Buffer.concat(l):Buffer.concat(l).toString(n);h===0||!s?g({code:Ek(h,p),stdout:m,stderr:y}):f(new Ik({fileName:r,code:h,signal:p,stdout:m,stderr:y}))})})}var dve=new Map([["SIGINT",2],["SIGQUIT",3],["SIGKILL",9],["SIGTERM",15]]);function Ek(r,e){let t=dve.get(e);return typeof t!="undefined"?128+t:r!=null?r:1}function hve(r,e,{configuration:t,report:i}){i.reportError(X.EXCEPTION,` ${_o(t,r!==null?{label:"Exit Code",value:fo(qe.NUMBER,r)}:{label:"Exit Signal",value:fo(qe.CODE,e)})}`)}var ir={};ft(ir,{Method:()=>Cl,RequestError:()=>w5.RequestError,del:()=>xPe,get:()=>SPe,getNetworkSettings:()=>S5,post:()=>HP,put:()=>vPe,request:()=>Od});var E5=ge(Uw()),I5=ge(require("https")),y5=ge(require("http")),MP=ge(is()),KP=ge(m5()),Hw=ge(require("url"));var w5=ge(Uw()),B5=new Map,b5=new Map,wPe=new y5.Agent({keepAlive:!0}),BPe=new I5.Agent({keepAlive:!0});function Q5(r){let e=new Hw.URL(r),t={host:e.hostname,headers:{}};return e.port&&(t.port=Number(e.port)),{proxy:t}}async function UP(r){return _a(b5,r,()=>K.readFilePromise(r).then(e=>(b5.set(r,e),e)))}function bPe({statusCode:r,statusMessage:e},t){let i=tt(t,r,qe.NUMBER),n=`https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/${r}`;return Mg(t,`${i}${e?` (${e})`:""}`,n)}async function jw(r,{configuration:e,customErrorMessage:t}){var i,n;try{return await r}catch(s){if(s.name!=="HTTPError")throw s;let o=(n=t==null?void 0:t(s))!=null?n:(i=s.response.body)==null?void 0:i.error;o==null&&(s.message.startsWith("Response code")?o="The remote server failed to provide the requested resource":o=s.message),s instanceof E5.TimeoutError&&s.event==="socket"&&(o+=`(can be increased via ${tt(e,"httpTimeout",qe.SETTING)})`);let a=new ct(X.NETWORK_ERROR,o,l=>{s.response&&l.reportError(X.NETWORK_ERROR,` ${_o(e,{label:"Response Code",value:fo(qe.NO_HINT,bPe(s.response,e))})}`),s.request&&(l.reportError(X.NETWORK_ERROR,` ${_o(e,{label:"Request Method",value:fo(qe.NO_HINT,s.request.options.method)})}`),l.reportError(X.NETWORK_ERROR,` ${_o(e,{label:"Request URL",value:fo(qe.URL,s.request.requestUrl)})}`)),s.request.redirects.length>0&&l.reportError(X.NETWORK_ERROR,` ${_o(e,{label:"Request Redirects",value:fo(qe.NO_HINT,Uv(e,s.request.redirects,qe.URL))})}`),s.request.retryCount===s.request.options.retry.limit&&l.reportError(X.NETWORK_ERROR,` ${_o(e,{label:"Request Retry Count",value:fo(qe.NO_HINT,`${tt(e,s.request.retryCount,qe.NUMBER)} (can be increased via ${tt(e,"httpRetry",qe.SETTING)})`)})}`)});throw a.originalError=s,a}}function S5(r,e){let t=[...e.configuration.get("networkSettings")].sort(([o],[a])=>a.length-o.length),i={enableNetwork:void 0,caFilePath:void 0,httpProxy:void 0,httpsProxy:void 0,httpsKeyFilePath:void 0,httpsCertFilePath:void 0},n=Object.keys(i),s=typeof r=="string"?new Hw.URL(r):r;for(let[o,a]of t)if(MP.default.isMatch(s.hostname,o))for(let l of n){let c=a.get(l);c!==null&&typeof i[l]=="undefined"&&(i[l]=c)}for(let o of n)typeof i[o]=="undefined"&&(i[o]=e.configuration.get(o));return i}var Cl;(function(n){n.GET="GET",n.PUT="PUT",n.POST="POST",n.DELETE="DELETE"})(Cl||(Cl={}));async function Od(r,e,{configuration:t,headers:i,jsonRequest:n,jsonResponse:s,method:o=Cl.GET}){let a=async()=>await QPe(r,e,{configuration:t,headers:i,jsonRequest:n,jsonResponse:s,method:o});return await(await t.reduceHook(c=>c.wrapNetworkRequest,a,{target:r,body:e,configuration:t,headers:i,jsonRequest:n,jsonResponse:s,method:o}))()}async function SPe(r,n){var s=n,{configuration:e,jsonResponse:t}=s,i=Or(s,["configuration","jsonResponse"]);let o=_a(B5,r,()=>jw(Od(r,null,N({configuration:e},i)),{configuration:e}).then(a=>(B5.set(r,a.body),a.body)));return Buffer.isBuffer(o)===!1&&(o=await o),t?JSON.parse(o.toString()):o}async function vPe(r,e,n){var s=n,{customErrorMessage:t}=s,i=Or(s,["customErrorMessage"]);return(await jw(Od(r,e,te(N({},i),{method:Cl.PUT})),i)).body}async function HP(r,e,n){var s=n,{customErrorMessage:t}=s,i=Or(s,["customErrorMessage"]);return(await jw(Od(r,e,te(N({},i),{method:Cl.POST})),i)).body}async function xPe(r,i){var n=i,{customErrorMessage:e}=n,t=Or(n,["customErrorMessage"]);return(await jw(Od(r,null,te(N({},t),{method:Cl.DELETE})),t)).body}async function QPe(r,e,{configuration:t,headers:i,jsonRequest:n,jsonResponse:s,method:o=Cl.GET}){let a=typeof r=="string"?new Hw.URL(r):r,l=S5(a,{configuration:t});if(l.enableNetwork===!1)throw new Error(`Request to '${a.href}' has been blocked because of your configuration settings`);if(a.protocol==="http:"&&!MP.default.isMatch(a.hostname,t.get("unsafeHttpWhitelist")))throw new Error(`Unsafe http requests must be explicitly whitelisted in your configuration (${a.hostname})`);let u={agent:{http:l.httpProxy?KP.default.httpOverHttp(Q5(l.httpProxy)):wPe,https:l.httpsProxy?KP.default.httpsOverHttp(Q5(l.httpsProxy)):BPe},headers:i,method:o};u.responseType=s?"json":"buffer",e!==null&&(Buffer.isBuffer(e)||!n&&typeof e=="string"?u.body=e:u.json=e);let g=t.get("httpTimeout"),f=t.get("httpRetry"),h=t.get("enableStrictSsl"),p=l.caFilePath,m=l.httpsCertFilePath,y=l.httpsKeyFilePath,{default:b}=await Promise.resolve().then(()=>ge(Uw())),v=p?await UP(p):void 0,x=m?await UP(m):void 0,T=y?await UP(y):void 0,q=b.extend(N({timeout:{socket:g},retry:f,https:{rejectUnauthorized:h,certificateAuthority:v,certificate:x,key:T}},u));return t.getLimit("networkConcurrency")(()=>q(a))}var Zt={};ft(Zt,{PackageManager:()=>hn,detectPackageManager:()=>K9,executePackageAccessibleBinary:()=>Y9,executePackageScript:()=>nB,executePackageShellcode:()=>rD,executeWorkspaceAccessibleBinary:()=>WDe,executeWorkspaceLifecycleScript:()=>G9,executeWorkspaceScript:()=>j9,getPackageAccessibleBinaries:()=>sB,getWorkspaceAccessibleBinaries:()=>H9,hasPackageScript:()=>YDe,hasWorkspaceScript:()=>tD,makeScriptEnv:()=>Yd,maybeExecuteWorkspaceLifecycleScript:()=>JDe,prepareExternalProject:()=>GDe});var Md={};ft(Md,{getLibzipPromise:()=>fn,getLibzipSync:()=>D5});var P5=ge(x5());var ml=["number","number"],YP;(function(L){L[L.Z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PNOTSUPP",L[L.ZIP_ER_INUSE=29]="ZIP_ER_INUSE",L[L.ZIP_ER_TELL=30]="ZIP_ER_TELL",L[L.ZIP_ER_COMPRESSED_DATA=31]="ZIP_ER_COMPRESSED_DATA"})(YP||(YP={}));var k5=r=>({get HEAP8(){return r.HEAP8},get HEAPU8(){return r.HEAPU8},errors:YP,SEEK_SET:0,SEEK_CUR:1,SEEK_END:2,ZIP_CHECKCONS:4,ZIP_CREATE:1,ZIP_EXCL:2,ZIP_TRUNCATE:8,ZIP_RDONLY:16,ZIP_FL_OVERWRITE:8192,ZIP_FL_COMPRESSED:4,ZIP_OPSYS_DOS:0,ZIP_OPSYS_AMIGA:1,ZIP_OPSYS_OPENVMS:2,ZIP_OPSYS_UNIX:3,ZIP_OPSYS_VM_CMS:4,ZIP_OPSYS_ATARI_ST:5,ZIP_OPSYS_OS_2:6,ZIP_OPSYS_MACINTOSH:7,ZIP_OPSYS_Z_SYSTEM:8,ZIP_OPSYS_CPM:9,ZIP_OPSYS_WINDOWS_NTFS:10,ZIP_OPSYS_MVS:11,ZIP_OPSYS_VSE:12,ZIP_OPSYS_ACORN_RISC:13,ZIP_OPSYS_VFAT:14,ZIP_OPSYS_ALTERNATE_MVS:15,ZIP_OPSYS_BEOS:16,ZIP_OPSYS_TANDEM:17,ZIP_OPSYS_OS_400:18,ZIP_OPSYS_OS_X:19,ZIP_CM_DEFAULT:-1,ZIP_CM_STORE:0,ZIP_CM_DEFLATE:8,uint08S:r._malloc(1),uint16S:r._malloc(2),uint32S:r._malloc(4),uint64S:r._malloc(8),malloc:r._malloc,free:r._free,getValue:r.getValue,open:r.cwrap("zip_open","number",["string","number","number"]),openFromSource:r.cwrap("zip_open_from_source","number",["number","number","number"]),close:r.cwrap("zip_close","number",["number"]),discard:r.cwrap("zip_discard",null,["number"]),getError:r.cwrap("zip_get_error","number",["number"]),getName:r.cwrap("zip_get_name","string",["number","number","number"]),getNumEntries:r.cwrap("zip_get_num_entries","number",["number","number"]),delete:r.cwrap("zip_delete","number",["number","number"]),stat:r.cwrap("zip_stat","number",["number","string","number","number"]),statIndex:r.cwrap("zip_stat_index","number",["number",...ml,"number","number"]),fopen:r.cwrap("zip_fopen","number",["number","string","number"]),fopenIndex:r.cwrap("zip_fopen_index","number",["number",...ml,"number"]),fread:r.cwrap("zip_fread","number",["number","number","number","number"]),fclose:r.cwrap("zip_fclose","number",["number"]),dir:{add:r.cwrap("zip_dir_add","number",["number","string"])},file:{add:r.cwrap("zip_file_add","number",["number","string","number","number"]),getError:r.cwrap("zip_file_get_error","number",["number"]),getExternalAttributes:r.cwrap("zip_file_get_external_attributes","number",["number",...ml,"number","number","number"]),setExternalAttributes:r.cwrap("zip_file_set_external_attributes","number",["number",...ml,"number","number","number"]),setMtime:r.cwrap("zip_file_set_mtime","number",["number",...ml,"number","number"]),setCompression:r.cwrap("zip_set_file_compression","number",["number",...ml,"number","number"])},ext:{countSymlinks:r.cwrap("zip_ext_count_symlinks","number",["number"])},error:{initWithCode:r.cwrap("zip_error_init_with_code",null,["number","number"]),strerror:r.cwrap("zip_error_strerror","string",["number"])},name:{locate:r.cwrap("zip_name_locate","number",["number","string","number"])},source:{fromUnattachedBuffer:r.cwrap("zip_source_buffer_create","number",["number","number","number","number"]),fromBuffer:r.cwrap("zip_source_buffer","number",["number","number",...ml,"number"]),free:r.cwrap("zip_source_free",null,["number"]),keep:r.cwrap("zip_source_keep",null,["number"]),open:r.cwrap("zip_source_open","number",["number"]),close:r.cwrap("zip_source_close","number",["number"]),seek:r.cwrap("zip_source_seek","number",["number",...ml,"number"]),tell:r.cwrap("zip_source_tell","number",["number"]),read:r.cwrap("zip_source_read","number",["number","number","number"]),error:r.cwrap("zip_source_error","number",["number"]),setMtime:r.cwrap("zip_source_set_mtime","number",["number","number"])},struct:{stat:r.cwrap("zipstruct_stat","number",[]),statS:r.cwrap("zipstruct_statS","number",[]),statName:r.cwrap("zipstruct_stat_name","string",["number"]),statIndex:r.cwrap("zipstruct_stat_index","number",["number"]),statSize:r.cwrap("zipstruct_stat_size","number",["number"]),statCompSize:r.cwrap("zipstruct_stat_comp_size","number",["number"]),statCompMethod:r.cwrap("zipstruct_stat_comp_method","number",["number"]),statMtime:r.cwrap("zipstruct_stat_mtime","number",["number"]),statCrc:r.cwrap("zipstruct_stat_crc","number",["number"]),error:r.cwrap("zipstruct_error","number",[]),errorS:r.cwrap("zipstruct_errorS","number",[]),errorCodeZip:r.cwrap("zipstruct_error_code_zip","number",["number"])}});var qP=null;function D5(){return qP===null&&(qP=k5((0,P5.default)())),qP}async function fn(){return D5()}var Ud={};ft(Ud,{ShellError:()=>Ms,execute:()=>Xw,globUtils:()=>Yw});var G5=ge(uv()),Y5=ge(require("os")),os=ge(require("stream")),q5=ge(require("util"));var Ms=class extends Error{constructor(e){super(e);this.name="ShellError"}};var Yw={};ft(Yw,{fastGlobOptions:()=>N5,isBraceExpansion:()=>L5,isGlobPattern:()=>kPe,match:()=>PPe,micromatchOptions:()=>Jw});var R5=ge(Zy()),F5=ge(require("fs")),qw=ge(is()),Jw={strictBrackets:!0},N5={onlyDirectories:!1,onlyFiles:!1};function kPe(r){if(!qw.default.scan(r,Jw).isGlob)return!1;try{qw.default.parse(r,Jw)}catch{return!1}return!0}function PPe(r,{cwd:e,baseFs:t}){return(0,R5.default)(r,te(N({},N5),{cwd:H.fromPortablePath(e),fs:WE(F5.default,new Vh(t))}))}function L5(r){return qw.default.scan(r,Jw).isBrace}var T5=ge(SQ()),na=ge(require("stream")),O5=ge(require("string_decoder")),Fn;(function(i){i[i.STDIN=0]="STDIN",i[i.STDOUT=1]="STDOUT",i[i.STDERR=2]="STDERR"})(Fn||(Fn={}));var Xc=new Set;function JP(){}function WP(){for(let r of Xc)r.kill()}function M5(r,e,t,i){return n=>{let s=n[0]instanceof na.Transform?"pipe":n[0],o=n[1]instanceof na.Transform?"pipe":n[1],a=n[2]instanceof na.Transform?"pipe":n[2],l=(0,T5.default)(r,e,te(N({},i),{stdio:[s,o,a]}));return Xc.add(l),Xc.size===1&&(process.on("SIGINT",JP),process.on("SIGTERM",WP)),n[0]instanceof na.Transform&&n[0].pipe(l.stdin),n[1]instanceof na.Transform&&l.stdout.pipe(n[1],{end:!1}),n[2]instanceof na.Transform&&l.stderr.pipe(n[2],{end:!1}),{stdin:l.stdin,promise:new Promise(c=>{l.on("error",u=>{switch(Xc.delete(l),Xc.size===0&&(process.off("SIGINT",JP),process.off("SIGTERM",WP)),u.code){case"ENOENT":n[2].write(`command not found: ${r} +`),c(127);break;case"EACCES":n[2].write(`permission denied: ${r} +`),c(128);break;default:n[2].write(`uncaught error: ${u.message} +`),c(1);break}}),l.on("close",u=>{Xc.delete(l),Xc.size===0&&(process.off("SIGINT",JP),process.off("SIGTERM",WP)),c(u!==null?u:129)})})}}}function K5(r){return e=>{let t=e[0]==="pipe"?new na.PassThrough:e[0];return{stdin:t,promise:Promise.resolve().then(()=>r({stdin:t,stdout:e[1],stderr:e[2]}))}}}var mo=class{constructor(e){this.stream=e}close(){}get(){return this.stream}},U5=class{constructor(){this.stream=null}close(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");this.stream.end()}attach(e){this.stream=e}get(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");return this.stream}},Kd=class{constructor(e,t){this.stdin=null;this.stdout=null;this.stderr=null;this.pipe=null;this.ancestor=e,this.implementation=t}static start(e,{stdin:t,stdout:i,stderr:n}){let s=new Kd(null,e);return s.stdin=t,s.stdout=i,s.stderr=n,s}pipeTo(e,t=1){let i=new Kd(this,e),n=new U5;return i.pipe=n,i.stdout=this.stdout,i.stderr=this.stderr,(t&1)==1?this.stdout=n:this.ancestor!==null&&(this.stderr=this.ancestor.stdout),(t&2)==2?this.stderr=n:this.ancestor!==null&&(this.stderr=this.ancestor.stderr),i}async exec(){let e=["ignore","ignore","ignore"];if(this.pipe)e[0]="pipe";else{if(this.stdin===null)throw new Error("Assertion failed: No input stream registered");e[0]=this.stdin.get()}let t;if(this.stdout===null)throw new Error("Assertion failed: No output stream registered");t=this.stdout,e[1]=t.get();let i;if(this.stderr===null)throw new Error("Assertion failed: No error stream registered");i=this.stderr,e[2]=i.get();let n=this.implementation(e);return this.pipe&&this.pipe.attach(n.stdin),await n.promise.then(s=>(t.close(),i.close(),s))}async run(){let e=[];for(let i=this;i;i=i.ancestor)e.push(i.exec());return(await Promise.all(e))[0]}};function Ww(r,e){return Kd.start(r,e)}function H5(r,e=null){let t=new na.PassThrough,i=new O5.StringDecoder,n="";return t.on("data",s=>{let o=i.write(s),a;do if(a=o.indexOf(` +`),a!==-1){let l=n+o.substring(0,a);o=o.substring(a+1),n="",r(e!==null?`${e} ${l}`:l)}while(a!==-1);n+=o}),t.on("end",()=>{let s=i.end();s!==""&&r(e!==null?`${e} ${s}`:s)}),t}function j5(r,{prefix:e}){return{stdout:H5(t=>r.stdout.write(`${t} +`),r.stdout.isTTY?e:null),stderr:H5(t=>r.stderr.write(`${t} +`),r.stderr.isTTY?e:null)}}var DPe=(0,q5.promisify)(setTimeout);var zi;(function(t){t[t.Readable=1]="Readable",t[t.Writable=2]="Writable"})(zi||(zi={}));function J5(r,e,t){let i=new os.PassThrough({autoDestroy:!0});switch(r){case Fn.STDIN:(e&1)==1&&t.stdin.pipe(i,{end:!1}),(e&2)==2&&t.stdin instanceof os.Writable&&i.pipe(t.stdin,{end:!1});break;case Fn.STDOUT:(e&1)==1&&t.stdout.pipe(i,{end:!1}),(e&2)==2&&i.pipe(t.stdout,{end:!1});break;case Fn.STDERR:(e&1)==1&&t.stderr.pipe(i,{end:!1}),(e&2)==2&&i.pipe(t.stderr,{end:!1});break;default:throw new Ms(`Bad file descriptor: "${r}"`)}return i}function zw(r,e={}){let t=N(N({},r),e);return t.environment=N(N({},r.environment),e.environment),t.variables=N(N({},r.variables),e.variables),t}var RPe=new Map([["cd",async([r=(0,Y5.homedir)(),...e],t,i)=>{let n=k.resolve(i.cwd,H.toPortablePath(r));if(!(await t.baseFs.statPromise(n).catch(o=>{throw o.code==="ENOENT"?new Ms(`cd: no such file or directory: ${r}`):o})).isDirectory())throw new Ms(`cd: not a directory: ${r}`);return i.cwd=n,0}],["pwd",async(r,e,t)=>(t.stdout.write(`${H.fromPortablePath(t.cwd)} +`),0)],[":",async(r,e,t)=>0],["true",async(r,e,t)=>0],["false",async(r,e,t)=>1],["exit",async([r,...e],t,i)=>i.exitCode=parseInt(r!=null?r:i.variables["?"],10)],["echo",async(r,e,t)=>(t.stdout.write(`${r.join(" ")} +`),0)],["sleep",async([r],e,t)=>{if(typeof r=="undefined")throw new Ms("sleep: missing operand");let i=Number(r);if(Number.isNaN(i))throw new Ms(`sleep: invalid time interval '${r}'`);return await DPe(1e3*i,0)}],["__ysh_run_procedure",async(r,e,t)=>{let i=t.procedures[r[0]];return await Ww(i,{stdin:new mo(t.stdin),stdout:new mo(t.stdout),stderr:new mo(t.stderr)}).run()}],["__ysh_set_redirects",async(r,e,t)=>{let i=t.stdin,n=t.stdout,s=t.stderr,o=[],a=[],l=[],c=0;for(;r[c]!=="--";){let g=r[c++],{type:f,fd:h}=JSON.parse(g),p=v=>{switch(h){case null:case 0:o.push(v);break;default:throw new Error(`Unsupported file descriptor: "${h}"`)}},m=v=>{switch(h){case null:case 1:a.push(v);break;case 2:l.push(v);break;default:throw new Error(`Unsupported file descriptor: "${h}"`)}},y=Number(r[c++]),b=c+y;for(let v=c;ve.baseFs.createReadStream(k.resolve(t.cwd,H.toPortablePath(r[v]))));break;case"<<<":p(()=>{let x=new os.PassThrough;return process.nextTick(()=>{x.write(`${r[v]} +`),x.end()}),x});break;case"<&":p(()=>J5(Number(r[v]),1,t));break;case">":case">>":{let x=k.resolve(t.cwd,H.toPortablePath(r[v]));m(x==="/dev/null"?new os.Writable({autoDestroy:!0,emitClose:!0,write(T,q,Y){setImmediate(Y)}}):e.baseFs.createWriteStream(x,f===">>"?{flags:"a"}:void 0))}break;case">&":m(J5(Number(r[v]),2,t));break;default:throw new Error(`Assertion failed: Unsupported redirection type: "${f}"`)}}if(o.length>0){let g=new os.PassThrough;i=g;let f=h=>{if(h===o.length)g.end();else{let p=o[h]();p.pipe(g,{end:!1}),p.on("end",()=>{f(h+1)})}};f(0)}if(a.length>0){let g=new os.PassThrough;n=g;for(let f of a)g.pipe(f)}if(l.length>0){let g=new os.PassThrough;s=g;for(let f of l)g.pipe(f)}let u=await Ww(Hd(r.slice(c+1),e,t),{stdin:new mo(i),stdout:new mo(n),stderr:new mo(s)}).run();return await Promise.all(a.map(g=>new Promise((f,h)=>{g.on("error",p=>{h(p)}),g.on("close",()=>{f()}),g.end()}))),await Promise.all(l.map(g=>new Promise((f,h)=>{g.on("error",p=>{h(p)}),g.on("close",()=>{f()}),g.end()}))),u}]]);async function FPe(r,e,t){let i=[],n=new os.PassThrough;return n.on("data",s=>i.push(s)),await _w(r,e,zw(t,{stdout:n})),Buffer.concat(i).toString().replace(/[\r\n]+$/,"")}async function W5(r,e,t){let i=r.map(async s=>{let o=await aA(s.args,e,t);return{name:s.name,value:o.join(" ")}});return(await Promise.all(i)).reduce((s,o)=>(s[o.name]=o.value,s),{})}function Vw(r){return r.match(/[^ \r\n\t]+/g)||[]}async function z5(r,e,t,i,n=i){switch(r.name){case"$":i(String(process.pid));break;case"#":i(String(e.args.length));break;case"@":if(r.quoted)for(let s of e.args)n(s);else for(let s of e.args){let o=Vw(s);for(let a=0;a=0&&sr+e,subtraction:(r,e)=>r-e,multiplication:(r,e)=>r*e,division:(r,e)=>Math.trunc(r/e)};async function jd(r,e,t){if(r.type==="number"){if(Number.isInteger(r.value))return r.value;throw new Error(`Invalid number: "${r.value}", only integers are allowed`)}else if(r.type==="variable"){let i=[];await z5(te(N({},r),{quoted:!0}),e,t,s=>i.push(s));let n=Number(i.join(" "));return Number.isNaN(n)?jd({type:"variable",name:i.join(" ")},e,t):jd({type:"number",value:n},e,t)}else return NPe[r.type](await jd(r.left,e,t),await jd(r.right,e,t))}async function aA(r,e,t){let i=new Map,n=[],s=[],o=u=>{s.push(u)},a=()=>{s.length>0&&n.push(s.join("")),s=[]},l=u=>{o(u),a()},c=(u,g,f)=>{let h=JSON.stringify({type:u,fd:g}),p=i.get(h);typeof p=="undefined"&&i.set(h,p=[]),p.push(f)};for(let u of r){let g=!1;switch(u.type){case"redirection":{let f=await aA(u.args,e,t);for(let h of f)c(u.subtype,u.fd,h)}break;case"argument":for(let f of u.segments)switch(f.type){case"text":o(f.text);break;case"glob":o(f.pattern),g=!0;break;case"shell":{let h=await FPe(f.shell,e,t);if(f.quoted)o(h);else{let p=Vw(h);for(let m=0;m0){let u=[];for(let[g,f]of i.entries())u.splice(u.length,0,g,String(f.length),...f);n.splice(0,0,"__ysh_set_redirects",...u,"--")}return n}function Hd(r,e,t){e.builtins.has(r[0])||(r=["command",...r]);let i=H.fromPortablePath(t.cwd),n=t.environment;typeof n.PWD!="undefined"&&(n=te(N({},n),{PWD:i}));let[s,...o]=r;if(s==="command")return M5(o[0],o.slice(1),e,{cwd:i,env:n});let a=e.builtins.get(s);if(typeof a=="undefined")throw new Error(`Assertion failed: A builtin should exist for "${s}"`);return K5(async({stdin:l,stdout:c,stderr:u})=>{let{stdin:g,stdout:f,stderr:h}=t;t.stdin=l,t.stdout=c,t.stderr=u;try{return await a(o,e,t)}finally{t.stdin=g,t.stdout=f,t.stderr=h}})}function LPe(r,e,t){return i=>{let n=new os.PassThrough,s=_w(r,e,zw(t,{stdin:n}));return{stdin:n,promise:s}}}function TPe(r,e,t){return i=>{let n=new os.PassThrough,s=_w(r,e,t);return{stdin:n,promise:s}}}function _5(r,e,t,i){if(e.length===0)return r;{let n;do n=String(Math.random());while(Object.prototype.hasOwnProperty.call(i.procedures,n));return i.procedures=N({},i.procedures),i.procedures[n]=r,Hd([...e,"__ysh_run_procedure",n],t,i)}}async function V5(r,e,t){let i=r,n=null,s=null;for(;i;){let o=i.then?N({},t):t,a;switch(i.type){case"command":{let l=await aA(i.args,e,t),c=await W5(i.envs,e,t);a=i.envs.length?Hd(l,e,zw(o,{environment:c})):Hd(l,e,o)}break;case"subshell":{let l=await aA(i.args,e,t),c=LPe(i.subshell,e,o);a=_5(c,l,e,o)}break;case"group":{let l=await aA(i.args,e,t),c=TPe(i.group,e,o);a=_5(c,l,e,o)}break;case"envs":{let l=await W5(i.envs,e,t);o.environment=N(N({},o.environment),l),a=Hd(["true"],e,o)}break}if(typeof a=="undefined")throw new Error("Assertion failed: An action should have been generated");if(n===null)s=Ww(a,{stdin:new mo(o.stdin),stdout:new mo(o.stdout),stderr:new mo(o.stderr)});else{if(s===null)throw new Error("Assertion failed: The execution pipeline should have been setup");switch(n){case"|":s=s.pipeTo(a,Fn.STDOUT);break;case"|&":s=s.pipeTo(a,Fn.STDOUT|Fn.STDERR);break}}i.then?(n=i.then.type,i=i.then.chain):i=null}if(s===null)throw new Error("Assertion failed: The execution pipeline should have been setup");return await s.run()}async function OPe(r,e,t,{background:i=!1}={}){function n(s){let o=["#2E86AB","#A23B72","#F18F01","#C73E1D","#CCE2A3"],a=o[s%o.length];return G5.default.hex(a)}if(i){let s=t.nextBackgroundJobIndex++,o=n(s),a=`[${s}]`,l=o(a),{stdout:c,stderr:u}=j5(t,{prefix:l});return t.backgroundJobs.push(V5(r,e,zw(t,{stdout:c,stderr:u})).catch(g=>u.write(`${g.message} +`)).finally(()=>{t.stdout.isTTY&&t.stdout.write(`Job ${l}, '${o(eg(r))}' has ended +`)})),0}return await V5(r,e,t)}async function MPe(r,e,t,{background:i=!1}={}){let n,s=a=>{n=a,t.variables["?"]=String(a)},o=async a=>{try{return await OPe(a.chain,e,t,{background:i&&typeof a.then=="undefined"})}catch(l){if(!(l instanceof Ms))throw l;return t.stderr.write(`${l.message} +`),1}};for(s(await o(r));r.then;){if(t.exitCode!==null)return t.exitCode;switch(r.then.type){case"&&":n===0&&s(await o(r.then.line));break;case"||":n!==0&&s(await o(r.then.line));break;default:throw new Error(`Assertion failed: Unsupported command type: "${r.then.type}"`)}r=r.then.line}return n}async function _w(r,e,t){let i=t.backgroundJobs;t.backgroundJobs=[];let n=0;for(let{command:s,type:o}of r){if(n=await MPe(s,e,t,{background:o==="&"}),t.exitCode!==null)return t.exitCode;t.variables["?"]=String(n)}return await Promise.all(t.backgroundJobs),t.backgroundJobs=i,n}function X5(r){switch(r.type){case"variable":return r.name==="@"||r.name==="#"||r.name==="*"||Number.isFinite(parseInt(r.name,10))||"defaultValue"in r&&!!r.defaultValue&&r.defaultValue.some(e=>Gd(e))||"alternativeValue"in r&&!!r.alternativeValue&&r.alternativeValue.some(e=>Gd(e));case"arithmetic":return zP(r.arithmetic);case"shell":return _P(r.shell);default:return!1}}function Gd(r){switch(r.type){case"redirection":return r.args.some(e=>Gd(e));case"argument":return r.segments.some(e=>X5(e));default:throw new Error(`Assertion failed: Unsupported argument type: "${r.type}"`)}}function zP(r){switch(r.type){case"variable":return X5(r);case"number":return!1;default:return zP(r.left)||zP(r.right)}}function _P(r){return r.some(({command:e})=>{for(;e;){let t=e.chain;for(;t;){let i;switch(t.type){case"subshell":i=_P(t.subshell);break;case"command":i=t.envs.some(n=>n.args.some(s=>Gd(s)))||t.args.some(n=>Gd(n));break}if(i)return!0;if(!t.then)break;t=t.then.chain}if(!e.then)break;e=e.then.line}return!1})}async function Xw(r,e=[],{baseFs:t=new ar,builtins:i={},cwd:n=H.toPortablePath(process.cwd()),env:s=process.env,stdin:o=process.stdin,stdout:a=process.stdout,stderr:l=process.stderr,variables:c={},glob:u=Yw}={}){let g={};for(let[p,m]of Object.entries(s))typeof m!="undefined"&&(g[p]=m);let f=new Map(RPe);for(let[p,m]of Object.entries(i))f.set(p,m);o===null&&(o=new os.PassThrough,o.end());let h=_E(r,u);if(!_P(h)&&h.length>0&&e.length>0){let{command:p}=h[h.length-1];for(;p.then;)p=p.then.line;let m=p.chain;for(;m.then;)m=m.then.chain;m.type==="command"&&(m.args=m.args.concat(e.map(y=>({type:"argument",segments:[{type:"text",text:y}]}))))}return await _w(h,{args:e,baseFs:t,builtins:f,initialStdin:o,initialStdout:a,initialStderr:l,glob:u},{cwd:n,environment:g,exitCode:null,procedures:{},stdin:o,stdout:a,stderr:l,variables:Object.assign({},c,{["?"]:0}),nextBackgroundJobIndex:1,backgroundJobs:[]})}var O9=ge(Zw()),M9=ge(gg()),El=ge(require("stream"));var R9=ge(D9()),tB=ge(Ic());var F9=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],N9=80,TDe=new Set([X.FETCH_NOT_CACHED,X.UNUSED_CACHE_ENTRY]),ODe=5,rB=tB.default.GITHUB_ACTIONS?{start:r=>`::group::${r} +`,end:r=>`::endgroup:: +`}:tB.default.TRAVIS?{start:r=>`travis_fold:start:${r} +`,end:r=>`travis_fold:end:${r} +`}:tB.default.GITLAB?{start:r=>`section_start:${Math.floor(Date.now()/1e3)}:${r.toLowerCase().replace(/\W+/g,"_")}[collapsed=true]\r${r} +`,end:r=>`section_end:${Math.floor(Date.now()/1e3)}:${r.toLowerCase().replace(/\W+/g,"_")}\r`}:null,L9=new Date,MDe=["iTerm.app","Apple_Terminal"].includes(process.env.TERM_PROGRAM)||!!process.env.WT_SESSION,KDe=r=>r,iB=KDe({patrick:{date:[17,3],chars:["\u{1F340}","\u{1F331}"],size:40},simba:{date:[19,7],chars:["\u{1F981}","\u{1F334}"],size:40},jack:{date:[31,10],chars:["\u{1F383}","\u{1F987}"],size:40},hogsfather:{date:[31,12],chars:["\u{1F389}","\u{1F384}"],size:40},default:{chars:["=","-"],size:80}}),UDe=MDe&&Object.keys(iB).find(r=>{let e=iB[r];return!(e.date&&(e.date[0]!==L9.getDate()||e.date[1]!==L9.getMonth()+1))})||"default";function T9(r,{configuration:e,json:t}){if(!e.get("enableMessageNames"))return"";let n=_A(r===null?0:r);return!t&&r===null?tt(e,n,"grey"):n}function eD(r,{configuration:e,json:t}){let i=T9(r,{configuration:e,json:t});if(!i||r===null||r===X.UNNAMED)return i;let n=X[r],s=`https://yarnpkg.com/advanced/error-codes#${i}---${n}`.toLowerCase();return Mg(e,i,s)}var Je=class extends Ji{constructor({configuration:e,stdout:t,json:i=!1,includeFooter:n=!0,includeLogs:s=!i,includeInfos:o=s,includeWarnings:a=s,forgettableBufferSize:l=ODe,forgettableNames:c=new Set}){super();this.uncommitted=new Set;this.cacheHitCount=0;this.cacheMissCount=0;this.lastCacheMiss=null;this.warningCount=0;this.errorCount=0;this.startTime=Date.now();this.indent=0;this.progress=new Map;this.progressTime=0;this.progressFrame=0;this.progressTimeout=null;this.progressStyle=null;this.progressMaxScaledSize=null;this.forgettableLines=[];if(nd(this,{configuration:e}),this.configuration=e,this.forgettableBufferSize=l,this.forgettableNames=new Set([...c,...TDe]),this.includeFooter=n,this.includeInfos=o,this.includeWarnings=a,this.json=i,this.stdout=t,e.get("enableProgressBars")&&!i&&t.isTTY&&t.columns>22){let u=e.get("progressBarStyle")||UDe;if(!Object.prototype.hasOwnProperty.call(iB,u))throw new Error("Assertion failed: Invalid progress bar style");this.progressStyle=iB[u];let g="\u27A4 YN0000: \u250C ".length,f=Math.max(0,Math.min(t.columns-g,80));this.progressMaxScaledSize=Math.floor(this.progressStyle.size*f/80)}}static async start(e,t){let i=new this(e),n=process.emitWarning;process.emitWarning=(s,o)=>{if(typeof s!="string"){let l=s;s=l.message,o=o!=null?o:l.name}let a=typeof o!="undefined"?`${o}: ${s}`:s;i.reportWarning(X.UNNAMED,a)};try{await t(i)}catch(s){i.reportExceptionOnce(s)}finally{await i.finalize(),process.emitWarning=n}return i}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(e){this.cacheHitCount+=1}reportCacheMiss(e,t){this.lastCacheMiss=e,this.cacheMissCount+=1,typeof t!="undefined"&&!this.configuration.get("preferAggregateCacheInfo")&&this.reportInfo(X.FETCH_NOT_CACHED,t)}startSectionSync({reportHeader:e,reportFooter:t,skipIfEmpty:i},n){let s={committed:!1,action:()=>{e==null||e()}};i?this.uncommitted.add(s):(s.action(),s.committed=!0);let o=Date.now();try{return n()}catch(a){throw this.reportExceptionOnce(a),a}finally{let a=Date.now();this.uncommitted.delete(s),s.committed&&(t==null||t(a-o))}}async startSectionPromise({reportHeader:e,reportFooter:t,skipIfEmpty:i},n){let s={committed:!1,action:()=>{e==null||e()}};i?this.uncommitted.add(s):(s.action(),s.committed=!0);let o=Date.now();try{return await n()}catch(a){throw this.reportExceptionOnce(a),a}finally{let a=Date.now();this.uncommitted.delete(s),s.committed&&(t==null||t(a-o))}}startTimerImpl(e,t,i){let n=typeof t=="function"?{}:t;return{cb:typeof t=="function"?t:i,reportHeader:()=>{this.reportInfo(null,`\u250C ${e}`),this.indent+=1,rB!==null&&!this.json&&this.includeInfos&&this.stdout.write(rB.start(e))},reportFooter:o=>{this.indent-=1,rB!==null&&!this.json&&this.includeInfos&&this.stdout.write(rB.end(e)),this.configuration.get("enableTimers")&&o>200?this.reportInfo(null,`\u2514 Completed in ${tt(this.configuration,o,qe.DURATION)}`):this.reportInfo(null,"\u2514 Completed")},skipIfEmpty:n.skipIfEmpty}}startTimerSync(e,t,i){let o=this.startTimerImpl(e,t,i),{cb:n}=o,s=Or(o,["cb"]);return this.startSectionSync(s,n)}async startTimerPromise(e,t,i){let o=this.startTimerImpl(e,t,i),{cb:n}=o,s=Or(o,["cb"]);return this.startSectionPromise(s,n)}async startCacheReport(e){let t=this.configuration.get("preferAggregateCacheInfo")?{cacheHitCount:this.cacheHitCount,cacheMissCount:this.cacheMissCount}:null;try{return await e()}catch(i){throw this.reportExceptionOnce(i),i}finally{t!==null&&this.reportCacheChanges(t)}}reportSeparator(){this.indent===0?this.writeLineWithForgettableReset(""):this.reportInfo(null,"")}reportInfo(e,t){if(!this.includeInfos)return;this.commit();let i=this.formatNameWithHyperlink(e),n=i?`${i}: `:"",s=`${tt(this.configuration,"\u27A4","blueBright")} ${n}${this.formatIndent()}${t}`;if(this.json)this.reportJson({type:"info",name:e,displayName:this.formatName(e),indent:this.formatIndent(),data:t});else if(this.forgettableNames.has(e))if(this.forgettableLines.push(s),this.forgettableLines.length>this.forgettableBufferSize){for(;this.forgettableLines.length>this.forgettableBufferSize;)this.forgettableLines.shift();this.writeLines(this.forgettableLines,{truncate:!0})}else this.writeLine(s,{truncate:!0});else this.writeLineWithForgettableReset(s)}reportWarning(e,t){if(this.warningCount+=1,!this.includeWarnings)return;this.commit();let i=this.formatNameWithHyperlink(e),n=i?`${i}: `:"";this.json?this.reportJson({type:"warning",name:e,displayName:this.formatName(e),indent:this.formatIndent(),data:t}):this.writeLineWithForgettableReset(`${tt(this.configuration,"\u27A4","yellowBright")} ${n}${this.formatIndent()}${t}`)}reportError(e,t){this.errorCount+=1,this.commit();let i=this.formatNameWithHyperlink(e),n=i?`${i}: `:"";this.json?this.reportJson({type:"error",name:e,displayName:this.formatName(e),indent:this.formatIndent(),data:t}):this.writeLineWithForgettableReset(`${tt(this.configuration,"\u27A4","redBright")} ${n}${this.formatIndent()}${t}`,{truncate:!1})}reportProgress(e){if(this.progressStyle===null)return te(N({},Promise.resolve()),{stop:()=>{}});if(e.hasProgress&&e.hasTitle)throw new Error("Unimplemented: Progress bars can't have both progress and titles.");let t=!1,i=Promise.resolve().then(async()=>{let s={progress:e.hasProgress?0:void 0,title:e.hasTitle?"":void 0};this.progress.set(e,{definition:s,lastScaledSize:e.hasProgress?-1:void 0,lastTitle:void 0}),this.refreshProgress({delta:-1});for await(let{progress:o,title:a}of e)t||s.progress===o&&s.title===a||(s.progress=o,s.title=a,this.refreshProgress());n()}),n=()=>{t||(t=!0,this.progress.delete(e),this.refreshProgress({delta:1}))};return te(N({},i),{stop:n})}reportJson(e){this.json&&this.writeLineWithForgettableReset(`${JSON.stringify(e)}`)}async finalize(){if(!this.includeFooter)return;let e="";this.errorCount>0?e="Failed with errors":this.warningCount>0?e="Done with warnings":e="Done";let t=tt(this.configuration,Date.now()-this.startTime,qe.DURATION),i=this.configuration.get("enableTimers")?`${e} in ${t}`:e;this.errorCount>0?this.reportError(X.UNNAMED,i):this.warningCount>0?this.reportWarning(X.UNNAMED,i):this.reportInfo(X.UNNAMED,i)}writeLine(e,{truncate:t}={}){this.clearProgress({clear:!0}),this.stdout.write(`${this.truncate(e,{truncate:t})} +`),this.writeProgress()}writeLineWithForgettableReset(e,{truncate:t}={}){this.forgettableLines=[],this.writeLine(e,{truncate:t})}writeLines(e,{truncate:t}={}){this.clearProgress({delta:e.length});for(let i of e)this.stdout.write(`${this.truncate(i,{truncate:t})} +`);this.writeProgress()}reportCacheChanges({cacheHitCount:e,cacheMissCount:t}){let i=this.cacheHitCount-e,n=this.cacheMissCount-t;if(i===0&&n===0)return;let s="";this.cacheHitCount>1?s+=`${this.cacheHitCount} packages were already cached`:this.cacheHitCount===1?s+=" - one package was already cached":s+="No packages were cached",this.cacheHitCount>0?this.cacheMissCount>1?s+=`, ${this.cacheMissCount} had to be fetched`:this.cacheMissCount===1&&(s+=`, one had to be fetched (${It(this.configuration,this.lastCacheMiss)})`):this.cacheMissCount>1?s+=` - ${this.cacheMissCount} packages had to be fetched`:this.cacheMissCount===1&&(s+=` - one package had to be fetched (${It(this.configuration,this.lastCacheMiss)})`),this.reportInfo(X.FETCH_NOT_CACHED,s)}commit(){let e=this.uncommitted;this.uncommitted=new Set;for(let t of e)t.committed=!0,t.action()}clearProgress({delta:e=0,clear:t=!1}){this.progressStyle!==null&&this.progress.size+e>0&&(this.stdout.write(`[${this.progress.size+e}A`),(e>0||t)&&this.stdout.write(""))}writeProgress(){if(this.progressStyle===null||(this.progressTimeout!==null&&clearTimeout(this.progressTimeout),this.progressTimeout=null,this.progress.size===0))return;let e=Date.now();e-this.progressTime>N9&&(this.progressFrame=(this.progressFrame+1)%F9.length,this.progressTime=e);let t=F9[this.progressFrame];for(let i of this.progress.values()){let n="";if(typeof i.lastScaledSize!="undefined"){let l=this.progressStyle.chars[0].repeat(i.lastScaledSize),c=this.progressStyle.chars[1].repeat(this.progressMaxScaledSize-i.lastScaledSize);n=` ${l}${c}`}let s=this.formatName(null),o=s?`${s}: `:"",a=i.definition.title?` ${i.definition.title}`:"";this.stdout.write(`${tt(this.configuration,"\u27A4","blueBright")} ${o}${t}${n}${a} +`)}this.progressTimeout=setTimeout(()=>{this.refreshProgress({force:!0})},N9)}refreshProgress({delta:e=0,force:t=!1}={}){let i=!1,n=!1;if(t||this.progress.size===0)i=!0;else for(let s of this.progress.values()){let o=typeof s.definition.progress!="undefined"?Math.trunc(this.progressMaxScaledSize*s.definition.progress):void 0,a=s.lastScaledSize;s.lastScaledSize=o;let l=s.lastTitle;if(s.lastTitle=s.definition.title,o!==a||(n=l!==s.definition.title)){i=!0;break}}i&&(this.clearProgress({delta:e,clear:n}),this.writeProgress())}truncate(e,{truncate:t}={}){return this.progressStyle===null&&(t=!1),typeof t=="undefined"&&(t=this.configuration.get("preferTruncatedLines")),t&&(e=(0,R9.default)(e,0,this.stdout.columns-1)),e}formatName(e){return T9(e,{configuration:this.configuration,json:this.json})}formatNameWithHyperlink(e){return eD(e,{configuration:this.configuration,json:this.json})}formatIndent(){return"\u2502 ".repeat(this.indent)}};var Ur="3.2.2";var hn;(function(n){n.Yarn1="Yarn Classic",n.Yarn2="Yarn",n.Npm="npm",n.Pnpm="pnpm"})(hn||(hn={}));async function AA(r,e,t,i=[]){if(process.platform==="win32"){let n=`@goto #_undefined_# 2>NUL || @title %COMSPEC% & @setlocal & @"${t}" ${i.map(s=>`"${s.replace('"','""')}"`).join(" ")} %*`;await K.writeFilePromise(k.format({dir:r,name:e,ext:".cmd"}),n)}await K.writeFilePromise(k.join(r,e),`#!/bin/sh +exec "${t}" ${i.map(n=>`'${n.replace(/'/g,`'"'"'`)}'`).join(" ")} "$@" +`,{mode:493})}async function K9(r){let e=await At.tryFind(r);if(e==null?void 0:e.packageManager){let i=lw(e.packageManager);if(i==null?void 0:i.name){let n=`found ${JSON.stringify({packageManager:e.packageManager})} in manifest`,[s]=i.reference.split(".");switch(i.name){case"yarn":return{packageManager:Number(s)===1?hn.Yarn1:hn.Yarn2,reason:n};case"npm":return{packageManager:hn.Npm,reason:n};case"pnpm":return{packageManager:hn.Pnpm,reason:n}}}}let t;try{t=await K.readFilePromise(k.join(r,kt.lockfile),"utf8")}catch{}return t!==void 0?t.match(/^__metadata:$/m)?{packageManager:hn.Yarn2,reason:'"__metadata" key found in yarn.lock'}:{packageManager:hn.Yarn1,reason:'"__metadata" key not found in yarn.lock, must be a Yarn classic lockfile'}:K.existsSync(k.join(r,"package-lock.json"))?{packageManager:hn.Npm,reason:`found npm's "package-lock.json" lockfile`}:K.existsSync(k.join(r,"pnpm-lock.yaml"))?{packageManager:hn.Pnpm,reason:`found pnpm's "pnpm-lock.yaml" lockfile`}:null}async function Yd({project:r,locator:e,binFolder:t,lifecycleScript:i}){var l,c;let n={};for(let[u,g]of Object.entries(process.env))typeof g!="undefined"&&(n[u.toLowerCase()!=="path"?u:"PATH"]=g);let s=H.fromPortablePath(t);n.BERRY_BIN_FOLDER=H.fromPortablePath(s);let o=process.env.COREPACK_ROOT?H.join(process.env.COREPACK_ROOT,"dist/yarn.js"):process.argv[1];if(await Promise.all([AA(t,"node",process.execPath),...Ur!==null?[AA(t,"run",process.execPath,[o,"run"]),AA(t,"yarn",process.execPath,[o]),AA(t,"yarnpkg",process.execPath,[o]),AA(t,"node-gyp",process.execPath,[o,"run","--top-level","node-gyp"])]:[]]),r&&(n.INIT_CWD=H.fromPortablePath(r.configuration.startingCwd),n.PROJECT_CWD=H.fromPortablePath(r.cwd)),n.PATH=n.PATH?`${s}${H.delimiter}${n.PATH}`:`${s}`,n.npm_execpath=`${s}${H.sep}yarn`,n.npm_node_execpath=`${s}${H.sep}node`,e){if(!r)throw new Error("Assertion failed: Missing project");let u=r.tryWorkspaceByLocator(e),g=u?(l=u.manifest.version)!=null?l:"":(c=r.storedPackages.get(e.locatorHash).version)!=null?c:"";n.npm_package_name=Ot(e),n.npm_package_version=g;let f;if(u)f=u.cwd;else{let h=r.storedPackages.get(e.locatorHash);if(!h)throw new Error(`Package for ${It(r.configuration,e)} not found in the project`);let p=r.configuration.getLinkers(),m={project:r,report:new Je({stdout:new El.PassThrough,configuration:r.configuration})},y=p.find(b=>b.supportsPackage(h,m));if(!y)throw new Error(`The package ${It(r.configuration,h)} isn't supported by any of the available linkers`);f=await y.findPackageLocation(h,m)}n.npm_package_json=H.fromPortablePath(k.join(f,kt.manifest))}let a=Ur!==null?`yarn/${Ur}`:`yarn/${Og("@yarnpkg/core").version}-core`;return n.npm_config_user_agent=`${a} npm/? node/${process.version} ${process.platform} ${process.arch}`,i&&(n.npm_lifecycle_event=i),r&&await r.configuration.triggerHook(u=>u.setupScriptEnvironment,r,n,async(u,g,f)=>await AA(t,Jr(u),g,f)),n}var HDe=2,jDe=(0,M9.default)(HDe);async function GDe(r,e,{configuration:t,report:i,workspace:n=null,locator:s=null}){await jDe(async()=>{await K.mktempPromise(async o=>{let a=k.join(o,"pack.log"),l=null,{stdout:c,stderr:u}=t.getSubprocessStreams(a,{prefix:H.fromPortablePath(r),report:i}),g=s&&ea(s)?gd(s):s,f=g?Rs(g):"an external project";c.write(`Packing ${f} from sources +`);let h=await K9(r),p;h!==null?(c.write(`Using ${h.packageManager} for bootstrap. Reason: ${h.reason} + +`),p=h.packageManager):(c.write(`No package manager configuration detected; defaulting to Yarn + +`),p=hn.Yarn2),await K.mktempPromise(async m=>{let y=await Yd({binFolder:m}),v=new Map([[hn.Yarn1,async()=>{let T=n!==null?["workspace",n]:[],q=await ra("yarn",["set","version","classic","--only-if-needed"],{cwd:r,env:y,stdin:l,stdout:c,stderr:u,end:ss.ErrorCode});if(q.code!==0)return q.code;await K.appendFilePromise(k.join(r,".npmignore"),`/.yarn +`),c.write(` +`),delete y.NODE_ENV;let Y=await ra("yarn",["install"],{cwd:r,env:y,stdin:l,stdout:c,stderr:u,end:ss.ErrorCode});if(Y.code!==0)return Y.code;c.write(` +`);let $=await ra("yarn",[...T,"pack","--filename",H.fromPortablePath(e)],{cwd:r,env:y,stdin:l,stdout:c,stderr:u});return $.code!==0?$.code:0}],[hn.Yarn2,async()=>{let T=n!==null?["workspace",n]:[];y.YARN_ENABLE_INLINE_BUILDS="1";let q=k.join(r,kt.lockfile);await K.existsPromise(q)||await K.writeFilePromise(q,"");let Y=await ra("yarn",[...T,"pack","--install-if-needed","--filename",H.fromPortablePath(e)],{cwd:r,env:y,stdin:l,stdout:c,stderr:u});return Y.code!==0?Y.code:0}],[hn.Npm,async()=>{if(n!==null){let A=new El.PassThrough,oe=Tg(A);A.pipe(c,{end:!1});let ce=await ra("npm",["--version"],{cwd:r,env:y,stdin:l,stdout:A,stderr:u,end:ss.Never});if(A.end(),ce.code!==0)return c.end(),u.end(),ce.code;let Z=(await oe).toString().trim();if(!qc(Z,">=7.x")){let O=$o(null,"npm"),L=rr(O,Z),de=rr(O,">=7.x");throw new Error(`Workspaces aren't supported by ${sr(t,L)}; please upgrade to ${sr(t,de)} (npm has been detected as the primary package manager for ${tt(t,r,qe.PATH)})`)}}let T=n!==null?["--workspace",n]:[];delete y.npm_config_user_agent,delete y.npm_config_production,delete y.NPM_CONFIG_PRODUCTION,delete y.NODE_ENV;let q=await ra("npm",["install"],{cwd:r,env:y,stdin:l,stdout:c,stderr:u,end:ss.ErrorCode});if(q.code!==0)return q.code;let Y=new El.PassThrough,$=Tg(Y);Y.pipe(c);let _=await ra("npm",["pack","--silent",...T],{cwd:r,env:y,stdin:l,stdout:Y,stderr:u});if(_.code!==0)return _.code;let ne=(await $).toString().trim().replace(/^.*\n/s,""),ee=k.resolve(r,H.toPortablePath(ne));return await K.renamePromise(ee,e),0}]]).get(p);if(typeof v=="undefined")throw new Error("Assertion failed: Unsupported workflow");let x=await v();if(!(x===0||typeof x=="undefined"))throw K.detachTemp(o),new ct(X.PACKAGE_PREPARATION_FAILED,`Packing the package failed (exit code ${x}, logs can be found here: ${tt(t,a,qe.PATH)})`)})})})}async function YDe(r,e,{project:t}){let i=t.tryWorkspaceByLocator(r);if(i!==null)return tD(i,e);let n=t.storedPackages.get(r.locatorHash);if(!n)throw new Error(`Package for ${It(t.configuration,r)} not found in the project`);return await Is.openPromise(async s=>{let o=t.configuration,a=t.configuration.getLinkers(),l={project:t,report:new Je({stdout:new El.PassThrough,configuration:o})},c=a.find(h=>h.supportsPackage(n,l));if(!c)throw new Error(`The package ${It(t.configuration,n)} isn't supported by any of the available linkers`);let u=await c.findPackageLocation(n,l),g=new _t(u,{baseFs:s});return(await At.find(Me.dot,{baseFs:g})).scripts.has(e)},{libzip:await fn()})}async function nB(r,e,t,{cwd:i,project:n,stdin:s,stdout:o,stderr:a}){return await K.mktempPromise(async l=>{let{manifest:c,env:u,cwd:g}=await U9(r,{project:n,binFolder:l,cwd:i,lifecycleScript:e}),f=c.scripts.get(e);if(typeof f=="undefined")return 1;let h=async()=>await Xw(f,t,{cwd:g,env:u,stdin:s,stdout:o,stderr:a});return await(await n.configuration.reduceHook(m=>m.wrapScriptExecution,h,n,r,e,{script:f,args:t,cwd:g,env:u,stdin:s,stdout:o,stderr:a}))()})}async function rD(r,e,t,{cwd:i,project:n,stdin:s,stdout:o,stderr:a}){return await K.mktempPromise(async l=>{let{env:c,cwd:u}=await U9(r,{project:n,binFolder:l,cwd:i});return await Xw(e,t,{cwd:u,env:c,stdin:s,stdout:o,stderr:a})})}async function qDe(r,{binFolder:e,cwd:t,lifecycleScript:i}){let n=await Yd({project:r.project,locator:r.anchoredLocator,binFolder:e,lifecycleScript:i});return await Promise.all(Array.from(await H9(r),([s,[,o]])=>AA(e,Jr(s),process.execPath,[o]))),typeof t=="undefined"&&(t=k.dirname(await K.realpathPromise(k.join(r.cwd,"package.json")))),{manifest:r.manifest,binFolder:e,env:n,cwd:t}}async function U9(r,{project:e,binFolder:t,cwd:i,lifecycleScript:n}){let s=e.tryWorkspaceByLocator(r);if(s!==null)return qDe(s,{binFolder:t,cwd:i,lifecycleScript:n});let o=e.storedPackages.get(r.locatorHash);if(!o)throw new Error(`Package for ${It(e.configuration,r)} not found in the project`);return await Is.openPromise(async a=>{let l=e.configuration,c=e.configuration.getLinkers(),u={project:e,report:new Je({stdout:new El.PassThrough,configuration:l})},g=c.find(y=>y.supportsPackage(o,u));if(!g)throw new Error(`The package ${It(e.configuration,o)} isn't supported by any of the available linkers`);let f=await Yd({project:e,locator:r,binFolder:t,lifecycleScript:n});await Promise.all(Array.from(await sB(r,{project:e}),([y,[,b]])=>AA(t,Jr(y),process.execPath,[b])));let h=await g.findPackageLocation(o,u),p=new _t(h,{baseFs:a}),m=await At.find(Me.dot,{baseFs:p});return typeof i=="undefined"&&(i=h),{manifest:m,binFolder:t,env:f,cwd:i}},{libzip:await fn()})}async function j9(r,e,t,{cwd:i,stdin:n,stdout:s,stderr:o}){return await nB(r.anchoredLocator,e,t,{cwd:i,project:r.project,stdin:n,stdout:s,stderr:o})}function tD(r,e){return r.manifest.scripts.has(e)}async function G9(r,e,{cwd:t,report:i}){let{configuration:n}=r.project,s=null;await K.mktempPromise(async o=>{let a=k.join(o,`${e}.log`),l=`# This file contains the result of Yarn calling the "${e}" lifecycle script inside a workspace ("${H.fromPortablePath(r.cwd)}") +`,{stdout:c,stderr:u}=n.getSubprocessStreams(a,{report:i,prefix:It(n,r.anchoredLocator),header:l});i.reportInfo(X.LIFECYCLE_SCRIPT,`Calling the "${e}" lifecycle script`);let g=await j9(r,e,[],{cwd:t,stdin:s,stdout:c,stderr:u});if(c.end(),u.end(),g!==0)throw K.detachTemp(o),new ct(X.LIFECYCLE_SCRIPT,`${(0,O9.default)(e)} script failed (exit code ${tt(n,g,qe.NUMBER)}, logs can be found here: ${tt(n,a,qe.PATH)}); run ${tt(n,`yarn ${e}`,qe.CODE)} to investigate`)})}async function JDe(r,e,t){tD(r,e)&&await G9(r,e,t)}async function sB(r,{project:e}){let t=e.configuration,i=new Map,n=e.storedPackages.get(r.locatorHash);if(!n)throw new Error(`Package for ${It(t,r)} not found in the project`);let s=new El.Writable,o=t.getLinkers(),a={project:e,report:new Je({configuration:t,stdout:s})},l=new Set([r.locatorHash]);for(let u of n.dependencies.values()){let g=e.storedResolutions.get(u.descriptorHash);if(!g)throw new Error(`Assertion failed: The resolution (${sr(t,u)}) should have been registered`);l.add(g)}let c=await Promise.all(Array.from(l,async u=>{let g=e.storedPackages.get(u);if(!g)throw new Error(`Assertion failed: The package (${u}) should have been registered`);if(g.bin.size===0)return zo.skip;let f=o.find(p=>p.supportsPackage(g,a));if(!f)return zo.skip;let h=null;try{h=await f.findPackageLocation(g,a)}catch(p){if(p.code==="LOCATOR_NOT_INSTALLED")return zo.skip;throw p}return{dependency:g,packageLocation:h}}));for(let u of c){if(u===zo.skip)continue;let{dependency:g,packageLocation:f}=u;for(let[h,p]of g.bin)i.set(h,[g,H.fromPortablePath(k.resolve(f,p))])}return i}async function H9(r){return await sB(r.anchoredLocator,{project:r.project})}async function Y9(r,e,t,{cwd:i,project:n,stdin:s,stdout:o,stderr:a,nodeArgs:l=[],packageAccessibleBinaries:c}){c!=null||(c=await sB(r,{project:n}));let u=c.get(e);if(!u)throw new Error(`Binary not found (${e}) for ${It(n.configuration,r)}`);return await K.mktempPromise(async g=>{let[,f]=u,h=await Yd({project:n,locator:r,binFolder:g});await Promise.all(Array.from(c,([m,[,y]])=>AA(h.BERRY_BIN_FOLDER,Jr(m),process.execPath,[y])));let p;try{p=await ra(process.execPath,[...l,f,...t],{cwd:i,env:h,stdin:s,stdout:o,stderr:a})}finally{await K.removePromise(h.BERRY_BIN_FOLDER)}return p.code})}async function WDe(r,e,t,{cwd:i,stdin:n,stdout:s,stderr:o,packageAccessibleBinaries:a}){return await Y9(r.anchoredLocator,e,t,{project:r.project,cwd:i,stdin:n,stdout:s,stderr:o,packageAccessibleBinaries:a})}var Bi={};ft(Bi,{convertToZip:()=>iNe,extractArchiveTo:()=>sNe,makeArchiveFromDirectory:()=>rNe});var T6=ge(require("stream")),O6=ge(P6());var D6=ge(require("os")),R6=ge(gg()),F6=ge(require("worker_threads")),Dl=Symbol("kTaskInfo"),pR=class{constructor(e){this.source=e;this.workers=[];this.limit=(0,R6.default)(Math.max(1,(0,D6.cpus)().length));this.cleanupInterval=setInterval(()=>{if(this.limit.pendingCount===0&&this.limit.activeCount===0){let t=this.workers.pop();t?t.terminate():clearInterval(this.cleanupInterval)}},5e3).unref()}createWorker(){this.cleanupInterval.refresh();let e=new F6.Worker(this.source,{eval:!0,execArgv:[...process.execArgv,"--unhandled-rejections=strict"]});return e.on("message",t=>{if(!e[Dl])throw new Error("Assertion failed: Worker sent a result without having a task assigned");e[Dl].resolve(t),e[Dl]=null,e.unref(),this.workers.push(e)}),e.on("error",t=>{var i;(i=e[Dl])==null||i.reject(t),e[Dl]=null}),e.on("exit",t=>{var i;t!==0&&((i=e[Dl])==null||i.reject(new Error(`Worker exited with code ${t}`))),e[Dl]=null}),e}run(e){return this.limit(()=>{var i;let t=(i=this.workers.pop())!=null?i:this.createWorker();return t.ref(),new Promise((n,s)=>{t[Dl]={resolve:n,reject:s},t.postMessage(e)})})}};var M6=ge(L6());async function rNe(r,{baseFs:e=new ar,prefixPath:t=Me.root,compressionLevel:i,inMemory:n=!1}={}){let s=await fn(),o;if(n)o=new li(null,{libzip:s,level:i});else{let l=await K.mktempPromise(),c=k.join(l,"archive.zip");o=new li(c,{create:!0,libzip:s,level:i})}let a=k.resolve(Me.root,t);return await o.copyPromise(a,r,{baseFs:e,stableTime:!0,stableSort:!0}),o}var K6;async function iNe(r,e){let t=await K.mktempPromise(),i=k.join(t,"archive.zip");return K6||(K6=new pR((0,M6.getContent)())),await K6.run({tmpFile:i,tgz:r,opts:e}),new li(i,{libzip:await fn(),level:e.compressionLevel})}async function*nNe(r){let e=new O6.default.Parse,t=new T6.PassThrough({objectMode:!0,autoDestroy:!0,emitClose:!0});e.on("entry",i=>{t.write(i)}),e.on("error",i=>{t.destroy(i)}),e.on("close",()=>{t.destroyed||t.end()}),e.end(r);for await(let i of t){let n=i;yield n,n.resume()}}async function sNe(r,e,{stripComponents:t=0,prefixPath:i=Me.dot}={}){var s,o;function n(a){if(a.path[0]==="/")return!0;let l=a.path.split(/\//g);return!!(l.some(c=>c==="..")||l.length<=t)}for await(let a of nNe(r)){if(n(a))continue;let l=k.normalize(H.toPortablePath(a.path)).replace(/\/$/,"").split(/\//g);if(l.length<=t)continue;let c=l.slice(t).join("/"),u=k.join(i,c),g=420;switch((a.type==="Directory"||(((s=a.mode)!=null?s:0)&73)!=0)&&(g|=73),a.type){case"Directory":e.mkdirpSync(k.dirname(u),{chmod:493,utimes:[Rr.SAFE_TIME,Rr.SAFE_TIME]}),e.mkdirSync(u,{mode:g}),e.utimesSync(u,Rr.SAFE_TIME,Rr.SAFE_TIME);break;case"OldFile":case"File":e.mkdirpSync(k.dirname(u),{chmod:493,utimes:[Rr.SAFE_TIME,Rr.SAFE_TIME]}),e.writeFileSync(u,await Tg(a),{mode:g}),e.utimesSync(u,Rr.SAFE_TIME,Rr.SAFE_TIME);break;case"SymbolicLink":e.mkdirpSync(k.dirname(u),{chmod:493,utimes:[Rr.SAFE_TIME,Rr.SAFE_TIME]}),e.symlinkSync(a.linkpath,u),(o=e.lutimesSync)==null||o.call(e,u,Rr.SAFE_TIME,Rr.SAFE_TIME);break}}return e}var ls={};ft(ls,{emitList:()=>oNe,emitTree:()=>q6,treeNodeToJson:()=>Y6,treeNodeToTreeify:()=>G6});var j6=ge(H6());function G6(r,{configuration:e}){let t={},i=(n,s)=>{let o=Array.isArray(n)?n.entries():Object.entries(n);for(let[a,{label:l,value:c,children:u}]of o){let g=[];typeof l!="undefined"&&g.push(Ry(e,l,Tc.BOLD)),typeof c!="undefined"&&g.push(tt(e,c[0],c[1])),g.length===0&&g.push(Ry(e,`${a}`,Tc.BOLD));let f=g.join(": "),h=s[f]={};typeof u!="undefined"&&i(u,h)}};if(typeof r.children=="undefined")throw new Error("The root node must only contain children");return i(r.children,t),t}function Y6(r){let e=t=>{var s;if(typeof t.children=="undefined"){if(typeof t.value=="undefined")throw new Error("Assertion failed: Expected a value to be set if the children are missing");return Oc(t.value[0],t.value[1])}let i=Array.isArray(t.children)?t.children.entries():Object.entries((s=t.children)!=null?s:{}),n=Array.isArray(t.children)?[]:{};for(let[o,a]of i)n[o]=e(a);return typeof t.value=="undefined"?n:{value:Oc(t.value[0],t.value[1]),children:n}};return e(r)}function oNe(r,{configuration:e,stdout:t,json:i}){let n=r.map(s=>({value:s}));q6({children:n},{configuration:e,stdout:t,json:i})}function q6(r,{configuration:e,stdout:t,json:i,separators:n=0}){var o;if(i){let a=Array.isArray(r.children)?r.children.values():Object.values((o=r.children)!=null?o:{});for(let l of a)t.write(`${JSON.stringify(Y6(l))} +`);return}let s=(0,j6.asTree)(G6(r,{configuration:e}),!1,!1);if(n>=1&&(s=s.replace(/^([├└]─)/gm,`\u2502 +$1`).replace(/^│\n/,"")),n>=2)for(let a=0;a<2;++a)s=s.replace(/^([│ ].{2}[├│ ].{2}[^\n]+\n)(([│ ]).{2}[├└].{2}[^\n]*\n[│ ].{2}[│ ].{2}[├└]─)/gm,`$1$3 \u2502 +$2`).replace(/^│\n/,"");if(n>=3)throw new Error("Only the first two levels are accepted by treeUtils.emitTree");t.write(s)}var J6=ge(require("crypto")),mR=ge(require("fs"));var aNe=8,Nt=class{constructor(e,{configuration:t,immutable:i=t.get("enableImmutableCache"),check:n=!1}){this.markedFiles=new Set;this.mutexes=new Map;this.cacheId=`-${(0,J6.randomBytes)(8).toString("hex")}.tmp`;this.configuration=t,this.cwd=e,this.immutable=i,this.check=n;let s=t.get("cacheKeyOverride");if(s!==null)this.cacheKey=`${s}`;else{let o=t.get("compressionLevel"),a=o!==lc?`c${o}`:"";this.cacheKey=[aNe,a].join("")}}static async find(e,{immutable:t,check:i}={}){let n=new Nt(e.get("cacheFolder"),{configuration:e,immutable:t,check:i});return await n.setup(),n}get mirrorCwd(){if(!this.configuration.get("enableMirror"))return null;let e=`${this.configuration.get("globalFolder")}/cache`;return e!==this.cwd?e:null}getVersionFilename(e){return`${Jg(e)}-${this.cacheKey}.zip`}getChecksumFilename(e,t){let n=ANe(t).slice(0,10);return`${Jg(e)}-${n}.zip`}getLocatorPath(e,t,i={}){var s;return this.mirrorCwd===null||((s=i.unstablePackages)==null?void 0:s.has(e.locatorHash))?k.resolve(this.cwd,this.getVersionFilename(e)):t===null||ER(t)!==this.cacheKey?null:k.resolve(this.cwd,this.getChecksumFilename(e,t))}getLocatorMirrorPath(e){let t=this.mirrorCwd;return t!==null?k.resolve(t,this.getVersionFilename(e)):null}async setup(){if(!this.configuration.get("enableGlobalCache"))if(this.immutable){if(!await K.existsPromise(this.cwd))throw new ct(X.IMMUTABLE_CACHE,"Cache path does not exist.")}else{await K.mkdirPromise(this.cwd,{recursive:!0});let e=k.resolve(this.cwd,".gitignore");await K.changeFilePromise(e,`/.gitignore +*.flock +*.tmp +`)}(this.mirrorCwd||!this.immutable)&&await K.mkdirPromise(this.mirrorCwd||this.cwd,{recursive:!0})}async fetchPackageFromCache(e,t,a){var l=a,{onHit:i,onMiss:n,loader:s}=l,o=Or(l,["onHit","onMiss","loader"]);var A;let c=this.getLocatorMirrorPath(e),u=new ar,g=()=>{let oe=new li(null,{libzip:q}),ce=k.join(Me.root,ek(e));return oe.mkdirSync(ce,{recursive:!0}),oe.writeJsonSync(k.join(ce,kt.manifest),{name:Ot(e),mocked:!0}),oe},f=async(oe,ce=null)=>{var O;if(ce===null&&((O=o.unstablePackages)==null?void 0:O.has(e.locatorHash)))return null;let Z=!o.skipIntegrityCheck||!t?`${this.cacheKey}/${await sw(oe)}`:t;if(ce!==null){let L=!o.skipIntegrityCheck||!t?`${this.cacheKey}/${await sw(ce)}`:t;if(Z!==L)throw new ct(X.CACHE_CHECKSUM_MISMATCH,"The remote archive doesn't match the local checksum - has the local cache been corrupted?")}if(t!==null&&Z!==t){let L;switch(this.check?L="throw":ER(t)!==ER(Z)?L="update":L=this.configuration.get("checksumBehavior"),L){case"ignore":return t;case"update":return Z;default:case"throw":throw new ct(X.CACHE_CHECKSUM_MISMATCH,"The remote archive doesn't match the expected checksum")}}return Z},h=async oe=>{if(!s)throw new Error(`Cache check required but no loader configured for ${It(this.configuration,e)}`);let ce=await s(),Z=ce.getRealPath();return ce.saveAndClose(),await K.chmodPromise(Z,420),await f(oe,Z)},p=async()=>{if(c===null||!await K.existsPromise(c)){let oe=await s(),ce=oe.getRealPath();return oe.saveAndClose(),{source:"loader",path:ce}}return{source:"mirror",path:c}},m=async()=>{if(!s)throw new Error(`Cache entry required but missing for ${It(this.configuration,e)}`);if(this.immutable)throw new ct(X.IMMUTABLE_CACHE,`Cache entry required but missing for ${It(this.configuration,e)}`);let{path:oe,source:ce}=await p(),Z=await f(oe),O=this.getLocatorPath(e,Z,o);if(!O)throw new Error("Assertion failed: Expected the cache path to be available");let L=[];ce!=="mirror"&&c!==null&&L.push(async()=>{let Be=`${c}${this.cacheId}`;await K.copyFilePromise(oe,Be,mR.default.constants.COPYFILE_FICLONE),await K.chmodPromise(Be,420),await K.renamePromise(Be,c)}),(!o.mirrorWriteOnly||c===null)&&L.push(async()=>{let Be=`${O}${this.cacheId}`;await K.copyFilePromise(oe,Be,mR.default.constants.COPYFILE_FICLONE),await K.chmodPromise(Be,420),await K.renamePromise(Be,O)});let de=o.mirrorWriteOnly&&c!=null?c:O;return await Promise.all(L.map(Be=>Be())),[!1,de,Z]},y=async()=>{let ce=(async()=>{var je;let Z=this.getLocatorPath(e,t,o),O=Z!==null?await u.existsPromise(Z):!1,L=!!((je=o.mockedPackages)==null?void 0:je.has(e.locatorHash))&&(!this.check||!O),de=L||O,Be=de?i:n;if(Be&&Be(),de){let re=null,se=Z;return L||(re=this.check?await h(se):await f(se)),[L,se,re]}else return m()})();this.mutexes.set(e.locatorHash,ce);try{return await ce}finally{this.mutexes.delete(e.locatorHash)}};for(let oe;oe=this.mutexes.get(e.locatorHash);)await oe;let[b,v,x]=await y();this.markedFiles.add(v);let T,q=await fn(),Y=b?()=>g():()=>new li(v,{baseFs:u,libzip:q,readOnly:!0}),$=new _h(()=>Rv(()=>T=Y(),oe=>`Failed to open the cache entry for ${It(this.configuration,e)}: ${oe}`),k),_=new Na(v,{baseFs:$,pathUtils:k}),ne=()=>{T==null||T.discardAndClose()},ee=((A=o.unstablePackages)==null?void 0:A.has(e.locatorHash))?null:x;return[_,ne,ee]}};function ER(r){let e=r.indexOf("/");return e!==-1?r.slice(0,e):null}function ANe(r){let e=r.indexOf("/");return e!==-1?r.slice(e+1):r}var cs;(function(t){t[t.SCRIPT=0]="SCRIPT",t[t.SHELLCODE=1]="SHELLCODE"})(cs||(cs={}));var pA=class extends Ji{constructor({configuration:e,stdout:t,suggestInstall:i=!0}){super();this.errorCount=0;nd(this,{configuration:e}),this.configuration=e,this.stdout=t,this.suggestInstall=i}static async start(e,t){let i=new this(e);try{await t(i)}catch(n){i.reportExceptionOnce(n)}finally{await i.finalize()}return i}hasErrors(){return this.errorCount>0}exitCode(){return this.hasErrors()?1:0}reportCacheHit(e){}reportCacheMiss(e){}startSectionSync(e,t){return t()}async startSectionPromise(e,t){return await t()}startTimerSync(e,t,i){return(typeof t=="function"?t:i)()}async startTimerPromise(e,t,i){return await(typeof t=="function"?t:i)()}async startCacheReport(e){return await e()}reportSeparator(){}reportInfo(e,t){}reportWarning(e,t){}reportError(e,t){this.errorCount+=1,this.stdout.write(`${tt(this.configuration,"\u27A4","redBright")} ${this.formatNameWithHyperlink(e)}: ${t} +`)}reportProgress(e){let t=Promise.resolve().then(async()=>{for await(let{}of e);}),i=()=>{};return te(N({},t),{stop:i})}reportJson(e){}async finalize(){this.errorCount>0&&(this.stdout.write(` +`),this.stdout.write(`${tt(this.configuration,"\u27A4","redBright")} Errors happened when preparing the environment required to run this command. +`),this.suggestInstall&&this.stdout.write(`${tt(this.configuration,"\u27A4","redBright")} This might be caused by packages being missing from the lockfile, in which case running "yarn install" might help. +`))}formatNameWithHyperlink(e){return eD(e,{configuration:this.configuration,json:!1})}};var i0=ge(require("crypto"));function dA(){}dA.prototype={diff:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.callback;typeof i=="function"&&(n=i,i={}),this.options=i;var s=this;function o(m){return n?(setTimeout(function(){n(void 0,m)},0),!0):m}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var a=t.length,l=e.length,c=1,u=a+l;i.maxEditLength&&(u=Math.min(u,i.maxEditLength));var g=[{newPos:-1,components:[]}],f=this.extractCommon(g[0],t,e,0);if(g[0].newPos+1>=a&&f+1>=l)return o([{value:this.join(t),count:t.length}]);function h(){for(var m=-1*c;m<=c;m+=2){var y=void 0,b=g[m-1],v=g[m+1],x=(v?v.newPos:0)-m;b&&(g[m-1]=void 0);var T=b&&b.newPos+1=a&&x+1>=l)return o(lNe(s,y.components,t,e,s.useLongestToken));g[m]=y}c++}if(n)(function m(){setTimeout(function(){if(c>u)return n();h()||m()},0)})();else for(;c<=u;){var p=h();if(p)return p}},pushComponent:function(e,t,i){var n=e[e.length-1];n&&n.added===t&&n.removed===i?e[e.length-1]={count:n.count+1,added:t,removed:i}:e.push({count:1,added:t,removed:i})},extractCommon:function(e,t,i,n){for(var s=t.length,o=i.length,a=e.newPos,l=a-n,c=0;a+1h.length?m:h}),c.value=r.join(u)}else c.value=r.join(t.slice(a,a+c.count));a+=c.count,c.added||(l+=c.count)}}var f=e[o-1];return o>1&&typeof f.value=="string"&&(f.added||f.removed)&&r.equals("",f.value)&&(e[o-2].value+=f.value,e.pop()),e}function cNe(r){return{newPos:r.newPos,components:r.components.slice(0)}}var nAt=new dA;var W6=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,z6=/\S/,_6=new dA;_6.equals=function(r,e){return this.options.ignoreCase&&(r=r.toLowerCase(),e=e.toLowerCase()),r===e||this.options.ignoreWhitespace&&!z6.test(r)&&!z6.test(e)};_6.tokenize=function(r){for(var e=r.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;tr.length)&&(e=r.length);for(var t=0,i=new Array(e);t0?l(Y.lines.slice(-o.context)):[],u-=f.length,g-=f.length)}(q=f).push.apply(q,yR(T.map(function(Z){return(x.added?"+":"-")+Z}))),x.added?p+=T.length:h+=T.length}else{if(u)if(T.length<=o.context*2&&v=a.length-2&&T.length<=o.context){var A=/\n$/.test(t),oe=/\n$/.test(i),ce=T.length==0&&f.length>ee.oldLines;!A&&ce&&t.length>0&&f.splice(ee.oldLines,0,"\\ No newline at end of file"),(!A&&!ce||!oe)&&f.push("\\ No newline at end of file")}c.push(ee),u=0,g=0,f=[]}h+=T.length,p+=T.length}},y=0;y`${t}#commit=${i}`],[/^https:\/\/((?:[^/]+?)@)?codeload\.github\.com\/([^/]+\/[^/]+)\/tar\.gz\/([0-9a-f]+)$/,(r,e,t="",i,n)=>`https://${t}github.com/${i}.git#commit=${n}`],[/^https:\/\/((?:[^/]+?)@)?github\.com\/([^/]+\/[^/]+?)(?:\.git)?#([0-9a-f]+)$/,(r,e,t="",i,n)=>`https://${t}github.com/${i}.git#commit=${n}`],[/^https?:\/\/[^/]+\/(?:[^/]+\/)*(?:@.+(?:\/|(?:%2f)))?([^/]+)\/(?:-|download)\/\1-[^/]+\.tgz(?:#|$)/,r=>`npm:${r}`],[/^https:\/\/npm\.pkg\.github\.com\/download\/(?:@[^/]+)\/(?:[^/]+)\/(?:[^/]+)\/(?:[0-9a-f]+)(?:#|$)/,r=>`npm:${r}`],[/^https:\/\/npm\.fontawesome\.com\/(?:@[^/]+)\/([^/]+)\/-\/([^/]+)\/\1-\2.tgz(?:#|$)/,r=>`npm:${r}`],[/^https?:\/\/(?:[^\\.]+)\.jfrog\.io\/.*\/(@[^/]+)\/([^/]+)\/-\/\1\/\2-(?:[.\d\w-]+)\.tgz(?:#|$)/,(r,e)=>cw({protocol:"npm:",source:null,selector:r,params:{__archiveUrl:e}})],[/^[^/]+\.tgz#[0-9a-f]+$/,r=>`npm:${r}`]],NR=class{constructor(e){this.resolver=e;this.resolutions=null}async setup(e,{report:t}){let i=k.join(e.cwd,e.configuration.get("lockfileFilename"));if(!K.existsSync(i))return;let n=await K.readFilePromise(i,"utf8"),s=Si(n);if(Object.prototype.hasOwnProperty.call(s,"__metadata"))return;let o=this.resolutions=new Map;for(let a of Object.keys(s)){let l=pd(a);if(!l){t.reportWarning(X.YARN_IMPORT_FAILED,`Failed to parse the string "${a}" into a proper descriptor`);continue}po(l.range)&&(l=rr(l,`npm:${l.range}`));let{version:c,resolved:u}=s[a];if(!u)continue;let g;for(let[h,p]of JOe){let m=u.match(h);if(m){g=p(c,...m);break}}if(!g){t.reportWarning(X.YARN_IMPORT_FAILED,`${sr(e.configuration,l)}: Only some patterns can be imported from legacy lockfiles (not "${u}")`);continue}let f=l;try{let h=qg(l.range),p=pd(h.selector,!0);p&&(f=p)}catch{}o.set(l.descriptorHash,cn(f,g))}}supportsDescriptor(e,t){return this.resolutions?this.resolutions.has(e.descriptorHash):!1}supportsLocator(e,t){return!1}shouldPersistResolution(e,t){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){if(!this.resolutions)throw new Error("Assertion failed: The resolution store should have been setup");let n=this.resolutions.get(e.descriptorHash);if(!n)throw new Error("Assertion failed: The resolution should have been registered");return await this.resolver.getCandidates(_x(n),t,i)}async getSatisfying(e,t,i){return null}async resolve(e,t){throw new Error("Assertion failed: This resolver doesn't support resolving locators to packages")}};var LR=class{constructor(e){this.resolver=e}supportsDescriptor(e,t){return!!(t.project.storedResolutions.get(e.descriptorHash)||t.project.originalPackages.has(Aw(e).locatorHash))}supportsLocator(e,t){return!!(t.project.originalPackages.has(e.locatorHash)&&!t.project.lockfileNeedsRefresh)}shouldPersistResolution(e,t){throw new Error("The shouldPersistResolution method shouldn't be called on the lockfile resolver, which would always answer yes")}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return this.resolver.getResolutionDependencies(e,t)}async getCandidates(e,t,i){let n=i.project.originalPackages.get(Aw(e).locatorHash);if(n)return[n];let s=i.project.storedResolutions.get(e.descriptorHash);if(!s)throw new Error("Expected the resolution to have been successful - resolution not found");if(n=i.project.originalPackages.get(s),!n)throw new Error("Expected the resolution to have been successful - package not found");return[n]}async getSatisfying(e,t,i){return null}async resolve(e,t){let i=t.project.originalPackages.get(e.locatorHash);if(!i)throw new Error("The lockfile resolver isn't meant to resolve packages - they should already have been stored into a cache");return i}};var TR=class{constructor(e){this.resolver=e}supportsDescriptor(e,t){return this.resolver.supportsDescriptor(e,t)}supportsLocator(e,t){return this.resolver.supportsLocator(e,t)}shouldPersistResolution(e,t){return this.resolver.shouldPersistResolution(e,t)}bindDescriptor(e,t,i){return this.resolver.bindDescriptor(e,t,i)}getResolutionDependencies(e,t){return this.resolver.getResolutionDependencies(e,t)}async getCandidates(e,t,i){throw new ct(X.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async getSatisfying(e,t,i){throw new ct(X.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async resolve(e,t){throw new ct(X.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}};var di=class extends Ji{reportCacheHit(e){}reportCacheMiss(e){}startSectionSync(e,t){return t()}async startSectionPromise(e,t){return await t()}startTimerSync(e,t,i){return(typeof t=="function"?t:i)()}async startTimerPromise(e,t,i){return await(typeof t=="function"?t:i)()}async startCacheReport(e){return await e()}reportSeparator(){}reportInfo(e,t){}reportWarning(e,t){}reportError(e,t){}reportProgress(e){let t=Promise.resolve().then(async()=>{for await(let{}of e);}),i=()=>{};return te(N({},t),{stop:i})}reportJson(e){}async finalize(){}};var iZ=ge(Wx());var CC=class{constructor(e,{project:t}){this.workspacesCwds=new Set;this.dependencies=new Map;this.project=t,this.cwd=e}async setup(){var s;this.manifest=(s=await At.tryFind(this.cwd))!=null?s:new At,this.relativeCwd=k.relative(this.project.cwd,this.cwd)||Me.dot;let e=this.manifest.name?this.manifest.name:$o(null,`${this.computeCandidateName()}-${ln(this.relativeCwd).substring(0,6)}`),t=this.manifest.version?this.manifest.version:"0.0.0";this.locator=cn(e,t),this.anchoredDescriptor=rr(this.locator,`${oi.protocol}${this.relativeCwd}`),this.anchoredLocator=cn(this.locator,`${oi.protocol}${this.relativeCwd}`);let i=this.manifest.workspaceDefinitions.map(({pattern:o})=>o),n=await(0,iZ.default)(i,{cwd:H.fromPortablePath(this.cwd),expandDirectories:!1,onlyDirectories:!0,onlyFiles:!1,ignore:["**/node_modules","**/.git","**/.yarn"]});n.sort();for(let o of n){let a=k.resolve(this.cwd,H.toPortablePath(o));K.existsSync(k.join(a,"package.json"))&&this.workspacesCwds.add(a)}}accepts(e){var o;let t=e.indexOf(":"),i=t!==-1?e.slice(0,t+1):null,n=t!==-1?e.slice(t+1):e;if(i===oi.protocol&&k.normalize(n)===this.relativeCwd||i===oi.protocol&&(n==="*"||n==="^"||n==="~"))return!0;let s=po(n);return s?i===oi.protocol?s.test((o=this.manifest.version)!=null?o:"0.0.0"):this.project.configuration.get("enableTransparentWorkspaces")&&this.manifest.version!==null?s.test(this.manifest.version):!1:!1}computeCandidateName(){return this.cwd===this.project.cwd?"root-workspace":`${k.basename(this.cwd)}`||"unnamed-workspace"}getRecursiveWorkspaceDependencies({dependencies:e=At.hardDependencies}={}){let t=new Set,i=n=>{for(let s of e)for(let o of n.manifest[s].values()){let a=this.project.tryWorkspaceByDescriptor(o);a===null||t.has(a)||(t.add(a),i(a))}};return i(this),t}getRecursiveWorkspaceDependents({dependencies:e=At.hardDependencies}={}){let t=new Set,i=n=>{for(let s of this.project.workspaces)e.some(a=>[...s.manifest[a].values()].some(l=>{let c=this.project.tryWorkspaceByDescriptor(l);return c!==null&&hd(c.anchoredLocator,n.anchoredLocator)}))&&!t.has(s)&&(t.add(s),i(s))};return i(this),t}getRecursiveWorkspaceChildren(){let e=[];for(let t of this.workspacesCwds){let i=this.project.workspacesByCwd.get(t);i&&e.push(i,...i.getRecursiveWorkspaceChildren())}return e}async persistManifest(){let e={};this.manifest.exportTo(e);let t=k.join(this.cwd,At.fileName),i=`${JSON.stringify(e,null,this.manifest.indent)} +`;await K.changeFilePromise(t,i,{automaticNewlines:!0}),this.manifest.raw=e}};var oZ=6,WOe=1,zOe=/ *, */g,aZ=/\/$/,_Oe=32,VOe=(0,OR.promisify)(KR.default.gzip),XOe=(0,OR.promisify)(KR.default.gunzip),Ci;(function(t){t.UpdateLockfile="update-lockfile",t.SkipBuild="skip-build"})(Ci||(Ci={}));var UR={restoreInstallersCustomData:["installersCustomData"],restoreResolutions:["accessibleLocators","conditionalLocators","disabledLocators","optionalBuilds","storedDescriptors","storedResolutions","storedPackages","lockFileChecksum"],restoreBuildState:["storedBuildState"]},AZ=r=>ln(`${WOe}`,r),ze=class{constructor(e,{configuration:t}){this.resolutionAliases=new Map;this.workspaces=[];this.workspacesByCwd=new Map;this.workspacesByIdent=new Map;this.storedResolutions=new Map;this.storedDescriptors=new Map;this.storedPackages=new Map;this.storedChecksums=new Map;this.storedBuildState=new Map;this.accessibleLocators=new Set;this.conditionalLocators=new Set;this.disabledLocators=new Set;this.originalPackages=new Map;this.optionalBuilds=new Set;this.lockfileNeedsRefresh=!1;this.peerRequirements=new Map;this.installersCustomData=new Map;this.lockFileChecksum=null;this.installStateChecksum=null;this.configuration=t,this.cwd=e}static async find(e,t){var p,m,y;if(!e.projectCwd)throw new Pe(`No project found in ${t}`);let i=e.projectCwd,n=t,s=null;for(;s!==e.projectCwd;){if(s=n,K.existsSync(k.join(s,kt.manifest))){i=s;break}n=k.dirname(s)}let o=new ze(e.projectCwd,{configuration:e});(p=ye.telemetry)==null||p.reportProject(o.cwd),await o.setupResolutions(),await o.setupWorkspaces(),(m=ye.telemetry)==null||m.reportWorkspaceCount(o.workspaces.length),(y=ye.telemetry)==null||y.reportDependencyCount(o.workspaces.reduce((b,v)=>b+v.manifest.dependencies.size+v.manifest.devDependencies.size,0));let a=o.tryWorkspaceByCwd(i);if(a)return{project:o,workspace:a,locator:a.anchoredLocator};let l=await o.findLocatorForLocation(`${i}/`,{strict:!0});if(l)return{project:o,locator:l,workspace:null};let c=tt(e,o.cwd,qe.PATH),u=tt(e,k.relative(o.cwd,i),qe.PATH),g=`- If ${c} isn't intended to be a project, remove any yarn.lock and/or package.json file there.`,f=`- If ${c} is intended to be a project, it might be that you forgot to list ${u} in its workspace configuration.`,h=`- Finally, if ${c} is fine and you intend ${u} to be treated as a completely separate project (not even a workspace), create an empty yarn.lock file in it.`;throw new Pe(`The nearest package directory (${tt(e,i,qe.PATH)}) doesn't seem to be part of the project declared in ${tt(e,o.cwd,qe.PATH)}. + +${[g,f,h].join(` +`)}`)}async setupResolutions(){var i;this.storedResolutions=new Map,this.storedDescriptors=new Map,this.storedPackages=new Map,this.lockFileChecksum=null;let e=k.join(this.cwd,this.configuration.get("lockfileFilename")),t=this.configuration.get("defaultLanguageName");if(K.existsSync(e)){let n=await K.readFilePromise(e,"utf8");this.lockFileChecksum=AZ(n);let s=Si(n);if(s.__metadata){let o=s.__metadata.version,a=s.__metadata.cacheKey;this.lockfileNeedsRefresh=o0;){let t=e;e=[];for(let i of t){if(this.workspacesByCwd.has(i))continue;let n=await this.addWorkspace(i),s=this.storedPackages.get(n.anchoredLocator.locatorHash);s&&(n.dependencies=s.dependencies);for(let o of n.workspacesCwds)e.push(o)}}}async addWorkspace(e){let t=new CC(e,{project:this});await t.setup();let i=this.workspacesByIdent.get(t.locator.identHash);if(typeof i!="undefined")throw new Error(`Duplicate workspace name ${fi(this.configuration,t.locator)}: ${H.fromPortablePath(e)} conflicts with ${H.fromPortablePath(i.cwd)}`);return this.workspaces.push(t),this.workspacesByCwd.set(e,t),this.workspacesByIdent.set(t.locator.identHash,t),t}get topLevelWorkspace(){return this.getWorkspaceByCwd(this.cwd)}tryWorkspaceByCwd(e){k.isAbsolute(e)||(e=k.resolve(this.cwd,e)),e=k.normalize(e).replace(/\/+$/,"");let t=this.workspacesByCwd.get(e);return t||null}getWorkspaceByCwd(e){let t=this.tryWorkspaceByCwd(e);if(!t)throw new Error(`Workspace not found (${e})`);return t}tryWorkspaceByFilePath(e){let t=null;for(let i of this.workspaces)k.relative(i.cwd,e).startsWith("../")||t&&t.cwd.length>=i.cwd.length||(t=i);return t||null}getWorkspaceByFilePath(e){let t=this.tryWorkspaceByFilePath(e);if(!t)throw new Error(`Workspace not found (${e})`);return t}tryWorkspaceByIdent(e){let t=this.workspacesByIdent.get(e.identHash);return typeof t=="undefined"?null:t}getWorkspaceByIdent(e){let t=this.tryWorkspaceByIdent(e);if(!t)throw new Error(`Workspace not found (${fi(this.configuration,e)})`);return t}tryWorkspaceByDescriptor(e){let t=this.tryWorkspaceByIdent(e);return t===null||(Al(e)&&(e=ud(e)),!t.accepts(e.range))?null:t}getWorkspaceByDescriptor(e){let t=this.tryWorkspaceByDescriptor(e);if(t===null)throw new Error(`Workspace not found (${sr(this.configuration,e)})`);return t}tryWorkspaceByLocator(e){let t=this.tryWorkspaceByIdent(e);return t===null||(ea(e)&&(e=gd(e)),t.locator.locatorHash!==e.locatorHash&&t.anchoredLocator.locatorHash!==e.locatorHash)?null:t}getWorkspaceByLocator(e){let t=this.tryWorkspaceByLocator(e);if(!t)throw new Error(`Workspace not found (${It(this.configuration,e)})`);return t}refreshWorkspaceDependencies(){for(let e of this.workspaces){let t=this.storedPackages.get(e.anchoredLocator.locatorHash);if(!t)throw new Error(`Assertion failed: Expected workspace ${Cd(this.configuration,e)} (${tt(this.configuration,k.join(e.cwd,kt.manifest),qe.PATH)}) to have been resolved. Run "yarn install" to update the lockfile`);e.dependencies=new Map(t.dependencies)}}forgetResolution(e){let t=n=>{this.storedResolutions.delete(n),this.storedDescriptors.delete(n)},i=n=>{this.originalPackages.delete(n),this.storedPackages.delete(n),this.accessibleLocators.delete(n)};if("descriptorHash"in e){let n=this.storedResolutions.get(e.descriptorHash);t(e.descriptorHash);let s=new Set(this.storedResolutions.values());typeof n!="undefined"&&!s.has(n)&&i(n)}if("locatorHash"in e){i(e.locatorHash);for(let[n,s]of this.storedResolutions)s===e.locatorHash&&t(n)}}forgetTransientResolutions(){let e=this.configuration.makeResolver();for(let t of this.originalPackages.values()){let i;try{i=e.shouldPersistResolution(t,{project:this,resolver:e})}catch{i=!1}i||this.forgetResolution(t)}}forgetVirtualResolutions(){for(let e of this.storedPackages.values())for(let[t,i]of e.dependencies)Al(i)&&e.dependencies.set(t,ud(i))}getDependencyMeta(e,t){let i={},s=this.topLevelWorkspace.manifest.dependenciesMeta.get(Ot(e));if(!s)return i;let o=s.get(null);if(o&&Object.assign(i,o),t===null||!sZ.default.valid(t))return i;for(let[a,l]of s)a!==null&&a===t&&Object.assign(i,l);return i}async findLocatorForLocation(e,{strict:t=!1}={}){let i=new di,n=this.configuration.getLinkers(),s={project:this,report:i};for(let o of n){let a=await o.findPackageLocator(e,s);if(a){if(t&&(await o.findPackageLocation(a,s)).replace(aZ,"")!==e.replace(aZ,""))continue;return a}}return null}async resolveEverything(e){if(!this.workspacesByCwd||!this.workspacesByIdent)throw new Error("Workspaces must have been setup before calling this function");this.forgetVirtualResolutions(),e.lockfileOnly||this.forgetTransientResolutions();let t=e.resolver||this.configuration.makeResolver(),i=new NR(t);await i.setup(this,{report:e.report});let n=e.lockfileOnly?[new TR(t)]:[i,t],s=new wd([new LR(t),...n]),o=this.configuration.makeFetcher(),a=e.lockfileOnly?{project:this,report:e.report,resolver:s}:{project:this,report:e.report,resolver:s,fetchOptions:{project:this,cache:e.cache,checksums:this.storedChecksums,report:e.report,fetcher:o,cacheOptions:{mirrorWriteOnly:!0}}},l=new Map,c=new Map,u=new Map,g=new Map,f=new Map,h=new Map,p=this.topLevelWorkspace.anchoredLocator,m=new Set,y=[],b=ck(),v=this.configuration.getSupportedArchitectures();await e.report.startProgressPromise(Ji.progressViaTitle(),async ne=>{let ee=async O=>{let L=await Lg(async()=>await s.resolve(O,a),je=>`${It(this.configuration,O)}: ${je}`);if(!hd(O,L))throw new Error(`Assertion failed: The locator cannot be changed by the resolver (went from ${It(this.configuration,O)} to ${It(this.configuration,L)})`);g.set(L.locatorHash,L);let de=this.configuration.normalizePackage(L);for(let[je,re]of de.dependencies){let se=await this.configuration.reduceHook(he=>he.reduceDependency,re,this,de,re,{resolver:s,resolveOptions:a});if(!fd(re,se))throw new Error("Assertion failed: The descriptor ident cannot be changed through aliases");let be=s.bindDescriptor(se,O,a);de.dependencies.set(je,be)}let Be=go([...de.dependencies.values()].map(je=>Z(je)));return y.push(Be),Be.catch(()=>{}),c.set(de.locatorHash,de),de},A=async O=>{let L=f.get(O.locatorHash);if(typeof L!="undefined")return L;let de=Promise.resolve().then(()=>ee(O));return f.set(O.locatorHash,de),de},oe=async(O,L)=>{let de=await Z(L);return l.set(O.descriptorHash,O),u.set(O.descriptorHash,de.locatorHash),de},ce=async O=>{ne.setTitle(sr(this.configuration,O));let L=this.resolutionAliases.get(O.descriptorHash);if(typeof L!="undefined")return oe(O,this.storedDescriptors.get(L));let de=s.getResolutionDependencies(O,a),Be=new Map(await go(de.map(async se=>{let be=s.bindDescriptor(se,p,a),he=await Z(be);return m.add(he.locatorHash),[se.descriptorHash,he]}))),re=(await Lg(async()=>await s.getCandidates(O,Be,a),se=>`${sr(this.configuration,O)}: ${se}`))[0];if(typeof re=="undefined")throw new Error(`${sr(this.configuration,O)}: No candidates found`);return l.set(O.descriptorHash,O),u.set(O.descriptorHash,re.locatorHash),A(re)},Z=O=>{let L=h.get(O.descriptorHash);if(typeof L!="undefined")return L;l.set(O.descriptorHash,O);let de=Promise.resolve().then(()=>ce(O));return h.set(O.descriptorHash,de),de};for(let O of this.workspaces){let L=O.anchoredDescriptor;y.push(Z(L))}for(;y.length>0;){let O=[...y];y.length=0,await go(O)}});let x=new Set(this.resolutionAliases.values()),T=new Set(c.keys()),q=new Set,Y=new Map;ZOe({project:this,report:e.report,accessibleLocators:q,volatileDescriptors:x,optionalBuilds:T,peerRequirements:Y,allDescriptors:l,allResolutions:u,allPackages:c});for(let ne of m)T.delete(ne);for(let ne of x)l.delete(ne),u.delete(ne);let $=new Set,_=new Set;for(let ne of c.values())ne.conditions!=null&&(!T.has(ne.locatorHash)||(gw(ne,v)||(gw(ne,b)&&e.report.reportWarningOnce(X.GHOST_ARCHITECTURE,`${It(this.configuration,ne)}: Your current architecture (${process.platform}-${process.arch}) is supported by this package, but is missing from the ${tt(this.configuration,"supportedArchitectures",Ri.SETTING)} setting`),_.add(ne.locatorHash)),$.add(ne.locatorHash)));this.storedResolutions=u,this.storedDescriptors=l,this.storedPackages=c,this.accessibleLocators=q,this.conditionalLocators=$,this.disabledLocators=_,this.originalPackages=g,this.optionalBuilds=T,this.peerRequirements=Y,this.refreshWorkspaceDependencies()}async fetchEverything({cache:e,report:t,fetcher:i,mode:n}){let s={mockedPackages:this.disabledLocators,unstablePackages:this.conditionalLocators},o=i||this.configuration.makeFetcher(),a={checksums:this.storedChecksums,project:this,cache:e,fetcher:o,report:t,cacheOptions:s},l=Array.from(new Set(kn(this.storedResolutions.values(),[f=>{let h=this.storedPackages.get(f);if(!h)throw new Error("Assertion failed: The locator should have been registered");return Rs(h)}])));n===Ci.UpdateLockfile&&(l=l.filter(f=>!this.storedChecksums.has(f)));let c=!1,u=Ji.progressViaCounter(l.length);t.reportProgress(u);let g=(0,nZ.default)(_Oe);if(await t.startCacheReport(async()=>{await go(l.map(f=>g(async()=>{let h=this.storedPackages.get(f);if(!h)throw new Error("Assertion failed: The locator should have been registered");if(ea(h))return;let p;try{p=await o.fetch(h,a)}catch(m){m.message=`${It(this.configuration,h)}: ${m.message}`,t.reportExceptionOnce(m),c=m;return}p.checksum!=null?this.storedChecksums.set(h.locatorHash,p.checksum):this.storedChecksums.delete(h.locatorHash),p.releaseFs&&p.releaseFs()}).finally(()=>{u.tick()})))}),c)throw c}async linkEverything({cache:e,report:t,fetcher:i,mode:n}){var A,oe,ce;let s={mockedPackages:this.disabledLocators,unstablePackages:this.conditionalLocators,skipIntegrityCheck:!0},o=i||this.configuration.makeFetcher(),a={checksums:this.storedChecksums,project:this,cache:e,fetcher:o,report:t,skipIntegrityCheck:!0,cacheOptions:s},l=this.configuration.getLinkers(),c={project:this,report:t},u=new Map(l.map(Z=>{let O=Z.makeInstaller(c),L=O.getCustomDataKey(),de=this.installersCustomData.get(L);return typeof de!="undefined"&&O.attachCustomData(de),[Z,O]})),g=new Map,f=new Map,h=new Map,p=new Map(await go([...this.accessibleLocators].map(async Z=>{let O=this.storedPackages.get(Z);if(!O)throw new Error("Assertion failed: The locator should have been registered");return[Z,await o.fetch(O,a)]}))),m=[];for(let Z of this.accessibleLocators){let O=this.storedPackages.get(Z);if(typeof O=="undefined")throw new Error("Assertion failed: The locator should have been registered");let L=p.get(O.locatorHash);if(typeof L=="undefined")throw new Error("Assertion failed: The fetch result should have been registered");let de=[],Be=re=>{de.push(re)},je=this.tryWorkspaceByLocator(O);if(je!==null){let re=[],{scripts:se}=je.manifest;for(let he of["preinstall","install","postinstall"])se.has(he)&&re.push([cs.SCRIPT,he]);try{for(let[he,Fe]of u)if(he.supportsPackage(O,c)&&(await Fe.installPackage(O,L,{holdFetchResult:Be})).buildDirective!==null)throw new Error("Assertion failed: Linkers can't return build directives for workspaces; this responsibility befalls to the Yarn core")}finally{de.length===0?(A=L.releaseFs)==null||A.call(L):m.push(go(de).catch(()=>{}).then(()=>{var he;(he=L.releaseFs)==null||he.call(L)}))}let be=k.join(L.packageFs.getRealPath(),L.prefixPath);f.set(O.locatorHash,be),!ea(O)&&re.length>0&&h.set(O.locatorHash,{directives:re,buildLocations:[be]})}else{let re=l.find(he=>he.supportsPackage(O,c));if(!re)throw new ct(X.LINKER_NOT_FOUND,`${It(this.configuration,O)} isn't supported by any available linker`);let se=u.get(re);if(!se)throw new Error("Assertion failed: The installer should have been registered");let be;try{be=await se.installPackage(O,L,{holdFetchResult:Be})}finally{de.length===0?(oe=L.releaseFs)==null||oe.call(L):m.push(go(de).then(()=>{}).then(()=>{var he;(he=L.releaseFs)==null||he.call(L)}))}g.set(O.locatorHash,re),f.set(O.locatorHash,be.packageLocation),be.buildDirective&&be.buildDirective.length>0&&be.packageLocation&&h.set(O.locatorHash,{directives:be.buildDirective,buildLocations:[be.packageLocation]})}}let y=new Map;for(let Z of this.accessibleLocators){let O=this.storedPackages.get(Z);if(!O)throw new Error("Assertion failed: The locator should have been registered");let L=this.tryWorkspaceByLocator(O)!==null,de=async(Be,je)=>{let re=f.get(O.locatorHash);if(typeof re=="undefined")throw new Error(`Assertion failed: The package (${It(this.configuration,O)}) should have been registered`);let se=[];for(let be of O.dependencies.values()){let he=this.storedResolutions.get(be.descriptorHash);if(typeof he=="undefined")throw new Error(`Assertion failed: The resolution (${sr(this.configuration,be)}, from ${It(this.configuration,O)})should have been registered`);let Fe=this.storedPackages.get(he);if(typeof Fe=="undefined")throw new Error(`Assertion failed: The package (${he}, resolved from ${sr(this.configuration,be)}) should have been registered`);let Ke=this.tryWorkspaceByLocator(Fe)===null?g.get(he):null;if(typeof Ke=="undefined")throw new Error(`Assertion failed: The package (${he}, resolved from ${sr(this.configuration,be)}) should have been registered`);Ke===Be||Ke===null?f.get(Fe.locatorHash)!==null&&se.push([be,Fe]):!L&&re!==null&&Fg(y,he).push(re)}re!==null&&await je.attachInternalDependencies(O,se)};if(L)for(let[Be,je]of u)Be.supportsPackage(O,c)&&await de(Be,je);else{let Be=g.get(O.locatorHash);if(!Be)throw new Error("Assertion failed: The linker should have been found");let je=u.get(Be);if(!je)throw new Error("Assertion failed: The installer should have been registered");await de(Be,je)}}for(let[Z,O]of y){let L=this.storedPackages.get(Z);if(!L)throw new Error("Assertion failed: The package should have been registered");let de=g.get(L.locatorHash);if(!de)throw new Error("Assertion failed: The linker should have been found");let Be=u.get(de);if(!Be)throw new Error("Assertion failed: The installer should have been registered");await Be.attachExternalDependents(L,O)}let b=new Map;for(let Z of u.values()){let O=await Z.finalizeInstall();for(let L of(ce=O==null?void 0:O.records)!=null?ce:[])h.set(L.locatorHash,{directives:L.buildDirective,buildLocations:L.buildLocations});typeof(O==null?void 0:O.customData)!="undefined"&&b.set(Z.getCustomDataKey(),O.customData)}if(this.installersCustomData=b,await go(m),n===Ci.SkipBuild)return;let v=new Set(this.storedPackages.keys()),x=new Set(h.keys());for(let Z of x)v.delete(Z);let T=(0,i0.createHash)("sha512");T.update(process.versions.node),await this.configuration.triggerHook(Z=>Z.globalHashGeneration,this,Z=>{T.update("\0"),T.update(Z)});let q=T.digest("hex"),Y=new Map,$=Z=>{let O=Y.get(Z.locatorHash);if(typeof O!="undefined")return O;let L=this.storedPackages.get(Z.locatorHash);if(typeof L=="undefined")throw new Error("Assertion failed: The package should have been registered");let de=(0,i0.createHash)("sha512");de.update(Z.locatorHash),Y.set(Z.locatorHash,"");for(let Be of L.dependencies.values()){let je=this.storedResolutions.get(Be.descriptorHash);if(typeof je=="undefined")throw new Error(`Assertion failed: The resolution (${sr(this.configuration,Be)}) should have been registered`);let re=this.storedPackages.get(je);if(typeof re=="undefined")throw new Error("Assertion failed: The package should have been registered");de.update($(re))}return O=de.digest("hex"),Y.set(Z.locatorHash,O),O},_=(Z,O)=>{let L=(0,i0.createHash)("sha512");L.update(q),L.update($(Z));for(let de of O)L.update(de);return L.digest("hex")},ne=new Map,ee=!1;for(;x.size>0;){let Z=x.size,O=[];for(let L of x){let de=this.storedPackages.get(L);if(!de)throw new Error("Assertion failed: The package should have been registered");let Be=!0;for(let se of de.dependencies.values()){let be=this.storedResolutions.get(se.descriptorHash);if(!be)throw new Error(`Assertion failed: The resolution (${sr(this.configuration,se)}) should have been registered`);if(x.has(be)){Be=!1;break}}if(!Be)continue;x.delete(L);let je=h.get(de.locatorHash);if(!je)throw new Error("Assertion failed: The build directive should have been registered");let re=_(de,je.buildLocations);if(this.storedBuildState.get(de.locatorHash)===re){ne.set(de.locatorHash,re);continue}ee||(await this.persistInstallStateFile(),ee=!0),this.storedBuildState.has(de.locatorHash)?t.reportInfo(X.MUST_REBUILD,`${It(this.configuration,de)} must be rebuilt because its dependency tree changed`):t.reportInfo(X.MUST_BUILD,`${It(this.configuration,de)} must be built because it never has been before or the last one failed`);for(let se of je.buildLocations){if(!k.isAbsolute(se))throw new Error(`Assertion failed: Expected the build location to be absolute (not ${se})`);O.push((async()=>{for(let[be,he]of je.directives){let Fe=`# This file contains the result of Yarn building a package (${Rs(de)}) +`;switch(be){case cs.SCRIPT:Fe+=`# Script name: ${he} +`;break;case cs.SHELLCODE:Fe+=`# Script code: ${he} +`;break}let Ke=null;if(!await K.mktempPromise(async ve=>{let pe=k.join(ve,"build.log"),{stdout:V,stderr:Qe}=this.configuration.getSubprocessStreams(pe,{header:Fe,prefix:It(this.configuration,de),report:t}),le;try{switch(be){case cs.SCRIPT:le=await nB(de,he,[],{cwd:se,project:this,stdin:Ke,stdout:V,stderr:Qe});break;case cs.SHELLCODE:le=await rD(de,he,[],{cwd:se,project:this,stdin:Ke,stdout:V,stderr:Qe});break}}catch(gt){Qe.write(gt.stack),le=1}if(V.end(),Qe.end(),le===0)return ne.set(de.locatorHash,re),!0;K.detachTemp(ve);let fe=`${It(this.configuration,de)} couldn't be built successfully (exit code ${tt(this.configuration,le,qe.NUMBER)}, logs can be found here: ${tt(this.configuration,pe,qe.PATH)})`;return this.optionalBuilds.has(de.locatorHash)?(t.reportInfo(X.BUILD_FAILED,fe),ne.set(de.locatorHash,re),!0):(t.reportError(X.BUILD_FAILED,fe),!1)}))return}})())}}if(await go(O),Z===x.size){let L=Array.from(x).map(de=>{let Be=this.storedPackages.get(de);if(!Be)throw new Error("Assertion failed: The package should have been registered");return It(this.configuration,Be)}).join(", ");t.reportError(X.CYCLIC_DEPENDENCIES,`Some packages have circular dependencies that make their build order unsatisfiable - as a result they won't be built (affected packages are: ${L})`);break}}this.storedBuildState=ne}async install(e){var a,l;let t=this.configuration.get("nodeLinker");(a=ye.telemetry)==null||a.reportInstall(t),await e.report.startTimerPromise("Project validation",{skipIfEmpty:!0},async()=>{await this.configuration.triggerHook(c=>c.validateProject,this,{reportWarning:e.report.reportWarning.bind(e.report),reportError:e.report.reportError.bind(e.report)})});for(let c of this.configuration.packageExtensions.values())for(let[,u]of c)for(let g of u)g.status=qi.Inactive;let i=k.join(this.cwd,this.configuration.get("lockfileFilename")),n=null;if(e.immutable)try{n=await K.readFilePromise(i,"utf8")}catch(c){throw c.code==="ENOENT"?new ct(X.FROZEN_LOCKFILE_EXCEPTION,"The lockfile would have been created by this install, which is explicitly forbidden."):c}await e.report.startTimerPromise("Resolution step",async()=>{await this.resolveEverything(e)}),await e.report.startTimerPromise("Post-resolution validation",{skipIfEmpty:!0},async()=>{for(let[,c]of this.configuration.packageExtensions)for(let[,u]of c)for(let g of u)if(g.userProvided){let f=tt(this.configuration,g,qe.PACKAGE_EXTENSION);switch(g.status){case qi.Inactive:e.report.reportWarning(X.UNUSED_PACKAGE_EXTENSION,`${f}: No matching package in the dependency tree; you may not need this rule anymore.`);break;case qi.Redundant:e.report.reportWarning(X.REDUNDANT_PACKAGE_EXTENSION,`${f}: This rule seems redundant when applied on the original package; the extension may have been applied upstream.`);break}}if(n!==null){let c=sc(n,this.generateLockfile());if(c!==n){let u=V6(i,i,n,c,void 0,void 0,{maxEditLength:100});if(u){e.report.reportSeparator();for(let g of u.hunks){e.report.reportInfo(null,`@@ -${g.oldStart},${g.oldLines} +${g.newStart},${g.newLines} @@`);for(let f of g.lines)f.startsWith("+")?e.report.reportError(X.FROZEN_LOCKFILE_EXCEPTION,tt(this.configuration,f,qe.ADDED)):f.startsWith("-")?e.report.reportError(X.FROZEN_LOCKFILE_EXCEPTION,tt(this.configuration,f,qe.REMOVED)):e.report.reportInfo(null,tt(this.configuration,f,"grey"))}e.report.reportSeparator()}throw new ct(X.FROZEN_LOCKFILE_EXCEPTION,"The lockfile would have been modified by this install, which is explicitly forbidden.")}}});for(let c of this.configuration.packageExtensions.values())for(let[,u]of c)for(let g of u)g.userProvided&&g.status===qi.Active&&((l=ye.telemetry)==null||l.reportPackageExtension(Oc(g,qe.PACKAGE_EXTENSION)));await e.report.startTimerPromise("Fetch step",async()=>{await this.fetchEverything(e),(typeof e.persistProject=="undefined"||e.persistProject)&&e.mode!==Ci.UpdateLockfile&&await this.cacheCleanup(e)});let s=e.immutable?[...new Set(this.configuration.get("immutablePatterns"))].sort():[],o=await Promise.all(s.map(async c=>ow(c,{cwd:this.cwd})));(typeof e.persistProject=="undefined"||e.persistProject)&&await this.persist(),await e.report.startTimerPromise("Link step",async()=>{if(e.mode===Ci.UpdateLockfile){e.report.reportWarning(X.UPDATE_LOCKFILE_ONLY_SKIP_LINK,`Skipped due to ${tt(this.configuration,"mode=update-lockfile",qe.CODE)}`);return}await this.linkEverything(e);let c=await Promise.all(s.map(async u=>ow(u,{cwd:this.cwd})));for(let u=0;uc.afterAllInstalled,this,e)}generateLockfile(){let e=new Map;for(let[n,s]of this.storedResolutions.entries()){let o=e.get(s);o||e.set(s,o=new Set),o.add(n)}let t={};t.__metadata={version:oZ,cacheKey:void 0};for(let[n,s]of e.entries()){let o=this.originalPackages.get(n);if(!o)continue;let a=[];for(let f of s){let h=this.storedDescriptors.get(f);if(!h)throw new Error("Assertion failed: The descriptor should have been registered");a.push(h)}let l=a.map(f=>Pn(f)).sort().join(", "),c=new At;c.version=o.linkType===Qt.HARD?o.version:"0.0.0-use.local",c.languageName=o.languageName,c.dependencies=new Map(o.dependencies),c.peerDependencies=new Map(o.peerDependencies),c.dependenciesMeta=new Map(o.dependenciesMeta),c.peerDependenciesMeta=new Map(o.peerDependenciesMeta),c.bin=new Map(o.bin);let u,g=this.storedChecksums.get(o.locatorHash);if(typeof g!="undefined"){let f=g.indexOf("/");if(f===-1)throw new Error("Assertion failed: Expected the checksum to reference its cache key");let h=g.slice(0,f),p=g.slice(f+1);typeof t.__metadata.cacheKey=="undefined"&&(t.__metadata.cacheKey=h),h===t.__metadata.cacheKey?u=p:u=g}t[l]=te(N({},c.exportTo({},{compatibilityMode:!1})),{linkType:o.linkType.toLowerCase(),resolution:Rs(o),checksum:u,conditions:o.conditions||void 0})}return`${[`# This file is generated by running "yarn install" inside your project. +`,`# Manual changes might be lost - proceed with caution! +`].join("")} +`+Ma(t)}async persistLockfile(){let e=k.join(this.cwd,this.configuration.get("lockfileFilename")),t="";try{t=await K.readFilePromise(e,"utf8")}catch(s){}let i=this.generateLockfile(),n=sc(t,i);n!==t&&(await K.writeFilePromise(e,n),this.lockFileChecksum=AZ(n),this.lockfileNeedsRefresh=!1)}async persistInstallStateFile(){let e=[];for(let o of Object.values(UR))e.push(...o);let t=(0,n0.default)(this,e),i=MR.default.serialize(t),n=ln(i);if(this.installStateChecksum===n)return;let s=this.configuration.get("installStatePath");await K.mkdirPromise(k.dirname(s),{recursive:!0}),await K.writeFilePromise(s,await VOe(i)),this.installStateChecksum=n}async restoreInstallState({restoreInstallersCustomData:e=!0,restoreResolutions:t=!0,restoreBuildState:i=!0}={}){let n=this.configuration.get("installStatePath"),s;try{let o=await XOe(await K.readFilePromise(n));s=MR.default.deserialize(o),this.installStateChecksum=ln(o)}catch{t&&await this.applyLightResolution();return}e&&typeof s.installersCustomData!="undefined"&&(this.installersCustomData=s.installersCustomData),i&&Object.assign(this,(0,n0.default)(s,UR.restoreBuildState)),t&&(s.lockFileChecksum===this.lockFileChecksum?(Object.assign(this,(0,n0.default)(s,UR.restoreResolutions)),this.refreshWorkspaceDependencies()):await this.applyLightResolution())}async applyLightResolution(){await this.resolveEverything({lockfileOnly:!0,report:new di}),await this.persistInstallStateFile()}async persist(){await this.persistLockfile();for(let e of this.workspacesByCwd.values())await e.persistManifest()}async cacheCleanup({cache:e,report:t}){if(this.configuration.get("enableGlobalCache"))return;let i=new Set([".gitignore"]);if(!Ak(e.cwd,this.cwd)||!await K.existsPromise(e.cwd))return;let n=this.configuration.get("preferAggregateCacheInfo"),s=0,o=null;for(let a of await K.readdirPromise(e.cwd)){if(i.has(a))continue;let l=k.resolve(e.cwd,a);e.markedFiles.has(l)||(o=a,e.immutable?t.reportError(X.IMMUTABLE_CACHE,`${tt(this.configuration,k.basename(l),"magenta")} appears to be unused and would be marked for deletion, but the cache is immutable`):(n?s+=1:t.reportInfo(X.UNUSED_CACHE_ENTRY,`${tt(this.configuration,k.basename(l),"magenta")} appears to be unused - removing`),await K.removePromise(l)))}n&&s!==0&&t.reportInfo(X.UNUSED_CACHE_ENTRY,s>1?`${s} packages appeared to be unused and were removed`:`${o} appeared to be unused and was removed`),e.markedFiles.clear()}};function ZOe({project:r,allDescriptors:e,allResolutions:t,allPackages:i,accessibleLocators:n=new Set,optionalBuilds:s=new Set,peerRequirements:o=new Map,volatileDescriptors:a=new Set,report:l,tolerateMissingPackages:c=!1}){var ne;let u=new Map,g=[],f=new Map,h=new Map,p=new Map,m=new Map,y=new Map,b=new Map(r.workspaces.map(ee=>{let A=ee.anchoredLocator.locatorHash,oe=i.get(A);if(typeof oe=="undefined"){if(c)return[A,null];throw new Error("Assertion failed: The workspace should have an associated package")}return[A,cd(oe)]})),v=()=>{let ee=K.mktempSync(),A=k.join(ee,"stacktrace.log"),oe=String(g.length+1).length,ce=g.map((Z,O)=>`${`${O+1}.`.padStart(oe," ")} ${Rs(Z)} +`).join("");throw K.writeFileSync(A,ce),K.detachTemp(ee),new ct(X.STACK_OVERFLOW_RESOLUTION,`Encountered a stack overflow when resolving peer dependencies; cf ${H.fromPortablePath(A)}`)},x=ee=>{let A=t.get(ee.descriptorHash);if(typeof A=="undefined")throw new Error("Assertion failed: The resolution should have been registered");let oe=i.get(A);if(!oe)throw new Error("Assertion failed: The package could not be found");return oe},T=(ee,A,oe,{top:ce,optional:Z})=>{g.length>1e3&&v(),g.push(A);let O=q(ee,A,oe,{top:ce,optional:Z});return g.pop(),O},q=(ee,A,oe,{top:ce,optional:Z})=>{if(n.has(A.locatorHash))return;n.add(A.locatorHash),Z||s.delete(A.locatorHash);let O=i.get(A.locatorHash);if(!O){if(c)return;throw new Error(`Assertion failed: The package (${It(r.configuration,A)}) should have been registered`)}let L=[],de=[],Be=[],je=[],re=[];for(let be of Array.from(O.dependencies.values())){if(O.peerDependencies.has(be.identHash)&&O.locatorHash!==ce)continue;if(Al(be))throw new Error("Assertion failed: Virtual packages shouldn't be encountered when virtualizing a branch");a.delete(be.descriptorHash);let he=Z;if(!he){let Qe=O.dependenciesMeta.get(Ot(be));if(typeof Qe!="undefined"){let le=Qe.get(null);typeof le!="undefined"&&le.optional&&(he=!0)}}let Fe=t.get(be.descriptorHash);if(!Fe){if(c)continue;throw new Error(`Assertion failed: The resolution (${sr(r.configuration,be)}) should have been registered`)}let Ke=b.get(Fe)||i.get(Fe);if(!Ke)throw new Error(`Assertion failed: The package (${Fe}, resolved from ${sr(r.configuration,be)}) should have been registered`);if(Ke.peerDependencies.size===0){T(be,Ke,new Map,{top:ce,optional:he});continue}let ke,ve,pe=new Set,V;de.push(()=>{ke=Vx(be,A.locatorHash),ve=Xx(Ke,A.locatorHash),O.dependencies.delete(be.identHash),O.dependencies.set(ke.identHash,ke),t.set(ke.descriptorHash,ve.locatorHash),e.set(ke.descriptorHash,ke),i.set(ve.locatorHash,ve),L.push([Ke,ke,ve])}),Be.push(()=>{var Qe;V=new Map;for(let le of ve.peerDependencies.values()){let fe=O.dependencies.get(le.identHash);if(!fe&&fd(A,le)&&(ee.identHash===A.identHash?fe=ee:(fe=rr(A,ee.range),e.set(fe.descriptorHash,fe),t.set(fe.descriptorHash,A.locatorHash),a.delete(fe.descriptorHash))),(!fe||fe.range==="missing:")&&ve.dependencies.has(le.identHash)){ve.peerDependencies.delete(le.identHash);continue}fe||(fe=rr(le,"missing:")),ve.dependencies.set(fe.identHash,fe),Al(fe)&&Nc(p,fe.descriptorHash).add(ve.locatorHash),f.set(fe.identHash,fe),fe.range==="missing:"&&pe.add(fe.identHash),V.set(le.identHash,(Qe=oe.get(le.identHash))!=null?Qe:ve.locatorHash)}ve.dependencies=new Map(kn(ve.dependencies,([le,fe])=>Ot(fe)))}),je.push(()=>{if(!i.has(ve.locatorHash))return;let Qe=u.get(Ke.locatorHash);typeof Qe=="number"&&Qe>=2&&v();let le=u.get(Ke.locatorHash),fe=typeof le!="undefined"?le+1:1;u.set(Ke.locatorHash,fe),T(ke,ve,V,{top:ce,optional:he}),u.set(Ke.locatorHash,fe-1)}),re.push(()=>{let Qe=O.dependencies.get(be.identHash);if(typeof Qe=="undefined")throw new Error("Assertion failed: Expected the peer dependency to have been turned into a dependency");let le=t.get(Qe.descriptorHash);if(typeof le=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");if(Nc(y,le).add(A.locatorHash),!!i.has(ve.locatorHash)){for(let fe of ve.peerDependencies.values()){let gt=V.get(fe.identHash);if(typeof gt=="undefined")throw new Error("Assertion failed: Expected the peer dependency ident to be registered");Fg(Ng(m,gt),Ot(fe)).push(ve.locatorHash)}for(let fe of pe)ve.dependencies.delete(fe)}})}for(let be of[...de,...Be])be();let se;do{se=!0;for(let[be,he,Fe]of L){let Ke=Ng(h,be.locatorHash),ke=ln(...[...Fe.dependencies.values()].map(Qe=>{let le=Qe.range!=="missing:"?t.get(Qe.descriptorHash):"missing:";if(typeof le=="undefined")throw new Error(`Assertion failed: Expected the resolution for ${sr(r.configuration,Qe)} to have been registered`);return le===ce?`${le} (top)`:le}),he.identHash),ve=Ke.get(ke);if(typeof ve=="undefined"){Ke.set(ke,he);continue}if(ve===he)continue;i.delete(Fe.locatorHash),e.delete(he.descriptorHash),t.delete(he.descriptorHash),n.delete(Fe.locatorHash);let pe=p.get(he.descriptorHash)||[],V=[O.locatorHash,...pe];p.delete(he.descriptorHash);for(let Qe of V){let le=i.get(Qe);typeof le!="undefined"&&(le.dependencies.get(he.identHash).descriptorHash!==ve.descriptorHash&&(se=!1),le.dependencies.set(he.identHash,ve))}}}while(!se);for(let be of[...je,...re])be()};for(let ee of r.workspaces){let A=ee.anchoredLocator;a.delete(ee.anchoredDescriptor.descriptorHash),T(ee.anchoredDescriptor,A,new Map,{top:A.locatorHash,optional:!1})}var Y;(function(oe){oe[oe.NotProvided=0]="NotProvided",oe[oe.NotCompatible=1]="NotCompatible"})(Y||(Y={}));let $=[];for(let[ee,A]of y){let oe=i.get(ee);if(typeof oe=="undefined")throw new Error("Assertion failed: Expected the root to be registered");let ce=m.get(ee);if(typeof ce!="undefined")for(let Z of A){let O=i.get(Z);if(typeof O!="undefined")for(let[L,de]of ce){let Be=An(L);if(O.peerDependencies.has(Be.identHash))continue;let je=`p${ln(Z,L,ee).slice(0,5)}`;o.set(je,{subject:Z,requested:Be,rootRequester:ee,allRequesters:de});let re=oe.dependencies.get(Be.identHash);if(typeof re!="undefined"){let se=x(re),be=(ne=se.version)!=null?ne:"0.0.0",he=new Set;for(let Ke of de){let ke=i.get(Ke);if(typeof ke=="undefined")throw new Error("Assertion failed: Expected the link to be registered");let ve=ke.peerDependencies.get(Be.identHash);if(typeof ve=="undefined")throw new Error("Assertion failed: Expected the ident to be registered");he.add(ve.range)}[...he].every(Ke=>{if(Ke.startsWith(oi.protocol)){if(!r.tryWorkspaceByLocator(se))return!1;Ke=Ke.slice(oi.protocol.length),(Ke==="^"||Ke==="~")&&(Ke="*")}return qc(be,Ke)})||$.push({type:1,subject:O,requested:Be,requester:oe,version:be,hash:je,requirementCount:de.length})}else{let se=oe.peerDependenciesMeta.get(L);(se==null?void 0:se.optional)||$.push({type:0,subject:O,requested:Be,requester:oe,hash:je})}}}}let _=[ee=>$x(ee.subject),ee=>Ot(ee.requested),ee=>`${ee.type}`];l==null||l.startSectionSync({reportFooter:()=>{l.reportWarning(X.UNNAMED,`Some peer dependencies are incorrectly met; run ${tt(r.configuration,"yarn explain peer-requirements ",qe.CODE)} for details, where ${tt(r.configuration,"",qe.CODE)} is the six-letter p-prefixed code`)},skipIfEmpty:!0},()=>{for(let ee of kn($,_))switch(ee.type){case 0:l.reportWarning(X.MISSING_PEER_DEPENDENCY,`${It(r.configuration,ee.subject)} doesn't provide ${fi(r.configuration,ee.requested)} (${tt(r.configuration,ee.hash,qe.CODE)}), requested by ${fi(r.configuration,ee.requester)}`);break;case 1:{let A=ee.requirementCount>1?"and some of its descendants request":"requests";l.reportWarning(X.INCOMPATIBLE_PEER_DEPENDENCY,`${It(r.configuration,ee.subject)} provides ${fi(r.configuration,ee.requested)} (${tt(r.configuration,ee.hash,qe.CODE)}) with version ${dd(r.configuration,ee.version)}, which doesn't satisfy what ${fi(r.configuration,ee.requester)} ${A}`)}break}})}var ca;(function(l){l.VERSION="version",l.COMMAND_NAME="commandName",l.PLUGIN_NAME="pluginName",l.INSTALL_COUNT="installCount",l.PROJECT_COUNT="projectCount",l.WORKSPACE_COUNT="workspaceCount",l.DEPENDENCY_COUNT="dependencyCount",l.EXTENSION="packageExtension"})(ca||(ca={}));var mC=class{constructor(e,t){this.values=new Map;this.hits=new Map;this.enumerators=new Map;this.configuration=e;let i=this.getRegistryPath();this.isNew=!K.existsSync(i),this.sendReport(t),this.startBuffer()}reportVersion(e){this.reportValue(ca.VERSION,e.replace(/-git\..*/,"-git"))}reportCommandName(e){this.reportValue(ca.COMMAND_NAME,e||"")}reportPluginName(e){this.reportValue(ca.PLUGIN_NAME,e)}reportProject(e){this.reportEnumerator(ca.PROJECT_COUNT,e)}reportInstall(e){this.reportHit(ca.INSTALL_COUNT,e)}reportPackageExtension(e){this.reportValue(ca.EXTENSION,e)}reportWorkspaceCount(e){this.reportValue(ca.WORKSPACE_COUNT,String(e))}reportDependencyCount(e){this.reportValue(ca.DEPENDENCY_COUNT,String(e))}reportValue(e,t){Nc(this.values,e).add(t)}reportEnumerator(e,t){Nc(this.enumerators,e).add(ln(t))}reportHit(e,t="*"){let i=Ng(this.hits,e),n=_a(i,t,()=>0);i.set(t,n+1)}getRegistryPath(){let e=this.configuration.get("globalFolder");return k.join(e,"telemetry.json")}sendReport(e){var u,g,f;let t=this.getRegistryPath(),i;try{i=K.readJsonSync(t)}catch{i={}}let n=Date.now(),s=this.configuration.get("telemetryInterval")*24*60*60*1e3,a=((u=i.lastUpdate)!=null?u:n+s+Math.floor(s*Math.random()))+s;if(a>n&&i.lastUpdate!=null)return;try{K.mkdirSync(k.dirname(t),{recursive:!0}),K.writeJsonSync(t,{lastUpdate:n})}catch{return}if(a>n||!i.blocks)return;let l=`https://browser-http-intake.logs.datadoghq.eu/v1/input/${e}?ddsource=yarn`,c=h=>HP(l,h,{configuration:this.configuration}).catch(()=>{});for(let[h,p]of Object.entries((g=i.blocks)!=null?g:{})){if(Object.keys(p).length===0)continue;let m=p;m.userId=h,m.reportType="primary";for(let v of Object.keys((f=m.enumerators)!=null?f:{}))m.enumerators[v]=m.enumerators[v].length;c(m);let y=new Map,b=20;for(let[v,x]of Object.entries(m.values))x.length>0&&y.set(v,x.slice(0,b));for(;y.size>0;){let v={};v.userId=h,v.reportType="secondary",v.metrics={};for(let[x,T]of y)v.metrics[x]=T.shift(),T.length===0&&y.delete(x);c(v)}}}applyChanges(){var o,a,l,c,u,g,f,h,p;let e=this.getRegistryPath(),t;try{t=K.readJsonSync(e)}catch{t={}}let i=(o=this.configuration.get("telemetryUserId"))!=null?o:"*",n=t.blocks=(a=t.blocks)!=null?a:{},s=n[i]=(l=n[i])!=null?l:{};for(let m of this.hits.keys()){let y=s.hits=(c=s.hits)!=null?c:{},b=y[m]=(u=y[m])!=null?u:{};for(let[v,x]of this.hits.get(m))b[v]=((g=b[v])!=null?g:0)+x}for(let m of["values","enumerators"])for(let y of this[m].keys()){let b=s[m]=(f=s[m])!=null?f:{};b[y]=[...new Set([...(h=b[y])!=null?h:[],...(p=this[m].get(y))!=null?p:[]])]}K.mkdirSync(k.dirname(e),{recursive:!0}),K.writeJsonSync(e,t)}startBuffer(){process.on("exit",()=>{try{this.applyChanges()}catch{}})}};var HR=ge(require("child_process")),lZ=ge(Ic());var jR=ge(require("fs"));var Lf=new Map([["constraints",[["constraints","query"],["constraints","source"],["constraints"]]],["exec",[]],["interactive-tools",[["search"],["upgrade-interactive"]]],["stage",[["stage"]]],["typescript",[]],["version",[["version","apply"],["version","check"],["version"]]],["workspace-tools",[["workspaces","focus"],["workspaces","foreach"]]]]);function $Oe(r){let e=H.fromPortablePath(r);process.on("SIGINT",()=>{}),e?(0,HR.execFileSync)(process.execPath,[e,...process.argv.slice(2)],{stdio:"inherit",env:te(N({},process.env),{YARN_IGNORE_PATH:"1",YARN_IGNORE_CWD:"1"})}):(0,HR.execFileSync)(e,process.argv.slice(2),{stdio:"inherit",env:te(N({},process.env),{YARN_IGNORE_PATH:"1",YARN_IGNORE_CWD:"1"})})}async function s0({binaryVersion:r,pluginConfiguration:e}){async function t(){let n=new ws({binaryLabel:"Yarn Package Manager",binaryName:"yarn",binaryVersion:r});try{await i(n)}catch(s){process.stdout.write(n.error(s)),process.exitCode=1}}async function i(n){var m,y,b,v,x;let s=process.versions.node,o=">=12 <14 || 14.2 - 14.9 || >14.10.0";if(!Se.parseOptionalBoolean(process.env.YARN_IGNORE_NODE)&&!Wt.satisfiesWithPrereleases(s,o))throw new Pe(`This tool requires a Node version compatible with ${o} (got ${s}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);let l=await ye.find(H.toPortablePath(process.cwd()),e,{usePath:!0,strict:!1}),c=l.get("yarnPath"),u=l.get("ignorePath"),g=l.get("ignoreCwd"),f=H.toPortablePath(H.resolve(process.argv[1])),h=T=>K.readFilePromise(T).catch(()=>Buffer.of());if(!u&&!g&&await(async()=>c===f||Buffer.compare(...await Promise.all([h(c),h(f)]))===0)()){process.env.YARN_IGNORE_PATH="1",process.env.YARN_IGNORE_CWD="1",await i(n);return}else if(c!==null&&!u)if(!K.existsSync(c))process.stdout.write(n.error(new Error(`The "yarn-path" option has been set (in ${l.sources.get("yarnPath")}), but the specified location doesn't exist (${c}).`))),process.exitCode=1;else try{$Oe(c)}catch(T){process.exitCode=T.code||1}else{u&&delete process.env.YARN_IGNORE_PATH,l.get("enableTelemetry")&&!lZ.isCI&&process.stdout.isTTY&&(ye.telemetry=new mC(l,"puba9cdc10ec5790a2cf4969dd413a47270")),(m=ye.telemetry)==null||m.reportVersion(r);for(let[$,_]of l.plugins.entries()){Lf.has((b=(y=$.match(/^@yarnpkg\/plugin-(.*)$/))==null?void 0:y[1])!=null?b:"")&&((v=ye.telemetry)==null||v.reportPluginName($));for(let ne of _.commands||[])n.register(ne)}let q=n.process(process.argv.slice(2));q.help||(x=ye.telemetry)==null||x.reportCommandName(q.path.join(" "));let Y=q.cwd;if(typeof Y!="undefined"&&!g){let $=(0,jR.realpathSync)(process.cwd()),_=(0,jR.realpathSync)(Y);if($!==_){process.chdir(Y),await t();return}}await n.runExit(q,{cwd:H.toPortablePath(process.cwd()),plugins:e,quiet:!1,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr})}}return t().catch(n=>{process.stdout.write(n.stack||n.message),process.exitCode=1}).finally(()=>K.rmtempPromise())}function cZ(r){r.Command.Path=(...e)=>t=>{t.paths=t.paths||[],t.paths.push(e)};for(let e of["Array","Boolean","String","Proxy","Rest","Counter"])r.Command[e]=(...t)=>(i,n)=>{let s=r.Option[e](...t);Object.defineProperty(i,`__${n}`,{configurable:!1,enumerable:!0,get(){return s},set(o){this[n]=o}})};return r}var GC={};ft(GC,{BaseCommand:()=>Le,WorkspaceRequiredError:()=>ht,getDynamicLibs:()=>bre,getPluginConfiguration:()=>L0,main:()=>s0,openWorkspace:()=>Wf,pluginCommands:()=>Lf});var Le=class extends Re{constructor(){super(...arguments);this.cwd=J.String("--cwd",{hidden:!0})}};var ht=class extends Pe{constructor(e,t){let i=k.relative(e,t),n=k.join(e,At.fileName);super(`This command can only be run from within a workspace of your project (${i} isn't a workspace of ${n}).`)}};var sGe=ge(ri());ys();var oGe=ge(UF()),bre=()=>new Map([["@yarnpkg/cli",GC],["@yarnpkg/core",EC],["@yarnpkg/fslib",Zh],["@yarnpkg/libzip",Md],["@yarnpkg/parsers",op],["@yarnpkg/shell",Ud],["clipanion",Cp],["semver",sGe],["typanion",cg],["yup",oGe]]);async function Wf(r,e){let{project:t,workspace:i}=await ze.find(r,e);if(!i)throw new ht(t.cwd,e);return i}var Q_e=ge(ri());ys();var S_e=ge(UF());var GN={};ft(GN,{dedupeUtils:()=>wN,default:()=>mWe,suggestUtils:()=>lN});var Sae=ge(Ic());var Fne=ge(WC());ys();var lN={};ft(lN,{Modifier:()=>pa,Strategy:()=>Vr,Target:()=>Hr,WorkspaceModifier:()=>Xf,applyModifier:()=>kne,extractDescriptorFromPath:()=>gN,extractRangeModifier:()=>xne,fetchDescriptorFrom:()=>uN,findProjectDescriptors:()=>Rne,getModifier:()=>zC,getSuggestedDescriptors:()=>_C,makeWorkspaceDescriptor:()=>Dne,toWorkspaceModifier:()=>Pne});var cN=ge(ri()),bYe="workspace:",Hr;(function(i){i.REGULAR="dependencies",i.DEVELOPMENT="devDependencies",i.PEER="peerDependencies"})(Hr||(Hr={}));var pa;(function(i){i.CARET="^",i.TILDE="~",i.EXACT=""})(pa||(pa={}));var Xf;(function(i){i.CARET="^",i.TILDE="~",i.EXACT="*"})(Xf||(Xf={}));var Vr;(function(s){s.KEEP="keep",s.REUSE="reuse",s.PROJECT="project",s.LATEST="latest",s.CACHE="cache"})(Vr||(Vr={}));function zC(r,e){return r.exact?pa.EXACT:r.caret?pa.CARET:r.tilde?pa.TILDE:e.configuration.get("defaultSemverRangePrefix")}var QYe=/^([\^~]?)[0-9]+(?:\.[0-9]+){0,2}(?:-\S+)?$/;function xne(r,{project:e}){let t=r.match(QYe);return t?t[1]:e.configuration.get("defaultSemverRangePrefix")}function kne(r,e){let{protocol:t,source:i,params:n,selector:s}=P.parseRange(r.range);return cN.default.valid(s)&&(s=`${e}${r.range}`),P.makeDescriptor(r,P.makeRange({protocol:t,source:i,params:n,selector:s}))}function Pne(r){switch(r){case pa.CARET:return Xf.CARET;case pa.TILDE:return Xf.TILDE;case pa.EXACT:return Xf.EXACT;default:throw new Error(`Assertion failed: Unknown modifier: "${r}"`)}}function Dne(r,e){return P.makeDescriptor(r.anchoredDescriptor,`${bYe}${Pne(e)}`)}async function Rne(r,{project:e,target:t}){let i=new Map,n=s=>{let o=i.get(s.descriptorHash);return o||i.set(s.descriptorHash,o={descriptor:s,locators:[]}),o};for(let s of e.workspaces)if(t===Hr.PEER){let o=s.manifest.peerDependencies.get(r.identHash);o!==void 0&&n(o).locators.push(s.locator)}else{let o=s.manifest.dependencies.get(r.identHash),a=s.manifest.devDependencies.get(r.identHash);t===Hr.DEVELOPMENT?a!==void 0?n(a).locators.push(s.locator):o!==void 0&&n(o).locators.push(s.locator):o!==void 0?n(o).locators.push(s.locator):a!==void 0&&n(a).locators.push(s.locator)}return i}async function gN(r,{cwd:e,workspace:t}){return await SYe(async i=>{k.isAbsolute(r)||(r=k.relative(t.cwd,k.resolve(e,r)),r.match(/^\.{0,2}\//)||(r=`./${r}`));let{project:n}=t,s=await uN(P.makeIdent(null,"archive"),r,{project:t.project,cache:i,workspace:t});if(!s)throw new Error("Assertion failed: The descriptor should have been found");let o=new di,a=n.configuration.makeResolver(),l=n.configuration.makeFetcher(),c={checksums:n.storedChecksums,project:n,cache:i,fetcher:l,report:o,resolver:a},u=a.bindDescriptor(s,t.anchoredLocator,c),g=P.convertDescriptorToLocator(u),f=await l.fetch(g,c),h=await At.find(f.prefixPath,{baseFs:f.packageFs});if(!h.name)throw new Error("Target path doesn't have a name");return P.makeDescriptor(h.name,r)})}async function _C(r,{project:e,workspace:t,cache:i,target:n,modifier:s,strategies:o,maxResults:a=Infinity}){if(!(a>=0))throw new Error(`Invalid maxResults (${a})`);if(r.range!=="unknown")return{suggestions:[{descriptor:r,name:`Use ${P.prettyDescriptor(e.configuration,r)}`,reason:"(unambiguous explicit request)"}],rejections:[]};let l=typeof t!="undefined"&&t!==null&&t.manifest[n].get(r.identHash)||null,c=[],u=[],g=async f=>{try{await f()}catch(h){u.push(h)}};for(let f of o){if(c.length>=a)break;switch(f){case Vr.KEEP:await g(async()=>{l&&c.push({descriptor:l,name:`Keep ${P.prettyDescriptor(e.configuration,l)}`,reason:"(no changes)"})});break;case Vr.REUSE:await g(async()=>{for(let{descriptor:h,locators:p}of(await Rne(r,{project:e,target:n})).values()){if(p.length===1&&p[0].locatorHash===t.anchoredLocator.locatorHash&&o.includes(Vr.KEEP))continue;let m=`(originally used by ${P.prettyLocator(e.configuration,p[0])}`;m+=p.length>1?` and ${p.length-1} other${p.length>2?"s":""})`:")",c.push({descriptor:h,name:`Reuse ${P.prettyDescriptor(e.configuration,h)}`,reason:m})}});break;case Vr.CACHE:await g(async()=>{for(let h of e.storedDescriptors.values())h.identHash===r.identHash&&c.push({descriptor:h,name:`Reuse ${P.prettyDescriptor(e.configuration,h)}`,reason:"(already used somewhere in the lockfile)"})});break;case Vr.PROJECT:await g(async()=>{if(t.manifest.name!==null&&r.identHash===t.manifest.name.identHash)return;let h=e.tryWorkspaceByIdent(r);if(h===null)return;let p=Dne(h,s);c.push({descriptor:p,name:`Attach ${P.prettyDescriptor(e.configuration,p)}`,reason:`(local workspace at ${ae.pretty(e.configuration,h.relativeCwd,ae.Type.PATH)})`})});break;case Vr.LATEST:await g(async()=>{if(r.range!=="unknown")c.push({descriptor:r,name:`Use ${P.prettyRange(e.configuration,r.range)}`,reason:"(explicit range requested)"});else if(n===Hr.PEER)c.push({descriptor:P.makeDescriptor(r,"*"),name:"Use *",reason:"(catch-all peer dependency pattern)"});else if(!e.configuration.get("enableNetwork"))c.push({descriptor:null,name:"Resolve from latest",reason:ae.pretty(e.configuration,"(unavailable because enableNetwork is toggled off)","grey")});else{let h=await uN(r,"latest",{project:e,cache:i,workspace:t,preserveModifier:!1});h&&(h=kne(h,s),c.push({descriptor:h,name:`Use ${P.prettyDescriptor(e.configuration,h)}`,reason:"(resolved from latest)"}))}});break}}return{suggestions:c.slice(0,a),rejections:u.slice(0,a)}}async function uN(r,e,{project:t,cache:i,workspace:n,preserveModifier:s=!0}){let o=P.makeDescriptor(r,e),a=new di,l=t.configuration.makeFetcher(),c=t.configuration.makeResolver(),u={project:t,fetcher:l,cache:i,checksums:t.storedChecksums,report:a,cacheOptions:{skipIntegrityCheck:!0},skipIntegrityCheck:!0},g=te(N({},u),{resolver:c,fetchOptions:u}),f=c.bindDescriptor(o,n.anchoredLocator,g),h=await c.getCandidates(f,new Map,g);if(h.length===0)return null;let p=h[0],{protocol:m,source:y,params:b,selector:v}=P.parseRange(P.convertToManifestRange(p.reference));if(m===t.configuration.get("defaultProtocol")&&(m=null),cN.default.valid(v)&&s!==!1){let x=typeof s=="string"?s:o.range;v=xne(x,{project:t})+v}return P.makeDescriptor(p,P.makeRange({protocol:m,source:y,params:b,selector:v}))}async function SYe(r){return await K.mktempPromise(async e=>{let t=ye.create(e);return t.useWithSource(e,{enableMirror:!1,compressionLevel:0},e,{overwrite:!0}),await r(new Nt(e,{configuration:t,check:!1,immutable:!1}))})}var VC=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.exact=J.Boolean("-E,--exact",!1,{description:"Don't use any semver modifier on the resolved range"});this.tilde=J.Boolean("-T,--tilde",!1,{description:"Use the `~` semver modifier on the resolved range"});this.caret=J.Boolean("-C,--caret",!1,{description:"Use the `^` semver modifier on the resolved range"});this.dev=J.Boolean("-D,--dev",!1,{description:"Add a package as a dev dependency"});this.peer=J.Boolean("-P,--peer",!1,{description:"Add a package as a peer dependency"});this.optional=J.Boolean("-O,--optional",!1,{description:"Add / upgrade a package to an optional regular / peer dependency"});this.preferDev=J.Boolean("--prefer-dev",!1,{description:"Add / upgrade a package to a dev dependency"});this.interactive=J.Boolean("-i,--interactive",{description:"Reuse the specified package from other workspaces in the project"});this.cached=J.Boolean("--cached",!1,{description:"Reuse the highest version already used somewhere within the project"});this.mode=J.String("--mode",{description:"Change what artifacts installs generate",validator:nn(Ci)});this.silent=J.Boolean("--silent",{hidden:!0});this.packages=J.Rest()}async execute(){var m;let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState({restoreResolutions:!1});let s=(m=this.interactive)!=null?m:e.get("preferInteractive"),o=zC(this,t),a=[...s?[Vr.REUSE]:[],Vr.PROJECT,...this.cached?[Vr.CACHE]:[],Vr.LATEST],l=s?Infinity:1,c=await Promise.all(this.packages.map(async y=>{let b=y.match(/^\.{0,2}\//)?await gN(y,{cwd:this.context.cwd,workspace:i}):P.tryParseDescriptor(y),v=y.match(/^(https?:|git@github)/);if(v)throw new Pe(`It seems you are trying to add a package using a ${ae.pretty(e,`${v[0]}...`,Ri.RANGE)} url; we now require package names to be explicitly specified. +Try running the command again with the package name prefixed: ${ae.pretty(e,"yarn add",Ri.CODE)} ${ae.pretty(e,P.makeDescriptor(P.makeIdent(null,"my-package"),`${v[0]}...`),Ri.DESCRIPTOR)}`);if(!b)throw new Pe(`The ${ae.pretty(e,y,Ri.CODE)} string didn't match the required format (package-name@range). Did you perhaps forget to explicitly reference the package name?`);let x=vYe(i,b,{dev:this.dev,peer:this.peer,preferDev:this.preferDev,optional:this.optional}),T=await _C(b,{project:t,workspace:i,cache:n,target:x,modifier:o,strategies:a,maxResults:l});return[b,T,x]})),u=await pA.start({configuration:e,stdout:this.context.stdout,suggestInstall:!1},async y=>{for(let[b,{suggestions:v,rejections:x}]of c)if(v.filter(q=>q.descriptor!==null).length===0){let[q]=x;if(typeof q=="undefined")throw new Error("Assertion failed: Expected an error to have been set");t.configuration.get("enableNetwork")?y.reportError(X.CANT_SUGGEST_RESOLUTIONS,`${P.prettyDescriptor(e,b)} can't be resolved to a satisfying range`):y.reportError(X.CANT_SUGGEST_RESOLUTIONS,`${P.prettyDescriptor(e,b)} can't be resolved to a satisfying range (note: network resolution has been disabled)`),y.reportSeparator(),y.reportExceptionOnce(q)}});if(u.hasErrors())return u.exitCode();let g=!1,f=[],h=[];for(let[,{suggestions:y},b]of c){let v,x=y.filter($=>$.descriptor!==null),T=x[0].descriptor,q=x.every($=>P.areDescriptorsEqual($.descriptor,T));x.length===1||q?v=T:(g=!0,{answer:v}=await(0,Fne.prompt)({type:"select",name:"answer",message:"Which range do you want to use?",choices:y.map(({descriptor:$,name:_,reason:ne})=>$?{name:_,hint:ne,descriptor:$}:{name:_,hint:ne,disabled:!0}),onCancel:()=>process.exit(130),result($){return this.find($,"descriptor")},stdin:this.context.stdin,stdout:this.context.stdout}));let Y=i.manifest[b].get(v.identHash);(typeof Y=="undefined"||Y.descriptorHash!==v.descriptorHash)&&(i.manifest[b].set(v.identHash,v),this.optional&&(b==="dependencies"?i.manifest.ensureDependencyMeta(te(N({},v),{range:"unknown"})).optional=!0:b==="peerDependencies"&&(i.manifest.ensurePeerDependencyMeta(te(N({},v),{range:"unknown"})).optional=!0)),typeof Y=="undefined"?f.push([i,b,v,a]):h.push([i,b,Y,v]))}return await e.triggerMultipleHooks(y=>y.afterWorkspaceDependencyAddition,f),await e.triggerMultipleHooks(y=>y.afterWorkspaceDependencyReplacement,h),g&&this.context.stdout.write(` +`),(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout,includeLogs:!this.context.quiet},async y=>{await t.install({cache:n,report:y,mode:this.mode})})).exitCode()}};VC.paths=[["add"]],VC.usage=Re.Usage({description:"add dependencies to the project",details:"\n This command adds a package to the package.json for the nearest workspace.\n\n - If it didn't exist before, the package will by default be added to the regular `dependencies` field, but this behavior can be overriden thanks to the `-D,--dev` flag (which will cause the dependency to be added to the `devDependencies` field instead) and the `-P,--peer` flag (which will do the same but for `peerDependencies`).\n\n - If the package was already listed in your dependencies, it will by default be upgraded whether it's part of your `dependencies` or `devDependencies` (it won't ever update `peerDependencies`, though).\n\n - If set, the `--prefer-dev` flag will operate as a more flexible `-D,--dev` in that it will add the package to your `devDependencies` if it isn't already listed in either `dependencies` or `devDependencies`, but it will also happily upgrade your `dependencies` if that's what you already use (whereas `-D,--dev` would throw an exception).\n\n - If set, the `-O,--optional` flag will add the package to the `optionalDependencies` field and, in combination with the `-P,--peer` flag, it will add the package as an optional peer dependency. If the package was already listed in your `dependencies`, it will be upgraded to `optionalDependencies`. If the package was already listed in your `peerDependencies`, in combination with the `-P,--peer` flag, it will be upgraded to an optional peer dependency: `\"peerDependenciesMeta\": { \"\": { \"optional\": true } }`\n\n - If the added package doesn't specify a range at all its `latest` tag will be resolved and the returned version will be used to generate a new semver range (using the `^` modifier by default unless otherwise configured via the `defaultSemverRangePrefix` configuration, or the `~` modifier if `-T,--tilde` is specified, or no modifier at all if `-E,--exact` is specified). Two exceptions to this rule: the first one is that if the package is a workspace then its local version will be used, and the second one is that if you use `-P,--peer` the default range will be `*` and won't be resolved at all.\n\n - If the added package specifies a range (such as `^1.0.0`, `latest`, or `rc`), Yarn will add this range as-is in the resulting package.json entry (in particular, tags such as `rc` will be encoded as-is rather than being converted into a semver range).\n\n If the `--cached` option is used, Yarn will preferably reuse the highest version already used somewhere within the project, even if through a transitive dependency.\n\n If the `-i,--interactive` option is used (or if the `preferInteractive` settings is toggled on) the command will first try to check whether other workspaces in the project use the specified package and, if so, will offer to reuse them.\n\n If the `--mode=` option is set, Yarn will change which artifacts are generated. The modes currently supported are:\n\n - `skip-build` will not run the build scripts at all. Note that this is different from setting `enableScripts` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.\n\n - `update-lockfile` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.\n\n For a compilation of all the supported protocols, please consult the dedicated page from our website: https://yarnpkg.com/features/protocols.\n ",examples:[["Add a regular package to the current workspace","$0 add lodash"],["Add a specific version for a package to the current workspace","$0 add lodash@1.2.3"],["Add a package from a GitHub repository (the master branch) to the current workspace using a URL","$0 add lodash@https://github.com/lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol","$0 add lodash@github:lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol (shorthand)","$0 add lodash@lodash/lodash"],["Add a package from a specific branch of a GitHub repository to the current workspace using the GitHub protocol (shorthand)","$0 add lodash-es@lodash/lodash#es"]]});var Nne=VC;function vYe(r,e,{dev:t,peer:i,preferDev:n,optional:s}){let o=r.manifest[Hr.REGULAR].has(e.identHash),a=r.manifest[Hr.DEVELOPMENT].has(e.identHash),l=r.manifest[Hr.PEER].has(e.identHash);if((t||i)&&o)throw new Pe(`Package "${P.prettyIdent(r.project.configuration,e)}" is already listed as a regular dependency - remove the -D,-P flags or remove it from your dependencies first`);if(!t&&!i&&l)throw new Pe(`Package "${P.prettyIdent(r.project.configuration,e)}" is already listed as a peer dependency - use either of -D or -P, or remove it from your peer dependencies first`);if(s&&a)throw new Pe(`Package "${P.prettyIdent(r.project.configuration,e)}" is already listed as a dev dependency - remove the -O flag or remove it from your dev dependencies first`);if(s&&!i&&l)throw new Pe(`Package "${P.prettyIdent(r.project.configuration,e)}" is already listed as a peer dependency - remove the -O flag or add the -P flag or remove it from your peer dependencies first`);if((t||n)&&s)throw new Pe(`Package "${P.prettyIdent(r.project.configuration,e)}" cannot simultaneously be a dev dependency and an optional dependency`);return i?Hr.PEER:t||n?Hr.DEVELOPMENT:o?Hr.REGULAR:a?Hr.DEVELOPMENT:Hr.REGULAR}var XC=class extends Le{constructor(){super(...arguments);this.verbose=J.Boolean("-v,--verbose",!1,{description:"Print both the binary name and the locator of the package that provides the binary"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.name=J.String({required:!1})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,locator:i}=await ze.find(e,this.context.cwd);if(await t.restoreInstallState(),this.name){let o=(await Zt.getPackageAccessibleBinaries(i,{project:t})).get(this.name);if(!o)throw new Pe(`Couldn't find a binary named "${this.name}" for package "${P.prettyLocator(e,i)}"`);let[,a]=o;return this.context.stdout.write(`${a} +`),0}return(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout},async s=>{let o=await Zt.getPackageAccessibleBinaries(i,{project:t}),l=Array.from(o.keys()).reduce((c,u)=>Math.max(c,u.length),0);for(let[c,[u,g]]of o)s.reportJson({name:c,source:P.stringifyIdent(u),path:g});if(this.verbose)for(let[c,[u]]of o)s.reportInfo(null,`${c.padEnd(l," ")} ${P.prettyLocator(e,u)}`);else for(let c of o.keys())s.reportInfo(null,c)})).exitCode()}};XC.paths=[["bin"]],XC.usage=Re.Usage({description:"get the path to a binary script",details:` + When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the \`-v,--verbose\` flag will cause the output to contain both the binary name and the locator of the package that provides the binary. + + When an argument is specified, this command will just print the path to the binary on the standard output and exit. Note that the reported path may be stored within a zip archive. + `,examples:[["List all the available binaries","$0 bin"],["Print the path to a specific binary","$0 bin eslint"]]});var Lne=XC;var ZC=class extends Le{constructor(){super(...arguments);this.mirror=J.Boolean("--mirror",!1,{description:"Remove the global cache files instead of the local cache files"});this.all=J.Boolean("--all",!1,{description:"Remove both the global cache files and the local cache files of the current project"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=await Nt.find(e);return(await Je.start({configuration:e,stdout:this.context.stdout},async()=>{let n=(this.all||this.mirror)&&t.mirrorCwd!==null,s=!this.mirror;n&&(await K.removePromise(t.mirrorCwd),await e.triggerHook(o=>o.cleanGlobalArtifacts,e)),s&&await K.removePromise(t.cwd)})).exitCode()}};ZC.paths=[["cache","clean"],["cache","clear"]],ZC.usage=Re.Usage({description:"remove the shared cache files",details:` + This command will remove all the files from the cache. + `,examples:[["Remove all the local archives","$0 cache clean"],["Remove all the archives stored in the ~/.yarn directory","$0 cache clean --mirror"]]});var Tne=ZC;var One=ge(C0()),fN=ge(require("util")),$C=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.unsafe=J.Boolean("--no-redacted",!1,{description:"Don't redact secrets (such as tokens) from the output"});this.name=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=this.name.replace(/[.[].*$/,""),i=this.name.replace(/^[^.[]*/,"");if(typeof e.settings.get(t)=="undefined")throw new Pe(`Couldn't find a configuration settings named "${t}"`);let s=e.getSpecial(t,{hideSecrets:!this.unsafe,getNativePaths:!0}),o=Se.convertMapsToIndexableObjects(s),a=i?(0,One.default)(o,i):o,l=await Je.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async c=>{c.reportJson(a)});if(!this.json){if(typeof a=="string")return this.context.stdout.write(`${a} +`),l.exitCode();fN.inspect.styles.name="cyan",this.context.stdout.write(`${(0,fN.inspect)(a,{depth:Infinity,colors:e.get("enableColors"),compact:!1})} +`)}return l.exitCode()}};$C.paths=[["config","get"]],$C.usage=Re.Usage({description:"read a configuration settings",details:` + This command will print a configuration setting. + + Secrets (such as tokens) will be redacted from the output by default. If this behavior isn't desired, set the \`--no-redacted\` to get the untransformed value. + `,examples:[["Print a simple configuration setting","yarn config get yarnPath"],["Print a complex configuration setting","yarn config get packageExtensions"],["Print a nested field from the configuration",`yarn config get 'npmScopes["my-company"].npmRegistryServer'`],["Print a token from the configuration","yarn config get npmAuthToken --no-redacted"],["Print a configuration setting as JSON","yarn config get packageExtensions --json"]]});var Mne=$C;var Vse=ge(EN()),Xse=ge(C0()),Zse=ge(_se()),IN=ge(require("util")),tm=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Set complex configuration settings to JSON values"});this.home=J.Boolean("-H,--home",!1,{description:"Update the home configuration instead of the project configuration"});this.name=J.String();this.value=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=()=>{if(!e.projectCwd)throw new Pe("This command must be run from within a project folder");return e.projectCwd},i=this.name.replace(/[.[].*$/,""),n=this.name.replace(/^[^.[]*\.?/,"");if(typeof e.settings.get(i)=="undefined")throw new Pe(`Couldn't find a configuration settings named "${i}"`);if(i==="enableStrictSettings")throw new Pe("This setting only affects the file it's in, and thus cannot be set from the CLI");let o=this.json?JSON.parse(this.value):this.value;await(this.home?h=>ye.updateHomeConfiguration(h):h=>ye.updateConfiguration(t(),h))(h=>{if(n){let p=(0,Vse.default)(h);return(0,Zse.default)(p,this.name,o),p}else return te(N({},h),{[i]:o})});let c=(await ye.find(this.context.cwd,this.context.plugins)).getSpecial(i,{hideSecrets:!0,getNativePaths:!0}),u=Se.convertMapsToIndexableObjects(c),g=n?(0,Xse.default)(u,n):u;return(await Je.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async h=>{IN.inspect.styles.name="cyan",h.reportInfo(X.UNNAMED,`Successfully set ${this.name} to ${(0,IN.inspect)(g,{depth:Infinity,colors:e.get("enableColors"),compact:!1})}`)})).exitCode()}};tm.paths=[["config","set"]],tm.usage=Re.Usage({description:"change a configuration settings",details:` + This command will set a configuration setting. + + When used without the \`--json\` flag, it can only set a simple configuration setting (a string, a number, or a boolean). + + When used with the \`--json\` flag, it can set both simple and complex configuration settings, including Arrays and Objects. + `,examples:[["Set a simple configuration setting (a string, a number, or a boolean)","yarn config set initScope myScope"],["Set a simple configuration setting (a string, a number, or a boolean) using the `--json` flag",'yarn config set initScope --json \\"myScope\\"'],["Set a complex configuration setting (an Array) using the `--json` flag",`yarn config set unsafeHttpWhitelist --json '["*.example.com", "example.com"]'`],["Set a complex configuration setting (an Object) using the `--json` flag",`yarn config set packageExtensions --json '{ "@babel/parser@*": { "dependencies": { "@babel/types": "*" } } }'`],["Set a nested configuration setting",'yarn config set npmScopes.company.npmRegistryServer "https://npm.example.com"'],["Set a nested configuration setting using indexed access for non-simple keys",`yarn config set 'npmRegistries["//npm.example.com"].npmAuthToken' "ffffffff-ffff-ffff-ffff-ffffffffffff"`]]});var $se=tm;var Aoe=ge(EN()),loe=ge(yC()),coe=ge(aoe()),rm=class extends Le{constructor(){super(...arguments);this.home=J.Boolean("-H,--home",!1,{description:"Update the home configuration instead of the project configuration"});this.name=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=()=>{if(!e.projectCwd)throw new Pe("This command must be run from within a project folder");return e.projectCwd},i=this.name.replace(/[.[].*$/,""),n=this.name.replace(/^[^.[]*\.?/,"");if(typeof e.settings.get(i)=="undefined")throw new Pe(`Couldn't find a configuration settings named "${i}"`);let o=this.home?l=>ye.updateHomeConfiguration(l):l=>ye.updateConfiguration(t(),l);return(await Je.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async l=>{let c=!1;await o(u=>{if(!(0,loe.default)(u,this.name))return l.reportWarning(X.UNNAMED,`Configuration doesn't contain setting ${this.name}; there is nothing to unset`),c=!0,u;let g=n?(0,Aoe.default)(u):N({},u);return(0,coe.default)(g,this.name),g}),c||l.reportInfo(X.UNNAMED,`Successfully unset ${this.name}`)})).exitCode()}};rm.paths=[["config","unset"]],rm.usage=Re.Usage({description:"unset a configuration setting",details:` + This command will unset a configuration setting. + `,examples:[["Unset a simple configuration setting","yarn config unset initScope"],["Unset a complex configuration setting","yarn config unset packageExtensions"],["Unset a nested configuration setting","yarn config unset npmScopes.company.npmRegistryServer"]]});var uoe=rm;var yN=ge(require("util")),im=class extends Le{constructor(){super(...arguments);this.verbose=J.Boolean("-v,--verbose",!1,{description:"Print the setting description on top of the regular key/value information"});this.why=J.Boolean("--why",!1,{description:"Print the reason why a setting is set a particular way"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins,{strict:!1});return(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{if(e.invalid.size>0&&!this.json){for(let[n,s]of e.invalid)i.reportError(X.INVALID_CONFIGURATION_KEY,`Invalid configuration key "${n}" in ${s}`);i.reportSeparator()}if(this.json){let n=Se.sortMap(e.settings.keys(),s=>s);for(let s of n){let o=e.settings.get(s),a=e.getSpecial(s,{hideSecrets:!0,getNativePaths:!0}),l=e.sources.get(s);this.verbose?i.reportJson({key:s,effective:a,source:l}):i.reportJson(N({key:s,effective:a,source:l},o))}}else{let n=Se.sortMap(e.settings.keys(),a=>a),s=n.reduce((a,l)=>Math.max(a,l.length),0),o={breakLength:Infinity,colors:e.get("enableColors"),maxArrayLength:2};if(this.why||this.verbose){let a=n.map(c=>{let u=e.settings.get(c);if(!u)throw new Error(`Assertion failed: This settings ("${c}") should have been registered`);let g=this.why?e.sources.get(c)||"":u.description;return[c,g]}),l=a.reduce((c,[,u])=>Math.max(c,u.length),0);for(let[c,u]of a)i.reportInfo(null,`${c.padEnd(s," ")} ${u.padEnd(l," ")} ${(0,yN.inspect)(e.getSpecial(c,{hideSecrets:!0,getNativePaths:!0}),o)}`)}else for(let a of n)i.reportInfo(null,`${a.padEnd(s," ")} ${(0,yN.inspect)(e.getSpecial(a,{hideSecrets:!0,getNativePaths:!0}),o)}`)}})).exitCode()}};im.paths=[["config"]],im.usage=Re.Usage({description:"display the current configuration",details:` + This command prints the current active configuration settings. + `,examples:[["Print the active configuration settings","$0 config"]]});var goe=im;ys();var wN={};ft(wN,{Strategy:()=>Bu,acceptedStrategies:()=>P3e,dedupe:()=>BN});var foe=ge(is()),Bu;(function(e){e.HIGHEST="highest"})(Bu||(Bu={}));var P3e=new Set(Object.values(Bu)),D3e={highest:async(r,e,{resolver:t,fetcher:i,resolveOptions:n,fetchOptions:s})=>{let o=new Map;for(let[a,l]of r.storedResolutions){let c=r.storedDescriptors.get(a);if(typeof c=="undefined")throw new Error(`Assertion failed: The descriptor (${a}) should have been registered`);Se.getSetWithDefault(o,c.identHash).add(l)}return Array.from(r.storedDescriptors.values(),async a=>{if(e.length&&!foe.default.isMatch(P.stringifyIdent(a),e))return null;let l=r.storedResolutions.get(a.descriptorHash);if(typeof l=="undefined")throw new Error(`Assertion failed: The resolution (${a.descriptorHash}) should have been registered`);let c=r.originalPackages.get(l);if(typeof c=="undefined"||!t.shouldPersistResolution(c,n))return null;let u=o.get(a.identHash);if(typeof u=="undefined")throw new Error(`Assertion failed: The resolutions (${a.identHash}) should have been registered`);if(u.size===1)return null;let g=[...u].map(y=>{let b=r.originalPackages.get(y);if(typeof b=="undefined")throw new Error(`Assertion failed: The package (${y}) should have been registered`);return b.reference}),f=await t.getSatisfying(a,g,n),h=f==null?void 0:f[0];if(typeof h=="undefined")return null;let p=h.locatorHash,m=r.originalPackages.get(p);if(typeof m=="undefined")throw new Error(`Assertion failed: The package (${p}) should have been registered`);return p===l?null:{descriptor:a,currentPackage:c,updatedPackage:m}})}};async function BN(r,{strategy:e,patterns:t,cache:i,report:n}){let{configuration:s}=r,o=new di,a=s.makeResolver(),l=s.makeFetcher(),c={cache:i,checksums:r.storedChecksums,fetcher:l,project:r,report:o,skipIntegrityCheck:!0,cacheOptions:{skipIntegrityCheck:!0}},u={project:r,resolver:a,report:o,fetchOptions:c};return await n.startTimerPromise("Deduplication step",async()=>{let f=await D3e[e](r,t,{resolver:a,resolveOptions:u,fetcher:l,fetchOptions:c}),h=Ji.progressViaCounter(f.length);n.reportProgress(h);let p=0;await Promise.all(f.map(b=>b.then(v=>{if(v===null)return;p++;let{descriptor:x,currentPackage:T,updatedPackage:q}=v;n.reportInfo(X.UNNAMED,`${P.prettyDescriptor(s,x)} can be deduped from ${P.prettyLocator(s,T)} to ${P.prettyLocator(s,q)}`),n.reportJson({descriptor:P.stringifyDescriptor(x),currentResolution:P.stringifyLocator(T),updatedResolution:P.stringifyLocator(q)}),r.storedResolutions.set(x.descriptorHash,q.locatorHash)}).finally(()=>h.tick())));let m;switch(p){case 0:m="No packages";break;case 1:m="One package";break;default:m=`${p} packages`}let y=ae.pretty(s,e,ae.Type.CODE);return n.reportInfo(X.UNNAMED,`${m} can be deduped using the ${y} strategy`),p})}var nm=class extends Le{constructor(){super(...arguments);this.strategy=J.String("-s,--strategy",Bu.HIGHEST,{description:"The strategy to use when deduping dependencies",validator:nn(Bu)});this.check=J.Boolean("-c,--check",!1,{description:"Exit with exit code 1 when duplicates are found, without persisting the dependency tree"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.mode=J.String("--mode",{description:"Change what artifacts installs generate",validator:nn(Ci)});this.patterns=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t}=await ze.find(e,this.context.cwd),i=await Nt.find(e);await t.restoreInstallState({restoreResolutions:!1});let n=0,s=await Je.start({configuration:e,includeFooter:!1,stdout:this.context.stdout,json:this.json},async o=>{n=await BN(t,{strategy:this.strategy,patterns:this.patterns,cache:i,report:o})});return s.hasErrors()?s.exitCode():this.check?n?1:0:(await Je.start({configuration:e,stdout:this.context.stdout,json:this.json},async a=>{await t.install({cache:i,report:a,mode:this.mode})})).exitCode()}};nm.paths=[["dedupe"]],nm.usage=Re.Usage({description:"deduplicate dependencies with overlapping ranges",details:"\n Duplicates are defined as descriptors with overlapping ranges being resolved and locked to different locators. They are a natural consequence of Yarn's deterministic installs, but they can sometimes pile up and unnecessarily increase the size of your project.\n\n This command dedupes dependencies in the current project using different strategies (only one is implemented at the moment):\n\n - `highest`: Reuses (where possible) the locators with the highest versions. This means that dependencies can only be upgraded, never downgraded. It's also guaranteed that it never takes more than a single pass to dedupe the entire dependency tree.\n\n **Note:** Even though it never produces a wrong dependency tree, this command should be used with caution, as it modifies the dependency tree, which can sometimes cause problems when packages don't strictly follow semver recommendations. Because of this, it is recommended to also review the changes manually.\n\n If set, the `-c,--check` flag will only report the found duplicates, without persisting the modified dependency tree. If changes are found, the command will exit with a non-zero exit code, making it suitable for CI purposes.\n\n If the `--mode=` option is set, Yarn will change which artifacts are generated. The modes currently supported are:\n\n - `skip-build` will not run the build scripts at all. Note that this is different from setting `enableScripts` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.\n\n - `update-lockfile` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.\n\n This command accepts glob patterns as arguments (if valid Idents and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.\n\n ### In-depth explanation:\n\n Yarn doesn't deduplicate dependencies by default, otherwise installs wouldn't be deterministic and the lockfile would be useless. What it actually does is that it tries to not duplicate dependencies in the first place.\n\n **Example:** If `foo@^2.3.4` (a dependency of a dependency) has already been resolved to `foo@2.3.4`, running `yarn add foo@*`will cause Yarn to reuse `foo@2.3.4`, even if the latest `foo` is actually `foo@2.10.14`, thus preventing unnecessary duplication.\n\n Duplication happens when Yarn can't unlock dependencies that have already been locked inside the lockfile.\n\n **Example:** If `foo@^2.3.4` (a dependency of a dependency) has already been resolved to `foo@2.3.4`, running `yarn add foo@2.10.14` will cause Yarn to install `foo@2.10.14` because the existing resolution doesn't satisfy the range `2.10.14`. This behavior can lead to (sometimes) unwanted duplication, since now the lockfile contains 2 separate resolutions for the 2 `foo` descriptors, even though they have overlapping ranges, which means that the lockfile can be simplified so that both descriptors resolve to `foo@2.10.14`.\n ",examples:[["Dedupe all packages","$0 dedupe"],["Dedupe all packages using a specific strategy","$0 dedupe --strategy highest"],["Dedupe a specific package","$0 dedupe lodash"],["Dedupe all packages with the `@babel/*` scope","$0 dedupe '@babel/*'"],["Check for duplicates (can be used as a CI step)","$0 dedupe --check"]]});var hoe=nm;var J0=class extends Le{async execute(){let{plugins:e}=await ye.find(this.context.cwd,this.context.plugins),t=[];for(let o of e){let{commands:a}=o[1];if(a){let c=ws.from(a).definitions();t.push([o[0],c])}}let i=this.cli.definitions(),n=(o,a)=>o.split(" ").slice(1).join()===a.split(" ").slice(1).join(),s=doe()["@yarnpkg/builder"].bundles.standard;for(let o of t){let a=o[1];for(let l of a)i.find(c=>n(c.path,l.path)).plugin={name:o[0],isDefault:s.includes(o[0])}}this.context.stdout.write(`${JSON.stringify(i,null,2)} +`)}};J0.paths=[["--clipanion=definitions"]];var Coe=J0;var W0=class extends Le{async execute(){this.context.stdout.write(this.cli.usage(null))}};W0.paths=[["help"],["--help"],["-h"]];var moe=W0;var bN=class extends Le{constructor(){super(...arguments);this.leadingArgument=J.String();this.args=J.Proxy()}async execute(){if(this.leadingArgument.match(/[\\/]/)&&!P.tryParseIdent(this.leadingArgument)){let e=k.resolve(this.context.cwd,H.toPortablePath(this.leadingArgument));return await this.cli.run(this.args,{cwd:e})}else return await this.cli.run(["run",this.leadingArgument,...this.args])}},Eoe=bN;var z0=class extends Le{async execute(){this.context.stdout.write(`${Ur||""} +`)}};z0.paths=[["-v"],["--version"]];var Ioe=z0;var sm=class extends Le{constructor(){super(...arguments);this.commandName=J.String();this.args=J.Proxy()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,locator:i}=await ze.find(e,this.context.cwd);return await t.restoreInstallState(),await Zt.executePackageShellcode(i,this.commandName,this.args,{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,project:t})}};sm.paths=[["exec"]],sm.usage=Re.Usage({description:"execute a shell script",details:` + This command simply executes a shell script within the context of the root directory of the active workspace using the portable shell. + + It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment). + `,examples:[["Execute a single shell command","$0 exec echo Hello World"],["Execute a shell script",'$0 exec "tsc & babel src --out-dir lib"']]});var yoe=sm;ys();var om=class extends Le{constructor(){super(...arguments);this.hash=J.String({required:!1,validator:fp(gp(),[hp(/^p[0-9a-f]{5}$/)])})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t}=await ze.find(e,this.context.cwd);return await t.restoreInstallState({restoreResolutions:!1}),await t.applyLightResolution(),typeof this.hash!="undefined"?await R3e(this.hash,t,{stdout:this.context.stdout}):(await Je.start({configuration:e,stdout:this.context.stdout,includeFooter:!1},async n=>{var o;let s=[([,a])=>P.stringifyLocator(t.storedPackages.get(a.subject)),([,a])=>P.stringifyIdent(a.requested)];for(let[a,l]of Se.sortMap(t.peerRequirements,s)){let c=t.storedPackages.get(l.subject);if(typeof c=="undefined")throw new Error("Assertion failed: Expected the subject package to have been registered");let u=t.storedPackages.get(l.rootRequester);if(typeof u=="undefined")throw new Error("Assertion failed: Expected the root package to have been registered");let g=(o=c.dependencies.get(l.requested.identHash))!=null?o:null,f=ae.pretty(e,a,ae.Type.CODE),h=P.prettyLocator(e,c),p=P.prettyIdent(e,l.requested),m=P.prettyIdent(e,u),y=l.allRequesters.length-1,b=`descendant${y===1?"":"s"}`,v=y>0?` and ${y} ${b}`:"",x=g!==null?"provides":"doesn't provide";n.reportInfo(null,`${f} \u2192 ${h} ${x} ${p} to ${m}${v}`)}})).exitCode()}};om.paths=[["explain","peer-requirements"]],om.usage=Re.Usage({description:"explain a set of peer requirements",details:` + A set of peer requirements represents all peer requirements that a dependent must satisfy when providing a given peer request to a requester and its descendants. + + When the hash argument is specified, this command prints a detailed explanation of all requirements of the set corresponding to the hash and whether they're satisfied or not. + + When used without arguments, this command lists all sets of peer requirements and the corresponding hash that can be used to get detailed information about a given set. + + **Note:** A hash is a six-letter p-prefixed code that can be obtained from peer dependency warnings or from the list of all peer requirements (\`yarn explain peer-requirements\`). + `,examples:[["Explain the corresponding set of peer requirements for a hash","$0 explain peer-requirements p1a4ed"],["List all sets of peer requirements","$0 explain peer-requirements"]]});var woe=om;async function R3e(r,e,t){let{configuration:i}=e,n=e.peerRequirements.get(r);if(typeof n=="undefined")throw new Error(`No peerDependency requirements found for hash: "${r}"`);return(await Je.start({configuration:i,stdout:t.stdout,includeFooter:!1},async o=>{var b,v;let a=e.storedPackages.get(n.subject);if(typeof a=="undefined")throw new Error("Assertion failed: Expected the subject package to have been registered");let l=e.storedPackages.get(n.rootRequester);if(typeof l=="undefined")throw new Error("Assertion failed: Expected the root package to have been registered");let c=(b=a.dependencies.get(n.requested.identHash))!=null?b:null,u=c!==null?e.storedResolutions.get(c.descriptorHash):null;if(typeof u=="undefined")throw new Error("Assertion failed: Expected the resolution to have been registered");let g=u!==null?e.storedPackages.get(u):null;if(typeof g=="undefined")throw new Error("Assertion failed: Expected the provided package to have been registered");let f=[...n.allRequesters.values()].map(x=>{let T=e.storedPackages.get(x);if(typeof T=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let q=P.devirtualizeLocator(T),Y=e.storedPackages.get(q.locatorHash);if(typeof Y=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let $=Y.peerDependencies.get(n.requested.identHash);if(typeof $=="undefined")throw new Error("Assertion failed: Expected the peer dependency to be registered");return{pkg:T,peerDependency:$}});if(g!==null){let x=f.every(({peerDependency:T})=>Wt.satisfiesWithPrereleases(g.version,T.range));o.reportInfo(X.UNNAMED,`${P.prettyLocator(i,a)} provides ${P.prettyLocator(i,g)} with version ${P.prettyReference(i,(v=g.version)!=null?v:"")}, which ${x?"satisfies":"doesn't satisfy"} the following requirements:`)}else o.reportInfo(X.UNNAMED,`${P.prettyLocator(i,a)} doesn't provide ${P.prettyIdent(i,n.requested)}, breaking the following requirements:`);o.reportSeparator();let h=ae.mark(i),p=[];for(let{pkg:x,peerDependency:T}of Se.sortMap(f,q=>P.stringifyLocator(q.pkg))){let Y=(g!==null?Wt.satisfiesWithPrereleases(g.version,T.range):!1)?h.Check:h.Cross;p.push({stringifiedLocator:P.stringifyLocator(x),prettyLocator:P.prettyLocator(i,x),prettyRange:P.prettyRange(i,T.range),mark:Y})}let m=Math.max(...p.map(({stringifiedLocator:x})=>x.length)),y=Math.max(...p.map(({prettyRange:x})=>x.length));for(let{stringifiedLocator:x,prettyLocator:T,prettyRange:q,mark:Y}of Se.sortMap(p,({stringifiedLocator:$})=>$))o.reportInfo(null,`${T.padEnd(m+(T.length-x.length)," ")} \u2192 ${q.padEnd(y," ")} ${Y}`);p.length>1&&(o.reportSeparator(),o.reportInfo(X.UNNAMED,`Note: these requirements start with ${P.prettyLocator(e.configuration,l)}`))})).exitCode()}ys();var Boe=ge(ri()),am=class extends Le{constructor(){super(...arguments);this.onlyIfNeeded=J.Boolean("--only-if-needed",!1,{description:"Only lock the Yarn version if it isn't already locked"});this.version=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins);if(e.get("yarnPath")&&this.onlyIfNeeded)return 0;let t=()=>{if(typeof Ur=="undefined")throw new Pe("The --install flag can only be used without explicit version specifier from the Yarn CLI");return`file://${process.argv[1]}`},i;if(this.version==="self")i=t();else if(this.version==="latest"||this.version==="berry"||this.version==="stable")i=`https://repo.yarnpkg.com/${await Am(e,"stable")}/packages/yarnpkg-cli/bin/yarn.js`;else if(this.version==="canary")i=`https://repo.yarnpkg.com/${await Am(e,"canary")}/packages/yarnpkg-cli/bin/yarn.js`;else if(this.version==="classic")i="https://nightly.yarnpkg.com/latest.js";else if(this.version.match(/^https?:/))i=this.version;else if(this.version.match(/^\.{0,2}[\\/]/)||H.isAbsolute(this.version))i=`file://${H.resolve(this.version)}`;else if(Wt.satisfiesWithPrereleases(this.version,">=2.0.0"))i=`https://repo.yarnpkg.com/${this.version}/packages/yarnpkg-cli/bin/yarn.js`;else if(Wt.satisfiesWithPrereleases(this.version,"^0.x || ^1.x"))i=`https://github.com/yarnpkg/yarn/releases/download/v${this.version}/yarn-${this.version}.js`;else if(Wt.validRange(this.version))i=`https://repo.yarnpkg.com/${await F3e(e,this.version)}/packages/yarnpkg-cli/bin/yarn.js`;else throw new Pe(`Invalid version descriptor "${this.version}"`);return(await Je.start({configuration:e,stdout:this.context.stdout,includeLogs:!this.context.quiet},async s=>{let o="file://",a;i.startsWith(o)?(s.reportInfo(X.UNNAMED,`Downloading ${ae.pretty(e,i,Ri.URL)}`),a=await K.readFilePromise(H.toPortablePath(i.slice(o.length)))):(s.reportInfo(X.UNNAMED,`Retrieving ${ae.pretty(e,i,Ri.PATH)}`),a=await ir.get(i,{configuration:e})),await QN(e,null,a,{report:s})})).exitCode()}};am.paths=[["set","version"]],am.usage=Re.Usage({description:"lock the Yarn version used by the project",details:"\n This command will download a specific release of Yarn directly from the Yarn GitHub repository, will store it inside your project, and will change the `yarnPath` settings from your project `.yarnrc.yml` file to point to the new file.\n\n A very good use case for this command is to enforce the version of Yarn used by the any single member of your team inside a same project - by doing this you ensure that you have control on Yarn upgrades and downgrades (including on your deployment servers), and get rid of most of the headaches related to someone using a slightly different version and getting a different behavior than you.\n\n The version specifier can be:\n\n - a tag:\n - `latest` / `berry` / `stable` -> the most recent stable berry (`>=2.0.0`) release\n - `canary` -> the most recent canary (release candidate) berry (`>=2.0.0`) release\n - `classic` -> the most recent classic (`^0.x || ^1.x`) release\n\n - a semver range (e.g. `2.x`) -> the most recent version satisfying the range (limited to berry releases)\n\n - a semver version (e.g. `2.4.1`, `1.22.1`)\n\n - a local file referenced through either a relative or absolute path\n\n - `self` -> the version used to invoke the command\n ",examples:[["Download the latest release from the Yarn repository","$0 set version latest"],["Download the latest canary release from the Yarn repository","$0 set version canary"],["Download the latest classic release from the Yarn repository","$0 set version classic"],["Download the most recent Yarn 3 build","$0 set version 3.x"],["Download a specific Yarn 2 build","$0 set version 2.0.0-rc.30"],["Switch back to a specific Yarn 1 release","$0 set version 1.22.1"],["Use a release from the local filesystem","$0 set version ./yarn.cjs"],["Use a release from a URL","$0 set version https://repo.yarnpkg.com/3.1.0/packages/yarnpkg-cli/bin/yarn.js"],["Download the version used to invoke the command","$0 set version self"]]});var boe=am;async function F3e(r,e){let i=(await ir.get("https://repo.yarnpkg.com/tags",{configuration:r,jsonResponse:!0})).tags.filter(n=>Wt.satisfiesWithPrereleases(n,e));if(i.length===0)throw new Pe(`No matching release found for range ${ae.pretty(r,e,ae.Type.RANGE)}.`);return i[0]}async function Am(r,e){let t=await ir.get("https://repo.yarnpkg.com/tags",{configuration:r,jsonResponse:!0});if(!t.latest[e])throw new Pe(`Tag ${ae.pretty(r,e,ae.Type.RANGE)} not found`);return t.latest[e]}async function QN(r,e,t,{report:i}){var g;e===null&&await K.mktempPromise(async f=>{let h=k.join(f,"yarn.cjs");await K.writeFilePromise(h,t);let{stdout:p}=await Nr.execvp(process.execPath,[H.fromPortablePath(h),"--version"],{cwd:f,env:te(N({},process.env),{YARN_IGNORE_PATH:"1"})});if(e=p.trim(),!Boe.default.valid(e))throw new Error(`Invalid semver version. ${ae.pretty(r,"yarn --version",ae.Type.CODE)} returned: +${e}`)});let n=(g=r.projectCwd)!=null?g:r.startingCwd,s=k.resolve(n,".yarn/releases"),o=k.resolve(s,`yarn-${e}.cjs`),a=k.relative(r.startingCwd,o),l=k.relative(n,o),c=r.get("yarnPath"),u=c===null||c.startsWith(`${s}/`);if(i.reportInfo(X.UNNAMED,`Saving the new release in ${ae.pretty(r,a,"magenta")}`),await K.removePromise(k.dirname(o)),await K.mkdirPromise(k.dirname(o),{recursive:!0}),await K.writeFilePromise(o,t,{mode:493}),u){await ye.updateConfiguration(n,{yarnPath:l});let f=await At.tryFind(n)||new At;f.packageManager=`yarn@${e&&Se.isTaggedYarnVersion(e)?e:await Am(r,"stable")}`;let h={};f.exportTo(h);let p=k.join(n,At.fileName),m=`${JSON.stringify(h,null,f.indent)} +`;await K.changeFilePromise(p,m,{automaticNewlines:!0})}}function Qoe(r){return X[II(r)]}var N3e=/## (?YN[0-9]{4}) - `(?[A-Z_]+)`\n\n(?
(?:.(?!##))+)/gs;async function L3e(r){let t=`https://repo.yarnpkg.com/${Se.isTaggedYarnVersion(Ur)?Ur:await Am(r,"canary")}/packages/gatsby/content/advanced/error-codes.md`,i=await ir.get(t,{configuration:r});return new Map(Array.from(i.toString().matchAll(N3e),({groups:n})=>{if(!n)throw new Error("Assertion failed: Expected the match to have been successful");let s=Qoe(n.code);if(n.name!==s)throw new Error(`Assertion failed: Invalid error code data: Expected "${n.name}" to be named "${s}"`);return[n.code,n.details]}))}var lm=class extends Le{constructor(){super(...arguments);this.code=J.String({required:!1,validator:fp(gp(),[hp(/^YN[0-9]{4}$/)])});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins);if(typeof this.code!="undefined"){let t=Qoe(this.code),i=ae.pretty(e,t,ae.Type.CODE),n=this.cli.format().header(`${this.code} - ${i}`),o=(await L3e(e)).get(this.code),a=typeof o!="undefined"?ae.jsonOrPretty(this.json,e,ae.tuple(ae.Type.MARKDOWN,{text:o,format:this.cli.format(),paragraphs:!0})):`This error code does not have a description. + +You can help us by editing this page on GitHub \u{1F642}: +${ae.jsonOrPretty(this.json,e,ae.tuple(ae.Type.URL,"https://github.com/yarnpkg/berry/blob/master/packages/gatsby/content/advanced/error-codes.md"))} +`;this.json?this.context.stdout.write(`${JSON.stringify({code:this.code,name:t,details:a})} +`):this.context.stdout.write(`${n} + +${a} +`)}else{let t={children:Se.mapAndFilter(Object.entries(X),([i,n])=>Number.isNaN(Number(i))?Se.mapAndFilter.skip:{label:_A(Number(i)),value:ae.tuple(ae.Type.CODE,n)})};ls.emitTree(t,{configuration:e,stdout:this.context.stdout,json:this.json})}}};lm.paths=[["explain"]],lm.usage=Re.Usage({description:"explain an error code",details:` + When the code argument is specified, this command prints its name and its details. + + When used without arguments, this command lists all error codes and their names. + `,examples:[["Explain an error code","$0 explain YN0006"],["List all error codes","$0 explain"]]});var Soe=lm;var voe=ge(is()),cm=class extends Le{constructor(){super(...arguments);this.all=J.Boolean("-A,--all",!1,{description:"Print versions of a package from the whole project"});this.recursive=J.Boolean("-R,--recursive",!1,{description:"Print information for all packages, including transitive dependencies"});this.extra=J.Array("-X,--extra",[],{description:"An array of requests of extra data provided by plugins"});this.cache=J.Boolean("--cache",!1,{description:"Print information about the cache entry of a package (path, size, checksum)"});this.dependents=J.Boolean("--dependents",!1,{description:"Print all dependents for each matching package"});this.manifest=J.Boolean("--manifest",!1,{description:"Print data obtained by looking at the package archive (license, homepage, ...)"});this.nameOnly=J.Boolean("--name-only",!1,{description:"Only print the name for the matching packages"});this.virtuals=J.Boolean("--virtuals",!1,{description:"Print each instance of the virtual packages"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.patterns=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i&&!this.all)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState();let s=new Set(this.extra);this.cache&&s.add("cache"),this.dependents&&s.add("dependents"),this.manifest&&s.add("manifest");let o=(x,{recursive:T})=>{let q=x.anchoredLocator.locatorHash,Y=new Map,$=[q];for(;$.length>0;){let _=$.shift();if(Y.has(_))continue;let ne=t.storedPackages.get(_);if(typeof ne=="undefined")throw new Error("Assertion failed: Expected the package to be registered");if(Y.set(_,ne),P.isVirtualLocator(ne)&&$.push(P.devirtualizeLocator(ne).locatorHash),!(!T&&_!==q))for(let ee of ne.dependencies.values()){let A=t.storedResolutions.get(ee.descriptorHash);if(typeof A=="undefined")throw new Error("Assertion failed: Expected the resolution to be registered");$.push(A)}}return Y.values()},a=({recursive:x})=>{let T=new Map;for(let q of t.workspaces)for(let Y of o(q,{recursive:x}))T.set(Y.locatorHash,Y);return T.values()},l=({all:x,recursive:T})=>x&&T?t.storedPackages.values():x?a({recursive:T}):o(i,{recursive:T}),c=({all:x,recursive:T})=>{let q=l({all:x,recursive:T}),Y=this.patterns.map(ne=>{let ee=P.parseLocator(ne),A=voe.default.makeRe(P.stringifyIdent(ee)),oe=P.isVirtualLocator(ee),ce=oe?P.devirtualizeLocator(ee):ee;return Z=>{let O=P.stringifyIdent(Z);if(!A.test(O))return!1;if(ee.reference==="unknown")return!0;let L=P.isVirtualLocator(Z),de=L?P.devirtualizeLocator(Z):Z;return!(oe&&L&&ee.reference!==Z.reference||ce.reference!==de.reference)}}),$=Se.sortMap([...q],ne=>P.stringifyLocator(ne));return{selection:$.filter(ne=>Y.length===0||Y.some(ee=>ee(ne))),sortedLookup:$}},{selection:u,sortedLookup:g}=c({all:this.all,recursive:this.recursive});if(u.length===0)throw new Pe("No package matched your request");let f=new Map;if(this.dependents)for(let x of g)for(let T of x.dependencies.values()){let q=t.storedResolutions.get(T.descriptorHash);if(typeof q=="undefined")throw new Error("Assertion failed: Expected the resolution to be registered");Se.getArrayWithDefault(f,q).push(x)}let h=new Map;for(let x of g){if(!P.isVirtualLocator(x))continue;let T=P.devirtualizeLocator(x);Se.getArrayWithDefault(h,T.locatorHash).push(x)}let p={},m={children:p},y=e.makeFetcher(),b={project:t,fetcher:y,cache:n,checksums:t.storedChecksums,report:new di,cacheOptions:{skipIntegrityCheck:!0},skipIntegrityCheck:!0},v=[async(x,T,q)=>{var _,ne;if(!T.has("manifest"))return;let Y=await y.fetch(x,b),$;try{$=await At.find(Y.prefixPath,{baseFs:Y.packageFs})}finally{(_=Y.releaseFs)==null||_.call(Y)}q("Manifest",{License:ae.tuple(ae.Type.NO_HINT,$.license),Homepage:ae.tuple(ae.Type.URL,(ne=$.raw.homepage)!=null?ne:null)})},async(x,T,q)=>{var A;if(!T.has("cache"))return;let Y={mockedPackages:t.disabledLocators,unstablePackages:t.conditionalLocators},$=(A=t.storedChecksums.get(x.locatorHash))!=null?A:null,_=n.getLocatorPath(x,$,Y),ne;if(_!==null)try{ne=K.statSync(_)}catch{}let ee=typeof ne!="undefined"?[ne.size,ae.Type.SIZE]:void 0;q("Cache",{Checksum:ae.tuple(ae.Type.NO_HINT,$),Path:ae.tuple(ae.Type.PATH,_),Size:ee})}];for(let x of u){let T=P.isVirtualLocator(x);if(!this.virtuals&&T)continue;let q={},Y={value:[x,ae.Type.LOCATOR],children:q};if(p[P.stringifyLocator(x)]=Y,this.nameOnly){delete Y.children;continue}let $=h.get(x.locatorHash);typeof $!="undefined"&&(q.Instances={label:"Instances",value:ae.tuple(ae.Type.NUMBER,$.length)}),q.Version={label:"Version",value:ae.tuple(ae.Type.NO_HINT,x.version)};let _=(ee,A)=>{let oe={};if(q[ee]=oe,Array.isArray(A))oe.children=A.map(ce=>({value:ce}));else{let ce={};oe.children=ce;for(let[Z,O]of Object.entries(A))typeof O!="undefined"&&(ce[Z]={label:Z,value:O})}};if(!T){for(let ee of v)await ee(x,s,_);await e.triggerHook(ee=>ee.fetchPackageInfo,x,s,_)}x.bin.size>0&&!T&&_("Exported Binaries",[...x.bin.keys()].map(ee=>ae.tuple(ae.Type.PATH,ee)));let ne=f.get(x.locatorHash);typeof ne!="undefined"&&ne.length>0&&_("Dependents",ne.map(ee=>ae.tuple(ae.Type.LOCATOR,ee))),x.dependencies.size>0&&!T&&_("Dependencies",[...x.dependencies.values()].map(ee=>{var ce;let A=t.storedResolutions.get(ee.descriptorHash),oe=typeof A!="undefined"&&(ce=t.storedPackages.get(A))!=null?ce:null;return ae.tuple(ae.Type.RESOLUTION,{descriptor:ee,locator:oe})})),x.peerDependencies.size>0&&T&&_("Peer dependencies",[...x.peerDependencies.values()].map(ee=>{var Z,O;let A=x.dependencies.get(ee.identHash),oe=typeof A!="undefined"&&(Z=t.storedResolutions.get(A.descriptorHash))!=null?Z:null,ce=oe!==null&&(O=t.storedPackages.get(oe))!=null?O:null;return ae.tuple(ae.Type.RESOLUTION,{descriptor:ee,locator:ce})}))}ls.emitTree(m,{configuration:e,json:this.json,stdout:this.context.stdout,separators:this.nameOnly?0:2})}};cm.paths=[["info"]],cm.usage=Re.Usage({description:"see information related to packages",details:"\n This command prints various information related to the specified packages, accepting glob patterns.\n\n By default, if the locator reference is missing, Yarn will default to print the information about all the matching direct dependencies of the package for the active workspace. To instead print all versions of the package that are direct dependencies of any of your workspaces, use the `-A,--all` flag. Adding the `-R,--recursive` flag will also report transitive dependencies.\n\n Some fields will be hidden by default in order to keep the output readable, but can be selectively displayed by using additional options (`--dependents`, `--manifest`, `--virtuals`, ...) described in the option descriptions.\n\n Note that this command will only print the information directly related to the selected packages - if you wish to know why the package is there in the first place, use `yarn why` which will do just that (it also provides a `-R,--recursive` flag that may be of some help).\n ",examples:[["Show information about Lodash","$0 info lodash"]]});var xoe=cm;var _0=ge(Ic());ys();var um=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.immutable=J.Boolean("--immutable",{description:"Abort with an error exit code if the lockfile was to be modified"});this.immutableCache=J.Boolean("--immutable-cache",{description:"Abort with an error exit code if the cache folder was to be modified"});this.checkCache=J.Boolean("--check-cache",!1,{description:"Always refetch the packages and ensure that their checksums are consistent"});this.inlineBuilds=J.Boolean("--inline-builds",{description:"Verbosely print the output of the build steps of dependencies"});this.mode=J.String("--mode",{description:"Change what artifacts installs generate",validator:nn(Ci)});this.cacheFolder=J.String("--cache-folder",{hidden:!0});this.frozenLockfile=J.Boolean("--frozen-lockfile",{hidden:!0});this.ignoreEngines=J.Boolean("--ignore-engines",{hidden:!0});this.nonInteractive=J.Boolean("--non-interactive",{hidden:!0});this.preferOffline=J.Boolean("--prefer-offline",{hidden:!0});this.production=J.Boolean("--production",{hidden:!0});this.registry=J.String("--registry",{hidden:!0});this.silent=J.Boolean("--silent",{hidden:!0});this.networkTimeout=J.String("--network-timeout",{hidden:!0})}async execute(){var g;let e=await ye.find(this.context.cwd,this.context.plugins);typeof this.inlineBuilds!="undefined"&&e.useWithSource("",{enableInlineBuilds:this.inlineBuilds},e.startingCwd,{overwrite:!0});let t=!!process.env.FUNCTION_TARGET||!!process.env.GOOGLE_RUNTIME,i=async(f,{error:h})=>{let p=await Je.start({configuration:e,stdout:this.context.stdout,includeFooter:!1},async m=>{h?m.reportError(X.DEPRECATED_CLI_SETTINGS,f):m.reportWarning(X.DEPRECATED_CLI_SETTINGS,f)});return p.hasErrors()?p.exitCode():null};if(typeof this.ignoreEngines!="undefined"){let f=await i("The --ignore-engines option is deprecated; engine checking isn't a core feature anymore",{error:!_0.default.VERCEL});if(f!==null)return f}if(typeof this.registry!="undefined"){let f=await i("The --registry option is deprecated; prefer setting npmRegistryServer in your .yarnrc.yml file",{error:!1});if(f!==null)return f}if(typeof this.preferOffline!="undefined"){let f=await i("The --prefer-offline flag is deprecated; use the --cached flag with 'yarn add' instead",{error:!_0.default.VERCEL});if(f!==null)return f}if(typeof this.production!="undefined"){let f=await i("The --production option is deprecated on 'install'; use 'yarn workspaces focus' instead",{error:!0});if(f!==null)return f}if(typeof this.nonInteractive!="undefined"){let f=await i("The --non-interactive option is deprecated",{error:!t});if(f!==null)return f}if(typeof this.frozenLockfile!="undefined"&&(await i("The --frozen-lockfile option is deprecated; use --immutable and/or --immutable-cache instead",{error:!1}),this.immutable=this.frozenLockfile),typeof this.cacheFolder!="undefined"){let f=await i("The cache-folder option has been deprecated; use rc settings instead",{error:!_0.default.NETLIFY});if(f!==null)return f}let n=this.mode===Ci.UpdateLockfile;if(n&&(this.immutable||this.immutableCache))throw new Pe(`${ae.pretty(e,"--immutable",ae.Type.CODE)} and ${ae.pretty(e,"--immutable-cache",ae.Type.CODE)} cannot be used with ${ae.pretty(e,"--mode=update-lockfile",ae.Type.CODE)}`);let s=((g=this.immutable)!=null?g:e.get("enableImmutableInstalls"))&&!n,o=this.immutableCache&&!n;if(e.projectCwd!==null){let f=await Je.start({configuration:e,json:this.json,stdout:this.context.stdout,includeFooter:!1},async h=>{await T3e(e,s)&&(h.reportInfo(X.AUTOMERGE_SUCCESS,"Automatically fixed merge conflicts \u{1F44D}"),h.reportSeparator())});if(f.hasErrors())return f.exitCode()}if(e.projectCwd!==null&&typeof e.sources.get("nodeLinker")=="undefined"){let f=e.projectCwd,h;try{h=await K.readFilePromise(k.join(f,kt.lockfile),"utf8")}catch{}if(h==null?void 0:h.includes("yarn lockfile v1")){let p=await Je.start({configuration:e,json:this.json,stdout:this.context.stdout,includeFooter:!1},async m=>{m.reportInfo(X.AUTO_NM_SUCCESS,"Migrating from Yarn 1; automatically enabling the compatibility node-modules linker \u{1F44D}"),m.reportSeparator(),e.use("",{nodeLinker:"node-modules"},f,{overwrite:!0}),await ye.updateConfiguration(f,{nodeLinker:"node-modules"})});if(p.hasErrors())return p.exitCode()}}if(e.projectCwd!==null){let f=await Je.start({configuration:e,json:this.json,stdout:this.context.stdout,includeFooter:!1},async h=>{var p;((p=ye.telemetry)==null?void 0:p.isNew)&&(h.reportInfo(X.TELEMETRY_NOTICE,"Yarn will periodically gather anonymous telemetry: https://yarnpkg.com/advanced/telemetry"),h.reportInfo(X.TELEMETRY_NOTICE,`Run ${ae.pretty(e,"yarn config set --home enableTelemetry 0",ae.Type.CODE)} to disable`),h.reportSeparator())});if(f.hasErrors())return f.exitCode()}let{project:a,workspace:l}=await ze.find(e,this.context.cwd),c=await Nt.find(e,{immutable:o,check:this.checkCache});if(!l)throw new ht(a.cwd,this.context.cwd);return await a.restoreInstallState({restoreResolutions:!1}),(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout,includeLogs:!0},async f=>{await a.install({cache:c,report:f,immutable:s,mode:this.mode})})).exitCode()}};um.paths=[["install"],Re.Default],um.usage=Re.Usage({description:"install the project dependencies",details:` + This command sets up your project if needed. The installation is split into four different steps that each have their own characteristics: + + - **Resolution:** First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ). + + - **Fetch:** Then we download all the dependencies if needed, and make sure that they're all stored within our cache (check the value of \`cacheFolder\` in \`yarn config\` to see where the cache files are stored). + + - **Link:** Then we send the dependency tree information to internal plugins tasked with writing them on the disk in some form (for example by generating the .pnp.cjs file you might know). + + - **Build:** Once the dependency tree has been written on the disk, the package manager will now be free to run the build scripts for all packages that might need it, in a topological order compatible with the way they depend on one another. See https://yarnpkg.com/advanced/lifecycle-scripts for detail. + + Note that running this command is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches. + + If the \`--immutable\` option is set (defaults to true on CI), Yarn will abort with an error exit code if the lockfile was to be modified (other paths can be added using the \`immutablePatterns\` configuration setting). For backward compatibility we offer an alias under the name of \`--frozen-lockfile\`, but it will be removed in a later release. + + If the \`--immutable-cache\` option is set, Yarn will abort with an error exit code if the cache folder was to be modified (either because files would be added, or because they'd be removed). + + If the \`--check-cache\` option is set, Yarn will always refetch the packages and will ensure that their checksum matches what's 1/ described in the lockfile 2/ inside the existing cache files (if present). This is recommended as part of your CI workflow if you're both following the Zero-Installs model and accepting PRs from third-parties, as they'd otherwise have the ability to alter the checked-in packages before submitting them. + + If the \`--inline-builds\` option is set, Yarn will verbosely print the output of the build steps of your dependencies (instead of writing them into individual files). This is likely useful mostly for debug purposes only when using Docker-like environments. + + If the \`--mode=\` option is set, Yarn will change which artifacts are generated. The modes currently supported are: + + - \`skip-build\` will not run the build scripts at all. Note that this is different from setting \`enableScripts\` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run. + + - \`update-lockfile\` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost. + `,examples:[["Install the project","$0 install"],["Validate a project when using Zero-Installs","$0 install --immutable --immutable-cache"],["Validate a project when using Zero-Installs (slightly safer if you accept external PRs)","$0 install --immutable --immutable-cache --check-cache"]]});var koe=um,O3e="|||||||",M3e=">>>>>>>",K3e="=======",Poe="<<<<<<<";async function T3e(r,e){if(!r.projectCwd)return!1;let t=k.join(r.projectCwd,r.get("lockfileFilename"));if(!await K.existsPromise(t))return!1;let i=await K.readFilePromise(t,"utf8");if(!i.includes(Poe))return!1;if(e)throw new ct(X.AUTOMERGE_IMMUTABLE,"Cannot autofix a lockfile when running an immutable install");let[n,s]=U3e(i),o,a;try{o=Si(n),a=Si(s)}catch(c){throw new ct(X.AUTOMERGE_FAILED_TO_PARSE,"The individual variants of the lockfile failed to parse")}let l=N(N({},o),a);for(let[c,u]of Object.entries(l))typeof u=="string"&&delete l[c];return await K.changeFilePromise(t,Ma(l),{automaticNewlines:!0}),!0}function U3e(r){let e=[[],[]],t=r.split(/\r?\n/g),i=!1;for(;t.length>0;){let n=t.shift();if(typeof n=="undefined")throw new Error("Assertion failed: Some lines should remain");if(n.startsWith(Poe)){for(;t.length>0;){let s=t.shift();if(typeof s=="undefined")throw new Error("Assertion failed: Some lines should remain");if(s===K3e){i=!1;break}else if(i||s.startsWith(O3e)){i=!0;continue}else e[0].push(s)}for(;t.length>0;){let s=t.shift();if(typeof s=="undefined")throw new Error("Assertion failed: Some lines should remain");if(s.startsWith(M3e))break;e[1].push(s)}}else e[0].push(n),e[1].push(n)}return[e[0].join(` +`),e[1].join(` +`)]}var gm=class extends Le{constructor(){super(...arguments);this.all=J.Boolean("-A,--all",!1,{description:"Link all workspaces belonging to the target project to the current one"});this.private=J.Boolean("-p,--private",!1,{description:"Also link private workspaces belonging to the target project to the current one"});this.relative=J.Boolean("-r,--relative",!1,{description:"Link workspaces using relative paths instead of absolute paths"});this.destination=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState({restoreResolutions:!1});let s=k.resolve(this.context.cwd,H.toPortablePath(this.destination)),o=await ye.find(s,this.context.plugins,{useRc:!1,strict:!1}),{project:a,workspace:l}=await ze.find(o,s);if(t.cwd===a.cwd)throw new Pe("Invalid destination; Can't link the project to itself");if(!l)throw new ht(a.cwd,s);let c=t.topLevelWorkspace,u=[];if(this.all){for(let f of a.workspaces)f.manifest.name&&(!f.manifest.private||this.private)&&u.push(f);if(u.length===0)throw new Pe("No workspace found to be linked in the target project")}else{if(!l.manifest.name)throw new Pe("The target workspace doesn't have a name and thus cannot be linked");if(l.manifest.private&&!this.private)throw new Pe("The target workspace is marked private - use the --private flag to link it anyway");u.push(l)}for(let f of u){let h=P.stringifyIdent(f.locator),p=this.relative?k.relative(t.cwd,f.cwd):f.cwd;c.manifest.resolutions.push({pattern:{descriptor:{fullName:h}},reference:`portal:${p}`})}return(await Je.start({configuration:e,stdout:this.context.stdout},async f=>{await t.install({cache:n,report:f})})).exitCode()}};gm.paths=[["link"]],gm.usage=Re.Usage({description:"connect the local project to another one",details:"\n This command will set a new `resolutions` field in the project-level manifest and point it to the workspace at the specified location (even if part of another project).\n ",examples:[["Register a remote workspace for use in the current project","$0 link ~/ts-loader"],["Register all workspaces from a remote project for use in the current project","$0 link ~/jest --all"]]});var Doe=gm;var fm=class extends Le{constructor(){super(...arguments);this.args=J.Proxy()}async execute(){return this.cli.run(["exec","node",...this.args])}};fm.paths=[["node"]],fm.usage=Re.Usage({description:"run node with the hook already setup",details:` + This command simply runs Node. It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment). + + The Node process will use the exact same version of Node as the one used to run Yarn itself, which might be a good way to ensure that your commands always use a consistent Node version. + `,examples:[["Run a Node script","$0 node ./my-script.js"]]});var Roe=fm;var Hoe=ge(require("os"));var Noe=ge(require("os"));var H3e="https://raw.githubusercontent.com/yarnpkg/berry/master/plugins.yml";async function bu(r){let e=await ir.get(H3e,{configuration:r});return Si(e.toString())}var hm=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins);return(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{let n=await bu(e);for(let s of Object.entries(n)){let[l,o]=s,a=o,{experimental:c}=a,u=Or(a,["experimental"]);let g=l;c&&(g+=" [experimental]"),i.reportJson(N({name:l,experimental:c},u)),i.reportInfo(null,g)}})).exitCode()}};hm.paths=[["plugin","list"]],hm.usage=Re.Usage({category:"Plugin-related commands",description:"list the available official plugins",details:"\n This command prints the plugins available directly from the Yarn repository. Only those plugins can be referenced by name in `yarn plugin import`.\n ",examples:[["List the official plugins","$0 plugin list"]]});var Foe=hm;var j3e=/^[0-9]+$/;function Loe(r){return j3e.test(r)?`pull/${r}/head`:r}var G3e=({repository:r,branch:e},t)=>[["git","init",H.fromPortablePath(t)],["git","remote","add","origin",r],["git","fetch","origin","--depth=1",Loe(e)],["git","reset","--hard","FETCH_HEAD"]],Y3e=({branch:r})=>[["git","fetch","origin","--depth=1",Loe(r),"--force"],["git","reset","--hard","FETCH_HEAD"],["git","clean","-dfx"]],q3e=({plugins:r,noMinify:e},t)=>[["yarn","build:cli",...new Array().concat(...r.map(i=>["--plugin",k.resolve(t,i)])),...e?["--no-minify"]:[],"|"]],pm=class extends Le{constructor(){super(...arguments);this.installPath=J.String("--path",{description:"The path where the repository should be cloned to"});this.repository=J.String("--repository","https://github.com/yarnpkg/berry.git",{description:"The repository that should be cloned"});this.branch=J.String("--branch","master",{description:"The branch of the repository that should be cloned"});this.plugins=J.Array("--plugin",[],{description:"An array of additional plugins that should be included in the bundle"});this.noMinify=J.Boolean("--no-minify",!1,{description:"Build a bundle for development (debugging) - non-minified and non-mangled"});this.force=J.Boolean("-f,--force",!1,{description:"Always clone the repository instead of trying to fetch the latest commits"});this.skipPlugins=J.Boolean("--skip-plugins",!1,{description:"Skip updating the contrib plugins"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t}=await ze.find(e,this.context.cwd),i=typeof this.installPath!="undefined"?k.resolve(this.context.cwd,H.toPortablePath(this.installPath)):k.resolve(H.toPortablePath((0,Noe.tmpdir)()),"yarnpkg-sources",Dn.makeHash(this.repository).slice(0,6));return(await Je.start({configuration:e,stdout:this.context.stdout},async s=>{await vN(this,{configuration:e,report:s,target:i}),s.reportSeparator(),s.reportInfo(X.UNNAMED,"Building a fresh bundle"),s.reportSeparator(),await dm(q3e(this,i),{configuration:e,context:this.context,target:i}),s.reportSeparator();let o=k.resolve(i,"packages/yarnpkg-cli/bundles/yarn.js"),a=await K.readFilePromise(o);await QN(e,"sources",a,{report:s}),this.skipPlugins||await J3e(this,{project:t,report:s,target:i})})).exitCode()}};pm.paths=[["set","version","from","sources"]],pm.usage=Re.Usage({description:"build Yarn from master",details:` + This command will clone the Yarn repository into a temporary folder, then build it. The resulting bundle will then be copied into the local project. + + By default, it also updates all contrib plugins to the same commit the bundle is built from. This behavior can be disabled by using the \`--skip-plugins\` flag. + `,examples:[["Build Yarn from master","$0 set version from sources"]]});var Toe=pm;async function dm(r,{configuration:e,context:t,target:i}){for(let[n,...s]of r){let o=s[s.length-1]==="|";if(o&&s.pop(),o)await Nr.pipevp(n,s,{cwd:i,stdin:t.stdin,stdout:t.stdout,stderr:t.stderr,strict:!0});else{t.stdout.write(`${ae.pretty(e,` $ ${[n,...s].join(" ")}`,"grey")} +`);try{await Nr.execvp(n,s,{cwd:i,strict:!0})}catch(a){throw t.stdout.write(a.stdout||a.stack),a}}}}async function vN(r,{configuration:e,report:t,target:i}){let n=!1;if(!r.force&&K.existsSync(k.join(i,".git"))){t.reportInfo(X.UNNAMED,"Fetching the latest commits"),t.reportSeparator();try{await dm(Y3e(r),{configuration:e,context:r.context,target:i}),n=!0}catch(s){t.reportSeparator(),t.reportWarning(X.UNNAMED,"Repository update failed; we'll try to regenerate it")}}n||(t.reportInfo(X.UNNAMED,"Cloning the remote repository"),t.reportSeparator(),await K.removePromise(i),await K.mkdirPromise(i,{recursive:!0}),await dm(G3e(r,i),{configuration:e,context:r.context,target:i}))}async function J3e(r,{project:e,report:t,target:i}){let n=await bu(e.configuration),s=new Set(Object.keys(n));for(let o of e.configuration.plugins.keys())!s.has(o)||await SN(o,r,{project:e,report:t,target:i})}var Ooe=ge(ri()),Moe=ge(require("url")),Koe=ge(require("vm"));var Cm=class extends Le{constructor(){super(...arguments);this.name=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins);return(await Je.start({configuration:e,stdout:this.context.stdout},async i=>{let{project:n}=await ze.find(e,this.context.cwd),s,o;if(this.name.match(/^\.{0,2}[\\/]/)||H.isAbsolute(this.name)){let a=k.resolve(this.context.cwd,H.toPortablePath(this.name));i.reportInfo(X.UNNAMED,`Reading ${ae.pretty(e,a,ae.Type.PATH)}`),s=k.relative(n.cwd,a),o=await K.readFilePromise(a)}else{let a;if(this.name.match(/^https?:/)){try{new Moe.URL(this.name)}catch{throw new ct(X.INVALID_PLUGIN_REFERENCE,`Plugin specifier "${this.name}" is neither a plugin name nor a valid url`)}s=this.name,a=this.name}else{let l=P.parseLocator(this.name.replace(/^((@yarnpkg\/)?plugin-)?/,"@yarnpkg/plugin-"));if(l.reference!=="unknown"&&!Ooe.default.valid(l.reference))throw new ct(X.UNNAMED,"Official plugins only accept strict version references. Use an explicit URL if you wish to download them from another location.");let c=P.stringifyIdent(l),u=await bu(e);if(!Object.prototype.hasOwnProperty.call(u,c))throw new ct(X.PLUGIN_NAME_NOT_FOUND,`Couldn't find a plugin named "${c}" on the remote registry. Note that only the plugins referenced on our website (https://github.com/yarnpkg/berry/blob/master/plugins.yml) can be referenced by their name; any other plugin will have to be referenced through its public url (for example https://github.com/yarnpkg/berry/raw/master/packages/plugin-typescript/bin/%40yarnpkg/plugin-typescript.js).`);s=c,a=u[c].url,l.reference!=="unknown"?a=a.replace(/\/master\//,`/${c}/${l.reference}/`):Ur!==null&&(a=a.replace(/\/master\//,`/@yarnpkg/cli/${Ur}/`))}i.reportInfo(X.UNNAMED,`Downloading ${ae.pretty(e,a,"green")}`),o=await ir.get(a,{configuration:e})}await xN(s,o,{project:n,report:i})})).exitCode()}};Cm.paths=[["plugin","import"]],Cm.usage=Re.Usage({category:"Plugin-related commands",description:"download a plugin",details:` + This command downloads the specified plugin from its remote location and updates the configuration to reference it in further CLI invocations. + + Three types of plugin references are accepted: + + - If the plugin is stored within the Yarn repository, it can be referenced by name. + - Third-party plugins can be referenced directly through their public urls. + - Local plugins can be referenced by their path on the disk. + + Plugins cannot be downloaded from the npm registry, and aren't allowed to have dependencies (they need to be bundled into a single file, possibly thanks to the \`@yarnpkg/builder\` package). + `,examples:[['Download and activate the "@yarnpkg/plugin-exec" plugin',"$0 plugin import @yarnpkg/plugin-exec"],['Download and activate the "@yarnpkg/plugin-exec" plugin (shorthand)',"$0 plugin import exec"],["Download and activate a community plugin","$0 plugin import https://example.org/path/to/plugin.js"],["Activate a local plugin","$0 plugin import ./path/to/plugin.js"]]});var Uoe=Cm;async function xN(r,e,{project:t,report:i}){let{configuration:n}=t,s={},o={exports:s};(0,Koe.runInNewContext)(e.toString(),{module:o,exports:s});let a=o.exports.name,l=`.yarn/plugins/${a}.cjs`,c=k.resolve(t.cwd,l);i.reportInfo(X.UNNAMED,`Saving the new plugin in ${ae.pretty(n,l,"magenta")}`),await K.mkdirPromise(k.dirname(c),{recursive:!0}),await K.writeFilePromise(c,e);let u={path:l,spec:r};await ye.updateConfiguration(t.cwd,g=>{let f=[],h=!1;for(let p of g.plugins||[]){let m=typeof p!="string"?p.path:p,y=k.resolve(t.cwd,H.toPortablePath(m)),{name:b}=Se.dynamicRequire(y);b!==a?f.push(p):(f.push(u),h=!0)}return h||f.push(u),te(N({},g),{plugins:f})})}var W3e=({pluginName:r,noMinify:e},t)=>[["yarn",`build:${r}`,...e?["--no-minify"]:[],"|"]],mm=class extends Le{constructor(){super(...arguments);this.installPath=J.String("--path",{description:"The path where the repository should be cloned to"});this.repository=J.String("--repository","https://github.com/yarnpkg/berry.git",{description:"The repository that should be cloned"});this.branch=J.String("--branch","master",{description:"The branch of the repository that should be cloned"});this.noMinify=J.Boolean("--no-minify",!1,{description:"Build a plugin for development (debugging) - non-minified and non-mangled"});this.force=J.Boolean("-f,--force",!1,{description:"Always clone the repository instead of trying to fetch the latest commits"});this.name=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=typeof this.installPath!="undefined"?k.resolve(this.context.cwd,H.toPortablePath(this.installPath)):k.resolve(H.toPortablePath((0,Hoe.tmpdir)()),"yarnpkg-sources",Dn.makeHash(this.repository).slice(0,6));return(await Je.start({configuration:e,stdout:this.context.stdout},async n=>{let{project:s}=await ze.find(e,this.context.cwd),o=P.parseIdent(this.name.replace(/^((@yarnpkg\/)?plugin-)?/,"@yarnpkg/plugin-")),a=P.stringifyIdent(o),l=await bu(e);if(!Object.prototype.hasOwnProperty.call(l,a))throw new ct(X.PLUGIN_NAME_NOT_FOUND,`Couldn't find a plugin named "${a}" on the remote registry. Note that only the plugins referenced on our website (https://github.com/yarnpkg/berry/blob/master/plugins.yml) can be built and imported from sources.`);let c=a;await vN(this,{configuration:e,report:n,target:t}),await SN(c,this,{project:s,report:n,target:t})})).exitCode()}};mm.paths=[["plugin","import","from","sources"]],mm.usage=Re.Usage({category:"Plugin-related commands",description:"build a plugin from sources",details:` + This command clones the Yarn repository into a temporary folder, builds the specified contrib plugin and updates the configuration to reference it in further CLI invocations. + + The plugins can be referenced by their short name if sourced from the official Yarn repository. + `,examples:[['Build and activate the "@yarnpkg/plugin-exec" plugin',"$0 plugin import from sources @yarnpkg/plugin-exec"],['Build and activate the "@yarnpkg/plugin-exec" plugin (shorthand)',"$0 plugin import from sources exec"]]});var joe=mm;async function SN(r,{context:e,noMinify:t},{project:i,report:n,target:s}){let o=r.replace(/@yarnpkg\//,""),{configuration:a}=i;n.reportSeparator(),n.reportInfo(X.UNNAMED,`Building a fresh ${o}`),n.reportSeparator(),await dm(W3e({pluginName:o,noMinify:t},s),{configuration:a,context:e,target:s}),n.reportSeparator();let l=k.resolve(s,`packages/${o}/bundles/${r}.js`),c=await K.readFilePromise(l);await xN(r,c,{project:i,report:n})}var Em=class extends Le{constructor(){super(...arguments);this.name=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t}=await ze.find(e,this.context.cwd);return(await Je.start({configuration:e,stdout:this.context.stdout},async n=>{let s=this.name,o=P.parseIdent(s);if(!e.plugins.has(s))throw new Pe(`${P.prettyIdent(e,o)} isn't referenced by the current configuration`);let a=`.yarn/plugins/${s}.cjs`,l=k.resolve(t.cwd,a);K.existsSync(l)&&(n.reportInfo(X.UNNAMED,`Removing ${ae.pretty(e,a,ae.Type.PATH)}...`),await K.removePromise(l)),n.reportInfo(X.UNNAMED,"Updating the configuration..."),await ye.updateConfiguration(t.cwd,c=>{if(!Array.isArray(c.plugins))return c;let u=c.plugins.filter(g=>g.path!==a);return c.plugins.length===u.length?c:te(N({},c),{plugins:u})})})).exitCode()}};Em.paths=[["plugin","remove"]],Em.usage=Re.Usage({category:"Plugin-related commands",description:"remove a plugin",details:` + This command deletes the specified plugin from the .yarn/plugins folder and removes it from the configuration. + + **Note:** The plugins have to be referenced by their name property, which can be obtained using the \`yarn plugin runtime\` command. Shorthands are not allowed. + `,examples:[["Remove a plugin imported from the Yarn repository","$0 plugin remove @yarnpkg/plugin-typescript"],["Remove a plugin imported from a local file","$0 plugin remove my-local-plugin"]]});var Goe=Em;var Im=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins);return(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout},async i=>{for(let n of e.plugins.keys()){let s=this.context.plugins.plugins.has(n),o=n;s&&(o+=" [builtin]"),i.reportJson({name:n,builtin:s}),i.reportInfo(null,`${o}`)}})).exitCode()}};Im.paths=[["plugin","runtime"]],Im.usage=Re.Usage({category:"Plugin-related commands",description:"list the active plugins",details:` + This command prints the currently active plugins. Will be displayed both builtin plugins and external plugins. + `,examples:[["List the currently active plugins","$0 plugin runtime"]]});var Yoe=Im;var ym=class extends Le{constructor(){super(...arguments);this.idents=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);let s=new Set;for(let a of this.idents)s.add(P.parseIdent(a).identHash);if(await t.restoreInstallState({restoreResolutions:!1}),await t.resolveEverything({cache:n,report:new di}),s.size>0)for(let a of t.storedPackages.values())s.has(a.identHash)&&t.storedBuildState.delete(a.locatorHash);else t.storedBuildState.clear();return(await Je.start({configuration:e,stdout:this.context.stdout,includeLogs:!this.context.quiet},async a=>{await t.install({cache:n,report:a})})).exitCode()}};ym.paths=[["rebuild"]],ym.usage=Re.Usage({description:"rebuild the project's native packages",details:` + This command will automatically cause Yarn to forget about previous compilations of the given packages and to run them again. + + Note that while Yarn forgets the compilation, the previous artifacts aren't erased from the filesystem and may affect the next builds (in good or bad). To avoid this, you may remove the .yarn/unplugged folder, or any other relevant location where packages might have been stored (Yarn may offer a way to do that automatically in the future). + + By default all packages will be rebuilt, but you can filter the list by specifying the names of the packages you want to clear from memory. + `,examples:[["Rebuild all packages","$0 rebuild"],["Rebuild fsevents only","$0 rebuild fsevents"]]});var qoe=ym;var kN=ge(is());ys();var wm=class extends Le{constructor(){super(...arguments);this.all=J.Boolean("-A,--all",!1,{description:"Apply the operation to all workspaces from the current project"});this.mode=J.String("--mode",{description:"Change what artifacts installs generate",validator:nn(Ci)});this.patterns=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState({restoreResolutions:!1});let s=this.all?t.workspaces:[i],o=[Hr.REGULAR,Hr.DEVELOPMENT,Hr.PEER],a=[],l=!1,c=[];for(let h of this.patterns){let p=!1,m=P.parseIdent(h);for(let y of s){let b=[...y.manifest.peerDependenciesMeta.keys()];for(let v of(0,kN.default)(b,h))y.manifest.peerDependenciesMeta.delete(v),l=!0,p=!0;for(let v of o){let x=y.manifest.getForScope(v),T=[...x.values()].map(q=>P.stringifyIdent(q));for(let q of(0,kN.default)(T,P.stringifyIdent(m))){let{identHash:Y}=P.parseIdent(q),$=x.get(Y);if(typeof $=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");y.manifest[v].delete(Y),c.push([y,v,$]),l=!0,p=!0}}}p||a.push(h)}let u=a.length>1?"Patterns":"Pattern",g=a.length>1?"don't":"doesn't",f=this.all?"any":"this";if(a.length>0)throw new Pe(`${u} ${ae.prettyList(e,a,Ri.CODE)} ${g} match any packages referenced by ${f} workspace`);return l?(await e.triggerMultipleHooks(p=>p.afterWorkspaceDependencyRemoval,c),(await Je.start({configuration:e,stdout:this.context.stdout},async p=>{await t.install({cache:n,report:p,mode:this.mode})})).exitCode()):0}};wm.paths=[["remove"]],wm.usage=Re.Usage({description:"remove dependencies from the project",details:` + This command will remove the packages matching the specified patterns from the current workspace. + + If the \`--mode=\` option is set, Yarn will change which artifacts are generated. The modes currently supported are: + + - \`skip-build\` will not run the build scripts at all. Note that this is different from setting \`enableScripts\` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run. + + - \`update-lockfile\` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost. + + This command accepts glob patterns as arguments (if valid Idents and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them. + `,examples:[["Remove a dependency from the current project","$0 remove lodash"],["Remove a dependency from all workspaces at once","$0 remove lodash --all"],["Remove all dependencies starting with `eslint-`","$0 remove 'eslint-*'"],["Remove all dependencies with the `@babel` scope","$0 remove '@babel/*'"],["Remove all dependencies matching `react-dom` or `react-helmet`","$0 remove 'react-{dom,helmet}'"]]});var Joe=wm;var Woe=ge(require("util")),V0=class extends Le{async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);return(await Je.start({configuration:e,stdout:this.context.stdout},async s=>{let o=i.manifest.scripts,a=Se.sortMap(o.keys(),u=>u),l={breakLength:Infinity,colors:e.get("enableColors"),maxArrayLength:2},c=a.reduce((u,g)=>Math.max(u,g.length),0);for(let[u,g]of o.entries())s.reportInfo(null,`${u.padEnd(c," ")} ${(0,Woe.inspect)(g,l)}`)})).exitCode()}};V0.paths=[["run"]];var zoe=V0;var Bm=class extends Le{constructor(){super(...arguments);this.inspect=J.String("--inspect",!1,{tolerateBoolean:!0,description:"Forwarded to the underlying Node process when executing a binary"});this.inspectBrk=J.String("--inspect-brk",!1,{tolerateBoolean:!0,description:"Forwarded to the underlying Node process when executing a binary"});this.topLevel=J.Boolean("-T,--top-level",!1,{description:"Check the root workspace for scripts and/or binaries instead of the current one"});this.binariesOnly=J.Boolean("-B,--binaries-only",!1,{description:"Ignore any user defined scripts and only check for binaries"});this.silent=J.Boolean("--silent",{hidden:!0});this.scriptName=J.String();this.args=J.Proxy()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i,locator:n}=await ze.find(e,this.context.cwd);await t.restoreInstallState();let s=this.topLevel?t.topLevelWorkspace.anchoredLocator:n;if(!this.binariesOnly&&await Zt.hasPackageScript(s,this.scriptName,{project:t}))return await Zt.executePackageScript(s,this.scriptName,this.args,{project:t,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr});let o=await Zt.getPackageAccessibleBinaries(s,{project:t});if(o.get(this.scriptName)){let l=[];return this.inspect&&(typeof this.inspect=="string"?l.push(`--inspect=${this.inspect}`):l.push("--inspect")),this.inspectBrk&&(typeof this.inspectBrk=="string"?l.push(`--inspect-brk=${this.inspectBrk}`):l.push("--inspect-brk")),await Zt.executePackageAccessibleBinary(s,this.scriptName,this.args,{cwd:this.context.cwd,project:t,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,nodeArgs:l,packageAccessibleBinaries:o})}if(!this.topLevel&&!this.binariesOnly&&i&&this.scriptName.includes(":")){let c=(await Promise.all(t.workspaces.map(async u=>u.manifest.scripts.has(this.scriptName)?u:null))).filter(u=>u!==null);if(c.length===1)return await Zt.executeWorkspaceScript(c[0],this.scriptName,this.args,{stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})}if(this.topLevel)throw this.scriptName==="node-gyp"?new Pe(`Couldn't find a script name "${this.scriptName}" in the top-level (used by ${P.prettyLocator(e,n)}). This typically happens because some package depends on "node-gyp" to build itself, but didn't list it in their dependencies. To fix that, please run "yarn add node-gyp" into your top-level workspace. You also can open an issue on the repository of the specified package to suggest them to use an optional peer dependency.`):new Pe(`Couldn't find a script name "${this.scriptName}" in the top-level (used by ${P.prettyLocator(e,n)}).`);{if(this.scriptName==="global")throw new Pe("The 'yarn global' commands have been removed in 2.x - consider using 'yarn dlx' or a third-party plugin instead");let l=[this.scriptName].concat(this.args);for(let[c,u]of Lf)for(let g of u)if(l.length>=g.length&&JSON.stringify(l.slice(0,g.length))===JSON.stringify(g))throw new Pe(`Couldn't find a script named "${this.scriptName}", but a matching command can be found in the ${c} plugin. You can install it with "yarn plugin import ${c}".`);throw new Pe(`Couldn't find a script named "${this.scriptName}".`)}}};Bm.paths=[["run"]],Bm.usage=Re.Usage({description:"run a script defined in the package.json",details:` + This command will run a tool. The exact tool that will be executed will depend on the current state of your workspace: + + - If the \`scripts\` field from your local package.json contains a matching script name, its definition will get executed. + + - Otherwise, if one of the local workspace's dependencies exposes a binary with a matching name, this binary will get executed. + + - Otherwise, if the specified name contains a colon character and if one of the workspaces in the project contains exactly one script with a matching name, then this script will get executed. + + Whatever happens, the cwd of the spawned process will be the workspace that declares the script (which makes it possible to call commands cross-workspaces using the third syntax). + `,examples:[["Run the tests from the local workspace","$0 run test"],['Same thing, but without the "run" keyword',"$0 test"],["Inspect Webpack while running","$0 run --inspect-brk webpack"]]});var _oe=Bm;var bm=class extends Le{constructor(){super(...arguments);this.save=J.Boolean("-s,--save",!1,{description:"Persist the resolution inside the top-level manifest"});this.descriptor=J.String();this.resolution=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(await t.restoreInstallState({restoreResolutions:!1}),!i)throw new ht(t.cwd,this.context.cwd);let s=P.parseDescriptor(this.descriptor,!0),o=P.makeDescriptor(s,this.resolution);return t.storedDescriptors.set(s.descriptorHash,s),t.storedDescriptors.set(o.descriptorHash,o),t.resolutionAliases.set(s.descriptorHash,o.descriptorHash),(await Je.start({configuration:e,stdout:this.context.stdout},async l=>{await t.install({cache:n,report:l})})).exitCode()}};bm.paths=[["set","resolution"]],bm.usage=Re.Usage({description:"enforce a package resolution",details:'\n This command updates the resolution table so that `descriptor` is resolved by `resolution`.\n\n Note that by default this command only affect the current resolution table - meaning that this "manual override" will disappear if you remove the lockfile, or if the package disappear from the table. If you wish to make the enforced resolution persist whatever happens, add the `-s,--save` flag which will also edit the `resolutions` field from your top-level manifest.\n\n Note that no attempt is made at validating that `resolution` is a valid resolution entry for `descriptor`.\n ',examples:[["Force all instances of lodash@npm:^1.2.3 to resolve to 1.5.0","$0 set resolution lodash@npm:^1.2.3 1.5.0"]]});var Voe=bm;var Xoe=ge(is()),Qm=class extends Le{constructor(){super(...arguments);this.all=J.Boolean("-A,--all",!1,{description:"Unlink all workspaces belonging to the target project from the current one"});this.leadingArguments=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);let s=t.topLevelWorkspace,o=new Set;if(this.leadingArguments.length===0&&this.all)for(let{pattern:l,reference:c}of s.manifest.resolutions)c.startsWith("portal:")&&o.add(l.descriptor.fullName);if(this.leadingArguments.length>0)for(let l of this.leadingArguments){let c=k.resolve(this.context.cwd,H.toPortablePath(l));if(Se.isPathLike(l)){let u=await ye.find(c,this.context.plugins,{useRc:!1,strict:!1}),{project:g,workspace:f}=await ze.find(u,c);if(!f)throw new ht(g.cwd,c);if(this.all){for(let h of g.workspaces)h.manifest.name&&o.add(P.stringifyIdent(h.locator));if(o.size===0)throw new Pe("No workspace found to be unlinked in the target project")}else{if(!f.manifest.name)throw new Pe("The target workspace doesn't have a name and thus cannot be unlinked");o.add(P.stringifyIdent(f.locator))}}else{let u=[...s.manifest.resolutions.map(({pattern:g})=>g.descriptor.fullName)];for(let g of(0,Xoe.default)(u,l))o.add(g)}}return s.manifest.resolutions=s.manifest.resolutions.filter(({pattern:l})=>!o.has(l.descriptor.fullName)),(await Je.start({configuration:e,stdout:this.context.stdout},async l=>{await t.install({cache:n,report:l})})).exitCode()}};Qm.paths=[["unlink"]],Qm.usage=Re.Usage({description:"disconnect the local project from another one",details:` + This command will remove any resolutions in the project-level manifest that would have been added via a yarn link with similar arguments. + `,examples:[["Unregister a remote workspace in the current project","$0 unlink ~/ts-loader"],["Unregister all workspaces from a remote project in the current project","$0 unlink ~/jest --all"],["Unregister all previously linked workspaces","$0 unlink --all"],["Unregister all workspaces matching a glob","$0 unlink '@babel/*' 'pkg-{a,b}'"]]});var Zoe=Qm;var $oe=ge(WC()),PN=ge(is());ys();var th=class extends Le{constructor(){super(...arguments);this.interactive=J.Boolean("-i,--interactive",{description:"Offer various choices, depending on the detected upgrade paths"});this.exact=J.Boolean("-E,--exact",!1,{description:"Don't use any semver modifier on the resolved range"});this.tilde=J.Boolean("-T,--tilde",!1,{description:"Use the `~` semver modifier on the resolved range"});this.caret=J.Boolean("-C,--caret",!1,{description:"Use the `^` semver modifier on the resolved range"});this.recursive=J.Boolean("-R,--recursive",!1,{description:"Resolve again ALL resolutions for those packages"});this.mode=J.String("--mode",{description:"Change what artifacts installs generate",validator:nn(Ci)});this.patterns=J.Rest()}async execute(){return this.recursive?await this.executeUpRecursive():await this.executeUpClassic()}async executeUpRecursive(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState({restoreResolutions:!1});let s=[...t.storedDescriptors.values()],o=s.map(u=>P.stringifyIdent(u)),a=new Set;for(let u of this.patterns){if(P.parseDescriptor(u).range!=="unknown")throw new Pe("Ranges aren't allowed when using --recursive");for(let g of(0,PN.default)(o,u)){let f=P.parseIdent(g);a.add(f.identHash)}}let l=s.filter(u=>a.has(u.identHash));for(let u of l)t.storedDescriptors.delete(u.descriptorHash),t.storedResolutions.delete(u.descriptorHash);return(await Je.start({configuration:e,stdout:this.context.stdout},async u=>{await t.install({cache:n,report:u})})).exitCode()}async executeUpClassic(){var m;let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState({restoreResolutions:!1});let s=(m=this.interactive)!=null?m:e.get("preferInteractive"),o=zC(this,t),a=s?[Vr.KEEP,Vr.REUSE,Vr.PROJECT,Vr.LATEST]:[Vr.PROJECT,Vr.LATEST],l=[],c=[];for(let y of this.patterns){let b=!1,v=P.parseDescriptor(y);for(let x of t.workspaces)for(let T of[Hr.REGULAR,Hr.DEVELOPMENT]){let Y=[...x.manifest.getForScope(T).values()].map($=>P.stringifyIdent($));for(let $ of(0,PN.default)(Y,P.stringifyIdent(v))){let _=P.parseIdent($),ne=x.manifest[T].get(_.identHash);if(typeof ne=="undefined")throw new Error("Assertion failed: Expected the descriptor to be registered");let ee=P.makeDescriptor(_,v.range);l.push(Promise.resolve().then(async()=>[x,T,ne,await _C(ee,{project:t,workspace:x,cache:n,target:T,modifier:o,strategies:a})])),b=!0}}b||c.push(y)}if(c.length>1)throw new Pe(`Patterns ${ae.prettyList(e,c,Ri.CODE)} don't match any packages referenced by any workspace`);if(c.length>0)throw new Pe(`Pattern ${ae.prettyList(e,c,Ri.CODE)} doesn't match any packages referenced by any workspace`);let u=await Promise.all(l),g=await pA.start({configuration:e,stdout:this.context.stdout,suggestInstall:!1},async y=>{for(let[,,b,{suggestions:v,rejections:x}]of u){let T=v.filter(q=>q.descriptor!==null);if(T.length===0){let[q]=x;if(typeof q=="undefined")throw new Error("Assertion failed: Expected an error to have been set");let Y=this.cli.error(q);t.configuration.get("enableNetwork")?y.reportError(X.CANT_SUGGEST_RESOLUTIONS,`${P.prettyDescriptor(e,b)} can't be resolved to a satisfying range + +${Y}`):y.reportError(X.CANT_SUGGEST_RESOLUTIONS,`${P.prettyDescriptor(e,b)} can't be resolved to a satisfying range (note: network resolution has been disabled) + +${Y}`)}else T.length>1&&!s&&y.reportError(X.CANT_SUGGEST_RESOLUTIONS,`${P.prettyDescriptor(e,b)} has multiple possible upgrade strategies; use -i to disambiguate manually`)}});if(g.hasErrors())return g.exitCode();let f=!1,h=[];for(let[y,b,,{suggestions:v}]of u){let x,T=v.filter(_=>_.descriptor!==null),q=T[0].descriptor,Y=T.every(_=>P.areDescriptorsEqual(_.descriptor,q));T.length===1||Y?x=q:(f=!0,{answer:x}=await(0,$oe.prompt)({type:"select",name:"answer",message:`Which range to you want to use in ${P.prettyWorkspace(e,y)} \u276F ${b}?`,choices:v.map(({descriptor:_,name:ne,reason:ee})=>_?{name:ne,hint:ee,descriptor:_}:{name:ne,hint:ee,disabled:!0}),onCancel:()=>process.exit(130),result(_){return this.find(_,"descriptor")},stdin:this.context.stdin,stdout:this.context.stdout}));let $=y.manifest[b].get(x.identHash);if(typeof $=="undefined")throw new Error("Assertion failed: This descriptor should have a matching entry");if($.descriptorHash!==x.descriptorHash)y.manifest[b].set(x.identHash,x),h.push([y,b,$,x]);else{let _=e.makeResolver(),ne={project:t,resolver:_},ee=_.bindDescriptor($,y.anchoredLocator,ne);t.forgetResolution(ee)}}return await e.triggerMultipleHooks(y=>y.afterWorkspaceDependencyReplacement,h),f&&this.context.stdout.write(` +`),(await Je.start({configuration:e,stdout:this.context.stdout},async y=>{await t.install({cache:n,report:y,mode:this.mode})})).exitCode()}};th.paths=[["up"]],th.usage=Re.Usage({description:"upgrade dependencies across the project",details:"\n This command upgrades the packages matching the list of specified patterns to their latest available version across the whole project (regardless of whether they're part of `dependencies` or `devDependencies` - `peerDependencies` won't be affected). This is a project-wide command: all workspaces will be upgraded in the process.\n\n If `-R,--recursive` is set the command will change behavior and no other switch will be allowed. When operating under this mode `yarn up` will force all ranges matching the selected packages to be resolved again (often to the highest available versions) before being stored in the lockfile. It however won't touch your manifests anymore, so depending on your needs you might want to run both `yarn up` and `yarn up -R` to cover all bases.\n\n If `-i,--interactive` is set (or if the `preferInteractive` settings is toggled on) the command will offer various choices, depending on the detected upgrade paths. Some upgrades require this flag in order to resolve ambiguities.\n\n The, `-C,--caret`, `-E,--exact` and `-T,--tilde` options have the same meaning as in the `add` command (they change the modifier used when the range is missing or a tag, and are ignored when the range is explicitly set).\n\n If the `--mode=` option is set, Yarn will change which artifacts are generated. The modes currently supported are:\n\n - `skip-build` will not run the build scripts at all. Note that this is different from setting `enableScripts` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run.\n\n - `update-lockfile` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost.\n\n Generally you can see `yarn up` as a counterpart to what was `yarn upgrade --latest` in Yarn 1 (ie it ignores the ranges previously listed in your manifests), but unlike `yarn upgrade` which only upgraded dependencies in the current workspace, `yarn up` will upgrade all workspaces at the same time.\n\n This command accepts glob patterns as arguments (if valid Descriptors and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.\n\n **Note:** The ranges have to be static, only the package scopes and names can contain glob patterns.\n ",examples:[["Upgrade all instances of lodash to the latest release","$0 up lodash"],["Upgrade all instances of lodash to the latest release, but ask confirmation for each","$0 up lodash -i"],["Upgrade all instances of lodash to 1.2.3","$0 up lodash@1.2.3"],["Upgrade all instances of packages with the `@babel` scope to the latest release","$0 up '@babel/*'"],["Upgrade all instances of packages containing the word `jest` to the latest release","$0 up '*jest*'"],["Upgrade all instances of packages with the `@babel` scope to 7.0.0","$0 up '@babel/*@7.0.0'"]]}),th.schema=[eS("recursive",Bc.Forbids,["interactive","exact","tilde","caret"],{ignore:[void 0,!1]})];var eae=th;var Sm=class extends Le{constructor(){super(...arguments);this.recursive=J.Boolean("-R,--recursive",!1,{description:"List, for each workspace, what are all the paths that lead to the dependency"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.peers=J.Boolean("--peers",!1,{description:"Also print the peer dependencies that match the specified name"});this.package=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState();let n=P.parseIdent(this.package).identHash,s=this.recursive?_3e(t,n,{configuration:e,peers:this.peers}):z3e(t,n,{configuration:e,peers:this.peers});ls.emitTree(s,{configuration:e,stdout:this.context.stdout,json:this.json,separators:1})}};Sm.paths=[["why"]],Sm.usage=Re.Usage({description:"display the reason why a package is needed",details:` + This command prints the exact reasons why a package appears in the dependency tree. + + If \`-R,--recursive\` is set, the listing will go in depth and will list, for each workspaces, what are all the paths that lead to the dependency. Note that the display is somewhat optimized in that it will not print the package listing twice for a single package, so if you see a leaf named "Foo" when looking for "Bar", it means that "Foo" already got printed higher in the tree. + `,examples:[["Explain why lodash is used in your project","$0 why lodash"]]});var tae=Sm;function z3e(r,e,{configuration:t,peers:i}){let n=Se.sortMap(r.storedPackages.values(),a=>P.stringifyLocator(a)),s={},o={children:s};for(let a of n){let l={},c=null;for(let u of a.dependencies.values()){if(!i&&a.peerDependencies.has(u.identHash))continue;let g=r.storedResolutions.get(u.descriptorHash);if(!g)throw new Error("Assertion failed: The resolution should have been registered");let f=r.storedPackages.get(g);if(!f)throw new Error("Assertion failed: The package should have been registered");if(f.identHash!==e)continue;if(c===null){let p=P.stringifyLocator(a);s[p]={value:[a,ae.Type.LOCATOR],children:l}}let h=P.stringifyLocator(f);l[h]={value:[{descriptor:u,locator:f},ae.Type.DEPENDENT]}}}return o}function _3e(r,e,{configuration:t,peers:i}){let n=Se.sortMap(r.workspaces,f=>P.stringifyLocator(f.anchoredLocator)),s=new Set,o=new Set,a=f=>{if(s.has(f.locatorHash))return o.has(f.locatorHash);if(s.add(f.locatorHash),f.identHash===e)return o.add(f.locatorHash),!0;let h=!1;f.identHash===e&&(h=!0);for(let p of f.dependencies.values()){if(!i&&f.peerDependencies.has(p.identHash))continue;let m=r.storedResolutions.get(p.descriptorHash);if(!m)throw new Error("Assertion failed: The resolution should have been registered");let y=r.storedPackages.get(m);if(!y)throw new Error("Assertion failed: The package should have been registered");a(y)&&(h=!0)}return h&&o.add(f.locatorHash),h};for(let f of n){let h=r.storedPackages.get(f.anchoredLocator.locatorHash);if(!h)throw new Error("Assertion failed: The package should have been registered");a(h)}let l=new Set,c={},u={children:c},g=(f,h,p)=>{if(!o.has(f.locatorHash))return;let m=p!==null?ae.tuple(ae.Type.DEPENDENT,{locator:f,descriptor:p}):ae.tuple(ae.Type.LOCATOR,f),y={},b={value:m,children:y},v=P.stringifyLocator(f);if(h[v]=b,!l.has(f.locatorHash)&&(l.add(f.locatorHash),!(p!==null&&r.tryWorkspaceByLocator(f))))for(let x of f.dependencies.values()){if(!i&&f.peerDependencies.has(x.identHash))continue;let T=r.storedResolutions.get(x.descriptorHash);if(!T)throw new Error("Assertion failed: The resolution should have been registered");let q=r.storedPackages.get(T);if(!q)throw new Error("Assertion failed: The package should have been registered");g(q,y,x)}};for(let f of n){let h=r.storedPackages.get(f.anchoredLocator.locatorHash);if(!h)throw new Error("Assertion failed: The package should have been registered");g(h,c,null)}return u}var jN={};ft(jN,{default:()=>dWe,gitUtils:()=>Qu});var Qu={};ft(Qu,{TreeishProtocols:()=>On,clone:()=>KN,fetchBase:()=>wae,fetchChangedFiles:()=>Bae,fetchChangedWorkspaces:()=>hWe,fetchRoot:()=>yae,isGitUrl:()=>ih,lsRemote:()=>Iae,normalizeLocator:()=>TN,normalizeRepoUrl:()=>vm,resolveUrl:()=>MN,splitRepoUrl:()=>xm});var NN=ge(dae()),Cae=ge(Zw()),rh=ge(require("querystring")),LN=ge(ri()),mae=ge(require("url"));function Eae(){return te(N({},process.env),{GIT_SSH_COMMAND:process.env.GIT_SSH_COMMAND||`${process.env.GIT_SSH||"ssh"} -o BatchMode=yes`})}var fWe=[/^ssh:/,/^git(?:\+[^:]+)?:/,/^(?:git\+)?https?:[^#]+\/[^#]+(?:\.git)(?:#.*)?$/,/^git@[^#]+\/[^#]+\.git(?:#.*)?$/,/^(?:github:|https:\/\/github\.com\/)?(?!\.{1,2}\/)([a-zA-Z._0-9-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z._0-9-]+?)(?:\.git)?(?:#.*)?$/,/^https:\/\/github\.com\/(?!\.{1,2}\/)([a-zA-Z0-9._-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z0-9._-]+?)\/tarball\/(.+)?$/],On;(function(n){n.Commit="commit",n.Head="head",n.Tag="tag",n.Semver="semver"})(On||(On={}));function ih(r){return r?fWe.some(e=>!!r.match(e)):!1}function xm(r){r=vm(r);let e=r.indexOf("#");if(e===-1)return{repo:r,treeish:{protocol:On.Head,request:"HEAD"},extra:{}};let t=r.slice(0,e),i=r.slice(e+1);if(i.match(/^[a-z]+=/)){let n=rh.default.parse(i);for(let[l,c]of Object.entries(n))if(typeof c!="string")throw new Error(`Assertion failed: The ${l} parameter must be a literal string`);let s=Object.values(On).find(l=>Object.prototype.hasOwnProperty.call(n,l)),o,a;typeof s!="undefined"?(o=s,a=n[s]):(o=On.Head,a="HEAD");for(let l of Object.values(On))delete n[l];return{repo:t,treeish:{protocol:o,request:a},extra:n}}else{let n=i.indexOf(":"),s,o;return n===-1?(s=null,o=i):(s=i.slice(0,n),o=i.slice(n+1)),{repo:t,treeish:{protocol:s,request:o},extra:{}}}}function vm(r,{git:e=!1}={}){var t;if(r=r.replace(/^git\+https:/,"https:"),r=r.replace(/^(?:github:|https:\/\/github\.com\/)?(?!\.{1,2}\/)([a-zA-Z0-9._-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z0-9._-]+?)(?:\.git)?(#.*)?$/,"https://github.com/$1/$2.git$3"),r=r.replace(/^https:\/\/github\.com\/(?!\.{1,2}\/)([a-zA-Z0-9._-]+)\/(?!\.{1,2}(?:#|$))([a-zA-Z0-9._-]+?)\/tarball\/(.+)?$/,"https://github.com/$1/$2.git#$3"),e){r=r.replace(/^git\+([^:]+):/,"$1:");let i;try{i=mae.default.parse(r)}catch{i=null}i&&i.protocol==="ssh:"&&((t=i.path)==null?void 0:t.startsWith("/:"))&&(r=r.replace(/^ssh:\/\//,""))}return r}function TN(r){return P.makeLocator(r,vm(r.reference))}async function Iae(r,e){let t=vm(r,{git:!0});if(!ir.getNetworkSettings(`https://${(0,NN.default)(t).resource}`,{configuration:e}).enableNetwork)throw new Error(`Request to '${t}' has been blocked because of your configuration settings`);let n=await ON("listing refs",["ls-remote",t],{cwd:e.startingCwd,env:Eae()},{configuration:e,normalizedRepoUrl:t}),s=new Map,o=/^([a-f0-9]{40})\t([^\n]+)/gm,a;for(;(a=o.exec(n.stdout))!==null;)s.set(a[2],a[1]);return s}async function MN(r,e){let{repo:t,treeish:{protocol:i,request:n},extra:s}=xm(r),o=await Iae(t,e),a=(c,u)=>{switch(c){case On.Commit:{if(!u.match(/^[a-f0-9]{40}$/))throw new Error("Invalid commit hash");return rh.default.stringify(te(N({},s),{commit:u}))}case On.Head:{let g=o.get(u==="HEAD"?u:`refs/heads/${u}`);if(typeof g=="undefined")throw new Error(`Unknown head ("${u}")`);return rh.default.stringify(te(N({},s),{commit:g}))}case On.Tag:{let g=o.get(`refs/tags/${u}`);if(typeof g=="undefined")throw new Error(`Unknown tag ("${u}")`);return rh.default.stringify(te(N({},s),{commit:g}))}case On.Semver:{let g=Wt.validRange(u);if(!g)throw new Error(`Invalid range ("${u}")`);let f=new Map([...o.entries()].filter(([p])=>p.startsWith("refs/tags/")).map(([p,m])=>[LN.default.parse(p.slice(10)),m]).filter(p=>p[0]!==null)),h=LN.default.maxSatisfying([...f.keys()],g);if(h===null)throw new Error(`No matching range ("${u}")`);return rh.default.stringify(te(N({},s),{commit:f.get(h)}))}case null:{let g;if((g=l(On.Commit,u))!==null||(g=l(On.Tag,u))!==null||(g=l(On.Head,u))!==null)return g;throw u.match(/^[a-f0-9]+$/)?new Error(`Couldn't resolve "${u}" as either a commit, a tag, or a head - if a commit, use the 40-characters commit hash`):new Error(`Couldn't resolve "${u}" as either a commit, a tag, or a head`)}default:throw new Error(`Invalid Git resolution protocol ("${c}")`)}},l=(c,u)=>{try{return a(c,u)}catch(g){return null}};return`${t}#${a(i,n)}`}async function KN(r,e){return await e.getLimit("cloneConcurrency")(async()=>{let{repo:t,treeish:{protocol:i,request:n}}=xm(r);if(i!=="commit")throw new Error("Invalid treeish protocol when cloning");let s=vm(t,{git:!0});if(ir.getNetworkSettings(`https://${(0,NN.default)(s).resource}`,{configuration:e}).enableNetwork===!1)throw new Error(`Request to '${s}' has been blocked because of your configuration settings`);let o=await K.mktempPromise(),a={cwd:o,env:Eae()};return await ON("cloning the repository",["clone","-c core.autocrlf=false",s,H.fromPortablePath(o)],a,{configuration:e,normalizedRepoUrl:s}),await ON("switching branch",["checkout",`${n}`],a,{configuration:e,normalizedRepoUrl:s}),o})}async function yae(r){let e=null,t,i=r;do t=i,await K.existsPromise(k.join(t,".git"))&&(e=t),i=k.dirname(t);while(e===null&&i!==t);return e}async function wae(r,{baseRefs:e}){if(e.length===0)throw new Pe("Can't run this command with zero base refs specified.");let t=[];for(let a of e){let{code:l}=await Nr.execvp("git",["merge-base",a,"HEAD"],{cwd:r});l===0&&t.push(a)}if(t.length===0)throw new Pe(`No ancestor could be found between any of HEAD and ${e.join(", ")}`);let{stdout:i}=await Nr.execvp("git",["merge-base","HEAD",...t],{cwd:r,strict:!0}),n=i.trim(),{stdout:s}=await Nr.execvp("git",["show","--quiet","--pretty=format:%s",n],{cwd:r,strict:!0}),o=s.trim();return{hash:n,title:o}}async function Bae(r,{base:e,project:t}){let i=Se.buildIgnorePattern(t.configuration.get("changesetIgnorePatterns")),{stdout:n}=await Nr.execvp("git",["diff","--name-only",`${e}`],{cwd:r,strict:!0}),s=n.split(/\r\n|\r|\n/).filter(c=>c.length>0).map(c=>k.resolve(r,H.toPortablePath(c))),{stdout:o}=await Nr.execvp("git",["ls-files","--others","--exclude-standard"],{cwd:r,strict:!0}),a=o.split(/\r\n|\r|\n/).filter(c=>c.length>0).map(c=>k.resolve(r,H.toPortablePath(c))),l=[...new Set([...s,...a].sort())];return i?l.filter(c=>!k.relative(t.cwd,c).match(i)):l}async function hWe({ref:r,project:e}){if(e.configuration.projectCwd===null)throw new Pe("This command can only be run from within a Yarn project");let t=[k.resolve(e.cwd,e.configuration.get("cacheFolder")),k.resolve(e.cwd,e.configuration.get("installStatePath")),k.resolve(e.cwd,e.configuration.get("lockfileFilename")),k.resolve(e.cwd,e.configuration.get("virtualFolder"))];await e.configuration.triggerHook(o=>o.populateYarnPaths,e,o=>{o!=null&&t.push(o)});let i=await yae(e.configuration.projectCwd);if(i==null)throw new Pe("This command can only be run on Git repositories");let n=await wae(i,{baseRefs:typeof r=="string"?[r]:e.configuration.get("changesetBaseRefs")}),s=await Bae(i,{base:n.hash,project:e});return new Set(Se.mapAndFilter(s,o=>{let a=e.tryWorkspaceByFilePath(o);return a===null?Se.mapAndFilter.skip:t.some(l=>o.startsWith(l))?Se.mapAndFilter.skip:a}))}async function ON(r,e,t,{configuration:i,normalizedRepoUrl:n}){try{return await Nr.execvp("git",e,te(N({},t),{strict:!0}))}catch(s){if(!(s instanceof Nr.ExecError))throw s;let o=s.reportExtra,a=s.stderr.toString();throw new ct(X.EXCEPTION,`Failed ${r}`,l=>{l.reportError(X.EXCEPTION,` ${ae.prettyField(i,{label:"Repository URL",value:ae.tuple(ae.Type.URL,n)})}`);for(let c of a.matchAll(/^(.+?): (.*)$/gm)){let[,u,g]=c;u=u.toLowerCase();let f=u==="error"?"Error":`${(0,Cae.default)(u)} Error`;l.reportError(X.EXCEPTION,` ${ae.prettyField(i,{label:f,value:ae.tuple(ae.Type.NO_HINT,g)})}`)}o==null||o(l)})}}var UN=class{supports(e,t){return ih(e.reference)}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,n=TN(e),s=new Map(t.checksums);s.set(n.locatorHash,i);let o=te(N({},t),{checksums:s}),a=await this.downloadHosted(n,o);if(a!==null)return a;let[l,c,u]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the remote repository`),loader:()=>this.cloneFromRemote(n,o),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:l,releaseFs:c,prefixPath:P.getIdentVendorPath(e),checksum:u}}async downloadHosted(e,t){return t.project.configuration.reduceHook(i=>i.fetchHostedRepository,null,e,t)}async cloneFromRemote(e,t){let i=await KN(e.reference,t.project.configuration),n=xm(e.reference),s=k.join(i,"package.tgz");await Zt.prepareExternalProject(i,s,{configuration:t.project.configuration,report:t.report,workspace:n.extra.workspace,locator:e});let o=await K.readFilePromise(s);return await Se.releaseAfterUseAsync(async()=>await Bi.convertToZip(o,{compressionLevel:t.project.configuration.get("compressionLevel"),prefixPath:P.getIdentVendorPath(e),stripComponents:1}))}};var HN=class{supportsDescriptor(e,t){return ih(e.range)}supportsLocator(e,t){return ih(e.reference)}shouldPersistResolution(e,t){return!0}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){let n=await MN(e.range,i.project.configuration);return[P.makeLocator(e,n)]}async getSatisfying(e,t,i){return null}async resolve(e,t){if(!t.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await t.fetchOptions.fetcher.fetch(e,t.fetchOptions),n=await Se.releaseAfterUseAsync(async()=>await At.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return te(N({},e),{version:n.version||"0.0.0",languageName:n.languageName||t.project.configuration.get("defaultLanguageName"),linkType:Qt.HARD,conditions:n.getConditions(),dependencies:n.dependencies,peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin})}};var pWe={configuration:{changesetBaseRefs:{description:"The base git refs that the current HEAD is compared against when detecting changes. Supports git branches, tags, and commits.",type:Ie.STRING,isArray:!0,isNullable:!1,default:["master","origin/master","upstream/master","main","origin/main","upstream/main"]},changesetIgnorePatterns:{description:"Array of glob patterns; files matching them will be ignored when fetching the changed files",type:Ie.STRING,default:[],isArray:!0},cloneConcurrency:{description:"Maximal number of concurrent clones",type:Ie.NUMBER,default:2}},fetchers:[UN],resolvers:[HN]};var dWe=pWe;var km=class extends Le{constructor(){super(...arguments);this.since=J.String("--since",{description:"Only include workspaces that have been changed since the specified ref.",tolerateBoolean:!0});this.recursive=J.Boolean("-R,--recursive",!1,{description:"Find packages via dependencies/devDependencies instead of using the workspaces field"});this.verbose=J.Boolean("-v,--verbose",!1,{description:"Also return the cross-dependencies between workspaces"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t}=await ze.find(e,this.context.cwd);return(await Je.start({configuration:e,json:this.json,stdout:this.context.stdout},async n=>{let s=this.since?await Qu.fetchChangedWorkspaces({ref:this.since,project:t}):t.workspaces,o=new Set(s);if(this.recursive)for(let a of[...s].map(l=>l.getRecursiveWorkspaceDependents()))for(let l of a)o.add(l);for(let a of o){let{manifest:l}=a,c;if(this.verbose){let u=new Set,g=new Set;for(let f of At.hardDependencies)for(let[h,p]of l.getForScope(f)){let m=t.tryWorkspaceByDescriptor(p);m===null?t.workspacesByIdent.has(h)&&g.add(p):u.add(m)}c={workspaceDependencies:Array.from(u).map(f=>f.relativeCwd),mismatchedWorkspaceDependencies:Array.from(g).map(f=>P.stringifyDescriptor(f))}}n.reportInfo(null,`${a.relativeCwd}`),n.reportJson(N({location:a.relativeCwd,name:l.name?P.stringifyIdent(l.name):null},c))}})).exitCode()}};km.paths=[["workspaces","list"]],km.usage=Re.Usage({category:"Workspace-related commands",description:"list all available workspaces",details:"\n This command will print the list of all workspaces in the project.\n\n - If `--since` is set, Yarn will only list workspaces that have been modified since the specified ref. By default Yarn will use the refs specified by the `changesetBaseRefs` configuration option.\n\n - If `-R,--recursive` is set, Yarn will find workspaces to run the command on by recursively evaluating `dependencies` and `devDependencies` fields, instead of looking at the `workspaces` fields.\n\n - If both the `-v,--verbose` and `--json` options are set, Yarn will also return the cross-dependencies between each workspaces (useful when you wish to automatically generate Buck / Bazel rules).\n "});var bae=km;var Pm=class extends Le{constructor(){super(...arguments);this.workspaceName=J.String();this.commandName=J.String();this.args=J.Proxy()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);let n=t.workspaces,s=new Map(n.map(a=>{let l=P.convertToIdent(a.locator);return[P.stringifyIdent(l),a]})),o=s.get(this.workspaceName);if(o===void 0){let a=Array.from(s.keys()).sort();throw new Pe(`Workspace '${this.workspaceName}' not found. Did you mean any of the following: + - ${a.join(` + - `)}?`)}return this.cli.run([this.commandName,...this.args],{cwd:o.cwd})}};Pm.paths=[["workspace"]],Pm.usage=Re.Usage({category:"Workspace-related commands",description:"run a command within the specified workspace",details:` + This command will run a given sub-command on a single workspace. + `,examples:[["Add a package to a single workspace","yarn workspace components add -D react"],["Run build script on a single workspace","yarn workspace components run build"]]});var Qae=Pm;var CWe={configuration:{enableImmutableInstalls:{description:"If true (the default on CI), prevents the install command from modifying the lockfile",type:Ie.BOOLEAN,default:Sae.isCI},defaultSemverRangePrefix:{description:"The default save prefix: '^', '~' or ''",type:Ie.STRING,values:["^","~",""],default:pa.CARET}},commands:[Tne,Mne,$se,uoe,Voe,Toe,boe,bae,Coe,moe,Eoe,Ioe,Nne,Lne,goe,hoe,yoe,woe,Soe,xoe,koe,Doe,Zoe,Roe,joe,Uoe,Goe,Foe,Yoe,qoe,Joe,zoe,_oe,eae,tae,Qae]},mWe=CWe;var zN={};ft(zN,{default:()=>IWe});var Ge={optional:!0},YN=[["@tailwindcss/aspect-ratio@<0.2.1",{peerDependencies:{tailwindcss:"^2.0.2"}}],["@tailwindcss/line-clamp@<0.2.1",{peerDependencies:{tailwindcss:"^2.0.2"}}],["@fullhuman/postcss-purgecss@3.1.3 || 3.1.3-alpha.0",{peerDependencies:{postcss:"^8.0.0"}}],["@samverschueren/stream-to-observable@<0.3.1",{peerDependenciesMeta:{rxjs:Ge,zenObservable:Ge}}],["any-observable@<0.5.1",{peerDependenciesMeta:{rxjs:Ge,zenObservable:Ge}}],["@pm2/agent@<1.0.4",{dependencies:{debug:"*"}}],["debug@<4.2.0",{peerDependenciesMeta:{["supports-color"]:Ge}}],["got@<11",{dependencies:{["@types/responselike"]:"^1.0.0",["@types/keyv"]:"^3.1.1"}}],["cacheable-lookup@<4.1.2",{dependencies:{["@types/keyv"]:"^3.1.1"}}],["http-link-dataloader@*",{peerDependencies:{graphql:"^0.13.1 || ^14.0.0"}}],["typescript-language-server@*",{dependencies:{["vscode-jsonrpc"]:"^5.0.1",["vscode-languageserver-protocol"]:"^3.15.0"}}],["postcss-syntax@*",{peerDependenciesMeta:{["postcss-html"]:Ge,["postcss-jsx"]:Ge,["postcss-less"]:Ge,["postcss-markdown"]:Ge,["postcss-scss"]:Ge}}],["jss-plugin-rule-value-function@<=10.1.1",{dependencies:{["tiny-warning"]:"^1.0.2"}}],["ink-select-input@<4.1.0",{peerDependencies:{react:"^16.8.2"}}],["license-webpack-plugin@<2.3.18",{peerDependenciesMeta:{webpack:Ge}}],["snowpack@>=3.3.0",{dependencies:{["node-gyp"]:"^7.1.0"}}],["promise-inflight@*",{peerDependenciesMeta:{bluebird:Ge}}],["reactcss@*",{peerDependencies:{react:"*"}}],["react-color@<=2.19.0",{peerDependencies:{react:"*"}}],["gatsby-plugin-i18n@*",{dependencies:{ramda:"^0.24.1"}}],["useragent@^2.0.0",{dependencies:{request:"^2.88.0",yamlparser:"0.0.x",semver:"5.5.x"}}],["@apollographql/apollo-tools@<=0.5.2",{peerDependencies:{graphql:"^14.2.1 || ^15.0.0"}}],["material-table@^2.0.0",{dependencies:{"@babel/runtime":"^7.11.2"}}],["@babel/parser@*",{dependencies:{"@babel/types":"^7.8.3"}}],["fork-ts-checker-webpack-plugin@<=6.3.4",{peerDependencies:{eslint:">= 6",typescript:">= 2.7",webpack:">= 4","vue-template-compiler":"*"},peerDependenciesMeta:{eslint:Ge,"vue-template-compiler":Ge}}],["rc-animate@<=3.1.1",{peerDependencies:{react:">=16.9.0","react-dom":">=16.9.0"}}],["react-bootstrap-table2-paginator@*",{dependencies:{classnames:"^2.2.6"}}],["react-draggable@<=4.4.3",{peerDependencies:{react:">= 16.3.0","react-dom":">= 16.3.0"}}],["apollo-upload-client@<14",{peerDependencies:{graphql:"14 - 15"}}],["react-instantsearch-core@<=6.7.0",{peerDependencies:{algoliasearch:">= 3.1 < 5"}}],["react-instantsearch-dom@<=6.7.0",{dependencies:{"react-fast-compare":"^3.0.0"}}],["ws@<7.2.1",{peerDependencies:{bufferutil:"^4.0.1","utf-8-validate":"^5.0.2"},peerDependenciesMeta:{bufferutil:Ge,"utf-8-validate":Ge}}],["react-portal@*",{peerDependencies:{"react-dom":"^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"}}],["react-scripts@<=4.0.1",{peerDependencies:{react:"*"}}],["testcafe@<=1.10.1",{dependencies:{"@babel/plugin-transform-for-of":"^7.12.1","@babel/runtime":"^7.12.5"}}],["testcafe-legacy-api@<=4.2.0",{dependencies:{"testcafe-hammerhead":"^17.0.1","read-file-relative":"^1.2.0"}}],["@google-cloud/firestore@<=4.9.3",{dependencies:{protobufjs:"^6.8.6"}}],["gatsby-source-apiserver@*",{dependencies:{["babel-polyfill"]:"^6.26.0"}}],["@webpack-cli/package-utils@<=1.0.1-alpha.4",{dependencies:{["cross-spawn"]:"^7.0.3"}}],["gatsby-remark-prismjs@<3.3.28",{dependencies:{lodash:"^4"}}],["gatsby-plugin-favicon@*",{peerDependencies:{webpack:"*"}}],["gatsby-plugin-sharp@<=4.6.0-next.3",{dependencies:{debug:"^4.3.1"}}],["gatsby-react-router-scroll@<=5.6.0-next.0",{dependencies:{["prop-types"]:"^15.7.2"}}],["@rebass/forms@*",{dependencies:{["@styled-system/should-forward-prop"]:"^5.0.0"},peerDependencies:{react:"^16.8.6"}}],["rebass@*",{peerDependencies:{react:"^16.8.6"}}],["@ant-design/react-slick@<=0.28.3",{peerDependencies:{react:">=16.0.0"}}],["mqtt@<4.2.7",{dependencies:{duplexify:"^4.1.1"}}],["vue-cli-plugin-vuetify@<=2.0.3",{dependencies:{semver:"^6.3.0"},peerDependenciesMeta:{"sass-loader":Ge,"vuetify-loader":Ge}}],["vue-cli-plugin-vuetify@<=2.0.4",{dependencies:{"null-loader":"^3.0.0"}}],["vue-cli-plugin-vuetify@>=2.4.3",{peerDependencies:{vue:"*"}}],["@vuetify/cli-plugin-utils@<=0.0.4",{dependencies:{semver:"^6.3.0"},peerDependenciesMeta:{"sass-loader":Ge}}],["@vue/cli-plugin-typescript@<=5.0.0-alpha.0",{dependencies:{"babel-loader":"^8.1.0"}}],["@vue/cli-plugin-typescript@<=5.0.0-beta.0",{dependencies:{"@babel/core":"^7.12.16"},peerDependencies:{"vue-template-compiler":"^2.0.0"},peerDependenciesMeta:{"vue-template-compiler":Ge}}],["cordova-ios@<=6.3.0",{dependencies:{underscore:"^1.9.2"}}],["cordova-lib@<=10.0.1",{dependencies:{underscore:"^1.9.2"}}],["git-node-fs@*",{peerDependencies:{"js-git":"^0.7.8"},peerDependenciesMeta:{"js-git":Ge}}],["consolidate@<0.16.0",{peerDependencies:{mustache:"^3.0.0"},peerDependenciesMeta:{mustache:Ge}}],["consolidate@*",{peerDependencies:{velocityjs:"^2.0.1",tinyliquid:"^0.2.34","liquid-node":"^3.0.1",jade:"^1.11.0","then-jade":"*",dust:"^0.3.0","dustjs-helpers":"^1.7.4","dustjs-linkedin":"^2.7.5",swig:"^1.4.2","swig-templates":"^2.0.3","razor-tmpl":"^1.3.1",atpl:">=0.7.6",liquor:"^0.0.5",twig:"^1.15.2",ejs:"^3.1.5",eco:"^1.1.0-rc-3",jazz:"^0.0.18",jqtpl:"~1.1.0",hamljs:"^0.6.2",hamlet:"^0.3.3",whiskers:"^0.4.0","haml-coffee":"^1.14.1","hogan.js":"^3.0.2",templayed:">=0.2.3",handlebars:"^4.7.6",underscore:"^1.11.0",lodash:"^4.17.20",pug:"^3.0.0","then-pug":"*",qejs:"^3.0.5",walrus:"^0.10.1",mustache:"^4.0.1",just:"^0.1.8",ect:"^0.5.9",mote:"^0.2.0",toffee:"^0.3.6",dot:"^1.1.3","bracket-template":"^1.1.5",ractive:"^1.3.12",nunjucks:"^3.2.2",htmling:"^0.0.8","babel-core":"^6.26.3",plates:"~0.4.11","react-dom":"^16.13.1",react:"^16.13.1","arc-templates":"^0.5.3",vash:"^0.13.0",slm:"^2.0.0",marko:"^3.14.4",teacup:"^2.0.0","coffee-script":"^1.12.7",squirrelly:"^5.1.0",twing:"^5.0.2"},peerDependenciesMeta:{velocityjs:Ge,tinyliquid:Ge,"liquid-node":Ge,jade:Ge,"then-jade":Ge,dust:Ge,"dustjs-helpers":Ge,"dustjs-linkedin":Ge,swig:Ge,"swig-templates":Ge,"razor-tmpl":Ge,atpl:Ge,liquor:Ge,twig:Ge,ejs:Ge,eco:Ge,jazz:Ge,jqtpl:Ge,hamljs:Ge,hamlet:Ge,whiskers:Ge,"haml-coffee":Ge,"hogan.js":Ge,templayed:Ge,handlebars:Ge,underscore:Ge,lodash:Ge,pug:Ge,"then-pug":Ge,qejs:Ge,walrus:Ge,mustache:Ge,just:Ge,ect:Ge,mote:Ge,toffee:Ge,dot:Ge,"bracket-template":Ge,ractive:Ge,nunjucks:Ge,htmling:Ge,"babel-core":Ge,plates:Ge,"react-dom":Ge,react:Ge,"arc-templates":Ge,vash:Ge,slm:Ge,marko:Ge,teacup:Ge,"coffee-script":Ge,squirrelly:Ge,twing:Ge}}],["vue-loader@<=16.3.3",{peerDependencies:{"@vue/compiler-sfc":"^3.0.8",webpack:"^4.1.0 || ^5.0.0-0"},peerDependenciesMeta:{"@vue/compiler-sfc":Ge}}],["vue-loader@^16.7.0",{peerDependencies:{"@vue/compiler-sfc":"^3.0.8",vue:"^3.2.13"},peerDependenciesMeta:{"@vue/compiler-sfc":Ge,vue:Ge}}],["scss-parser@*",{dependencies:{lodash:"^4.17.21"}}],["query-ast@*",{dependencies:{lodash:"^4.17.21"}}],["redux-thunk@<=2.3.0",{peerDependencies:{redux:"^4.0.0"}}],["skypack@<=0.3.2",{dependencies:{tar:"^6.1.0"}}],["@npmcli/metavuln-calculator@<2.0.0",{dependencies:{"json-parse-even-better-errors":"^2.3.1"}}],["bin-links@<2.3.0",{dependencies:{"mkdirp-infer-owner":"^1.0.2"}}],["rollup-plugin-polyfill-node@<=0.8.0",{peerDependencies:{rollup:"^1.20.0 || ^2.0.0"}}],["snowpack@<3.8.6",{dependencies:{"magic-string":"^0.25.7"}}],["elm-webpack-loader@*",{dependencies:{temp:"^0.9.4"}}],["winston-transport@<=4.4.0",{dependencies:{logform:"^2.2.0"}}],["jest-vue-preprocessor@*",{dependencies:{"@babel/core":"7.8.7","@babel/template":"7.8.6"},peerDependencies:{pug:"^2.0.4"},peerDependenciesMeta:{pug:Ge}}],["redux-persist@*",{peerDependencies:{react:">=16"},peerDependenciesMeta:{react:Ge}}],["sodium@>=3",{dependencies:{"node-gyp":"^3.8.0"}}],["babel-plugin-graphql-tag@<=3.1.0",{peerDependencies:{graphql:"^14.0.0 || ^15.0.0"}}],["@playwright/test@<=1.14.1",{dependencies:{"jest-matcher-utils":"^26.4.2"}}],...["babel-plugin-remove-graphql-queries@<3.14.0-next.1","babel-preset-gatsby-package@<1.14.0-next.1","create-gatsby@<1.14.0-next.1","gatsby-admin@<0.24.0-next.1","gatsby-cli@<3.14.0-next.1","gatsby-core-utils@<2.14.0-next.1","gatsby-design-tokens@<3.14.0-next.1","gatsby-legacy-polyfills@<1.14.0-next.1","gatsby-plugin-benchmark-reporting@<1.14.0-next.1","gatsby-plugin-graphql-config@<0.23.0-next.1","gatsby-plugin-image@<1.14.0-next.1","gatsby-plugin-mdx@<2.14.0-next.1","gatsby-plugin-netlify-cms@<5.14.0-next.1","gatsby-plugin-no-sourcemaps@<3.14.0-next.1","gatsby-plugin-page-creator@<3.14.0-next.1","gatsby-plugin-preact@<5.14.0-next.1","gatsby-plugin-preload-fonts@<2.14.0-next.1","gatsby-plugin-schema-snapshot@<2.14.0-next.1","gatsby-plugin-styletron@<6.14.0-next.1","gatsby-plugin-subfont@<3.14.0-next.1","gatsby-plugin-utils@<1.14.0-next.1","gatsby-recipes@<0.25.0-next.1","gatsby-source-shopify@<5.6.0-next.1","gatsby-source-wikipedia@<3.14.0-next.1","gatsby-transformer-screenshot@<3.14.0-next.1","gatsby-worker@<0.5.0-next.1"].map(r=>[r,{dependencies:{"@babel/runtime":"^7.14.8"}}]),["gatsby-core-utils@<2.14.0-next.1",{dependencies:{got:"8.3.2"}}],["gatsby-plugin-gatsby-cloud@<=3.1.0-next.0",{dependencies:{"gatsby-core-utils":"^2.13.0-next.0"}}],["gatsby-plugin-gatsby-cloud@<=3.2.0-next.1",{peerDependencies:{webpack:"*"}}],["babel-plugin-remove-graphql-queries@<=3.14.0-next.1",{dependencies:{"gatsby-core-utils":"^2.8.0-next.1"}}],["gatsby-plugin-netlify@3.13.0-next.1",{dependencies:{"gatsby-core-utils":"^2.13.0-next.0"}}],["clipanion-v3-codemod@<=0.2.0",{peerDependencies:{jscodeshift:"^0.11.0"}}],["react-live@*",{peerDependencies:{"react-dom":"*",react:"*"}}],["webpack@<4.44.1",{peerDependenciesMeta:{"webpack-cli":Ge,"webpack-command":Ge}}],["webpack@<5.0.0-beta.23",{peerDependenciesMeta:{"webpack-cli":Ge}}],["webpack-dev-server@<3.10.2",{peerDependenciesMeta:{"webpack-cli":Ge}}],["@docusaurus/responsive-loader@<1.5.0",{peerDependenciesMeta:{sharp:Ge,jimp:Ge}}],["eslint-module-utils@*",{peerDependenciesMeta:{"eslint-import-resolver-node":Ge,"eslint-import-resolver-typescript":Ge,"eslint-import-resolver-webpack":Ge,"@typescript-eslint/parser":Ge}}],["eslint-plugin-import@*",{peerDependenciesMeta:{"@typescript-eslint/parser":Ge}}],["critters-webpack-plugin@<3.0.2",{peerDependenciesMeta:{"html-webpack-plugin":Ge}}],["terser@<=5.10.0",{dependencies:{acorn:"^8.5.0"}}],["babel-preset-react-app@10.0.x",{dependencies:{"@babel/plugin-proposal-private-property-in-object":"^7.16.0"}}],["eslint-config-react-app@*",{peerDependenciesMeta:{typescript:Ge}}],["@vue/eslint-config-typescript@<11.0.0",{peerDependenciesMeta:{typescript:Ge}}],["unplugin-vue2-script-setup@<0.9.1",{peerDependencies:{"@vue/composition-api":"^1.4.3","@vue/runtime-dom":"^3.2.26"}}],["@cypress/snapshot@*",{dependencies:{debug:"^3.2.7"}}],["auto-relay@*",{peerDependencies:{"reflect-metadata":"^0.1.13"}}],["vue-template-babel-compiler@<1.2.0",{peerDependencies:{["vue-template-compiler"]:"^2.6.0"}}],["@parcel/transformer-image@<2.5.0",{peerDependencies:{["@parcel/core"]:"*"}}],["@parcel/transformer-js@<2.5.0",{peerDependencies:{["@parcel/core"]:"*"}}],["parcel@*",{peerDependenciesMeta:{["@parcel/core"]:Ge}}],["react-scripts@*",{peerDependencies:{eslint:"*"}}],["focus-trap-react@^8.0.0",{dependencies:{tabbable:"^5.3.2"}}],["react-rnd@<10.3.7",{peerDependencies:{react:">=16.3.0","react-dom":">=16.3.0"}}],["connect-mongo@*",{peerDependencies:{"express-session":"^1.17.1"}}],["vue-i18n@<9",{peerDependencies:{vue:"^2"}}],["vue-router@<4",{peerDependencies:{vue:"^2"}}],["unified@<10",{dependencies:{"@types/unist":"^2.0.0"}}],["react-github-btn@<=1.3.0",{peerDependencies:{react:">=16.3.0"}}],["react-dev-utils@*",{peerDependencies:{typescript:">=2.7",webpack:">=4"},peerDependenciesMeta:{typescript:{optional:!0}}}],["@asyncapi/react-component@<=1.0.0-next.39",{peerDependencies:{react:">=16.8.0","react-dom":">=16.8.0"}}]];var qN;function vae(){return typeof qN=="undefined"&&(qN=require("zlib").brotliDecompressSync(Buffer.from("G7weAByFTVk3Vs7UfHhq4yykgEM7pbW7TI43SG2S5tvGrwHBAzdz+s/npQ6tgEvobvxisrPIadkXeUAJotBn5bDZ5kAhcRqsIHe3F75Walet5hNalwgFDtxb0BiDUjiUQkjG0yW2hto9HPgiCkm316d6bC0kST72YN7D7rfkhCE9x4J0XwB0yavalxpUu2t9xszHrmtwalOxT7VslsxWcB1qpqZwERUra4psWhTV8BgwWeizurec82Caf1ABL11YMfbf8FJ9JBceZOkgmvrQPbC9DUldX/yMbmX06UQluCEjSwUoyO+EZPIjofr+/oAZUck2enraRD+oWLlnlYnj8xB+gwSo9lmmks4fXv574qSqcWA6z21uYkzMu3EWj+K23RxeQlLqiE35/rC8GcS4CGkKHKKq+zAIQwD9iRDNfiAqueLLpicFFrNsAI4zeTD/eO9MHcnRa5m8UT+M2+V+AkFST4BlKneiAQRSdST8KEAIyFlULt6wa9EBd0Ds28VmpaxquJdVt+nwdEs5xUskI13OVtFyY0UrQIRAlCuvvWivvlSKQfTO+2Q8OyUR1W5RvetaPz4jD27hdtwHFFA1Ptx6Ee/t2cY2rg2G46M1pNDRf2pWhvpy8pqMnuI3++4OF3+7OFIWXGjh+o7Nr2jNvbiYcQdQS1h903/jVFgOpA0yJ78z+x759bFA0rq+6aY5qPB4FzS3oYoLupDUhD9nDz6F6H7hpnlMf18KNKDu4IKjTWwrAnY6MFQw1W6ymOALHlFyCZmQhldg1MQHaMVVQTVgDC60TfaBqG++Y8PEoFhN/PBTZT175KNP/BlHDYGOOBmnBdzqJKplZ/ljiVG0ZBzfqeBRrrUkn6rA54462SgiliKoYVnbeptMdXNfAuaupIEi0bApF10TlgHfmEJAPUVidRVFyDupSem5po5vErPqWKhKbUIp0LozpYsIKK57dM/HKr+nguF+7924IIWMICkQ8JUigs9D+W+c4LnNoRtPPKNRUiCYmP+Jfo2lfKCKw8qpraEeWU3uiNRO6zcyKQoXPR5htmzzLznke7b4YbXW3I1lIRzmgG02Udb58U+7TpwyN7XymCgH+wuPDthZVQvRZuEP+SnLtMicz9m5zASWOBiAcLmkuFlTKuHspSIhCBD0yUPKcxu81A+4YD78rA2vtwsUEday9WNyrShyrl60rWmA+SmbYZkQOwFJWArxRYYc5jGhA5ikxYw1rx3ei4NmeX/lKiwpZ9Ln1tV2Ae7sArvxuVLbJjqJRjW1vFXAyHpvLG+8MJ6T2Ubx5M2KDa2SN6vuIGxJ9WQM9Mk3Q7aCNiZONXllhqq24DmoLbQfW2rYWsOgHWjtOmIQMyMKdiHZDjoyIq5+U700nZ6odJAoYXPQBvFNiQ78d5jaXliBqLTJEqUCwi+LiH2mx92EmNKDsJL74Z613+3lf20pxkV1+erOrjj8pW00vsPaahKUM+05ssd5uwM7K482KWEf3TCwlg/o3e5ngto7qSMz7YteIgCsF1UOcsLk7F7MxWbvrPMY473ew0G+noVL8EPbkmEMftMSeL6HFub/zy+2JQ==","base64")).toString()),qN}var JN;function xae(){return typeof JN=="undefined"&&(JN=require("zlib").brotliDecompressSync(Buffer.from("G8MSIIzURnVBnObTcvb3XE6v2S9Qgc2K801Oa5otNKEtK8BINZNcaQHy+9/vf/WXBimwutXC33P2DPc64pps5rz7NGGWaOKNSPL4Y2KRE8twut2lFOIN+OXPtRmPMRhMTILib2bEQx43az2I5d3YS8Roa5UZpF/ujHb3Djd3GDvYUfvFYSUQ39vb2cmifp/rgB4J/65JK3wRBTvMBoNBmn3mbXC63/gbBkW/2IRPri0O8bcsRBsmarF328pAln04nyJFkwUAvNu934supAqLtyerZZpJ8I8suJHhf/ocMV+scKwa8NOiDKIPXw6Ex/EEZD6TEGaW8N5zvNHYF10l6Lfooj7D5W2k3dgvQSbp2Wv8TGOayS978gxlOLVjTGXs66ozewbrjwElLtyrYNnWTfzzdEutgROUFPVMhnMoy8EjJLLlWwIEoySxliim9kYW30JUHiPVyjt0iAw/ZpPmCbUCltYPnq6ZNblIKhTNhqS/oqC9iya5sGKZTOVsTEg34n92uZTf2iPpcZih8rPW8CzA+adIGmyCPcKdLMsBLShd+zuEbTrqpwuh+DLmracZcjPC5Sdf5odDAhKpFuOsQS67RT+1VgWWygSv3YwxDnylc04/PYuaMeIzhBkLrvs7e/OUzRTF56MmfY6rI63QtEjEQzq637zQqJ39nNhu3NmoRRhW/086bHGBUtx0PE0j3aEGvkdh9WJC8y8j8mqqke9/dQ5la+Q3ba4RlhvTbnfQhPDDab3tUifkjKuOsp13mXEmO00Mu88F/M67R7LXfoFDFLNtgCSWjWX+3Jn1371pJTK9xPBiMJafvDjtFyAzu8rxeQ0TKMQXNPs5xxiBOd+BRJP8KP88XPtJIbZKh/cdW8KvBUkpqKpGoiIaA32c3/JnQr4efXt85mXvidOvn/eU3Pase1typLYBalJ14mCso9h79nuMOuCa/kZAOkJHmTjP5RM2WNoPasZUAnT1TAE/NH25hUxcQv6hQWR/m1PKk4ooXMcM4SR1iYU3fUohvqk4RY2hbmTVVIXv6TvqO+0doOjgeVFAcom+RlwJQmOVH7pr1Q9LoJT6n1DeQEB+NHygsATbIwTcOKZlJsY8G4+suX1uQLjUWwLjjs0mvSvZcLTpIGAekeR7GCgl8eo3ndAqEe2XCav4huliHjdbIPBsGJuPX7lrO9HX1UbXRH5opOe1x6JsOSgHZR+EaxuXVhpLLxm6jk1LJtZfHSc6BKPun3CpYYVMJGwEUyk8MTGG0XL5MfEwaXpnc9TKnBmlGn6nHiGREc3ysn47XIBDzA+YvFdjZzVIEDcKGpS6PbUJehFRjEne8D0lVU1XuRtlgszq6pTNlQ/3MzNOEgCWPyTct22V2mEi2krizn5VDo9B19/X2DB3hCGRMM7ONbtnAcIx/OWB1u5uPbW1gsH8irXxT/IzG0PoXWYjhbMsH3KTuoOl5o17PulcgvsfTSnKFM354GWI8luqZnrswWjiXy3G+Vbyo1KMopFmmvBwNELgaS8z8dNZchx/Cl/xjddxhMcyqtzFyONb2Zdu90NkI8pAeufe7YlXrp53v8Dj/l8vWeVspRKBGXScBBPI/HinSTGmLDOGGOCIyH0JFdOZx0gWsacNlQLJMIrBhqRxXxHF/5pseWwejlAAvZ3klZSDSYY8mkToaWejXhgNomeGtx1DTLEUFMRkgF5yFB22WYdJnaWN14r1YJj81hGi45+jrADS5nYRhCiSlCJJ1nL8pYX+HDSMhdTEWyRcgHVp/IsUIZYMfT+YYncUQPgcxNGCHfZ88vDdrcUuaGIl6zhAsiaq7R5dfqrqXH/JcBhfjT8D0azayIyEz75Nxp6YkcyDxlJq3EXnJUpqDohJJOysL1t1uNiHESlvsxPb5cpbW0+ICZqJmUZus1BMW0F5IVBODLIo2zHHjA0=","base64")).toString()),JN}var WN;function kae(){return typeof WN=="undefined"&&(WN=require("zlib").brotliDecompressSync(Buffer.from("m/HeG1HktgFU2009LlML2K3wbht8rnXF03SVHSBVb6bUwIJ/X0CPw40xECizvpKcRcKWansp3DpGvMOmCfX1cSwYSTU897x3/dUiIRj6qdVoSiBOoXoNNrhqwKhhnuLKYzT59P10Oq0qXxDajWhLOofkc8GW7/2vYK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4aQkr5mEep0Phx/sT9aPplopH7PywAAite7Cnch4AIx+wTS5IJjBggZh8Dy+MXAACJt54EAFg3E2S51W4AwJUBLGL4WDpvL3FCLGW7HcvOQ+7aV2FQAMxsJQQAMFmAbRk4CgePUfNxdatojBYsgVyatgFy6RAmkL4aGot8BItj/gluCYSHy75vODafrmX1Fcone8N5g/4EvGx3Y228Eh4FtUodutt9i0VoCbPYmoYxy90oAADLUPaxn06Q4ENpgJfdEA7VZo2jrgdbWtnyC95ty+BI8FXrSOfelp26dvUI99nzzzwEAEAS2yZKDOLUJnKZcOY6tQEAXg8xkFZUotj60Ryg4ahN7aBCBDQ5U6zrYQIS0awtpQPyJ9Bdq1f3+Qk2qYKrolDcJx3YEosBmwIvm8tVBmy6uPY311YfmBJczuwKFAhXj41iACLp8VAGQMxuPQkAqIgJcdlqNwDQvUwonupLGr/wDUotd8wAqmpbReCIBoUPGVYzIQBwmY5JrSYuLQjKBY3amgQyNG0LZOgQNhCuhuASE5Zj+3MwEI7eG7Q42d0YmpmER1KpkqfmTOayQKMqC28tT125IQUA0OGuMh/jDMxUSre7DOhkCLrr+rMr3B3d4IC7pyOd4Ny5KlEAgONEOQ4JZSJt1HFuzL46sdivpngAoAjSlVy2u/daWIRNM4//tg/dq5R4FkDTpbZunrzceJG6Hl0ISXWiu1En7TPkqElGl7S8dI2rboPTHQinelsgtdaGAXm0HhGUa0AJAGzGO013A0Ade1X0uVVIcGPuFXfxIe9gCQXdm81qTGyF5hPR73D4ZfCus9vd+BqERE5wCFD1H7ntN4LteLyUPwknevKJMdndmMdoNF5j1WpjDOkA2F5rGIsY6O2pKgUAEHtTVm92KwsYU+HIrmvQcuylbNCgbCZpOOnA7U227cCj7HJt91kuEvu4OpHspzEeAMixJw3Iyz4KzrDv4rjYT8mt2Z/iG4znCn8B","base64")).toString()),WN}var Pae=new Map([[P.makeIdent(null,"fsevents").identHash,vae],[P.makeIdent(null,"resolve").identHash,xae],[P.makeIdent(null,"typescript").identHash,kae]]),EWe={hooks:{registerPackageExtensions:async(r,e)=>{for(let[t,i]of YN)e(P.parseDescriptor(t,!0),i)},getBuiltinPatch:async(r,e)=>{var s;let t="compat/";if(!e.startsWith(t))return;let i=P.parseIdent(e.slice(t.length)),n=(s=Pae.get(i.identHash))==null?void 0:s();return typeof n!="undefined"?n:null},reduceDependency:async(r,e,t,i)=>typeof Pae.get(r.identHash)=="undefined"?r:P.makeDescriptor(r,P.makeRange({protocol:"patch:",source:P.stringifyDescriptor(r),selector:`~builtin`,params:null}))}},IWe=EWe;var _N={};ft(_N,{default:()=>wWe});var X0=class extends Le{constructor(){super(...arguments);this.pkg=J.String("-p,--package",{description:"The package to run the provided command from"});this.quiet=J.Boolean("-q,--quiet",!1,{description:"Only report critical errors instead of printing the full install logs"});this.command=J.String();this.args=J.Proxy()}async execute(){let e=[];this.pkg&&e.push("--package",this.pkg),this.quiet&&e.push("--quiet");let t=P.parseDescriptor(this.command),i;t.scope?i=P.makeIdent(t.scope,`create-${t.name}`):t.name.startsWith("@")?i=P.makeIdent(t.name.substring(1),"create"):i=P.makeIdent(null,`create-${t.name}`);let n=P.stringifyIdent(i);return t.range!=="unknown"&&(n+=`@${t.range}`),this.cli.run(["dlx",...e,n,...this.args])}};X0.paths=[["create"]];var Dae=X0;var Dm=class extends Le{constructor(){super(...arguments);this.packages=J.Array("-p,--package",{description:"The package(s) to install before running the command"});this.quiet=J.Boolean("-q,--quiet",!1,{description:"Only report critical errors instead of printing the full install logs"});this.command=J.String();this.args=J.Proxy()}async execute(){return ye.telemetry=null,await K.mktempPromise(async e=>{var p;let t=k.join(e,`dlx-${process.pid}`);await K.mkdirPromise(t),await K.writeFilePromise(k.join(t,"package.json"),`{} +`),await K.writeFilePromise(k.join(t,"yarn.lock"),"");let i=k.join(t,".yarnrc.yml"),n=await ye.findProjectCwd(this.context.cwd,kt.lockfile),s=!(await ye.find(this.context.cwd,null,{strict:!1})).get("enableGlobalCache"),o=n!==null?k.join(n,".yarnrc.yml"):null;o!==null&&K.existsSync(o)?(await K.copyFilePromise(o,i),await ye.updateConfiguration(t,m=>{let y=te(N({},m),{enableGlobalCache:s,enableTelemetry:!1});return Array.isArray(m.plugins)&&(y.plugins=m.plugins.map(b=>{let v=typeof b=="string"?b:b.path,x=H.isAbsolute(v)?v:H.resolve(H.fromPortablePath(n),v);return typeof b=="string"?x:{path:x,spec:b.spec}})),y})):await K.writeFilePromise(i,`enableGlobalCache: ${s} +enableTelemetry: false +`);let a=(p=this.packages)!=null?p:[this.command],l=P.parseDescriptor(this.command).name,c=await this.cli.run(["add","--",...a],{cwd:t,quiet:this.quiet});if(c!==0)return c;this.quiet||this.context.stdout.write(` +`);let u=await ye.find(t,this.context.plugins),{project:g,workspace:f}=await ze.find(u,t);if(f===null)throw new ht(g.cwd,t);await g.restoreInstallState();let h=await Zt.getWorkspaceAccessibleBinaries(f);return h.has(l)===!1&&h.size===1&&typeof this.packages=="undefined"&&(l=Array.from(h)[0][0]),await Zt.executeWorkspaceAccessibleBinary(f,l,this.args,{packageAccessibleBinaries:h,cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})})}};Dm.paths=[["dlx"]],Dm.usage=Re.Usage({description:"run a package in a temporary environment",details:"\n This command will install a package within a temporary environment, and run its binary script if it contains any. The binary will run within the current cwd.\n\n By default Yarn will download the package named `command`, but this can be changed through the use of the `-p,--package` flag which will instruct Yarn to still run the same command but from a different package.\n\n Using `yarn dlx` as a replacement of `yarn add` isn't recommended, as it makes your project non-deterministic (Yarn doesn't keep track of the packages installed through `dlx` - neither their name, nor their version).\n ",examples:[["Use create-react-app to create a new React app","yarn dlx create-react-app ./my-app"],["Install multiple packages for a single command",`yarn dlx -p typescript -p ts-node ts-node --transpile-only -e "console.log('hello!')"`]]});var Rae=Dm;var yWe={commands:[Dae,Rae]},wWe=yWe;var nL={};ft(nL,{default:()=>QWe,fileUtils:()=>VN});var nh=/^(?:[a-zA-Z]:[\\/]|\.{0,2}\/)/,Rm=/^[^?]*\.(?:tar\.gz|tgz)(?:::.*)?$/,Xr="file:";var VN={};ft(VN,{makeArchiveFromLocator:()=>Z0,makeBufferFromLocator:()=>$N,makeLocator:()=>ZN,makeSpec:()=>Fae,parseSpec:()=>XN});function XN(r){let{params:e,selector:t}=P.parseRange(r),i=H.toPortablePath(t);return{parentLocator:e&&typeof e.locator=="string"?P.parseLocator(e.locator):null,path:i}}function Fae({parentLocator:r,path:e,folderHash:t,protocol:i}){let n=r!==null?{locator:P.stringifyLocator(r)}:{},s=typeof t!="undefined"?{hash:t}:{};return P.makeRange({protocol:i,source:e,selector:e,params:N(N({},s),n)})}function ZN(r,{parentLocator:e,path:t,folderHash:i,protocol:n}){return P.makeLocator(r,Fae({parentLocator:e,path:t,folderHash:i,protocol:n}))}async function Z0(r,{protocol:e,fetchOptions:t,inMemory:i=!1}){let{parentLocator:n,path:s}=P.parseFileStyleRange(r.reference,{protocol:e}),o=k.isAbsolute(s)?{packageFs:new _t(Me.root),prefixPath:Me.dot,localPath:Me.root}:await t.fetcher.fetch(n,t),a=o.localPath?{packageFs:new _t(Me.root),prefixPath:k.relative(Me.root,o.localPath)}:o;o!==a&&o.releaseFs&&o.releaseFs();let l=a.packageFs,c=k.join(a.prefixPath,s);return await Se.releaseAfterUseAsync(async()=>await Bi.makeArchiveFromDirectory(c,{baseFs:l,prefixPath:P.getIdentVendorPath(r),compressionLevel:t.project.configuration.get("compressionLevel"),inMemory:i}),a.releaseFs)}async function $N(r,{protocol:e,fetchOptions:t}){return(await Z0(r,{protocol:e,fetchOptions:t,inMemory:!0})).getBufferAndClose()}var eL=class{supports(e,t){return!!e.reference.startsWith(Xr)}getLocalPath(e,t){let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:Xr});if(k.isAbsolute(n))return n;let s=t.fetcher.getLocalPath(i,t);return s===null?null:k.resolve(s,n)}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.fetchFromDisk(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),localPath:this.getLocalPath(e,t),checksum:o}}async fetchFromDisk(e,t){return Z0(e,{protocol:Xr,fetchOptions:t})}};var BWe=2,tL=class{supportsDescriptor(e,t){return e.range.match(nh)?!0:!!e.range.startsWith(Xr)}supportsLocator(e,t){return!!e.reference.startsWith(Xr)}shouldPersistResolution(e,t){return!1}bindDescriptor(e,t,i){return nh.test(e.range)&&(e=P.makeDescriptor(e,`${Xr}${e.range}`)),P.bindDescriptor(e,{locator:P.stringifyLocator(t)})}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){if(!i.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let{path:n,parentLocator:s}=XN(e.range);if(s===null)throw new Error("Assertion failed: The descriptor should have been bound");let o=await $N(P.makeLocator(e,P.makeRange({protocol:Xr,source:n,selector:n,params:{locator:P.stringifyLocator(s)}})),{protocol:Xr,fetchOptions:i.fetchOptions}),a=Dn.makeHash(`${BWe}`,o).slice(0,6);return[ZN(e,{parentLocator:s,path:n,folderHash:a,protocol:Xr})]}async getSatisfying(e,t,i){return null}async resolve(e,t){if(!t.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await t.fetchOptions.fetcher.fetch(e,t.fetchOptions),n=await Se.releaseAfterUseAsync(async()=>await At.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return te(N({},e),{version:n.version||"0.0.0",languageName:n.languageName||t.project.configuration.get("defaultLanguageName"),linkType:Qt.HARD,conditions:n.getConditions(),dependencies:n.dependencies,peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin})}};var rL=class{supports(e,t){return Rm.test(e.reference)?!!e.reference.startsWith(Xr):!1}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.fetchFromDisk(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),checksum:o}}async fetchFromDisk(e,t){let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:Xr}),s=k.isAbsolute(n)?{packageFs:new _t(Me.root),prefixPath:Me.dot,localPath:Me.root}:await t.fetcher.fetch(i,t),o=s.localPath?{packageFs:new _t(Me.root),prefixPath:k.relative(Me.root,s.localPath)}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=k.join(o.prefixPath,n),c=await a.readFilePromise(l);return await Se.releaseAfterUseAsync(async()=>await Bi.convertToZip(c,{compressionLevel:t.project.configuration.get("compressionLevel"),prefixPath:P.getIdentVendorPath(e),stripComponents:1}),o.releaseFs)}};var iL=class{supportsDescriptor(e,t){return Rm.test(e.range)?!!(e.range.startsWith(Xr)||nh.test(e.range)):!1}supportsLocator(e,t){return Rm.test(e.reference)?!!e.reference.startsWith(Xr):!1}shouldPersistResolution(e,t){return!0}bindDescriptor(e,t,i){return nh.test(e.range)&&(e=P.makeDescriptor(e,`${Xr}${e.range}`)),P.bindDescriptor(e,{locator:P.stringifyLocator(t)})}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){let n=e.range;return n.startsWith(Xr)&&(n=n.slice(Xr.length)),[P.makeLocator(e,`${Xr}${H.toPortablePath(n)}`)]}async getSatisfying(e,t,i){return null}async resolve(e,t){if(!t.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await t.fetchOptions.fetcher.fetch(e,t.fetchOptions),n=await Se.releaseAfterUseAsync(async()=>await At.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return te(N({},e),{version:n.version||"0.0.0",languageName:n.languageName||t.project.configuration.get("defaultLanguageName"),linkType:Qt.HARD,conditions:n.getConditions(),dependencies:n.dependencies,peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin})}};var bWe={fetchers:[rL,eL],resolvers:[iL,tL]},QWe=bWe;var oL={};ft(oL,{default:()=>xWe});var Nae=ge(require("querystring")),Lae=[/^https?:\/\/(?:([^/]+?)@)?github.com\/([^/#]+)\/([^/#]+)\/tarball\/([^/#]+)(?:#(.*))?$/,/^https?:\/\/(?:([^/]+?)@)?github.com\/([^/#]+)\/([^/#]+?)(?:\.git)?(?:#(.*))?$/];function Tae(r){return r?Lae.some(e=>!!r.match(e)):!1}function Oae(r){let e;for(let a of Lae)if(e=r.match(a),e)break;if(!e)throw new Error(SWe(r));let[,t,i,n,s="master"]=e,{commit:o}=Nae.default.parse(s);return s=o||s.replace(/[^:]*:/,""),{auth:t,username:i,reponame:n,treeish:s}}function SWe(r){return`Input cannot be parsed as a valid GitHub URL ('${r}').`}var sL=class{supports(e,t){return!!Tae(e.reference)}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from GitHub`),loader:()=>this.fetchFromNetwork(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),checksum:o}}async fetchFromNetwork(e,t){let i=await ir.get(this.getLocatorUrl(e,t),{configuration:t.project.configuration});return await K.mktempPromise(async n=>{let s=new _t(n);await Bi.extractArchiveTo(i,s,{stripComponents:1});let o=Qu.splitRepoUrl(e.reference),a=k.join(n,"package.tgz");await Zt.prepareExternalProject(n,a,{configuration:t.project.configuration,report:t.report,workspace:o.extra.workspace,locator:e});let l=await K.readFilePromise(a);return await Bi.convertToZip(l,{compressionLevel:t.project.configuration.get("compressionLevel"),prefixPath:P.getIdentVendorPath(e),stripComponents:1})})}getLocatorUrl(e,t){let{auth:i,username:n,reponame:s,treeish:o}=Oae(e.reference);return`https://${i?`${i}@`:""}github.com/${n}/${s}/archive/${o}.tar.gz`}};var vWe={hooks:{async fetchHostedRepository(r,e,t){if(r!==null)return r;let i=new sL;if(!i.supports(e,t))return null;try{return await i.fetch(e,t)}catch(n){return null}}}},xWe=vWe;var lL={};ft(lL,{default:()=>PWe});var Fm=/^[^?]*\.(?:tar\.gz|tgz)(?:\?.*)?$/,Nm=/^https?:/;var aL=class{supports(e,t){return Fm.test(e.reference)?!!Nm.test(e.reference):!1}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the remote server`),loader:()=>this.fetchFromNetwork(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),checksum:o}}async fetchFromNetwork(e,t){let i=await ir.get(e.reference,{configuration:t.project.configuration});return await Bi.convertToZip(i,{compressionLevel:t.project.configuration.get("compressionLevel"),prefixPath:P.getIdentVendorPath(e),stripComponents:1})}};var AL=class{supportsDescriptor(e,t){return Fm.test(e.range)?!!Nm.test(e.range):!1}supportsLocator(e,t){return Fm.test(e.reference)?!!Nm.test(e.reference):!1}shouldPersistResolution(e,t){return!0}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){return[P.convertDescriptorToLocator(e)]}async getSatisfying(e,t,i){return null}async resolve(e,t){if(!t.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await t.fetchOptions.fetcher.fetch(e,t.fetchOptions),n=await Se.releaseAfterUseAsync(async()=>await At.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return te(N({},e),{version:n.version||"0.0.0",languageName:n.languageName||t.project.configuration.get("defaultLanguageName"),linkType:Qt.HARD,conditions:n.getConditions(),dependencies:n.dependencies,peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin})}};var kWe={fetchers:[aL],resolvers:[AL]},PWe=kWe;var fL={};ft(fL,{default:()=>D4e});var cAe=ge(lAe()),gL=ge(require("util")),Lm=class extends Le{constructor(){super(...arguments);this.private=J.Boolean("-p,--private",!1,{description:"Initialize a private package"});this.workspace=J.Boolean("-w,--workspace",!1,{description:"Initialize a workspace root with a `packages/` directory"});this.install=J.String("-i,--install",!1,{tolerateBoolean:!0,description:"Initialize a package with a specific bundle that will be locked in the project"});this.usev2=J.Boolean("-2",!1,{hidden:!0});this.yes=J.Boolean("-y,--yes",{hidden:!0});this.assumeFreshProject=J.Boolean("--assume-fresh-project",!1,{hidden:!0})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=typeof this.install=="string"?this.install:this.usev2||this.install===!0?"latest":null;return t!==null?await this.executeProxy(e,t):await this.executeRegular(e)}async executeProxy(e,t){if(e.projectCwd!==null&&e.projectCwd!==this.context.cwd)throw new Pe("Cannot use the --install flag from within a project subdirectory");K.existsSync(this.context.cwd)||await K.mkdirPromise(this.context.cwd,{recursive:!0});let i=k.join(this.context.cwd,e.get("lockfileFilename"));K.existsSync(i)||await K.writeFilePromise(i,"");let n=await this.cli.run(["set","version",t],{quiet:!0});if(n!==0)return n;let s=[];return this.private&&s.push("-p"),this.workspace&&s.push("-w"),this.yes&&s.push("-y"),await K.mktempPromise(async o=>{let{code:a}=await Nr.pipevp("yarn",["init",...s],{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,env:await Zt.makeScriptEnv({binFolder:o})});return a})}async executeRegular(e){var l;let t=null;try{t=(await ze.find(e,this.context.cwd)).project}catch{t=null}K.existsSync(this.context.cwd)||await K.mkdirPromise(this.context.cwd,{recursive:!0});let i=await At.tryFind(this.context.cwd)||new At,n=Object.fromEntries(e.get("initFields").entries());i.load(n),i.name=(l=i.name)!=null?l:P.makeIdent(e.get("initScope"),k.basename(this.context.cwd)),i.packageManager=Ur&&Se.isTaggedYarnVersion(Ur)?`yarn@${Ur}`:null,typeof i.raw.private=="undefined"&&(this.private||this.workspace&&i.workspaceDefinitions.length===0)&&(i.private=!0),this.workspace&&i.workspaceDefinitions.length===0&&(await K.mkdirPromise(k.join(this.context.cwd,"packages"),{recursive:!0}),i.workspaceDefinitions=[{pattern:"packages/*"}]);let s={};i.exportTo(s),gL.inspect.styles.name="cyan",this.context.stdout.write(`${(0,gL.inspect)(s,{depth:Infinity,colors:!0,compact:!1})} +`);let o=k.join(this.context.cwd,At.fileName);await K.changeFilePromise(o,`${JSON.stringify(s,null,2)} +`,{automaticNewlines:!0});let a=k.join(this.context.cwd,"README.md");if(K.existsSync(a)||await K.writeFilePromise(a,`# ${P.stringifyIdent(i.name)} +`),!t||t.cwd===this.context.cwd){let c=k.join(this.context.cwd,kt.lockfile);K.existsSync(c)||await K.writeFilePromise(c,"");let g=[".yarn/*","!.yarn/patches","!.yarn/plugins","!.yarn/releases","!.yarn/sdks","!.yarn/versions","","# Swap the comments on the following lines if you don't wish to use zero-installs","# Documentation here: https://yarnpkg.com/features/zero-installs","!.yarn/cache","#.pnp.*"].map(y=>`${y} +`).join(""),f=k.join(this.context.cwd,".gitignore");K.existsSync(f)||await K.writeFilePromise(f,g);let h={["*"]:{endOfLine:"lf",insertFinalNewline:!0},["*.{js,json,yml}"]:{charset:"utf-8",indentStyle:"space",indentSize:2}};(0,cAe.default)(h,e.get("initEditorConfig"));let p=`root = true +`;for(let[y,b]of Object.entries(h)){p+=` +[${y}] +`;for(let[v,x]of Object.entries(b))p+=`${v.replace(/[A-Z]/g,q=>`_${q.toLowerCase()}`)} = ${x} +`}let m=k.join(this.context.cwd,".editorconfig");K.existsSync(m)||await K.writeFilePromise(m,p),K.existsSync(k.join(this.context.cwd,".git"))||await Nr.execvp("git",["init"],{cwd:this.context.cwd})}}};Lm.paths=[["init"]],Lm.usage=Re.Usage({description:"create a new package",details:"\n This command will setup a new package in your local directory.\n\n If the `-p,--private` or `-w,--workspace` options are set, the package will be private by default.\n\n If the `-w,--workspace` option is set, the package will be configured to accept a set of workspaces in the `packages/` directory.\n\n If the `-i,--install` option is given a value, Yarn will first download it using `yarn set version` and only then forward the init call to the newly downloaded bundle. Without arguments, the downloaded bundle will be `latest`.\n\n The initial settings of the manifest can be changed by using the `initScope` and `initFields` configuration values. Additionally, Yarn will generate an EditorConfig file whose rules can be altered via `initEditorConfig`, and will initialize a Git repository in the current directory.\n ",examples:[["Create a new package in the local directory","yarn init"],["Create a new private package in the local directory","yarn init -p"],["Create a new package and store the Yarn release inside","yarn init -i=latest"],["Create a new private package and defines it as a workspace root","yarn init -w"]]});var uAe=Lm;var P4e={configuration:{initScope:{description:"Scope used when creating packages via the init command",type:Ie.STRING,default:null},initFields:{description:"Additional fields to set when creating packages via the init command",type:Ie.MAP,valueDefinition:{description:"",type:Ie.ANY}},initEditorConfig:{description:"Extra rules to define in the generator editorconfig",type:Ie.MAP,valueDefinition:{description:"",type:Ie.ANY}}},commands:[uAe]},D4e=P4e;var mL={};ft(mL,{default:()=>F4e});var wA="portal:",BA="link:";var hL=class{supports(e,t){return!!e.reference.startsWith(wA)}getLocalPath(e,t){let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:wA});if(k.isAbsolute(n))return n;let s=t.fetcher.getLocalPath(i,t);return s===null?null:k.resolve(s,n)}async fetch(e,t){var c;let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:wA}),s=k.isAbsolute(n)?{packageFs:new _t(Me.root),prefixPath:Me.dot,localPath:Me.root}:await t.fetcher.fetch(i,t),o=s.localPath?{packageFs:new _t(Me.root),prefixPath:k.relative(Me.root,s.localPath),localPath:Me.root}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=k.resolve((c=o.localPath)!=null?c:o.packageFs.getRealPath(),o.prefixPath,n);return s.localPath?{packageFs:new _t(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Me.dot,localPath:l}:{packageFs:new La(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Me.dot}}};var pL=class{supportsDescriptor(e,t){return!!e.range.startsWith(wA)}supportsLocator(e,t){return!!e.reference.startsWith(wA)}shouldPersistResolution(e,t){return!1}bindDescriptor(e,t,i){return P.bindDescriptor(e,{locator:P.stringifyLocator(t)})}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){let n=e.range.slice(wA.length);return[P.makeLocator(e,`${wA}${H.toPortablePath(n)}`)]}async getSatisfying(e,t,i){return null}async resolve(e,t){if(!t.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let i=await t.fetchOptions.fetcher.fetch(e,t.fetchOptions),n=await Se.releaseAfterUseAsync(async()=>await At.find(i.prefixPath,{baseFs:i.packageFs}),i.releaseFs);return te(N({},e),{version:n.version||"0.0.0",languageName:n.languageName||t.project.configuration.get("defaultLanguageName"),linkType:Qt.SOFT,conditions:n.getConditions(),dependencies:new Map([...n.dependencies]),peerDependencies:n.peerDependencies,dependenciesMeta:n.dependenciesMeta,peerDependenciesMeta:n.peerDependenciesMeta,bin:n.bin})}};var dL=class{supports(e,t){return!!e.reference.startsWith(BA)}getLocalPath(e,t){let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:BA});if(k.isAbsolute(n))return n;let s=t.fetcher.getLocalPath(i,t);return s===null?null:k.resolve(s,n)}async fetch(e,t){var c;let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:BA}),s=k.isAbsolute(n)?{packageFs:new _t(Me.root),prefixPath:Me.dot,localPath:Me.root}:await t.fetcher.fetch(i,t),o=s.localPath?{packageFs:new _t(Me.root),prefixPath:k.relative(Me.root,s.localPath),localPath:Me.root}:s;s!==o&&s.releaseFs&&s.releaseFs();let a=o.packageFs,l=k.resolve((c=o.localPath)!=null?c:o.packageFs.getRealPath(),o.prefixPath,n);return s.localPath?{packageFs:new _t(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Me.dot,discardFromLookup:!0,localPath:l}:{packageFs:new La(l,{baseFs:a}),releaseFs:o.releaseFs,prefixPath:Me.dot,discardFromLookup:!0}}};var CL=class{supportsDescriptor(e,t){return!!e.range.startsWith(BA)}supportsLocator(e,t){return!!e.reference.startsWith(BA)}shouldPersistResolution(e,t){return!1}bindDescriptor(e,t,i){return P.bindDescriptor(e,{locator:P.stringifyLocator(t)})}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){let n=e.range.slice(BA.length);return[P.makeLocator(e,`${BA}${H.toPortablePath(n)}`)]}async getSatisfying(e,t,i){return null}async resolve(e,t){return te(N({},e),{version:"0.0.0",languageName:t.project.configuration.get("defaultLanguageName"),linkType:Qt.SOFT,conditions:null,dependencies:new Map,peerDependencies:new Map,dependenciesMeta:new Map,peerDependenciesMeta:new Map,bin:new Map})}};var R4e={fetchers:[dL,hL],resolvers:[CL,pL]},F4e=R4e;var JL={};ft(JL,{default:()=>j8e});var Mn;(function(i){i[i.REGULAR=0]="REGULAR",i[i.WORKSPACE=1]="WORKSPACE",i[i.EXTERNAL_SOFT_LINK=2]="EXTERNAL_SOFT_LINK"})(Mn||(Mn={}));var bA;(function(i){i[i.YES=0]="YES",i[i.NO=1]="NO",i[i.DEPENDS=2]="DEPENDS"})(bA||(bA={}));var EL=(r,e)=>`${r}@${e}`,gAe=(r,e)=>{let t=e.indexOf("#"),i=t>=0?e.substring(t+1):e;return EL(r,i)},yo;(function(s){s[s.NONE=-1]="NONE",s[s.PERF=0]="PERF",s[s.CHECK=1]="CHECK",s[s.REASONS=2]="REASONS",s[s.INTENSIVE_CHECK=9]="INTENSIVE_CHECK"})(yo||(yo={}));var hAe=(r,e={})=>{let t=e.debugLevel||Number(process.env.NM_DEBUG_LEVEL||-1),i=e.check||t>=9,n=e.hoistingLimits||new Map,s={check:i,debugLevel:t,hoistingLimits:n,fastLookupPossible:!0},o;s.debugLevel>=0&&(o=Date.now());let a=N4e(r,s),l=!1,c=0;do l=IL(a,[a],new Set([a.locator]),new Map,s).anotherRoundNeeded,s.fastLookupPossible=!1,c++;while(l);if(s.debugLevel>=0&&console.log(`hoist time: ${Date.now()-o}ms, rounds: ${c}`),s.debugLevel>=1){let u=Tm(a);if(IL(a,[a],new Set([a.locator]),new Map,s).isGraphChanged)throw new Error(`The hoisting result is not terminal, prev tree: +${u}, next tree: +${Tm(a)}`);let f=fAe(a);if(f)throw new Error(`${f}, after hoisting finished: +${Tm(a)}`)}return s.debugLevel>=2&&console.log(Tm(a)),L4e(a)},T4e=r=>{let e=r[r.length-1],t=new Map,i=new Set,n=s=>{if(!i.has(s)){i.add(s);for(let o of s.hoistedDependencies.values())t.set(o.name,o);for(let o of s.dependencies.values())s.peerNames.has(o.name)||n(o)}};return n(e),t},O4e=r=>{let e=r[r.length-1],t=new Map,i=new Set,n=new Set,s=(o,a)=>{if(i.has(o))return;i.add(o);for(let c of o.hoistedDependencies.values())if(!a.has(c.name)){let u;for(let g of r)u=g.dependencies.get(c.name),u&&t.set(u.name,u)}let l=new Set;for(let c of o.dependencies.values())l.add(c.name);for(let c of o.dependencies.values())o.peerNames.has(c.name)||s(c,l)};return s(e,n),t},pAe=(r,e)=>{if(e.decoupled)return e;let{name:t,references:i,ident:n,locator:s,dependencies:o,originalDependencies:a,hoistedDependencies:l,peerNames:c,reasons:u,isHoistBorder:g,hoistPriority:f,dependencyKind:h,hoistedFrom:p,hoistedTo:m}=e,y={name:t,references:new Set(i),ident:n,locator:s,dependencies:new Map(o),originalDependencies:new Map(a),hoistedDependencies:new Map(l),peerNames:new Set(c),reasons:new Map(u),decoupled:!0,isHoistBorder:g,hoistPriority:f,dependencyKind:h,hoistedFrom:new Map(p),hoistedTo:new Map(m)},b=y.dependencies.get(t);return b&&b.ident==y.ident&&y.dependencies.set(t,y),r.dependencies.set(y.name,y),y},M4e=(r,e)=>{let t=new Map([[r.name,[r.ident]]]);for(let n of r.dependencies.values())r.peerNames.has(n.name)||t.set(n.name,[n.ident]);let i=Array.from(e.keys());i.sort((n,s)=>{let o=e.get(n),a=e.get(s);return a.hoistPriority!==o.hoistPriority?a.hoistPriority-o.hoistPriority:a.peerDependents.size!==o.peerDependents.size?a.peerDependents.size-o.peerDependents.size:a.dependents.size-o.dependents.size});for(let n of i){let s=n.substring(0,n.indexOf("@",1)),o=n.substring(s.length+1);if(!r.peerNames.has(s)){let a=t.get(s);a||(a=[],t.set(s,a)),a.indexOf(o)<0&&a.push(o)}}return t},yL=r=>{let e=new Set,t=(i,n=new Set)=>{if(!n.has(i)){n.add(i);for(let s of i.peerNames)if(!r.peerNames.has(s)){let o=r.dependencies.get(s);o&&!e.has(o)&&t(o,n)}e.add(i)}};for(let i of r.dependencies.values())r.peerNames.has(i.name)||t(i);return e},IL=(r,e,t,i,n,s=new Set)=>{let o=e[e.length-1];if(s.has(o))return{anotherRoundNeeded:!1,isGraphChanged:!1};s.add(o);let a=U4e(o),l=M4e(o,a),c=r==o?new Map:n.fastLookupPossible?T4e(e):O4e(e),u,g=!1,f=!1,h=new Map(Array.from(l.entries()).map(([m,y])=>[m,y[0]])),p=new Map;do{let m=K4e(r,e,t,c,h,l,i,p,n);m.isGraphChanged&&(f=!0),m.anotherRoundNeeded&&(g=!0),u=!1;for(let[y,b]of l)b.length>1&&!o.dependencies.has(y)&&(h.delete(y),b.shift(),h.set(y,b[0]),u=!0)}while(u);for(let m of o.dependencies.values())if(!o.peerNames.has(m.name)&&!t.has(m.locator)){t.add(m.locator);let y=IL(r,[...e,m],t,p,n);y.isGraphChanged&&(f=!0),y.anotherRoundNeeded&&(g=!0),t.delete(m.locator)}return{anotherRoundNeeded:g,isGraphChanged:f}},H4e=r=>{for(let[e,t]of r.dependencies)if(!r.peerNames.has(e)&&t.ident!==r.ident)return!0;return!1},j4e=(r,e,t,i,n,s,o,a,{outputReason:l,fastLookupPossible:c})=>{let u,g=null,f=new Set;l&&(u=`${Array.from(e).map(y=>Li(y)).join("\u2192")}`);let h=t[t.length-1],m=!(i.ident===h.ident);if(l&&!m&&(g="- self-reference"),m&&(m=i.dependencyKind!==1,l&&!m&&(g="- workspace")),m&&i.dependencyKind===2&&(m=!H4e(i),l&&!m&&(g="- external soft link with unhoisted dependencies")),m&&(m=h.dependencyKind!==1||h.hoistedFrom.has(i.name)||e.size===1,l&&!m&&(g=h.reasons.get(i.name))),m&&(m=!r.peerNames.has(i.name),l&&!m&&(g=`- cannot shadow peer: ${Li(r.originalDependencies.get(i.name).locator)} at ${u}`)),m){let y=!1,b=n.get(i.name);if(y=!b||b.ident===i.ident,l&&!y&&(g=`- filled by: ${Li(b.locator)} at ${u}`),y)for(let v=t.length-1;v>=1;v--){let T=t[v].dependencies.get(i.name);if(T&&T.ident!==i.ident){y=!1;let q=a.get(h);q||(q=new Set,a.set(h,q)),q.add(i.name),l&&(g=`- filled by ${Li(T.locator)} at ${t.slice(0,v).map(Y=>Li(Y.locator)).join("\u2192")}`);break}}m=y}if(m&&(m=s.get(i.name)===i.ident,l&&!m&&(g=`- filled by: ${Li(o.get(i.name)[0])} at ${u}`)),m){let y=!0,b=new Set(i.peerNames);for(let v=t.length-1;v>=1;v--){let x=t[v];for(let T of b){if(x.peerNames.has(T)&&x.originalDependencies.has(T))continue;let q=x.dependencies.get(T);q&&r.dependencies.get(T)!==q&&(v===t.length-1?f.add(q):(f=null,y=!1,l&&(g=`- peer dependency ${Li(q.locator)} from parent ${Li(x.locator)} was not hoisted to ${u}`))),b.delete(T)}if(!y)break}m=y}if(m&&!c)for(let y of i.hoistedDependencies.values()){let b=n.get(y.name)||r.dependencies.get(y.name);if(!b||y.ident!==b.ident){m=!1,l&&(g=`- previously hoisted dependency mismatch, needed: ${Li(y.locator)}, available: ${Li(b==null?void 0:b.locator)}`);break}}return f!==null&&f.size>0?{isHoistable:2,dependsOn:f,reason:g}:{isHoistable:m?0:1,reason:g}},$0=r=>`${r.name}@${r.locator}`,K4e=(r,e,t,i,n,s,o,a,l)=>{let c=e[e.length-1],u=new Set,g=!1,f=!1,h=(b,v,x,T,q)=>{if(u.has(T))return;let Y=[...v,$0(T)],$=[...x,$0(T)],_=new Map,ne=new Map;for(let Z of yL(T)){let O=j4e(c,t,[c,...b,T],Z,i,n,s,a,{outputReason:l.debugLevel>=2,fastLookupPossible:l.fastLookupPossible});if(ne.set(Z,O),O.isHoistable===2)for(let L of O.dependsOn){let de=_.get(L.name)||new Set;de.add(Z.name),_.set(L.name,de)}}let ee=new Set,A=(Z,O,L)=>{if(!ee.has(Z)){ee.add(Z),ne.set(Z,{isHoistable:1,reason:L});for(let de of _.get(Z.name)||[])A(T.dependencies.get(de),O,l.debugLevel>=2?`- peer dependency ${Li(Z.locator)} from parent ${Li(T.locator)} was not hoisted`:"")}};for(let[Z,O]of ne)O.isHoistable===1&&A(Z,O,O.reason);let oe=!1;for(let Z of ne.keys())if(!ee.has(Z)){f=!0;let O=o.get(T);O&&O.has(Z.name)&&(g=!0),oe=!0,T.dependencies.delete(Z.name),T.hoistedDependencies.set(Z.name,Z),T.reasons.delete(Z.name);let L=c.dependencies.get(Z.name);if(l.debugLevel>=2){let de=Array.from(v).concat([T.locator]).map(je=>Li(je)).join("\u2192"),Be=c.hoistedFrom.get(Z.name);Be||(Be=[],c.hoistedFrom.set(Z.name,Be)),Be.push(de),T.hoistedTo.set(Z.name,Array.from(e).map(je=>Li(je.locator)).join("\u2192"))}if(!L)c.ident!==Z.ident&&(c.dependencies.set(Z.name,Z),q.add(Z));else for(let de of Z.references)L.references.add(de)}if(T.dependencyKind===2&&oe&&(g=!0),l.check){let Z=fAe(r);if(Z)throw new Error(`${Z}, after hoisting dependencies of ${[c,...b,T].map(O=>Li(O.locator)).join("\u2192")}: +${Tm(r)}`)}let ce=yL(T);for(let Z of ce)if(ee.has(Z)){let O=ne.get(Z);if((n.get(Z.name)===Z.ident||!T.reasons.has(Z.name))&&O.isHoistable!==0&&T.reasons.set(Z.name,O.reason),!Z.isHoistBorder&&$.indexOf($0(Z))<0){u.add(T);let de=pAe(T,Z);h([...b,T],Y,$,de,m),u.delete(T)}}},p,m=new Set(yL(c)),y=Array.from(e).map(b=>$0(b));do{p=m,m=new Set;for(let b of p){if(b.locator===c.locator||b.isHoistBorder)continue;let v=pAe(c,b);h([],Array.from(t),y,v,m)}}while(m.size>0);return{anotherRoundNeeded:g,isGraphChanged:f}},fAe=r=>{let e=[],t=new Set,i=new Set,n=(s,o,a)=>{if(t.has(s)||(t.add(s),i.has(s)))return;let l=new Map(o);for(let c of s.dependencies.values())s.peerNames.has(c.name)||l.set(c.name,c);for(let c of s.originalDependencies.values()){let u=l.get(c.name),g=()=>`${Array.from(i).concat([s]).map(f=>Li(f.locator)).join("\u2192")}`;if(s.peerNames.has(c.name)){let f=o.get(c.name);(f!==u||!f||f.ident!==c.ident)&&e.push(`${g()} - broken peer promise: expected ${c.ident} but found ${f&&f.ident}`)}else{let f=a.hoistedFrom.get(s.name),h=s.hoistedTo.get(c.name),p=`${f?` hoisted from ${f.join(", ")}`:""}`,m=`${h?` hoisted to ${h}`:""}`,y=`${g()}${p}`;u?u.ident!==c.ident&&e.push(`${y} - broken require promise for ${c.name}${m}: expected ${c.ident}, but found: ${u.ident}`):e.push(`${y} - broken require promise: no required dependency ${c.name}${m} found`)}}i.add(s);for(let c of s.dependencies.values())s.peerNames.has(c.name)||n(c,l,s);i.delete(s)};return n(r,r.dependencies,r),e.join(` +`)},N4e=(r,e)=>{let{identName:t,name:i,reference:n,peerNames:s}=r,o={name:i,references:new Set([n]),locator:EL(t,n),ident:gAe(t,n),dependencies:new Map,originalDependencies:new Map,hoistedDependencies:new Map,peerNames:new Set(s),reasons:new Map,decoupled:!0,isHoistBorder:!0,hoistPriority:0,dependencyKind:1,hoistedFrom:new Map,hoistedTo:new Map},a=new Map([[r,o]]),l=(c,u)=>{let g=a.get(c),f=!!g;if(!g){let{name:h,identName:p,reference:m,peerNames:y,hoistPriority:b,dependencyKind:v}=c,x=e.hoistingLimits.get(u.locator);g={name:h,references:new Set([m]),locator:EL(p,m),ident:gAe(p,m),dependencies:new Map,originalDependencies:new Map,hoistedDependencies:new Map,peerNames:new Set(y),reasons:new Map,decoupled:!0,isHoistBorder:x?x.has(h):!1,hoistPriority:b||0,dependencyKind:v||0,hoistedFrom:new Map,hoistedTo:new Map},a.set(c,g)}if(u.dependencies.set(c.name,g),u.originalDependencies.set(c.name,g),f){let h=new Set,p=m=>{if(!h.has(m)){h.add(m),m.decoupled=!1;for(let y of m.dependencies.values())m.peerNames.has(y.name)||p(y)}};p(g)}else for(let h of c.dependencies)l(h,g)};for(let c of r.dependencies)l(c,o);return o},wL=r=>r.substring(0,r.indexOf("@",1)),L4e=r=>{let e={name:r.name,identName:wL(r.locator),references:new Set(r.references),dependencies:new Set},t=new Set([r]),i=(n,s,o)=>{let a=t.has(n),l;if(s===n)l=o;else{let{name:c,references:u,locator:g}=n;l={name:c,identName:wL(g),references:u,dependencies:new Set}}if(o.dependencies.add(l),!a){t.add(n);for(let c of n.dependencies.values())n.peerNames.has(c.name)||i(c,n,l);t.delete(n)}};for(let n of r.dependencies.values())i(n,r,e);return e},U4e=r=>{let e=new Map,t=new Set([r]),i=o=>`${o.name}@${o.ident}`,n=o=>{let a=i(o),l=e.get(a);return l||(l={dependents:new Set,peerDependents:new Set,hoistPriority:0},e.set(a,l)),l},s=(o,a)=>{let l=!!t.has(a);if(n(a).dependents.add(o.ident),!l){t.add(a);for(let u of a.dependencies.values()){let g=n(u);g.hoistPriority=Math.max(g.hoistPriority,u.hoistPriority),a.peerNames.has(u.name)?g.peerDependents.add(a.ident):s(a,u)}}};for(let o of r.dependencies.values())r.peerNames.has(o.name)||s(r,o);return e},Li=r=>{if(!r)return"none";let e=r.indexOf("@",1),t=r.substring(0,e);t.endsWith("$wsroot$")&&(t=`wh:${t.replace("$wsroot$","")}`);let i=r.substring(e+1);if(i==="workspace:.")return".";if(i){let n=(i.indexOf("#")>0?i.split("#")[1]:i).replace("npm:","");return i.startsWith("virtual")&&(t=`v:${t}`),n.startsWith("workspace")&&(t=`w:${t}`,n=""),`${t}${n?`@${n}`:""}`}else return`${t}`},dAe=5e4,Tm=r=>{let e=0,t=(n,s,o="")=>{if(e>dAe||s.has(n))return"";e++;let a=Array.from(n.dependencies.values()).sort((c,u)=>c.name===u.name?0:c.name>u.name?1:-1),l="";s.add(n);for(let c=0;c":"")+(f!==u.name?`a:${u.name}:`:"")+Li(u.locator)+(g?` ${g}`:"")} +`,l+=t(u,s,`${o}${cdAe?` +Tree is too large, part of the tree has been dunped +`:"")};var wo;(function(t){t.HARD="HARD",t.SOFT="SOFT"})(wo||(wo={}));var Kn;(function(i){i.WORKSPACES="workspaces",i.DEPENDENCIES="dependencies",i.NONE="none"})(Kn||(Kn={}));var CAe="node_modules",Su="$wsroot$";var Om=(r,e)=>{let{packageTree:t,hoistingLimits:i,errors:n,preserveSymlinksRequired:s}=G4e(r,e),o=null;if(n.length===0){let a=hAe(t,{hoistingLimits:i});o=Y4e(r,a,e)}return{tree:o,errors:n,preserveSymlinksRequired:s}},da=r=>`${r.name}@${r.reference}`,BL=r=>{let e=new Map;for(let[t,i]of r.entries())if(!i.dirList){let n=e.get(i.locator);n||(n={target:i.target,linkType:i.linkType,locations:[],aliases:i.aliases},e.set(i.locator,n)),n.locations.push(t)}for(let t of e.values())t.locations=t.locations.sort((i,n)=>{let s=i.split(k.delimiter).length,o=n.split(k.delimiter).length;return n===i?0:s!==o?o-s:n>i?1:-1});return e},mAe=(r,e)=>{let t=P.isVirtualLocator(r)?P.devirtualizeLocator(r):r,i=P.isVirtualLocator(e)?P.devirtualizeLocator(e):e;return P.areLocatorsEqual(t,i)},bL=(r,e,t,i)=>{if(r.linkType!==wo.SOFT)return!1;let n=H.toPortablePath(t.resolveVirtual&&e.reference&&e.reference.startsWith("virtual:")?t.resolveVirtual(r.packageLocation):r.packageLocation);return k.contains(i,n)===null},q4e=r=>{let e=r.getPackageInformation(r.topLevel);if(e===null)throw new Error("Assertion failed: Expected the top-level package to have been registered");if(r.findPackageLocator(e.packageLocation)===null)throw new Error("Assertion failed: Expected the top-level package to have a physical locator");let i=H.toPortablePath(e.packageLocation.slice(0,-1)),n=new Map,s={children:new Map},o=r.getDependencyTreeRoots(),a=new Map,l=new Set,c=(f,h)=>{let p=da(f);if(l.has(p))return;l.add(p);let m=r.getPackageInformation(f);if(m){let y=h?da(h):"";if(da(f)!==y&&m.linkType===wo.SOFT&&!bL(m,f,r,i)){let b=EAe(m,f,r);(!a.get(b)||f.reference.startsWith("workspace:"))&&a.set(b,f)}for(let[b,v]of m.packageDependencies)v!==null&&(m.packagePeers.has(b)||c(r.getLocator(b,v),f))}};for(let f of o)c(f,null);let u=i.split(k.sep);for(let f of a.values()){let h=r.getPackageInformation(f),m=H.toPortablePath(h.packageLocation.slice(0,-1)).split(k.sep).slice(u.length),y=s;for(let b of m){let v=y.children.get(b);v||(v={children:new Map},y.children.set(b,v)),y=v}y.workspaceLocator=f}let g=(f,h)=>{if(f.workspaceLocator){let p=da(h),m=n.get(p);m||(m=new Set,n.set(p,m)),m.add(f.workspaceLocator)}for(let p of f.children.values())g(p,f.workspaceLocator||h)};for(let f of s.children.values())g(f,s.workspaceLocator);return n},G4e=(r,e)=>{let t=[],i=!1,n=new Map,s=q4e(r),o=r.getPackageInformation(r.topLevel);if(o===null)throw new Error("Assertion failed: Expected the top-level package to have been registered");let a=r.findPackageLocator(o.packageLocation);if(a===null)throw new Error("Assertion failed: Expected the top-level package to have a physical locator");let l=H.toPortablePath(o.packageLocation.slice(0,-1)),c={name:a.name,identName:a.name,reference:a.reference,peerNames:o.packagePeers,dependencies:new Set,dependencyKind:Mn.WORKSPACE},u=new Map,g=(h,p)=>`${da(p)}:${h}`,f=(h,p,m,y,b,v,x,T)=>{var Z,O;let q=g(h,m),Y=u.get(q),$=!!Y;!$&&m.name===a.name&&m.reference===a.reference&&(Y=c,u.set(q,c));let _=bL(p,m,r,l);if(!Y){let L=Mn.REGULAR;_?L=Mn.EXTERNAL_SOFT_LINK:p.linkType===wo.SOFT&&m.name.endsWith(Su)&&(L=Mn.WORKSPACE),Y={name:h,identName:m.name,reference:m.reference,dependencies:new Set,peerNames:L===Mn.WORKSPACE?new Set:p.packagePeers,dependencyKind:L},u.set(q,Y)}let ne;if(_?ne=2:b.linkType===wo.SOFT?ne=1:ne=0,Y.hoistPriority=Math.max(Y.hoistPriority||0,ne),T&&!_){let L=da({name:y.identName,reference:y.reference}),de=n.get(L)||new Set;n.set(L,de),de.add(Y.name)}let ee=new Map(p.packageDependencies);if(e.project){let L=e.project.workspacesByCwd.get(H.toPortablePath(p.packageLocation.slice(0,-1)));if(L){let de=new Set([...Array.from(L.manifest.peerDependencies.values(),Be=>P.stringifyIdent(Be)),...Array.from(L.manifest.peerDependenciesMeta.keys())]);for(let Be of de)ee.has(Be)||(ee.set(Be,v.get(Be)||null),Y.peerNames.add(Be))}}let A=da({name:m.name.replace(Su,""),reference:m.reference}),oe=s.get(A);if(oe)for(let L of oe)ee.set(`${L.name}${Su}`,L.reference);(p!==b||p.linkType!==wo.SOFT||!_&&(!e.selfReferencesByCwd||e.selfReferencesByCwd.get(x)))&&y.dependencies.add(Y);let ce=m!==a&&p.linkType===wo.SOFT&&!m.name.endsWith(Su)&&!_;if(!$&&!ce){let L=new Map;for(let[de,Be]of ee)if(Be!==null){let je=r.getLocator(de,Be),re=r.getLocator(de.replace(Su,""),Be),se=r.getPackageInformation(re);if(se===null)throw new Error("Assertion failed: Expected the package to have been registered");let be=bL(se,je,r,l);if(e.validateExternalSoftLinks&&e.project&&be){se.packageDependencies.size>0&&(i=!0);for(let[ve,pe]of se.packageDependencies)if(pe!==null){let V=P.parseLocator(Array.isArray(pe)?`${pe[0]}@${pe[1]}`:`${ve}@${pe}`);if(da(V)!==da(je)){let Qe=ee.get(ve);if(Qe){let le=P.parseLocator(Array.isArray(Qe)?`${Qe[0]}@${Qe[1]}`:`${ve}@${Qe}`);mAe(le,V)||t.push({messageName:X.NM_CANT_INSTALL_EXTERNAL_SOFT_LINK,text:`Cannot link ${P.prettyIdent(e.project.configuration,P.parseIdent(je.name))} into ${P.prettyLocator(e.project.configuration,P.parseLocator(`${m.name}@${m.reference}`))} dependency ${P.prettyLocator(e.project.configuration,V)} conflicts with parent dependency ${P.prettyLocator(e.project.configuration,le)}`})}else{let le=L.get(ve);if(le){let fe=le.target,gt=P.parseLocator(Array.isArray(fe)?`${fe[0]}@${fe[1]}`:`${ve}@${fe}`);mAe(gt,V)||t.push({messageName:X.NM_CANT_INSTALL_EXTERNAL_SOFT_LINK,text:`Cannot link ${P.prettyIdent(e.project.configuration,P.parseIdent(je.name))} into ${P.prettyLocator(e.project.configuration,P.parseLocator(`${m.name}@${m.reference}`))} dependency ${P.prettyLocator(e.project.configuration,V)} conflicts with dependency ${P.prettyLocator(e.project.configuration,gt)} from sibling portal ${P.prettyIdent(e.project.configuration,P.parseIdent(le.portal.name))}`})}else L.set(ve,{target:V.reference,portal:je})}}}}let he=(Z=e.hoistingLimitsByCwd)==null?void 0:Z.get(x),Fe=be?x:k.relative(l,H.toPortablePath(se.packageLocation))||Me.dot,Ke=(O=e.hoistingLimitsByCwd)==null?void 0:O.get(Fe),ke=he===Kn.DEPENDENCIES||Ke===Kn.DEPENDENCIES||Ke===Kn.WORKSPACES;f(de,se,je,Y,p,ee,Fe,ke)}}};return f(a.name,o,a,c,o,o.packageDependencies,Me.dot,!1),{packageTree:c,hoistingLimits:n,errors:t,preserveSymlinksRequired:i}};function EAe(r,e,t){let i=t.resolveVirtual&&e.reference&&e.reference.startsWith("virtual:")?t.resolveVirtual(r.packageLocation):r.packageLocation;return H.toPortablePath(i||r.packageLocation)}function J4e(r,e,t){let i=e.getLocator(r.name.replace(Su,""),r.reference),n=e.getPackageInformation(i);if(n===null)throw new Error("Assertion failed: Expected the package to be registered");let s,o;return t.pnpifyFs?(o=H.toPortablePath(n.packageLocation),s=wo.SOFT):(o=EAe(n,r,e),s=n.linkType),{linkType:s,target:o}}var Y4e=(r,e,t)=>{let i=new Map,n=(u,g,f)=>{let{linkType:h,target:p}=J4e(u,r,t);return{locator:da(u),nodePath:g,target:p,linkType:h,aliases:f}},s=u=>{let[g,f]=u.split("/");return f?{scope:Jr(g),name:Jr(f)}:{scope:null,name:Jr(g)}},o=new Set,a=(u,g,f)=>{if(!o.has(u)){o.add(u);for(let h of u.dependencies){if(h===u)continue;let p=Array.from(h.references).sort(),m={name:h.identName,reference:p[0]},{name:y,scope:b}=s(h.name),v=b?[b,y]:[y],x=k.join(g,CAe),T=k.join(x,...v),q=`${f}/${m.name}`,Y=n(m,f,p.slice(1)),$=!1;if(Y.linkType===wo.SOFT&&t.project){let _=t.project.workspacesByCwd.get(Y.target.slice(0,-1));$=!!(_&&!_.manifest.name)}if(!h.name.endsWith(Su)&&!$){let _=i.get(T);if(_){if(_.dirList)throw new Error(`Assertion failed: ${T} cannot merge dir node with leaf node`);{let oe=P.parseLocator(_.locator),ce=P.parseLocator(Y.locator);if(_.linkType!==Y.linkType)throw new Error(`Assertion failed: ${T} cannot merge nodes with different link types ${_.nodePath}/${P.stringifyLocator(oe)} and ${f}/${P.stringifyLocator(ce)}`);if(oe.identHash!==ce.identHash)throw new Error(`Assertion failed: ${T} cannot merge nodes with different idents ${_.nodePath}/${P.stringifyLocator(oe)} and ${f}/s${P.stringifyLocator(ce)}`);Y.aliases=[...Y.aliases,..._.aliases,P.parseLocator(_.locator).reference]}}i.set(T,Y);let ne=T.split("/"),ee=ne.indexOf(CAe),A=ne.length-1;for(;ee>=0&&A>ee;){let oe=H.toPortablePath(ne.slice(0,A).join(k.sep)),ce=Jr(ne[A]),Z=i.get(oe);if(!Z)i.set(oe,{dirList:new Set([ce])});else if(Z.dirList){if(Z.dirList.has(ce))break;Z.dirList.add(ce)}A--}}a(h,Y.linkType===wo.SOFT?Y.target:T,q)}}},l=n({name:e.name,reference:Array.from(e.references)[0]},"",[]),c=l.target;return i.set(c,l),a(e,c,""),i};var LL={};ft(LL,{PnpInstaller:()=>oh,PnpLinker:()=>xu,default:()=>d8e,getPnpPath:()=>Tl,jsInstallUtils:()=>Ca,pnpUtils:()=>FL,quotePathIfNeeded:()=>GAe});var HAe=ge(ri()),jAe=ge(require("url"));var IAe;(function(t){t.HARD="HARD",t.SOFT="SOFT"})(IAe||(IAe={}));var er;(function(f){f.DEFAULT="DEFAULT",f.TOP_LEVEL="TOP_LEVEL",f.FALLBACK_EXCLUSION_LIST="FALLBACK_EXCLUSION_LIST",f.FALLBACK_EXCLUSION_ENTRIES="FALLBACK_EXCLUSION_ENTRIES",f.FALLBACK_EXCLUSION_DATA="FALLBACK_EXCLUSION_DATA",f.PACKAGE_REGISTRY_DATA="PACKAGE_REGISTRY_DATA",f.PACKAGE_REGISTRY_ENTRIES="PACKAGE_REGISTRY_ENTRIES",f.PACKAGE_STORE_DATA="PACKAGE_STORE_DATA",f.PACKAGE_STORE_ENTRIES="PACKAGE_STORE_ENTRIES",f.PACKAGE_INFORMATION_DATA="PACKAGE_INFORMATION_DATA",f.PACKAGE_DEPENDENCIES="PACKAGE_DEPENDENCIES",f.PACKAGE_DEPENDENCY="PACKAGE_DEPENDENCY"})(er||(er={}));var yAe={[er.DEFAULT]:{collapsed:!1,next:{["*"]:er.DEFAULT}},[er.TOP_LEVEL]:{collapsed:!1,next:{fallbackExclusionList:er.FALLBACK_EXCLUSION_LIST,packageRegistryData:er.PACKAGE_REGISTRY_DATA,["*"]:er.DEFAULT}},[er.FALLBACK_EXCLUSION_LIST]:{collapsed:!1,next:{["*"]:er.FALLBACK_EXCLUSION_ENTRIES}},[er.FALLBACK_EXCLUSION_ENTRIES]:{collapsed:!0,next:{["*"]:er.FALLBACK_EXCLUSION_DATA}},[er.FALLBACK_EXCLUSION_DATA]:{collapsed:!0,next:{["*"]:er.DEFAULT}},[er.PACKAGE_REGISTRY_DATA]:{collapsed:!1,next:{["*"]:er.PACKAGE_REGISTRY_ENTRIES}},[er.PACKAGE_REGISTRY_ENTRIES]:{collapsed:!0,next:{["*"]:er.PACKAGE_STORE_DATA}},[er.PACKAGE_STORE_DATA]:{collapsed:!1,next:{["*"]:er.PACKAGE_STORE_ENTRIES}},[er.PACKAGE_STORE_ENTRIES]:{collapsed:!0,next:{["*"]:er.PACKAGE_INFORMATION_DATA}},[er.PACKAGE_INFORMATION_DATA]:{collapsed:!1,next:{packageDependencies:er.PACKAGE_DEPENDENCIES,["*"]:er.DEFAULT}},[er.PACKAGE_DEPENDENCIES]:{collapsed:!1,next:{["*"]:er.PACKAGE_DEPENDENCY}},[er.PACKAGE_DEPENDENCY]:{collapsed:!0,next:{["*"]:er.DEFAULT}}};function W4e(r,e,t){let i="";i+="[";for(let n=0,s=r.length;ns(o)));let n=t.map((s,o)=>o);return n.sort((s,o)=>{for(let a of i){let l=a[s]a[o]?1:0;if(l!==0)return l}return 0}),n.map(s=>t[s])}function X4e(r){let e=new Map,t=Mm(r.fallbackExclusionList||[],[({name:i,reference:n})=>i,({name:i,reference:n})=>n]);for(let{name:i,reference:n}of t){let s=e.get(i);typeof s=="undefined"&&e.set(i,s=new Set),s.add(n)}return Array.from(e).map(([i,n])=>[i,Array.from(n)])}function Z4e(r){return Mm(r.fallbackPool||[],([e])=>e)}function $4e(r){let e=[];for(let[t,i]of Mm(r.packageRegistry,([n])=>n===null?"0":`1${n}`)){let n=[];e.push([t,n]);for(let[s,{packageLocation:o,packageDependencies:a,packagePeers:l,linkType:c,discardFromLookup:u}]of Mm(i,([g])=>g===null?"0":`1${g}`)){let g=[];t!==null&&s!==null&&!a.has(t)&&g.push([t,s]);for(let[p,m]of Mm(a.entries(),([y])=>y))g.push([p,m]);let f=l&&l.size>0?Array.from(l):void 0,h=u||void 0;n.push([s,{packageLocation:o,packageDependencies:g,packagePeers:f,linkType:c,discardFromLookup:h}])}}return e}function Km(r){return{__info:["This file is automatically generated. Do not touch it, or risk","your modifications being lost. We also recommend you not to read","it either without using the @yarnpkg/pnp package, as the data layout","is entirely unspecified and WILL change from a version to another."],dependencyTreeRoots:r.dependencyTreeRoots,enableTopLevelFallback:r.enableTopLevelFallback||!1,ignorePatternData:r.ignorePattern||null,fallbackExclusionList:X4e(r),fallbackPool:Z4e(r),packageRegistryData:$4e(r)}}var SAe=ge(QAe());function vAe(r,e){return[r?`${r} +`:"",`/* eslint-disable */ + +`,`try { +`,` Object.freeze({}).detectStrictMode = true; +`,`} catch (error) { +`," throw new Error(`The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.`);\n",`} +`,` +`,`function $$SETUP_STATE(hydrateRuntimeState, basePath) { +`,e.replace(/^/gm," "),`} +`,` +`,(0,SAe.default)()].join("")}function e8e(r){return JSON.stringify(r,null,2)}function t8e(r){return`'${r.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,`\\ +`)}'`}function r8e(r){return[`return hydrateRuntimeState(JSON.parse(${t8e(BAe(r))}), {basePath: basePath || __dirname}); +`].join("")}function i8e(r){return[`var path = require('path'); +`,`var dataLocation = path.resolve(__dirname, ${JSON.stringify(r)}); +`,`return hydrateRuntimeState(require(dataLocation), {basePath: basePath || path.dirname(dataLocation)}); +`].join("")}function xAe(r){let e=Km(r),t=r8e(e);return vAe(r.shebang,t)}function kAe(r){let e=Km(r),t=i8e(r.dataLocation),i=vAe(r.shebang,t);return{dataFile:e8e(e),loaderFile:i}}var RAe=ge(require("fs")),l8e=ge(require("path")),FAe=ge(require("util"));function SL(r,{basePath:e}){let t=H.toPortablePath(e),i=k.resolve(t),n=r.ignorePatternData!==null?new RegExp(r.ignorePatternData):null,s=new Map,o=new Map(r.packageRegistryData.map(([g,f])=>[g,new Map(f.map(([h,p])=>{var x;if(g===null!=(h===null))throw new Error("Assertion failed: The name and reference should be null, or neither should");let m=(x=p.discardFromLookup)!=null?x:!1,y={name:g,reference:h},b=s.get(p.packageLocation);b?(b.discardFromLookup=b.discardFromLookup&&m,m||(b.locator=y)):s.set(p.packageLocation,{locator:y,discardFromLookup:m});let v=null;return[h,{packageDependencies:new Map(p.packageDependencies),packagePeers:new Set(p.packagePeers),linkType:p.linkType,discardFromLookup:m,get packageLocation(){return v||(v=k.join(i,p.packageLocation))}}]}))])),a=new Map(r.fallbackExclusionList.map(([g,f])=>[g,new Set(f)])),l=new Map(r.fallbackPool),c=r.dependencyTreeRoots,u=r.enableTopLevelFallback;return{basePath:t,dependencyTreeRoots:c,enableTopLevelFallback:u,fallbackExclusionList:a,fallbackPool:l,ignorePattern:n,packageLocatorsByLocations:s,packageRegistry:o}}var Um=ge(require("module"));function sh(r,e){if(typeof r=="string")return r;if(r){let t,i;if(Array.isArray(r)){for(t=0;t0)return(f=sh(n[g],u))?f.replace("*",c.substring(g.length-1)):vu(i,c,1)}return vu(i,c)}}var vL=ge(require("util"));var ur;(function(c){c.API_ERROR="API_ERROR",c.BUILTIN_NODE_RESOLUTION_FAILED="BUILTIN_NODE_RESOLUTION_FAILED",c.EXPORTS_RESOLUTION_FAILED="EXPORTS_RESOLUTION_FAILED",c.MISSING_DEPENDENCY="MISSING_DEPENDENCY",c.MISSING_PEER_DEPENDENCY="MISSING_PEER_DEPENDENCY",c.QUALIFIED_PATH_RESOLUTION_FAILED="QUALIFIED_PATH_RESOLUTION_FAILED",c.INTERNAL="INTERNAL",c.UNDECLARED_DEPENDENCY="UNDECLARED_DEPENDENCY",c.UNSUPPORTED="UNSUPPORTED"})(ur||(ur={}));var s8e=new Set([ur.BUILTIN_NODE_RESOLUTION_FAILED,ur.MISSING_DEPENDENCY,ur.MISSING_PEER_DEPENDENCY,ur.QUALIFIED_PATH_RESOLUTION_FAILED,ur.UNDECLARED_DEPENDENCY]);function ai(r,e,t={},i){i!=null||(i=s8e.has(r)?"MODULE_NOT_FOUND":r);let n={configurable:!0,writable:!0,enumerable:!1};return Object.defineProperties(new Error(e),{code:te(N({},n),{value:i}),pnpCode:te(N({},n),{value:r}),data:te(N({},n),{value:t})})}function Bo(r){return H.normalize(H.fromPortablePath(r))}var o8e=ge(require("fs")),DAe=ge(require("module")),a8e=ge(require("path")),A8e=new Set(DAe.Module.builtinModules||Object.keys(process.binding("natives"))),tb=r=>r.startsWith("node:")||A8e.has(r);function xL(r,e){let t=Number(process.env.PNP_ALWAYS_WARN_ON_FALLBACK)>0,i=Number(process.env.PNP_DEBUG_LEVEL),n=/^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:node:)?(?:@[^/]+\/)?[^/]+)\/*(.*|)$/,s=/^(\/|\.{1,2}(\/|$))/,o=/\/$/,a=/^\.{0,2}\//,l={name:null,reference:null},c=[],u=new Set;if(r.enableTopLevelFallback===!0&&c.push(l),e.compatibilityMode!==!1)for(let re of["react-scripts","gatsby"]){let se=r.packageRegistry.get(re);if(se)for(let be of se.keys()){if(be===null)throw new Error("Assertion failed: This reference shouldn't be null");c.push({name:re,reference:be})}}let{ignorePattern:g,packageRegistry:f,packageLocatorsByLocations:h}=r;function p(re,se){return{fn:re,args:se,error:null,result:null}}function m(re){var Ke,ke,ve,pe,V,Qe;let se=(ve=(ke=(Ke=process.stderr)==null?void 0:Ke.hasColors)==null?void 0:ke.call(Ke))!=null?ve:process.stdout.isTTY,be=(le,fe)=>`[${le}m${fe}`,he=re.error;console.error(he?be("31;1",`\u2716 ${(pe=re.error)==null?void 0:pe.message.replace(/\n.*/s,"")}`):be("33;1","\u203C Resolution")),re.args.length>0&&console.error();for(let le of re.args)console.error(` ${be("37;1","In \u2190")} ${(0,vL.inspect)(le,{colors:se,compact:!0})}`);re.result&&(console.error(),console.error(` ${be("37;1","Out \u2192")} ${(0,vL.inspect)(re.result,{colors:se,compact:!0})}`));let Fe=(Qe=(V=new Error().stack.match(/(?<=^ +)at.*/gm))==null?void 0:V.slice(2))!=null?Qe:[];if(Fe.length>0){console.error();for(let le of Fe)console.error(` ${be("38;5;244",le)}`)}console.error()}function y(re,se){if(e.allowDebug===!1)return se;if(Number.isFinite(i)){if(i>=2)return(...be)=>{let he=p(re,be);try{return he.result=se(...be)}catch(Fe){throw he.error=Fe}finally{m(he)}};if(i>=1)return(...be)=>{try{return se(...be)}catch(he){let Fe=p(re,be);throw Fe.error=he,m(Fe),he}}}return se}function b(re){let se=A(re);if(!se)throw ai(ur.INTERNAL,"Couldn't find a matching entry in the dependency tree for the specified parent (this is probably an internal error)");return se}function v(re){if(re.name===null)return!0;for(let se of r.dependencyTreeRoots)if(se.name===re.name&&se.reference===re.reference)return!0;return!1}let x=new Set(["default","node","require"]);function T(re,se=x){let be=Z(k.join(re,"internal.js"),{resolveIgnored:!0,includeDiscardFromLookup:!0});if(be===null)throw ai(ur.INTERNAL,`The locator that owns the "${re}" path can't be found inside the dependency tree (this is probably an internal error)`);let{packageLocation:he}=b(be),Fe=k.join(he,kt.manifest);if(!e.fakeFs.existsSync(Fe))return null;let Ke=JSON.parse(e.fakeFs.readFileSync(Fe,"utf8")),ke=k.contains(he,re);if(ke===null)throw ai(ur.INTERNAL,"unqualifiedPath doesn't contain the packageLocation (this is probably an internal error)");a.test(ke)||(ke=`./${ke}`);let ve;try{ve=PAe(Ke,k.normalize(ke),{conditions:se,unsafe:!0})}catch(pe){throw ai(ur.EXPORTS_RESOLUTION_FAILED,pe.message,{unqualifiedPath:Bo(re),locator:be,pkgJson:Ke,subpath:Bo(ke),conditions:se},"ERR_PACKAGE_PATH_NOT_EXPORTED")}return typeof ve=="string"?k.join(he,ve):null}function q(re,se,{extensions:be}){let he;try{se.push(re),he=e.fakeFs.statSync(re)}catch(Fe){}if(he&&!he.isDirectory())return e.fakeFs.realpathSync(re);if(he&&he.isDirectory()){let Fe;try{Fe=JSON.parse(e.fakeFs.readFileSync(k.join(re,kt.manifest),"utf8"))}catch(ke){}let Ke;if(Fe&&Fe.main&&(Ke=k.resolve(re,Fe.main)),Ke&&Ke!==re){let ke=q(Ke,se,{extensions:be});if(ke!==null)return ke}}for(let Fe=0,Ke=be.length;Fe{let ve=JSON.stringify(ke.name);if(he.has(ve))return;he.add(ve);let pe=oe(ke);for(let V of pe)if(b(V).packagePeers.has(re))Fe(V);else{let le=be.get(V.name);typeof le=="undefined"&&be.set(V.name,le=new Set),le.add(V.reference)}};Fe(se);let Ke=[];for(let ke of[...be.keys()].sort())for(let ve of[...be.get(ke)].sort())Ke.push({name:ke,reference:ve});return Ke}function Z(re,{resolveIgnored:se=!1,includeDiscardFromLookup:be=!1}={}){if(_(re)&&!se)return null;let he=k.relative(r.basePath,re);he.match(s)||(he=`./${he}`),he.endsWith("/")||(he=`${he}/`);do{let Fe=h.get(he);if(typeof Fe=="undefined"||Fe.discardFromLookup&&!be){he=he.substring(0,he.lastIndexOf("/",he.length-2)+1);continue}return Fe.locator}while(he!=="");return null}function O(re,se,{considerBuiltins:be=!0}={}){if(re==="pnpapi")return H.toPortablePath(e.pnpapiResolution);if(be&&tb(re))return null;let he=Bo(re),Fe=se&&Bo(se);if(se&&_(se)&&(!k.isAbsolute(re)||Z(re)===null)){let ve=$(re,se);if(ve===!1)throw ai(ur.BUILTIN_NODE_RESOLUTION_FAILED,`The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer was explicitely ignored by the regexp) + +Require request: "${he}" +Required by: ${Fe} +`,{request:he,issuer:Fe});return H.toPortablePath(ve)}let Ke,ke=re.match(n);if(ke){if(!se)throw ai(ur.API_ERROR,"The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute",{request:he,issuer:Fe});let[,ve,pe]=ke,V=Z(se);if(!V){let jt=$(re,se);if(jt===!1)throw ai(ur.BUILTIN_NODE_RESOLUTION_FAILED,`The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer doesn't seem to be part of the Yarn-managed dependency tree). + +Require path: "${he}" +Required by: ${Fe} +`,{request:he,issuer:Fe});return H.toPortablePath(jt)}let le=b(V).packageDependencies.get(ve),fe=null;if(le==null&&V.name!==null){let jt=r.fallbackExclusionList.get(V.name);if(!jt||!jt.has(V.reference)){for(let Oi=0,Xs=c.length;Oiv(Qr))?gt=ai(ur.MISSING_PEER_DEPENDENCY,`${V.name} tried to access ${ve} (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound. + +Required package: ${ve}${ve!==he?` (via "${he}")`:""} +Required by: ${V.name}@${V.reference} (via ${Fe}) +${jt.map(Qr=>`Ancestor breaking the chain: ${Qr.name}@${Qr.reference} +`).join("")} +`,{request:he,issuer:Fe,issuerLocator:Object.assign({},V),dependencyName:ve,brokenAncestors:jt}):gt=ai(ur.MISSING_PEER_DEPENDENCY,`${V.name} tried to access ${ve} (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound. + +Required package: ${ve}${ve!==he?` (via "${he}")`:""} +Required by: ${V.name}@${V.reference} (via ${Fe}) + +${jt.map(Qr=>`Ancestor breaking the chain: ${Qr.name}@${Qr.reference} +`).join("")} +`,{request:he,issuer:Fe,issuerLocator:Object.assign({},V),dependencyName:ve,brokenAncestors:jt})}else le===void 0&&(!be&&tb(re)?v(V)?gt=ai(ur.UNDECLARED_DEPENDENCY,`Your application tried to access ${ve}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${ve} isn't otherwise declared in your dependencies, this makes the require call ambiguous and unsound. + +Required package: ${ve}${ve!==he?` (via "${he}")`:""} +Required by: ${Fe} +`,{request:he,issuer:Fe,dependencyName:ve}):gt=ai(ur.UNDECLARED_DEPENDENCY,`${V.name} tried to access ${ve}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${ve} isn't otherwise declared in ${V.name}'s dependencies, this makes the require call ambiguous and unsound. + +Required package: ${ve}${ve!==he?` (via "${he}")`:""} +Required by: ${Fe} +`,{request:he,issuer:Fe,issuerLocator:Object.assign({},V),dependencyName:ve}):v(V)?gt=ai(ur.UNDECLARED_DEPENDENCY,`Your application tried to access ${ve}, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound. + +Required package: ${ve}${ve!==he?` (via "${he}")`:""} +Required by: ${Fe} +`,{request:he,issuer:Fe,dependencyName:ve}):gt=ai(ur.UNDECLARED_DEPENDENCY,`${V.name} tried to access ${ve}, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. + +Required package: ${ve}${ve!==he?` (via "${he}")`:""} +Required by: ${V.name}@${V.reference} (via ${Fe}) +`,{request:he,issuer:Fe,issuerLocator:Object.assign({},V),dependencyName:ve}));if(le==null){if(fe===null||gt===null)throw gt||new Error("Assertion failed: Expected an error to have been set");le=fe;let jt=gt.message.replace(/\n.*/g,"");gt.message=jt,!u.has(jt)&&i!==0&&(u.add(jt),process.emitWarning(gt))}let Ht=Array.isArray(le)?{name:le[0],reference:le[1]}:{name:ve,reference:le},Mt=b(Ht);if(!Mt.packageLocation)throw ai(ur.MISSING_DEPENDENCY,`A dependency seems valid but didn't get installed for some reason. This might be caused by a partial install, such as dev vs prod. + +Required package: ${Ht.name}@${Ht.reference}${Ht.name!==he?` (via "${he}")`:""} +Required by: ${V.name}@${V.reference} (via ${Fe}) +`,{request:he,issuer:Fe,dependencyLocator:Object.assign({},Ht)});let Ei=Mt.packageLocation;pe?Ke=k.join(Ei,pe):Ke=Ei}else if(k.isAbsolute(re))Ke=k.normalize(re);else{if(!se)throw ai(ur.API_ERROR,"The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute",{request:he,issuer:Fe});let ve=k.resolve(se);se.match(o)?Ke=k.normalize(k.join(ve,re)):Ke=k.normalize(k.join(k.dirname(ve),re))}return k.normalize(Ke)}function L(re,se,be=x){if(s.test(re))return se;let he=T(se,be);return he?k.normalize(he):se}function de(re,{extensions:se=Object.keys(Um.Module._extensions)}={}){var Fe,Ke;let be=[],he=q(re,be,{extensions:se});if(he)return k.normalize(he);{let ke=Bo(re),ve=Z(re);if(ve){let{packageLocation:pe}=b(ve),V=!0;try{e.fakeFs.accessSync(pe)}catch(Qe){if((Qe==null?void 0:Qe.code)==="ENOENT")V=!1;else{let le=((Ke=(Fe=Qe==null?void 0:Qe.message)!=null?Fe:Qe)!=null?Ke:"empty exception thrown").replace(/^[A-Z]/,fe=>fe.toLowerCase());throw ai(ur.QUALIFIED_PATH_RESOLUTION_FAILED,`Required package exists but could not be accessed (${le}). + +Missing package: ${ve.name}@${ve.reference} +Expected package location: ${Bo(pe)} +`,{unqualifiedPath:ke,extensions:se})}}if(!V){let Qe=pe.includes("/unplugged/")?"Required unplugged package missing from disk. This may happen when switching branches without running installs (unplugged packages must be fully materialized on disk to work).":"Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.";throw ai(ur.QUALIFIED_PATH_RESOLUTION_FAILED,`${Qe} + +Missing package: ${ve.name}@${ve.reference} +Expected package location: ${Bo(pe)} +`,{unqualifiedPath:ke,extensions:se})}}throw ai(ur.QUALIFIED_PATH_RESOLUTION_FAILED,`Qualified path resolution failed: we looked for the following paths, but none could be accessed. + +Source path: ${ke} +${be.map(pe=>`Not found: ${Bo(pe)} +`).join("")}`,{unqualifiedPath:ke,extensions:se})}}function Be(re,se,{considerBuiltins:be,extensions:he,conditions:Fe}={}){try{let Ke=O(re,se,{considerBuiltins:be});if(re==="pnpapi")return Ke;if(Ke===null)return null;let ke=()=>se!==null?_(se):!1,ve=(!be||!tb(re))&&!ke()?L(re,Ke,Fe):Ke;return de(ve,{extensions:he})}catch(Ke){throw Object.prototype.hasOwnProperty.call(Ke,"pnpCode")&&Object.assign(Ke.data,{request:Bo(re),issuer:se&&Bo(se)}),Ke}}function je(re){let se=k.normalize(re),be=Wr.resolveVirtual(se);return be!==se?be:null}return{VERSIONS:ne,topLevel:ee,getLocator:(re,se)=>Array.isArray(se)?{name:se[0],reference:se[1]}:{name:re,reference:se},getDependencyTreeRoots:()=>[...r.dependencyTreeRoots],getAllLocators(){let re=[];for(let[se,be]of f)for(let he of be.keys())se!==null&&he!==null&&re.push({name:se,reference:he});return re},getPackageInformation:re=>{let se=A(re);if(se===null)return null;let be=H.fromPortablePath(se.packageLocation);return te(N({},se),{packageLocation:be})},findPackageLocator:re=>Z(H.toPortablePath(re)),resolveToUnqualified:y("resolveToUnqualified",(re,se,be)=>{let he=se!==null?H.toPortablePath(se):null,Fe=O(H.toPortablePath(re),he,be);return Fe===null?null:H.fromPortablePath(Fe)}),resolveUnqualified:y("resolveUnqualified",(re,se)=>H.fromPortablePath(de(H.toPortablePath(re),se))),resolveRequest:y("resolveRequest",(re,se,be)=>{let he=se!==null?H.toPortablePath(se):null,Fe=Be(H.toPortablePath(re),he,be);return Fe===null?null:H.fromPortablePath(Fe)}),resolveVirtual:y("resolveVirtual",re=>{let se=je(H.toPortablePath(re));return se!==null?H.fromPortablePath(se):null})}}var O0t=(0,FAe.promisify)(RAe.readFile);var NAe=(r,e,t)=>{let i=Km(r),n=SL(i,{basePath:e}),s=H.join(e,kt.pnpCjs);return xL(n,{fakeFs:t,pnpapiResolution:s})};var PL=ge(TAe());var Ca={};ft(Ca,{checkAndReportManifestCompatibility:()=>MAe,checkManifestCompatibility:()=>OAe,extractBuildScripts:()=>rb,getExtractHint:()=>DL,hasBindingGyp:()=>RL});function OAe(r){return P.isPackageCompatible(r,Vg.getArchitectureSet())}function MAe(r,e,{configuration:t,report:i}){return OAe(r)?!0:(i==null||i.reportWarningOnce(X.INCOMPATIBLE_ARCHITECTURE,`${P.prettyLocator(t,r)} The ${Vg.getArchitectureName()} architecture is incompatible with this package, ${e} skipped.`),!1)}function rb(r,e,t,{configuration:i,report:n}){let s=[];for(let a of["preinstall","install","postinstall"])e.manifest.scripts.has(a)&&s.push([cs.SCRIPT,a]);return!e.manifest.scripts.has("install")&&e.misc.hasBindingGyp&&s.push([cs.SHELLCODE,"node-gyp rebuild"]),s.length===0?[]:r.linkType!==Qt.HARD?(n==null||n.reportWarningOnce(X.SOFT_LINK_BUILD,`${P.prettyLocator(i,r)} lists build scripts, but is referenced through a soft link. Soft links don't support build scripts, so they'll be ignored.`),[]):t&&t.built===!1?(n==null||n.reportInfoOnce(X.BUILD_DISABLED,`${P.prettyLocator(i,r)} lists build scripts, but its build has been explicitly disabled through configuration.`),[]):!i.get("enableScripts")&&!t.built?(n==null||n.reportWarningOnce(X.DISABLED_BUILD_SCRIPTS,`${P.prettyLocator(i,r)} lists build scripts, but all build scripts have been disabled.`),[]):MAe(r,"build",{configuration:i,report:n})?s:[]}var c8e=new Set([".exe",".h",".hh",".hpp",".c",".cc",".cpp",".java",".jar",".node"]);function DL(r){return r.packageFs.getExtractHint({relevantExtensions:c8e})}function RL(r){let e=k.join(r.prefixPath,"binding.gyp");return r.packageFs.existsSync(e)}var FL={};ft(FL,{getUnpluggedPath:()=>Hm});function Hm(r,{configuration:e}){return k.resolve(e.get("pnpUnpluggedFolder"),P.slugifyLocator(r))}var u8e=new Set([P.makeIdent(null,"nan").identHash,P.makeIdent(null,"node-gyp").identHash,P.makeIdent(null,"node-pre-gyp").identHash,P.makeIdent(null,"node-addon-api").identHash,P.makeIdent(null,"fsevents").identHash,P.makeIdent(null,"open").identHash,P.makeIdent(null,"opn").identHash]),xu=class{constructor(){this.mode="strict";this.pnpCache=new Map}supportsPackage(e,t){return this.isEnabled(t)}async findPackageLocation(e,t){if(!this.isEnabled(t))throw new Error("Assertion failed: Expected the PnP linker to be enabled");let i=Tl(t.project).cjs;if(!K.existsSync(i))throw new Pe(`The project in ${ae.pretty(t.project.configuration,`${t.project.cwd}/package.json`,ae.Type.PATH)} doesn't seem to have been installed - running an install there might help`);let n=Se.getFactoryWithDefault(this.pnpCache,i,()=>Se.dynamicRequire(i,{cachingStrategy:Se.CachingStrategy.FsTime})),s={name:P.stringifyIdent(e),reference:e.reference},o=n.getPackageInformation(s);if(!o)throw new Pe(`Couldn't find ${P.prettyLocator(t.project.configuration,e)} in the currently installed PnP map - running an install might help`);return H.toPortablePath(o.packageLocation)}async findPackageLocator(e,t){if(!this.isEnabled(t))return null;let i=Tl(t.project).cjs;if(!K.existsSync(i))return null;let s=Se.getFactoryWithDefault(this.pnpCache,i,()=>Se.dynamicRequire(i,{cachingStrategy:Se.CachingStrategy.FsTime})).findPackageLocator(H.fromPortablePath(e));return s?P.makeLocator(P.parseIdent(s.name),s.reference):null}makeInstaller(e){return new oh(e)}isEnabled(e){return!(e.project.configuration.get("nodeLinker")!=="pnp"||e.project.configuration.get("pnpMode")!==this.mode)}},oh=class{constructor(e){this.opts=e;this.mode="strict";this.asyncActions=new Se.AsyncActions(10);this.packageRegistry=new Map;this.virtualTemplates=new Map;this.isESMLoaderRequired=!1;this.customData={store:new Map};this.unpluggedPaths=new Set;this.opts=e}getCustomDataKey(){return JSON.stringify({name:"PnpInstaller",version:2})}attachCustomData(e){this.customData=e}async installPackage(e,t,i){let n=P.stringifyIdent(e),s=e.reference,o=!!this.opts.project.tryWorkspaceByLocator(e),a=P.isVirtualLocator(e),l=e.peerDependencies.size>0&&!a,c=!l&&!o,u=!l&&e.linkType!==Qt.SOFT,g,f;if(c||u){let x=a?P.devirtualizeLocator(e):e;g=this.customData.store.get(x.locatorHash),typeof g=="undefined"&&(g=await g8e(t),e.linkType===Qt.HARD&&this.customData.store.set(x.locatorHash,g)),g.manifest.type==="module"&&(this.isESMLoaderRequired=!0),f=this.opts.project.getDependencyMeta(x,e.version)}let h=c?rb(e,g,f,{configuration:this.opts.project.configuration,report:this.opts.report}):[],p=u?await this.unplugPackageIfNeeded(e,g,t,f,i):t.packageFs;if(k.isAbsolute(t.prefixPath))throw new Error(`Assertion failed: Expected the prefix path (${t.prefixPath}) to be relative to the parent`);let m=k.resolve(p.getRealPath(),t.prefixPath),y=NL(this.opts.project.cwd,m),b=new Map,v=new Set;if(a){for(let x of e.peerDependencies.values())b.set(P.stringifyIdent(x),null),v.add(P.stringifyIdent(x));if(!o){let x=P.devirtualizeLocator(e);this.virtualTemplates.set(x.locatorHash,{location:NL(this.opts.project.cwd,Wr.resolveVirtual(m)),locator:x})}}return Se.getMapWithDefault(this.packageRegistry,n).set(s,{packageLocation:y,packageDependencies:b,packagePeers:v,linkType:e.linkType,discardFromLookup:t.discardFromLookup||!1}),{packageLocation:m,buildDirective:h.length>0?h:null}}async attachInternalDependencies(e,t){let i=this.getPackageInformation(e);for(let[n,s]of t){let o=P.areIdentsEqual(n,s)?s.reference:[P.stringifyIdent(s),s.reference];i.packageDependencies.set(P.stringifyIdent(n),o)}}async attachExternalDependents(e,t){for(let i of t)this.getDiskInformation(i).packageDependencies.set(P.stringifyIdent(e),e.reference)}async finalizeInstall(){if(this.opts.project.configuration.get("pnpMode")!==this.mode)return;let e=Tl(this.opts.project);if(K.existsSync(e.cjsLegacy)&&(this.opts.report.reportWarning(X.UNNAMED,`Removing the old ${ae.pretty(this.opts.project.configuration,kt.pnpJs,ae.Type.PATH)} file. You might need to manually update existing references to reference the new ${ae.pretty(this.opts.project.configuration,kt.pnpCjs,ae.Type.PATH)} file. If you use Editor SDKs, you'll have to rerun ${ae.pretty(this.opts.project.configuration,"yarn sdks",ae.Type.CODE)}.`),await K.removePromise(e.cjsLegacy)),this.isEsmEnabled()||await K.removePromise(e.esmLoader),this.opts.project.configuration.get("nodeLinker")!=="pnp"){await K.removePromise(e.cjs),await K.removePromise(this.opts.project.configuration.get("pnpDataPath")),await K.removePromise(e.esmLoader);return}for(let{locator:u,location:g}of this.virtualTemplates.values())Se.getMapWithDefault(this.packageRegistry,P.stringifyIdent(u)).set(u.reference,{packageLocation:g,packageDependencies:new Map,packagePeers:new Set,linkType:Qt.SOFT,discardFromLookup:!1});this.packageRegistry.set(null,new Map([[null,this.getPackageInformation(this.opts.project.topLevelWorkspace.anchoredLocator)]]));let t=this.opts.project.configuration.get("pnpFallbackMode"),i=this.opts.project.workspaces.map(({anchoredLocator:u})=>({name:P.stringifyIdent(u),reference:u.reference})),n=t!=="none",s=[],o=new Map,a=Se.buildIgnorePattern([".yarn/sdks/**",...this.opts.project.configuration.get("pnpIgnorePatterns")]),l=this.packageRegistry,c=this.opts.project.configuration.get("pnpShebang");if(t==="dependencies-only")for(let u of this.opts.project.storedPackages.values())this.opts.project.tryWorkspaceByLocator(u)&&s.push({name:P.stringifyIdent(u),reference:u.reference});return await this.asyncActions.wait(),await this.finalizeInstallWithPnp({dependencyTreeRoots:i,enableTopLevelFallback:n,fallbackExclusionList:s,fallbackPool:o,ignorePattern:a,packageRegistry:l,shebang:c}),{customData:this.customData}}async transformPnpSettings(e){}isEsmEnabled(){if(this.opts.project.configuration.sources.has("pnpEnableEsmLoader"))return this.opts.project.configuration.get("pnpEnableEsmLoader");if(this.isESMLoaderRequired)return!0;for(let e of this.opts.project.workspaces)if(e.manifest.type==="module")return!0;return!1}async finalizeInstallWithPnp(e){let t=Tl(this.opts.project),i=this.opts.project.configuration.get("pnpDataPath"),n=await this.locateNodeModules(e.ignorePattern);if(n.length>0){this.opts.report.reportWarning(X.DANGEROUS_NODE_MODULES,"One or more node_modules have been detected and will be removed. This operation may take some time.");for(let o of n)await K.removePromise(o)}if(await this.transformPnpSettings(e),this.opts.project.configuration.get("pnpEnableInlining")){let o=xAe(e);await K.changeFilePromise(t.cjs,o,{automaticNewlines:!0,mode:493}),await K.removePromise(i)}else{let o=k.relative(k.dirname(t.cjs),i),{dataFile:a,loaderFile:l}=kAe(te(N({},e),{dataLocation:o}));await K.changeFilePromise(t.cjs,l,{automaticNewlines:!0,mode:493}),await K.changeFilePromise(i,a,{automaticNewlines:!0,mode:420})}this.isEsmEnabled()&&(this.opts.report.reportWarning(X.UNNAMED,"ESM support for PnP uses the experimental loader API and is therefore experimental"),await K.changeFilePromise(t.esmLoader,(0,PL.default)(),{automaticNewlines:!0,mode:420}));let s=this.opts.project.configuration.get("pnpUnpluggedFolder");if(this.unpluggedPaths.size===0)await K.removePromise(s);else for(let o of await K.readdirPromise(s)){let a=k.resolve(s,o);this.unpluggedPaths.has(a)||await K.removePromise(a)}}async locateNodeModules(e){let t=[],i=e?new RegExp(e):null;for(let n of this.opts.project.workspaces){let s=k.join(n.cwd,"node_modules");if(i&&i.test(k.relative(this.opts.project.cwd,n.cwd))||!K.existsSync(s))continue;let o=await K.readdirPromise(s,{withFileTypes:!0}),a=o.filter(l=>!l.isDirectory()||l.name===".bin"||!l.name.startsWith("."));if(a.length===o.length)t.push(s);else for(let l of a)t.push(k.join(s,l.name))}return t}async unplugPackageIfNeeded(e,t,i,n,s){return this.shouldBeUnplugged(e,t,n)?this.unplugPackage(e,i,s):i.packageFs}shouldBeUnplugged(e,t,i){return typeof i.unplugged!="undefined"?i.unplugged:u8e.has(e.identHash)||e.conditions!=null?!0:t.manifest.preferUnplugged!==null?t.manifest.preferUnplugged:!!(rb(e,t,i,{configuration:this.opts.project.configuration}).length>0||t.misc.extractHint)}async unplugPackage(e,t,i){let n=Hm(e,{configuration:this.opts.project.configuration});return this.opts.project.disabledLocators.has(e.locatorHash)?new Na(n,{baseFs:t.packageFs,pathUtils:k}):(this.unpluggedPaths.add(n),i.holdFetchResult(this.asyncActions.set(e.locatorHash,async()=>{let s=k.join(n,t.prefixPath,".ready");await K.existsPromise(s)||(this.opts.project.storedBuildState.delete(e.locatorHash),await K.mkdirPromise(n,{recursive:!0}),await K.copyPromise(n,Me.dot,{baseFs:t.packageFs,overwrite:!1}),await K.writeFilePromise(s,""))})),new _t(n))}getPackageInformation(e){let t=P.stringifyIdent(e),i=e.reference,n=this.packageRegistry.get(t);if(!n)throw new Error(`Assertion failed: The package information store should have been available (for ${P.prettyIdent(this.opts.project.configuration,e)})`);let s=n.get(i);if(!s)throw new Error(`Assertion failed: The package information should have been available (for ${P.prettyLocator(this.opts.project.configuration,e)})`);return s}getDiskInformation(e){let t=Se.getMapWithDefault(this.packageRegistry,"@@disk"),i=NL(this.opts.project.cwd,e);return Se.getFactoryWithDefault(t,i,()=>({packageLocation:i,packageDependencies:new Map,packagePeers:new Set,linkType:Qt.SOFT,discardFromLookup:!1}))}};function NL(r,e){let t=k.relative(r,e);return t.match(/^\.{0,2}\//)||(t=`./${t}`),t.replace(/\/?$/,"/")}async function g8e(r){var i;let e=(i=await At.tryFind(r.prefixPath,{baseFs:r.packageFs}))!=null?i:new At,t=new Set(["preinstall","install","postinstall"]);for(let n of e.scripts.keys())t.has(n)||e.scripts.delete(n);return{manifest:{scripts:e.scripts,preferUnplugged:e.preferUnplugged,type:e.type},misc:{extractHint:DL(r),hasBindingGyp:RL(r)}}}var KAe=ge(is());var jm=class extends Le{constructor(){super(...arguments);this.all=J.Boolean("-A,--all",!1,{description:"Unplug direct dependencies from the entire project"});this.recursive=J.Boolean("-R,--recursive",!1,{description:"Unplug both direct and transitive dependencies"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.patterns=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);if(e.get("nodeLinker")!=="pnp")throw new Pe("This command can only be used if the `nodeLinker` option is set to `pnp`");await t.restoreInstallState();let s=new Set(this.patterns),o=this.patterns.map(f=>{let h=P.parseDescriptor(f),p=h.range!=="unknown"?h:P.makeDescriptor(h,"*");if(!Wt.validRange(p.range))throw new Pe(`The range of the descriptor patterns must be a valid semver range (${P.prettyDescriptor(e,p)})`);return m=>{let y=P.stringifyIdent(m);return!KAe.default.isMatch(y,P.stringifyIdent(p))||m.version&&!Wt.satisfiesWithPrereleases(m.version,p.range)?!1:(s.delete(f),!0)}}),a=()=>{let f=[];for(let h of t.storedPackages.values())!t.tryWorkspaceByLocator(h)&&!P.isVirtualLocator(h)&&o.some(p=>p(h))&&f.push(h);return f},l=f=>{let h=new Set,p=[],m=(y,b)=>{if(!h.has(y.locatorHash)&&(h.add(y.locatorHash),!t.tryWorkspaceByLocator(y)&&o.some(v=>v(y))&&p.push(y),!(b>0&&!this.recursive)))for(let v of y.dependencies.values()){let x=t.storedResolutions.get(v.descriptorHash);if(!x)throw new Error("Assertion failed: The resolution should have been registered");let T=t.storedPackages.get(x);if(!T)throw new Error("Assertion failed: The package should have been registered");m(T,b+1)}};for(let y of f){let b=t.storedPackages.get(y.anchoredLocator.locatorHash);if(!b)throw new Error("Assertion failed: The package should have been registered");m(b,0)}return p},c,u;if(this.all&&this.recursive?(c=a(),u="the project"):this.all?(c=l(t.workspaces),u="any workspace"):(c=l([i]),u="this workspace"),s.size>1)throw new Pe(`Patterns ${ae.prettyList(e,s,ae.Type.CODE)} don't match any packages referenced by ${u}`);if(s.size>0)throw new Pe(`Pattern ${ae.prettyList(e,s,ae.Type.CODE)} doesn't match any packages referenced by ${u}`);return c=Se.sortMap(c,f=>P.stringifyLocator(f)),(await Je.start({configuration:e,stdout:this.context.stdout,json:this.json},async f=>{var h;for(let p of c){let m=(h=p.version)!=null?h:"unknown",y=t.topLevelWorkspace.manifest.ensureDependencyMeta(P.makeDescriptor(p,m));y.unplugged=!0,f.reportInfo(X.UNNAMED,`Will unpack ${P.prettyLocator(e,p)} to ${ae.pretty(e,Hm(p,{configuration:e}),ae.Type.PATH)}`),f.reportJson({locator:P.stringifyLocator(p),version:m})}await t.topLevelWorkspace.persistManifest(),f.reportSeparator(),await t.install({cache:n,report:f})})).exitCode()}};jm.paths=[["unplug"]],jm.usage=Re.Usage({description:"force the unpacking of a list of packages",details:"\n This command will add the selectors matching the specified patterns to the list of packages that must be unplugged when installed.\n\n A package being unplugged means that instead of being referenced directly through its archive, it will be unpacked at install time in the directory configured via `pnpUnpluggedFolder`. Note that unpacking packages this way is generally not recommended because it'll make it harder to store your packages within the repository. However, it's a good approach to quickly and safely debug some packages, and can even sometimes be required depending on the context (for example when the package contains shellscripts).\n\n Running the command will set a persistent flag inside your top-level `package.json`, in the `dependenciesMeta` field. As such, to undo its effects, you'll need to revert the changes made to the manifest and run `yarn install` to apply the modification.\n\n By default, only direct dependencies from the current workspace are affected. If `-A,--all` is set, direct dependencies from the entire project are affected. Using the `-R,--recursive` flag will affect transitive dependencies as well as direct ones.\n\n This command accepts glob patterns inside the scope and name components (not the range). Make sure to escape the patterns to prevent your own shell from trying to expand them.\n ",examples:[["Unplug the lodash dependency from the active workspace","yarn unplug lodash"],["Unplug all instances of lodash referenced by any workspace","yarn unplug lodash -A"],["Unplug all instances of lodash referenced by the active workspace and its dependencies","yarn unplug lodash -R"],["Unplug all instances of lodash, anywhere","yarn unplug lodash -AR"],["Unplug one specific version of lodash","yarn unplug lodash@1.2.3"],["Unplug all packages with the `@babel` scope","yarn unplug '@babel/*'"],["Unplug all packages (only for testing, not recommended)","yarn unplug -R '*'"]]});var UAe=jm;var Tl=r=>({cjs:k.join(r.cwd,kt.pnpCjs),cjsLegacy:k.join(r.cwd,kt.pnpJs),esmLoader:k.join(r.cwd,".pnp.loader.mjs")}),GAe=r=>/\s/.test(r)?JSON.stringify(r):r;async function f8e(r,e,t){let i=Tl(r),n=`--require ${GAe(H.fromPortablePath(i.cjs))}`;if(K.existsSync(i.esmLoader)&&(n=`${n} --experimental-loader ${(0,jAe.pathToFileURL)(H.fromPortablePath(i.esmLoader)).href}`),i.cjs.includes(" ")&&HAe.default.lt(process.versions.node,"12.0.0"))throw new Error(`Expected the build location to not include spaces when using Node < 12.0.0 (${process.versions.node})`);if(K.existsSync(i.cjs)){let s=e.NODE_OPTIONS||"",o=/\s*--require\s+\S*\.pnp\.c?js\s*/g,a=/\s*--experimental-loader\s+\S*\.pnp\.loader\.mjs\s*/;s=s.replace(o," ").replace(a," ").trim(),s=s?`${n} ${s}`:n,e.NODE_OPTIONS=s}}async function h8e(r,e){let t=Tl(r);e(t.cjs),e(t.esmLoader),e(r.configuration.get("pnpDataPath")),e(r.configuration.get("pnpUnpluggedFolder"))}var p8e={hooks:{populateYarnPaths:h8e,setupScriptEnvironment:f8e},configuration:{nodeLinker:{description:'The linker used for installing Node packages, one of: "pnp", "node-modules"',type:Ie.STRING,default:"pnp"},pnpMode:{description:"If 'strict', generates standard PnP maps. If 'loose', merges them with the n_m resolution.",type:Ie.STRING,default:"strict"},pnpShebang:{description:"String to prepend to the generated PnP script",type:Ie.STRING,default:"#!/usr/bin/env node"},pnpIgnorePatterns:{description:"Array of glob patterns; files matching them will use the classic resolution",type:Ie.STRING,default:[],isArray:!0},pnpEnableEsmLoader:{description:"If true, Yarn will generate an ESM loader (`.pnp.loader.mjs`). If this is not explicitly set Yarn tries to automatically detect whether ESM support is required.",type:Ie.BOOLEAN,default:!1},pnpEnableInlining:{description:"If true, the PnP data will be inlined along with the generated loader",type:Ie.BOOLEAN,default:!0},pnpFallbackMode:{description:"If true, the generated PnP loader will follow the top-level fallback rule",type:Ie.STRING,default:"dependencies-only"},pnpUnpluggedFolder:{description:"Folder where the unplugged packages must be stored",type:Ie.ABSOLUTE_PATH,default:"./.yarn/unplugged"},pnpDataPath:{description:"Path of the file where the PnP data (used by the loader) must be written",type:Ie.ABSOLUTE_PATH,default:"./.pnp.data.json"}},linkers:[xu],commands:[UAe]},d8e=p8e;var _Ae=ge(zAe());var UL=ge(require("crypto")),VAe=ge(require("fs")),XAe=1,jr="node_modules",ib=".bin",ZAe=".yarn-state.yml",Ti;(function(i){i.CLASSIC="classic",i.HARDLINKS_LOCAL="hardlinks-local",i.HARDLINKS_GLOBAL="hardlinks-global"})(Ti||(Ti={}));var HL=class{constructor(){this.installStateCache=new Map}supportsPackage(e,t){return this.isEnabled(t)}async findPackageLocation(e,t){if(!this.isEnabled(t))throw new Error("Assertion failed: Expected the node-modules linker to be enabled");let i=t.project.tryWorkspaceByLocator(e);if(i)return i.cwd;let n=await Se.getFactoryWithDefault(this.installStateCache,t.project.cwd,async()=>await jL(t.project,{unrollAliases:!0}));if(n===null)throw new Pe("Couldn't find the node_modules state file - running an install might help (findPackageLocation)");let s=n.locatorMap.get(P.stringifyLocator(e));if(!s){let a=new Pe(`Couldn't find ${P.prettyLocator(t.project.configuration,e)} in the currently installed node_modules map - running an install might help`);throw a.code="LOCATOR_NOT_INSTALLED",a}let o=t.project.configuration.startingCwd;return s.locations.find(a=>k.contains(o,a))||s.locations[0]}async findPackageLocator(e,t){if(!this.isEnabled(t))return null;let i=await Se.getFactoryWithDefault(this.installStateCache,t.project.cwd,async()=>await jL(t.project,{unrollAliases:!0}));if(i===null)return null;let{locationRoot:n,segments:s}=nb(k.resolve(e),{skipPrefix:t.project.cwd}),o=i.locationTree.get(n);if(!o)return null;let a=o.locator;for(let l of s){if(o=o.children.get(l),!o)break;a=o.locator||a}return P.parseLocator(a)}makeInstaller(e){return new $Ae(e)}isEnabled(e){return e.project.configuration.get("nodeLinker")==="node-modules"}},$Ae=class{constructor(e){this.opts=e;this.localStore=new Map;this.realLocatorChecksums=new Map;this.customData={store:new Map}}getCustomDataKey(){return JSON.stringify({name:"NodeModulesInstaller",version:2})}attachCustomData(e){this.customData=e}async installPackage(e,t){var u;let i=k.resolve(t.packageFs.getRealPath(),t.prefixPath),n=this.customData.store.get(e.locatorHash);if(typeof n=="undefined"&&(n=await F8e(e,t),e.linkType===Qt.HARD&&this.customData.store.set(e.locatorHash,n)),!P.isPackageCompatible(e,this.opts.project.configuration.getSupportedArchitectures()))return{packageLocation:null,buildDirective:null};let s=new Map,o=new Set;s.has(P.stringifyIdent(e))||s.set(P.stringifyIdent(e),e.reference);let a=e;if(P.isVirtualLocator(e)){a=P.devirtualizeLocator(e);for(let g of e.peerDependencies.values())s.set(P.stringifyIdent(g),null),o.add(P.stringifyIdent(g))}let l={packageLocation:`${H.fromPortablePath(i)}/`,packageDependencies:s,packagePeers:o,linkType:e.linkType,discardFromLookup:(u=t.discardFromLookup)!=null?u:!1};this.localStore.set(e.locatorHash,{pkg:e,customPackageData:n,dependencyMeta:this.opts.project.getDependencyMeta(e,e.version),pnpNode:l});let c=t.checksum?t.checksum.substring(t.checksum.indexOf("/")+1):null;return this.realLocatorChecksums.set(a.locatorHash,c),{packageLocation:i,buildDirective:null}}async attachInternalDependencies(e,t){let i=this.localStore.get(e.locatorHash);if(typeof i=="undefined")throw new Error("Assertion failed: Expected information object to have been registered");for(let[n,s]of t){let o=P.areIdentsEqual(n,s)?s.reference:[P.stringifyIdent(s),s.reference];i.pnpNode.packageDependencies.set(P.stringifyIdent(n),o)}}async attachExternalDependents(e,t){throw new Error("External dependencies haven't been implemented for the node-modules linker")}async finalizeInstall(){if(this.opts.project.configuration.get("nodeLinker")!=="node-modules")return;let e=new Wr({baseFs:new Is({libzip:await fn(),maxOpenFiles:80,readOnlyArchives:!0})}),t=await jL(this.opts.project),i=this.opts.project.configuration.get("nmMode");(t===null||i!==t.nmMode)&&(this.opts.project.storedBuildState.clear(),t={locatorMap:new Map,binSymlinks:new Map,locationTree:new Map,nmMode:i,mtimeMs:0});let n=new Map(this.opts.project.workspaces.map(f=>{var p,m;let h=this.opts.project.configuration.get("nmHoistingLimits");try{h=Se.validateEnum(Kn,(m=(p=f.manifest.installConfig)==null?void 0:p.hoistingLimits)!=null?m:h)}catch(y){let b=P.prettyWorkspace(this.opts.project.configuration,f);this.opts.report.reportWarning(X.INVALID_MANIFEST,`${b}: Invalid 'installConfig.hoistingLimits' value. Expected one of ${Object.values(Kn).join(", ")}, using default: "${h}"`)}return[f.relativeCwd,h]})),s=new Map(this.opts.project.workspaces.map(f=>{var p,m;let h=this.opts.project.configuration.get("nmSelfReferences");return h=(m=(p=f.manifest.installConfig)==null?void 0:p.selfReferences)!=null?m:h,[f.relativeCwd,h]})),o={VERSIONS:{std:1},topLevel:{name:null,reference:null},getLocator:(f,h)=>Array.isArray(h)?{name:h[0],reference:h[1]}:{name:f,reference:h},getDependencyTreeRoots:()=>this.opts.project.workspaces.map(f=>{let h=f.anchoredLocator;return{name:P.stringifyIdent(f.locator),reference:h.reference}}),getPackageInformation:f=>{let h=f.reference===null?this.opts.project.topLevelWorkspace.anchoredLocator:P.makeLocator(P.parseIdent(f.name),f.reference),p=this.localStore.get(h.locatorHash);if(typeof p=="undefined")throw new Error("Assertion failed: Expected the package reference to have been registered");return p.pnpNode},findPackageLocator:f=>{let h=this.opts.project.tryWorkspaceByCwd(H.toPortablePath(f));if(h!==null){let p=h.anchoredLocator;return{name:P.stringifyIdent(p),reference:p.reference}}throw new Error("Assertion failed: Unimplemented")},resolveToUnqualified:()=>{throw new Error("Assertion failed: Unimplemented")},resolveUnqualified:()=>{throw new Error("Assertion failed: Unimplemented")},resolveRequest:()=>{throw new Error("Assertion failed: Unimplemented")},resolveVirtual:f=>H.fromPortablePath(Wr.resolveVirtual(H.toPortablePath(f)))},{tree:a,errors:l,preserveSymlinksRequired:c}=Om(o,{pnpifyFs:!1,validateExternalSoftLinks:!0,hoistingLimitsByCwd:n,project:this.opts.project,selfReferencesByCwd:s});if(!a){for(let{messageName:f,text:h}of l)this.opts.report.reportError(f,h);return}let u=BL(a);await N8e(t,u,{baseFs:e,project:this.opts.project,report:this.opts.report,realLocatorChecksums:this.realLocatorChecksums,loadManifest:async f=>{let h=P.parseLocator(f),p=this.localStore.get(h.locatorHash);if(typeof p=="undefined")throw new Error("Assertion failed: Expected the slot to exist");return p.customPackageData.manifest}});let g=[];for(let[f,h]of u.entries()){if(ele(f))continue;let p=P.parseLocator(f),m=this.localStore.get(p.locatorHash);if(typeof m=="undefined")throw new Error("Assertion failed: Expected the slot to exist");if(this.opts.project.tryWorkspaceByLocator(m.pkg))continue;let y=Ca.extractBuildScripts(m.pkg,m.customPackageData,m.dependencyMeta,{configuration:this.opts.project.configuration,report:this.opts.report});y.length!==0&&g.push({buildLocations:h.locations,locatorHash:p.locatorHash,buildDirective:y})}return c&&this.opts.report.reportWarning(X.NM_PRESERVE_SYMLINKS_REQUIRED,`The application uses portals and that's why ${ae.pretty(this.opts.project.configuration,"--preserve-symlinks",ae.Type.CODE)} Node option is required for launching it`),{customData:this.customData,records:g}}};async function F8e(r,e){var n;let t=(n=await At.tryFind(e.prefixPath,{baseFs:e.packageFs}))!=null?n:new At,i=new Set(["preinstall","install","postinstall"]);for(let s of t.scripts.keys())i.has(s)||t.scripts.delete(s);return{manifest:{bin:t.bin,scripts:t.scripts},misc:{extractHint:Ca.getExtractHint(e),hasBindingGyp:Ca.hasBindingGyp(e)}}}async function L8e(r,e,t,i,{installChangedByUser:n}){let s="";s+=`# Warning: This file is automatically generated. Removing it is fine, but will +`,s+=`# cause your node_modules installation to become invalidated. +`,s+=` +`,s+=`__metadata: +`,s+=` version: ${XAe} +`,s+=` nmMode: ${i.value} +`;let o=Array.from(e.keys()).sort(),a=P.stringifyLocator(r.topLevelWorkspace.anchoredLocator);for(let u of o){let g=e.get(u);s+=` +`,s+=`${JSON.stringify(u)}: +`,s+=` locations: +`;for(let f of g.locations){let h=k.contains(r.cwd,f);if(h===null)throw new Error(`Assertion failed: Expected the path to be within the project (${f})`);s+=` - ${JSON.stringify(h)} +`}if(g.aliases.length>0){s+=` aliases: +`;for(let f of g.aliases)s+=` - ${JSON.stringify(f)} +`}if(u===a&&t.size>0){s+=` bin: +`;for(let[f,h]of t){let p=k.contains(r.cwd,f);if(p===null)throw new Error(`Assertion failed: Expected the path to be within the project (${f})`);s+=` ${JSON.stringify(p)}: +`;for(let[m,y]of h){let b=k.relative(k.join(f,jr),y);s+=` ${JSON.stringify(m)}: ${JSON.stringify(b)} +`}}}}let l=r.cwd,c=k.join(l,jr,ZAe);n&&await K.removePromise(c),await K.changeFilePromise(c,s,{automaticNewlines:!0})}async function jL(r,{unrollAliases:e=!1}={}){let t=r.cwd,i=k.join(t,jr,ZAe),n;try{n=await K.statPromise(i)}catch(c){}if(!n)return null;let s=Si(await K.readFilePromise(i,"utf8"));if(s.__metadata.version>XAe)return null;let o=s.__metadata.nmMode||Ti.CLASSIC,a=new Map,l=new Map;delete s.__metadata;for(let[c,u]of Object.entries(s)){let g=u.locations.map(h=>k.join(t,h)),f=u.bin;if(f)for(let[h,p]of Object.entries(f)){let m=k.join(t,H.toPortablePath(h)),y=Se.getMapWithDefault(l,m);for(let[b,v]of Object.entries(p))y.set(Jr(b),H.toPortablePath([m,jr,v].join(k.sep)))}if(a.set(c,{target:Me.dot,linkType:Qt.HARD,locations:g,aliases:u.aliases||[]}),e&&u.aliases)for(let h of u.aliases){let{scope:p,name:m}=P.parseLocator(c),y=P.makeLocator(P.makeIdent(p,m),h),b=P.stringifyLocator(y);a.set(b,{target:Me.dot,linkType:Qt.HARD,locations:g,aliases:[]})}}return{locatorMap:a,binSymlinks:l,locationTree:tle(a,{skipPrefix:r.cwd}),nmMode:o,mtimeMs:n.mtimeMs}}var Ah=async(r,e)=>{if(r.split(k.sep).indexOf(jr)<0)throw new Error(`Assertion failed: trying to remove dir that doesn't contain node_modules: ${r}`);try{if(!e.innerLoop){let i=e.allowSymlink?await K.statPromise(r):await K.lstatPromise(r);if(e.allowSymlink&&!i.isDirectory()||!e.allowSymlink&&i.isSymbolicLink()){await K.unlinkPromise(r);return}}let t=await K.readdirPromise(r,{withFileTypes:!0});for(let i of t){let n=k.join(r,Jr(i.name));i.isDirectory()?(i.name!==jr||e&&e.innerLoop)&&await Ah(n,{innerLoop:!0,contentsOnly:!1}):await K.unlinkPromise(n)}e.contentsOnly||await K.rmdirPromise(r)}catch(t){if(t.code!=="ENOENT"&&t.code!=="ENOTEMPTY")throw t}},rle=4,nb=(r,{skipPrefix:e})=>{let t=k.contains(e,r);if(t===null)throw new Error(`Assertion failed: Writing attempt prevented to ${r} which is outside project root: ${e}`);let i=t.split(k.sep).filter(l=>l!==""),n=i.indexOf(jr),s=i.slice(0,n).join(k.sep),o=k.join(e,s),a=i.slice(n);return{locationRoot:o,segments:a}},tle=(r,{skipPrefix:e})=>{let t=new Map;if(r===null)return t;let i=()=>({children:new Map,linkType:Qt.HARD});for(let[n,s]of r.entries()){if(s.linkType===Qt.SOFT&&k.contains(e,s.target)!==null){let a=Se.getFactoryWithDefault(t,s.target,i);a.locator=n,a.linkType=s.linkType}for(let o of s.locations){let{locationRoot:a,segments:l}=nb(o,{skipPrefix:e}),c=Se.getFactoryWithDefault(t,a,i);for(let u=0;u{let t;try{process.platform==="win32"&&(t=await K.lstatPromise(r))}catch(i){}process.platform=="win32"&&(!t||t.isDirectory())?await K.symlinkPromise(r,e,"junction"):await K.symlinkPromise(k.relative(k.dirname(e),r),e)};async function ile(r,e,t){let i=k.join(r,Jr(`${UL.default.randomBytes(16).toString("hex")}.tmp`));try{await K.writeFilePromise(i,t);try{await K.linkPromise(i,e)}catch(n){}}finally{await K.unlinkPromise(i)}}async function T8e({srcPath:r,dstPath:e,srcMode:t,globalHardlinksStore:i,baseFs:n,nmMode:s,digest:o}){if(s.value===Ti.HARDLINKS_GLOBAL&&i&&o){let l=k.join(i,o.substring(0,2),`${o.substring(2)}.dat`),c;try{if(await Dn.checksumFile(l,{baseFs:K,algorithm:"sha1"})!==o){let g=k.join(i,Jr(`${UL.default.randomBytes(16).toString("hex")}.tmp`));await K.renamePromise(l,g);let f=await n.readFilePromise(r);await K.writeFilePromise(g,f);try{await K.linkPromise(g,l),await K.unlinkPromise(g)}catch(h){}}await K.linkPromise(l,e),c=!0}catch(u){c=!1}if(!c){let u=await n.readFilePromise(r);await ile(i,l,u);try{await K.linkPromise(l,e)}catch(g){g&&g.code&&g.code=="EXDEV"&&(s.value=Ti.HARDLINKS_LOCAL,await n.copyFilePromise(r,e))}}}else await n.copyFilePromise(r,e);let a=t&511;a!==420&&await K.chmodPromise(e,a)}var Ol;(function(i){i.FILE="file",i.DIRECTORY="directory",i.SYMLINK="symlink"})(Ol||(Ol={}));var O8e=async(r,e,{baseFs:t,globalHardlinksStore:i,nmMode:n,packageChecksum:s})=>{await K.mkdirPromise(r,{recursive:!0});let o=async(l=Me.dot)=>{let c=k.join(e,l),u=await t.readdirPromise(c,{withFileTypes:!0}),g=new Map;for(let f of u){let h=k.join(l,f.name),p,m=k.join(c,f.name);if(f.isFile()){if(p={kind:Ol.FILE,mode:(await t.lstatPromise(m)).mode},n.value===Ti.HARDLINKS_GLOBAL){let y=await Dn.checksumFile(m,{baseFs:t,algorithm:"sha1"});p.digest=y}}else if(f.isDirectory())p={kind:Ol.DIRECTORY};else if(f.isSymbolicLink())p={kind:Ol.SYMLINK,symlinkTo:await t.readlinkPromise(m)};else throw new Error(`Unsupported file type (file: ${m}, mode: 0o${await t.statSync(m).mode.toString(8).padStart(6,"0")})`);if(g.set(h,p),f.isDirectory()&&h!==jr){let y=await o(h);for(let[b,v]of y)g.set(b,v)}}return g},a;if(n.value===Ti.HARDLINKS_GLOBAL&&i&&s){let l=k.join(i,s.substring(0,2),`${s.substring(2)}.json`);try{a=new Map(Object.entries(JSON.parse(await K.readFilePromise(l,"utf8"))))}catch(c){a=await o(),await ile(i,l,Buffer.from(JSON.stringify(Object.fromEntries(a))))}}else a=await o();for(let[l,c]of a){let u=k.join(e,l),g=k.join(r,l);c.kind===Ol.DIRECTORY?await K.mkdirPromise(g,{recursive:!0}):c.kind===Ol.FILE?await T8e({srcPath:u,dstPath:g,srcMode:c.mode,digest:c.digest,nmMode:n,baseFs:t,globalHardlinksStore:i}):c.kind===Ol.SYMLINK&&await GL(k.resolve(k.dirname(g),c.symlinkTo),g)}};function M8e(r,e,t,i){let n=new Map,s=new Map,o=new Map,a=!1,l=(c,u,g,f,h)=>{let p=!0,m=k.join(c,u),y=new Set;if(u===jr||u.startsWith("@")){let v;try{v=K.statSync(m)}catch(T){}p=!!v,v?v.mtimeMs>t?(a=!0,y=new Set(K.readdirSync(m))):y=new Set(g.children.get(u).children.keys()):a=!0;let x=e.get(c);if(x){let T=k.join(c,jr,ib),q;try{q=K.statSync(T)}catch(Y){}if(!q)a=!0;else if(q.mtimeMs>t){a=!0;let Y=new Set(K.readdirSync(T)),$=new Map;s.set(c,$);for(let[_,ne]of x)Y.has(_)&&$.set(_,ne)}else s.set(c,x)}}else p=h.has(u);let b=g.children.get(u);if(p){let{linkType:v,locator:x}=b,T={children:new Map,linkType:v,locator:x};if(f.children.set(u,T),x){let q=Se.getSetWithDefault(o,x);q.add(m),o.set(x,q)}for(let q of b.children.keys())l(m,q,b,T,y)}else b.locator&&i.storedBuildState.delete(P.parseLocator(b.locator).locatorHash)};for(let[c,u]of r){let{linkType:g,locator:f}=u,h={children:new Map,linkType:g,locator:f};if(n.set(c,h),f){let p=Se.getSetWithDefault(o,u.locator);p.add(c),o.set(u.locator,p)}u.children.has(jr)&&l(c,jr,u,h,new Set)}return{locationTree:n,binSymlinks:s,locatorLocations:o,installChangedByUser:a}}function ele(r){let e=P.parseDescriptor(r);return P.isVirtualDescriptor(e)&&(e=P.devirtualizeDescriptor(e)),e.range.startsWith("link:")}async function K8e(r,e,t,{loadManifest:i}){let n=new Map;for(let[a,{locations:l}]of r){let c=ele(a)?null:await i(a,l[0]),u=new Map;if(c)for(let[g,f]of c.bin){let h=k.join(l[0],f);f!==""&&K.existsSync(h)&&u.set(g,f)}n.set(a,u)}let s=new Map,o=(a,l,c)=>{let u=new Map,g=k.contains(t,a);if(c.locator&&g!==null){let f=n.get(c.locator);for(let[h,p]of f){let m=k.join(a,H.toPortablePath(p));u.set(Jr(h),m)}for(let[h,p]of c.children){let m=k.join(a,h),y=o(m,m,p);y.size>0&&s.set(a,new Map([...s.get(a)||new Map,...y]))}}else for(let[f,h]of c.children){let p=o(k.join(a,f),l,h);for(let[m,y]of p)u.set(m,y)}return u};for(let[a,l]of e){let c=o(a,a,l);c.size>0&&s.set(a,new Map([...s.get(a)||new Map,...c]))}return s}var nle=(r,e)=>{if(!r||!e)return r===e;let t=P.parseLocator(r);P.isVirtualLocator(t)&&(t=P.devirtualizeLocator(t));let i=P.parseLocator(e);return P.isVirtualLocator(i)&&(i=P.devirtualizeLocator(i)),P.areLocatorsEqual(t,i)};function YL(r){return k.join(r.get("globalFolder"),"store")}async function N8e(r,e,{baseFs:t,project:i,report:n,loadManifest:s,realLocatorChecksums:o}){let a=k.join(i.cwd,jr),{locationTree:l,binSymlinks:c,locatorLocations:u,installChangedByUser:g}=M8e(r.locationTree,r.binSymlinks,r.mtimeMs,i),f=tle(e,{skipPrefix:i.cwd}),h=[],p=async({srcDir:_,dstDir:ne,linkType:ee,globalHardlinksStore:A,nmMode:oe,packageChecksum:ce})=>{let Z=(async()=>{try{ee===Qt.SOFT?(await K.mkdirPromise(k.dirname(ne),{recursive:!0}),await GL(k.resolve(_),ne)):await O8e(ne,_,{baseFs:t,globalHardlinksStore:A,nmMode:oe,packageChecksum:ce})}catch(O){throw O.message=`While persisting ${_} -> ${ne} ${O.message}`,O}finally{T.tick()}})().then(()=>h.splice(h.indexOf(Z),1));h.push(Z),h.length>rle&&await Promise.race(h)},m=async(_,ne,ee)=>{let A=(async()=>{let oe=async(ce,Z,O)=>{try{O.innerLoop||await K.mkdirPromise(Z,{recursive:!0});let L=await K.readdirPromise(ce,{withFileTypes:!0});for(let de of L){if(!O.innerLoop&&de.name===ib)continue;let Be=k.join(ce,de.name),je=k.join(Z,de.name);de.isDirectory()?(de.name!==jr||O&&O.innerLoop)&&(await K.mkdirPromise(je,{recursive:!0}),await oe(Be,je,te(N({},O),{innerLoop:!0}))):$.value===Ti.HARDLINKS_LOCAL||$.value===Ti.HARDLINKS_GLOBAL?await K.linkPromise(Be,je):await K.copyFilePromise(Be,je,VAe.default.constants.COPYFILE_FICLONE)}}catch(L){throw O.innerLoop||(L.message=`While cloning ${ce} -> ${Z} ${L.message}`),L}finally{O.innerLoop||T.tick()}};await oe(_,ne,ee)})().then(()=>h.splice(h.indexOf(A),1));h.push(A),h.length>rle&&await Promise.race(h)},y=async(_,ne,ee)=>{if(ee)for(let[A,oe]of ne.children){let ce=ee.children.get(A);await y(k.join(_,A),oe,ce)}else{ne.children.has(jr)&&await Ah(k.join(_,jr),{contentsOnly:!1});let A=k.basename(_)===jr&&f.has(k.join(k.dirname(_),k.sep));await Ah(_,{contentsOnly:_===a,allowSymlink:A})}};for(let[_,ne]of l){let ee=f.get(_);for(let[A,oe]of ne.children){if(A===".")continue;let ce=ee&&ee.children.get(A),Z=k.join(_,A);await y(Z,oe,ce)}}let b=async(_,ne,ee)=>{if(ee){nle(ne.locator,ee.locator)||await Ah(_,{contentsOnly:ne.linkType===Qt.HARD});for(let[A,oe]of ne.children){let ce=ee.children.get(A);await b(k.join(_,A),oe,ce)}}else{ne.children.has(jr)&&await Ah(k.join(_,jr),{contentsOnly:!0});let A=k.basename(_)===jr&&f.has(k.join(k.dirname(_),k.sep));await Ah(_,{contentsOnly:ne.linkType===Qt.HARD,allowSymlink:A})}};for(let[_,ne]of f){let ee=l.get(_);for(let[A,oe]of ne.children){if(A===".")continue;let ce=ee&&ee.children.get(A);await b(k.join(_,A),oe,ce)}}let v=new Map,x=[];for(let[_,ne]of u)for(let ee of ne){let{locationRoot:A,segments:oe}=nb(ee,{skipPrefix:i.cwd}),ce=f.get(A),Z=A;if(ce){for(let O of oe)if(Z=k.join(Z,O),ce=ce.children.get(O),!ce)break;if(ce){let O=nle(ce.locator,_),L=e.get(ce.locator),de=L.target,Be=Z,je=L.linkType;if(O)v.has(de)||v.set(de,Be);else if(de!==Be){let re=P.parseLocator(ce.locator);P.isVirtualLocator(re)&&(re=P.devirtualizeLocator(re)),x.push({srcDir:de,dstDir:Be,linkType:je,realLocatorHash:re.locatorHash})}}}}for(let[_,{locations:ne}]of e.entries())for(let ee of ne){let{locationRoot:A,segments:oe}=nb(ee,{skipPrefix:i.cwd}),ce=l.get(A),Z=f.get(A),O=A,L=e.get(_),de=P.parseLocator(_);P.isVirtualLocator(de)&&(de=P.devirtualizeLocator(de));let Be=de.locatorHash,je=L.target,re=ee;if(je===re)continue;let se=L.linkType;for(let be of oe)Z=Z.children.get(be);if(!ce)x.push({srcDir:je,dstDir:re,linkType:se,realLocatorHash:Be});else for(let be of oe)if(O=k.join(O,be),ce=ce.children.get(be),!ce){x.push({srcDir:je,dstDir:re,linkType:se,realLocatorHash:Be});break}}let T=Ji.progressViaCounter(x.length),q=n.reportProgress(T),Y=i.configuration.get("nmMode"),$={value:Y};try{let _=$.value===Ti.HARDLINKS_GLOBAL?`${YL(i.configuration)}/v1`:null;if(_&&!await K.existsPromise(_)){await K.mkdirpPromise(_);for(let ee=0;ee<256;ee++)await K.mkdirPromise(k.join(_,ee.toString(16).padStart(2,"0")))}for(let ee of x)(ee.linkType===Qt.SOFT||!v.has(ee.srcDir))&&(v.set(ee.srcDir,ee.dstDir),await p(te(N({},ee),{globalHardlinksStore:_,nmMode:$,packageChecksum:o.get(ee.realLocatorHash)||null})));await Promise.all(h),h.length=0;for(let ee of x){let A=v.get(ee.srcDir);ee.linkType!==Qt.SOFT&&ee.dstDir!==A&&await m(A,ee.dstDir,{nmMode:$})}await Promise.all(h),await K.mkdirPromise(a,{recursive:!0});let ne=await K8e(e,f,i.cwd,{loadManifest:s});await U8e(c,ne,i.cwd),await L8e(i,e,ne,$,{installChangedByUser:g}),Y==Ti.HARDLINKS_GLOBAL&&$.value==Ti.HARDLINKS_LOCAL&&n.reportWarningOnce(X.NM_HARDLINKS_MODE_DOWNGRADED,"'nmMode' has been downgraded to 'hardlinks-local' due to global cache and install folder being on different devices")}finally{q.stop()}}async function U8e(r,e,t){for(let i of r.keys()){if(k.contains(t,i)===null)throw new Error(`Assertion failed. Excepted bin symlink location to be inside project dir, instead it was at ${i}`);if(!e.has(i)){let n=k.join(i,jr,ib);await K.removePromise(n)}}for(let[i,n]of e){if(k.contains(t,i)===null)throw new Error(`Assertion failed. Excepted bin symlink location to be inside project dir, instead it was at ${i}`);let s=k.join(i,jr,ib),o=r.get(i)||new Map;await K.mkdirPromise(s,{recursive:!0});for(let a of o.keys())n.has(a)||(await K.removePromise(k.join(s,a)),process.platform==="win32"&&await K.removePromise(k.join(s,Jr(`${a}.cmd`))));for(let[a,l]of n){let c=o.get(a),u=k.join(s,a);c!==l&&(process.platform==="win32"?await(0,_Ae.default)(H.fromPortablePath(l),H.fromPortablePath(u),{createPwshFile:!1}):(await K.removePromise(u),await GL(l,u),k.contains(t,await K.realpathPromise(l))!==null&&await K.chmodPromise(l,493)))}}}var qL=class extends xu{constructor(){super(...arguments);this.mode="loose"}makeInstaller(e){return new sle(e)}},sle=class extends oh{constructor(){super(...arguments);this.mode="loose"}async transformPnpSettings(e){let t=new Wr({baseFs:new Is({libzip:await fn(),maxOpenFiles:80,readOnlyArchives:!0})}),i=NAe(e,this.opts.project.cwd,t),{tree:n,errors:s}=Om(i,{pnpifyFs:!1,project:this.opts.project});if(!n){for(let{messageName:u,text:g}of s)this.opts.report.reportError(u,g);return}let o=new Map;e.fallbackPool=o;let a=(u,g)=>{let f=P.parseLocator(g.locator),h=P.stringifyIdent(f);h===u?o.set(u,f.reference):o.set(u,[h,f.reference])},l=k.join(this.opts.project.cwd,kt.nodeModules),c=n.get(l);if(typeof c!="undefined"){if("target"in c)throw new Error("Assertion failed: Expected the root junction point to be a directory");for(let u of c.dirList){let g=k.join(l,u),f=n.get(g);if(typeof f=="undefined")throw new Error("Assertion failed: Expected the child to have been registered");if("target"in f)a(u,f);else for(let h of f.dirList){let p=k.join(g,h),m=n.get(p);if(typeof m=="undefined")throw new Error("Assertion failed: Expected the subchild to have been registered");if("target"in m)a(`${u}/${h}`,m);else throw new Error("Assertion failed: Expected the leaf junction to be a package")}}}}};var H8e={hooks:{cleanGlobalArtifacts:async r=>{let e=YL(r);await K.removePromise(e)}},configuration:{nmHoistingLimits:{description:"Prevent packages to be hoisted past specific levels",type:Ie.STRING,values:[Kn.WORKSPACES,Kn.DEPENDENCIES,Kn.NONE],default:Kn.NONE},nmMode:{description:'If set to "hardlinks-local" Yarn will utilize hardlinks to reduce disk space consumption inside "node_modules" directories. With "hardlinks-global" Yarn will use global content addressable storage to reduce "node_modules" size across all the projects using this option.',type:Ie.STRING,values:[Ti.CLASSIC,Ti.HARDLINKS_LOCAL,Ti.HARDLINKS_GLOBAL],default:Ti.CLASSIC},nmSelfReferences:{description:"If set to 'false' the workspace will not be allowed to require itself and corresponding self-referencing symlink will not be created",type:Ie.BOOLEAN,default:!0}},linkers:[HL,qL]},j8e=H8e;var qT={};ft(qT,{default:()=>V9e,npmConfigUtils:()=>br,npmHttpUtils:()=>zt,npmPublishUtils:()=>wh});var cle=ge(ri());var Cr="npm:";var zt={};ft(zt,{AuthType:()=>us,customPackageError:()=>q8e,del:()=>z8e,get:()=>bo,getIdentUrl:()=>Kl,handleInvalidAuthenticationError:()=>Ml,post:()=>J8e,put:()=>W8e});var Ale=ge(WC()),lle=ge(require("url"));var br={};ft(br,{RegistryType:()=>QA,getAuditRegistry:()=>G8e,getAuthConfiguration:()=>zL,getDefaultRegistry:()=>sb,getPublishRegistry:()=>ole,getRegistryConfiguration:()=>ale,getScopeConfiguration:()=>WL,getScopeRegistry:()=>SA,normalizeRegistry:()=>ma});var QA;(function(i){i.AUDIT_REGISTRY="npmAuditRegistry",i.FETCH_REGISTRY="npmRegistryServer",i.PUBLISH_REGISTRY="npmPublishRegistry"})(QA||(QA={}));function ma(r){return r.replace(/\/$/,"")}function G8e(r,{configuration:e}){let t=e.get(QA.AUDIT_REGISTRY);return t!==null?ma(t):ole(r,{configuration:e})}function ole(r,{configuration:e}){var t;return((t=r.publishConfig)==null?void 0:t.registry)?ma(r.publishConfig.registry):r.name?SA(r.name.scope,{configuration:e,type:QA.PUBLISH_REGISTRY}):sb({configuration:e,type:QA.PUBLISH_REGISTRY})}function SA(r,{configuration:e,type:t=QA.FETCH_REGISTRY}){let i=WL(r,{configuration:e});if(i===null)return sb({configuration:e,type:t});let n=i.get(t);return n===null?sb({configuration:e,type:t}):ma(n)}function sb({configuration:r,type:e=QA.FETCH_REGISTRY}){let t=r.get(e);return ma(t!==null?t:r.get(QA.FETCH_REGISTRY))}function ale(r,{configuration:e}){let t=e.get("npmRegistries"),i=ma(r),n=t.get(i);if(typeof n!="undefined")return n;let s=t.get(i.replace(/^[a-z]+:/,""));return typeof s!="undefined"?s:null}function WL(r,{configuration:e}){if(r===null)return null;let i=e.get("npmScopes").get(r);return i||null}function zL(r,{configuration:e,ident:t}){let i=t&&WL(t.scope,{configuration:e});return(i==null?void 0:i.get("npmAuthIdent"))||(i==null?void 0:i.get("npmAuthToken"))?i:ale(r,{configuration:e})||e}var us;(function(n){n[n.NO_AUTH=0]="NO_AUTH",n[n.BEST_EFFORT=1]="BEST_EFFORT",n[n.CONFIGURATION=2]="CONFIGURATION",n[n.ALWAYS_AUTH=3]="ALWAYS_AUTH"})(us||(us={}));async function Ml(r,{attemptedAs:e,registry:t,headers:i,configuration:n}){var s,o;if(ob(r))throw new ct(X.AUTHENTICATION_INVALID,"Invalid OTP token");if(((s=r.originalError)==null?void 0:s.name)==="HTTPError"&&((o=r.originalError)==null?void 0:o.response.statusCode)===401)throw new ct(X.AUTHENTICATION_INVALID,`Invalid authentication (${typeof e!="string"?`as ${await Y8e(t,i,{configuration:n})}`:`attempted as ${e}`})`)}function q8e(r){var e;return((e=r.response)==null?void 0:e.statusCode)===404?"Package not found":null}function Kl(r){return r.scope?`/@${r.scope}%2f${r.name}`:`/${r.name}`}async function bo(r,a){var l=a,{configuration:e,headers:t,ident:i,authType:n,registry:s}=l,o=Or(l,["configuration","headers","ident","authType","registry"]);if(i&&typeof s=="undefined"&&(s=SA(i.scope,{configuration:e})),i&&i.scope&&typeof n=="undefined"&&(n=1),typeof s!="string")throw new Error("Assertion failed: The registry should be a string");let c=await ab(s,{authType:n,configuration:e,ident:i});c&&(t=te(N({},t),{authorization:c}));try{return await ir.get(r.charAt(0)==="/"?`${s}${r}`:r,N({configuration:e,headers:t},o))}catch(u){throw await Ml(u,{registry:s,configuration:e,headers:t}),u}}async function J8e(r,e,u){var g=u,{attemptedAs:t,configuration:i,headers:n,ident:s,authType:o=3,registry:a,otp:l}=g,c=Or(g,["attemptedAs","configuration","headers","ident","authType","registry","otp"]);if(s&&typeof a=="undefined"&&(a=SA(s.scope,{configuration:i})),typeof a!="string")throw new Error("Assertion failed: The registry should be a string");let f=await ab(a,{authType:o,configuration:i,ident:s});f&&(n=te(N({},n),{authorization:f})),l&&(n=N(N({},n),lh(l)));try{return await ir.post(a+r,e,N({configuration:i,headers:n},c))}catch(h){if(!ob(h)||l)throw await Ml(h,{attemptedAs:t,registry:a,configuration:i,headers:n}),h;l=await _L();let p=N(N({},n),lh(l));try{return await ir.post(`${a}${r}`,e,N({configuration:i,headers:p},c))}catch(m){throw await Ml(m,{attemptedAs:t,registry:a,configuration:i,headers:n}),m}}}async function W8e(r,e,u){var g=u,{attemptedAs:t,configuration:i,headers:n,ident:s,authType:o=3,registry:a,otp:l}=g,c=Or(g,["attemptedAs","configuration","headers","ident","authType","registry","otp"]);if(s&&typeof a=="undefined"&&(a=SA(s.scope,{configuration:i})),typeof a!="string")throw new Error("Assertion failed: The registry should be a string");let f=await ab(a,{authType:o,configuration:i,ident:s});f&&(n=te(N({},n),{authorization:f})),l&&(n=N(N({},n),lh(l)));try{return await ir.put(a+r,e,N({configuration:i,headers:n},c))}catch(h){if(!ob(h))throw await Ml(h,{attemptedAs:t,registry:a,configuration:i,headers:n}),h;l=await _L();let p=N(N({},n),lh(l));try{return await ir.put(`${a}${r}`,e,N({configuration:i,headers:p},c))}catch(m){throw await Ml(m,{attemptedAs:t,registry:a,configuration:i,headers:n}),m}}}async function z8e(r,c){var u=c,{attemptedAs:e,configuration:t,headers:i,ident:n,authType:s=3,registry:o,otp:a}=u,l=Or(u,["attemptedAs","configuration","headers","ident","authType","registry","otp"]);if(n&&typeof o=="undefined"&&(o=SA(n.scope,{configuration:t})),typeof o!="string")throw new Error("Assertion failed: The registry should be a string");let g=await ab(o,{authType:s,configuration:t,ident:n});g&&(i=te(N({},i),{authorization:g})),a&&(i=N(N({},i),lh(a)));try{return await ir.del(o+r,N({configuration:t,headers:i},l))}catch(f){if(!ob(f)||a)throw await Ml(f,{attemptedAs:e,registry:o,configuration:t,headers:i}),f;a=await _L();let h=N(N({},i),lh(a));try{return await ir.del(`${o}${r}`,N({configuration:t,headers:h},l))}catch(p){throw await Ml(p,{attemptedAs:e,registry:o,configuration:t,headers:i}),p}}}async function ab(r,{authType:e=2,configuration:t,ident:i}){let n=zL(r,{configuration:t,ident:i}),s=_8e(n,e);if(!s)return null;let o=await t.reduceHook(a=>a.getNpmAuthenticationHeader,void 0,r,{configuration:t,ident:i});if(o)return o;if(n.get("npmAuthToken"))return`Bearer ${n.get("npmAuthToken")}`;if(n.get("npmAuthIdent")){let a=n.get("npmAuthIdent");return a.includes(":")?`Basic ${Buffer.from(a).toString("base64")}`:`Basic ${a}`}if(s&&e!==1)throw new ct(X.AUTHENTICATION_NOT_FOUND,"No authentication configured for request");return null}function _8e(r,e){switch(e){case 2:return r.get("npmAlwaysAuth");case 1:case 3:return!0;case 0:return!1;default:throw new Error("Unreachable")}}async function Y8e(r,e,{configuration:t}){var i;if(typeof e=="undefined"||typeof e.authorization=="undefined")return"an anonymous user";try{return(i=(await ir.get(new lle.URL(`${r}/-/whoami`).href,{configuration:t,headers:e,jsonResponse:!0})).username)!=null?i:"an unknown user"}catch{return"an unknown user"}}async function _L(){if(process.env.TEST_ENV)return process.env.TEST_NPM_2FA_TOKEN||"";let{otp:r}=await(0,Ale.prompt)({type:"password",name:"otp",message:"One-time password:",required:!0,onCancel:()=>process.exit(130)});return r}function ob(r){var e,t;if(((e=r.originalError)==null?void 0:e.name)!=="HTTPError")return!1;try{return((t=r.originalError)==null?void 0:t.response.headers["www-authenticate"].split(/,\s*/).map(n=>n.toLowerCase())).includes("otp")}catch(i){return!1}}function lh(r){return{["npm-otp"]:r}}var VL=class{supports(e,t){if(!e.reference.startsWith(Cr))return!1;let{selector:i,params:n}=P.parseRange(e.reference);return!(!cle.default.valid(i)||n===null||typeof n.__archiveUrl!="string")}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the remote server`),loader:()=>this.fetchFromNetwork(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),checksum:o}}async fetchFromNetwork(e,t){let{params:i}=P.parseRange(e.reference);if(i===null||typeof i.__archiveUrl!="string")throw new Error("Assertion failed: The archiveUrl querystring parameter should have been available");let n=await bo(i.__archiveUrl,{configuration:t.project.configuration,ident:e});return await Bi.convertToZip(n,{compressionLevel:t.project.configuration.get("compressionLevel"),prefixPath:P.getIdentVendorPath(e),stripComponents:1})}};var XL=class{supportsDescriptor(e,t){return!(!e.range.startsWith(Cr)||!P.tryParseDescriptor(e.range.slice(Cr.length),!0))}supportsLocator(e,t){return!1}shouldPersistResolution(e,t){throw new Error("Unreachable")}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){let i=P.parseDescriptor(e.range.slice(Cr.length),!0);return t.resolver.getResolutionDependencies(i,t)}async getCandidates(e,t,i){let n=P.parseDescriptor(e.range.slice(Cr.length),!0);return await i.resolver.getCandidates(n,t,i)}async getSatisfying(e,t,i){let n=P.parseDescriptor(e.range.slice(Cr.length),!0);return i.resolver.getSatisfying(n,t,i)}resolve(e,t){throw new Error("Unreachable")}};var ule=ge(ri()),gle=ge(require("url"));var Qo=class{supports(e,t){if(!e.reference.startsWith(Cr))return!1;let i=new gle.URL(e.reference);return!(!ule.default.valid(i.pathname)||i.searchParams.has("__archiveUrl"))}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the remote registry`),loader:()=>this.fetchFromNetwork(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),checksum:o}}async fetchFromNetwork(e,t){let i;try{i=await bo(Qo.getLocatorUrl(e),{configuration:t.project.configuration,ident:e})}catch(n){i=await bo(Qo.getLocatorUrl(e).replace(/%2f/g,"/"),{configuration:t.project.configuration,ident:e})}return await Bi.convertToZip(i,{compressionLevel:t.project.configuration.get("compressionLevel"),prefixPath:P.getIdentVendorPath(e),stripComponents:1})}static isConventionalTarballUrl(e,t,{configuration:i}){let n=SA(e.scope,{configuration:i}),s=Qo.getLocatorUrl(e);return t=t.replace(/^https?:(\/\/(?:[^/]+\.)?npmjs.org(?:$|\/))/,"https:$1"),n=n.replace(/^https:\/\/registry\.npmjs\.org($|\/)/,"https://registry.yarnpkg.com$1"),t=t.replace(/^https:\/\/registry\.npmjs\.org($|\/)/,"https://registry.yarnpkg.com$1"),t===n+s||t===n+s.replace(/%2f/g,"/")}static getLocatorUrl(e){let t=Wt.clean(e.reference.slice(Cr.length));if(t===null)throw new ct(X.RESOLVER_NOT_FOUND,"The npm semver resolver got selected, but the version isn't semver");return`${Kl(e)}/-/${e.name}-${t}.tgz`}};var fle=ge(ri());var Ab=P.makeIdent(null,"node-gyp"),V8e=/\b(node-gyp|prebuild-install)\b/,ZL=class{supportsDescriptor(e,t){return e.range.startsWith(Cr)?!!Wt.validRange(e.range.slice(Cr.length)):!1}supportsLocator(e,t){if(!e.reference.startsWith(Cr))return!1;let{selector:i}=P.parseRange(e.reference);return!!fle.default.valid(i)}shouldPersistResolution(e,t){return!0}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){let n=Wt.validRange(e.range.slice(Cr.length));if(n===null)throw new Error(`Expected a valid range, got ${e.range.slice(Cr.length)}`);let s=await bo(Kl(e),{configuration:i.project.configuration,ident:e,jsonResponse:!0}),o=Se.mapAndFilter(Object.keys(s.versions),c=>{try{let u=new Wt.SemVer(c);if(n.test(u))return u}catch{}return Se.mapAndFilter.skip}),a=o.filter(c=>!s.versions[c.raw].deprecated),l=a.length>0?a:o;return l.sort((c,u)=>-c.compare(u)),l.map(c=>{let u=P.makeLocator(e,`${Cr}${c.raw}`),g=s.versions[c.raw].dist.tarball;return Qo.isConventionalTarballUrl(u,g,{configuration:i.project.configuration})?u:P.bindLocator(u,{__archiveUrl:g})})}async getSatisfying(e,t,i){let n=Wt.validRange(e.range.slice(Cr.length));if(n===null)throw new Error(`Expected a valid range, got ${e.range.slice(Cr.length)}`);return Se.mapAndFilter(t,s=>{try{let{selector:o}=P.parseRange(s,{requireProtocol:Cr}),a=new Wt.SemVer(o);if(n.test(a))return{reference:s,version:a}}catch{}return Se.mapAndFilter.skip}).sort((s,o)=>-s.version.compare(o.version)).map(({reference:s})=>P.makeLocator(e,s))}async resolve(e,t){let{selector:i}=P.parseRange(e.reference),n=Wt.clean(i);if(n===null)throw new ct(X.RESOLVER_NOT_FOUND,"The npm semver resolver got selected, but the version isn't semver");let s=await bo(Kl(e),{configuration:t.project.configuration,ident:e,jsonResponse:!0});if(!Object.prototype.hasOwnProperty.call(s,"versions"))throw new ct(X.REMOTE_INVALID,'Registry returned invalid data for - missing "versions" field');if(!Object.prototype.hasOwnProperty.call(s.versions,n))throw new ct(X.REMOTE_NOT_FOUND,`Registry failed to return reference "${n}"`);let o=new At;if(o.load(s.versions[n]),!o.dependencies.has(Ab.identHash)&&!o.peerDependencies.has(Ab.identHash)){for(let a of o.scripts.values())if(a.match(V8e)){o.dependencies.set(Ab.identHash,P.makeDescriptor(Ab,"latest")),t.report.reportWarningOnce(X.NODE_GYP_INJECTED,`${P.prettyLocator(t.project.configuration,e)}: Implicit dependencies on node-gyp are discouraged`);break}}if(typeof o.raw.deprecated=="string"&&o.raw.deprecated!==""){let a=P.prettyLocator(t.project.configuration,e),l=o.raw.deprecated.match(/\S/)?`${a} is deprecated: ${o.raw.deprecated}`:`${a} is deprecated`;t.report.reportWarningOnce(X.DEPRECATED_PACKAGE,l)}return te(N({},e),{version:n,languageName:"node",linkType:Qt.HARD,conditions:o.getConditions(),dependencies:o.dependencies,peerDependencies:o.peerDependencies,dependenciesMeta:o.dependenciesMeta,peerDependenciesMeta:o.peerDependenciesMeta,bin:o.bin})}};var $L=class{supportsDescriptor(e,t){return!(!e.range.startsWith(Cr)||!zg.test(e.range.slice(Cr.length)))}supportsLocator(e,t){return!1}shouldPersistResolution(e,t){throw new Error("Unreachable")}bindDescriptor(e,t,i){return e}getResolutionDependencies(e,t){return[]}async getCandidates(e,t,i){let n=e.range.slice(Cr.length),s=await bo(Kl(e),{configuration:i.project.configuration,ident:e,jsonResponse:!0});if(!Object.prototype.hasOwnProperty.call(s,"dist-tags"))throw new ct(X.REMOTE_INVALID,'Registry returned invalid data - missing "dist-tags" field');let o=s["dist-tags"];if(!Object.prototype.hasOwnProperty.call(o,n))throw new ct(X.REMOTE_NOT_FOUND,`Registry failed to return tag "${n}"`);let a=o[n],l=P.makeLocator(e,`${Cr}${a}`),c=s.versions[a].dist.tarball;return Qo.isConventionalTarballUrl(l,c,{configuration:i.project.configuration})?[l]:[P.bindLocator(l,{__archiveUrl:c})]}async getSatisfying(e,t,i){return null}async resolve(e,t){throw new Error("Unreachable")}};var wh={};ft(wh,{getGitHead:()=>z9e,makePublishBody:()=>W9e});var HT={};ft(HT,{default:()=>k9e,packUtils:()=>PA});var PA={};ft(PA,{genPackList:()=>Pb,genPackStream:()=>UT,genPackageManifest:()=>Hce,hasPackScripts:()=>MT,prepareForPack:()=>KT});var OT=ge(is()),Kce=ge(Mce()),Uce=ge(require("zlib")),m9e=["/package.json","/readme","/readme.*","/license","/license.*","/licence","/licence.*","/changelog","/changelog.*"],E9e=["/package.tgz",".github",".git",".hg","node_modules",".npmignore",".gitignore",".#*",".DS_Store"];async function MT(r){return!!(Zt.hasWorkspaceScript(r,"prepack")||Zt.hasWorkspaceScript(r,"postpack"))}async function KT(r,{report:e},t){await Zt.maybeExecuteWorkspaceLifecycleScript(r,"prepack",{report:e});try{let i=k.join(r.cwd,At.fileName);await K.existsPromise(i)&&await r.manifest.loadFile(i,{baseFs:K}),await t()}finally{await Zt.maybeExecuteWorkspaceLifecycleScript(r,"postpack",{report:e})}}async function UT(r,e){var s,o;typeof e=="undefined"&&(e=await Pb(r));let t=new Set;for(let a of(o=(s=r.manifest.publishConfig)==null?void 0:s.executableFiles)!=null?o:new Set)t.add(k.normalize(a));for(let a of r.manifest.bin.values())t.add(k.normalize(a));let i=Kce.default.pack();process.nextTick(async()=>{for(let a of e){let l=k.normalize(a),c=k.resolve(r.cwd,l),u=k.join("package",l),g=await K.lstatPromise(c),f={name:u,mtime:new Date(Rr.SAFE_TIME*1e3)},h=t.has(l)?493:420,p,m,y=new Promise((v,x)=>{p=v,m=x}),b=v=>{v?m(v):p()};if(g.isFile()){let v;l==="package.json"?v=Buffer.from(JSON.stringify(await Hce(r),null,2)):v=await K.readFilePromise(c),i.entry(te(N({},f),{mode:h,type:"file"}),v,b)}else g.isSymbolicLink()?i.entry(te(N({},f),{mode:h,type:"symlink",linkname:await K.readlinkPromise(c)}),b):b(new Error(`Unsupported file type ${g.mode} for ${H.fromPortablePath(l)}`));await y}i.finalize()});let n=(0,Uce.createGzip)();return i.pipe(n),n}async function Hce(r){let e=JSON.parse(JSON.stringify(r.manifest.raw));return await r.project.configuration.triggerHook(t=>t.beforeWorkspacePacking,r,e),e}async function Pb(r){var g,f,h,p,m,y,b,v;let e=r.project,t=e.configuration,i={accept:[],reject:[]};for(let x of E9e)i.reject.push(x);for(let x of m9e)i.accept.push(x);i.reject.push(t.get("rcFilename"));let n=x=>{if(x===null||!x.startsWith(`${r.cwd}/`))return;let T=k.relative(r.cwd,x),q=k.resolve(Me.root,T);i.reject.push(q)};n(k.resolve(e.cwd,t.get("lockfileFilename"))),n(t.get("cacheFolder")),n(t.get("globalFolder")),n(t.get("installStatePath")),n(t.get("virtualFolder")),n(t.get("yarnPath")),await t.triggerHook(x=>x.populateYarnPaths,e,x=>{n(x)});for(let x of e.workspaces){let T=k.relative(r.cwd,x.cwd);T!==""&&!T.match(/^(\.\.)?\//)&&i.reject.push(`/${T}`)}let s={accept:[],reject:[]},o=(f=(g=r.manifest.publishConfig)==null?void 0:g.main)!=null?f:r.manifest.main,a=(p=(h=r.manifest.publishConfig)==null?void 0:h.module)!=null?p:r.manifest.module,l=(y=(m=r.manifest.publishConfig)==null?void 0:m.browser)!=null?y:r.manifest.browser,c=(v=(b=r.manifest.publishConfig)==null?void 0:b.bin)!=null?v:r.manifest.bin;o!=null&&s.accept.push(k.resolve(Me.root,o)),a!=null&&s.accept.push(k.resolve(Me.root,a)),typeof l=="string"&&s.accept.push(k.resolve(Me.root,l));for(let x of c.values())s.accept.push(k.resolve(Me.root,x));if(l instanceof Map)for(let[x,T]of l.entries())s.accept.push(k.resolve(Me.root,x)),typeof T=="string"&&s.accept.push(k.resolve(Me.root,T));let u=r.manifest.files!==null;if(u){s.reject.push("/*");for(let x of r.manifest.files)jce(s.accept,x,{cwd:Me.root})}return await I9e(r.cwd,{hasExplicitFileList:u,globalList:i,ignoreList:s})}async function I9e(r,{hasExplicitFileList:e,globalList:t,ignoreList:i}){let n=[],s=new La(r),o=[[Me.root,[i]]];for(;o.length>0;){let[a,l]=o.pop(),c=await s.lstatPromise(a);if(!Yce(a,{globalList:t,ignoreLists:c.isDirectory()?null:l}))if(c.isDirectory()){let u=await s.readdirPromise(a),g=!1,f=!1;if(!e||a!==Me.root)for(let m of u)g=g||m===".gitignore",f=f||m===".npmignore";let h=f?await Gce(s,a,".npmignore"):g?await Gce(s,a,".gitignore"):null,p=h!==null?[h].concat(l):l;Yce(a,{globalList:t,ignoreLists:l})&&(p=[...l,{accept:[],reject:["**/*"]}]);for(let m of u)o.push([k.resolve(a,m),p])}else(c.isFile()||c.isSymbolicLink())&&n.push(k.relative(Me.root,a))}return n.sort()}async function Gce(r,e,t){let i={accept:[],reject:[]},n=await r.readFilePromise(k.join(e,t),"utf8");for(let s of n.split(/\n/g))jce(i.reject,s,{cwd:e});return i}function y9e(r,{cwd:e}){let t=r[0]==="!";return t&&(r=r.slice(1)),r.match(/\.{0,1}\//)&&(r=k.resolve(e,r)),t&&(r=`!${r}`),r}function jce(r,e,{cwd:t}){let i=e.trim();i===""||i[0]==="#"||r.push(y9e(i,{cwd:t}))}var gs;(function(i){i[i.None=0]="None",i[i.Match=1]="Match",i[i.NegatedMatch=2]="NegatedMatch"})(gs||(gs={}));function Yce(r,{globalList:e,ignoreLists:t}){let i=Db(r,e.accept);if(i!==0)return i===2;let n=Db(r,e.reject);if(n!==0)return n===1;if(t!==null)for(let s of t){let o=Db(r,s.accept);if(o!==0)return o===2;let a=Db(r,s.reject);if(a!==0)return a===1}return!1}function Db(r,e){let t=e,i=[];for(let n=0;n{await KT(i,{report:l},async()=>{l.reportJson({base:H.fromPortablePath(i.cwd)});let c=await Pb(i);for(let u of c)l.reportInfo(null,H.fromPortablePath(u)),l.reportJson({location:H.fromPortablePath(u)});if(!this.dryRun){let u=await UT(i,c),g=K.createWriteStream(s);u.pipe(g),await new Promise(f=>{g.on("finish",f)})}}),this.dryRun||(l.reportInfo(X.UNNAMED,`Package archive generated in ${ae.pretty(e,s,ae.Type.PATH)}`),l.reportJson({output:H.fromPortablePath(s)}))})).exitCode()}};rE.paths=[["pack"]],rE.usage=Re.Usage({description:"generate a tarball from the active workspace",details:"\n This command will turn the active workspace into a compressed archive suitable for publishing. The archive will by default be stored at the root of the workspace (`package.tgz`).\n\n If the `-o,---out` is set the archive will be created at the specified path. The `%s` and `%v` variables can be used within the path and will be respectively replaced by the package name and version.\n ",examples:[["Create an archive from the active workspace","yarn pack"],["List the files that would be made part of the workspace's archive","yarn pack --dry-run"],["Name and output the archive in a dedicated folder","yarn pack --out /artifacts/%s-%v.tgz"]]});var Jce=rE;function w9e(r,{workspace:e}){let t=r.replace("%s",B9e(e)).replace("%v",b9e(e));return H.toPortablePath(t)}function B9e(r){return r.manifest.name!==null?P.slugifyIdent(r.manifest.name):"package"}function b9e(r){return r.manifest.version!==null?r.manifest.version:"unknown"}var Q9e=["dependencies","devDependencies","peerDependencies"],S9e="workspace:",v9e=(r,e)=>{var i,n;e.publishConfig&&(e.publishConfig.main&&(e.main=e.publishConfig.main),e.publishConfig.browser&&(e.browser=e.publishConfig.browser),e.publishConfig.module&&(e.module=e.publishConfig.module),e.publishConfig.browser&&(e.browser=e.publishConfig.browser),e.publishConfig.exports&&(e.exports=e.publishConfig.exports),e.publishConfig.bin&&(e.bin=e.publishConfig.bin));let t=r.project;for(let s of Q9e)for(let o of r.manifest.getForScope(s).values()){let a=t.tryWorkspaceByDescriptor(o),l=P.parseRange(o.range);if(l.protocol===S9e)if(a===null){if(t.tryWorkspaceByIdent(o)===null)throw new ct(X.WORKSPACE_NOT_FOUND,`${P.prettyDescriptor(t.configuration,o)}: No local workspace found for this range`)}else{let c;P.areDescriptorsEqual(o,a.anchoredDescriptor)||l.selector==="*"?c=(i=a.manifest.version)!=null?i:"0.0.0":l.selector==="~"||l.selector==="^"?c=`${l.selector}${(n=a.manifest.version)!=null?n:"0.0.0"}`:c=l.selector;let u=s==="dependencies"?P.makeDescriptor(o,"unknown"):null,g=u!==null&&r.manifest.ensureDependencyMeta(u).optional?"optionalDependencies":s;e[g][P.stringifyIdent(o)]=c}}},x9e={hooks:{beforeWorkspacePacking:v9e},commands:[Jce]},k9e=x9e;var tue=ge(require("crypto")),rue=ge(eue()),iue=ge(require("url"));async function W9e(r,e,{access:t,tag:i,registry:n,gitHead:s}){let o=r.project.configuration,a=r.manifest.name,l=r.manifest.version,c=P.stringifyIdent(a),u=(0,tue.createHash)("sha1").update(e).digest("hex"),g=rue.default.fromData(e).toString();typeof t=="undefined"&&(r.manifest.publishConfig&&typeof r.manifest.publishConfig.access=="string"?t=r.manifest.publishConfig.access:o.get("npmPublishAccess")!==null?t=o.get("npmPublishAccess"):a.scope?t="restricted":t="public");let f=await PA.genPackageManifest(r),h=`${c}-${l}.tgz`,p=new iue.URL(`${ma(n)}/${c}/-/${h}`);return{_id:c,_attachments:{[h]:{content_type:"application/octet-stream",data:e.toString("base64"),length:e.length}},name:c,access:t,["dist-tags"]:{[i]:l},versions:{[l]:te(N({},f),{_id:`${c}@${l}`,name:c,version:l,gitHead:s,dist:{shasum:u,integrity:g,tarball:p.toString()}})}}}async function z9e(r){try{let{stdout:e}=await Nr.execvp("git",["rev-parse","--revs-only","HEAD"],{cwd:r});return e.trim()===""?void 0:e.trim()}catch{return}}var JT={npmAlwaysAuth:{description:"URL of the selected npm registry (note: npm enterprise isn't supported)",type:Ie.BOOLEAN,default:!1},npmAuthIdent:{description:"Authentication identity for the npm registry (_auth in npm and yarn v1)",type:Ie.SECRET,default:null},npmAuthToken:{description:"Authentication token for the npm registry (_authToken in npm and yarn v1)",type:Ie.SECRET,default:null}},nue={npmAuditRegistry:{description:"Registry to query for audit reports",type:Ie.STRING,default:null},npmPublishRegistry:{description:"Registry to push packages to",type:Ie.STRING,default:null},npmRegistryServer:{description:"URL of the selected npm registry (note: npm enterprise isn't supported)",type:Ie.STRING,default:"https://registry.yarnpkg.com"}},_9e={configuration:te(N(N({},JT),nue),{npmScopes:{description:"Settings per package scope",type:Ie.MAP,valueDefinition:{description:"",type:Ie.SHAPE,properties:N(N({},JT),nue)}},npmRegistries:{description:"Settings per registry",type:Ie.MAP,normalizeKeys:ma,valueDefinition:{description:"",type:Ie.SHAPE,properties:N({},JT)}}}),fetchers:[VL,Qo],resolvers:[XL,ZL,$L]},V9e=_9e;var VT={};ft(VT,{default:()=>s_e});ys();var Ba;(function(i){i.All="all",i.Production="production",i.Development="development"})(Ba||(Ba={}));var vo;(function(s){s.Info="info",s.Low="low",s.Moderate="moderate",s.High="high",s.Critical="critical"})(vo||(vo={}));var Rb=[vo.Info,vo.Low,vo.Moderate,vo.High,vo.Critical];function sue(r,e){let t=[],i=new Set,n=o=>{i.has(o)||(i.add(o),t.push(o))};for(let o of e)n(o);let s=new Set;for(;t.length>0;){let o=t.shift(),a=r.storedResolutions.get(o);if(typeof a=="undefined")throw new Error("Assertion failed: Expected the resolution to have been registered");let l=r.storedPackages.get(a);if(!!l){s.add(o);for(let c of l.dependencies.values())n(c.descriptorHash)}}return s}function X9e(r,e){return new Set([...r].filter(t=>!e.has(t)))}function Z9e(r,e,{all:t}){let i=t?r.workspaces:[e],n=i.map(f=>f.manifest),s=new Set(n.map(f=>[...f.dependencies].map(([h,p])=>h)).flat()),o=new Set(n.map(f=>[...f.devDependencies].map(([h,p])=>h)).flat()),a=i.map(f=>[...f.dependencies.values()]).flat(),l=a.filter(f=>s.has(f.identHash)).map(f=>f.descriptorHash),c=a.filter(f=>o.has(f.identHash)).map(f=>f.descriptorHash),u=sue(r,l),g=sue(r,c);return X9e(g,u)}function oue(r){let e={};for(let t of r)e[P.stringifyIdent(t)]=P.parseRange(t.range).selector;return e}function aue(r){if(typeof r=="undefined")return new Set;let e=Rb.indexOf(r),t=Rb.slice(e);return new Set(t)}function $9e(r,e){let t=aue(e),i={};for(let n of t)i[n]=r[n];return i}function Aue(r,e){var i;let t=$9e(r,e);for(let n of Object.keys(t))if((i=t[n])!=null?i:0>0)return!0;return!1}function lue(r,e){var s;let t={},i={children:t},n=Object.values(r.advisories);if(e!=null){let o=aue(e);n=n.filter(a=>o.has(a.severity))}for(let o of Se.sortMap(n,a=>a.module_name))t[o.module_name]={label:o.module_name,value:ae.tuple(ae.Type.RANGE,o.findings.map(a=>a.version).join(", ")),children:{Issue:{label:"Issue",value:ae.tuple(ae.Type.NO_HINT,o.title)},URL:{label:"URL",value:ae.tuple(ae.Type.URL,o.url)},Severity:{label:"Severity",value:ae.tuple(ae.Type.NO_HINT,o.severity)},["Vulnerable Versions"]:{label:"Vulnerable Versions",value:ae.tuple(ae.Type.RANGE,o.vulnerable_versions)},["Patched Versions"]:{label:"Patched Versions",value:ae.tuple(ae.Type.RANGE,o.patched_versions)},Via:{label:"Via",value:ae.tuple(ae.Type.NO_HINT,Array.from(new Set(o.findings.map(a=>a.paths).flat().map(a=>a.split(">")[0]))).join(", "))},Recommendation:{label:"Recommendation",value:ae.tuple(ae.Type.NO_HINT,(s=o.recommendation)==null?void 0:s.replace(/\n/g," "))}}};return i}function cue(r,e,{all:t,environment:i}){let n=t?r.workspaces:[e],s=[Ba.All,Ba.Production].includes(i),o=[];if(s)for(let c of n)for(let u of c.manifest.dependencies.values())o.push(u);let a=[Ba.All,Ba.Development].includes(i),l=[];if(a)for(let c of n)for(let u of c.manifest.devDependencies.values())l.push(u);return oue([...o,...l].filter(c=>P.parseRange(c.range).protocol===null))}function uue(r,e,{all:t}){var s;let i=Z9e(r,e,{all:t}),n={};for(let o of r.storedPackages.values())n[P.stringifyIdent(o)]={version:(s=o.version)!=null?s:"0.0.0",integrity:o.identHash,requires:oue(o.dependencies.values()),dev:i.has(P.convertLocatorToDescriptor(o).descriptorHash)};return n}var sE=class extends Le{constructor(){super(...arguments);this.all=J.Boolean("-A,--all",!1,{description:"Audit dependencies from all workspaces"});this.recursive=J.Boolean("-R,--recursive",!1,{description:"Audit transitive dependencies as well"});this.environment=J.String("--environment",Ba.All,{description:"Which environments to cover",validator:nn(Ba)});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.severity=J.String("--severity",vo.Info,{description:"Minimal severity requested for packages to be displayed",validator:nn(vo)})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState();let n=cue(t,i,{all:this.all,environment:this.environment}),s=uue(t,i,{all:this.all});if(!this.recursive)for(let f of Object.keys(s))Object.prototype.hasOwnProperty.call(n,f)?s[f].requires={}:delete s[f];let o={requires:n,dependencies:s},a=br.getAuditRegistry(i.manifest,{configuration:e}),l,c=await pA.start({configuration:e,stdout:this.context.stdout},async()=>{l=await zt.post("/-/npm/v1/security/audits/quick",o,{authType:zt.AuthType.BEST_EFFORT,configuration:e,jsonResponse:!0,registry:a})});if(c.hasErrors())return c.exitCode();let u=Aue(l.metadata.vulnerabilities,this.severity);return!this.json&&u?(ls.emitTree(lue(l,this.severity),{configuration:e,json:this.json,stdout:this.context.stdout,separators:2}),1):(await Je.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async f=>{f.reportJson(l),u||f.reportInfo(X.EXCEPTION,"No audit suggestions")})).exitCode()}};sE.paths=[["npm","audit"]],sE.usage=Re.Usage({description:"perform a vulnerability audit against the installed packages",details:` + This command checks for known security reports on the packages you use. The reports are by default extracted from the npm registry, and may or may not be relevant to your actual program (not all vulnerabilities affect all code paths). + + For consistency with our other commands the default is to only check the direct dependencies for the active workspace. To extend this search to all workspaces, use \`-A,--all\`. To extend this search to both direct and transitive dependencies, use \`-R,--recursive\`. + + Applying the \`--severity\` flag will limit the audit table to vulnerabilities of the corresponding severity and above. Valid values are ${Rb.map(e=>`\`${e}\``).join(", ")}. + + If the \`--json\` flag is set, Yarn will print the output exactly as received from the registry. Regardless of this flag, the process will exit with a non-zero exit code if a report is found for the selected packages. + + To understand the dependency tree requiring vulnerable packages, check the raw report with the \`--json\` flag or use \`yarn why \` to get more information as to who depends on them. + `,examples:[["Checks for known security issues with the installed packages. The output is a list of known issues.","yarn npm audit"],["Audit dependencies in all workspaces","yarn npm audit --all"],["Limit auditing to `dependencies` (excludes `devDependencies`)","yarn npm audit --environment production"],["Show audit report as valid JSON","yarn npm audit --json"],["Audit all direct and transitive dependencies","yarn npm audit --recursive"],["Output moderate (or more severe) vulnerabilities","yarn npm audit --severity moderate"]]});var gue=sE;var WT=ge(ri()),zT=ge(require("util")),oE=class extends Le{constructor(){super(...arguments);this.fields=J.String("-f,--fields",{description:"A comma-separated list of manifest fields that should be displayed"});this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.packages=J.Rest()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t}=await ze.find(e,this.context.cwd),i=typeof this.fields!="undefined"?new Set(["name",...this.fields.split(/\s*,\s*/)]):null,n=[],s=!1,o=await Je.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async a=>{for(let l of this.packages){let c;if(l==="."){let x=t.topLevelWorkspace;if(!x.manifest.name)throw new Pe(`Missing ${ae.pretty(e,"name",ae.Type.CODE)} field in ${H.fromPortablePath(k.join(x.cwd,kt.manifest))}`);c=P.makeDescriptor(x.manifest.name,"unknown")}else c=P.parseDescriptor(l);let u=zt.getIdentUrl(c),g=_T(await zt.get(u,{configuration:e,ident:c,jsonResponse:!0,customErrorMessage:zt.customPackageError})),f=Object.keys(g.versions).sort(WT.default.compareLoose),p=g["dist-tags"].latest||f[f.length-1],m=Wt.validRange(c.range);if(m){let x=WT.default.maxSatisfying(f,m);x!==null?p=x:(a.reportWarning(X.UNNAMED,`Unmet range ${P.prettyRange(e,c.range)}; falling back to the latest version`),s=!0)}else Object.prototype.hasOwnProperty.call(g["dist-tags"],c.range)?p=g["dist-tags"][c.range]:c.range!=="unknown"&&(a.reportWarning(X.UNNAMED,`Unknown tag ${P.prettyRange(e,c.range)}; falling back to the latest version`),s=!0);let y=g.versions[p],b=te(N(N({},g),y),{version:p,versions:f}),v;if(i!==null){v={};for(let x of i){let T=b[x];if(typeof T!="undefined")v[x]=T;else{a.reportWarning(X.EXCEPTION,`The ${ae.pretty(e,x,ae.Type.CODE)} field doesn't exist inside ${P.prettyIdent(e,c)}'s information`),s=!0;continue}}}else this.json||(delete b.dist,delete b.readme,delete b.users),v=b;a.reportJson(v),this.json||n.push(v)}});zT.inspect.styles.name="cyan";for(let a of n)(a!==n[0]||s)&&this.context.stdout.write(` +`),this.context.stdout.write(`${(0,zT.inspect)(a,{depth:Infinity,colors:!0,compact:!1})} +`);return o.exitCode()}};oE.paths=[["npm","info"]],oE.usage=Re.Usage({category:"Npm-related commands",description:"show information about a package",details:"\n This command fetches information about a package from the npm registry and prints it in a tree format.\n\n The package does not have to be installed locally, but needs to have been published (in particular, local changes will be ignored even for workspaces).\n\n Append `@` to the package argument to provide information specific to the latest version that satisfies the range or to the corresponding tagged version. If the range is invalid or if there is no version satisfying the range, the command will print a warning and fall back to the latest version.\n\n If the `-f,--fields` option is set, it's a comma-separated list of fields which will be used to only display part of the package information.\n\n By default, this command won't return the `dist`, `readme`, and `users` fields, since they are often very long. To explicitly request those fields, explicitly list them with the `--fields` flag or request the output in JSON mode.\n ",examples:[["Show all available information about react (except the `dist`, `readme`, and `users` fields)","yarn npm info react"],["Show all available information about react as valid JSON (including the `dist`, `readme`, and `users` fields)","yarn npm info react --json"],["Show all available information about react@16.12.0","yarn npm info react@16.12.0"],["Show all available information about react@next","yarn npm info react@next"],["Show the description of react","yarn npm info react --fields description"],["Show all available versions of react","yarn npm info react --fields versions"],["Show the readme of react","yarn npm info react --fields readme"],["Show a few fields of react","yarn npm info react --fields homepage,repository"]]});var fue=oE;function _T(r){if(Array.isArray(r)){let e=[];for(let t of r)t=_T(t),t&&e.push(t);return e}else if(typeof r=="object"&&r!==null){let e={};for(let t of Object.keys(r)){if(t.startsWith("_"))continue;let i=_T(r[t]);i&&(e[t]=i)}return e}else return r||null}var hue=ge(WC()),aE=class extends Le{constructor(){super(...arguments);this.scope=J.String("-s,--scope",{description:"Login to the registry configured for a given scope"});this.publish=J.Boolean("--publish",!1,{description:"Login to the publish registry"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=await Fb({configuration:e,cwd:this.context.cwd,publish:this.publish,scope:this.scope});return(await Je.start({configuration:e,stdout:this.context.stdout},async n=>{let s=await t_e({registry:t,report:n,stdin:this.context.stdin,stdout:this.context.stdout}),o=`/-/user/org.couchdb.user:${encodeURIComponent(s.name)}`,a=await zt.put(o,s,{attemptedAs:s.name,configuration:e,registry:t,jsonResponse:!0,authType:zt.AuthType.NO_AUTH});return await e_e(t,a.token,{configuration:e,scope:this.scope}),n.reportInfo(X.UNNAMED,"Successfully logged in")})).exitCode()}};aE.paths=[["npm","login"]],aE.usage=Re.Usage({category:"Npm-related commands",description:"store new login info to access the npm registry",details:"\n This command will ask you for your username, password, and 2FA One-Time-Password (when it applies). It will then modify your local configuration (in your home folder, never in the project itself) to reference the new tokens thus generated.\n\n Adding the `-s,--scope` flag will cause the authentication to be done against whatever registry is configured for the associated scope (see also `npmScopes`).\n\n Adding the `--publish` flag will cause the authentication to be done against the registry used when publishing the package (see also `publishConfig.registry` and `npmPublishRegistry`).\n ",examples:[["Login to the default registry","yarn npm login"],["Login to the registry linked to the @my-scope registry","yarn npm login --scope my-scope"],["Login to the publish registry for the current package","yarn npm login --publish"]]});var pue=aE;async function Fb({scope:r,publish:e,configuration:t,cwd:i}){return r&&e?br.getScopeRegistry(r,{configuration:t,type:br.RegistryType.PUBLISH_REGISTRY}):r?br.getScopeRegistry(r,{configuration:t}):e?br.getPublishRegistry((await Wf(t,i)).manifest,{configuration:t}):br.getDefaultRegistry({configuration:t})}async function e_e(r,e,{configuration:t,scope:i}){let n=o=>a=>{let l=Se.isIndexableObject(a)?a:{},c=l[o],u=Se.isIndexableObject(c)?c:{};return te(N({},l),{[o]:te(N({},u),{npmAuthToken:e})})},s=i?{npmScopes:n(i)}:{npmRegistries:n(r)};return await ye.updateHomeConfiguration(s)}async function t_e({registry:r,report:e,stdin:t,stdout:i}){if(process.env.TEST_ENV)return{name:process.env.TEST_NPM_USER||"",password:process.env.TEST_NPM_PASSWORD||""};e.reportInfo(X.UNNAMED,`Logging in to ${r}`);let n=!1;r.match(/^https:\/\/npm\.pkg\.github\.com(\/|$)/)&&(e.reportInfo(X.UNNAMED,"You seem to be using the GitHub Package Registry. Tokens must be generated with the 'repo', 'write:packages', and 'read:packages' permissions."),n=!0),e.reportSeparator();let{username:s,password:o}=await(0,hue.prompt)([{type:"input",name:"username",message:"Username:",required:!0,onCancel:()=>process.exit(130),stdin:t,stdout:i},{type:"password",name:"password",message:n?"Token:":"Password:",required:!0,onCancel:()=>process.exit(130),stdin:t,stdout:i}]);return e.reportSeparator(),{name:s,password:o}}var Bh=new Set(["npmAuthIdent","npmAuthToken"]),AE=class extends Le{constructor(){super(...arguments);this.scope=J.String("-s,--scope",{description:"Logout of the registry configured for a given scope"});this.publish=J.Boolean("--publish",!1,{description:"Logout of the publish registry"});this.all=J.Boolean("-A,--all",!1,{description:"Logout of all registries"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t=async()=>{var l;let n=await Fb({configuration:e,cwd:this.context.cwd,publish:this.publish,scope:this.scope}),s=await ye.find(this.context.cwd,this.context.plugins),o=P.makeIdent((l=this.scope)!=null?l:null,"pkg");return!br.getAuthConfiguration(n,{configuration:s,ident:o}).get("npmAuthToken")};return(await Je.start({configuration:e,stdout:this.context.stdout},async n=>{if(this.all&&(await r_e(),n.reportInfo(X.UNNAMED,"Successfully logged out from everything")),this.scope){await due("npmScopes",this.scope),await t()?n.reportInfo(X.UNNAMED,`Successfully logged out from ${this.scope}`):n.reportWarning(X.UNNAMED,"Scope authentication settings removed, but some other ones settings still apply to it");return}let s=await Fb({configuration:e,cwd:this.context.cwd,publish:this.publish});await due("npmRegistries",s),await t()?n.reportInfo(X.UNNAMED,`Successfully logged out from ${s}`):n.reportWarning(X.UNNAMED,"Registry authentication settings removed, but some other ones settings still apply to it")})).exitCode()}};AE.paths=[["npm","logout"]],AE.usage=Re.Usage({category:"Npm-related commands",description:"logout of the npm registry",details:"\n This command will log you out by modifying your local configuration (in your home folder, never in the project itself) to delete all credentials linked to a registry.\n\n Adding the `-s,--scope` flag will cause the deletion to be done against whatever registry is configured for the associated scope (see also `npmScopes`).\n\n Adding the `--publish` flag will cause the deletion to be done against the registry used when publishing the package (see also `publishConfig.registry` and `npmPublishRegistry`).\n\n Adding the `-A,--all` flag will cause the deletion to be done against all registries and scopes.\n ",examples:[["Logout of the default registry","yarn npm logout"],["Logout of the @my-scope scope","yarn npm logout --scope my-scope"],["Logout of the publish registry for the current package","yarn npm logout --publish"],["Logout of all registries","yarn npm logout --all"]]});var Cue=AE;function i_e(r,e){let t=r[e];if(!Se.isIndexableObject(t))return!1;let i=new Set(Object.keys(t));if([...Bh].every(s=>!i.has(s)))return!1;for(let s of Bh)i.delete(s);if(i.size===0)return r[e]=void 0,!0;let n=N({},t);for(let s of Bh)delete n[s];return r[e]=n,!0}async function r_e(){let r=e=>{let t=!1,i=Se.isIndexableObject(e)?N({},e):{};i.npmAuthToken&&(delete i.npmAuthToken,t=!0);for(let n of Object.keys(i))i_e(i,n)&&(t=!0);if(Object.keys(i).length!==0)return t?i:e};return await ye.updateHomeConfiguration({npmRegistries:r,npmScopes:r})}async function due(r,e){return await ye.updateHomeConfiguration({[r]:t=>{let i=Se.isIndexableObject(t)?t:{};if(!Object.prototype.hasOwnProperty.call(i,e))return t;let n=i[e],s=Se.isIndexableObject(n)?n:{},o=new Set(Object.keys(s));if([...Bh].every(l=>!o.has(l)))return t;for(let l of Bh)o.delete(l);if(o.size===0)return Object.keys(i).length===1?void 0:te(N({},i),{[e]:void 0});let a={};for(let l of Bh)a[l]=void 0;return te(N({},i),{[e]:N(N({},s),a)})}})}var lE=class extends Le{constructor(){super(...arguments);this.access=J.String("--access",{description:"The access for the published package (public or restricted)"});this.tag=J.String("--tag","latest",{description:"The tag on the registry that the package should be attached to"});this.tolerateRepublish=J.Boolean("--tolerate-republish",!1,{description:"Warn and exit when republishing an already existing version of a package"});this.otp=J.String("--otp",{description:"The OTP token to use with the command"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);if(i.manifest.private)throw new Pe("Private workspaces cannot be published");if(i.manifest.name===null||i.manifest.version===null)throw new Pe("Workspaces must have valid names and versions to be published on an external registry");await t.restoreInstallState();let n=i.manifest.name,s=i.manifest.version,o=br.getPublishRegistry(i.manifest,{configuration:e});return(await Je.start({configuration:e,stdout:this.context.stdout},async l=>{var c,u;if(this.tolerateRepublish)try{let g=await zt.get(zt.getIdentUrl(n),{configuration:e,registry:o,ident:n,jsonResponse:!0});if(!Object.prototype.hasOwnProperty.call(g,"versions"))throw new ct(X.REMOTE_INVALID,'Registry returned invalid data for - missing "versions" field');if(Object.prototype.hasOwnProperty.call(g.versions,s)){l.reportWarning(X.UNNAMED,`Registry already knows about version ${s}; skipping.`);return}}catch(g){if(((u=(c=g.originalError)==null?void 0:c.response)==null?void 0:u.statusCode)!==404)throw g}await Zt.maybeExecuteWorkspaceLifecycleScript(i,"prepublish",{report:l}),await PA.prepareForPack(i,{report:l},async()=>{let g=await PA.genPackList(i);for(let y of g)l.reportInfo(null,y);let f=await PA.genPackStream(i,g),h=await Se.bufferStream(f),p=await wh.getGitHead(i.cwd),m=await wh.makePublishBody(i,h,{access:this.access,tag:this.tag,registry:o,gitHead:p});await zt.put(zt.getIdentUrl(n),m,{configuration:e,registry:o,ident:n,otp:this.otp,jsonResponse:!0})}),l.reportInfo(X.UNNAMED,"Package archive published")})).exitCode()}};lE.paths=[["npm","publish"]],lE.usage=Re.Usage({category:"Npm-related commands",description:"publish the active workspace to the npm registry",details:'\n This command will pack the active workspace into a fresh archive and upload it to the npm registry.\n\n The package will by default be attached to the `latest` tag on the registry, but this behavior can be overriden by using the `--tag` option.\n\n Note that for legacy reasons scoped packages are by default published with an access set to `restricted` (aka "private packages"). This requires you to register for a paid npm plan. In case you simply wish to publish a public scoped package to the registry (for free), just add the `--access public` flag. This behavior can be enabled by default through the `npmPublishAccess` settings.\n ',examples:[["Publish the active workspace","yarn npm publish"]]});var mue=lE;var Iue=ge(ri());var cE=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.package=J.String({required:!1})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n;if(typeof this.package!="undefined")n=P.parseIdent(this.package);else{if(!i)throw new ht(t.cwd,this.context.cwd);if(!i.manifest.name)throw new Pe(`Missing 'name' field in ${H.fromPortablePath(k.join(i.cwd,kt.manifest))}`);n=i.manifest.name}let s=await uE(n,e),a={children:Se.sortMap(Object.entries(s),([l])=>l).map(([l,c])=>({value:ae.tuple(ae.Type.RESOLUTION,{descriptor:P.makeDescriptor(n,l),locator:P.makeLocator(n,c)})}))};return ls.emitTree(a,{configuration:e,json:this.json,stdout:this.context.stdout})}};cE.paths=[["npm","tag","list"]],cE.usage=Re.Usage({category:"Npm-related commands",description:"list all dist-tags of a package",details:` + This command will list all tags of a package from the npm registry. + + If the package is not specified, Yarn will default to the current workspace. + `,examples:[["List all tags of package `my-pkg`","yarn npm tag list my-pkg"]]});var Eue=cE;async function uE(r,e){let t=`/-/package${zt.getIdentUrl(r)}/dist-tags`;return zt.get(t,{configuration:e,ident:r,jsonResponse:!0,customErrorMessage:zt.customPackageError})}var gE=class extends Le{constructor(){super(...arguments);this.package=J.String();this.tag=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);let n=P.parseDescriptor(this.package,!0),s=n.range;if(!Iue.default.valid(s))throw new Pe(`The range ${ae.pretty(e,n.range,ae.Type.RANGE)} must be a valid semver version`);let o=br.getPublishRegistry(i.manifest,{configuration:e}),a=ae.pretty(e,n,ae.Type.IDENT),l=ae.pretty(e,s,ae.Type.RANGE),c=ae.pretty(e,this.tag,ae.Type.CODE);return(await Je.start({configuration:e,stdout:this.context.stdout},async g=>{let f=await uE(n,e);Object.prototype.hasOwnProperty.call(f,this.tag)&&f[this.tag]===s&&g.reportWarning(X.UNNAMED,`Tag ${c} is already set to version ${l}`);let h=`/-/package${zt.getIdentUrl(n)}/dist-tags/${encodeURIComponent(this.tag)}`;await zt.put(h,s,{configuration:e,registry:o,ident:n,jsonRequest:!0,jsonResponse:!0}),g.reportInfo(X.UNNAMED,`Tag ${c} added to version ${l} of package ${a}`)})).exitCode()}};gE.paths=[["npm","tag","add"]],gE.usage=Re.Usage({category:"Npm-related commands",description:"add a tag for a specific version of a package",details:` + This command will add a tag to the npm registry for a specific version of a package. If the tag already exists, it will be overwritten. + `,examples:[["Add a `beta` tag for version `2.3.4-beta.4` of package `my-pkg`","yarn npm tag add my-pkg@2.3.4-beta.4 beta"]]});var yue=gE;var fE=class extends Le{constructor(){super(...arguments);this.package=J.String();this.tag=J.String()}async execute(){if(this.tag==="latest")throw new Pe("The 'latest' tag cannot be removed.");let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);let n=P.parseIdent(this.package),s=br.getPublishRegistry(i.manifest,{configuration:e}),o=ae.pretty(e,this.tag,ae.Type.CODE),a=ae.pretty(e,n,ae.Type.IDENT),l=await uE(n,e);if(!Object.prototype.hasOwnProperty.call(l,this.tag))throw new Pe(`${o} is not a tag of package ${a}`);return(await Je.start({configuration:e,stdout:this.context.stdout},async u=>{let g=`/-/package${zt.getIdentUrl(n)}/dist-tags/${encodeURIComponent(this.tag)}`;await zt.del(g,{configuration:e,registry:s,ident:n,jsonResponse:!0}),u.reportInfo(X.UNNAMED,`Tag ${o} removed from package ${a}`)})).exitCode()}};fE.paths=[["npm","tag","remove"]],fE.usage=Re.Usage({category:"Npm-related commands",description:"remove a tag from a package",details:` + This command will remove a tag from a package from the npm registry. + `,examples:[["Remove the `beta` tag from package `my-pkg`","yarn npm tag remove my-pkg beta"]]});var wue=fE;var hE=class extends Le{constructor(){super(...arguments);this.scope=J.String("-s,--scope",{description:"Print username for the registry configured for a given scope"});this.publish=J.Boolean("--publish",!1,{description:"Print username for the publish registry"})}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),t;return this.scope&&this.publish?t=br.getScopeRegistry(this.scope,{configuration:e,type:br.RegistryType.PUBLISH_REGISTRY}):this.scope?t=br.getScopeRegistry(this.scope,{configuration:e}):this.publish?t=br.getPublishRegistry((await Wf(e,this.context.cwd)).manifest,{configuration:e}):t=br.getDefaultRegistry({configuration:e}),(await Je.start({configuration:e,stdout:this.context.stdout},async n=>{var o,a;let s;try{s=await zt.get("/-/whoami",{configuration:e,registry:t,authType:zt.AuthType.ALWAYS_AUTH,jsonResponse:!0,ident:this.scope?P.makeIdent(this.scope,""):void 0})}catch(l){if(((o=l.response)==null?void 0:o.statusCode)===401||((a=l.response)==null?void 0:a.statusCode)===403){n.reportError(X.AUTHENTICATION_INVALID,"Authentication failed - your credentials may have expired");return}else throw l}n.reportInfo(X.UNNAMED,s.username)})).exitCode()}};hE.paths=[["npm","whoami"]],hE.usage=Re.Usage({category:"Npm-related commands",description:"display the name of the authenticated user",details:"\n Print the username associated with the current authentication settings to the standard output.\n\n When using `-s,--scope`, the username printed will be the one that matches the authentication settings of the registry associated with the given scope (those settings can be overriden using the `npmRegistries` map, and the registry associated with the scope is configured via the `npmScopes` map).\n\n When using `--publish`, the registry we'll select will by default be the one used when publishing packages (`publishConfig.registry` or `npmPublishRegistry` if available, otherwise we'll fallback to the regular `npmRegistryServer`).\n ",examples:[["Print username for the default registry","yarn npm whoami"],["Print username for the registry on a given scope","yarn npm whoami --scope company"]]});var Bue=hE;var n_e={configuration:{npmPublishAccess:{description:"Default access of the published packages",type:Ie.STRING,default:null}},commands:[gue,fue,pue,Cue,mue,yue,Eue,wue,Bue]},s_e=n_e;var nO={};ft(nO,{default:()=>y_e,patchUtils:()=>XT});var XT={};ft(XT,{applyPatchFile:()=>Tb,diffFolders:()=>tO,extractPackageToDisk:()=>eO,extractPatchFlags:()=>Due,isParentRequired:()=>$T,loadPatchFiles:()=>mE,makeDescriptor:()=>m_e,makeLocator:()=>ZT,parseDescriptor:()=>dE,parseLocator:()=>CE,parsePatchFile:()=>Lb});var pE=class extends Error{constructor(e,t){super(`Cannot apply hunk #${e+1}`);this.hunk=t}};var o_e=/^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@.*/;function bh(r){return k.relative(Me.root,k.resolve(Me.root,H.toPortablePath(r)))}function a_e(r){let e=r.trim().match(o_e);if(!e)throw new Error(`Bad header line: '${r}'`);return{original:{start:Math.max(Number(e[1]),1),length:Number(e[3]||1)},patched:{start:Math.max(Number(e[4]),1),length:Number(e[6]||1)}}}var A_e=420,l_e=493,Zr;(function(i){i.Context="context",i.Insertion="insertion",i.Deletion="deletion"})(Zr||(Zr={}));var bue=()=>({semverExclusivity:null,diffLineFromPath:null,diffLineToPath:null,oldMode:null,newMode:null,deletedFileMode:null,newFileMode:null,renameFrom:null,renameTo:null,beforeHash:null,afterHash:null,fromPath:null,toPath:null,hunks:null}),c_e=r=>({header:a_e(r),parts:[]}),u_e={["@"]:"header",["-"]:Zr.Deletion,["+"]:Zr.Insertion,[" "]:Zr.Context,["\\"]:"pragma",undefined:Zr.Context};function f_e(r){let e=[],t=bue(),i="parsing header",n=null,s=null;function o(){n&&(s&&(n.parts.push(s),s=null),t.hunks.push(n),n=null)}function a(){o(),e.push(t),t=bue()}for(let l=0;l0?"patch":"mode change",v=null;switch(b){case"rename":{if(!u||!g)throw new Error("Bad parser state: rename from & to not given");e.push({type:"rename",semverExclusivity:i,fromPath:bh(u),toPath:bh(g)}),v=g}break;case"file deletion":{let x=n||p;if(!x)throw new Error("Bad parse state: no path given for file deletion");e.push({type:"file deletion",semverExclusivity:i,hunk:y&&y[0]||null,path:bh(x),mode:Nb(l),hash:f})}break;case"file creation":{let x=s||m;if(!x)throw new Error("Bad parse state: no path given for file creation");e.push({type:"file creation",semverExclusivity:i,hunk:y&&y[0]||null,path:bh(x),mode:Nb(c),hash:h})}break;case"patch":case"mode change":v=m||s;break;default:Se.assertNever(b);break}v&&o&&a&&o!==a&&e.push({type:"mode change",semverExclusivity:i,path:bh(v),oldMode:Nb(o),newMode:Nb(a)}),v&&y&&y.length&&e.push({type:"patch",semverExclusivity:i,path:bh(v),hunks:y,beforeHash:f,afterHash:h})}if(e.length===0)throw new Error("Unable to parse patch file: No changes found. Make sure the patch is a valid UTF8 encoded string");return e}function Nb(r){let e=parseInt(r,8)&511;if(e!==A_e&&e!==l_e)throw new Error(`Unexpected file mode string: ${r}`);return e}function Lb(r){let e=r.split(/\n/g);return e[e.length-1]===""&&e.pop(),h_e(f_e(e))}function g_e(r){let e=0,t=0;for(let{type:i,lines:n}of r.parts)switch(i){case Zr.Context:t+=n.length,e+=n.length;break;case Zr.Deletion:e+=n.length;break;case Zr.Insertion:t+=n.length;break;default:Se.assertNever(i);break}if(e!==r.header.original.length||t!==r.header.patched.length){let i=n=>n<0?n:`+${n}`;throw new Error(`hunk header integrity check failed (expected @@ ${i(r.header.original.length)} ${i(r.header.patched.length)} @@, got @@ ${i(e)} ${i(t)} @@)`)}}async function Qh(r,e,t){let i=await r.lstatPromise(e),n=await t();if(typeof n!="undefined"&&(e=n),r.lutimesPromise)await r.lutimesPromise(e,i.atime,i.mtime);else if(!i.isSymbolicLink())await r.utimesPromise(e,i.atime,i.mtime);else throw new Error("Cannot preserve the time values of a symlink")}async function Tb(r,{baseFs:e=new ar,dryRun:t=!1,version:i=null}={}){for(let n of r)if(!(n.semverExclusivity!==null&&i!==null&&!Wt.satisfiesWithPrereleases(i,n.semverExclusivity)))switch(n.type){case"file deletion":if(t){if(!e.existsSync(n.path))throw new Error(`Trying to delete a file that doesn't exist: ${n.path}`)}else await Qh(e,k.dirname(n.path),async()=>{await e.unlinkPromise(n.path)});break;case"rename":if(t){if(!e.existsSync(n.fromPath))throw new Error(`Trying to move a file that doesn't exist: ${n.fromPath}`)}else await Qh(e,k.dirname(n.fromPath),async()=>{await Qh(e,k.dirname(n.toPath),async()=>{await Qh(e,n.fromPath,async()=>(await e.movePromise(n.fromPath,n.toPath),n.toPath))})});break;case"file creation":if(t){if(e.existsSync(n.path))throw new Error(`Trying to create a file that already exists: ${n.path}`)}else{let s=n.hunk?n.hunk.parts[0].lines.join(` +`)+(n.hunk.parts[0].noNewlineAtEndOfFile?"":` +`):"";await e.mkdirpPromise(k.dirname(n.path),{chmod:493,utimes:[Rr.SAFE_TIME,Rr.SAFE_TIME]}),await e.writeFilePromise(n.path,s,{mode:n.mode}),await e.utimesPromise(n.path,Rr.SAFE_TIME,Rr.SAFE_TIME)}break;case"patch":await Qh(e,n.path,async()=>{await p_e(n,{baseFs:e,dryRun:t})});break;case"mode change":{let o=(await e.statPromise(n.path)).mode;if(Que(n.newMode)!==Que(o))continue;await Qh(e,n.path,async()=>{await e.chmodPromise(n.path,n.newMode)})}break;default:Se.assertNever(n);break}}function Que(r){return(r&64)>0}function Sue(r){return r.replace(/\s+$/,"")}function d_e(r,e){return Sue(r)===Sue(e)}async function p_e({hunks:r,path:e},{baseFs:t,dryRun:i=!1}){let n=await t.statSync(e).mode,o=(await t.readFileSync(e,"utf8")).split(/\n/),a=[],l=0,c=0;for(let g of r){let f=Math.max(c,g.header.patched.start+l),h=Math.max(0,f-c),p=Math.max(0,o.length-f-g.header.original.length),m=Math.max(h,p),y=0,b=0,v=null;for(;y<=m;){if(y<=h&&(b=f-y,v=vue(g,o,b),v!==null)){y=-y;break}if(y<=p&&(b=f+y,v=vue(g,o,b),v!==null))break;y+=1}if(v===null)throw new pE(r.indexOf(g),g);a.push(v),l+=y,c=b+g.header.original.length}if(i)return;let u=0;for(let g of a)for(let f of g)switch(f.type){case"splice":{let h=f.index+u;o.splice(h,f.numToDelete,...f.linesToInsert),u+=f.linesToInsert.length-f.numToDelete}break;case"pop":o.pop();break;case"push":o.push(f.line);break;default:Se.assertNever(f);break}await t.writeFilePromise(e,o.join(` +`),{mode:n})}function vue(r,e,t){let i=[];for(let n of r.parts)switch(n.type){case Zr.Context:case Zr.Deletion:{for(let s of n.lines){let o=e[t];if(o==null||!d_e(o,s))return null;t+=1}n.type===Zr.Deletion&&(i.push({type:"splice",index:t-n.lines.length,numToDelete:n.lines.length,linesToInsert:[]}),n.noNewlineAtEndOfFile&&i.push({type:"push",line:""}))}break;case Zr.Insertion:i.push({type:"splice",index:t,numToDelete:0,linesToInsert:n.lines}),n.noNewlineAtEndOfFile&&i.push({type:"pop"});break;default:Se.assertNever(n.type);break}return i}var C_e=/^builtin<([^>]+)>$/;function xue(r,e){let{source:t,selector:i,params:n}=P.parseRange(r);if(t===null)throw new Error("Patch locators must explicitly define their source");let s=i?i.split(/&/).map(c=>H.toPortablePath(c)):[],o=n&&typeof n.locator=="string"?P.parseLocator(n.locator):null,a=n&&typeof n.version=="string"?n.version:null,l=e(t);return{parentLocator:o,sourceItem:l,patchPaths:s,sourceVersion:a}}function dE(r){let i=xue(r.range,P.parseDescriptor),{sourceItem:e}=i,t=Or(i,["sourceItem"]);return te(N({},t),{sourceDescriptor:e})}function CE(r){let i=xue(r.reference,P.parseLocator),{sourceItem:e}=i,t=Or(i,["sourceItem"]);return te(N({},t),{sourceLocator:e})}function kue({parentLocator:r,sourceItem:e,patchPaths:t,sourceVersion:i,patchHash:n},s){let o=r!==null?{locator:P.stringifyLocator(r)}:{},a=typeof i!="undefined"?{version:i}:{},l=typeof n!="undefined"?{hash:n}:{};return P.makeRange({protocol:"patch:",source:s(e),selector:t.join("&"),params:N(N(N({},a),l),o)})}function m_e(r,{parentLocator:e,sourceDescriptor:t,patchPaths:i}){return P.makeLocator(r,kue({parentLocator:e,sourceItem:t,patchPaths:i},P.stringifyDescriptor))}function ZT(r,{parentLocator:e,sourcePackage:t,patchPaths:i,patchHash:n}){return P.makeLocator(r,kue({parentLocator:e,sourceItem:t,sourceVersion:t.version,patchPaths:i,patchHash:n},P.stringifyLocator))}function Pue({onAbsolute:r,onRelative:e,onBuiltin:t},i){i.startsWith("~")&&(i=i.slice(1));let s=i.match(C_e);return s!==null?t(s[1]):k.isAbsolute(i)?r(i):e(i)}function Due(r){let e=r.startsWith("~");return e&&(r=r.slice(1)),{optional:e}}function $T(r){return Pue({onAbsolute:()=>!1,onRelative:()=>!0,onBuiltin:()=>!1},r)}async function mE(r,e,t){let i=r!==null?await t.fetcher.fetch(r,t):null,n=i&&i.localPath?{packageFs:new _t(Me.root),prefixPath:k.relative(Me.root,i.localPath)}:i;i&&i!==n&&i.releaseFs&&i.releaseFs();let s=await Se.releaseAfterUseAsync(async()=>await Promise.all(e.map(async o=>{let a=Due(o),l=await Pue({onAbsolute:async()=>await K.readFilePromise(o,"utf8"),onRelative:async()=>{if(n===null)throw new Error("Assertion failed: The parent locator should have been fetched");return await n.packageFs.readFilePromise(k.join(n.prefixPath,o),"utf8")},onBuiltin:async c=>await t.project.configuration.firstHook(u=>u.getBuiltinPatch,t.project,c)},o);return te(N({},a),{source:l})})));for(let o of s)typeof o.source=="string"&&(o.source=o.source.replace(/\r\n?/g,` +`));return s}async function eO(r,{cache:e,project:t}){let i=t.storedPackages.get(r.locatorHash);if(typeof i=="undefined")throw new Error("Assertion failed: Expected the package to be registered");let n=t.storedChecksums,s=new di,o=t.configuration.makeFetcher(),a=await o.fetch(r,{cache:e,project:t,fetcher:o,checksums:n,report:s}),l=await K.mktempPromise(),c=k.join(l,"source"),u=k.join(l,"user"),g=k.join(l,".yarn-patch.json");return await Promise.all([K.copyPromise(c,a.prefixPath,{baseFs:a.packageFs}),K.copyPromise(u,a.prefixPath,{baseFs:a.packageFs}),K.writeJsonPromise(g,{locator:P.stringifyLocator(r),version:i.version})]),K.detachTemp(l),u}async function tO(r,e){let t=H.fromPortablePath(r).replace(/\\/g,"/"),i=H.fromPortablePath(e).replace(/\\/g,"/"),{stdout:n,stderr:s}=await Nr.execvp("git",["-c","core.safecrlf=false","diff","--src-prefix=a/","--dst-prefix=b/","--ignore-cr-at-eol","--full-index","--no-index","--no-renames","--text",t,i],{cwd:H.toPortablePath(process.cwd()),env:te(N({},process.env),{GIT_CONFIG_NOSYSTEM:"1",HOME:"",XDG_CONFIG_HOME:"",USERPROFILE:""})});if(s.length>0)throw new Error(`Unable to diff directories. Make sure you have a recent version of 'git' available in PATH. +The following error was reported by 'git': +${s}`);let o=t.startsWith("/")?a=>a.slice(1):a=>a;return n.replace(new RegExp(`(a|b)(${Se.escapeRegExp(`/${o(t)}/`)})`,"g"),"$1/").replace(new RegExp(`(a|b)${Se.escapeRegExp(`/${o(i)}/`)}`,"g"),"$1/").replace(new RegExp(Se.escapeRegExp(`${t}/`),"g"),"").replace(new RegExp(Se.escapeRegExp(`${i}/`),"g"),"")}function Rue(r,{configuration:e,report:t}){for(let i of r.parts)for(let n of i.lines)switch(i.type){case Zr.Context:t.reportInfo(null,` ${ae.pretty(e,n,"grey")}`);break;case Zr.Deletion:t.reportError(X.FROZEN_LOCKFILE_EXCEPTION,`- ${ae.pretty(e,n,ae.Type.REMOVED)}`);break;case Zr.Insertion:t.reportError(X.FROZEN_LOCKFILE_EXCEPTION,`+ ${ae.pretty(e,n,ae.Type.ADDED)}`);break;default:Se.assertNever(i.type)}}var rO=class{supports(e,t){return!!e.reference.startsWith("patch:")}getLocalPath(e,t){return null}async fetch(e,t){let i=t.checksums.get(e.locatorHash)||null,[n,s,o]=await t.cache.fetchPackageFromCache(e,i,N({onHit:()=>t.report.reportCacheHit(e),onMiss:()=>t.report.reportCacheMiss(e,`${P.prettyLocator(t.project.configuration,e)} can't be found in the cache and will be fetched from the disk`),loader:()=>this.patchPackage(e,t),skipIntegrityCheck:t.skipIntegrityCheck},t.cacheOptions));return{packageFs:n,releaseFs:s,prefixPath:P.getIdentVendorPath(e),localPath:this.getLocalPath(e,t),checksum:o}}async patchPackage(e,t){let{parentLocator:i,sourceLocator:n,sourceVersion:s,patchPaths:o}=CE(e),a=await mE(i,o,t),l=await K.mktempPromise(),c=k.join(l,"current.zip"),u=await t.fetcher.fetch(n,t),g=P.getIdentVendorPath(e),f=await fn(),h=new li(c,{libzip:f,create:!0,level:t.project.configuration.get("compressionLevel")});await Se.releaseAfterUseAsync(async()=>{await h.copyPromise(g,u.prefixPath,{baseFs:u.packageFs,stableSort:!0})},u.releaseFs),h.saveAndClose();for(let{source:p,optional:m}of a){if(p===null)continue;let y=new li(c,{libzip:f,level:t.project.configuration.get("compressionLevel")}),b=new _t(k.resolve(Me.root,g),{baseFs:y});try{await Tb(Lb(p),{baseFs:b,version:s})}catch(v){if(!(v instanceof pE))throw v;let x=t.project.configuration.get("enableInlineHunks"),T=!x&&!m?" (set enableInlineHunks for details)":"",q=`${P.prettyLocator(t.project.configuration,e)}: ${v.message}${T}`,Y=$=>{!x||Rue(v.hunk,{configuration:t.project.configuration,report:$})};if(y.discardAndClose(),m){t.report.reportWarningOnce(X.PATCH_HUNK_FAILED,q,{reportExtra:Y});continue}else throw new ct(X.PATCH_HUNK_FAILED,q,Y)}y.saveAndClose()}return new li(c,{libzip:f,level:t.project.configuration.get("compressionLevel")})}};var E_e=3,iO=class{supportsDescriptor(e,t){return!!e.range.startsWith("patch:")}supportsLocator(e,t){return!!e.reference.startsWith("patch:")}shouldPersistResolution(e,t){return!1}bindDescriptor(e,t,i){let{patchPaths:n}=dE(e);return n.every(s=>!$T(s))?e:P.bindDescriptor(e,{locator:P.stringifyLocator(t)})}getResolutionDependencies(e,t){let{sourceDescriptor:i}=dE(e);return[i]}async getCandidates(e,t,i){if(!i.fetchOptions)throw new Error("Assertion failed: This resolver cannot be used unless a fetcher is configured");let{parentLocator:n,sourceDescriptor:s,patchPaths:o}=dE(e),a=await mE(n,o,i.fetchOptions),l=t.get(s.descriptorHash);if(typeof l=="undefined")throw new Error("Assertion failed: The dependency should have been resolved");let c=Dn.makeHash(`${E_e}`,...a.map(u=>JSON.stringify(u))).slice(0,6);return[ZT(e,{parentLocator:n,sourcePackage:l,patchPaths:o,patchHash:c})]}async getSatisfying(e,t,i){return null}async resolve(e,t){let{sourceLocator:i}=CE(e),n=await t.resolver.resolve(i,t);return N(N({},n),e)}};var EE=class extends Le{constructor(){super(...arguments);this.save=J.Boolean("-s,--save",!1,{description:"Add the patch to your resolution entries"});this.patchFolder=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState();let n=k.resolve(this.context.cwd,H.toPortablePath(this.patchFolder)),s=k.join(n,"../source"),o=k.join(n,"../.yarn-patch.json");if(!K.existsSync(s))throw new Pe("The argument folder didn't get created by 'yarn patch'");let a=await tO(s,n),l=await K.readJsonPromise(o),c=P.parseLocator(l.locator,!0);if(!t.storedPackages.has(c.locatorHash))throw new Pe("No package found in the project for the given locator");if(!this.save){this.context.stdout.write(a);return}let u=e.get("patchFolder"),g=k.join(u,`${P.slugifyLocator(c)}.patch`);await K.mkdirPromise(u,{recursive:!0}),await K.writeFilePromise(g,a);let f=k.relative(t.cwd,g);t.topLevelWorkspace.manifest.resolutions.push({pattern:{descriptor:{fullName:P.stringifyIdent(c),description:l.version}},reference:`patch:${P.stringifyLocator(c)}#${f}`}),await t.persist()}};EE.paths=[["patch-commit"]],EE.usage=Re.Usage({description:"generate a patch out of a directory",details:"\n By default, this will print a patchfile on stdout based on the diff between the folder passed in and the original version of the package. Such file is suitable for consumption with the `patch:` protocol.\n\n With the `-s,--save` option set, the patchfile won't be printed on stdout anymore and will instead be stored within a local file (by default kept within `.yarn/patches`, but configurable via the `patchFolder` setting). A `resolutions` entry will also be added to your top-level manifest, referencing the patched package via the `patch:` protocol.\n\n Note that only folders generated by `yarn patch` are accepted as valid input for `yarn patch-commit`.\n "});var Fue=EE;var IE=class extends Le{constructor(){super(...arguments);this.json=J.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.package=J.String()}async execute(){let e=await ye.find(this.context.cwd,this.context.plugins),{project:t,workspace:i}=await ze.find(e,this.context.cwd),n=await Nt.find(e);if(!i)throw new ht(t.cwd,this.context.cwd);await t.restoreInstallState();let s=P.parseLocator(this.package);if(s.reference==="unknown"){let o=Se.mapAndFilter([...t.storedPackages.values()],a=>a.identHash!==s.identHash?Se.mapAndFilter.skip:P.isVirtualLocator(a)?Se.mapAndFilter.skip:a);if(o.length===0)throw new Pe("No package found in the project for the given locator");if(o.length>1)throw new Pe(`Multiple candidate packages found; explicitly choose one of them (use \`yarn why \` to get more information as to who depends on them): +${o.map(a=>` +- ${P.prettyLocator(e,a)}`).join("")}`);s=o[0]}if(!t.storedPackages.has(s.locatorHash))throw new Pe("No package found in the project for the given locator");await Je.start({configuration:e,json:this.json,stdout:this.context.stdout},async o=>{let a=await eO(s,{cache:n,project:t});o.reportJson({locator:P.stringifyLocator(s),path:H.fromPortablePath(a)}),o.reportInfo(X.UNNAMED,`Package ${P.prettyLocator(e,s)} got extracted with success!`),o.reportInfo(X.UNNAMED,`You can now edit the following folder: ${ae.pretty(e,H.fromPortablePath(a),"magenta")}`),o.reportInfo(X.UNNAMED,`Once you are done run ${ae.pretty(e,`yarn patch-commit -s ${process.platform==="win32"?'"':""}${H.fromPortablePath(a)}${process.platform==="win32"?'"':""}`,"cyan")} and Yarn will store a patchfile based on your changes.`)})}};IE.paths=[["patch"]],IE.usage=Re.Usage({description:"prepare a package for patching",details:"\n This command will cause a package to be extracted in a temporary directory intended to be editable at will.\n \n Once you're done with your changes, run `yarn patch-commit -s ` (with `` being the temporary directory you received) to generate a patchfile and register it into your top-level manifest via the `patch:` protocol. Run `yarn patch-commit -h` for more details.\n "});var Nue=IE;var I_e={configuration:{enableInlineHunks:{description:"If true, the installs will print unmatched patch hunks",type:Ie.BOOLEAN,default:!1},patchFolder:{description:"Folder where the patch files must be written",type:Ie.ABSOLUTE_PATH,default:"./.yarn/patches"}},commands:[Fue,Nue],fetchers:[rO],resolvers:[iO]},y_e=I_e;var AO={};ft(AO,{default:()=>b_e});var sO=class{supportsPackage(e,t){return this.isEnabled(t)}async findPackageLocation(e,t){if(!this.isEnabled(t))throw new Error("Assertion failed: Expected the pnpm linker to be enabled");let i=oO(),n=t.project.installersCustomData.get(i);if(!n)throw new Pe(`The project in ${ae.pretty(t.project.configuration,`${t.project.cwd}/package.json`,ae.Type.PATH)} doesn't seem to have been installed - running an install there might help`);let s=n.pathByLocator.get(e.locatorHash);if(typeof s=="undefined")throw new Pe(`Couldn't find ${P.prettyLocator(t.project.configuration,e)} in the currently installed pnpm map - running an install might help`);return s}async findPackageLocator(e,t){if(!this.isEnabled(t))return null;let i=oO(),n=t.project.installersCustomData.get(i);if(!n)throw new Pe(`The project in ${ae.pretty(t.project.configuration,`${t.project.cwd}/package.json`,ae.Type.PATH)} doesn't seem to have been installed - running an install there might help`);let s=e.match(/(^.*\/node_modules\/(@[^/]*\/)?[^/]+)(\/.*$)/);if(s){let l=n.locatorByPath.get(s[1]);if(l)return l}let o=e,a=e;do{a=o,o=k.dirname(a);let l=n.locatorByPath.get(a);if(l)return l}while(o!==a);return null}makeInstaller(e){return new Lue(e)}isEnabled(e){return e.project.configuration.get("nodeLinker")==="pnpm"}},Lue=class{constructor(e){this.opts=e;this.asyncActions=new Se.AsyncActions(10);this.customData={pathByLocator:new Map,locatorByPath:new Map}}getCustomDataKey(){return oO()}attachCustomData(e){}async installPackage(e,t,i){switch(e.linkType){case Qt.SOFT:return this.installPackageSoft(e,t,i);case Qt.HARD:return this.installPackageHard(e,t,i)}throw new Error("Assertion failed: Unsupported package link type")}async installPackageSoft(e,t,i){let n=k.resolve(t.packageFs.getRealPath(),t.prefixPath);return this.customData.pathByLocator.set(e.locatorHash,n),{packageLocation:n,buildDirective:null}}async installPackageHard(e,t,i){var u;let n=w_e(e,{project:this.opts.project});this.customData.locatorByPath.set(n,P.stringifyLocator(e)),this.customData.pathByLocator.set(e.locatorHash,n),i.holdFetchResult(this.asyncActions.set(e.locatorHash,async()=>{await K.mkdirPromise(n,{recursive:!0}),await K.copyPromise(n,t.prefixPath,{baseFs:t.packageFs,overwrite:!1})}));let o=P.isVirtualLocator(e)?P.devirtualizeLocator(e):e,a={manifest:(u=await At.tryFind(t.prefixPath,{baseFs:t.packageFs}))!=null?u:new At,misc:{hasBindingGyp:Ca.hasBindingGyp(t)}},l=this.opts.project.getDependencyMeta(o,e.version),c=Ca.extractBuildScripts(e,a,l,{configuration:this.opts.project.configuration,report:this.opts.report});return{packageLocation:n,buildDirective:c}}async attachInternalDependencies(e,t){this.opts.project.configuration.get("nodeLinker")==="pnpm"&&(!Mue(e,{project:this.opts.project})||this.asyncActions.reduce(e.locatorHash,async i=>{await i;let n=this.customData.pathByLocator.get(e.locatorHash);if(typeof n=="undefined")throw new Error(`Assertion failed: Expected the package to have been registered (${P.stringifyLocator(e)})`);let s=k.join(n,kt.nodeModules),o=[],a=await Kue(s);for(let[l,c]of t){let u=c;Mue(c,{project:this.opts.project})||(this.opts.report.reportWarning(X.UNNAMED,"The pnpm linker doesn't support providing different versions to workspaces' peer dependencies"),u=P.devirtualizeLocator(c));let g=this.customData.pathByLocator.get(u.locatorHash);if(typeof g=="undefined")throw new Error(`Assertion failed: Expected the package to have been registered (${P.stringifyLocator(c)})`);let f=P.stringifyIdent(l),h=k.join(s,f),p=k.relative(k.dirname(h),g),m=a.get(f);a.delete(f),o.push(Promise.resolve().then(async()=>{if(m){if(m.isSymbolicLink()&&await K.readlinkPromise(h)===p)return;await K.removePromise(h)}await K.mkdirpPromise(k.dirname(h)),process.platform=="win32"?await K.symlinkPromise(g,h,"junction"):await K.symlinkPromise(p,h)}))}o.push(Uue(s,a)),await Promise.all(o)}))}async attachExternalDependents(e,t){throw new Error("External dependencies haven't been implemented for the pnpm linker")}async finalizeInstall(){let e=Oue(this.opts.project);if(this.opts.project.configuration.get("nodeLinker")!=="pnpm")await K.removePromise(e);else{let t=[],i=new Set;for(let s of this.customData.pathByLocator.values()){let o=k.contains(e,s);if(o!==null){let[a,,...l]=o.split(k.sep);i.add(a);let c=k.join(e,a);t.push(K.readdirPromise(c).then(u=>Promise.all(u.map(async g=>{let f=k.join(c,g);if(g===kt.nodeModules){let h=await Kue(f);return h.delete(l.join(k.sep)),Uue(f,h)}else return K.removePromise(f)}))).catch(u=>{if(u.code!=="ENOENT")throw u}))}}let n;try{n=await K.readdirPromise(e)}catch{n=[]}for(let s of n)i.has(s)||t.push(K.removePromise(k.join(e,s)));await Promise.all(t)}return await this.asyncActions.wait(),await aO(e),this.opts.project.configuration.get("nodeLinker")!=="node-modules"&&await aO(Tue(this.opts.project)),{customData:this.customData}}};function oO(){return JSON.stringify({name:"PnpmInstaller",version:2})}function Tue(r){return k.join(r.cwd,kt.nodeModules)}function Oue(r){return k.join(Tue(r),".store")}function w_e(r,{project:e}){let t=P.slugifyLocator(r),i=P.getIdentVendorPath(r);return k.join(Oue(e),t,i)}function Mue(r,{project:e}){return!P.isVirtualLocator(r)||!e.tryWorkspaceByLocator(r)}async function Kue(r){let e=new Map,t=[];try{t=await K.readdirPromise(r,{withFileTypes:!0})}catch(i){if(i.code!=="ENOENT")throw i}try{for(let i of t)if(!i.name.startsWith("."))if(i.name.startsWith("@")){let n=await K.readdirPromise(k.join(r,i.name),{withFileTypes:!0});if(n.length===0)e.set(i.name,i);else for(let s of n)e.set(`${i.name}/${s.name}`,s)}else e.set(i.name,i)}catch(i){if(i.code!=="ENOENT")throw i}return e}async function Uue(r,e){var n;let t=[],i=new Set;for(let s of e.keys()){t.push(K.removePromise(k.join(r,s)));let o=(n=P.tryParseIdent(s))==null?void 0:n.scope;o&&i.add(`@${o}`)}return Promise.all(t).then(()=>Promise.all([...i].map(s=>aO(k.join(r,s)))))}async function aO(r){try{await K.rmdirPromise(r)}catch(e){if(e.code!=="ENOENT"&&e.code!=="ENOTEMPTY")throw e}}var B_e={linkers:[sO]},b_e=B_e;var L0=()=>({modules:new Map([["@yarnpkg/cli",GC],["@yarnpkg/core",EC],["@yarnpkg/fslib",Zh],["@yarnpkg/libzip",Md],["@yarnpkg/parsers",op],["@yarnpkg/shell",Ud],["clipanion",cZ(Cp)],["semver",Q_e],["typanion",cg],["yup",S_e],["@yarnpkg/plugin-essentials",GN],["@yarnpkg/plugin-compat",zN],["@yarnpkg/plugin-dlx",_N],["@yarnpkg/plugin-file",nL],["@yarnpkg/plugin-git",jN],["@yarnpkg/plugin-github",oL],["@yarnpkg/plugin-http",lL],["@yarnpkg/plugin-init",fL],["@yarnpkg/plugin-link",mL],["@yarnpkg/plugin-nm",JL],["@yarnpkg/plugin-npm",qT],["@yarnpkg/plugin-npm-cli",VT],["@yarnpkg/plugin-pack",HT],["@yarnpkg/plugin-patch",nO],["@yarnpkg/plugin-pnp",LL],["@yarnpkg/plugin-pnpm",AO]]),plugins:new Set(["@yarnpkg/plugin-essentials","@yarnpkg/plugin-compat","@yarnpkg/plugin-dlx","@yarnpkg/plugin-file","@yarnpkg/plugin-git","@yarnpkg/plugin-github","@yarnpkg/plugin-http","@yarnpkg/plugin-init","@yarnpkg/plugin-link","@yarnpkg/plugin-nm","@yarnpkg/plugin-npm","@yarnpkg/plugin-npm-cli","@yarnpkg/plugin-pack","@yarnpkg/plugin-patch","@yarnpkg/plugin-pnp","@yarnpkg/plugin-pnpm"])});s0({binaryVersion:Ur||"",pluginConfiguration:L0()});})(); +/*! + * buildToken + * Builds OAuth token prefix (helper function) + * + * @name buildToken + * @function + * @param {GitUrl} obj The parsed Git url object. + * @return {String} token prefix + */ +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */ +/*! + * is-extglob + * + * Copyright (c) 2014-2016, Jon Schlinkert. + * Licensed under the MIT License. + */ +/*! + * is-glob + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ +/*! + * is-number + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Released under the MIT License. + */ +/*! + * is-windows + * + * Copyright © 2015-2018, Jon Schlinkert. + * Released under the MIT License. + */ +/*! + * to-regex-range + * + * Copyright (c) 2015-present, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..ec7a168 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,2 @@ +yarnPath: .yarn/releases/yarn-3.2.2.cjs +nodeLinker: node-modules diff --git a/.yo-rc.json b/.yo-rc.json index c7d0d7b..11a188a 100644 --- a/.yo-rc.json +++ b/.yo-rc.json @@ -21,17 +21,6 @@ "githubAccount": "Caleydo", "app": "coral", "clientOnly": false, - "entries": { - "app": { - "js": "dist/initialize.app.js", - "template": "dist/app.template.ejs", - "html": "app/index.html", - "chunkName": "app", - "excludeChunks": [ - - ] - } - }, "libraryAliases": { "d3": "d3/d3.js" }, @@ -52,7 +41,6 @@ "selection": "some" } } - ], - "copyFiles": ["dist/clientConfig.json"] + ] } -} \ No newline at end of file +} diff --git a/dist/Cohort.d.ts b/dist/Cohort.d.ts deleted file mode 100644 index 702a163..0000000 --- a/dist/Cohort.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { IAllFilters, IDType, IDTypeLike, IRow, IServerColumn } from 'tdp_core'; -import { ICohort, ICohortRep, IElement, IElementProvJSONCohort, IProvAttrAndValuesCohort } from './CohortInterfaces'; -import { ICohortDepletionScoreFilterParams, ICohortEqualsFilterParams, ICohortGeneEqualsFilterParams, ICohortGeneNumFilterParams, ICohortNumFilterParams, ICohortPanelAnnotationFilterParams, ICohortRow, IEqualsList, INumRange } from './rest'; -import { Task } from './Tasks'; -export declare function createCohort(labelOne: string, labelTwo: string, isInitial: boolean, previousCohortId: number, database: string, databaseName: string, schema: string, table: string, view: string, idType: IDTypeLike, idColumn: IServerColumn, filters: IAllFilters): Promise; -export declare function createCohortWithEqualsFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, attribute: string, numeric: 'true' | 'false', values: Array | Array): Promise; -export declare function createCohortWithTreatmentFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, baseAgent: boolean, agent: Array, regimen: number): Promise; -export declare function createCohortWithNumFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, attribute: string, ranges: Array): Promise; -export declare function createCohortWithGeneNumFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, table: string, attribute: string, ensg: string, ranges: Array): Promise; -export declare function createCohortWithGeneEqualsFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, table: string, attribute: string, ensg: string, numeric: 'true' | 'false', values: Array | Array): Promise; -export declare function createCohortWithDepletionScoreFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, table: string, attribute: string, ensg: string, depletionscreen: string, ranges: Array): Promise; -export declare function createCohortWithPanelAnnotationFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, panel: string, values: Array): Promise; -export declare function createCohortFromDB(data: ICohortRow, provJSON: IProvAttrAndValuesCohort): Cohort; -export declare enum cloneFilterTypes { - none = 0, - equals = 1, - range = 2, - geneScoreRange = 3, - geneScoreEquals = 4, - depletionScoreRange = 5, - panelAnnotation = 6 -} -export interface ICohortClassBasicValues { - id: string; - dbId: number; - labelOne: string; - labelTwo: string; -} -export interface ICohortClassDatabaseValues { - database: string; - schema: string; - table: string; - view: string; - idType: IDTypeLike; - idColumn: IServerColumn; -} -export declare class Cohort implements ICohort { - id: string; - dbId: number; - label: string; - private _labelOne; - private _labelTwo; - representation: ICohortRep; - isInitial: boolean; - values: Array; - isClone: boolean; - colorTaskView: string; - private _sizeReference; - usedFilter: cloneFilterTypes; - usedFilterParams: ICohortEqualsFilterParams | ICohortNumFilterParams | ICohortGeneNumFilterParams | ICohortDepletionScoreFilterParams | ICohortPanelAnnotationFilterParams; - private _database; - private _schema; - private _view; - private _table; - private _size; - private _parents; - private _children; - private _parentCohorts; - private _filters; - private _selected; - private _hasFilterConflict; - private _bloodline; - readonly idType: IDType; - readonly idColumn: IServerColumn; - constructor(basicValues: ICohortClassBasicValues, values: Array, databaseValues: ICohortClassDatabaseValues, filters?: IAllFilters, sizeReference?: number, isInitial?: boolean); - private _checkForFilterConflict; - hasfilterConflict(): boolean; - private _combineLabels; - setLabels(labelOne: string, labelTwo: string): void; - get labelOne(): string; - get labelTwo(): string; - /** - * Creates the label as a string with HTML elements for the # and cht_number to be bold and smaller - * @returns HTML formatted cohort label - */ - getHTMLLabel(): string; - set parents(parents: Array); - get parents(): Array; - /** - * Returns all parent tasks, which are all the parent elements of this element. - */ - getTaskParents(): Array; - /** - * Returns all parent cohorts, which are all the grand-parent elements of this element. - */ - getCohortParents(): Array; - setCohortParents(chtParents: Array): void; - set children(children: Array); - get children(): Array; - /** - * Returns all children tasks, which are all the children elements of this element. - */ - getTaskChildren(): Array; - /** - * Returns all children cohorts, which are all the grand-children elements of this element. - */ - getCohortChildren(): Array; - set database(database: string); - get database(): string; - set schema(schema: string); - get schema(): string; - set view(view: string); - get view(): string; - get table(): string; - set table(table: string); - get filters(): IAllFilters; - set filters(filters: IAllFilters); - get sizeReference(): number; - set sizeReference(value: number); - get size(): Promise; - getRetrievedSize(): number; - get data(): Promise; - get selected(): boolean; - set selected(selected: boolean); - private _fetchSize; - private _fetchData; - clone(usedFilter: cloneFilterTypes, filterParams: ICohortEqualsFilterParams | ICohortNumFilterParams | ICohortGeneNumFilterParams | ICohortGeneEqualsFilterParams | ICohortDepletionScoreFilterParams | ICohortPanelAnnotationFilterParams): Cohort; - private _getHeritage; - private _createHeritageElement; - getBloodline(): IBloodlineElement[]; - updateBloodline(): void; - toProvenanceJSON(): IElementProvJSONCohort; -} -export interface IBloodlineElement { - obj: IElement; - elemType: string; - label: string; - size: number; -} -export declare const EMPTY_COHORT_ID = "--EMPTY--"; -export declare function getEmptyCohort(parent: Cohort): Cohort; -export declare const LOADER_COHORT_ID = "--LOADING--"; -export declare function getLoaderCohort(parent: Cohort): Cohort; -export declare function getCohortLabel(cht: Cohort): string; -export declare function getCohortLabels(cohorts: Cohort[]): string[]; diff --git a/dist/Cohort.js b/dist/Cohort.js deleted file mode 100644 index 0d82e64..0000000 --- a/dist/Cohort.js +++ /dev/null @@ -1,563 +0,0 @@ -import { IDTypeManager, UniqueIdManager } from 'tdp_core'; -import { ElementProvType } from './CohortInterfaces'; -import { createDBCohort, createDBCohortWithDepletionScoreFilter, createDBCohortWithEqualsFilter, createDBCohortWithGeneEqualsFilter, createDBCohortWithGeneNumFilter, createDBCohortWithNumFilter, createDBCohortWithPanelAnnotationFilter, createDBCohortWithTreatmentFilter, dataDBCohortDepletionScoreFilter, dataDBCohortGeneWithEqualsFilter, dataDBCohortGeneWithNumFilter, dataDBCohortPanelAnnotationFilter, dataDBCohortWithEqualsFilter, dataDBCohortWithNumFilter, getCohortData, getCohortSize, sizeDBCohortDepletionScoreFilter, sizeDBCohortGeneWithEqualsFilter, sizeDBCohortGeneWithNumFilter, sizeDBCohortPanelAnnotationFilter, sizeDBCohortWithEqualsFilter, sizeDBCohortWithNumFilter, updateCohortName, valueListDelimiter } from './rest'; -import { mergeTwoAllFilters } from './Tasks'; -import { deepCopy, handleDataLoadError, handleDataSaveError, log } from './util'; -export async function createCohort(labelOne, labelTwo, isInitial, previousCohortId, database, databaseName, schema, table, view, idType, idColumn, filters) { - const params = { - name: combineLabelsForDB(labelOne, labelTwo), - isInitial: isInitial ? 1 : 0, - previous: previousCohortId, - database, - schema, - table - }; - log.debug('try new cohort: ', params); - const dbId = await cohortCreationDBHandler(createDBCohort, params); - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [{ values: [] }], { database: databaseName, schema, table, view, idType, idColumn }, filters, null, isInitial); - log.debug('new cohort: ', cht); - return cht; -} -function getLegacyEqualsFilter(parentFilters, attribute, categoryOrValue) { - const thisChtFilter = { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }; - thisChtFilter.normal[attribute] = categoryOrValue; - return mergeTwoAllFilters(parentFilters, thisChtFilter); //merge the existing with the new filter -} -function getLegacyRangeFilter(parentFilters, attribute, range) { - const thisFilter = { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }; - thisFilter[range.operatorOne][attribute] = range.valueOne; - if (range.operatorTwo) { - thisFilter[range.operatorTwo][attribute] = range.valueTwo; - } - return mergeTwoAllFilters(parentFilters, thisFilter); //merge the existing with the new filter -} -export async function createCohortWithEqualsFilter(parentCohort, labelOne, labelTwo, attribute, numeric, values) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - attribute, - numeric, - values - }; - log.debug('try new cohort equals filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithEqualsFilter, params); - const newFilter = getLegacyEqualsFilter(parentCohort.filters, attribute, values); - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [{ values }], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with equals filter: ', cht); - return cht; -} -export async function createCohortWithTreatmentFilter(parentCohort, labelOne, labelTwo, baseAgent, agent, regimen) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - baseAgent, - agent, - regimen - }; - log.debug('try new cohort equals filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithTreatmentFilter, params); - const newFilter = getLegacyEqualsFilter(parentCohort.filters, 'agent', agent); - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [{ values: agent }], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with equals filter: ', cht); - return cht; -} -export async function createCohortWithNumFilter(parentCohort, labelOne, labelTwo, attribute, ranges) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - attribute, - ranges - }; - log.debug('try new cohort num filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithNumFilter, params); - const newFilter = getLegacyRangeFilter(parentCohort.filters, attribute, ranges[0]); - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [ranges], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with num filter: ', cht); - return cht; -} -export async function createCohortWithGeneNumFilter(parentCohort, labelOne, labelTwo, table, attribute, ensg, ranges) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - table, - attribute, - ensg, - ranges, - }; - log.debug('try new cohort gene num filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithGeneNumFilter, params); - // const newFilter = getLegacyRangeFilter(parentCohort.filters, attribute, ranges[0]); - const newFilter = parentCohort.filters; - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [ranges], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with gene num filter: ', cht); - return cht; -} -export async function createCohortWithGeneEqualsFilter(parentCohort, labelOne, labelTwo, table, attribute, ensg, numeric, values) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - table, - attribute, - ensg, - numeric, - values - }; - log.debug('try new cohort gene equals filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithGeneEqualsFilter, params); - // const newFilter = getLegacyEqualsFilter(parentCohort.filters, attribute, values[0].toString()); - const newFilter = parentCohort.filters; - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [{ values }], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with gene equals filter: ', cht); - return cht; -} -export async function createCohortWithDepletionScoreFilter(parentCohort, labelOne, labelTwo, table, attribute, ensg, depletionscreen, ranges) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - table, - attribute, - ensg, - ranges, - depletionscreen - }; - log.debug('try new cohort depletion score filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithDepletionScoreFilter, params); - // const newFilter = getLegacyRangeFilter(parentCohort.filters, attribute, ranges[0]); - const newFilter = parentCohort.filters; - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [ranges], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with depletion score filter: ', cht); - return cht; -} -export async function createCohortWithPanelAnnotationFilter(parentCohort, labelOne, labelTwo, panel, values) { - const params = { - cohortId: parentCohort.dbId, - name: combineLabelsForDB(labelOne, labelTwo), - panel, - values - }; - log.debug('try new cohort panel annotation filter: ', params); - const dbId = await cohortCreationDBHandler(createDBCohortWithPanelAnnotationFilter, params); - // const newFilter = getLegacyEqualsFilter(parentCohort.filters, panel, values[0].toString()); - const newFilter = parentCohort.filters; - // ATTENTION : database != databaseName - const cht = new Cohort({ id: `${dbId}`, dbId, labelOne, labelTwo }, [{ values }], { database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn }, newFilter); - log.debug('new cohort with panel annotation filter: ', cht); - return cht; -} -async function cohortCreationDBHandler(craeteDBCohortMethod, params) { - let dbId; - try { - let idResp = null; - idResp = await craeteDBCohortMethod(params); - log.debug('id of new cohort: ', idResp); - if (idResp && idResp.length === 1) { - dbId = Number(idResp[0]); - } - } - catch (e) { - handleDataSaveError(e); - } // end of try-catch - return dbId; -} -function combineLabelsForDB(labelOne, labelTwo) { - return `${labelOne}${valueListDelimiter}${labelTwo}`; -} -function splitLabelsFromDB(name) { - const split = name.split(valueListDelimiter); - // console.log('name, labels:', {name, split}); - return { - labelOne: split[0], - labelTwo: split[1] - }; -} -export function createCohortFromDB(data, provJSON) { - // ATTENTION : database != databaseName - const labels = splitLabelsFromDB(data.name); - const isInitial = data.is_initial === 1 ? true : false; - const basicValues = { - id: `${data.id}`, - dbId: data.id, - labelOne: labels.labelOne, - labelTwo: labels.labelTwo - }; - const databaseValues = { - database: provJSON.database, - schema: data.entity_schema, - table: data.entity_table, - view: provJSON.view, - idType: provJSON.idType, - idColumn: provJSON.idColumn - }; - const cht = new Cohort(basicValues, provJSON.values, databaseValues, { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }, null, isInitial); - const test = cht.size; - // cht.selected = provJSON.selected; - return cht; -} -export var cloneFilterTypes; -(function (cloneFilterTypes) { - cloneFilterTypes[cloneFilterTypes["none"] = 0] = "none"; - cloneFilterTypes[cloneFilterTypes["equals"] = 1] = "equals"; - cloneFilterTypes[cloneFilterTypes["range"] = 2] = "range"; - cloneFilterTypes[cloneFilterTypes["geneScoreRange"] = 3] = "geneScoreRange"; - cloneFilterTypes[cloneFilterTypes["geneScoreEquals"] = 4] = "geneScoreEquals"; - cloneFilterTypes[cloneFilterTypes["depletionScoreRange"] = 5] = "depletionScoreRange"; - cloneFilterTypes[cloneFilterTypes["panelAnnotation"] = 6] = "panelAnnotation"; -})(cloneFilterTypes || (cloneFilterTypes = {})); -export class Cohort { - constructor(basicValues, values, databaseValues, filters = { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }, sizeReference = null, isInitial = false) { - this.colorTaskView = null; - this._selected = false; - this._hasFilterConflict = false; - this._bloodline = []; - this.id = basicValues.id; - this.dbId = basicValues.dbId; - this._labelOne = basicValues.labelOne; - this._labelTwo = basicValues.labelTwo; - this._combineLabels(false); - this._database = databaseValues.database; - this._schema = databaseValues.schema; - this._view = databaseValues.view; - this._table = databaseValues.table; - this.idColumn = databaseValues.idColumn; - this.idType = databaseValues.idType ? IDTypeManager.getInstance().resolveIdType(databaseValues.idType) : undefined; - this._children = []; - this._parents = []; - this._parentCohorts = []; - this.sizeReference = sizeReference; - this.representation = null; - this.isInitial = isInitial; - this.isClone = false; - this._size = undefined; - this.values = values; - this._filters = deepCopy(filters); - this._checkForFilterConflict(); - } - _checkForFilterConflict() { - if (this.filters === null) { - this._hasFilterConflict = true; - } - else { - this._hasFilterConflict = false; - } - this._size = undefined; - } - hasfilterConflict() { - // return this._hasFilterConflict; - return false; // TODO remove legacy code with the filter object and filter conflict check - } - _combineLabels(updateDBCohort = true) { - this.label = `${this._labelOne}: ${this._labelTwo}`; - // console.log('combineLabels', {updateDBCohort, l1: this._labelOne, l2: this._labelTwo}); - if (updateDBCohort) { - updateCohortName({ cohortId: this.dbId, name: combineLabelsForDB(this.labelOne, this.labelTwo) }); - } - } - setLabels(labelOne, labelTwo) { - this._labelOne = labelOne; - this._labelTwo = labelTwo; - this._combineLabels(); - if (this.representation !== null && this.representation !== undefined) { - this.representation.setLabel(this._labelOne, this._labelTwo); - } - } - get labelOne() { - return this._labelOne; - } - get labelTwo() { - return this._labelTwo; - } - /** - * Creates the label as a string with HTML elements for the # and cht_number to be bold and smaller - * @returns HTML formatted cohort label - */ - getHTMLLabel() { - const currLabel = this.label; - let labelOneHTML = currLabel; - const [labelOneCounter] = currLabel.split(' ', 1); - if (labelOneCounter.startsWith('#')) { - const labelOneText = currLabel.substring(labelOneCounter.length + 1); - labelOneHTML = `#${labelOneCounter.substring(1)} ` + labelOneText; - } - return labelOneHTML; - } - set parents(parents) { - this._parents = parents; - this.updateBloodline(); - } - get parents() { - return this._parents; - } - /** - * Returns all parent tasks, which are all the parent elements of this element. - */ - getTaskParents() { - return this._parents; - } - /** - * Returns all parent cohorts, which are all the grand-parent elements of this element. - */ - getCohortParents() { - const chtParents = []; - for (const p of this._parents) { - chtParents.push(...p.parents); - } - if (chtParents.length === 0 && !this.isInitial) { - chtParents.push(...this._parentCohorts); - } - return chtParents; - } - setCohortParents(chtParents) { - this._parentCohorts = chtParents; - } - set children(children) { - this._children = children; - } - get children() { - return this._children; - } - /** - * Returns all children tasks, which are all the children elements of this element. - */ - getTaskChildren() { - return this._children; - } - /** - * Returns all children cohorts, which are all the grand-children elements of this element. - */ - getCohortChildren() { - const chtChildren = []; - for (const p of this._children) { - chtChildren.push(...p.children); - } - return chtChildren; - } - set database(database) { - this._database = database; - this._size = undefined; - } - get database() { - return this._database; - } - set schema(schema) { - this._schema = schema; - this._size = undefined; - } - get schema() { - return this._schema; - } - set view(view) { - this._view = view; - this._size = undefined; - } - get view() { - return this._view; - } - get table() { - return this._table; - } - set table(table) { - this._table = table; - this._size = undefined; - } - get filters() { - return this._filters; - } - set filters(filters) { - this._filters = deepCopy(filters); - this._size = undefined; - this._checkForFilterConflict(); - } - get sizeReference() { - return this._sizeReference; - } - set sizeReference(value) { - this._sizeReference = value; - } - get size() { - if (this._size === undefined) { - return this._fetchSize().then((size) => { - this._size = size; // first set size here - return this._size; // then return - }); - } - else { - return Promise.resolve(this._size); // return resolved promise --> nothing to do - } - } - getRetrievedSize() { - return this._size; - } - get data() { - return this._fetchData(); - } - get selected() { - return this._selected; - } - set selected(selected) { - this._selected = selected; - if (this.representation) { - this.representation.setSelection(this._selected); - } - } - async _fetchSize() { - const params = { - cohortId: this.dbId - }; - try { - if (this.isClone) { - if (this.usedFilter === cloneFilterTypes.none) { - return await getCohortSize(params); - } - else if (this.usedFilter === cloneFilterTypes.equals) { - return await sizeDBCohortWithEqualsFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.range) { - return await sizeDBCohortWithNumFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.geneScoreRange) { - return await sizeDBCohortGeneWithNumFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.geneScoreEquals) { - return await sizeDBCohortGeneWithEqualsFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.depletionScoreRange) { - return await sizeDBCohortDepletionScoreFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.panelAnnotation) { - return await sizeDBCohortPanelAnnotationFilter(this.usedFilterParams); - } - } - else { - return await getCohortSize(params); - } - } - catch (e) { - handleDataLoadError(e); - } - } - async _fetchData() { - const params = { - cohortId: this.dbId - }; - try { - if (this.isClone) { - if (this.usedFilter === cloneFilterTypes.none) { - return await getCohortData(params); - } - else if (this.usedFilter === cloneFilterTypes.equals) { - return await dataDBCohortWithEqualsFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.range) { - return await dataDBCohortWithNumFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.geneScoreRange) { - return await dataDBCohortGeneWithNumFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.geneScoreEquals) { - return await dataDBCohortGeneWithEqualsFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.depletionScoreRange) { - return await dataDBCohortDepletionScoreFilter(this.usedFilterParams); - } - else if (this.usedFilter === cloneFilterTypes.panelAnnotation) { - return await dataDBCohortPanelAnnotationFilter(this.usedFilterParams); - } - } - else { - log.debug('fetch cohort data'); - const data = await getCohortData(params); - return data; - } - } - catch (e) { - handleDataLoadError(e); - } - } - // filter method and params for the function - clone(usedFilter, filterParams) { - const clone = new Cohort({ id: this.id + '-clone#' + UniqueIdManager.getInstance().uniqueId('cht:cohort'), dbId: this.dbId, labelOne: this.labelOne, labelTwo: this.labelTwo }, this.values, { database: this.database, schema: this.schema, table: this.table, view: this.view, idType: this.idType, idColumn: this.idColumn }, this.filters, this.sizeReference); - clone.isClone = true; - clone.usedFilterParams = filterParams; - clone.usedFilter = usedFilter; - return clone; - } - // the last element in the bloodline is alway the root cohort - _getHeritage(heritage, currElem) { - // add current element - heritage.push(this._createHeritageElement(currElem)); - // go through all parents and add them - if (currElem.parents.length > 0) { - for (const elem of currElem.parents) { - heritage.concat(this._getHeritage(heritage, elem)); - } - } - return heritage; - } - _createHeritageElement(currElem) { - const tmp = { - obj: currElem, - elemType: 'task', - label: currElem.label, - size: 0 - }; - if (currElem instanceof Cohort) { - tmp.elemType = 'cohort'; - tmp.size = currElem.getRetrievedSize(); - } - return tmp; - } - getBloodline() { - if (this._bloodline.length === 0) { - // create bloodline - this.updateBloodline(); - } - return this._bloodline; - } - updateBloodline() { - this._bloodline = this._getHeritage([], this); - } - toProvenanceJSON() { - return { - id: this.id, - type: ElementProvType.Cohort, - label: this.label, - parent: this._parents.map((elem) => elem.id), - children: this._children.map((elem) => elem.id), - attrAndValues: { - values: this.values, - view: this._view, - database: this._database, - idType: this.idType, - idColumn: this.idColumn, - selected: this._selected, - isRoot: false - } - }; - } -} -export const EMPTY_COHORT_ID = '--EMPTY--'; -export function getEmptyCohort(parent) { - const cht = new Cohort({ id: EMPTY_COHORT_ID, dbId: NaN, labelOne: 'Empty', labelTwo: '' }, null, { database: null, schema: null, table: null, view: null, idType: undefined, idColumn: null }); - cht.setCohortParents([parent]); - return cht; -} -export const LOADER_COHORT_ID = '--LOADING--'; -export function getLoaderCohort(parent) { - const cht = new Cohort({ id: LOADER_COHORT_ID, dbId: NaN, labelOne: 'Loading', labelTwo: '' }, null, { database: null, schema: null, table: null, view: null, idType: undefined, idColumn: null }); - cht.setCohortParents([parent]); - return cht; -} -export function getCohortLabel(cht) { - return cht.label; -} -export function getCohortLabels(cohorts) { - return cohorts.map((cht) => getCohortLabel(cht)); -} -//# sourceMappingURL=Cohort.js.map \ No newline at end of file diff --git a/dist/Cohort.js.map b/dist/Cohort.js.map deleted file mode 100644 index 3a4e5ad..0000000 --- a/dist/Cohort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Cohort.js","sourceRoot":"","sources":["../src/Cohort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,aAAa,EAAuB,eAAe,EAAC,MAAM,UAAU,CAAC;AAC9G,OAAO,EAAC,eAAe,EAAkF,MAAM,oBAAoB,CAAC;AACpI,OAAO,EAAC,cAAc,EAAE,sCAAsC,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,uCAAuC,EAAE,iCAAiC,EAAE,gCAAgC,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,aAAa,EAAE,aAAa,EAAmhB,gCAAgC,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,kBAAkB,EAAC,MAAM,QAAQ,CAAC;AAC/uC,OAAO,EAAC,kBAAkB,EAAO,MAAM,SAAS,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,EAAC,MAAM,QAAQ,CAAC;AAM/E,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,QAAgB,EAAE,QAAgB,EAAE,SAAkB,EAAE,gBAAwB,EAAE,QAAgB,EAAE,YAAoB,EAAE,MAAc,EAAE,KAAa,EAAE,IAAY,EAAE,MAAkB,EAAE,QAAuB,EAAE,OAAoB;IACzQ,MAAM,MAAM,GAAoB;QAC9B,IAAI,EAAE,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC5C,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC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AAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/B,OAAO,GAAG,CAAC;AACb,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,KAAK,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAiB;IAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACnD,CAAC"} \ No newline at end of file diff --git a/dist/CohortInterfaces.d.ts b/dist/CohortInterfaces.d.ts deleted file mode 100644 index 051bcbc..0000000 --- a/dist/CohortInterfaces.d.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { IDType } from 'tdp_core'; -import { IServerColumn } from 'tdp_core'; -import { Cohort } from './Cohort'; -import { IAttribute, IAttributeJSON } from './data/Attribute'; -import { IEqualsList, INumRange } from './rest'; -import { InputCohort } from './Taskview/Taskview'; -/** - * Enumeration for the different types of task - */ -export declare enum TaskType { - Filter = 0, - Split = 1, - Combine = 2, - Overview = 3, - Characterization = 4 -} -/** - * Interface for every element in the overview (except the paths between the elements) - */ -export declare enum ElementProvType { - Cohort = "Cohort", - TaskSplit = "Task-Split", - TaskFilter = "Task-Filter" -} -export interface IProvAttrAndValuesCohort { - values: Array; - view: string; - database: string; - idType: IDType; - idColumn: IServerColumn; - selected: boolean; - isRoot: boolean; -} -export interface IProvAttrAndValuesTask { - attributes: IAttributeJSON[]; -} -export interface IElementProvJSON { - id: string; - type: ElementProvType; - label: string; - parent: string[]; - children: string[]; - attrAndValues: any; -} -export interface IElementProvJSONCohort extends IElementProvJSON { - attrAndValues: IProvAttrAndValuesCohort; -} -export interface IElementProvJSONTask extends IElementProvJSON { - attrAndValues: IProvAttrAndValuesTask; -} -export interface IElement { - id: string; - label: string; - parents: Array; - children: Array; - representation: ICohortRep | ITaskRep; - toProvenanceJSON(): IElementProvJSON; -} -/** - * Interface for a cohort in the overview - */ -export interface ICohort extends IElement { - representation: ICohortRep; - dbId: number; - values: Array; - isInitial: boolean; - sizeReference: number; - toProvenanceJSON(): IElementProvJSONCohort; -} -/** - * Interface for an tasks (filter, split, combine, ....) - */ -export interface ITask extends IElement { - type: TaskType; - attributes: IAttribute[]; - representation: ITaskRep; - readonly creationDate: number; - toProvenanceJSON(): IElementProvJSONTask; -} -export interface IOverviewLayout { - cohortWidth: number; - pathWidth: number; - taskWidth: number; - rowHeight: number; - createLayout(root: ICohort): Array; - setContainerGrid(container: HTMLDivElement, columns: number, rows: number): void; - setPositionInGrid(element: HTMLDivElement, level: number, pos: number): void; -} -export interface IRectLayout { - elemID: string; - parentID: string; - column: number; - row: number; -} -/** - * Interface for a representation of a cohort - */ -export interface ICohortRep { - id: string; - labelOne: string; - labelTwo: string; - getRepresentation(): HTMLDivElement; - setInformation: (...info: any[]) => void; - setSize: (size: number, refSize: number) => void; - setLabel: ISetTwoLabelFunc; - getClone(): HTMLDivElement; - setSelection: (state: boolean) => void; - getSelection(): boolean; -} -export interface IRectCohortRep extends ICohortRep { - setInformation: (labelOne: string, labelTwo: string, size: number, sizeReference: number) => void; -} -/** - * Interface for a representation of a task - */ -export interface ITaskRep { - id: string; - label: string; - getRepresentation(): HTMLDivElement; - setInformation: (...info: any[]) => void; - getClone(): HTMLDivElement; - setLabel: ISetLabelFunc; -} -export interface IRectTaskRep extends ITaskRep { - setImage: (image: string) => void; - setInformation: (label: string, image: string) => void; -} -export interface ISetTwoLabelFunc { - (labelOne: string, labelTwo: any): void; -} -export interface ISetLabelFunc { - (label: string): void; -} -export interface ITaskParams { - inputCohorts: InputCohort[]; - outputCohorts: Cohort[]; - type: TaskType; - label: string; -} diff --git a/dist/CohortInterfaces.js b/dist/CohortInterfaces.js deleted file mode 100644 index 9f547af..0000000 --- a/dist/CohortInterfaces.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Enumeration for the different types of task - */ -export var TaskType; -(function (TaskType) { - TaskType[TaskType["Filter"] = 0] = "Filter"; - TaskType[TaskType["Split"] = 1] = "Split"; - TaskType[TaskType["Combine"] = 2] = "Combine"; - TaskType[TaskType["Overview"] = 3] = "Overview"; - TaskType[TaskType["Characterization"] = 4] = "Characterization"; -})(TaskType || (TaskType = {})); -////////////////////////////////////////////////////////////// -// -// Cohort Overview Elements (Cohort & Task) -// -////////////////////////////////////////////////////////////// -/** - * Interface for every element in the overview (except the paths between the elements) - */ -export var ElementProvType; -(function (ElementProvType) { - ElementProvType["Cohort"] = "Cohort"; - ElementProvType["TaskSplit"] = "Task-Split"; - ElementProvType["TaskFilter"] = "Task-Filter"; -})(ElementProvType || (ElementProvType = {})); -//# sourceMappingURL=CohortInterfaces.js.map \ No newline at end of file diff --git a/dist/CohortInterfaces.js.map b/dist/CohortInterfaces.js.map deleted file mode 100644 index b9df827..0000000 --- a/dist/CohortInterfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CohortInterfaces.js","sourceRoot":"","sources":["../src/CohortInterfaces.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,2CAAM,CAAA;IACN,yCAAK,CAAA;IACL,6CAAO,CAAA;IACP,+CAAQ,CAAA;IACR,+DAAgB,CAAA;AAClB,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB;AAMD,8DAA8D;AAC9D,EAAE;AACF,2CAA2C;AAC3C,EAAE;AACF,8DAA8D;AAE9D;;GAEG;AAEH,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,2CAAwB,CAAA;IACxB,6CAA0B,CAAA;AAC5B,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B"} \ No newline at end of file diff --git a/dist/CohortRepresentations.d.ts b/dist/CohortRepresentations.d.ts deleted file mode 100644 index ab5a6c8..0000000 --- a/dist/CohortRepresentations.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Cohort } from './Cohort'; -import { IRectCohortRep } from './CohortInterfaces'; -export declare class RectCohortRep implements IRectCohortRep { - private cohort; - id: string; - labelOne: string; - labelTwo: string; - private _representation; - private _repClone; - private _height; - private _width; - private _cohort; - private _isSelected; - private _bloodline; - private _bloodlinePaths; - private _removeButton; - private _size; - private _refSize; - constructor(cohort: Cohort, height: number, width: number); - getRepresentation(): HTMLDivElement; - private _create; - private addHighlightingToElements; - private removeHighlightingFromElements; - private addHighlightingToPaths; - private removeHighlightingToPaths; - removeBacktrackingHighlighting(): void; - private _createClone; - getClone(): HTMLDivElement; - setSelection(state: boolean): void; - private assignColor; - getSelection(): boolean; - setInformation(labelOne: string, labelTwo: string, size: number, sizeReference: number): void; - setLabel(labelOne: string, labelTwo?: string): void; - setSize(size: number, sizeReference: number): void; - private _setSummary; - private _getPathsForBloodline; - private _formatHoverSummary; - private createCohortTooltip; -} diff --git a/dist/CohortRepresentations.js b/dist/CohortRepresentations.js deleted file mode 100644 index 0f6057c..0000000 --- a/dist/CohortRepresentations.js +++ /dev/null @@ -1,585 +0,0 @@ -import { hsl } from 'd3v7'; -import tippy from 'tippy.js'; -import { getRootCohort } from './cohortview'; -import { log } from './util'; -import { CohortRemoveEvent, CohortSelectionEvent } from './utilCustomEvents'; -import { labelFromFilter } from './utilLabels'; -export class RectCohortRep { - constructor(cohort, height, width) { - this.cohort = cohort; - this.id = cohort.id; - this.labelOne = cohort.labelOne; - this.labelTwo = cohort.labelTwo; - this._cohort = cohort; - this._isSelected = false; - this._height = height; - this._width = width; - this._representation = this._create(height, width); - this._repClone = this._createClone(this._representation); - this.setLabel(cohort.labelOne, cohort.labelTwo); - } - getRepresentation() { - return this._representation; - } - _create(height, width) { - const container = document.createElement('div'); - container.className = 'rectCohort'; - container.id = this.id; - const labelHeight = 16; - const barHeight = labelHeight; - const fontSize = labelHeight < 15 ? labelHeight - 1 : 14; - // ----------------------------- - // *--- create size bar div ---* - const divSizeBar = document.createElement('div'); - divSizeBar.className = 'rectCohort-sizeBar cht-part'; - divSizeBar.style.height = barHeight + 'px'; - // indicator div for the size in the size bar div - const divSizeBarIndicator = document.createElement('div'); - divSizeBarIndicator.className = 'rectCohort-sizeBar-indicator cht-part'; - divSizeBarIndicator.style.width = '0px'; - // add div for the size - const divSizeBarLabel = document.createElement('div'); - divSizeBarLabel.textContent = 'loading...'; - divSizeBarLabel.className = 'size-label cht-part'; - divSizeBarLabel.style.height = labelHeight + 'px'; - divSizeBarLabel.style.lineHeight = labelHeight + 'px'; - divSizeBarLabel.style.fontSize = fontSize + 'px'; - // add div for the size overlay wrapper - const divSizeBarLabelOverlayWrapper = document.createElement('div'); - divSizeBarLabelOverlayWrapper.className = 'size-label-overlay-wrapper cht-part'; - // add div for the size overlay - const divSizeBarLabelOverlay = document.createElement('div'); - divSizeBarLabelOverlay.className = 'size-label-overlay cht-part'; - divSizeBarLabelOverlay.style.height = labelHeight + 'px'; - divSizeBarLabelOverlay.style.lineHeight = labelHeight + 'px'; - divSizeBarLabelOverlay.style.fontSize = fontSize + 'px'; - divSizeBarLabelOverlayWrapper.appendChild(divSizeBarLabelOverlay); - divSizeBar.appendChild(divSizeBarLabel); - divSizeBar.appendChild(divSizeBarIndicator); - divSizeBar.appendChild(divSizeBarLabelOverlayWrapper); - // ------------------------------ - // *--- create 1st row label ---* - const divLabelBar = document.createElement('div'); - divLabelBar.style.height = labelHeight + 'px'; - divLabelBar.style.position = 'relative'; - // label - const divLabel = document.createElement('div'); - divLabel.className = 'rectCohort-label-first rectCohort-label cht-part'; - divLabel.style.height = labelHeight + 'px'; - divLabel.style.lineHeight = labelHeight + 'px'; - divLabel.style.fontSize = fontSize + 'px'; - // remove button - this._removeButton = document.createElement('a'); - this._removeButton.classList.add('remove-cohort'); - this._removeButton.toggleAttribute('hidden', true); - this._removeButton.innerHTML = ''; - divLabelBar.appendChild(this._removeButton); - divLabelBar.appendChild(divLabel); - // ------------------------------ - // *--- create 2nd row label ---* - const divLabelTwo = document.createElement('div'); - divLabelTwo.className = 'rectCohort-label-second rectCohort-label cht-part'; - divLabelTwo.style.height = labelHeight + 'px'; - divLabelTwo.style.lineHeight = labelHeight + 'px'; - divLabelTwo.style.fontSize = fontSize + 'px'; - // -------------------------------------------- - // *--- add the 3 parts into the container ---* - container.appendChild(divLabelBar); - container.appendChild(divLabelTwo); - container.appendChild(divSizeBar); - // **** Add EventListeners ************************ - // show remove icon on hover - container.addEventListener('mouseenter', (event) => { - event.stopPropagation(); - // remove icon (=trash can) - const isRoot = this._cohort.dbId === getRootCohort().dbId; - const isPreview = this._representation.classList.contains('preview'); - // onyl if it is not a preview - if (!isPreview) { - // the root cohort can not be deleted - if (!isRoot) { - this._removeButton.removeAttribute('hidden'); - } - // make sure the paths are set - this._getPathsForBloodline(); - // cohort backtracking (highlight the elements) - this.addHighlightingToElements(this._bloodline); - this.addHighlightingToPaths(this._bloodlinePaths); - } - }); - container.addEventListener('mouseleave', (event) => { - event.stopPropagation(); - // remove trash can icon - this._removeButton.toggleAttribute('hidden', true); - // make sure the paths are set - this._getPathsForBloodline(); - // cohort backtracking (remove highlight from the elements) - this.removeHighlightingFromElements(this._bloodline); - this.removeHighlightingToPaths(this._bloodlinePaths); - }); - let dbClickTimer; - container.addEventListener('click', (event) => { - if (event.detail === 1) { // single click - dbClickTimer = setTimeout(() => { - log.debug('click on cohort'); - if (event.target === this._removeButton.childNodes[0]) { - // open modal - $('#deleteModal').modal('show'); - // get modal - const modal = document.getElementById('deleteModal'); - if (modal) { - // set type text of element - const text = modal.querySelector('.element-name'); - text.innerHTML = 'cohort'; - // get delete button in modal - let delConfirm = modal.querySelector('.confirm-delete'); - if (delConfirm) { - // replace element with copy of it to remove the eventlisteners - delConfirm.replaceWith(delConfirm.cloneNode(true)); - delConfirm = modal.querySelector('.confirm-delete'); - // add click event to delete button - delConfirm.addEventListener('click', (event) => { - // dispatch event to remove cohort and its children - container.dispatchEvent(new CohortRemoveEvent(this.cohort)); - event.stopPropagation(); - // hide modal - $('#deleteModal').modal('hide'); - }); - } - } - event.stopPropagation(); - } - else { - container.dispatchEvent(new CohortSelectionEvent(this.cohort)); - } - }, 300); - } - else if (event.detail === 2) { - clearTimeout(dbClickTimer); - log.debug('double-click on cohort'); - container.dispatchEvent(new CohortSelectionEvent(this.cohort, true)); - } - }); - container.addEventListener('mousedown', function (event) { - if (event.detail > 1) { - event.preventDefault(); - // prevent text highlighting on double click - } - }, false); - return container; - } - // adds the highlighting class to the overview graph elements - addHighlightingToElements(elements) { - for (const elem of elements) { - elem.obj.representation.getRepresentation().classList.add('overview-element-highlight'); - } - } - // removes the highlighting class from the overview graph elements - removeHighlightingFromElements(elements) { - for (const elem of elements) { - elem.obj.representation.getRepresentation().classList.remove('overview-element-highlight'); - } - } - // adds the highlighting class to the overview graph elements - addHighlightingToPaths(paths) { - for (const p of paths) { - p.classList.add('overview-path-highlight'); - // no z-index for svg, order depends on the order in the parent - const parent = p.parentElement; - // add path as the last child -> ingenious approach ;) - parent.appendChild(p); // appendChild add element as the last, if it exist already it autom. removes it - } - } - // removes the highlighting class from the overview graph elements - removeHighlightingToPaths(paths) { - for (const p of paths) { - p.classList.remove('overview-path-highlight'); - } - } - // needed when a cohort is deleted - removeBacktrackingHighlighting() { - this.removeHighlightingFromElements(this._bloodline); - this.removeHighlightingToPaths(this._bloodlinePaths); - } - _createClone(original) { - const clone = original.cloneNode(true); - const remBtn = clone.querySelector('.remove-cohort'); - remBtn.parentNode.removeChild(remBtn); - clone.id = 'clone_' + this.id; - clone.style.setProperty('grid-area', null); - // enable interactions for the cohorts in the task view (de/select input cohorts, de/select possible output cohorts) - clone.addEventListener('click', (event) => { - log.info('click on cohort'); - // to achieve toggle selection the ctrlClick variable has to be set to true - const ctrlClick = true; // was CTRL or ALT key: (event as MouseEvent).ctrlKey || (event as MouseEvent).altKey; - clone.dispatchEvent(new CohortSelectionEvent(this.cohort, !ctrlClick)); - }); - return clone; - } - getClone() { - return this._repClone; - } - setSelection(state) { - this._isSelected = state; - this._representation.classList.toggle('selected', state); - this._repClone.classList.toggle('selected', state); - this.setSize(this._size, this._refSize); - this.assignColor(state); - } - assignColor(state) { - const color = this._cohort.colorTaskView; - if (state) { - // background color - this._representation.style.backgroundColor = color; - this._repClone.style.backgroundColor = color; - // font color = white if color is too dark - if (color !== null && color !== 'transparent' && hsl(color).l < 0.6) { //transparent has lightness of zero - this._representation.style.color = 'white'; - this._repClone.style.color = 'white'; - this._removeButton.style.color = 'white'; - } - } - else { - // remove object css properties - // background color - this._representation.style.backgroundColor = null; - this._repClone.style.backgroundColor = null; - // font color - this._representation.style.color = null; - this._repClone.style.color = null; - this._removeButton.style.color = null; - } - } - getSelection() { - return this._isSelected; - } - setInformation(labelOne, labelTwo, size, sizeReference) { - this.setLabel(labelOne, labelTwo); - this.setSize(size, sizeReference); - } - setLabel(labelOne, labelTwo = '') { - let labelOneHTML = labelOne; - const [labelOneCounter] = labelOne.split(' ', 1); - if (labelOneCounter.startsWith('#')) { - const labelOneText = labelOne.substring(labelOneCounter.length + 1); - labelOneHTML = `#${labelOneCounter.substring(1)} ` + labelOneText; - } - // 1st row - // original - const divLabel = this._representation.querySelector('div.rectCohort-label-first'); - if (divLabel) { - divLabel.innerHTML = labelOneHTML; - } - // clone - const divLabelClone = this._repClone.querySelector('div.rectCohort-label-first'); - if (divLabelClone) { - divLabelClone.innerHTML = labelOneHTML; - } - // 2nd row - // original - const divLabeTwol = this._representation.querySelector('div.rectCohort-label-second'); - if (divLabeTwol) { - divLabeTwol.innerHTML = labelTwo; - } - // clone - const divLabelCloneTwo = this._repClone.querySelector('div.rectCohort-label-second'); - if (divLabelCloneTwo) { - divLabelCloneTwo.innerHTML = labelTwo; - } - } - setSize(size, sizeReference) { - this._size = size; - this._refSize = sizeReference; - // calculate the size of bar and set its color accordingly - const percentage = (size / sizeReference) * 100; - //original - const sizeBarPercentage = this._representation.querySelector('div.rectCohort-sizeBar-indicator'); - sizeBarPercentage.style.width = `${percentage}%`; - // set the label for the size - // this._representation.querySelector('div.rectCohort-labelBar').innerHTML = '' + size; - this._representation.querySelector('div.size-label').innerHTML = '' + size; - // get overlay and overlayWrapper - const overlay = this._representation.querySelector('div.size-label-overlay'); - const overlayWrapper = this._representation.querySelector('div.size-label-overlay-wrapper'); - // ser width of overlayWrapper with 100% - overlayWrapper.style.width = `100%`; - // now get the calculated with of overlayWrapper (is a string with 'px' at the end) - const repSize = window.getComputedStyle(overlayWrapper).getPropertyValue('width').slice(0, -2); - overlay.innerHTML = '' + size; // set the text for the size - overlay.style.width = repSize + 'px'; // set size for the overlay - overlayWrapper.style.width = `${percentage}%`; // set size of the wrapper to the length of the bar - // clone - const sizeBarPercentageClone = this._repClone.querySelector('div.rectCohort-sizeBar-indicator'); - sizeBarPercentageClone.style.width = `${percentage}%`; - // set the label for the size - // this._repClone.querySelector('div.rectCohort-labelBar').innerHTML = '' + size; - this._repClone.querySelector('div.size-label').innerHTML = '' + size; - // get overlay and overlayWrapper - const overlayClone = this._repClone.querySelector('div.size-label-overlay'); - const overlayWrapperClone = this._repClone.querySelector('div.size-label-overlay-wrapper'); - // ser width of overlayWrapper with 100% - overlayWrapperClone.style.width = `100%`; - // now get the calculated with of overlayWrapper (is a string with 'px' at the end) - const repSizeClone = window.getComputedStyle(overlayWrapperClone).getPropertyValue('width').slice(0, -2); - overlayClone.innerHTML = '' + size; // set the text for the size - overlayClone.style.width = repSizeClone + 'px'; // set size for the overlay - overlayWrapperClone.style.width = `${percentage}%`; // set size of the wrapper to the length of the bar - // create summary for the cohort - this._setSummary(); - } - _setSummary() { - // create summary - this._bloodline = this._cohort.getBloodline(); - // TODO labels - // const summary = this._formatHoverSummary(); - // this._representation.title = summary; - // this._repClone.title = summary; - const summaryHTML = this._formatHoverSummary(); - if (!this.cohort.isInitial) { - // Replace summary in overview, unless its the root cohort - const prevInstRep = this._representation._tippy; - if (prevInstRep && !this._cohort.isInitial) { - prevInstRep.destroy(); // destory old tippy - } - // create new tippy - tippy(this._representation, { - content: summaryHTML, - allowHTML: true, - placement: 'bottom-start', - duration: [300, null], - }); - } - // set tooltip for clones of the cohort (i.e. representations in action view) - // also do this for the root cohort - const summaryHTMLCopy = summaryHTML.cloneNode(true); - const prevInstClone = this._repClone._tippy; - if (prevInstClone) { - prevInstClone.setContent(summaryHTMLCopy); - } - else { - tippy(this._repClone, { - content: summaryHTMLCopy, - allowHTML: true, - placement: 'bottom-start', - duration: [300, null], - }); - } - } - _getPathsForBloodline() { - // has to be done every time, due to the change of the svg paths order - this._bloodlinePaths = []; - // get all paths - const svgContainer = document.getElementById('svg-path-container'); - // check if bloodline is defined - if (this._bloodline) { - // go through all task elements in the bloodline - for (const elem of this._bloodline) { - const pathsElemIn = Array.from(svgContainer.querySelectorAll(`.path-ep-in-${elem.obj.id}`)); - this._bloodlinePaths.push(...pathsElemIn); - } - } - else { - // update bloodline - this._setSummary(); - } - } - // TODO labels - // private _formatHoverSummary(): string { - _formatHoverSummary() { - // heritage summaries - const htmlLte = /≤/g; - const htmlLt = /</g; - const htmlGte = /≥/g; - const htmlGt = />/g; - let summaries = ''; - const maxSize = this._bloodline[this._bloodline.length - 1].size; - let previousSize = maxSize; - let cntStep = 1; - let htmlTooltip; - const tooltipInfo = []; - if (this._bloodline.length > 1) { // only if more than 1 element (root) - for (let i = this._bloodline.length - 2; i > 0; i = i - 2) { - const ttInfo = { chtName: '', chtSize: 0, prevSize: 0, percentage: 0, attr: [] }; - const task = this._bloodline[i]; - const cohort = this._bloodline[i - 1]; - // TODO labels - // const valueLabel = cohort.obj.labelTwo.replace(htmlLte,'<=').replace(htmlLt,'<'); - const cohortObj = cohort.obj; - ttInfo.chtName = cohortObj.label; - ttInfo.chtSize = cohort.size; - ttInfo.prevSize = previousSize; - // TODO labels change the tooltip to show detailed value ranges - const cohortValues = cohortObj.values; - // split task label into attribute labels - const attrLabel = task.label.split(', '); - log.debug('cohortValues: ', cohortValues); - const detailedLabelArray = []; - const labels = cohortObj.labelOne.split(', '); - for (let i = 0; i < cohortValues.length; i++) { - const val = cohortValues[i]; - const label = labels[i]; - let labelpart = ''; - if (Array.isArray(val)) { - labelpart = val.map((a) => labelFromFilter(a, label)).join(' / '); - } - else { - labelpart = labelFromFilter(val, label); - } - detailedLabelArray.push(labelpart); - ttInfo.attr.push({ name: attrLabel[i], value: labelpart }); - } - const detailedLabel = detailedLabelArray.join(', '); - const valueLabel = detailedLabel.replace(htmlLte, '<=').replace(htmlLt, '<').replace(htmlGte, '>=').replace(htmlGt, '>'); - const percentage = Math.round(cohort.size / maxSize * 100000) / 1000; - ttInfo.percentage = percentage; - tooltipInfo.push(ttInfo); - // TODO lables - // summaries = summaries + `\n${cntStep}: ${task.label} = ${valueLabel}:\n ${previousSize} -> ${cohort.size} (= ${percentage} % of the entire dataset)`; - summaries = summaries + `\n${cntStep}. ${task.label}: ${valueLabel}:\n ${previousSize} -> ${cohort.size} (= ${percentage} % of the entire dataset)`; - previousSize = cohort.size; - cntStep += 1; - } - htmlTooltip = this.createCohortTooltip(false, tooltipInfo); - } - else { - const cohort = this._bloodline[0]; - const ttInfo = { chtName: '', chtSize: 0, prevSize: 0, percentage: 0, attr: [] }; - const cohortObj = cohort.obj; - ttInfo.chtName = cohortObj.label; - ttInfo.chtSize = cohort.size; - ttInfo.prevSize = previousSize; - tooltipInfo.push(ttInfo); - htmlTooltip = this.createCohortTooltip(true, tooltipInfo); - } - // TODO labels - // label + summaries - // return `${this.labelOne}\n${this.labelTwo.replace(htmlLte, '<=').replace(htmlLt, '<')}` + summaries; - return htmlTooltip; - } - createCohortTooltip(root, ttInfo) { - // TODO labels - log.debug('toolTipInfo: ', ttInfo); - log.debug('tooltip cohort: ', this._cohort); - // container with tooltip - const ctrTooltip = document.createElement('div'); - // cohort with tooltip - if (ttInfo.length > 0) { - // container for cohort inforamtion - const ctrCohort = document.createElement('div'); - ctrTooltip.appendChild(ctrCohort); - // cohort info - // name - const currChtInfo = ttInfo[ttInfo.length - 1]; - const chtName = document.createElement('div'); - chtName.innerHTML = currChtInfo.chtName; - chtName.style.fontWeight = 'bold'; - // values - const chtValues = document.createElement('div'); - for (const a of currChtInfo.attr) { - const currAttr = document.createElement('div'); - currAttr.innerHTML = `${a.name}: ${a.value}`; - currAttr.style.paddingLeft = '15px'; - chtValues.appendChild(currAttr); - } - ctrCohort.appendChild(chtName); - ctrCohort.appendChild(chtValues); - if (!root) { - // provenance - // label for provenance - const provLabel = document.createElement('div'); - provLabel.innerHTML = 'Provenance'; - provLabel.style.fontWeight = 'bold'; - provLabel.style.marginTop = '5px'; - ctrTooltip.appendChild(provLabel); - // container for cohort provenance - const ctrProvenace = document.createElement('div'); - ctrTooltip.appendChild(ctrProvenace); - let chtStep = 1; - // go through all ttInfos - // for (let i = ttInfo.length - 1; i >= 0; i--) { - for (const currChtInfo of ttInfo) { - const ctrCurrCht = document.createElement('div'); - // const currChtInfo = ttInfo[i]; - const chtLabel = document.createElement('div'); - // chtLabel.style.position = 'relative'; - const chtNr = document.createElement('span'); - chtNr.innerHTML = `${chtStep}. `; - chtStep += 1; - // chtNr.style.minWidth = '15px'; - // chtNr.style.width = '15px !important'; - // chtNr.style.maxWidth = '15px'; - // chtNr.style.position = 'absolute'; - // chtNr.style.left = '0px'; - // chtNr.style.top = '0px'; - chtNr.style.fontWeight = 'bold'; - const chtName = document.createElement('span'); - chtName.innerHTML = currChtInfo.chtName; - // chtName.style.position = 'absolute'; - // chtName.style.left = '15px'; - // chtName.style.top = '0px'; - chtLabel.appendChild(chtNr); - chtLabel.appendChild(chtName); - // size - const chtSize = document.createElement('div'); - chtSize.innerHTML = `Size: ${currChtInfo.chtSize} (= ${currChtInfo.percentage}% of the dataset)`; - chtSize.style.paddingLeft = '15px'; - // size diff - const chtSizeDiff = document.createElement('div'); - const sizeDiff = currChtInfo.prevSize - currChtInfo.chtSize; - chtSizeDiff.innerHTML = `Size differnece to previous: ${sizeDiff}`; - chtSizeDiff.style.paddingLeft = '15px'; - // values - const chtValues = document.createElement('div'); - for (const a of currChtInfo.attr) { - const currAttr = document.createElement('div'); - currAttr.innerHTML = `${a.name}: ${a.value}`; - currAttr.style.paddingLeft = '15px'; - chtValues.appendChild(currAttr); - } - ctrCurrCht.appendChild(chtLabel); - ctrCurrCht.appendChild(chtValues); - ctrCurrCht.appendChild(chtSize); - // ctrCurrCht.appendChild(chtSizeDiff); - ctrTooltip.appendChild(ctrCurrCht); - } - } - } - // const prevInstRep = (this._representation as any)._tippy; - // if (prevInstRep) { - // prevInstRep.setContent(ctrTooltip); - // } else { - // tippy(this._representation, { - // content: ctrTooltip, - // allowHTML: true, - // placement: 'bottom-start', - // }); - // } - // const ctrTooltipCopy = ctrTooltip.cloneNode(true) as HTMLDivElement; - // const prevInstClone = (this._repClone as any)._tippy; - // if (prevInstClone) { - // prevInstClone.setContent(ctrTooltip); - // } else { - // tippy(this._repClone, { - // content: ctrTooltipCopy, - // allowHTML: true, - // placement: 'bottom-start', - // }); - // } - // // add the tippy tool tip - // tippy(elemWithTooltip, { - // content: ctrTooltip, - // allowHTML: true, - // //interactive: true, // tooltip is interactive: clickable/hoverable content - // placement: 'bottom-start', - // // placement: positionStart ? 'top-start' : 'top-end', - // //appendTo: () => document.body, // add the content to the document as a child - // //trigger: 'click', // element has to be clicked to show the tooltip - // //hideOnClick: 'toggle', // the tooltip is closed when the element is clicked again - // // arrow: true, // show tooltip arrow - // //zIndex: 9000, // default z-index: 9999 (but the searchbar option container has z-index of 9001) - // //maxWidth: 'none', // default max. width is 350px - // }); - return ctrTooltip; - } -} -//# sourceMappingURL=CohortRepresentations.js.map \ No newline at end of file diff --git a/dist/CohortRepresentations.js.map b/dist/CohortRepresentations.js.map deleted file mode 100644 index 93f1fb6..0000000 --- a/dist/CohortRepresentations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CohortRepresentations.js","sourceRoot":"","sources":["../src/CohortRepresentations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,MAAM,CAAC;AACzB,OAAO,KAAK,MAAM,UAAU,CAAC;AAG7B,OAAO,EAAC,aAAa,EAAC,MAAM,c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WAAW;QACX,kCAAkC;QAClC,2BAA2B;QAC3B,uBAAuB;QACvB,iCAAiC;QACjC,QAAQ;QACR,IAAI;QAEJ,uEAAuE;QACvE,wDAAwD;QACxD,uBAAuB;QACvB,0CAA0C;QAC1C,WAAW;QACX,4BAA4B;QAC5B,+BAA+B;QAC/B,uBAAuB;QACvB,iCAAiC;QACjC,QAAQ;QACR,IAAI;QAEJ,4BAA4B;QAC5B,2BAA2B;QAC3B,yBAAyB;QACzB,qBAAqB;QACrB,gFAAgF;QAChF,+BAA+B;QAC/B,2DAA2D;QAC3D,mFAAmF;QACnF,yEAAyE;QACzE,wFAAwF;QACxF,0CAA0C;QAC1C,sGAAsG;QACtG,wDAAwD;QACxD,MAAM;QACN,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/OnboardingManager.d.ts b/dist/OnboardingManager.d.ts deleted file mode 100644 index bbe8815..0000000 --- a/dist/OnboardingManager.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Props, Instance as TippyInstance } from 'tippy.js'; -export declare class OnboardingManager { - static tooltips: Map>; - static init(settings?: any): void; - static addTip(tipId: string, elem: HTMLElement, forceShow?: boolean): TippyInstance; -} diff --git a/dist/OnboardingManager.js b/dist/OnboardingManager.js deleted file mode 100644 index 0403b4d..0000000 --- a/dist/OnboardingManager.js +++ /dev/null @@ -1,39 +0,0 @@ -import * as loMerge from 'lodash.merge'; -import { CONFIG_ONBOARDING } from './config/onboarding'; -import tippy from 'tippy.js'; -import { log, hasCookie } from './util'; -export class OnboardingManager { - static init(settings = {}) { - const defaultSettings = CONFIG_ONBOARDING.defaultSettings; - const appliedSettings = loMerge({}, defaultSettings, settings); - tippy.setDefaultProps(appliedSettings); - } - static addTip(tipId, elem, forceShow = false) { - const tipConfig = CONFIG_ONBOARDING.tooltips[tipId]; - let tip = undefined; - if (tipConfig) { - this.tooltips.forEach((tip) => tip.clearDelayTimeouts()); - const cookieID = `${tipId}_onboarded`; - const showOnCreate = !hasCookie(cookieID) || forceShow; //show if there is no cookie - tip = tippy(elem, { - ...tipConfig, - theme: 'onboarding', - showOnCreate - }); - this.tooltips.set(tipId, tip); - setOnboardingCookie(cookieID); - } - else { - log.warn('No config for tooltip', tipId, 'Skip tooltip creation'); - } - return tip; - } -} -OnboardingManager.tooltips = new Map(); -function setOnboardingCookie(cookieName) { - const exdays = 14; - const expireDate = new Date(); - expireDate.setTime(expireDate.getTime() + (exdays * 24 * 60 * 60 * 1000)); - document.cookie = `${cookieName}=displayed; SameSite=Lax; expires=${expireDate.toUTCString()}`; -} -//# sourceMappingURL=OnboardingManager.js.map \ No newline at end of file diff --git a/dist/OnboardingManager.js.map b/dist/OnboardingManager.js.map deleted file mode 100644 index 362d01f..0000000 --- a/dist/OnboardingManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OnboardingManager.js","sourceRoot":"","sources":["../src/OnboardingManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAkD,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAC,GAAG,EAAE,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEtC,MAAM,OAAO,iBAAiB;IAGrB,MAAM,CAAC,IAAI,CAAC,WAAgB,EAAE;QACnC,MAAM,eAAe,GAAG,iBAAiB,CAAC,eAAe,CAAC;QAC1D,MAAM,eAAe,GAAG,OAAO,CAAC,EAAE,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC;QAE/D,KAAK,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IACzC,CAAC;IAGD,MAAM,CAAC,MAAM,CAAC,KAAa,EAAE,IAAiB,EAAE,YAAqB,KAAK;QACxE,MAAM,SAAS,GAAG,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpD,IAAI,GAAG,GAAG,SAAS,CAAC;QACpB,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,CAAC;YACzD,MAAM,QAAQ,GAAG,GAAG,KAAK,YAAY,CAAC;YACtC,MAAM,YAAY,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,CAAE,4BAA4B;YACrF,GAAG,GAAG,KAAK,CAAC,IAAI,EAAE;gBAChB,GAAG,SAAS;gBACZ,KAAK,EAAE,YAAY;gBACnB,YAAY;aACb,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YAC9B,mBAAmB,CAAC,QAAQ,CAAC,CAAC;SAC/B;aAAM;YACL,GAAG,CAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC;SACnE;QACD,OAAO,GAAG,CAAC;IACb,CAAC;;AA5BM,0BAAQ,GAAG,IAAI,GAAG,EAAgC,CAAC;AAgC5D,SAAS,mBAAmB,CAAC,UAAU;IACrC,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;IAC9B,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAC,EAAE,GAAC,EAAE,GAAC,EAAE,GAAC,IAAI,CAAC,CAAC,CAAC;IAElE,QAAQ,CAAC,MAAM,GAAG,GAAG,UAAU,qCAAqC,UAAU,CAAC,WAAW,EAAE,EAAE,CAAC;AACjG,CAAC"} \ No newline at end of file diff --git a/dist/Overview/CohortOverview.d.ts b/dist/Overview/CohortOverview.d.ts deleted file mode 100644 index da764d1..0000000 --- a/dist/Overview/CohortOverview.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { IObjectRef, ProvenanceGraph } from 'tdp_core'; -import { IDatabaseViewDesc } from 'tdp_core'; -import { CohortApp } from '../app'; -import { Cohort } from '../Cohort'; -import { IElement, IElementProvJSON, IOverviewLayout, ITaskParams } from '../CohortInterfaces'; -import { IAttribute } from '../data/Attribute'; -import { Task } from '../Tasks'; -export declare class CohortOverview { - private parent; - private root; - private rootDBid; - private elements; - sizeReference: number; - layout: IOverviewLayout; - container: HTMLDivElement; - viewDescr: IDatabaseViewDesc; - taskHistory: Array; - private _arrangements; - private _zoomFactor; - private _showTaskHistoryDetails; - private _currentPreviewTasks; - private _lastAddedTasks; - private eventListenerChange; - private eventListenerConfirm; - private cohortAppNode; - private _elementsAsJSON; - graph: ProvenanceGraph; - readonly ref: IObjectRef; - readonly appRef: IObjectRef; - private refName; - private _reference; - constructor(parent: HTMLDivElement, graph: ProvenanceGraph, ref: IObjectRef, layout: IOverviewLayout, root: Cohort, viewDescr: IDatabaseViewDesc); - private static generate_hash; - private setReferenceSize; - private retrieveReferenceSize; - destroy(): void; - getElementsAsJSON(): IElementProvJSON[]; - /** - * Updates the '_elementsAsJSON' array. - * Converts the current state of the 'elements' array into array of JSON objects - * and saves it in the '_elementsAsJSON' array - */ - updateJSONElements(): void; - /** - * Converts the current 'elements' array into JSON objects - * @returns array of JSON objects based on the 'elements' array - */ - convertElementsToJSON(): IElementProvJSON[]; - addElements(elems: Array): void; - addElement(elem: IElement): void; - removeElement(elem: IElement): void; - removeElementWithID(eleId: string): void; - removeElements(elems: IElement[]): void; - getElement(elem: IElement): IElement; - getElementWithId(eleId: string): IElement; - getLastAddedTasks(): Task[]; - clearLastAddedTasks(): void; - executeTask(taskParam: ITaskParams, attributes: IAttribute[], addToTaskHistory?: boolean): Task; - private handlePreviewChange; - private previewChange; - private clearPreview; - private handlePreviewConfirm; - generateOverviewProv(jsonElements?: IElementProvJSON[]): Promise; - generateOverview(): void; - private getAllChildren; - private handleRemoveTask; - private handleRemoveCohort; - private _generatePlacement; - private _generatePaths; - private setupTaskHistory; - private handleHighlightingOnHover; - private addHighligthingToPaths; - private removeHighligthingFromPaths; - private addHighlightingToElements; - private removeHighlightingFromElements; - private _createDetailForTaskInHistory; - zoomIn(): void; - zoomOut(): void; - private _zoom; -} diff --git a/dist/Overview/CohortOverview.js b/dist/Overview/CohortOverview.js deleted file mode 100644 index ab343d0..0000000 --- a/dist/Overview/CohortOverview.js +++ /dev/null @@ -1,948 +0,0 @@ -import { ObjectRefUtils, UniqueIdManager } from 'tdp_core'; -import tippy from 'tippy.js'; -import { Cohort, createCohortFromDB } from '../Cohort'; -import { ElementProvType, TaskType } from '../CohortInterfaces'; -import { RectCohortRep } from '../CohortRepresentations'; -import { addOverviewCohortAction, removeOverviewCohortAction } from '../Provenance/CohortEV'; -import { getDBCohortData } from '../rest'; -import { RectTaskRep } from '../TaskRepresentations'; -import { createTaskFromProvJSON, Task, TaskFilter, TaskSplit } from '../Tasks'; -import { deepCopy, log, ScrollLinker } from '../util'; -import { CohortSelectionEvent, COHORT_REMOVE_EVENT_TYPE, OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, TASK_REMOVE_EVENT_TYPE } from '../utilCustomEvents'; -import { niceName } from '../utilLabels'; -import { RectangleLayout } from './OverviewLayout'; -export class CohortOverview { - constructor(parent, graph, ref, layout, root, viewDescr) { - this.parent = parent; - this.elements = []; - this.refName = 'CohortApp-Overview'; - this.root = root; - this.rootDBid = root.dbId; - this._reference = root; - this.layout = layout; - this.elements = [root]; - this.taskHistory = []; - this._arrangements = []; - this._zoomFactor = 1; - this._showTaskHistoryDetails = false; - this._currentPreviewTasks = []; - this._lastAddedTasks = []; - this.graph = graph; - this.appRef = ref; - this.ref = this.graph.findOrAddObject(this, this.refName, ObjectRefUtils.category.visual); // cat.visual = it is a visual operation - // this.ref = ObjectRefUtils.objectRef(this, this.refName, ObjectRefUtils.category.visual, 'coral_123'); - if (viewDescr) { - this.viewDescr = viewDescr; - } - this.setReferenceSize(); - this.updateJSONElements(); - this.cohortAppNode = document.querySelector('.cohort_app'); - this.eventListenerChange = (ev) => this.handlePreviewChange(ev); - this.eventListenerConfirm = (ev) => this.handlePreviewConfirm(); - // event listener to change the preview - this.cohortAppNode.addEventListener(OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, this.eventListenerChange); - // event listener to confirm the preview - this.cohortAppNode.addEventListener(OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, this.eventListenerConfirm); - } - // private static generate_hash(desc: IPluginDesc, selection: ISelection) { - static generate_hash(viewDescr) { - // const s = (selection.idtype ? selection.idtype.id : '') + 'r' + (selection.range.toString()); - return 'test_123'; - } - setReferenceSize() { - this.root.size.then((size) => { - this.sizeReference = size; - log.info(`Root cohort size is ${this.sizeReference}`); - }); - } - retrieveReferenceSize() { - return this.root.size.then((size) => { - this.sizeReference = size; - log.info(`Root cohort size is ${this.sizeReference}`); - return size; - }); - } - destroy() { - this.elements = []; - this.elements = null; - this.root = null; - this.layout = null; - this.cohortAppNode.removeEventListener(OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, this.eventListenerChange); - this.cohortAppNode.removeEventListener(OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, this.eventListenerConfirm); - while (this.container.hasChildNodes()) { - this.container.removeChild(this.container.lastChild); - } - this.container.remove(); - this.container = null; - } - getElementsAsJSON() { - return this._elementsAsJSON; - } - /** - * Updates the '_elementsAsJSON' array. - * Converts the current state of the 'elements' array into array of JSON objects - * and saves it in the '_elementsAsJSON' array - */ - updateJSONElements() { - this._elementsAsJSON = []; - const jsonElem = this.convertElementsToJSON(); - this._elementsAsJSON.push(...jsonElem); - } - /** - * Converts the current 'elements' array into JSON objects - * @returns array of JSON objects based on the 'elements' array - */ - convertElementsToJSON() { - const jsonElem = this.elements.map((elem) => { - const jConf = elem.toProvenanceJSON(); - if (jConf.id === String(this.rootDBid)) { - jConf.attrAndValues.isRoot = true; - } - return jConf; - }); - return jsonElem; - } - addElements(elems) { - for (const e of elems) { - this.addElement(e); - } - } - addElement(elem) { - if (this.elements.map((a) => a.id).indexOf(elem.id) === -1) { - this.elements.push(elem); - } - } - removeElement(elem) { - this.removeElementWithID(elem.id); - } - removeElementWithID(eleId) { - // get index of the element in the elements array - const eleIdx = this.elements.findIndex((a) => a.id === eleId); - if (eleIdx !== -1) { - // remove element from the elements arry - this.elements.splice(eleIdx, 1); - } - } - removeElements(elems) { - for (const e of elems) { - this.removeElement(e); - } - } - // maybe remove, and only keep getElementsWithId - getElement(elem) { - if (elem !== null) { - const eleId = elem.id; - return this.getElementWithId(eleId); - } - else { - return null; - } - } - // maybe remove, and only keep getElements - getElementWithId(eleId) { - if (this.elements !== null) { - const target = this.elements.filter((e) => e.id === eleId); - return target.length === 1 ? target[0] : null; - } - else { - return null; - } - } - getLastAddedTasks() { - return this._lastAddedTasks; - } - clearLastAddedTasks() { - this._lastAddedTasks = []; - } - executeTask(taskParam, attributes, addToTaskHistory = true) { - log.debug('executeTask: ', taskParam); - let validType = false; - const parentCohort = taskParam.inputCohorts[0]; - let task; - if (taskParam.type === TaskType.Filter) { - validType = true; - log.debug('Overview - Filter'); - task = new TaskFilter(`filter-${parentCohort.id}-${UniqueIdManager.getInstance().uniqueId('cht:task')}`, niceName(taskParam.label), attributes); - } - else if (taskParam.type === TaskType.Split) { - validType = true; - log.debug('Overview - Split'); - task = new TaskSplit(`split-${parentCohort.id}-${UniqueIdManager.getInstance().uniqueId('cht:task')}`, niceName(taskParam.label), attributes); - } - if (validType) { - parentCohort.children.push(task); - task.parents = [parentCohort]; - const selectedOutChts = taskParam.outputCohorts.filter((cht) => cht.selected); - for (const ce of selectedOutChts) { - ce.parents = [task]; - } - task.children = selectedOutChts; - log.debug('execute task: ', { task, selectedOutChts }); - this.addElement(task); - this.addElements(selectedOutChts); - if (addToTaskHistory) { - this.taskHistory.push(task); - } - // console.log('execute Task - task: ', task); - // console.log('execute Task - elements: ', this.elements); - } - return task; - } - async handlePreviewChange(ev) { - // console.log('handlePreviewCHange: ', ev); - const taskParams = ev.detail.params; // task parameters (e.g. column/category to filter) - const taskAttributes = ev.detail.attributes; - // log.debug('handle Preview Change: ', {taskParams, taskAttribute, _currentPreviewTasks: this._currentPreviewTasks}); - if (taskAttributes !== null) { - // only change preview if task was changed - if (!(this._currentPreviewTasks.length === 0 && taskParams.length === 0)) { - // change preview - this.previewChange(taskParams, taskAttributes); - } - } - else { - if (!(this._currentPreviewTasks.length === 0 && taskParams.length === 0)) { // avoid clearing if there is nothing to clear - this.clearPreview(); - this.generateOverview(); - } - } - } - previewChange(taskParams, taskAttributes) { - const tasks = []; - // clear the old preview - this.clearPreview(); - log.debug('change preview to: ', taskParams, taskAttributes); - for (const taskParam of taskParams) { - // execute task but do not add the task to the task history - const prevTask = this.executeTask(taskParam, taskAttributes, false); - tasks.push(prevTask); - } - // save current task fot the confirmation - this._currentPreviewTasks.push(...tasks); - // generate the overview with the new preview tasks - this.generateOverview(); - // add the preview class to the tasks and cohorts - for (const prevTask of tasks) { - // add preview class to task - // log.debug('prevTask: ', prevTask); - if (prevTask.representation) { - prevTask.representation.getRepresentation().classList.add('preview'); - } - // add preview class to output cohorts - for (const outCh of prevTask.children) { - if (prevTask.representation) { - outCh.representation.getRepresentation().classList.add('preview'); - } - } - } - } - clearPreview() { - log.debug('clear old preview'); - for (const task of this._currentPreviewTasks) { - // remove output cohorts from elements - const outputCht = task.children; - for (const outCh of outputCht) { - // get index of the cohort in the elements array - const chtIndex = this.elements.findIndex((a) => a.id === outCh.id); - // remove cohort from the elements arry - this.elements.splice(chtIndex, 1); - } - // remove reference of task from input cohorts - // get input cohorts - const inputCht = task.parents; - for (const inCh of inputCht) { - // get index of the cohort in the children of the parent - const childIndex = inCh.children.findIndex((a) => a.id === task.id); - // remove cohort from the children of parent - inCh.children.splice(childIndex, 1); - } - // remove the task from the elements - // get index of the cohort in the elements array - const chtIndex = this.elements.findIndex((a) => a.id === task.id); - // remove cohort from the elements arry - this.elements.splice(chtIndex, 1); - } - // set current tasks of preview to empty - this._currentPreviewTasks = []; - } - handlePreviewConfirm() { - // add tasks to the task history and remove the preview class from them and their cohorts - for (const task of this._currentPreviewTasks) { - this.taskHistory.push(task); - // remove preview class to task - if (task.representation) { - task.representation.getRepresentation().classList.remove('preview'); - } - // remove preview class to output cohorts - for (const outCh of task.children) { - outCh.representation.getRepresentation().classList.remove('preview'); - } - } - // set the confirmed task as the last added ones - this._lastAddedTasks = this._currentPreviewTasks; - // set current tasks of preview to empty - this._currentPreviewTasks = []; - const oldElements = deepCopy(this._elementsAsJSON); - this.updateJSONElements(); - const newElements = deepCopy(this._elementsAsJSON); - // console.log('call "Add Cohort(s)" provenance function with: ', {oldElements, newElements}); - this.graph.push(addOverviewCohortAction(this.ref, this.appRef, newElements, oldElements)); - // this.generateOverview(); - } - async generateOverviewProv(jsonElements = []) { - const provElements = []; - // check if the elements and the jsonElements are the same - const porvElemIDs = jsonElements.map((elem) => elem.id); - // const copyElem = this.elements !== null ? this.elements : []; - const elemIDs = this.elements !== null ? this.elements.map((elem) => elem.id) : []; - const sizeEquals = elemIDs.length === porvElemIDs.length ? true : false; - const containsAll = elemIDs.every((e) => porvElemIDs.includes(e)); - // console.log('check all Elements exist: ', {porvElemIDs, elemIDs, sizeEquals, containsAll}); - // reduced double loading when the no switch the the cohort evolution tree state has been made - if (!(containsAll && sizeEquals)) { - // let rootProv = null; - // let foundRoot = false; - // console.log('root element found (BEFORE): ', foundRoot); - const jsonElementsToCreate = []; - // check which elemets already exist and only create the non-existing ones - for (const jElem of jsonElements) { - const eid = jElem.id; - const existingElem = this.getElementWithId(eid); - if (existingElem === null) { - // element doesn't exist -> query DB - jsonElementsToCreate.push(jElem); - } - else { - // element exist -> add to provElements - // and clear parents and children arrays - existingElem.children = []; - existingElem.parents = []; - provElements.push(existingElem); - } - } - // create missing Cohorts - const jsonCohorts = jsonElementsToCreate.filter((elem) => elem.type === ElementProvType.Cohort); - const cohortIDs = jsonCohorts.map((elem) => Number(elem.id)); - // get cohort DB data - const chtSizes = []; - if (cohortIDs.length > 0) { - const dbCohortInfos = await getDBCohortData({ cohortIds: cohortIDs }); - for (const cInfo of dbCohortInfos) { - const chtId = cInfo.id; - const jsonCht = jsonCohorts.filter((elem) => elem.id === String(chtId))[0]; - const provJSON = { - idColumn: jsonCht.attrAndValues.idColumn, - idType: jsonCht.attrAndValues.idType, - values: jsonCht.attrAndValues.values, - view: jsonCht.attrAndValues.view, - database: jsonCht.attrAndValues.database, - selected: jsonCht.attrAndValues.selected, - isRoot: jsonCht.attrAndValues.isRoot, - }; - const newCohort = createCohortFromDB(cInfo, provJSON); - // Set representation of new cohort - const layout = new RectangleLayout(); - newCohort.representation = new RectCohortRep(newCohort, layout.rowHeight, layout.cohortWidth); - provElements.push(newCohort); - } - } - // console.log('root element found (AFTER): ', foundRoot); - // create missing Tasks - const jsonTasks = jsonElementsToCreate.filter((elem) => elem.type !== ElementProvType.Cohort); - for (const jsonT of jsonTasks) { - const newTask = createTaskFromProvJSON(jsonT); - provElements.push(newTask); - } - // set parents and children - for (const jsonElem of jsonElements) { - const parentsIDs = jsonElem.parent; - const childrenIDs = jsonElem.children; - const currentElement = provElements.filter((elem) => elem.id === jsonElem.id)[0]; - // set parents (set child of parent too) - for (const pId of parentsIDs) { - // check if parent is already part of the parents array - const existingPIDs = currentElement.parents.map((elem) => elem.id); - if (existingPIDs.indexOf(pId) === -1) { - const currP = provElements.filter((elem) => elem.id === pId)[0]; - // set parent for current element - currentElement.parents.push(currP); - // set child of parent element - currP.children.push(currentElement); - } - } - // set children (set parent of children too) - for (const cId of childrenIDs) { - // check if child is already part of the children array - const existingCIDs = currentElement.children.map((elem) => elem.id); - if (existingCIDs.indexOf(cId) === -1) { - const currC = provElements.filter((elem) => elem.id === cId)[0]; - // set child for current element - currentElement.children.push(currC); - // set parents of child element - currC.parents.push(currentElement); - } - } - } - // console.log('elements from JSON - provElements: ', {provElements, rootDBid: this.rootDBid}); - // deselect the old cohorts - // console.log('deselect old cohorts'); - const chtIDselected = []; - if (this.elements) { - for (const elem of this.elements) { - if (elem instanceof Cohort) { - if (elem.selected === true) { - chtIDselected.push(elem.id); - this.parent.dispatchEvent(new CohortSelectionEvent(elem)); - } - } - } - } - // set the newly created 'provElements' as the new 'elements' - this.elements = []; - this.elements = provElements; - // set root cohort - // console.log('Elements to find the root cohort ', {thisElements: this.elements, rootDBid: this.rootDBid, provElements}); - this.root = provElements.filter((elem) => elem.id === String(this.rootDBid))[0]; - // set root as reference, too - this._reference = this.root; - // get sizes for the cohorts and their representation - // console.log('get sizes for the new cohorts and their representation'); - for (const elem of provElements) { - if (elem instanceof Cohort) { - const sizePromises = [elem.size, this._reference.size]; - chtSizes.push(...sizePromises); - Promise.all(sizePromises).then(([newSize, refSize]) => { - elem.representation.setSize(newSize, refSize); - }); - } - } - await Promise.all(chtSizes); // wait for the cohort sizes to properly display the representation - // update bloodline for cohorts - for (const elem of provElements) { - if (elem instanceof Cohort) { - elem.updateBloodline(); - } - } - } - // console.log('elemets after Prov generation: ', this.getElementsAsJSON()); - this.generateOverview(); - } - //maybe add a updateOverview function - generateOverview() { - // console.log('current elements in generateOverview function', this.elements); - // remove old graph - if (this.container) { - while (this.container.firstChild) { - this.container.removeChild(this.container.firstChild); - } - this.container.remove(); - } - // ------ OVERVIEW GRAPH - // div wrap container for graph to scroll - const chtOverviewGraphWrapper = document.createElement('div'); - chtOverviewGraphWrapper.id = 'chtOverviewGraphWrapper'; - this.parent.appendChild(chtOverviewGraphWrapper); - tippy(chtOverviewGraphWrapper, { - content: 'Click a cohort to toggle its selection. To directly select only a single cohort, double-click it.', - delay: [5000, 0] - }); - this.container = chtOverviewGraphWrapper; - // div container for grid layout and svg paths - const chtOverviewGraph = document.createElement('div'); - chtOverviewGraph.id = 'chtOverviewGraph'; - chtOverviewGraphWrapper.appendChild(chtOverviewGraph); - // div container for grid layout and svg paths - const chtGraph = document.createElement('div'); - chtGraph.id = 'chtGraph'; - chtOverviewGraph.appendChild(chtGraph); - // add wheel event to the Overview container - chtOverviewGraphWrapper.addEventListener('wheel', (event) => { - const deltaY = event.deltaY; - // only if CTRL-key is pressend in combination with wheel action - if (event.ctrlKey || event.altKey) { - event.preventDefault(); - if (deltaY >= 0) { - this.zoomOut(); - } - else { - this.zoomIn(); - } - } - }); - //create the placement of the elements - this._generatePlacement(chtGraph); - //generate the path between the elements - this._generatePaths(chtGraph); - // always apply current zoom factor - chtGraph.style.transform = `scale(${this._zoomFactor})`; - chtGraph.style.transformOrigin = '0% 0% 0px'; - // add eventlistern for the removal of a cohort - chtGraph.addEventListener(COHORT_REMOVE_EVENT_TYPE, (event) => this.handleRemoveCohort(event)); - // add eventlistern for the removal of a task - chtGraph.addEventListener(TASK_REMOVE_EVENT_TYPE, (event) => this.handleRemoveTask(event)); - // NOTE: commented out for paper ready version - // create task history - // this.setupTaskHistory(); - } - getAllChildren(elementsToRemove, elem) { - const children = elem.children; - for (const c of children) { - if (elementsToRemove.map((a) => a.id).indexOf(c.id) === -1) { - elementsToRemove.push(c); - } - } - for (const chi of children) { - const grandchildren = this.getAllChildren(elementsToRemove, chi); - for (const gc of grandchildren) { - if (elementsToRemove.map((a) => a.id).indexOf(gc.id) === -1) { - elementsToRemove.push(gc); - } - } - } - return elementsToRemove; - } - // function to handle the remove cohort event - handleRemoveTask(event) { - const task = event.detail.task; - // remove all child elements - const elementsToRemove = []; - this.getAllChildren(elementsToRemove, task); - // console.log('remove all children: ', elementsToRemove); - // get selected cohorts - const elemRemoveSelected = elementsToRemove.filter((elem) => { - if (elem instanceof Cohort) { - return elem.selected; - } - else { - return false; - } - }); - // deselect selected children - for (const elemRS of elemRemoveSelected) { - elemRS.selected = false; // set selected state to false - // dispatch event to remove cohort from taskview if it was selected - elemRS.representation.getRepresentation().dispatchEvent(new CohortSelectionEvent(elemRS)); - } - // remove all child elements - this.removeElements(elementsToRemove); - // remove task from the elements arry - this.removeElement(task); - // get all parents (cohorts) of the task - const parents = task.parents; - for (const p of parents) { - // get index of the task in the children of the parent - const childIndex = p.children.findIndex((a) => a.id === task.id); - // remove task from the children of parent (cohort) - p.children.splice(childIndex, 1); - } - const oldElements = deepCopy(this._elementsAsJSON); - this.updateJSONElements(); - const newElements = deepCopy(this._elementsAsJSON); - // console.log('call "Remove Cohort" provenance function with: ',{oldElements, newElements}); - this.graph.push(removeOverviewCohortAction(this.ref, this.appRef, newElements, oldElements)); - } - // function to handle the remove cohort event - handleRemoveCohort(event) { - const cohort = event.detail.cohort; - // log.debug('cohort to remove: ', cohort); - // remove clone from taskview if selected - if (cohort.selected) { - cohort.selected = false; // set selected state to false - // dispatch event to remove cohort from taskview if it was selected - cohort.representation.getRepresentation().dispatchEvent(new CohortSelectionEvent(cohort)); - } - // remove backtracking highlighting - cohort.representation.removeBacktrackingHighlighting(); - // remove all child elements - const elementsToRemove = []; - this.getAllChildren(elementsToRemove, cohort); - // console.log('remove all children: ', elementsToRemove); - // get selected cohorts - const elemRemoveSelected = elementsToRemove.filter((elem) => { - if (elem instanceof Cohort) { - return elem.selected; - } - else { - return false; - } - }); - // deselect selected children - for (const elemRS of elemRemoveSelected) { - elemRS.selected = false; // set selected state to false - // dispatch event to remove cohort from taskview if it was selected - elemRS.representation.getRepresentation().dispatchEvent(new CohortSelectionEvent(elemRS)); - } - // remove all child elements - this.removeElements(elementsToRemove); - // remove cohort from the elements arry - this.removeElement(cohort); - // get all parents (task) of the cohort - const parents = cohort.parents; - for (const p of parents) { - // get index of the cohort in the children of the parent - const childIndex = p.children.findIndex((a) => a.id === cohort.id); - // remove cohort from the children of parent (task) - p.children.splice(childIndex, 1); - // check if parent (task) has still children (cohorts) - if (p.children.length === 0) { - // remove parent (task) from grandparent (cohort) - const grandparents = p.parents; - for (const gp of grandparents) { - const parentIndex = gp.children.findIndex((elem) => elem.id === p.id); - // remove parent (task) from the children of the grandparent (cohort) - gp.children.splice(parentIndex, 1); - } - // remove the task from task history - const taskHistIndex = this.taskHistory.findIndex((elem) => elem.id === p.id); - this.taskHistory.splice(taskHistIndex, 1); - // remove the task from element array - const taskElemIndex = this.elements.findIndex((elem) => elem.id === p.id); - this.elements.splice(taskElemIndex, 1); - } - } - const oldElements = deepCopy(this._elementsAsJSON); - this.updateJSONElements(); - const newElements = deepCopy(this._elementsAsJSON); - // console.log('call "Remove Cohort" provenance function with: ',{oldElements, newElements}); - this.graph.push(removeOverviewCohortAction(this.ref, this.appRef, newElements, oldElements)); - // this.generateOverview(); - } - _generatePlacement(containerCSSGrid) { - if (this.elements && this.elements.length > 0) { - // generate the layout assignment of the elements - this._arrangements = this.layout.createLayout(this.root); - log.debug('Layout for placement finished: ', { root: this.root, elements: this.elements, arrangement: this._arrangements }); - // console.log('Layout for placement finished: ', {root: this.root, elements: this.elements, arrangement: this._arrangements}); - while (containerCSSGrid.firstChild) { - containerCSSGrid.removeChild(containerCSSGrid.firstChild); - } - const numCol = Math.max(...this._arrangements.map((a) => a.column)); - const numRow = Math.max(...this._arrangements.map((a) => a.row)); - // define CSS grid for the container - this.layout.setContainerGrid(containerCSSGrid, numCol, numRow); - const rowHeight = this.layout.rowHeight; - const chtWidth = this.layout.cohortWidth; - const opWidth = this.layout.taskWidth; - for (const elem of this.elements) { - if (elem.representation === null) { - if (elem instanceof Task) { - elem.representation = new RectTaskRep(elem, rowHeight, opWidth); - } - else if (elem instanceof Cohort) { - elem.representation = new RectCohortRep(elem, rowHeight, chtWidth); - } - } - const elemPos = this._arrangements.find((a) => a.elemID === elem.id); - log.debug('current element placement: ', elemPos); - // console.log('current element placement: ', elemPos); - const tmpNode = elem.representation.getRepresentation(); - // assign CSS classes to elements - this.layout.setPositionInGrid(tmpNode, elemPos.column, elemPos.row); - containerCSSGrid.appendChild(tmpNode); - if (elem instanceof Task) { - if (elem.type === TaskType.Filter) { - elem.representation.setInformation(elem.label, 'filter'); - } - else { - elem.representation.setInformation(elem.label, 'split'); - } - } - else { - elem.representation.setLabel(elem.labelOne, elem.labelTwo); - elem.size.then(async (size) => { - let refSize = this.sizeReference; - if (refSize === null || refSize === undefined) { - refSize = await this.retrieveReferenceSize(); - this.sizeReference = refSize; - } - log.debug(`Size of cohort ${size} while refernce is ${this.sizeReference}`); - elem.representation.setSize(size, this.sizeReference); - }); - } - } - // clear highlighting when updating overview - const allHovered = Array.from(containerCSSGrid.querySelectorAll('.overview-element-highlight')); - for (const elemH of allHovered) { - elemH.classList.remove('overview-element-highlight'); - } - } - } - _generatePaths(containerCSSGrid) { - // create a Overview Layout mit grid sizes and arrangement - // get dimensions of the HTML/CSS GridLayout - const gridDimension = document.getElementById(containerCSSGrid.id).getBoundingClientRect(); - const svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); - svgElement.setAttribute('id', 'svg-path-container'); - svgElement.setAttribute('width', '' + gridDimension.width); - svgElement.setAttribute('height', '' + gridDimension.height); - containerCSSGrid.appendChild(svgElement); - const chtOverviewGraph = document.getElementById('chtOverviewGraph').getBoundingClientRect(); - log.debug('chtOverviewGraph: ', chtOverviewGraph); - if (this.elements) { - for (const ceParent of this.elements) { - for (const ceChild of ceParent.children) { - log.debug('svg-line: ceParent: ', ceParent, ' | ceChild: ', ceChild); - const parent = document.getElementById(ceParent.id).getBoundingClientRect(); - const child = document.getElementById(ceChild.id).getBoundingClientRect(); - log.debug('svg-line: parent: ', parent, ' | child: ', child); - // get cohort bars size - const cohort = ceParent instanceof Cohort ? document.getElementById(ceParent.id).querySelector('.rectCohort-sizeBar') : document.getElementById(ceChild.id).querySelector('.rectCohort-sizeBar'); - const barHeight = cohort.getBoundingClientRect().height; - const x1 = parent.left + (parent.width) - chtOverviewGraph.left; - let y1 = parent.top + (parent.height / 2) - chtOverviewGraph.top; - const x2 = child.left - chtOverviewGraph.left; - let y2 = child.top + (child.height / 2) - chtOverviewGraph.top; - // 2px because of the upper border - y1 = y1 + 1; - y2 = y2 + 1; - const mx1 = (x2 - x1) / 2 + x1; - const my1 = y1; - const mx2 = (x2 - x1) / 2 + x1; - const my2 = y2; - const d = 'M ' + x1 + ' ' + y1 + - ' C ' + mx1 + ' ' + my1 + ', ' + mx2 + ' ' + my2 + ', ' + x2 + ' ' + y2; - const currPath = document.createElementNS('http://www.w3.org/2000/svg', 'path'); - currPath.setAttribute('id', 'path-' + ceParent.id + '-to-' + ceChild.id); - // currPath.setAttribute('class', 'svg-path'); - currPath.classList.add('svg-path', `path-ep-out-${ceParent.id}`, `path-ep-in-${ceChild.id}`); - currPath.setAttribute('d', d); - currPath.setAttribute('stroke-width', '5px'); - svgElement.appendChild(currPath); - } - } - } - } - // sets up the task history with details and adds the tasks - setupTaskHistory() { - // div container for the task history and details - const taskSideBar = document.createElement('div'); - taskSideBar.id = 'taskSideBar'; - this.parent.appendChild(taskSideBar); - // -- Details to the tasks - // div container for the details to the tasks - const taskDetails = document.createElement('div'); - taskDetails.id = 'taskDetails'; - taskDetails.classList.add('taskDetails', 'task-sidebar-column'); - taskDetails.classList.remove('hide'); - if (!this._showTaskHistoryDetails) { - taskDetails.classList.add('hide'); - } - taskSideBar.appendChild(taskDetails); - // header of the task details column - const taskDetailsHeader = document.createElement('div'); - taskDetailsHeader.id = 'taskDetailsHeader'; - taskDetailsHeader.classList.add('task-history-header'); - taskDetails.appendChild(taskDetailsHeader); - // wrap container with all task detail representations - const taskDetailsStackWrapper = document.createElement('div'); - taskDetailsStackWrapper.id = 'taskDetailsStackWrapper'; - taskDetailsStackWrapper.classList.add('task-history-stack-wrapper'); - taskDetails.appendChild(taskDetailsStackWrapper); - // container with all task detail representations - const taskDetailsStack = document.createElement('div'); - taskDetailsStack.id = 'taskDetailsStack'; - taskDetailsStack.classList.add('task-history-stack'); - taskDetailsStackWrapper.appendChild(taskDetailsStack); - // -- History of tasks - // div container for the tasks - const taskHistory = document.createElement('div'); - taskHistory.id = 'taskHistory'; - taskHistory.classList.add('taskHistory', 'task-sidebar-column'); - taskSideBar.appendChild(taskHistory); - // header of the task history - const taskHistoryHeader = document.createElement('div'); - taskHistoryHeader.id = 'taskHistoryHeader'; - taskHistoryHeader.classList.add('task-history-header'); - // button to show/hide details - const detailsToggleBtn = document.createElement('a'); - detailsToggleBtn.id = 'btnDetailsToggle'; - taskHistoryHeader.appendChild(detailsToggleBtn); - detailsToggleBtn.addEventListener('click', (event) => { - this._showTaskHistoryDetails = !this._showTaskHistoryDetails; // toggle value - if (this._showTaskHistoryDetails) { - taskDetails.classList.remove('hide'); - detailsToggleBtn.classList.add('close-detail'); - } - else { - taskDetails.classList.add('hide'); - detailsToggleBtn.classList.remove('close-detail'); - } - }); - taskHistory.appendChild(taskHistoryHeader); - // wrap container with all task representations - const taskHistoryStackWrapper = document.createElement('div'); - taskHistoryStackWrapper.id = 'taskHistoryStackWrapper'; - taskHistoryStackWrapper.classList.add('task-history-stack-wrapper'); - taskHistory.appendChild(taskHistoryStackWrapper); - // container with all task representations - const taskHistoryStack = document.createElement('div'); - taskHistoryStack.id = 'taskHistoryStack'; - taskHistoryStack.classList.add('task-history-stack'); - taskHistoryStackWrapper.appendChild(taskHistoryStack); - // --- add the task elemtents - // add all tasks and their details to the stacks - for (const t of this.taskHistory) { - const rep = t.representation.getClone(); - const detail = this._createDetailForTaskInHistory(t); - taskHistoryStack.appendChild(rep); - taskDetailsStack.appendChild(detail); - this.handleHighlightingOnHover(t, rep, detail); - } - // add SrollLink so both wrapper are in sync, when one is scrolled - const scrollLink = new ScrollLinker(taskDetailsStackWrapper, taskHistoryStackWrapper); - // alway scroll to the botton -> last elemet added is shown - taskHistoryStackWrapper.scrollTop = taskHistoryStackWrapper.scrollHeight; - } - // add the event listeners to the task elements in the task history - // to add highlighting to the task and task details and the elemnts in the overview graph - handleHighlightingOnHover(task, taskElem, detailElem) { - // get all paths - const svgContainer = document.getElementById('svg-path-container'); - const pathsTaskIn = Array.from(svgContainer.querySelectorAll(`.path-ep-in-${task.id}`)); - const pathsTaskOut = Array.from(svgContainer.querySelectorAll(`.path-ep-out-${task.id}`)); - const pathsTask = pathsTaskIn.concat(pathsTaskOut); - // hover on taskElem - taskElem.addEventListener('mouseenter', (event) => { - event.stopPropagation(); - // elements themself - taskElem.classList.add('task-hist-element-highlight'); - detailElem.classList.add('task-hist-element-highlight'); - // task + parent/child in overview - this.addHighlightingToElements(task); - // paths from task to cohorts - this.addHighligthingToPaths(pathsTask); - }); - taskElem.addEventListener('mouseleave', (event) => { - event.stopPropagation(); - // elements themself - taskElem.classList.remove('task-hist-element-highlight'); - detailElem.classList.remove('task-hist-element-highlight'); - // task + parent/child in overview - this.removeHighlightingFromElements(task); - // paths from task to cohorts - this.removeHighligthingFromPaths(pathsTask); - }); - // hover on detailElem - detailElem.addEventListener('mouseenter', (event) => { - event.stopPropagation(); - // elements themself - detailElem.classList.add('task-hist-element-highlight'); - taskElem.classList.add('task-hist-element-highlight'); - // task + parent/child in overview - this.addHighlightingToElements(task); - // paths from task to cohorts - this.addHighligthingToPaths(pathsTask); - }); - detailElem.addEventListener('mouseleave', (event) => { - event.stopPropagation(); - // elements themself - detailElem.classList.remove('task-hist-element-highlight'); - taskElem.classList.remove('task-hist-element-highlight'); - // task + parent/child in overview - this.removeHighlightingFromElements(task); - // paths from task to cohorts - this.removeHighligthingFromPaths(pathsTask); - }); - } - addHighligthingToPaths(paths) { - for (const p of paths) { - p.classList.add('overview-path-highlight'); - } - } - removeHighligthingFromPaths(paths) { - for (const p of paths) { - p.classList.remove('overview-path-highlight'); - } - } - // adds the highlighting class to the overview graph elements - addHighlightingToElements(task) { - // input cohorts - for (const inCh of task.parents) { - inCh.representation.getRepresentation().classList.add('overview-element-highlight'); - } - // task - task.representation.getRepresentation().classList.add('overview-element-highlight'); - // output cohorts - for (const outCh of task.children) { - outCh.representation.getRepresentation().classList.add('overview-element-highlight'); - } - } - // removes the highlighting class from the overview graph elements - removeHighlightingFromElements(task) { - // input cohorts - for (const inCh of task.parents) { - inCh.representation.getRepresentation().classList.remove('overview-element-highlight'); - } - // task - task.representation.getRepresentation().classList.remove('overview-element-highlight'); - // output cohorts - for (const outCh of task.children) { - outCh.representation.getRepresentation().classList.remove('overview-element-highlight'); - } - } - // creates the detail element fot a task - _createDetailForTaskInHistory(task) { - const divDetails = document.createElement('div'); - divDetails.classList.add('task-details'); - // const input = task.parents.map((p) => p.label).join(','); - // const output = task.children.map((p) => p.label).join(', '); - // const pAttribute = document.createElement('p'); - // pAttribute.innerHTML = 'Attribute: ' + task.label; - // divDetails.appendChild(pAttribute); - // const pInput = document.createElement('p'); - // pInput.innerHTML = 'Input: ' + input; - // divDetails.appendChild(pInput); - // const pOutput = document.createElement('p'); - // pOutput.innerHTML = 'Output: ' + output; - // divDetails.appendChild(pOutput); - // return divDetails; - divDetails.classList.add('task-details'); - const inputs = task.parents; - const outputs = task.children; - const divAttribute = document.createElement('div'); - divAttribute.classList.add('task-detail-attribute'); - divAttribute.innerHTML = 'Attribute: ' + task.label; - divDetails.appendChild(divAttribute); - const divInput = document.createElement('div'); - divInput.classList.add('task-detail-cohort'); - const divInputLabel = document.createElement('div'); - divInputLabel.classList.add('task-detail-label'); - divInputLabel.innerHTML = `Input (${inputs.length}):`; - divInput.appendChild(divInputLabel); - for (const ic of inputs) { - const currIn = document.createElement('div'); - currIn.classList.add('task-detail-icon'); - currIn.title = `Cohort: ${ic.label}\nSize: ${ic.getRetrievedSize()}`; - divInput.appendChild(currIn); - } - divDetails.appendChild(divInput); - const divOutput = document.createElement('div'); - divOutput.classList.add('task-detail-cohort'); - const divOutputLabel = document.createElement('div'); - divOutputLabel.classList.add('task-detail-label'); - divOutputLabel.innerHTML = `Output (${outputs.length}):`; - divOutput.appendChild(divOutputLabel); - for (const oc of outputs) { - const currOut = document.createElement('div'); - currOut.classList.add('task-detail-icon'); - currOut.title = `Cohort: ${oc.label}\nSize: ${oc.getRetrievedSize()}`; - divOutput.appendChild(currOut); - } - divDetails.appendChild(divOutput); - return divDetails; - } - zoomIn() { - this._zoomFactor = Math.min(this._zoomFactor + 0.1, 3.0); - this._zoom(); - } - zoomOut() { - this._zoomFactor = Math.max(this._zoomFactor - 0.1, 0.2); - this._zoom(); - } - _zoom() { - const cssGrid = this.container.querySelector('div#chtGraph'); - cssGrid.style.transform = `scale(${this._zoomFactor})`; - cssGrid.style.transformOrigin = '0% 0% 0px'; - } -} -//# sourceMappingURL=CohortOverview.js.map \ No newline at end of file diff --git a/dist/Overview/CohortOverview.js.map b/dist/Overview/CohortOverview.js.map deleted file mode 100644 index 546f022..0000000 --- a/dist/Overview/CohortOverview.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CohortOverview.js","sourceRoot":"","sources":["../../src/Overview/CohortOverview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAmB,eAAe,EAAC,MAAM,UAAU,CAAC;AAEtF,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,OAAO,EAAC,MAAM,EAAE,kBAAkB,EAAC,MAAM,WAAW,CAAC;AACrD,OAAO,EAAC,eAAe,EAAiG,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7J,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAC,uBAAuB,EAAE,0BAA0B,EAAC,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,sBAAsB,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAC,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AACpD,OAAO,EAAoB,oBAAoB,EAAE,wBAAwB,EAAE,kCAAkC,EAAE,mCAAmC,EAAuC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAC5O,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,MAAM,OAAO,cAAc;IA0BzB,YAAoB,MAAsB,EAAE,KAAsB,EAAE,GAA0B,EAAE,MAAuB,EAAE,IAAY,EAAE,SAA4B;QAA/I,WAAM,G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C,CAAC;YAC9C,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;YAC1C,OAAO,CAAC,KAAK,GAAG,WAAW,EAAE,CAAC,KAAK,WAAW,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC;YACtE,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;SAChC;QACD,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAElC,OAAO,UAAU,CAAC;IACpB,CAAC;IAIM,MAAM;QACX,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;QACzD,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;QACzD,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAEO,KAAK;QACX,MAAM,OAAO,GAAmB,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;QAC7E,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,SAAS,IAAI,CAAC,WAAW,GAAG,CAAC;QACvD,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,WAAW,CAAC;IAC9C,CAAC;CAEF"} \ No newline at end of file diff --git a/dist/Overview/OverviewLayout.d.ts b/dist/Overview/OverviewLayout.d.ts deleted file mode 100644 index bcc8a19..0000000 --- a/dist/Overview/OverviewLayout.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { ICohort, IOverviewLayout } from '../CohortInterfaces'; -export declare class RectangleLayout implements IOverviewLayout { - private _layout; - cohortWidth: number; - pathWidth: number; - taskWidth: number; - rowHeight: number; - constructor(cohortWidth?: number, pathWidth?: number, taskWidth?: number, rowHeight?: number); - createLayout(root: ICohort): Array; - setContainerGrid(container: HTMLDivElement, columns: number, rows: number): void; - setPositionInGrid(element: HTMLDivElement, column: number, row: number): void; - private _createGridStyleColumns; - private _createGridStyleRows; - private _getGridColumn; - private _assignSameRowForParentAndChild; - private _assignRowAndColumn; - private _createLayoutElement; - private _sortCohortElements; - private _sortTasks; - private _sortCohorts; -} diff --git a/dist/Overview/OverviewLayout.js b/dist/Overview/OverviewLayout.js deleted file mode 100644 index c98173e..0000000 --- a/dist/Overview/OverviewLayout.js +++ /dev/null @@ -1,183 +0,0 @@ -import { Task } from '../Tasks'; -import { deepCopy, log } from '../util'; -export class RectangleLayout { - constructor(cohortWidth = 150, pathWidth = 50, taskWidth = 50, rowHeight = 50) { - this.cohortWidth = cohortWidth; - this.pathWidth = pathWidth; - this.taskWidth = taskWidth; - this.rowHeight = rowHeight; - } - createLayout(root) { - this._layout = []; - this._layout = this._assignRowAndColumn([], root, null, 1, 1); - this._assignSameRowForParentAndChild(); - return deepCopy(this._layout); - } - setContainerGrid(container, columns, rows) { - // container.classed('layout_rect',true); - container.classList.add('layout_rect'); - // get grid style columns and rows - const gridStyleColumns = this._createGridStyleColumns(columns); - const gridStyleRows = this._createGridStyleRows(rows); - // calculate width - const gridSizeString = gridStyleColumns.replace(/px/g, ''); - const gridSizeArray = gridSizeString.split(' ').map(Number); - const width = gridSizeArray.reduce((a, b) => { return a + b; }, 0); - // calcualte heigth - const height = rows * this.rowHeight; - // style container - container.style.width = width + 'px'; - container.style.height = height + 'px'; - container.style.setProperty('grid-template-columns', gridStyleColumns); - container.style.setProperty('grid-template-rows', gridStyleRows); - } - setPositionInGrid(element, column, row) { - element.style.setProperty('grid-column', '' + this._getGridColumn(column)); - element.style.setProperty('grid-row', '' + row); - } - _createGridStyleColumns(columns) { - let style = ''; - for (let i = 1; i <= columns; i++) { - if (i % 2 === 1) { - style = style + this.cohortWidth + 'px '; - } - else { - style = style + this.pathWidth + 'px ' + this.taskWidth + 'px '; - if (i < columns) { - style = style + this.pathWidth + 'px '; - } - } - } - return style; - } - _createGridStyleRows(rows) { - let style = ''; - for (let i = 1; i <= rows; i++) { - style = style + this.rowHeight + 'px '; - } - return style; - } - _getGridColumn(column) { - return column === 1 ? column : column + (column - 1); - } - _assignSameRowForParentAndChild() { - // log.debug('current layout: ', this._layout); - const maxColumn = Math.max(...this._layout.map((elem) => elem.column)); - for (let i = maxColumn; i > 1; i--) { - const currMaxRow = 1; - // get all elements of current column - const currColElem = this._layout.filter((elem) => elem.column === i); - // get all elements of previous column - const prevColElem = this._layout.filter((elem) => elem.column === (i - 1)); - // get all the different parentIDs of current column - let currParentIDs = currColElem.map((elem) => elem.parentID); - currParentIDs = [...new Set(currParentIDs)]; - // log.debug('SameParent: ', {maxColumn, i, currParentIDs}); - // go though the parentIDs - for (const pID of currParentIDs) { - // select filter all elements with the current column and parentID - const elemWithPID = currColElem.filter((elem) => elem.parentID === pID); - // get the lowest row positon of these elements - const minElemID = Math.min(...elemWithPID.map((elem) => elem.row)); - // set row position of the parent in previous column - const currParents = prevColElem.filter((elem) => elem.elemID === pID); - // log.debug('SameParent - Parent Info: ', {minElemID, pID, currParents}); - if (currParents.length > 0) { - // only one parent possible - const currParent = currParents[0]; - // get old row position - const oldRowPos = currParent.row; - // incerese all parent row positions higher the old row position - // by the difference of the old and new position - const rowDiff = minElemID - oldRowPos; - const higherRowPosElems = prevColElem.filter((elem) => elem.row > oldRowPos); - for (const hrElem of higherRowPosElems) { - const newPos = hrElem.row + rowDiff; - hrElem.row = newPos; - } - // set new row position - currParent.row = minElemID; - // log.debug('SameParent - Parent:', {minElemID, currParent}); - } - } - } - } - _assignRowAndColumn(layout, currElement, parentElement, column, row) { - if (currElement !== undefined && currElement !== null) { - if (currElement.children && currElement.children.length > 0) { - // current element has children - const eleChildren = this._sortCohortElements(currElement.children); - // get all row position from the next column (cohort or task) - const nextColRow = layout.filter((elem) => elem.column === column + 1).map((elem) => elem.row); - // calculate the row position of current element so that the child can be in the same row in the next column - let calcRow = nextColRow.length === 0 ? 1 : Math.max(...nextColRow) + 1; - // only if - // the current element is an operation and - // the calculate row position is higher than the current one use the calculated one - calcRow = (currElement instanceof Task && calcRow > row) ? calcRow : row; - // add current element to layout - const parentElementID = parentElement === null ? 'null' : parentElement.id; - layout.push(this._createLayoutElement(currElement.id, parentElementID, column, calcRow)); - for (let i = 0; i < eleChildren.length; i++) { - // set column and row for the children - const childrenColumn = column + 1; - const childrenRow = calcRow + i; - //const childfirstChild = i === 0; - layout.concat(this._assignRowAndColumn(layout, eleChildren[i], currElement, childrenColumn, childrenRow)); - } - return layout; - } - else { - // current element has no children - // add current element to layout - const parentElementID = parentElement === null || parentElement === undefined ? 'null' : parentElement.id; - layout.push(this._createLayoutElement(currElement.id, parentElementID, column, row)); - return layout; - } - } - else { - return []; - } - } - _createLayoutElement(elemID, parentID, column, row) { - return { - elemID, - parentID, - column, - row - }; - } - _sortCohortElements(elements) { - if (elements.length > 0) { - if (elements[0] instanceof Task) { - return elements.sort(this._sortTasks); - } - else { - return elements; - // return elements.sort(this._sortCohorts); // TODO make sort dependent on the sorting of the output cohort - } - } - return elements; - } - _sortTasks(a, b) { - log.debug('sortTasks'); - // smaller than 0, sort 'a' with a lower index than 'b', i.e. 'a' before 'b'. - // bigger than 0, sort 'b' with a lower index than 'a', i.e. 'b' before 'a'. - // order of 'a' and 'b' stays the same. - return a.creationDate - b.creationDate; - } - _sortCohorts(a, b) { - log.debug('sortCohorts'); - // smaller than 0, sort 'a' with a lower index than 'b', i.e. 'a' before 'b'. - // bigger than 0, sort 'b' with a lower index than 'a', i.e. 'b' before 'a'. - // order of 'a' and 'b' stays the same. - if (a.label < b.label) { - return -1; - } - if (a.label > b.label) { - return 1; - } - return 0; - } -} -//# sourceMappingURL=OverviewLayout.js.map \ No newline at end of file diff --git a/dist/Overview/OverviewLayout.js.map b/dist/Overview/OverviewLayout.js.map deleted file mode 100644 index e1d2e59..0000000 --- a/dist/Overview/OverviewLayout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Overvi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C;IAEO,UAAU,CAAC,CAAQ,EAAE,CAAQ;QACnC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACvB,6EAA6E;QAC7E,4EAA4E;QAC5E,uCAAuC;QACvC,OAAO,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;IACzC,CAAC;IAEO,YAAY,CAAC,CAAU,EAAE,CAAU;QACzC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACzB,6EAA6E;QAC7E,4EAA4E;QAC5E,uCAAuC;QACvC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;YACrB,OAAO,CAAC,CAAC,CAAC;SACX;QACD,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;YACrB,OAAO,CAAC,CAAC;SACV;QACD,OAAO,CAAC,CAAC;IACX,CAAC;CAEF"} \ No newline at end of file diff --git a/dist/Overview/index.d.ts b/dist/Overview/index.d.ts deleted file mode 100644 index c63eefa..0000000 --- a/dist/Overview/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './CohortOverview'; -export * from './OverviewLayout'; diff --git a/dist/Overview/index.js b/dist/Overview/index.js deleted file mode 100644 index b02d6a9..0000000 --- a/dist/Overview/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from './CohortOverview'; -export * from './OverviewLayout'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/Overview/index.js.map b/dist/Overview/index.js.map deleted file mode 100644 index 735751a..0000000 --- a/dist/Overview/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Overview/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/dist/Provenance/CohortEV.d.ts b/dist/Provenance/CohortEV.d.ts deleted file mode 100644 index be139cd..0000000 --- a/dist/Provenance/CohortEV.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ICmdResult, IObjectRef } from 'tdp_core'; -import { CohortApp } from '../app'; -import { IElementProvJSON } from '../CohortInterfaces'; -import { CohortOverview } from '../Overview/CohortOverview'; -/*********************************************** - ----- Cohort Evolution View (CohortEV) -------- -************************************************/ -export declare function addOverviewCohortAction(provider: IObjectRef, providerApp: IObjectRef, newDataset: IElementProvJSON[], oldDataset: IElementProvJSON[]): import("tdp_core").IAction; -export declare function addOverviewCohortImpl(inputs: IObjectRef[], parameter: any): Promise; -export declare function removeOverviewCohortAction(provider: IObjectRef, providerApp: IObjectRef, newDataset: IElementProvJSON[], oldDataset: IElementProvJSON[]): import("tdp_core").IAction; -export declare function removeOverviewCohortImpl(inputs: IObjectRef[], parameter: any): Promise; diff --git a/dist/Provenance/CohortEV.js b/dist/Provenance/CohortEV.js deleted file mode 100644 index d8ef98a..0000000 --- a/dist/Provenance/CohortEV.js +++ /dev/null @@ -1,67 +0,0 @@ -import { ActionMetaData, ActionUtils, ObjectRefUtils } from 'tdp_core'; -import { log } from '../util'; -/*********************************************** - ----- Cohort Evolution View (CohortEV) -------- -************************************************/ -// ---------------------------- -// ---- Add Cohort(s) --------- -// ---------------------------- -export function addOverviewCohortAction(provider, providerApp, newDataset, oldDataset) { - log.debug('Add Cohort Action'); - return ActionUtils.action(ActionMetaData.actionMeta('Add Cohort(s)', ObjectRefUtils.category.data, ObjectRefUtils.operation.create), 'addCohorts', addOverviewCohortImpl, [provider, providerApp], { - newDataset, - oldDataset - }); -} -export async function addOverviewCohortImpl(inputs, parameter) { - log.debug('addOverviewCohortImpl', { inputs, parameter }); - // get app CohortApp - const app = await inputs[1].v; - // get the overview of CohortApp - const ovApp = app.getAppOverview(); - if (ovApp) { - await ovApp.generateOverviewProv(parameter.newDataset); - ovApp.updateJSONElements(); - setChtCounter(parameter, app); - } - return { - inverse: addOverviewCohortAction(inputs[0], inputs[1], parameter.oldDataset, parameter.newDataset) - }; -} -function setChtCounter(parameter, app) { - const numbers = parameter.newDataset - .filter((e) => e.type === 'Cohort') - .map((e) => parseInt(e.label.split(' ')[0] // extraxt #XY part - .split('#')[1] // remove hash - , 10)) - .filter(Number.isFinite); // remove cohorts without number (i.e., root) - const chts = Math.max(...numbers, 0) + 1; // continue with next number - log.debug('set counter to ', chts, '; was', app.chtCounter); - app.chtCounter = chts; -} -// ---------------------------- -// ---- Remove Cohort(s) ------ -// ---------------------------- -export function removeOverviewCohortAction(provider, providerApp, newDataset, oldDataset) { - log.debug('Remove Cohort Action'); - return ActionUtils.action(ActionMetaData.actionMeta('Remove Cohort(s)/Operation(s)', ObjectRefUtils.category.data, ObjectRefUtils.operation.remove), 'removeCohorts', removeOverviewCohortImpl, [provider, providerApp], { - newDataset, - oldDataset - }); -} -export async function removeOverviewCohortImpl(inputs, parameter) { - log.debug('removeOverviewCohortImpl', { inputs, parameter }); - // get app CohortApp - const app = await inputs[1].v; - // get the overview of CohortApp - const ovApp = app.getAppOverview(); - if (ovApp) { - await ovApp.generateOverviewProv(parameter.newDataset); - ovApp.updateJSONElements(); - setChtCounter(parameter, app); - } - return { - inverse: removeOverviewCohortAction(inputs[0], inputs[1], parameter.oldDataset, parameter.newDataset) - }; -} -//# sourceMappingURL=CohortEV.js.map \ No newline at end of file diff --git a/dist/Provenance/CohortEV.js.map b/dist/Provenance/CohortEV.js.map deleted file mode 100644 index e77b77e..0000000 --- a/dist/Provenance/CohortEV.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CohortEV.js","sourceRoot":"","sources":["../../src/Provenance/CohortEV.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,WAAW,EAA0B,cAAc,EAAC,MAAM,UAAU,CAAC;AAI7F,OAAO,EAAC,GAAG,EAAC,MAAM,SAAS,CAAC;AAE5B;;iDAEiD;AAEjD,+BAA+B;AAC/B,+BAA+B;AAC/B,+BAA+B;AAC/B,MAAM,UAAU,uBAAuB,CAAC,QAAoC,EAAE,WAAkC,EAAE,UA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EAAE,CAAC;IACnC,IAAI,KAAK,EAAE;QACT,MAAM,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACvD,KAAK,CAAC,kBAAkB,EAAE,CAAC;QAE3B,aAAa,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;KAC/B;IAED,OAAO;QACL,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC;KACtG,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/dist/Provenance/General.d.ts b/dist/Provenance/General.d.ts deleted file mode 100644 index 973b03b..0000000 --- a/dist/Provenance/General.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ICmdResult, IObjectRef } from 'tdp_core'; -import { CohortApp } from '../app'; -import { IElementProvJSON, IElementProvJSONCohort } from '../CohortInterfaces'; -import { IEntitySourceConfig } from '../utilIdTypes'; -/****************************** - ---------- GENERAL ---------- -*******************************/ -export declare function setDatasetAction(provider: IObjectRef, newDataset: IDatasetDesc, oldDataset: IDatasetDesc): import("tdp_core").IAction; -export declare function setDatasetImpl(inputs: IObjectRef[], parameter: any): Promise; -export interface IPanelDesc { - id: string; - description: string; - species: string; -} -export interface IDatasetDesc { - source: IEntitySourceConfig; - panel?: IPanelDesc; - rootCohort: IElementProvJSONCohort; - chtOverviewElements: IElementProvJSON[]; -} diff --git a/dist/Provenance/General.js b/dist/Provenance/General.js deleted file mode 100644 index cc339b6..0000000 --- a/dist/Provenance/General.js +++ /dev/null @@ -1,24 +0,0 @@ -import { ActionMetaData, ActionUtils, ObjectRefUtils } from 'tdp_core'; -import { log } from '../util'; -/****************************** - ---------- GENERAL ---------- -*******************************/ -// ---------------------------- -// ---- DATASET --------------- -// ---------------------------- -export function setDatasetAction(provider, newDataset, oldDataset) { - log.debug('Create setDataset Action'); - return ActionUtils.action(ActionMetaData.actionMeta('Change Dataset', ObjectRefUtils.category.data, ObjectRefUtils.operation.update), 'chtSetDataset', setDatasetImpl, [provider], { - newDataset, - oldDataset - }); -} -export async function setDatasetImpl(inputs, parameter) { - log.debug('setDataset impl', parameter.oldDataset, parameter.newDataset); - const app = await inputs[0].v; - await app.setDataset(parameter.newDataset); - return { - inverse: setDatasetAction(inputs[0], parameter.oldDataset, parameter.newDataset) - }; -} -//# sourceMappingURL=General.js.map \ No newline at end of file diff --git a/dist/Provenance/General.js.map b/dist/Provenance/General.js.map deleted file mode 100644 index adb8636..0000000 --- a/dist/Provenance/General.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"General.js","sourceRoot":"","sources":["../../src/Provenance/General.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,WAAW,EAA0B,cAAc,EAAC,MAAM,UAAU,CAAC;AAG7F,OAAO,EAAC,GAAG,EAAC,MAAM,SAAS,CAAC;AAI5B;;gCAEgC;AAEhC,+BAA+B;AAC/B,+BAA+B;AAC/B,+BAA+B;AAC/B,MAAM,UAAU,gBAAgB,CAAC,QAA+B,EAAE,UAAwB,EAAE,UAAwB;IAClH,GAAG,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACtC,OAAO,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,gBAAgB,EAAE,cAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE;QACjL,UAAU;QACV,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAA+B,EAAE,SAAc;IAClF,GAAG,CAAC,KAAK,CAAC,iBAAiB,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACzE,MAAM,GAAG,GAAc,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,MAAM,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3C,OAAO;QACL,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC;KACjF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/dist/TaskRepresentations.d.ts b/dist/TaskRepresentations.d.ts deleted file mode 100644 index c1de07b..0000000 --- a/dist/TaskRepresentations.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IRectTaskRep } from './CohortInterfaces'; -import { Task } from './Tasks'; -export declare class RectTaskRep implements IRectTaskRep { - private task; - id: string; - label: string; - private _representation; - private _repClone; - private _height; - private _width; - image: string; - private _removeButton; - constructor(task: Task, height: number, width: number); - getRepresentation(): HTMLDivElement; - _create(height: number, width: number): HTMLDivElement; - private _createClone; - getClone(): HTMLDivElement; - setInformation(label: string, image: string): void; - setLabel(label: string): void; - setImage(image: string): void; - private getIconClass; -} diff --git a/dist/TaskRepresentations.js b/dist/TaskRepresentations.js deleted file mode 100644 index 794723e..0000000 --- a/dist/TaskRepresentations.js +++ /dev/null @@ -1,133 +0,0 @@ -import { TaskRemoveEvent } from './utilCustomEvents'; -export class RectTaskRep { - constructor(task, height, width) { - this.task = task; - this.id = task.id; - this.label = task.label; - this._height = height; - this._width = width; - this._representation = this._create(height, width); - this._repClone = this._createClone(this._representation); - this.setLabel(task.label); - } - getRepresentation() { - return this._representation; - } - _create(height, width) { - const container = document.createElement('div'); - container.className = 'rectTask'; - container.id = this.id; - container.style.width = '' + width; - const labelHeight = Math.round((height * 0.4) * 100) / 100; - const imgHeight = height - labelHeight; - const fontSize = labelHeight < 15 ? labelHeight - 1 : 14; - // remove button - this._removeButton = document.createElement('a'); - this._removeButton.classList.add('remove-task'); - this._removeButton.toggleAttribute('hidden', true); - this._removeButton.innerHTML = ''; - container.appendChild(this._removeButton); - // create image div - const divImage = document.createElement('div'); - divImage.className = 'rectTask-image'; - divImage.style.height = imgHeight + 'px'; - //create fontawesome icon - const iIcon = document.createElement('i'); - divImage.appendChild(iIcon); - container.appendChild(divImage); - // create label div - const divLabel = document.createElement('div'); - divLabel.className = 'rectTask-label'; - divLabel.style.height = labelHeight + 'px'; - divLabel.style.lineHeight = labelHeight + 'px'; - divLabel.style.fontSize = fontSize + 'px'; - container.appendChild(divLabel); - // show remove icon on hover - container.addEventListener('mouseenter', (event) => { - event.stopPropagation(); - // show remove icon (=trash can) - this._removeButton.removeAttribute('hidden'); - }); - container.addEventListener('mouseleave', (event) => { - event.stopPropagation(); - // hide remove icon (=trash can) - this._removeButton.toggleAttribute('hidden', true); - }); - container.addEventListener('click', (event) => { - if (event.target === this._removeButton.childNodes[0]) { - // open modal - $('#deleteModal').modal('show'); - // get modal - const modal = document.getElementById('deleteModal'); - if (modal) { - // set type text of element - const text = modal.querySelector('.element-name'); - text.innerHTML = 'operation'; - // get delete button in modal - let delConfirm = modal.querySelector('.confirm-delete'); - if (delConfirm) { - // replace element with copy of it to remove the eventlisteners - delConfirm.replaceWith(delConfirm.cloneNode(true)); - delConfirm = modal.querySelector('.confirm-delete'); - // add click event to delete button - delConfirm.addEventListener('click', (event) => { - // dispatch event to remove task and its children - container.dispatchEvent(new TaskRemoveEvent(this.task)); - event.stopPropagation(); - // hide modal - $('#deleteModal').modal('hide'); - }); - } - } - event.stopPropagation(); - } - }); - return container; - } - _createClone(original) { - const clone = original.cloneNode(true); - clone.id = 'clone_' + this.id; - clone.style.setProperty('grid-area', null); - return clone; - } - getClone() { - return this._repClone; - } - setInformation(label, image) { - this.setLabel(label); - this.setImage(image); - } - setLabel(label) { - // original - const divLabel = this._representation.querySelector('div.rectTask-label'); - divLabel.innerHTML = label; - divLabel.title = label; - // clone - const divLabelClone = this._repClone.querySelector('div.rectTask-label'); - divLabelClone.innerHTML = label; - divLabelClone.title = label; - } - setImage(image) { - this.image = image; - // original - const divImage = this._representation.querySelector('div.rectTask-image'); - divImage.classList.add(image); - divImage.querySelector('i').classList.add(...this.getIconClass(image)); - // // clone - const divImageClone = this._repClone.querySelector('div.rectTask-image'); - divImageClone.classList.add(image); - divImageClone.querySelector('i').classList.add(...this.getIconClass(image)); - } - getIconClass(image) { - if (image === 'filter') { - return ['fas', 'fa-filter']; - } - else if (image === 'split') { - return ['fas', 'fa-share-alt']; - } - else { - return []; - } - } -} -//# sourceMappingURL=TaskRepresentations.js.map \ No newline at end of file diff --git a/dist/TaskRepresentations.js.map b/dist/TaskRepresentations.js.map deleted file mode 100644 index c79d74f..0000000 --- a/dist/TaskRepresentations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TaskRepresentations.js","sourceRoot":"","sources":["../src/TaskRepresentations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAEnD,MAAM,OAAO,WAAW;IAWtB,YAAoB,IAAU,EAAE,MAAc,EAAE,KAAa;QAAzC,SAAI,GAAJ,IAAI,CAAM;QAC5B,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAEM,iBAAiB;QACtB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAEM,OAAO,CAAC,MAAc,EAAE,KAAa;QAC1C,MAAM,SAAS,GAAmB,QAAQ,CAAC,aAA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E,cAAc,CAAC,CAAC;SAChC;aAAM;YACL,OAAO,EAAE,CAAC;SACX;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Tasks.d.ts b/dist/Tasks.d.ts deleted file mode 100644 index 8299fd3..0000000 --- a/dist/Tasks.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { IAllFilters } from 'tdp_core'; -import { IElement, IElementProvJSON, IElementProvJSONTask, ITask, ITaskRep, TaskType } from './CohortInterfaces'; -import { IAttribute } from './data/Attribute'; -export declare abstract class Task implements ITask { - id: string; - label: string; - type: TaskType; - parents: Array; - children: Array; - representation: ITaskRep; - attributes: IAttribute[]; - creationDate: number; - constructor(id: string, label: string, attributes: IAttribute[]); - abstract toProvenanceJSON(): IElementProvJSONTask; -} -export declare class TaskFilter extends Task { - constructor(id: string, label: string, attributes: IAttribute[]); - toProvenanceJSON(): IElementProvJSONTask; -} -export declare class TaskSplit extends Task { - constructor(id: string, label: string, attributes: IAttribute[]); - toProvenanceJSON(): IElementProvJSONTask; -} -export declare function createTaskFromProvJSON(config: IElementProvJSON): Task; -export declare function mergeTwoAllFilters(existingFilter: IAllFilters, newFilter: IAllFilters): IAllFilters; diff --git a/dist/Tasks.js b/dist/Tasks.js deleted file mode 100644 index c6374d9..0000000 --- a/dist/Tasks.js +++ /dev/null @@ -1,152 +0,0 @@ -import { ElementProvType, TaskType } from './CohortInterfaces'; -import { toAttribute } from './data/Attribute'; -import { deepCopy, log } from './util'; -export class Task { - constructor(id, label, attributes) { - this.id = id; - this.label = label; - this.creationDate = Date.now(); - this.representation = null; - this.children = []; - this.parents = []; - this.attributes = attributes; - } -} -export class TaskFilter extends Task { - constructor(id, label, attributes) { - super(id, label, attributes); - this.type = TaskType.Filter; - } - toProvenanceJSON() { - return { - id: this.id, - type: ElementProvType.TaskFilter, - label: this.label, - parent: this.parents.map((elem) => elem.id), - children: this.children.map((elem) => elem.id), - attrAndValues: { - attributes: this.attributes.map((elem) => elem.toJSON()) - } - }; - } -} -export class TaskSplit extends Task { - constructor(id, label, attributes) { - super(id, label, attributes); - this.type = TaskType.Split; - } - toProvenanceJSON() { - return { - id: this.id, - type: ElementProvType.TaskSplit, - label: this.label, - parent: this.parents.map((elem) => elem.id), - children: this.children.map((elem) => elem.id), - attrAndValues: { - attributes: this.attributes.map((elem) => elem.toJSON()) - } - }; - } -} -export function createTaskFromProvJSON(config) { - const attrJSON = config.attrAndValues.attributes; - const attributes = attrJSON.map((elem) => { - return toAttribute(elem.option, elem.currentDB, elem.currentView); - }); - if (config.type === ElementProvType.TaskFilter) { - return new TaskFilter(config.id, config.label, attributes); - } - else { - return new TaskSplit(config.id, config.label, attributes); - } -} -function mergerAllFilterPart(filterType, existingFilter, newFilter) { - let mergedFilter = deepCopy(existingFilter); - // const currType : FilterType = FilterType.normal; - let filterContradiction = false; - // go through all attribuets of the new filter - for (const attr in newFilter) { - // check if attribute exists in the new filter - if (Object.prototype.hasOwnProperty.call(newFilter, attr)) { - // check if attribute exists in the existing filter - if (Object.prototype.hasOwnProperty.call(existingFilter, attr)) { - const newVal = newFilter[attr]; //current value for attribute - const existVal = existingFilter[attr]; //current value for attribute - if (filterType === FilterType.normal) { - // convert newVal to an array of values - const newValArray = Array.isArray(newVal) ? newVal : new Array(newVal); - // convert existVal to an array of values - const existValArray = Array.isArray(existVal) ? existVal : new Array(existVal); - // if all new values are part of the existing values, then the filter is OK - for (const nv of newValArray) { - if (!existValArray.includes(nv)) { - filterContradiction = true; - } - } - // no filter contradiction -> new filter values can be used - if (!filterContradiction) { // outside of for-loop - mergedFilter[attr] = newFilter[attr]; - } - } - else if (filterType === FilterType.lt || filterType === FilterType.lte) { - // smaller is OK - if (newVal <= existVal) { - mergedFilter[attr] = newFilter[attr]; - } - else { - filterContradiction = true; - } - } - else if (filterType === FilterType.gt || filterType === FilterType.gte) { - // bigger is OK - if (newVal >= existVal) { - mergedFilter[attr] = newFilter[attr]; - } - else { - filterContradiction = true; - } - } - } - else { - // the new filter attribute is not existing -> add to the resulting filter - mergedFilter[attr] = newFilter[attr]; - } - } - } - if (filterContradiction) { - mergedFilter = null; - } - log.debug('Filter Contradiction: ', filterContradiction); - return mergedFilter; -} -export function mergeTwoAllFilters(existingFilter, newFilter) { - let mergerAllFilter = null; - if (existingFilter !== null) { - const normal = mergerAllFilterPart(FilterType.normal, existingFilter.normal, newFilter.normal); - const lt = mergerAllFilterPart(FilterType.lt, existingFilter.lt, newFilter.lt); - const lte = mergerAllFilterPart(FilterType.lte, existingFilter.lte, newFilter.lte); - const gt = mergerAllFilterPart(FilterType.gt, existingFilter.gt, newFilter.gt); - const gte = mergerAllFilterPart(FilterType.gte, existingFilter.gte, newFilter.gte); - // if the filters are all !== null, that means there is no filter contradiction -> set all filters of mergerAllFilter - // otherwise the mergerAllFilter stays null - if (normal !== null && lte !== null && lte !== null && gt !== null && gte !== null) { - mergerAllFilter = { - normal, - lt, - lte, - gt, - gte - }; - } - } - return mergerAllFilter; -} -var FilterType; -(function (FilterType) { - FilterType[FilterType["normal"] = 0] = "normal"; - FilterType[FilterType["lt"] = 1] = "lt"; - FilterType[FilterType["lte"] = 2] = "lte"; - FilterType[FilterType["gt"] = 3] = "gt"; - FilterType[FilterType["gte"] = 4] = "gte"; -})(FilterType || (FilterType = {})); -//# sourceMappingURL=Tasks.js.map \ No newline at end of file diff --git a/dist/Tasks.js.map b/dist/Tasks.js.map deleted file mode 100644 index 79d65ae..0000000 --- a/dist/Tasks.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Tasks.js","sourceRoot":"","sources":["../src/Tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAqE,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAChI,OAAO,EAAa,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAC,QAAQ,EAAE,GAAG,EAAC,MAAM,QAAQ,CAAC;AAErC,MAAM,OAAgB,IAAI;IAUxB,YAAY,EAAU,EAAE,KAAa,EAAE,UAAwB;QAC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C;QAC5F,MAAM,EAAE,GAAY,mBAAmB,CAAC,UAAU,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;QACxF,MAAM,GAAG,GAAY,mBAAmB,CAAC,UAAU,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QAE5F,qHAAqH;QACrH,2CAA2C;QAC3C,IAAI,MAAM,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI,IAAI,EAAE,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI,EAAE;YAClF,eAAe,GAAG;gBAChB,MAAM;gBACN,EAAE;gBACF,GAAG;gBACH,EAAE;gBACF,GAAG;aACJ,CAAC;SACH;KACF;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,IAAK,UAMJ;AAND,WAAK,UAAU;IACb,+CAAM,CAAA;IACN,uCAAE,CAAA;IACF,yCAAG,CAAA;IACH,uCAAE,CAAA;IACF,yCAAG,CAAA;AACL,CAAC,EANI,UAAU,KAAV,UAAU,QAMd"} \ No newline at end of file diff --git a/dist/Taskview/SearchBar.d.ts b/dist/Taskview/SearchBar.d.ts deleted file mode 100644 index da5b9e8..0000000 --- a/dist/Taskview/SearchBar.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { IServerColumn } from 'tdp_core'; -import { IDataSubtypeConfig } from 'tdp_publicdb'; -import { ScoreType } from '../data/Attribute'; -import { ISpecialAttribute } from '../data/SpecialAttribute'; -export declare class SearchBar { - private _container; - private _serachBarInputDiv; - private _searchBarInput; - private _searchBarPlaceholder; - private _optionContainerWrapper; - private _optionContainer; - private _optionList; - private _optionDetail; - private _optionFocusIndex; - private _pageSize; - private _pageNumberGenes; - private _moreGenes; - private _databaseColumns; - private _panelAnnotations; - private _waitForMoreOptions; - private _optionWrapperCSSClass; - private _databaseConfig; - private _geneDataTypes; - private _eventListenerCloseOptionWindow; - private _geneHoverOptionId; - constructor(parentContainer: HTMLDivElement, database: string, view: string, optionWrapperCSSClass?: string); - private _createContainer; - private _getGeneDataTypes; - private _createStructure; - private searchID; - private _showOptionListAndDetail; - private _getDatabaseColumns; - private _createAllOptions; - private _sortDataColumns; - private _addOptionsToGroup; - private _updateLoadMoreOption; - private _getAllPossibleOptions; - private _createSearchBarGroup; - _createOption(id: string, type: OptionType, text: string, data: any): IOption; - private _addAdditionalOptions; - private _getAdditionalOptionsFromGenePage; - private _getPanelAnnotation; - private _getGenePage; - private _clickHandler; - private _clickHandlerDetail; - private _mouseOverHandler; - private _createSearchBarPlaceholder; - private _createSearchBarBadge; - private _addEventListeners; - private _keyboardControl; - private _closeOCWCheck; - private _setArrowKeyFocus; - private _scrollPagination; - private _showOCW; - private _setFocusAndScrollOfOptionList; - private _setSizeAndPositionOfOCW; - private _setPlaceholder; - private _setSearchBarInputWidth; - private _clearDetail; - /** - * Removes any options, loading indicators, or notes that no attributes were found - */ - private _clearOptionList; - private _createDetail; - private _createGeneDetail; - private _composeGeneDataTypeName; - private _composeGeneDataTypeOptId; - private _createPanelDetail; - private _createSpecialDetail; - private _createDBColumnDetail; - private _removeAllOptionHighlighting; - private _removeAllSelectedItems; - private _addAndRemoveClearAll; - getSearchBarHTMLDivElement(): HTMLDivElement; - getSelectedOptions(): IOption[]; - removeAllSelectedOptions(): void; -} -export interface ISearchBarGroup { - groupLabel: string; - data: Array; -} -export declare type OptionType = 'dbc' | 'gene' | 'panel'; -export interface IOption { - optionId: string; - optionType: OptionType; - optionText: string; - optionData?: { - [key: string]: any; - }; -} -export interface IPanelOption extends IOption { - optionData: { - description: string; - species: string; - }; -} -export interface IScoreOption extends IOption { - optionData: { - type: ScoreType; - subType: IDataSubtypeConfig; - }; -} -export interface IServerColumnOption extends IOption { - optionData: { - serverColumn: IServerColumn; - }; -} -export interface ISpecialOption extends IServerColumnOption { - optionData: { - serverColumn: IServerColumn; - sAttrId: string; - attrOption: string; - spAttribute: ISpecialAttribute; - }; -} diff --git a/dist/Taskview/SearchBar.js b/dist/Taskview/SearchBar.js deleted file mode 100644 index e86bebd..0000000 --- a/dist/Taskview/SearchBar.js +++ /dev/null @@ -1,944 +0,0 @@ -import { select } from 'd3v7'; -import { RestBaseUtils } from 'tdp_core'; -import { dataTypes, depletion } from 'tdp_publicdb'; -import { colors } from '../colors'; -import { checkSpecialAttribute } from '../data/SpecialAttribute'; -import { deepCopy, getAnimatedLoadingText, log } from '../util'; -import { niceName } from '../utilLabels'; -export class SearchBar { - constructor(parentContainer, database, view, optionWrapperCSSClass = 'standard') { - this.searchID = 0; - this._pageSize = 30; - this._pageNumberGenes = 0; - this._moreGenes = false; - this._waitForMoreOptions = false; - this._databaseColumns = null; - this._panelAnnotations = null; - this._optionWrapperCSSClass = optionWrapperCSSClass; - this._databaseConfig = { - database, - view - }; - // get all needed gene data types (e.g. Copy Number) - this._geneDataTypes = this._getGeneDataTypes(view); - log.debug('SearchBar Configuration - with the database and view: ', { database, view, pageSize: this._pageSize }); - // create placeholder - this._createSearchBarPlaceholder(); - // create container element for the search bar - this._createContainer(parentContainer); - this._optionFocusIndex = -1; - // create the neeeded structure - this._createStructure(); - // get all possible options - this._getAllPossibleOptions(''); - this._eventListenerCloseOptionWindow = (e) => this._closeOCWCheck(e.target); - // add all EventListeners - this._addEventListeners(); - } - _createContainer(parentContainer) { - while (parentContainer.hasChildNodes()) { - parentContainer.removeChild(parentContainer.lastChild); - } - this._container = document.createElement('div'); - this._container.className = 'search-bar-container'; - parentContainer.appendChild(this._container); - } - _getGeneDataTypes(view) { - // datatypes from tdp_publicdb/src/config.ts - const types = deepCopy(dataTypes); - if (view === 'cellline') { - types.push(deepCopy(depletion)); - } - for (const dt of types) { - for (const subdt of dt.dataSubtypes) { - subdt.dataTypeId = dt.id; - } - } - // log.debug('Gene data types: ', types); - return types; - } - _createStructure() { - // ---- input to filter options - // create span element for the input - const searchBarDiv = document.createElement('div'); - searchBarDiv.className = 'input-badge'; - this._serachBarInputDiv = searchBarDiv; - this._container.appendChild(this._serachBarInputDiv); // append element to this._container - // input element to use for the filtering of the options - this._searchBarInput = document.createElement('input'); - this._searchBarInput.className = 'search-bar-input'; - // this._searchBarInput.placeholder = ' Select one or more attributes'; - this._searchBarInput.type = 'text'; - this._serachBarInputDiv.appendChild(this._searchBarInput); // append element to the span element - // ---- options and their detail - // option container wrapper - select(document.body).selectAll(`div.option-container-wrapper.option-element.${this._optionWrapperCSSClass}`).remove(); - this._optionContainerWrapper = document.createElement('div'); - this._optionContainerWrapper.classList.add('option-container-wrapper', 'option-element', `${this._optionWrapperCSSClass}`); - this._setSizeAndPositionOfOCW(); - document.body.appendChild(this._optionContainerWrapper); - this._showOCW(false); - // option container - this._optionContainer = document.createElement('div'); - this._optionContainer.classList.add('option-container', 'option-element'); - this._optionContainerWrapper.appendChild(this._optionContainer); - // option list: conatiners all possible options - this._optionList = document.createElement('div'); - this._optionList.classList.add('option-list', 'option-element'); - this._optionContainer.appendChild(this._optionList); - // option deatil: show details of an option - this._optionDetail = document.createElement('div'); - this._optionDetail.classList.add('option-detail', 'option-element'); - this._optionContainer.appendChild(this._optionDetail); - } - // shows all possible options in option list - async _showOptionListAndDetail(text) { - this.searchID++; - const thisSearch = this.searchID; - this._setSizeAndPositionOfOCW(); // set size and position - this._showOCW(true); // show option container wrapper - this._pageNumberGenes = 0; - this._moreGenes = false; - this._clearOptionList(); - const loading = this._optionList.appendChild(getAnimatedLoadingText('attributes')); - // await DebugTools.sleep(2000); - try { - const options = await this._getAllPossibleOptions(text); - if (this.searchID === thisSearch) { // check if the retrieved options are still needed - loading.remove(); // a follow up call to this method would have already removed the loading indicator and added a new one - if (options.length > 0) { - this._createAllOptions(options); - } - else { - this._optionList.insertAdjacentHTML('afterbegin', ` -

No attributes were found with ${text} in their name.

- `); - } - } - } - catch { - if (this.searchID === thisSearch) { // check if the retrieved options are still needed - loading.remove(); - this._optionList.insertAdjacentHTML('afterbegin', ` -

Loading available attributes failed. Please check your connection and try again.

- `); - } - } - } - async _getDatabaseColumns(database, view) { - const viewDesc = await RestBaseUtils.getTDPDesc(database, view); - this._databaseColumns = viewDesc.columns; - } - // create all options in option list - _createAllOptions(data) { - this._optionFocusIndex = -1; - // get all selected-option-badges - const badges = this._container.querySelectorAll(`.selected-option-badge`); - const badgeIds = Array.from(badges).map((a) => { - return a.dataset.optid; - }); - // log.debug('current badges: ', badgeIds); - // create the new options - select(this._optionList) - .selectAll('div') - .data(data) - .enter() // go through all groups - .append('div') - .attr('class', 'option-group option-element') - .each((d, i, nodes) => { - const group = select(nodes[i]); - // add group header - group.append('div') - .attr('class', 'option-group-header option-element') - .html(d.groupLabel); - // go through all options for group - this._addOptionsToGroup(group.node(), d); - }); - // check if the load more option should be visible - this._updateLoadMoreOption(); - } - _sortDataColumns(a, b) { - if (a.optionData.serverColumn.label < b.optionData.serverColumn.label) { - return -1; - } - if (a.optionData.serverColumn.label > b.optionData.serverColumn.label) { - return 1; - } - return 0; - } - _addOptionsToGroup(groupElement, options) { - // get all selected-option-badges - const badges = this._container.querySelectorAll(`.selected-option-badge`); - const badgeIds = Array.from(badges).map((a) => { - return a.dataset.optid; - }); - select(groupElement) - .selectAll('div.option').data(options.data, (d) => d.optionId) - .enter() - .append('div') - .attr('class', 'option option-element') - .attr('data-optid', (d) => d.optionId) - .attr('data-subtypes', (d) => { - // if optionType 0 = 'gene' the number of selected score as dataset.subtypes - if (d.optionType === 'gene') { - let noOfSub = 0; - for (const bId of badgeIds) { - if (bId.indexOf(d.optionId.split(':')[0]) !== -1) { - noOfSub += 1; - } - } - return noOfSub; - } - else { // other wise set to null -> no dataset.subtypes will exits - return null; - } - }) - .classed('option-selected', (d) => { - // check if a option is selected (= badge), then add class to highlight - let selected = false; - for (const bId of badgeIds) { - selected = selected || bId.split(':')[0] === d.optionId.split(':')[0]; - } - return selected; - }) - .html((d) => { - let text = d.optionText; - if (d.optionType === 'gene') { - text = text + `

${d.optionId}
`; - } - return text; - }) - .on('click', (event, d) => { - if (d.optionType !== 'gene') { - // TODO #427 remove click handler for special attribtue 'treatment', replace with special attribtue constant - if (d.optionId !== 'treatment') { - this._clickHandler(d, d.optionType, event, event.currentTarget); - // indicate an change in the options - this._container.dispatchEvent(new CustomEvent('optionchange')); - } - } - }) - .on('mouseover', (event, d) => { - if (d.optionType === 'gene') { - // set global optionId - this._geneHoverOptionId = d.optionId; - setTimeout(() => { - // update detail after timeout time global and current optionId is equal - if (d.optionId === this._geneHoverOptionId) { - this._mouseOverHandler(d, event.currentTarget); - } - }, 200); - } - else { - this._mouseOverHandler(d, event.currentTarget); - } - }) - .on('mouseout', (event, d) => { - if (d.optionType === 'gene') { - // clear global optionId - this._geneHoverOptionId = null; - } - }); - } - _updateLoadMoreOption() { - select(this._optionList).selectAll('.load-option').remove(); - if (this._moreGenes) { - select(this._optionList) - .append('div') - .attr('class', 'option-group-header option-element load-option') - .html((d) => 'Loading more options ...'); - } - } - async _getAllPossibleOptions(text) { - //check if databse column were loaded, otherwise do it now - if (this._databaseColumns === null) { - // get the database columns - await this._getDatabaseColumns(this._databaseConfig.database, this._databaseConfig.view); - } - const optionGroups = []; - // database columns - const filteredData = this._databaseColumns.filter((a) => a.label.toLowerCase().indexOf(text.toLowerCase()) !== -1); - const dataColumns = this._createSearchBarGroup(filteredData, 'Annotation Columns', 'dbc', 'label', 'column'); - log.debug('dataColumns: ', dataColumns); - dataColumns.data.sort(this._sortDataColumns); - // panel annotaion - let panels = null; - if (this._databaseConfig.view === 'tissue' || this._databaseConfig.view === 'cellline' || this._databaseConfig.view === 'gene') { - if (this._panelAnnotations === null) { - this._panelAnnotations = await this._getPanelAnnotation(); - } - // log.debug('Panels: ', this._panelAnnotations); - const groupPanelLabel = niceName(this._databaseConfig.view) + ' Panel Annotation'; - const filteredPanels = this._panelAnnotations.filter((a) => a.id.toLowerCase().indexOf(text.toLowerCase()) !== -1); - panels = this._createSearchBarGroup(filteredPanels, groupPanelLabel, 'panel', 'id', 'id'); - } - // gene score only for tissue and cellline - let genes = null; - if (this._databaseConfig.view === 'tissue' || this._databaseConfig.view === 'cellline') { - // genes - const genePage = await this._getGenePage(text, 0); - this._moreGenes = genePage.more; - genes = this._createSearchBarGroup(genePage.items, 'Genes', 'gene', 'text', 'id'); - } - // log.debug('current options: ', { dataColumns, panels , genes }); - if (dataColumns && dataColumns.data.length > 0) { - optionGroups.push(dataColumns); - } - if (panels && panels.data.length > 0) { - optionGroups.push(panels); - } - if (genes && genes.data.length > 0) { - optionGroups.push(genes); - } - return optionGroups; - } - _createSearchBarGroup(data, groupLabelText, type, textProperty, idProperty) { - const group = { - groupLabel: groupLabelText, - data: data.map((a) => { - const text = a[textProperty] === null ? '' : niceName(a[textProperty]); - const oId = a[idProperty]; - return this._createOption(oId, type, text, a); - }) - }; - return group; - } - _createOption(id, type, text, data) { - const option = { - optionId: id, - optionType: type, - optionText: text - }; - switch (type) { - case 'dbc': - const spAttr = checkSpecialAttribute(option.optionId); - if (spAttr) { - option.optionData = { - sAttrId: option.optionId, - attrOption: '', - spAttribute: spAttr, - serverColumn: data - }; - } - else { - option.optionData = { serverColumn: data }; - } - break; - case 'gene': - // Nothing to do here, added in clickHandler - break; - case 'panel': - option.optionData = { - description: data.description, - species: data.species - }; - break; - } - return option; - } - async _addAdditionalOptions(text) { - this._pageNumberGenes += 1; - const addOptions = await this._getAdditionalOptionsFromGenePage(text, this._pageNumberGenes); - const optionGroupHeaders = this._optionList.querySelectorAll('.option-group-header'); - const targetGroups = Array.from(optionGroupHeaders).filter((a) => (a.innerHTML === addOptions.groupLabel)); - const targetGroup = targetGroups.length > 0 ? targetGroups[0].parentElement : null; - log.debug('group to add: ', { targetGroup, addOptions }); - if (targetGroup !== null) { - // add options to the group - this._addOptionsToGroup(targetGroup, addOptions); - // check if more option can be loaded - this._updateLoadMoreOption(); - } - } - async _getAdditionalOptionsFromGenePage(query, page) { - const genePage = await this._getGenePage(query, page); - this._moreGenes = genePage.more; - const genes = this._createSearchBarGroup(genePage.items, 'Genes', 'gene', 'text', 'id'); - return genes; - } - // get all available panels - async _getPanelAnnotation() { - const view = this._databaseConfig.view + '_panel'; - const panels = await RestBaseUtils.getTDPData(this._databaseConfig.database, view); - return panels; - } - // get genes of a certain page with a query value - _getGenePage(query, page) { - return RestBaseUtils.getTDPLookup('publicdb', 'gene_gene_items', { - column: 'symbol', - species: 'human', - query, - page, - limit: this._pageSize - }); - } - _clickHandler(currData, optionType, e, target) { - // get option ID - const optionId = target.dataset.optid; - // get input elemenr - const inputElement = this._container.getElementsByClassName('input-badge')[0]; - // array for the options, that should be managed - const opt = { - badgeName: currData.optionText, - optionId: currData.optionId, - data: currData - }; - // create badge for the seach bar - const sElem = this._createSearchBarBadge(opt.badgeName, opt.optionId); - let existingSelectedItem = null; // item in search field - // check if already selected - if (this._container !== null) { - // get all items from the search field with the defined optid - const badges = this._container.querySelectorAll(`.selected-option-badge[data-optid="${opt.optionId}"]`); - // go through all items - if (badges.length === 1) { - log.debug('selected badge: ', badges[0]); - existingSelectedItem = badges[0]; - } - } - // set classes for un/selected options and (not) close option conatiern depending on the Ctrl-key - if (target.classList.contains('option-selected')) { //already selected -> deselect - log.debug('remove item: ', existingSelectedItem); - if (e.ctrlKey || e.altKey) { - target.classList.remove('option-selected'); - if (existingSelectedItem !== null) { - this._container.removeChild(existingSelectedItem); - } - this._setSizeAndPositionOfOCW(); - // this._searchBarInput.focus(); - } - else { - if (existingSelectedItem !== null) { - this._container.removeChild(existingSelectedItem); - } - this._showOCW(false); // close option container - } - this._addAndRemoveClearAll(); // add/remove the clearAll button - this._setPlaceholder(); - } - else { // not selected -> select - log.debug('add item: ', sElem); - if (e.ctrlKey || e.altKey) { - target.classList.add('option-selected'); - this._container.insertBefore(sElem, inputElement); - this._setSizeAndPositionOfOCW(); - // this._searchBarInput.focus(); - } - else { - this._container.insertBefore(sElem, inputElement); - this._showOCW(false); // close option container - } - select(sElem).datum(opt.data); - existingSelectedItem = sElem; - this._addAndRemoveClearAll(); // add/remove the clearAll button - this._setPlaceholder(); - } - } - _clickHandlerDetail(opttionData, bagdeData, badgeName, e, target) { - // create data object for the badge - // const dataForBadge = deepCopy(opttionData); - // dataForBadge.optionData = {subType, type}; - const dataForBadge = bagdeData; - // get option ID - const optionId = target.dataset.optid; - // get input elemenr - const inputElement = this._container.getElementsByClassName('input-badge')[0]; - // create badge for the seach bar - const sElem = this._createSearchBarBadge(badgeName, optionId); - let existingSelectedItem = null; // item in search field - // check if already selected - if (this._container !== null) { - // get all items from the search field with the defined optid - const badges = this._container.querySelectorAll(`.selected-option-badge[data-optid="${optionId}"]`); - // go through all items - if (badges.length === 1) { - log.debug('selected badge: ', badges[0]); - existingSelectedItem = badges[0]; - } - } - const geneOption = this._optionList.querySelector(`.option[data-optid="${opttionData.optionId}"]`); - const currNoOfSubTypes = Number(geneOption.dataset.subtypes); - // set classes for un/selected options and (not) close option conatiern depending on the Ctrl-key - if (target.classList.contains('option-selected')) { //already selected -> deselect - log.debug('remove item: ', existingSelectedItem); - if (e.ctrlKey || e.altKey) { - target.classList.remove('option-selected'); - if (existingSelectedItem !== null) { - this._container.removeChild(existingSelectedItem); - } - this._setSizeAndPositionOfOCW(); - // this._searchBarInput.focus(); - } - else { - target.classList.remove('option-selected'); - if (existingSelectedItem !== null) { - this._container.removeChild(existingSelectedItem); - } - this._showOCW(false); // close option container - } - // remove gene hihglighting if no subdatatypes are selected - geneOption.dataset.subtypes = '' + (currNoOfSubTypes - 1); - if ((currNoOfSubTypes - 1) === 0) { - geneOption.classList.remove('option-selected'); - } - this._addAndRemoveClearAll(); // add/remove the clearAll button - this._setPlaceholder(); - } - else { // not selected -> select - log.debug('add item: ', sElem); - if (e.ctrlKey || e.altKey) { - target.classList.add('option-selected'); - this._container.insertBefore(sElem, inputElement); - this._setSizeAndPositionOfOCW(); - // this._searchBarInput.focus(); - } - else { - target.classList.add('option-selected'); - this._container.insertBefore(sElem, inputElement); - this._showOCW(false); // close option container - } - // add gene hihglighting if one/more subdatatypes are selected - geneOption.dataset.subtypes = '' + (currNoOfSubTypes + 1); - if ((currNoOfSubTypes + 1) > 0) { - geneOption.classList.add('option-selected'); - } - select(sElem).datum(dataForBadge); - existingSelectedItem = sElem; - this._addAndRemoveClearAll(); // add/remove the clearAll button - this._setPlaceholder(); - } - } - _mouseOverHandler(currData, node) { - this._clearDetail(); - log.debug('mouse hover over attribute: ', currData); - const detail = this._createDetail(currData, node); - this._optionDetail.appendChild(detail); - } - _createSearchBarPlaceholder() { - const elem = document.createElement('div'); - elem.className = 'search-bar-placeholder'; - elem.innerHTML = ' Select one or multiple attributes'; - elem.style.width = '300px'; - this._searchBarPlaceholder = elem; - } - // create the selected items for the search field - _createSearchBarBadge(badgeName, optionId) { - const elem = document.createElement('div'); - elem.className = 'selected-option-badge'; - elem.dataset.optid = optionId; - const label = document.createElement('div'); - label.className = 'label'; - label.innerHTML = badgeName; - label.title = badgeName; - const removeX = document.createElement('div'); - removeX.className = 'remove-x'; - removeX.innerHTML = '×'; - removeX.title = 'Remove'; - removeX.addEventListener('click', (e) => { - e.stopPropagation(); - elem.parentNode.removeChild(elem); - const optionTarget = this._optionList.querySelectorAll(`.option[data-optid="${optionId}"]`); - Array.from(optionTarget).forEach((opt) => { - opt.classList.remove('option-selected'); - }); - // options have change in search bar - this._container.dispatchEvent(new CustomEvent('optionchange')); - this._addAndRemoveClearAll(); - this._setPlaceholder(); - }); - elem.appendChild(removeX); - elem.appendChild(label); - return elem; - } - _addEventListeners() { - // click into the serach bar sets the input text field as focus - this._container.addEventListener('click', (e) => { - e.stopPropagation(); - this._searchBarInput.focus(); - }); - // for the first click into the search box - this._searchBarInput.addEventListener('focus', (e) => { - this._showOptionListAndDetail(e.target.value); - }); - // add list items for intput - this._searchBarInput.addEventListener('input', (e) => { - this._setSearchBarInputWidth(); - this._clearDetail(); - this._optionList.scrollTop = 0; - this._showOptionListAndDetail(e.target.value); - }); - // keyboard controls for the option list - this._searchBarInput.addEventListener('keydown', (e) => { - this._showOCW(true); - this._keyboardControl(e); - }); - // scroll for the pagination - this._optionList.addEventListener('scroll', (e) => { - this._scrollPagination(e); - }); - // removes the eventlistener for the document - document.removeEventListener('click', this._eventListenerCloseOptionWindow); - // adds the eventlistener for the document - document.addEventListener('click', this._eventListenerCloseOptionWindow); - } - _keyboardControl(e) { - log.debug('keyboardControl: ', { key: e.key, focusIndex: this._optionFocusIndex }); - if (e.key === 'Down' || e.key === 'ArrowDown') { - //arrow DOWN key - this._optionFocusIndex++; - this._setArrowKeyFocus(); - } - else if (e.key === 'Up' || e.key === 'ArrowUp') { - //arrow UP key - this._optionFocusIndex--; - this._setArrowKeyFocus(); - } - else if (e.key === 'Enter') { - // If the ENTER key is pressed, prevent the form from being submitted - e.preventDefault(); - // const optList = document.getElementById('optionList'); - if (this._optionFocusIndex > -1) { - const optionFocus = this._optionList.querySelector('.option.option-focus'); - if (optionFocus !== null) { - optionFocus.dispatchEvent(new MouseEvent('click', { ctrlKey: e.ctrlKey || e.altKey })); - } - } - } - else if (e.key === 'Esc' || e.key === 'Escape') { - this._showOCW(false); - } - } - // remove the option container wrapper, with css class - _closeOCWCheck(element) { - if (element !== null && !element.classList.contains('option-element') && - element !== this._optionList && element !== this._container && - element !== this._searchBarInput && element !== this._optionContainer && - element !== this._optionDetail) { - this._showOCW(false); - } - } - _setArrowKeyFocus() { - const optListDim = this._optionList.getBoundingClientRect(); - // remove focus from old - const optionFocus = this._optionList.querySelectorAll('.option.option-focus'); - if (optionFocus.length === 1) { - optionFocus[0].classList.remove('option-focus'); - } - // options - const options = this._optionList.querySelectorAll('.option:not([hidden])'); - this._optionFocusIndex = this._optionFocusIndex >= options.length ? 0 : this._optionFocusIndex; - this._optionFocusIndex = this._optionFocusIndex < 0 ? options.length - 1 : this._optionFocusIndex; - log.debug('Arrow-Key action -> new index: ', { focusIndex: this._optionFocusIndex }); - // set focus - options[this._optionFocusIndex].classList.add('option-focus'); - /*// generate detail information - clearDetail(); - const currData = persons.filter((a) => a.name === options[optionFocusIndex].dataset.name); //not really elegant - const detail = createDetail(currData[0]); - optionDetail.appendChild(detail);*/ - // set scroll offset - const optionDim = options[this._optionFocusIndex].getBoundingClientRect(); - const spaceBottom = 3 * optionDim.height; - const spaceTop = 3 * optionDim.height; - const listTop = optListDim.top; - const currOptTop = optionDim.top; - const listBot = optListDim.bottom; - const currOptBottom = optionDim.bottom; - const diffBot = listBot - currOptBottom; - const diffTop = currOptTop - listTop; - const currScrollTop = this._optionList.scrollTop; - if (diffBot < spaceBottom) { - this._optionList.scrollTop = currScrollTop + (spaceBottom - diffBot); - } - if (diffTop < spaceTop) { - this._optionList.scrollTop = currScrollTop - (spaceTop - diffTop); - } - } - async _scrollPagination(e) { - if (this._moreGenes && !this._waitForMoreOptions) { - const optListdim = this._optionList.getBoundingClientRect(); - const optdim = this._optionList.querySelector('.option') === null ? { height: 0 } : this._optionList.querySelector('.option').getBoundingClientRect(); - const optHeight = optdim.height; - // log.debug('scroll now, event: ',e,optHeight); - // log.debug('scrollTop: ', this._optionList.scrollTop, ' | scrollHeight: ',this._optionList.scrollHeight,'| optLIst height: ',optListdim.height); - if (this._optionList.scrollTop + optListdim.height > this._optionList.scrollHeight - 3 * optHeight) { - log.debug('Load now more options !'); - this._waitForMoreOptions = true; - const text = this._searchBarInput.value; - await this._addAdditionalOptions(text); - this._waitForMoreOptions = false; - } - } - } - // show/hide the options for the search field - _showOCW(show) { - if (show) { - this._optionContainerWrapper.removeAttribute('hidden'); - } - else { - this._setFocusAndScrollOfOptionList(); - this._clearDetail(); - this._clearOptionList(); - this._optionContainerWrapper.toggleAttribute('hidden', true); - this._searchBarInput.value = ''; - this._setSearchBarInputWidth(); - } - } - _setFocusAndScrollOfOptionList() { - this._optionFocusIndex = -1; - if (this._optionList) { - this._optionList.scrollTop = 0; - const optionFocus = this._optionList.querySelectorAll('.option.option-focus'); - if (optionFocus.length === 1) { - optionFocus[0].classList.remove('option-focus'); - } - } - } - // set sie and position of the option continer wrapper - _setSizeAndPositionOfOCW() { - const containerDim = this._container.getBoundingClientRect(); - this._optionContainerWrapper.style.width = containerDim.width + 'px'; - this._optionContainerWrapper.style.left = containerDim.left + 'px'; - this._optionContainerWrapper.style.top = containerDim.bottom + 'px'; - // log.debug('dimensions: ', {searchBarContainer: containerDim, optionContainer: this._optionContainerWrapper.getBoundingClientRect()}); - } - _setPlaceholder() { - const inputTextLength = this._searchBarInput.value.length; - const selectedOptionLength = this.getSelectedOptions().length; - // get current placeholder element to use as check for later - const existsPlaceholder = this._serachBarInputDiv.querySelector('.search-bar-placeholder') !== null; - if (inputTextLength === 0 && selectedOptionLength === 0) { - if (!existsPlaceholder) { - this._serachBarInputDiv.appendChild(this._searchBarPlaceholder); - } - } - else { - if (existsPlaceholder) { - this._serachBarInputDiv.removeChild(this._searchBarPlaceholder); - } - } - } - // set the width of the input element depending on text in it - _setSearchBarInputWidth() { - const textLength = this._searchBarInput.value.length; - this._searchBarInput.style.width = (textLength + 2) + 'em'; - this._setPlaceholder(); - } - // remove the detail info - _clearDetail() { - if (this._optionDetail) { - while (this._optionDetail.firstChild) { - this._optionDetail.removeChild(this._optionDetail.firstChild); - } - } - } - /** - * Removes any options, loading indicators, or notes that no attributes were found - */ - _clearOptionList() { - // options list - const optionList = select(this._optionList); - // remove the old options - optionList.selectAll('*').remove(); - } - // create the detail info for the input data - _createDetail(data, parent) { - let detail = document.createElement('div'); - if (data.optionType === 'dbc') { - log.debug(`create detail for ${data.optionId}`); - if (data.optionData && data.optionData.spAttribute) { - detail = this._createSpecialDetail(data); - } - } - else if (data.optionType === 'gene') { - detail = this._createGeneDetail(data); - } - else if (data.optionType === 'panel') { - detail = this._createPanelDetail(data); - } - detail.addEventListener('mouseenter', () => parent.style.backgroundColor = colors.searchbarHoverColor); - detail.addEventListener('mouseleave', () => parent.style.backgroundColor = ''); - return detail; - } - _createGeneDetail(data) { - const detail = document.createElement('div'); - detail.classList.add('detail-info', 'detail-gene', 'option-element'); - const badges = this._container.querySelectorAll(`.selected-option-badge`); - const badgeIds = Array.from(badges).map((a) => { - return a.dataset.optid; - }); - const optionId = data.optionId; - // label in detail container to see what gene is currently shown - select(detail) - .append('div') - .attr('class', 'detail-info-gene-label option-element') - .html(data.optionText) - .append('span') - .attr('class', 'detail-info-gene-ensemble option-element') - .html(data.optionId); - // options for gene - select(detail) - .selectAll('div.detail-info-group') - .data(this._geneDataTypes) - .enter() // go through all groups - .append('div') - .attr('class', 'detail-info-group option-element') - .each((d, i, nodes) => { - const group = select(nodes[i]); - // add group header - group.append('div') - .attr('class', 'detail-info-group-header option-element') - .html(d.name); - // go through all options for group - group.selectAll('div.detail-info-option').data(d.dataSubtypes) - .enter() - .append('div') - .attr('class', 'detail-info-option option-element') - .attr('data-optid', (d) => { return this._composeGeneDataTypeOptId(optionId, d.id); }) - .classed('option-selected', (d) => { return badgeIds.indexOf(this._composeGeneDataTypeOptId(optionId, d.id)) !== -1; }) - .html((d) => d.name) - .on('click', (event, d) => { - const badgeName = this._composeGeneDataTypeName(data.optionText, d.name); - const badgeData = deepCopy(data); - badgeData.optionData = { subType: d, type: d.dataTypeId }; - this._clickHandlerDetail(data, badgeData, badgeName, event, event.currentTarget); - // indicate an change in the options - this._container.dispatchEvent(new CustomEvent('optionchange')); - }); - }); - return detail; - } - _composeGeneDataTypeName(gene, dataType) { - return gene + ': ' + dataType; - } - _composeGeneDataTypeOptId(geneId, dataTypeId) { - return geneId + ':' + dataTypeId; - } - _createPanelDetail(option) { - const detail = document.createElement('div'); - detail.classList.add('detail-info', 'detail-panel', 'option-element'); - const detailText = document.createElement('p'); - detailText.classList.add('option-element'); - detail.appendChild(detailText); - detailText.innerHTML = - 'ID: ' + option.optionId + '
' + - 'Description: ' + option.optionData.description; - return detail; - } - _createSpecialDetail(option) { - log.debug('special detail data: ', option); - const detail = document.createElement('div'); - detail.classList.add('detail-info', 'detail-special', 'option-element'); - // const treatment = SATreatment; - const spAttr = option.optionData.spAttribute; - log.debug('creating new detail for treatment'); - const badges = this._container.querySelectorAll(`.selected-option-badge`); - const badgeIds = Array.from(badges).map((a) => { - return a.dataset.optid; - }); - const optionId = option.optionId; - // label in detail container to see what gene is currently shown - select(detail).append('div') - .attr('class', 'detail-info-label option-element') - .html(option.optionText); - // text for the attribute - select(detail).append('div') - .attr('class', 'detail-info-text option-element') - .html(`Treatment consists of a list of REGIMENs, each has one or multiple AGENTs`); // TODO #427 move into spAttribtue class - select(detail).selectAll('div.detail-info-option').data(spAttr.options) - .enter() - .append('div') - .attr('class', 'detail-info-option option-element') - .attr('data-optid', (d) => d.id) - .classed('option-selected', (d) => { return badgeIds.indexOf(d.id) !== -1; }) - .html((d) => d.name) - .on('click', (event, d) => { - const badgeName = `${option.optionText}:${d.name}`; - const badgeData = deepCopy(option); - badgeData.optionData = { sAttrId: option.optionId, attrOption: d.id, spAttribute: spAttr, serverColumn: option.optionData.serverColumn }; - this._clickHandlerDetail(option, badgeData, badgeName, event, event.currentTarget); - // this._clickHandlerDetail(data as IScoreOption, (d as any).dataTypeId, d, badgeName, event as MouseEvent, nodes[i] as HTMLElement); - // indicate an change in the options - log.debug('click spAttribute option: ', { oprtionId: option.optionId, badgeData }); - this._container.dispatchEvent(new CustomEvent('optionchange')); - }); - return detail; - } - _createDBColumnDetail(option) { - const detail = document.createElement('div'); - detail.classList.add('detail-info', 'detail-dbc', 'option-element'); - const detailText = document.createElement('p'); - detailText.classList.add('option-element'); - detail.appendChild(detailText); - detailText.innerHTML = - 'Column: ' + option.optionData.serverColumn.column + '
' + - 'Label: ' + niceName(option.optionText) + '
' + - 'Type: ' + option.optionType + '
' + - 'Text: ' + option.optionText; - return detail; - } - // remove all highlihgting of the highlighted options in the optionList - _removeAllOptionHighlighting() { - if (this._optionList) { - const options = this._optionList.querySelectorAll('.option-selected'); - for (const opt of Array.from(options)) { - opt.classList.remove('option-selected'); - } - } - } - //remove the selected items in the search field - _removeAllSelectedItems() { - if (this._container) { - const badges = this._container.querySelectorAll('.selected-option-badge'); - if (badges !== null) { - for (const bdg of Array.from(badges)) { - this._container.removeChild(bdg); - this._removeAllOptionHighlighting(); - } - } - this._setPlaceholder(); - } - } - // add or remove the clear all button, if selected exist or not - _addAndRemoveClearAll() { - const badges = this._container.querySelectorAll('.selected-option-badge'); - //log.debug('items in searchBarContainer', items); - if (badges.length > 0) { - const clearAll = this._container.querySelectorAll('.clear-all'); - if (clearAll.length === 0) { - const divClearAll = document.createElement('div'); - divClearAll.className = 'clear-all'; - divClearAll.title = 'Remove all'; - divClearAll.innerHTML = ''; - divClearAll.addEventListener('click', (e) => { - e.stopPropagation(); - this._removeAllSelectedItems(); - // options have changed in search bar - this._container.dispatchEvent(new CustomEvent('optionchange')); - this._container.removeChild(divClearAll); - }); - this._container.insertBefore(divClearAll, this._container.firstChild); - } - } - else if (badges.length === 0) { - const clearAll = this._container.querySelectorAll('.clear-all'); - if (clearAll.length === 1) { - this._container.removeChild(clearAll[0]); - } - } - } - getSearchBarHTMLDivElement() { - return this._container; - } - getSelectedOptions() { - const badges = select(this._container).selectAll('.selected-option-badge'); - const badgesData = badges.data(); - return badgesData; - } - removeAllSelectedOptions() { - this._removeAllSelectedItems(); - this._addAndRemoveClearAll(); - this._setPlaceholder(); - } -} -//# sourceMappingURL=SearchBar.js.map \ No newline at end of file diff --git a/dist/Taskview/SearchBar.js.map b/dist/Taskview/SearchBar.js.map deleted file mode 100644 index 79900e0..0000000 --- a/dist/Taskview/SearchBar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../src/Taskview/SearchBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,EAA4B,aAAa,EAAC,MAAM,UAAU,CAAC;AAClE,OAAO,EAAC,SAAS,EAAE,SAAS,EAAsC,MAAM,cAAc,CAAC;AACvF,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAC,qBAAqB,EAAoB,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAC,QAAQ,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,eAAe,EAAE,CAAC;IACzB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/SearchColumn.d.ts b/dist/Taskview/SearchColumn.d.ts deleted file mode 100644 index b0d2c49..0000000 --- a/dist/Taskview/SearchColumn.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Cohort } from '../Cohort'; -import { ATask } from './tasks/ATask'; -import Taskview from './Taskview'; -export default class SearchColumn { - private referenceCht; - private taskview; - private $searchColumn; - private $taskContainer; - private $tasks; - private searchBar; - private refCohort; - private $ColumnHeader; - activeTask: ATask; - constructor($container: HTMLDivElement, referenceCht: Cohort, taskview: Taskview); - clear(): void; - private getSelectedAttributes; - destroy(): void; - private _setupSearchBar; - private setSearchBarVisibility; - updateTasks(): void; - private updateTaskButtonState; - private taskCloseListener; - showTask(task: ATask): void; - closeTask(task: any): void; - private enableAddButtons; -} diff --git a/dist/Taskview/SearchColumn.js b/dist/Taskview/SearchColumn.js deleted file mode 100644 index 67d8060..0000000 --- a/dist/Taskview/SearchColumn.js +++ /dev/null @@ -1,134 +0,0 @@ -import { select } from 'd3v7'; -import * as $ from 'jquery'; -import tippy from 'tippy.js'; -import { toAttribute } from '../data/Attribute'; -import searchHtml from '../templates/SearchColumn.html'; // webpack imports html to variable -import { log } from '../util'; -import { SearchBar } from './SearchBar'; -import { TASK_CLOSE_EVENT_TYPE } from './tasks/ATask'; -import { TASKLIST } from './tasks/TaskList'; -export default class SearchColumn { - constructor($container, referenceCht, taskview) { - this.referenceCht = referenceCht; - this.taskview = taskview; - this.taskCloseListener = (ev) => this.closeTask(ev.detail.task); - $container.insertAdjacentHTML('beforeend', searchHtml); //faster than innerHTML (https://developer.mozilla.org/de/docs/Web/API/Element/insertAdjacentHTML) - this.$searchColumn = $container.firstChild; - this.$tasks = select(this.$searchColumn).select('.task-selector').node(); - this.$taskContainer = select(this.$searchColumn).select('.task-container').node(); - this.$ColumnHeader = select(this.$searchColumn).select('.header').node(); - $container.querySelectorAll('[title]').forEach((elem) => tippy(elem, { - content(elm) { - const title = elm.getAttribute('title'); - elm.removeAttribute('title'); - return title; - }, - })); - this.refCohort = referenceCht; - this._setupSearchBar(referenceCht); // create the search bar and add the its options - this.updateTaskButtonState(); - this.enableAddButtons(true); - log.debug('Created search column'); - } - clear() { - select(this.$searchColumn).select('.task.selected').classed('selected', false); //deselect all others - this.searchBar.removeAllSelectedOptions(); - } - getSelectedAttributes() { - const options = this.searchBar ? this.searchBar.getSelectedOptions() : []; - return options.map((opt) => toAttribute(opt, this.refCohort.database, this.refCohort.view)); // TODO replace refCohort with some global config - } - destroy() { - log.debug('Destroy'); - this.enableAddButtons(false); - // this.searchBar.destroy(); // TODO if necessary - this.$searchColumn.remove(); - } - async _setupSearchBar(referenceCht) { - this.searchBar = new SearchBar(select(this.$searchColumn).select('.search-bar').node(), referenceCht.database, referenceCht.view); - this.setSearchBarVisibility(false); // hide searchBar -> set display: none - this.searchBar.getSearchBarHTMLDivElement().addEventListener('optionchange', async (e) => { - this.updateTasks(); - }); - } - setSearchBarVisibility(show) { - if (show) { - this.searchBar.getSearchBarHTMLDivElement().removeAttribute('hidden'); - } - else { - this.searchBar.getSearchBarHTMLDivElement().toggleAttribute('hidden', true); - } - } - updateTasks() { - this.updateTaskButtonState(); - if (this.activeTask) { - this.activeTask.show(this.$ColumnHeader, this.$taskContainer, this.getSelectedAttributes(), this.taskview.getInputCohorts()); - } - } - updateTaskButtonState() { - const attributes = this.getSelectedAttributes(); - const cohorts = this.taskview.getInputCohorts(); - for (const task of TASKLIST) { - const enable = task.supports(attributes, cohorts); - const taskBtn = select(this.$tasks).select(`.${task.id}`).classed('disabled', !enable).datum(task); - if (enable) { - taskBtn.on('click', (event, t) => this.showTask(t)); - } - else { - taskBtn.on('click', null); - } - } - } - showTask(task) { - this.$tasks.classList.add('minimize'); - this.activeTask = task; - setTimeout(() => { - this.$tasks.hidden = true; - this.setSearchBarVisibility(task.showSearchBar()); // set visibility of searchBar based on the task - task.show(this.$ColumnHeader, this.$taskContainer, this.getSelectedAttributes(), this.taskview.getInputCohorts()); - }, 200); // 200 = transform transition time in css - this.taskview.showOutput(task.hasOutput); - this.$ColumnHeader.addEventListener(TASK_CLOSE_EVENT_TYPE, this.taskCloseListener); - } - closeTask(task) { - task.close(); - this.setSearchBarVisibility(false); // hide searchBar -> set display: none - this.$tasks.hidden = false; - this.activeTask = null; - this.$tasks.classList.remove('minimize'); - this.taskview.showOutput(true); - this.$ColumnHeader.removeEventListener(TASK_CLOSE_EVENT_TYPE, this.taskCloseListener); - } - enableAddButtons(enable) { - if (enable) { - // add eventListeners - const that = this; - select(this.$searchColumn).selectAll('div.action.add').on('click', function () { - const button = this; - const attributes = that.getSelectedAttributes(); - if (attributes.length > 0) { - for (const attr of attributes) { - if (button.classList.contains('add-left')) { - that.taskview.addAttributeColumnForInput(attr, true); - } - else { - that.taskview.addAttributeColumnForOutput(attr, true); - } - } - } - else { - button.classList.add('shaking'); - setTimeout(() => button.classList.remove('shaking'), 500); - // @ts-ignore - $(button).popover('show'); - // @ts-ignore - setTimeout(() => $(button).popover('hide'), 5000); - } - }); - } - else { - select(this.$searchColumn).selectAll('div.action.add').on('click', null); // remove addleft/addright - } - } -} -//# sourceMappingURL=SearchColumn.js.map \ No newline at end of file diff --git a/dist/Taskview/SearchColumn.js.map b/dist/Taskview/SearchColumn.js.map deleted file mode 100644 index 5d69051..0000000 --- a/dist/Taskview/SearchColumn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SearchColumn.js","sourceRoot":"","sources":["../../src/Taskview/SearchColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,OAAO,EAAa,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,UAAU,MAAM,gCAAgC,CAAC,CAAC,mCAAmC;AAC5F,OAAO,EAA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,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;iBACnD;YACH,CAAC,CAAC,CAAC;SACJ;aAAM;YACL,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,0BAA0B;SACrG;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/Taskview.d.ts b/dist/Taskview/Taskview.d.ts deleted file mode 100644 index 6d49d90..0000000 --- a/dist/Taskview/Taskview.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Cohort } from '../Cohort'; -import { ITaskParams } from '../CohortInterfaces'; -import { IAttribute } from '../data/Attribute'; -import { ColumnSortEvent, FilterEvent, SplitEvent } from '../utilCustomEvents'; -export default class Taskview { - readonly $node: HTMLDivElement; - private reference; - destroy(): void; - clearOutput(): void; - private input; - private search; - private output; - private scrollLink; - private taskParams; - private taskAttributes; - private filterListener; - private splitListener; - private confirmListener; - private columnSortListener; - constructor($node: HTMLDivElement, reference: Cohort); - handleColumnSortEvent(ev: ColumnSortEvent): Promise; - private sortCohorts; - private sortWithDbIdArray; - private sortLabelAlpha; - private sortSizeNum; - private sortCohortsBySize; - orderCohorts(): void; - confirmTask(): void; - setInputCohorts(cohorts: Cohort[]): void; - updateInput(): void; - getInputCohorts(): Cohort[]; - getOutputCohorts(): Cohort[]; - setOutputCohorts(cohorts: Cohort[]): void; - setReference(reference: Cohort): void; - addMultipleAttributeColumns(dArray: IAttribute[], allowDuplicates?: boolean, pinned?: boolean): void; - addAttributeColumn(d: IAttribute, allowDuplicates?: boolean, pinned?: boolean): void; - addAttributeColumnForInput(d: IAttribute, allowDuplicates?: boolean, pinned?: boolean): void; - addAttributeColumnForOutput(d: IAttribute, allowDuplicates?: boolean, pinned?: boolean): void; - removeAttributeColumns(): void; - getTaskParams(): ITaskParams[]; - getTaskAttributes(): IAttribute[]; - private currentEvent; - handleFilterEvent(ev: FilterEvent | SplitEvent): Promise; - showOutput(show: boolean): void; -} -export declare class InputCohort extends Cohort { - outputCohorts: Cohort[]; -} -export declare class OutputCohort extends Cohort { - isLastOutputCohort: boolean; - isFirstOutputCohort: boolean; -} diff --git a/dist/Taskview/Taskview.js b/dist/Taskview/Taskview.js deleted file mode 100644 index f2b5a24..0000000 --- a/dist/Taskview/Taskview.js +++ /dev/null @@ -1,542 +0,0 @@ -import { Cohort, EMPTY_COHORT_ID, getEmptyCohort, getLoaderCohort, LOADER_COHORT_ID } from '../Cohort'; -import { TaskType } from '../CohortInterfaces'; -import { RectCohortRep } from '../CohortRepresentations'; -import { multiAttributeFilter } from '../data/Attribute'; -import { RectangleLayout } from '../Overview/OverviewLayout'; -import { CohortColorSchema, log, removeFromArray, ScrollLinker, SortType } from '../util'; -import { CohortSelectionEvent, COHORT_SELECTION_EVENT_TYPE, COLUMN_CLOSE_EVENT_TYPE, COLUMN_SORT_EVENT_TYPE, ConfirmOutputEvent, ConfirmTaskEvent, CONFIRM_OUTPUT_EVENT_TYPE, FilterEvent, FILTER_EVENT_TYPE, PreviewChangeEvent, SPLIT_EVENT_TYPE } from '../utilCustomEvents'; -import AddColumnColumn, { EmptyColumn } from './columns/AColumn'; -import AttributeColumn from './columns/AttributeColumn'; -import { InputCohortColumn, OutputCohortColumn } from './columns/CohortColumn'; -import SearchColumn from './SearchColumn'; -export default class Taskview { - constructor($node, reference) { - this.$node = $node; - this.reference = reference; - this.filterListener = (ev) => this.handleFilterEvent(ev); - this.splitListener = (ev) => this.handleFilterEvent(ev); - this.confirmListener = (ev) => this.confirmTask(); // event data (cohorts) currently ignored - this.columnSortListener = (ev) => this.handleColumnSortEvent(ev); - this.currentEvent = 0; - this.$node.classList.add('task-view'); - const inNode = document.createElement('div'); - this.input = new TaskviewInput(inNode, this.reference, this); - this.$node.appendChild(inNode); - const searchNode = document.createElement('div'); - this.search = new SearchColumn(searchNode, this.reference, this); - this.$node.appendChild(searchNode); - const outNode = document.createElement('div'); - this.output = new TaskviewOutput(outNode, this.reference, this); - this.$node.appendChild(outNode); - this.scrollLink = new ScrollLinker(inNode.querySelector('div.task-view-scroll-wrapper'), outNode.querySelector('div.task-view-scroll-wrapper')); - // Listen to cohort creation events fired by histograms in the input part - this.$node.addEventListener(FILTER_EVENT_TYPE, this.filterListener); - this.$node.addEventListener(SPLIT_EVENT_TYPE, this.splitListener); - // confirmation event that adds the cohrots to cohort graph - this.$node.addEventListener(CONFIRM_OUTPUT_EVENT_TYPE, this.confirmListener); - // sort event that sorts the input cohorts - this.$node.addEventListener(COLUMN_SORT_EVENT_TYPE, this.columnSortListener); - } - destroy() { - this.$node.removeEventListener(FILTER_EVENT_TYPE, this.filterListener); - this.$node.removeEventListener(SPLIT_EVENT_TYPE, this.splitListener); - this.$node.removeEventListener(CONFIRM_OUTPUT_EVENT_TYPE, this.confirmListener); - this.scrollLink.destroy(); - this.search.destroy(); - this.input.destroy(); - this.output.destroy(); - this.$node.classList.remove('task-view'); - while (this.$node.hasChildNodes()) { - this.$node.removeChild(this.$node.lastChild); - } - } - clearOutput() { - this.output.clear(); - this.input.update(); - } - async handleColumnSortEvent(ev) { - const sortDetail = ev.detail; - const inputChts = this.getInputCohorts(); - if (sortDetail.sortInputChts) { - // sort input cohort - const defaultOrder = this.input.cohortOrder; - await this.sortCohorts(sortDetail.type, inputChts, defaultOrder); - } - else { - // sort output cohort for each input cohort - for (const inCht of inputChts) { - const currOutChts = inCht.outputCohorts; - const outputOrder = this.output.cohortOrders.filter((order) => order.inputCht === inCht.dbId); - const defaultOrder = outputOrder.length === 1 ? outputOrder[0].cohorts : currOutChts.map((cht) => cht.dbId); - await this.sortCohorts(sortDetail.type, currOutChts, defaultOrder); - const sizeOutCht = currOutChts.length; - // define the first and last cohort - for (let i = 0; i < sizeOutCht; i++) { - const currCht = currOutChts[i]; - currCht.isFirstOutputCohort = false; - currCht.isLastOutputCohort = false; - // first cohort - if (i === 0) { - currCht.isFirstOutputCohort = true; - } - // last cohort - if (i === (sizeOutCht - 1)) { - currCht.isLastOutputCohort = true; - } - } - } - } - this.orderCohorts(); - } - async sortCohorts(type, cohortsToSort, defaultOrder) { - if (type === SortType.Default) { // sort by default - const sortingArray = defaultOrder; - cohortsToSort.sort((a, b) => this.sortWithDbIdArray(a.dbId, b.dbId, sortingArray)); // default - } - else if (type === SortType.Alpha_AZ) { // sort by label name - cohortsToSort.sort((a, b) => this.sortLabelAlpha(a, b)); // A -> Z - } - else if (type === SortType.Alpha_ZA) { - cohortsToSort.sort((a, b) => this.sortLabelAlpha(b, a)); // Z -> A - } - else if (type === SortType.Size_19) { // sort by cohort size - await this.sortCohortsBySize(false, cohortsToSort); - } - else if (type === SortType.Size_91) { // sort by cohort size - await this.sortCohortsBySize(true, cohortsToSort); - } - } - sortWithDbIdArray(a, b, sortingArr) { - return sortingArr.indexOf(a) - sortingArr.indexOf(b); - } - sortLabelAlpha(a, b) { - if (a.label < b.label) { - return -1; - } - if (a.label > b.label) { - return 1; - } - return 0; - } - sortSizeNum(a, b) { - if (a.size > b.size) { - return -1; - } - if (a.size < b.size) { - return 1; - } - return 0; - } - async sortCohortsBySize(descending, cohortsToSort) { - const chtSizes = []; - for (const cht of cohortsToSort) { - const currSize = await cht.size; - chtSizes.push({ id: cht.id, size: currSize }); - } - if (descending) { - chtSizes.sort((a, b) => this.sortSizeNum(a, b)); // 9 -> 1 - } - else { - chtSizes.sort((a, b) => this.sortSizeNum(b, a)); // 1 -> 9 - } - cohortsToSort.sort(function (a, b) { - const aId = a.id; - const bId = b.id; - const chtSizesIds = chtSizes.map((elem) => elem.id); - if (chtSizesIds.indexOf(aId) > chtSizesIds.indexOf(bId)) { - return 1; - } - if (chtSizesIds.indexOf(aId) < chtSizesIds.indexOf(bId)) { - return -1; - } - return 0; - }); - } - orderCohorts() { - // order input side - const inputColumns = this.input.columns; - inputColumns.forEach((element) => element.orderCohorts(this.getInputCohorts())); - // order input side - const outputColumns = this.output.columns; - const outChts = [].concat(...this.input.cohorts.map((cht) => cht.outputCohorts)); - outputColumns.forEach((element) => element.orderCohorts(outChts)); - } - confirmTask() { - this.search.clear(); - this.removeAttributeColumns(); - this.$node.dispatchEvent(new ConfirmTaskEvent(this.taskParams, this.taskAttributes)); - } - setInputCohorts(cohorts) { - this.input.setCohorts(cohorts); - this.search.updateTasks(); - const outChts = [].concat(...this.input.cohorts.map((cht) => cht.outputCohorts)); - this.setOutputCohorts(outChts); - } - updateInput() { - this.input.update(); //adjust height after removing output cohorts - } - getInputCohorts() { - return this.input.cohorts; - } - getOutputCohorts() { - return this.output ? this.output.cohorts : []; - } - setOutputCohorts(cohorts) { - this.output.setCohorts(cohorts); - } - setReference(reference) { - this.reference = reference; - } - addMultipleAttributeColumns(dArray, allowDuplicates = false, pinned = false) { - dArray.forEach((d) => this.addAttributeColumn(d, allowDuplicates, pinned)); - } - addAttributeColumn(d, allowDuplicates = false, pinned = false) { - if (this.reference.idColumn.column !== d.id) { - this.addAttributeColumnForInput(d, allowDuplicates, pinned); - this.addAttributeColumnForOutput(d, allowDuplicates, pinned); - } - } - addAttributeColumnForInput(d, allowDuplicates = false, pinned = false) { - this.input.addAttributeColumn(d, allowDuplicates, pinned); // function is overwritten in and does not need the onInputCohortSide = true variable - } - addAttributeColumnForOutput(d, allowDuplicates = false, pinned = false) { - this.output.addAttributeColumn(d, allowDuplicates, false, false, pinned); - } - removeAttributeColumns() { - this.input.getUnpinnedAttributeColumns().forEach((col) => col.close()); - this.output.getUnpinnedAttributeColumns().forEach((col) => col.close()); - } - getTaskParams() { - return this.taskParams; - } - getTaskAttributes() { - return this.taskAttributes; - } - async handleFilterEvent(ev) { - const currentEv = ++this.currentEvent; - let outputCohorts = []; //Stores the output cohorts in correct order, will replace the array currently used - const taskWithSelectedOutput = []; - this.taskParams = []; - this.taskAttributes = ev.detail.desc[0].filter.map((filter) => filter.attr); - for (const inCht of this.input.cohorts) { - const chtBins = ev.detail.desc.filter((bin) => inCht.id === bin.cohort.id); - const outChts = new Array(Math.max(chtBins.length, 1)).fill(null).map(() => getLoaderCohort(inCht)); - outChts[outChts.length - 1].isLastOutputCohort = true; - outChts[0].isFirstOutputCohort = true; - inCht.outputCohorts = outChts; - outputCohorts.push(...outChts); - } - // Update the input cohorts - this.updateInput(); - // Add the new cohorts to the output side - this.setOutputCohorts(outputCohorts); - // await DebugTools.sleep(1500); - outputCohorts = []; - // For each input cohort, create a new output cohort - for (const cht of this.input.cohorts) { - log.debug('filter/split event: ', ev); - cht.outputCohorts = []; - const chtBins = ev.detail.desc.filter((bin) => cht.id === bin.cohort.id); - if (chtBins.length > 0) { - const chtPromises = []; - for (const bin of chtBins) { - chtPromises.push(multiAttributeFilter(cht, bin.filter)); - } - const newChts = await Promise.all(chtPromises); - if (currentEv !== this.currentEvent) { - return; - } - const chtSizes = []; - newChts.sort((a, b) => this.sortLabelAlpha(a, b)); // sort output cohorts: A -> Z - for (const newOutCht of newChts) { - // Set representation of new cohort - const layout = new RectangleLayout(); - newOutCht.representation = new RectCohortRep(newOutCht, layout.rowHeight, layout.cohortWidth); - const sizePromises = [newOutCht.size, this.reference.size]; - chtSizes.push(...sizePromises); - Promise.all(sizePromises).then(([newSize, refSize]) => { - newOutCht.representation.setSize(newSize, refSize); - if (newSize > 0) { - newOutCht.selected = true; - } - }); - newOutCht.setCohortParents([cht]); - cht.outputCohorts.push(newOutCht); // Add new output cohort to existing cohorts - } - await Promise.all(chtSizes); // wait for the cohort sizes to properly display the representation - } - else { - cht.outputCohorts.push(getEmptyCohort(cht)); - } - //the async/time instensive stuff is done now, check if we should continue: - if (currentEv !== this.currentEvent) { - return; - } - cht.outputCohorts[cht.outputCohorts.length - 1].isLastOutputCohort = true; - cht.outputCohorts[0].isFirstOutputCohort = true; - outputCohorts.push(...cht.outputCohorts); // add all output cohorts of current input cohorts (ensures correct order in output side) - if (chtBins.length > 0) { - // create current task params - const currTaskParam = { - inputCohorts: [cht], - outputCohorts: cht.outputCohorts, - type: ev instanceof FilterEvent ? TaskType.Filter : TaskType.Split, - label: ev.detail.desc[0].filter.map((filter) => filter.attr.label).join(', ') - }; - // save all curertn possibel task params - this.taskParams.push(currTaskParam); - // check if a task generates selected output cohorts - if (cht.outputCohorts.filter((elem) => elem.selected === true).length >= 1) { - // initially onyl selected output cohorts will be shown in overview - taskWithSelectedOutput.push(currTaskParam); - } - } - } - // Update the input cohorts - this.updateInput(); - // show the preview for the current task - this.$node.dispatchEvent(new PreviewChangeEvent(taskWithSelectedOutput, this.taskAttributes)); - // Add the new cohorts to the output side - this.setOutputCohorts(outputCohorts); - ev.detail.desc[0].filter.forEach((filter) => this.addAttributeColumn(filter.attr)); - } - showOutput(show) { - const hide = !show; - // this.output.$node.style.display = hide ? 'none' : 'flex'; // setting hidden does not work with flexbox - this.$node.classList.toggle('no-output', hide); - } -} -class TaskviewTable { - constructor($wrapper) { - this.$wrapper = $wrapper; - this.columns = []; - this.cohorts = []; - this.$wrapper.classList.add('task-view-table-button-wrapper'); - const tableWrapper = document.createElement('div'); - tableWrapper.classList.add('task-view-scroll-wrapper'); // this div can only be around half the height of the browser (which would lead to column border ending to early for example) --> therefore this is a container holding scrollbars - this.$wrapper.appendChild(tableWrapper); - this.$node = document.createElement('div'); //this div will contain the columns of our table that can be higher than half of the viewport - this.$node.classList.add('task-view-table'); - tableWrapper.appendChild(this.$node); - $wrapper.appendChild(tableWrapper); - $wrapper.insertAdjacentHTML('beforeend', ` - - `); - this.$floatingBtns = $wrapper.querySelector('div.floating-confirm'); - $wrapper.querySelector('div.floating-confirm button.clearBtn').addEventListener('click', () => this.clear()); - this.$node.addEventListener(COLUMN_CLOSE_EVENT_TYPE, (ev) => this.removeColumn(ev.detail.column)); //arrow function to keep "this" working in eventhandler - } - destroy() { - this.$node.addEventListener(COLUMN_CLOSE_EVENT_TYPE, null); - this.$node.remove(); - } - update() { - this.setCohorts(this.cohorts); - } - setCohorts(cohorts) { - this.cohorts = cohorts; - for (const column of this.columns) { - column.setCohorts(cohorts); - } - this.$floatingBtns.hidden = cohorts.filter((cht) => cht.id !== LOADER_COHORT_ID && cht.id !== EMPTY_COHORT_ID).length === 0; - } - addCohort(cht) { - this.cohorts.push(cht); - this.setCohorts(this.cohorts); - } - getAttributeColumns() { - const attCol = []; - for (const ac of this.columns) { - if (ac instanceof AttributeColumn) { - attCol.push(ac); - } - } - return attCol; - } - getUnpinnedAttributeColumns() { - const attCol = []; - for (const ac of this.columns) { - if (ac instanceof AttributeColumn) { - if (!ac.pinned) { - attCol.push(ac); - } - } - } - return attCol; - } - addAttributeColumn(attr, allowDuplicates = false, onInputCohortSide = true, color = false, pinned = false) { - if (allowDuplicates || !this.columns.find((column) => column instanceof AttributeColumn && column.attribute.dataKey === attr.dataKey)) { - // if duplicates are allowed or the column wasn't added yet - const newCol = new AttributeColumn(attr, this.$node, onInputCohortSide, color, pinned); - newCol.setCohorts(this.cohorts); - this.columns.unshift(newCol); // add columnt as first element - // only adding the new column as first element doesn't reorder column HTML elements - // because the new one gets added at the end -> set order attribute to define order of columns - let orderCnt = 0; - this.columns.map((elem) => { - if (elem instanceof AttributeColumn) { - elem.setOrder(orderCnt); - orderCnt++; - } - }); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became narrower - } - } - removeColumn(col) { - removeFromArray(this.columns, col); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became wider - } - clear() { - // this.columns.filter((col) => !(col instanceof OutputCohortColumn || col instanceof EmptyColumn)).forEach((col) => col.close()); //close all but default columns - this.setCohorts([]); - } -} -class TaskviewInput extends TaskviewTable { - constructor($wrapper, reference, taskview) { - super($wrapper); - this.taskview = taskview; - this.usedColorsForCohorts = CohortColorSchema.COLOR_SCHEME.map((elem) => { return { color: elem, cohorts: [] }; }); - this.$node.classList.add('input'); - // this.columns.push(new NumberColumn(this.$node)); - this.inputCohortCol = new InputCohortColumn(this.$node); - this.columns.push(new AddColumnColumn(this.$node, taskview, reference.database, reference.view)); - this.columns.push(this.inputCohortCol); - // this.columns.push(new PrevalenceColumn(reference, this.$node)); - this.columns.push(new EmptyColumn(this.$node)); - this.clearColorCohorts(); - } - clearColorCohorts() { - // setup color options - this.usedColorsForCohorts = CohortColorSchema.COLOR_SCHEME.map((elem) => { return { color: elem, cohorts: [] }; }); - this.maxColors = this.usedColorsForCohorts.length; - } - setCohorts(cohorts) { - this.clearColorCohorts(); - cohorts.filter((cht) => !cht.outputCohorts).forEach((cht) => cht.outputCohorts = []); // handle undefined outputCohort array - // set selction order of cohorts - this.cohortOrder = cohorts.map((cht) => cht.dbId); - this.inputCohortCol.setDefaultSort(); - // get all cohorts that have already a color - cohorts.filter((cht) => cht.colorTaskView).forEach((cht) => { - const colorIndex = this.usedColorsForCohorts.map((a) => a.color).indexOf(cht.colorTaskView); - if (colorIndex !== -1) { - this.usedColorsForCohorts[colorIndex].cohorts.push(cht.id); - } - }); - // assign color to cohort without one - const maxCohortPerColor = Math.ceil(cohorts.length / this.maxColors); - cohorts.forEach((elem, i) => { - const colorIndex = i % this.maxColors; // circle through all colors - // check if color exists - if (elem.colorTaskView === null) { - // check if the color for the current cohort index is available - if (this.usedColorsForCohorts[colorIndex].cohorts.length < maxCohortPerColor) { - this.usedColorsForCohorts[colorIndex].cohorts.push(elem.id); // add cohort to the cohort array for the color - elem.colorTaskView = this.usedColorsForCohorts[colorIndex].color; // set color for the cohort - } - else { - // go through all possible color and use the first one not used - for (const cc of this.usedColorsForCohorts) { - if (cc.cohorts.length < maxCohortPerColor) { - cc.cohorts.push(elem.id); // add cohort to the cohort array for the color - elem.colorTaskView = cc.color; // set color for the cohort - break; - } - } - } - } - }); - super.setCohorts(cohorts); - } - addAttributeColumn(attr, allowDuplicates = false, pinned = false) { - super.addAttributeColumn(attr, allowDuplicates, true, true, pinned); - } - clear() { - this.cohorts.slice() // duplicate because the cohort array will change through the event - .forEach((cht) => this.$node.dispatchEvent(new CohortSelectionEvent(cht))); //deselect each - super.clear(); - } -} -class TaskviewOutput extends TaskviewTable { - constructor($wrapper, reference, taskview) { - super($wrapper); - this.taskview = taskview; - $wrapper.classList.add('output'); - this.$floatingBtns.insertAdjacentHTML(`beforeend`, ` - - `); - $wrapper.querySelector('div.floating-confirm button.confirmBtn').addEventListener('click', (clickEv) => clickEv.target.dispatchEvent(new ConfirmOutputEvent(this.cohorts))); - this.columns.push(new EmptyColumn(this.$node)); // same flex order as outputcohort column -> ordered by position in DOM - this.columns.push(new AddColumnColumn(this.$node, taskview, reference.database, reference.view, false)); - this.outputCohortCol = new OutputCohortColumn(this.$node); - this.columns.push(this.outputCohortCol); - this.$node.addEventListener(COHORT_SELECTION_EVENT_TYPE, (ev) => { - ev.stopPropagation(); // prevent this ev from going to the global selection handler that sets the taskview inputs - ev.detail.cohort.selected = !ev.detail.cohort.selected; - const updatedTaskParams = []; - // only add the output cohorts that are selected to each of the task parameters - for (const tsk of this.taskview.getTaskParams()) { - const selectedOutputCohorts = tsk.outputCohorts.filter((a) => a.selected === true); - // check if task has output cohorts - if (selectedOutputCohorts.length > 0) { - updatedTaskParams.push({ - inputCohorts: tsk.inputCohorts, - outputCohorts: selectedOutputCohorts, - type: tsk.type, - label: tsk.label - }); - } - } - // update the preview to only show the selected output cohorts - this.$node.dispatchEvent(new PreviewChangeEvent(updatedTaskParams, this.taskview.getTaskAttributes())); - this.update(); - }); - } - clear() { - super.clear(); - this.taskview.getInputCohorts().forEach((cht) => cht.outputCohorts = []); - this.taskview.updateInput(); - // remove the preview by setting the taskParams to an empty array - this.$node.dispatchEvent(new PreviewChangeEvent([], null)); - } - setCohorts(cohorts) { - super.setCohorts(cohorts); - // set order of output cohorts for each input cohort - this.cohortOrders = []; - for (const cht of cohorts) { - const existingParents = this.cohortOrders.map((o) => o.inputCht); - const parentdbID = cht.getCohortParents()[0].dbId; - const index = existingParents.indexOf(parentdbID); - if (index === -1) { - this.cohortOrders.push({ - inputCht: parentdbID, - cohorts: [cht.dbId] - }); - } - else { - this.cohortOrders[index].cohorts.push(cht.dbId); - } - } - this.outputCohortCol.setDefaultSort(); - } -} -export class InputCohort extends Cohort { - constructor() { - super(...arguments); - this.outputCohorts = []; - } -} -export class OutputCohort extends Cohort { - constructor() { - super(...arguments); - this.isLastOutputCohort = false; // used to add a paddding between outputcohorts of different input cohorts - this.isFirstOutputCohort = false; // used to add a paddding between outputcohorts of different input cohorts - } -} -//# sourceMappingURL=Taskview.js.map \ No newline at end of file diff --git a/dist/Taskview/Taskview.js.map b/dist/Taskview/Taskview.js.map deleted file mode 100644 index 6ef8f5c..0000000 --- a/dist/Taskview/Taskview.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Taskview.js","sourceRoot":"","sources":["../../src/Taskview/Taskview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,WAAW,CAAC;AACrG,OAAO,EAAc,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAa,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAC,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAE,2BAA2B,EAAqC,uBAAuB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAc,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAC7T,OAAO,eAAe,EAAE,EAAuB,WAAW,EAAC,MAAM,mBAAmB,CAAC;AACrF,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAC,iBAAiB,EAAE,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAC7E,OAAO,YAAY,MAAM,gBAAgB,CAA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/AColumn.d.ts b/dist/Taskview/columns/AColumn.d.ts deleted file mode 100644 index f6b2763..0000000 --- a/dist/Taskview/columns/AColumn.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { Cohort } from '../../Cohort'; -import Taskview from '../Taskview'; -export declare abstract class AColumn { - protected title: string; - protected $container: HTMLDivElement; - $column: HTMLDivElement; - $header: HTMLDivElement; - $headerTitle: HTMLDivElement; - $headerOptions: HTMLDivElement; - constructor(title: string, $container: HTMLDivElement, closeable?: boolean); - close(): void; - abstract setCohorts(cohorts: Cohort[]): any; -} -/** - * Abstract base class of all data columns = columns with data to cohorts - */ -export declare abstract class ADataColumn extends AColumn { - protected showLoadingAnimation: boolean; - private dataCells; - setCohorts(cohorts: Cohort[]): void; - orderCohorts(cohorts: Cohort[]): void; - setCell(cell: HTMLDivElement, cht: Cohort, index: number): Promise; - setCellStyle(cell: HTMLDivElement, cht: Cohort, index: number): Promise; - abstract setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise; -} -/** - * Header and cells are empty, no options are shown - * Shrinks down to 0px for the content, the border remains, and currently is 2px left, seperating the last input column from the task search and the last output column from the output cohorts - */ -export declare class EmptyColumn extends ADataColumn { - constructor($container: HTMLDivElement); - setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise; -} -export default class AddColumnColumn extends ADataColumn { - private onInputCohortSide; - constructor($container: HTMLDivElement, taskview: Taskview, database: string, view: string, onInputCohortSide?: boolean); - setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise; -} diff --git a/dist/Taskview/columns/AColumn.js b/dist/Taskview/columns/AColumn.js deleted file mode 100644 index 6c4bdb2..0000000 --- a/dist/Taskview/columns/AColumn.js +++ /dev/null @@ -1,154 +0,0 @@ -import { select } from 'd3v7'; -import { EMPTY_COHORT_ID, LOADER_COHORT_ID } from '../../Cohort'; -import { colors } from '../../colors'; -import { createSearchBarTooltip } from '../../Tooltip'; -import { getAnimatedLoadingBars, log } from '../../util'; -import { ColumnCloseEvent } from '../../utilCustomEvents'; -export class AColumn { - constructor(title, $container, closeable = true) { - this.title = title; - this.$container = $container; - this.$column = select(this.$container).append('div').classed('column', true).node(); - this.$header = select(this.$column).append('div').classed('header', true).node(); - this.$headerOptions = select(this.$header).append('div').classed('header-option', true).node(); - this.$headerTitle = select(this.$header).append('div').classed('header-title', true).node(); - this.$headerTitle.innerHTML = title ? title : '​'; //zero width space if empty - this.$headerTitle.classList.add('text'); - if (title) { // only when column has a title then set the title property - this.$headerTitle.title = title; - } - if (closeable) { - const removeElem = select(this.$headerOptions).append('i'); - removeElem.classed('options remove fas fa-trash', true).on('click', () => this.close()); - removeElem.attr('title', 'Remove Column'); - removeElem.node().style.order = '1'; - } - } - close() { - try { - this.$container.removeChild(this.$column); - } - catch (e) { - log.error('Column not found', e); - } - this.$container.dispatchEvent(new ColumnCloseEvent(this)); - } -} -/** - * Abstract base class of all data columns = columns with data to cohorts - */ -export class ADataColumn extends AColumn { - constructor() { - super(...arguments); - this.showLoadingAnimation = true; - } - setCohorts(cohorts) { - this.dataCells = select(this.$column).selectAll('div.data').data(cohorts, (d) => d.id); - const _thisColumn = this; - //Update - this.dataCells.each(function (d, i) { - _thisColumn.setCellStyle(select(this).node(), d, i); - }); - //Enter - const enterSelection = this.dataCells.enter(); - enterSelection - .append('div') - .classed('data', true) - .each(function (d, i) { - _thisColumn.setCell(select(this).node(), d, i); - }); - this.dataCells.exit().remove(); // Exit - } - orderCohorts(cohorts) { - this.setCohorts(cohorts); - this.dataCells.order(); - } - async setCell(cell, cht, index) { - log.debug('Set cell for cohort', cht.label); - this.setCellStyle(cell, cht, index); - if (cht.id !== EMPTY_COHORT_ID) { - if (cht.id === LOADER_COHORT_ID) { - if (this.showLoadingAnimation) { - cell.insertAdjacentElement('afterbegin', getAnimatedLoadingBars()); - } - } - else { - this.setCellContent(cell, cht, index); - } - } - } - async setCellStyle(cell, cht, index) { - let cellHeight = 56; //Cohort Representation + Padding + Border Top = 52px + 2*2px + 1px = 57px - if (cht.outputCohorts) { // check chohort type -> InputCohort always has a outputCohorts array - const rows = cht.outputCohorts.length; // one row for each output cohort - cellHeight *= Math.max(rows, 1); // at least one row - cellHeight += (10 - 2); // extra padding - default padding - cellHeight += 1; // border - cell.dataset.inputCohort = `${cht.dbId}`; - } - else { - log.debug('cohort: ', cht, ' | parents: ', cht.getCohortParents()); - const parent = cht.getCohortParents()[0]; - cell.dataset.inputCohort = `${parent.dbId}`; - cell.classList.remove('last-output-cohort'); - cell.classList.remove('first-output-cohort'); - if (cht.isLastOutputCohort) { - cell.classList.add('last-output-cohort'); - cellHeight += (10 - 2); // extra padding - default padding - cellHeight += 1; // border - } - if (cht.isFirstOutputCohort) { - cell.classList.add('first-output-cohort'); - cellHeight += 0; // margin (not part of border-box) - } - } - cell.style.height = `${cellHeight}px`; - const selected = cht.selected; - cell.classList.toggle('deselected', !selected); - } -} -/** - * Header and cells are empty, no options are shown - * Shrinks down to 0px for the content, the border remains, and currently is 2px left, seperating the last input column from the task search and the last output column from the output cohorts - */ -export class EmptyColumn extends ADataColumn { - constructor($container) { - super(undefined, $container, false); - this.$column.classList.add('empty'); - this.showLoadingAnimation = false; - } - async setCellContent(cell, cht, index) { - //Empty - } -} -export default class AddColumnColumn extends ADataColumn { - constructor($container, taskview, database, view, onInputCohortSide = true) { - super(undefined, $container, false); - this.onInputCohortSide = onInputCohortSide; - this.$column.classList.add('first', 'add-column'); - this.showLoadingAnimation = false; - const cssClassName = onInputCohortSide ? 'tippy-input' : 'tippy-output'; - // remove (add hidden css class) the header and text div and replace with button - this.$headerOptions.toggleAttribute('hidden', true); - this.$headerTitle.toggleAttribute('hidden', true); - const divEmptyColHeader = document.createElement('div'); - divEmptyColHeader.classList.add('header-only-button'); - this.$header.appendChild(divEmptyColHeader); - const divAdd = document.createElement('div'); - divAdd.classList.add('empty-header-button', 'btn-coral'); - divAdd.innerHTML = ` - - - - - - - `; - divEmptyColHeader.appendChild(divAdd); - createSearchBarTooltip(divAdd, cssClassName, database, view, onInputCohortSide); - } - async setCellContent(cell, cht, index) { - //Empty - } -} -//# sourceMappingURL=AColumn.js.map \ No newline at end of file diff --git a/dist/Taskview/columns/AColumn.js.map b/dist/Taskview/columns/AColumn.js.map deleted file mode 100644 index a1df94c..0000000 --- a/dist/Taskview/columns/AColumn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AColumn.js","sourceRoot":"","sources":["../../../src/Taskview/columns/AColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAS,eAAe,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACvE,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AACpC,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,sBAAsB,EAAE,GAAG,EAAC,MAAM,YAAY,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAIxD,MAAM,OAAgB,OAAO;IAM3B,YAAsB,KAAa,EAAY,UAA0B,EAAE,SAAS,GAAG,IAAI;QAArE,UAAK,GAAL,KAAK,CAAQ;QAAY,eAAU,GAAV,UAAU,CAAgB;QACvE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,EAAoB,CAAC;QACtG,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,EAAoB,CAAC;QACnG,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,C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iBAAiB,CAAO;QAE1H,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QAClD,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QAElC,MAAM,YAAY,GAAG,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC;QAExE,gFAAgF;QAChF,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAElD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACxD,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAC;QACzD,MAAM,CAAC,SAAS,GAAG;;;;mEAI4C,MAAM,CAAC,eAAe,iBAAiB,MAAM,CAAC,QAAQ,GAAG,IAAI;;;KAG3H,CAAC;QACF,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAEtC,sBAAsB,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAClF,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAAoB,EAAE,GAAW,EAAE,KAAa;QACnE,OAAO;IACT,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/columns/AttributeColumn.d.ts b/dist/Taskview/columns/AttributeColumn.d.ts deleted file mode 100644 index 1d7baf4..0000000 --- a/dist/Taskview/columns/AttributeColumn.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Cohort } from '../../Cohort'; -import { IAttribute } from '../../data/Attribute'; -import { ADataColumn } from './AColumn'; -export default class AttributeColumn extends ADataColumn { - attribute: IAttribute; - private onInputCohortSide; - private color; - private hists; - private showOutputChtHistRef; - private _pinned; - private togglePinBtn; - private _order; - constructor(attribute: IAttribute, $container: HTMLDivElement, onInputCohortSide?: boolean, color?: boolean, pinned?: boolean); - updateCellContent(): void; - get pinned(): boolean; - set pinned(value: boolean); - setOrder(incOrderValueBy: number): void; - private addHighlightForColumn; - private removeHighlightForColumn; - setCellStyle(cell: HTMLDivElement, cht: Cohort, index: number): Promise; - setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise; -} diff --git a/dist/Taskview/columns/AttributeColumn.js b/dist/Taskview/columns/AttributeColumn.js deleted file mode 100644 index a1d6c2a..0000000 --- a/dist/Taskview/columns/AttributeColumn.js +++ /dev/null @@ -1,441 +0,0 @@ -import { select } from 'd3v7'; -import vegaEmbed from 'vega-embed'; -import { colors } from '../../colors'; -import { NumRangeOperators } from '../../rest'; -import { getAnimatedLoadingBars, log } from '../../util'; -import { easyLabelFromFilter, niceName } from '../../utilLabels'; -import { ADataColumn } from './AColumn'; -export default class AttributeColumn extends ADataColumn { - constructor(attribute, $container, onInputCohortSide = true, color = false, pinned = false) { - super(niceName(attribute.label), $container); - this.attribute = attribute; - this.onInputCohortSide = onInputCohortSide; - this.color = color; - this.hists = new WeakMap(); - this.showOutputChtHistRef = false; - this._pinned = false; - this._order = 50; - this.$column.dataset.attribute = this.attribute.label; - this.$column.style.order = `${this._order}`; - this._pinned = pinned; - this.$header.addEventListener('mouseover', (event) => { - event.stopPropagation(); - if (event.target === this.$header) { - // add highlight - this.addHighlightForColumn(); - } - else if (event.target === this.$headerOptions) { - // add highlight - this.addHighlightForColumn(); - } - else if (event.target === this.$headerTitle) { - // add highlight - this.addHighlightForColumn(); - } - else { - // remove highlight - this.removeHighlightForColumn(); - } - }, false); - this.$header.addEventListener('mouseout', (event) => { - event.stopPropagation(); - // remove highlight - this.removeHighlightForColumn(); - }, false); - // add option to pin column - this.togglePinBtn = select(this.$headerOptions).append('i'); - this.togglePinBtn.node().classList.add('options', 'fas', 'fa-thumbtack', 'left-side'); - this.togglePinBtn.node().classList.toggle('active', this.pinned); - this.togglePinBtn.node().style.order = '10'; - this.togglePinBtn.attr('title', this.pinned === true ? 'Unpin Column' : 'Pin Column'); - this.togglePinBtn.on('click', () => { - this.pinned = !this.pinned; - this.togglePinBtn.node().classList.toggle('active', this.pinned); - this.togglePinBtn.attr('title', this.pinned === true ? 'Unpin Column' : 'Pin Column'); - }); - if (this.onInputCohortSide) { - // set show reference for output cohort to false - this.showOutputChtHistRef = false; - // add options for attributes on the input side - // const showAttrBtn = select(this.$headerOptions).append('div'); - // showAttrBtn.classed('options', true).html('').on('click', () => log.debug('show in serach column')); - // showAttrBtn.attr('title', 'Show Attribute'); - } - else { - // add options for attributes on the ouput side - // toggle reference for the mini visulaization - const toggleRefBtn = select(this.$headerOptions).append('i'); - toggleRefBtn.node().classList.add('options', 'fas', 'fa-bars', 'toggle-ref'); - toggleRefBtn.node().style.order = '9'; - toggleRefBtn.classed('active', this.showOutputChtHistRef); - toggleRefBtn.on('click', () => { - toggleRefBtn.node().classList.toggle('active'); - this.showOutputChtHistRef = !this.showOutputChtHistRef; - this.updateCellContent(); - }); - toggleRefBtn.attr('title', 'Toogle Input Cohort as Reference'); - } - } - updateCellContent() { - const chts = select(this.$column).selectAll('div.data').data(); - for (const cht of chts) { - const hist = this.hists.get(cht); - hist.showReference = this.showOutputChtHistRef; - hist.updateNode(); - } - } - get pinned() { - return this._pinned; - } - set pinned(value) { - this._pinned = value; - this.togglePinBtn.node().classList.toggle('active', this.pinned); - this.togglePinBtn.attr('title', this.pinned === true ? 'Unpin Column' : 'Pin Column'); - } - setOrder(incOrderValueBy) { - const currOrder = this._order + incOrderValueBy; - this.$column.style.order = `${currOrder}`; - } - addHighlightForColumn() { - // html elements hierarchy: task-view -> task-view-scroll-wrapper -> task-view-table -> column - const cols = this.$column.parentElement.parentElement.parentElement.querySelectorAll(`.column[data-attribute='${this.attribute.label}']`); - cols.forEach((col) => { - col.classList.add('highlight'); - }); - } - removeHighlightForColumn() { - // html elements hierarchy: task-view -> task-view-scroll-wrapper -> task-view-table -> column - const cols = this.$column.parentElement.parentElement.parentElement.querySelectorAll(`.column[data-attribute='${this.attribute.label}']`); - cols.forEach((col) => { - col.classList.remove('highlight'); - }); - } - async setCellStyle(cell, cht, index) { - super.setCellStyle(cell, cht, index); - if (this.color) { - const hist = this.hists.get(cht); - if (hist && !hist.$node.classList.contains('text')) { - const color = cht.colorTaskView; - // recolor displayed vis: - select(cell).selectAll('svg .mark-rect > path').style('fill', color); - // store new color: - if (hist && hist.vegaView) { - hist.vegaView.scale('color').range([color]); - } - } - } - } - // called by base class in constructor - async setCellContent(cell, cht, index) { - const hist = new Histogram(this.attribute, cht, this.showOutputChtHistRef, index, this.color); - this.hists.set(cht, hist); - cell.appendChild(hist.getNode()); - } -} -class Histogram { - constructor(attribute, cohort, showReference, index, color) { - this.attribute = attribute; - this.cohort = cohort; - this.index = index; - this.color = color; - this.showReference = true; - this.showReference = showReference; - this.$node = document.createElement('div'); - this.$node.classList.add('hist'); - this.$loader = document.createElement('div'); - this.$loader.classList.add('loader'); // center content with flexbox - this.$loader.appendChild(getAnimatedLoadingBars()); - this.$hist = document.createElement('div'); - this.$node.appendChild(this.$hist); - const that = this; - setTimeout(() => that.updateNode.bind(that)(), 0); // run async - } - async updateNode() { - this.$hist.remove(); - try { - if (!this.cohort.hasfilterConflict()) { - this.$node.appendChild(this.$loader); - // get hist data of attribute for cohort - let data; - try { - data = await this.attribute.getHist(this.cohort.dbId, this.cohort.filters); - } - catch (e) { - log.error('get hist failed', e); - this.$loader.remove(); - this.$node.classList.add('text'); - this.$hist.innerHTML = ` -

- - Request timeout. -

- `; - this.$node.appendChild(this.$hist); - return; - } - const notZeroData = data.filter((d) => d.count > 0); // filter only for categories/bins with count bigger 0 - let showText = false; - // show only text when 1 bin and not numerical attribute or when numerical attribute only for one bin if it is for null - if (this.attribute.type !== 'number' || (this.attribute.type === 'number' && notZeroData.length === 1 && (notZeroData[0].bin === 'null' || notZeroData[0].bin === null))) { - showText = notZeroData.length === 1; // show text when only one category/bin with count bigger 0 - } - const chtSize = await this.cohort.size; - // -> size = 0: show only line in data cell with vega vis (all bins/categories have count 0) - // check if reference should be shown and - // if the size of the current cohort is bigger then 0 - if (this.showReference && chtSize > 0) { - if (this.cohort.getCohortParents().length > 0) { - // get parent cohort - const parentCht = this.cohort.getCohortParents()[0]; - // get hist data of attribtue for parent cohort - const parentData = await this.attribute.getHist(parentCht.dbId, parentCht.filters); - const notZeroParentData = parentData.filter((d) => d.count > 0); // filter only for categories/bins with count bigger 0 - const showParentText = notZeroParentData.length === 1; // show text when only one category/bin with count bigger 0 - const vegaData = { - data, - parentData, - parentColor: parentCht.colorTaskView - }; - if (showParentText) { - const bin = notZeroParentData[0].bin; - // TODO labels - // const text = this.formatText(bin); - const text = this.formatText(bin, this.cohort.values); - this.$node.classList.add('text'); - this.$hist.innerHTML = text; - } - else { - // show histogram with reference - this.$node.classList.remove('text'); - vegaEmbed(this.$hist, this.getMinimalVegaSpecWithRef(vegaData), { actions: false, renderer: 'svg' }).then((result) => { - this.vegaView = result.view; - }); - } - } - } - else { // when no reference should be shown (is also the case for the input cohort side) - // check if only one category/bin has values - if (showText) { - // show only text - const bin = notZeroData[0].bin; - // TODO labels - // const text = this.formatText(bin); - this.$node.classList.add('text'); - const text = this.formatText(bin, this.cohort.values); - this.$hist.innerHTML = text; - } - else { - // show histogram - this.$node.classList.remove('text'); - vegaEmbed(this.$hist, this.getMinimalVegaSpec(data), { actions: false, renderer: 'svg' }).then((result) => { - this.vegaView = result.view; - }); - } - } - this.$loader.remove(); - this.$node.appendChild(this.$hist); - } - else { - throw new Error('Can not show histogram due to filter contradiction'); - } - } - catch (e) { - log.error('Cant show histogram', e); - this.$loader.remove(); - this.$node.classList.add('text'); - this.$hist.innerHTML = ` -

- - Can not display histogram. -

- `; - this.$node.appendChild(this.$hist); - } - } - // TODO labels - // private formatText(value: string): string { - formatText(value, filters) { - if (value === 'null' || value === null || value === undefined) { - value = `Missing Values`; - } - let text = String(value); // turn boolean categories into strings - if (text.indexOf('(') >= 0 || text.indexOf('[') >= 0) { - const values = text.split(', '); - const params = { - firstOp: values[0][0], - firstValue: Number(values[0].substring(1)), - secondOp: values[1][values[1].length - 1], - // TODO labels - // secondValue: Number(values[1].substring(0, values[1].length - 2)) - secondValue: Number(values[1].substring(0, values[1].length - 1)) - }; - // TODO lables - // text = labelFromRanges(params.firstOp === '(' ? '(' : '[', params.firstValue, params.secondValue, params.secondOp === ')' ? ')' : ']', this.attribute); - const range = { - operatorOne: params.firstOp === '(' ? NumRangeOperators.gt : NumRangeOperators.gte, - valueOne: params.firstValue, - operatorTwo: params.secondOp === ')' ? NumRangeOperators.lt : NumRangeOperators.lte, - valueTwo: params.secondValue - }; - text = easyLabelFromFilter(range, this.attribute.label); - } - else { - text = niceName(text); - } - return text; - } - getNode() { - return this.$node; - } - getMinimalVegaSpec(data) { - let sort = 'ascending'; - if (this.attribute.type === 'number') { - sort = { field: 'index' }; - } - return { - $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', - height: 50, - background: '#ffffff00', - autosize: { type: 'fit', contains: 'padding' }, - data: { values: data }, - mark: { - type: 'bar', - tooltip: true - }, - encoding: { - x: { - field: 'bin', - type: 'nominal', - axis: { - title: null, - labels: false, - ticks: false - }, - sort - }, - y: { - field: 'count', - type: 'quantitative', - axis: null // no axis, no title, labels, no grid - }, - color: { - field: 'this_does_not_exist', - type: 'nominal', - scale: { - range: [this.cohort.colorTaskView || colors.barColor] //[this.color ? Cat16.get(this.index) : colors.barColor] - }, - legend: null // no legend - }, - tooltip: [ - { field: 'bin', type: 'nominal' }, - { field: 'count', type: 'quantitative' } - ] - }, - config: { - view: { - stroke: 'transparent' // https://vega.github.io/vega-lite/docs/spec.html#view-background - } - }, - params: [ - { - name: 'highlight', - select: { - type: 'point', - on: 'mouseover', - clear: 'mouseout' - } - } - ] - }; - } - getMinimalVegaSpecWithRef(data) { - let sort = 'ascending'; - if (this.attribute.type === 'number') { - sort = { field: 'index' }; - } - return { - $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', - height: 50, - background: '#ffffff00', - autosize: { type: 'fit', contains: 'padding' }, - datasets: { - parentData: data.parentData, - data: data.data - }, - layer: [ - { - data: { name: 'parentData' }, - mark: { - type: 'bar', - tooltip: true - }, - encoding: { - x: { - field: 'bin', - type: 'nominal', - axis: { - title: null, - labels: false, - ticks: false - }, - sort - }, - y: { - field: 'count', - type: 'quantitative', - axis: null // no axis, no title, labels, no grid - }, - fill: { - value: data.parentColor, - legend: null // no legend - }, - tooltip: [ - { field: 'bin', type: 'nominal' }, - { field: 'count', type: 'quantitative' } - ] - } - }, - { - data: { name: 'data' }, - mark: { - type: 'bar', - tooltip: true - }, - encoding: { - x: { - field: 'bin', - type: 'nominal', - axis: { - title: null, - labels: false, - ticks: false - }, - sort - }, - y: { - field: 'count', - type: 'quantitative', - axis: null // no axis, no title, labels, no grid - }, - fill: { - value: colors.barColor, - legend: null // no legend - }, - tooltip: [ - { field: 'bin', type: 'nominal' }, - { field: 'count', type: 'quantitative' } - ] - } - } - ], - config: { - view: { - stroke: 'transparent' // https://vega.github.io/vega-lite/docs/spec.html#view-background - } - } - }; - } -} -//# sourceMappingURL=AttributeColumn.js.map \ No newline at end of file diff --git a/dist/Taskview/columns/AttributeColumn.js.map b/dist/Taskview/columns/AttributeColumn.js.map deleted file mode 100644 index b10e2c3..0000000 --- a/dist/Taskview/columns/AttributeColumn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AttributeColumn.js","sourceRoot":"","sources":["../../../src/Taskview/columns/AttributeColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CA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I;qBACd;oBACD,QAAQ,EAAE;wBACR,CAAC,EAAE;4BACD,KAAK,EAAE,KAAK;4BACZ,IAAI,EAAE,SAAS;4BACf,IAAI,EAAE;gCACJ,KAAK,EAAE,IAAI;gCACX,MAAM,EAAE,KAAK;gCACb,KAAK,EAAE,KAAK;6BACb;4BACD,IAAI;yBACL;wBACD,CAAC,EAAE;4BACD,KAAK,EAAE,OAAO;4BACd,IAAI,EAAE,cAAc;4BACpB,IAAI,EAAE,IAAI,CAAC,sCAAsC;yBAClD;wBACD,IAAI,EAAE;4BACJ,KAAK,EAAE,MAAM,CAAC,QAAQ;4BACtB,MAAM,EAAE,IAAI,CAAC,YAAY;yBAC1B;wBACD,OAAO,EAAE;4BACP,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAC;4BAC/B,EAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAC;yBACvC;qBACF;iBACF;aACF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,MAAM,EAAE,aAAa,CAAC,kEAAkE;iBACzF;aACF;SACF,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/columns/CohortColumn.d.ts b/dist/Taskview/columns/CohortColumn.d.ts deleted file mode 100644 index a0b680d..0000000 --- a/dist/Taskview/columns/CohortColumn.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Cohort } from '../../Cohort'; -import { SortType } from '../../util'; -import { ADataColumn } from './AColumn'; -/** - * Displays cohorts with their given representation as a column - */ -export declare abstract class ACohortColumn extends ADataColumn { - sortElemIcon: HTMLElement; - protected currSortOptIdx: number; - sortOptions: { - idx: number; - type: SortType; - icon: string; - active: boolean; - next: number; - }[]; - constructor(title: any, $container: HTMLDivElement, closeable?: boolean); - setCellContent(cell: HTMLDivElement, cht: Cohort): Promise; - setDefaultSort(): void; - private getSortOption; - private changeSortOption; - addSortButton(): void; - protected abstract sortCohorts(type: SortType): any; -} -export declare class InputCohortColumn extends ACohortColumn { - init: boolean; - constructor($container: HTMLDivElement); - setCohorts(cohorts: Cohort[]): void; - sortCohorts(type: SortType): void; -} -export declare class OutputCohortColumn extends ACohortColumn { - cohorts: Cohort[]; - init: boolean; - constructor($container: HTMLDivElement); - setCohorts(cohorts: Cohort[]): void; - sortCohorts(type: SortType): void; -} diff --git a/dist/Taskview/columns/CohortColumn.js b/dist/Taskview/columns/CohortColumn.js deleted file mode 100644 index f34f0e1..0000000 --- a/dist/Taskview/columns/CohortColumn.js +++ /dev/null @@ -1,90 +0,0 @@ -import { select } from 'd3v7'; -import { OnboardingManager } from '../../OnboardingManager'; -import { SortType } from '../../util'; -import { ColumnSortEvent } from '../../utilCustomEvents'; -import { ADataColumn } from './AColumn'; -/** - * Displays cohorts with their given representation as a column - */ -export class ACohortColumn extends ADataColumn { - constructor(title, $container, closeable = false) { - super(title, $container, closeable); - this.sortOptions = [ - { idx: 1, type: SortType.Default, icon: 'fas fa-sort-alpha-down', active: false, next: 2 }, - { idx: 2, type: SortType.Alpha_AZ, icon: 'fas fa-sort-alpha-down', active: true, next: 3 }, - { idx: 3, type: SortType.Alpha_ZA, icon: 'fas fa-sort-alpha-up', active: true, next: 4 }, - { idx: 4, type: SortType.Size_91, icon: 'fas fa-sort-amount-down', active: true, next: 5 }, - { idx: 5, type: SortType.Size_19, icon: 'fas fa-sort-amount-up', active: true, next: 1 }, - ]; - this.$column.classList.add('cohort'); - this.currSortOptIdx = 1; // default sort - this.addSortButton(); - } - async setCellContent(cell, cht) { - const clone = cht.representation.getClone(); - cell.appendChild(clone); // Using appendChild (instead of innerHTML) is important to keep track of 'checked' attributes and others - cell.style.padding = '2px'; - } - setDefaultSort() { - this.changeSortOption(this.getSortOption(1)); - } - getSortOption(idx) { - return this.sortOptions.filter((opt) => opt.idx === idx)[0]; - } - changeSortOption(sortOpt) { - this.currSortOptIdx = sortOpt.idx; - this.sortElemIcon.className = sortOpt.icon; - this.sortElemIcon.classList.add('options'); - this.sortElemIcon.classList.toggle('active', sortOpt.active); - } - addSortButton() { - // button for name - const initSort = this.getSortOption(this.currSortOptIdx); - this.sortElemIcon = select(this.$headerOptions).append('i').node(); - this.sortElemIcon.setAttribute('aria-hidden', 'true'); - this.changeSortOption(initSort); - this.sortElemIcon.title = 'Sort'; - this.sortElemIcon.addEventListener('click', () => { - const currSort = this.getSortOption(this.currSortOptIdx); - const nextSort = this.getSortOption(currSort.next); - this.changeSortOption(nextSort); - this.sortCohorts(nextSort.type); - }); - } -} -export class InputCohortColumn extends ACohortColumn { - constructor($container) { - super('Input Cohorts', $container); - this.init = true; - this.$column.classList.add('first'); - } - setCohorts(cohorts) { - if (this.init && cohorts.length > 0) { - this.init = false; - OnboardingManager.addTip('input', this.$header); - } - super.setCohorts(cohorts); - } - sortCohorts(type) { - this.$column.dispatchEvent(new ColumnSortEvent(type, true)); - } -} -export class OutputCohortColumn extends ACohortColumn { - constructor($container) { - super('Output Cohorts', $container); - this.init = true; - this.$column.classList.add('last'); - } - setCohorts(cohorts) { - this.cohorts = cohorts; - super.setCohorts(cohorts); - if (this.init && cohorts.length > 0) { - this.init = false; - OnboardingManager.addTip('output', this.$header); - } - } - sortCohorts(type) { - this.$column.dispatchEvent(new ColumnSortEvent(type, false)); - } -} -//# sourceMappingURL=CohortColumn.js.map \ No newline at end of file diff --git a/dist/Taskview/columns/CohortColumn.js.map b/dist/Taskview/columns/CohortColumn.js.map deleted file mode 100644 index 4feb3ea..0000000 --- a/dist/Taskview/columns/CohortColumn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CohortColumn.js","sourceRoot":"","sources":["../../../src/Taskview/columns/CohortColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,eAAe,EAAC,MAAM,wBAA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AAU,CAAC,OAAiB;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE1B,IAAI,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACnC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SAClD;IACH,CAAC;IAED,WAAW,CAAC,IAAc;QACxB,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAC/D,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/columns/NumberColumn.d.ts b/dist/Taskview/columns/NumberColumn.d.ts deleted file mode 100644 index fd70882..0000000 --- a/dist/Taskview/columns/NumberColumn.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Cohort } from '../../Cohort'; -import { ADataColumn } from './AColumn'; -export default class NumberColumn extends ADataColumn { - constructor($container: HTMLDivElement); - setCellStyle(cell: HTMLDivElement, cht: Cohort, index: number): Promise; - setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise; -} diff --git a/dist/Taskview/columns/NumberColumn.js b/dist/Taskview/columns/NumberColumn.js deleted file mode 100644 index c869a41..0000000 --- a/dist/Taskview/columns/NumberColumn.js +++ /dev/null @@ -1,25 +0,0 @@ -import { format as d3Format } from 'd3v7'; -import { ADataColumn } from './AColumn'; -export default class NumberColumn extends ADataColumn { - constructor($container) { - super(`No.`, $container, false); - this.$column.classList.add('first', 'number'); - } - async setCellStyle(cell, cht, index) { - super.setCellStyle(cell, cht, index); - this.setCellContent(cell, cht, index); - } - async setCellContent(cell, cht, index) { - while (cell.firstChild) { - cell.removeChild(cell.firstChild); - } - const text = document.createElement('div'); - text.classList.add('number-color'); - const formatter = d3Format('\u2002>3'); // right align up to 3 digits, fill with en-space - // get color from cohort - const color = cht.colorTaskView; - text.insertAdjacentHTML('afterbegin', `${formatter(index + 1)} `); - cell.appendChild(text); - } -} -//# sourceMappingURL=NumberColumn.js.map \ No newline at end of file diff --git a/dist/Taskview/columns/NumberColumn.js.map b/dist/Taskview/columns/NumberColumn.js.map deleted file mode 100644 index dd044ee..0000000 --- a/dist/Taskview/columns/NumberColumn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NumberColumn.js","sourceRoot":"","sources":["../../../src/Taskview/columns/NumberColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,IAAI,QAAQ,EAAC,MAAM,MAAM,CAAC;AAExC,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACnD,YAAY,UAA0B;QACpC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAoB,EAAE,GAAW,EAAE,KAAa;QACjE,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAAoB,EAAE,GAAW,EAAE,KAAa;QACnE,OAAO,IAAI,CAAC,UAAU,EAAE;YACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACnC;QACD,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACnC,MAAM,SAAS,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,iDAAiD;QACzF,wBAAwB;QACxB,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC;QAChC,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,GAAG,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,yEAAyE,KAAK,SAAS,CAAC,CAAC;QACtJ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/columns/PrevalenceColumn.d.ts b/dist/Taskview/columns/PrevalenceColumn.d.ts deleted file mode 100644 index f9cc4de..0000000 --- a/dist/Taskview/columns/PrevalenceColumn.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Cohort } from '../../Cohort'; -import { ADataColumn } from './AColumn'; -export default class PrevalenceColumn extends ADataColumn { - private reference; - constructor(reference: Cohort, $container: HTMLDivElement); - setCellContent(cell: HTMLDivElement, cht: Cohort): Promise; -} diff --git a/dist/Taskview/columns/PrevalenceColumn.js b/dist/Taskview/columns/PrevalenceColumn.js deleted file mode 100644 index d7b24f4..0000000 --- a/dist/Taskview/columns/PrevalenceColumn.js +++ /dev/null @@ -1,100 +0,0 @@ -import vegaEmbed from 'vega-embed'; -import { colors } from '../../colors'; -import { getAnimatedLoadingBars } from '../../util'; -import { ADataColumn } from './AColumn'; -export default class PrevalenceColumn extends ADataColumn { - constructor(reference, $container) { - super(`% [${reference.label}]`, $container); - this.reference = reference; - this.$column.classList.add('prevalence'); - } - async setCellContent(cell, cht) { - cell.appendChild(new PrevalenceBar(cht, this.reference).getNode()); - } -} -class PrevalenceBar { - constructor(cht, reference) { - this.cht = cht; - this.reference = reference; - this.$node = document.createElement('div'); - this.$node.classList.add('hist'); - this.$loader = document.createElement('div'); - this.$loader.classList.add('loader'); // center content with flexbox - this.$loader.appendChild(getAnimatedLoadingBars()); - this.$hist = document.createElement('div'); - this.$node.appendChild(this.$hist); - const that = this; - setTimeout(() => that.updateNode.bind(that)(), 0); // run async - } - async updateNode() { - this.$node.removeChild(this.$hist); - this.$node.appendChild(this.$loader); - const [size, refSize] = await Promise.all([this.cht.size, this.reference.size]); - this.$node.removeChild(this.$loader); - this.$node.appendChild(this.$hist); - const spec = this.getMinimalVegaSpec(size, refSize); - vegaEmbed(this.$hist, this.getMinimalVegaSpec(size, refSize), { actions: false }); - } - getNode() { - return this.$node; - } - /** - * https://vega.github.io/editor/#/url/vega-lite/N4KABGBEAkDODGALApgWwIaQFxUQFzwAdYsB6UgN2QHN0A6agSz0QFcAjOxge1IRQyUa6ALQAbZskoAWOgCtY3AHaQANOCgATdHkw5gUCujGtksbGADakAKyQAugF91ESBgBOAawuR26d2oakMhK8NyajErUFqAQrgAeMRpxUABmjMhimj7auoEprngAnoTIPgCOrOhKeMw6jFT5BZAIxmX6kJrcGJEWlgAMqgCM-f1OLs3o8Yzm+snNtXhi7WBKrGJi8xCO8zvbII5AA - * https://vega.github.io/editor/#/url/vega-lite/N4KABGBEAkDODGALApgWwIaQFxUQFzwAdYsB6UgN2QHN0A6agSz0QFcAjOxge1IRQyUa6ALQAbZskoAWOgCtY3AHaQANOCgATdHkw5gUCujGtksbGADakAKyQAugF91ESBgBOAawuR26d2oakMhK8NyajErUFqAQrgAeMRpxUABmjMhimj7auoEprngAnoTIPgCOrOhKeMw6jFT5BZAIxmX6kJrcGJEWlgAMqgCM-f1OLs3o8Yzm+snNtfCeAMLcrDUWQxMFUIueAKLxeO56YMem281i6OyZs2CpxrDIlymQtXhi7WBKrGJirzikGo7kY2RwjzEz3mEEc82c80gRSSO0gRhM3xGgMgUxmKJ2Wm66EiAHUwSwLDYYWA4SlaTSJpAwkp0tE5m8KBkAO74t6wY7cTzfd4nJSwQj+EJ4SDwjRwxxAA - */ - getMinimalVegaSpec(length, maxLength) { - return { - $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', - height: 50, - autosize: { type: 'fit', contains: 'padding' }, - data: { values: [length / maxLength] }, - mark: 'bar', - encoding: { - x: { - field: 'data', - type: 'quantitative', - scale: { domain: [0, 1] }, - axis: { - labels: false, - title: null, - tickCount: 1, - tickExtra: true, - domain: false, - ticks: false, - } - }, - color: { - value: colors.barColor, - condition: [ - { - param: 'highlight', - value: colors.hoverColor - } - ] - }, - tooltip: { - field: 'data', - type: 'quantitative', - format: '.1%' - } - }, - config: { - view: { - stroke: 'transparent' // https://vega.github.io/vega-lite/docs/spec.html#view-background - } - }, - params: [ - { - name: 'highlight', - select: { - type: 'point', - on: 'mouseover', - clear: 'mouseout' - } - } - ] - }; - } -} -//# sourceMappingURL=PrevalenceColumn.js.map \ No newline at end of file diff --git a/dist/Taskview/columns/PrevalenceColumn.js.map b/dist/Taskview/columns/PrevalenceColumn.js.map deleted file mode 100644 index 81b1477..0000000 --- a/dist/Taskview/columns/PrevalenceColumn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PrevalenceColumn.js","sourceRoot":"","sources":["../../../src/Taskview/columns/PrevalenceColumn.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AACpC,OAAO,EAAC,sBAAsB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IAEvD,YAAoB,SAAiB,EAAE,UAA0B;QAC/D,KAAK,CAAC,MAAM,SAAS,CAAC,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;QAD1B,cAAS,GAAT,SAAS,CAAQ;QAEnC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAAoB,EAAE,GAAW;QACpD,IAAI,CAAC,WAAW,CAAC,IAAI,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,O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,KAAK,EAAE,MAAM;oBACb,IAAI,EAAE,cAAc;oBACpB,MAAM,EAAE,KAAK;iBACd;aACF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,MAAM,EAAE,aAAa,CAAC,kEAAkE;iBACzF;aACF;YACD,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,WAAW;oBACjB,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,EAAE,EAAE,WAAW;wBACf,KAAK,EAAE,UAAU;qBAClB;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/columns/index.d.ts b/dist/Taskview/columns/index.d.ts deleted file mode 100644 index 49ce44f..0000000 --- a/dist/Taskview/columns/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './AColumn'; -export * from './AttributeColumn'; -export { default as AttributeColumn } from './AttributeColumn'; -export * from './CohortColumn'; -export * from './NumberColumn'; -export { default as NumberColumn } from './NumberColumn'; -export * from './PrevalenceColumn'; -export { default as PrevalenceColumn } from './PrevalenceColumn'; diff --git a/dist/Taskview/columns/index.js b/dist/Taskview/columns/index.js deleted file mode 100644 index 00a1c6d..0000000 --- a/dist/Taskview/columns/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export * from './AColumn'; -export * from './AttributeColumn'; -export { default as AttributeColumn } from './AttributeColumn'; -export * from './CohortColumn'; -export * from './NumberColumn'; -export { default as NumberColumn } from './NumberColumn'; -export * from './PrevalenceColumn'; -export { default as PrevalenceColumn } from './PrevalenceColumn'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/Taskview/columns/index.js.map b/dist/Taskview/columns/index.js.map deleted file mode 100644 index 57350c6..0000000 --- a/dist/Taskview/columns/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Taskview/columns/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC7D,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/index.d.ts b/dist/Taskview/index.d.ts deleted file mode 100644 index ece131b..0000000 --- a/dist/Taskview/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './columns'; -export * from './tasks'; -export * from './visualizations'; -export * from './SearchBar'; -export * from './SearchColumn'; -export { default as SearchColumn } from './SearchColumn'; -export * from './Taskview'; -export { default as Taskview } from './Taskview'; diff --git a/dist/Taskview/index.js b/dist/Taskview/index.js deleted file mode 100644 index 81220c4..0000000 --- a/dist/Taskview/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export * from './columns'; -export * from './tasks'; -export * from './visualizations'; -export * from './SearchBar'; -export * from './SearchColumn'; -export { default as SearchColumn } from './SearchColumn'; -export * from './Taskview'; -export { default as Taskview } from './Taskview'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/Taskview/index.js.map b/dist/Taskview/index.js.map deleted file mode 100644 index 8c0d945..0000000 --- a/dist/Taskview/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Taskview/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AAEjC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/tasks/ATask.d.ts b/dist/Taskview/tasks/ATask.d.ts deleted file mode 100644 index 1767a2f..0000000 --- a/dist/Taskview/tasks/ATask.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Selection } from 'd3v7'; -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute } from '../../data/Attribute'; -export declare const TASK_CLOSE_EVENT_TYPE = "task:close"; -export declare class TaskCloseEvent extends CustomEvent<{ - task: ATask; -}> { - constructor(task: ATask); -} -export declare abstract class ATask { - label: string; - id: string; - hasOutput: boolean; - protected $container: HTMLDivElement; - protected $columnHeader: HTMLDivElement; - protected node: Selection; - protected header: Selection; - protected body: Selection; - abstract supports(attributes: IAttribute[], cohorts: ICohort[]): any; - abstract showSearchBar(): boolean; - show(columnHeader: HTMLDivElement, container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): void; - close(): void; -} diff --git a/dist/Taskview/tasks/ATask.js b/dist/Taskview/tasks/ATask.js deleted file mode 100644 index bacc2e3..0000000 --- a/dist/Taskview/tasks/ATask.js +++ /dev/null @@ -1,43 +0,0 @@ -import { select } from 'd3v7'; -import { OnboardingManager } from '../../OnboardingManager'; -export const TASK_CLOSE_EVENT_TYPE = 'task:close'; -export class TaskCloseEvent extends CustomEvent { - constructor(task) { - super(TASK_CLOSE_EVENT_TYPE, { detail: { task }, bubbles: true }); - } -} -export class ATask { - show(columnHeader, container, attributes, cohorts) { - const task = this; - select(container).selectAll('*').remove(); - select(columnHeader).selectAll('.task-title').remove(); - this.$container = container; - this.$columnHeader = columnHeader; - this.node = select(container).append('div').classed(this.id, true).classed('task-vis-container', true); - // header element for visualization configs - this.header = this.node - .append('div') - .classed('task-header', true); - // create back title button - const backTitle = document.createElement('button'); - columnHeader.prepend(backTitle); - // add text, classes, and fucntion to back title button - select(backTitle) - .classed('task-title btn btn-coral', true) - .html(` - -   - ${this.label}`) - .on('click', function () { - const clickedBtn = this; - clickedBtn.dispatchEvent(new TaskCloseEvent(task)); - }); - OnboardingManager.addTip(this.id, backTitle); - this.body = this.node.append('div').classed('task-body', true); - } - close() { - select(this.$columnHeader).selectAll('.task-title').remove(); - this.node.remove(); - } -} -//# sourceMappingURL=ATask.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/ATask.js.map b/dist/Taskview/tasks/ATask.js.map deleted file mode 100644 index dd19f86..0000000 --- a/dist/Taskview/tasks/ATask.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ATask.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/ATask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAY,MAAM,MAAM,CAAC;AAGvC,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAElD,MAAM,OAAO,cAAe,SAAQ,WAA0B;IAE5D,YAAY,IAAW;QACrB,KAAK,CAAC,qBAAqB,EAAE,EAAC,MAAM,EAAE,EAAC,IAAI,EAAC,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAChE,CAAC;CACF;AAGD,MAAM,OAAgB,KAAK;IAezB,IAAI,CAAC,YAA4B,EAAE,SAAyB,EAAE,UAAwB,EAAE,OAAkB;QACxG,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1C,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;QACvG,2CAA2C;QAC3C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI;aACpB,MAAM,CAAC,KAAK,CAAC;aACb,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAEhC,2BAA2B;QAC3B,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACnD,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEhC,uDAAuD;QACvD,MAAM,CAAC,SAAS,CAAC;aACd,OAAO,CAAC,0BAA0B,EAAE,IAAI,CAAC;aACzC,IAAI,CAAC;;;UAGF,IAAI,CAAC,KAAK,EAAE,CAAC;aAChB,EAAE,CAAC,OAAO,EAAE;YACX,MAAM,UAAU,GAAG,IAAI,CAAC;YACxB,UAAU,CAAC,aAAa,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEL,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;QAE7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAED,KAAK;QACH,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE,CAAC;QAC7D,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACrB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/tasks/Characterize.d.ts b/dist/Taskview/tasks/Characterize.d.ts index 02e811c..7622b91 100644 --- a/dist/Taskview/tasks/Characterize.d.ts +++ b/dist/Taskview/tasks/Characterize.d.ts @@ -56,3 +56,4 @@ export declare class MyDistributionRenderer implements ICellRendererFactory { canRender(col: LineUpDistributionColumn, mode: ERenderMode): boolean; create(col: LineUpDistributionColumn): ICellRenderer; } +//# sourceMappingURL=Characterize.d.ts.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Characterize.js b/dist/Taskview/tasks/Characterize.js index 4f1e1fc..e795536 100644 --- a/dist/Taskview/tasks/Characterize.js +++ b/dist/Taskview/tasks/Characterize.js @@ -112,12 +112,11 @@ export class Characterize extends ATask { `; this.$container.querySelectorAll('button.compare').forEach((btn) => btn.addEventListener('click', () => { - var _a, _b, _c; - (_a = this.attributeRanking) === null || _a === void 0 ? void 0 : _a.destroy(); + this.attributeRanking?.destroy(); this.$container.querySelector('.attribute-ranking').innerHTML = Characterize.spinner; - (_b = this.itemRanking) === null || _b === void 0 ? void 0 : _b.destroy(); + this.itemRanking?.destroy(); this.$container.querySelector('.item-ranking').innerHTML = Characterize.spinner; - (_c = this.chart) === null || _c === void 0 ? void 0 : _c.forEach((view) => view.finalize()); + this.chart?.forEach((view) => view.finalize()); this.chart = []; this.scatterplot = null; this.$container.querySelector('.accuracy-container').innerHTML = Characterize.spinner; @@ -269,7 +268,6 @@ export class Characterize extends ATask { }; let first = true; this.ws.onmessage = async (message) => { - var _a, _b; const responseData = JSON.parse(message.data); if (responseData.trees) { try { @@ -282,8 +280,8 @@ export class Characterize extends ATask { await this.createItemRanking(responseData.probabilities); // await so its ready for the next response } else { - (_a = this.attributeRankingData) === null || _a === void 0 ? void 0 : _a.setData(responseData.importances); - (_b = this.itemRankingData) === null || _b === void 0 ? void 0 : _b.setData(responseData.probabilities); + this.attributeRankingData?.setData(responseData.importances); + this.itemRankingData?.setData(responseData.probabilities); } this.$container.querySelector('.accuracy-container').innerHTML = `

Accuracy: ${Characterize.formatPercent(responseData.accuracy)}

@@ -448,7 +446,6 @@ export class Characterize extends ATask { this.itemRanking.on('selectionChanged', (dataIndices) => this.lineUpItemSelection(dataIndices)); } lineUpItemSelection(dataIndices) { - var _a; if (this.scatterplot) { const selectedItems = dataIndices.map((i) => this.itemRankingData.data[i][this._entityName]); const plotData = this.scatterplot.getData(); @@ -460,7 +457,7 @@ export class Characterize extends ATask { item.selected = false; } } - (_a = this.scatterplot) === null || _a === void 0 ? void 0 : _a.setData(plotData); + this.scatterplot?.setData(plotData); } } addProgressBar() { @@ -480,8 +477,7 @@ export class Characterize extends ATask { wrapper .querySelector(('a.run')) .addEventListener('click', () => { - var _a; - (_a = this.ws) === null || _a === void 0 ? void 0 : _a.close(); + this.ws?.close(); wrapper.querySelector('.progress-ctrl').remove(); this.progressBar.textContent = 'Stopped'; this.fadeOutProgressBar(); @@ -572,11 +568,10 @@ export class MyDistributionRenderer { `, update: (n, d) => { - var _a; if (renderMissingDOM(n, col, d)) { return; } - const data = (_a = d.v) === null || _a === void 0 ? void 0 : _a.distribution; + const data = d.v?.distribution; if (data && d.v.random === false) { d3.select(n).selectAll('#loading').remove(); d3.select(n).select('.xaxis path').attr('stroke', colors.barColor); diff --git a/dist/Taskview/tasks/Characterize.js.map b/dist/Taskview/tasks/Characterize.js.map index c3bc055..0ebbd7b 100644 --- a/dist/Taskview/tasks/Characterize.js.map +++ b/dist/Taskview/tasks/Characterize.js.map @@ -1 +1 @@ -{"version":3,"file":"Characterize.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/Characterize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,WAAW,EAAiD,gBAAgB,EAAC,MAAM,UAAU,CAAC;AACtG,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAS,cAAc,EAAC,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;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AC;6BAC1B,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;6BAC1B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;6BAC5B,IAAI,CAAC,QAAQ,EAAE,UAAS,CAAC,IAAI,OAAO,sBAAsB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;6BAClF,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;6BACvD,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;qBAClB;yBAAM;wBACL,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,0BAA0B,CAAC,CAAC;qBAC9E;iBACF;qBAAM;oBACL,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;iBACnD;YACH,CAAC;SACF,CAAC;IACJ,CAAC;;AA3Ee,4BAAK,GAAC,GAAG,CAAC;AACV,6BAAM,GAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/tasks/Characterize/LineUpDistributionColumn.d.ts b/dist/Taskview/tasks/Characterize/LineUpDistributionColumn.d.ts index 87baee6..6da2d62 100644 --- a/dist/Taskview/tasks/Characterize/LineUpDistributionColumn.d.ts +++ b/dist/Taskview/tasks/Characterize/LineUpDistributionColumn.d.ts @@ -123,3 +123,4 @@ export declare function isUnknown(v?: number | null): boolean; export declare function isDummyNumberFilter(filter: INumberFilter): boolean; export declare function restoreMapping(desc: IMapAbleDesc, factory: ITypeFactory): IMappingFunction; export declare function restoreNumberFilter(v: INumberFilter): INumberFilter; +//# sourceMappingURL=LineUpDistributionColumn.d.ts.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Characterize/ProbabilityScatterplot.d.ts b/dist/Taskview/tasks/Characterize/ProbabilityScatterplot.d.ts index 514afe8..d332fdf 100644 --- a/dist/Taskview/tasks/Characterize/ProbabilityScatterplot.d.ts +++ b/dist/Taskview/tasks/Characterize/ProbabilityScatterplot.d.ts @@ -12,3 +12,4 @@ export declare class ProbabilityScatterplot { constructor(data: any, cohorts: any, lineup: LineUpJS.Taggle); getSpec(): VegaSpec; } +//# sourceMappingURL=ProbabilityScatterplot.d.ts.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Compare.d.ts b/dist/Taskview/tasks/Compare.d.ts deleted file mode 100644 index 3402408..0000000 --- a/dist/Taskview/tasks/Compare.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { IMeasureResult, ISetParameters, ISimilarityMeasure } from 'tourdino'; -import { Cohort } from '../../Cohort'; -import { Attribute, IAttribute } from '../../data/Attribute'; -import { ATask } from './ATask'; -export declare class Compare extends ATask { - label: string; - id: string; - hasOutput: boolean; - attributes: IAttribute[]; - cohorts: Cohort[]; - supports(attributes: IAttribute[], cohorts: Cohort[]): boolean; - showSearchBar(): boolean; - show(columnHeader: HTMLDivElement, container: HTMLDivElement, attributes: IAttribute[], cohorts: Cohort[]): Promise; - appendTable(): void; - updateTableDescription(isTableEmpty: boolean): any; - updateTable(): void; - appendLegend(): void; - close(): void; - /** - * For each attribute in rowAttributes, we want to comapre the rows inside colGroups with the rows of rowGroups - * i.e. the number of table rows is: |rowAttributes| * |rowGroups| - * and there are |colGroups| columns - * + plus the rows and columns where we put labels - * - * @param colGroups - * @param rowGroups - * @param rowAttributes - * @param scaffold only create the matrix with row headers, but no value calculation - * @param update - */ - getTableBody(cohorts: Cohort[], attributes: Attribute[], scaffold: boolean, update: (bodyData: IScoreCell[][][]) => void): Promise>>>; - prepareDataArray(cohorts: Cohort[], attributes: Attribute[]): any[]; - toScoreCell(score: IMeasureResult, measure: ISimilarityMeasure, setParameters: ISetParameters): IScoreCell; - createToolTip(tableCell: any): String; - onClick(tableCell: any): void; - onMouseOver(tableCell: any, state: boolean): void; - private highlightSelectedCell; - private visualizeSelectedCell; - private generateVisualDetails; - private removeCellDetails; -} -interface IScoreCell { - key?: string; - label: string; - type?: string; - background?: string; - foreground?: string; - rowspan?: number; - colspan?: number; - score?: IMeasureResult; - measure?: ISimilarityMeasure; - setParameters?: ISetParameters; - highlightData?: IHighlightData[]; -} -interface IHighlightData { - column: string; - label: string; - category?: string; - color?: string; -} -export declare function textColor4Background(backgroundColor: string): string; -export declare function score2color(score: number): { - background: string; - foreground: string; -}; -export {}; diff --git a/dist/Taskview/tasks/Compare.js b/dist/Taskview/tasks/Compare.js deleted file mode 100644 index d0a7285..0000000 --- a/dist/Taskview/tasks/Compare.js +++ /dev/null @@ -1,598 +0,0 @@ -/* ***************************************************************************** - * Caleydo - Visualization for Molecular Biology - http://caleydo.org - * Copyright (c) The Caleydo Team. All rights reserved. - * Licensed under the new BSD license, available at http://caleydo.org/license - **************************************************************************** */ -import { hsl, scaleLinear, select } from 'd3v7'; -import * as d3v3 from 'd3v3'; -import { MethodManager, SCOPE, Type, WorkerManager } from 'tourdino'; -import { log } from '../../util'; -import { ATask } from './ATask'; -export class Compare extends ATask { - constructor() { - super(...arguments); - this.label = `Compare`; - this.id = `compare`; - this.hasOutput = false; - } - supports(attributes, cohorts) { - return cohorts.length > 0; - } - showSearchBar() { - return true; - } - async show(columnHeader, container, attributes, cohorts) { - super.show(columnHeader, container, attributes, cohorts); - this.attributes = attributes; - this.cohorts = cohorts; - this.body.classed('tourdino', true); - this.appendTable(); - this.updateTable(); - this.body.append('div').classed('details', true); - this.appendLegend(); - } - appendTable() { - const tableContainer = this.body.append('div').classed('table-container', true).html(` - - - - - - - -
-
Difference of Cohorts
-

(☞゚ヮ゚)☞

-
- `); - } - updateTableDescription(isTableEmpty) { - if (isTableEmpty) { - const text = 'Please use the search field above to specify the attributes by which the cohorts are to be compared.'; - this.body.select('.table-container table .head-desc').style('width', null).select('p').text(text); - } - else { - const text = 'Click a value in the table for details.'; - this.body.select('.table-container table .head-desc').style('width', '13em').select('p').text(text); - } - } - updateTable() { - WorkerManager.terminateAll(); // Abort all calculations as their results are no longer needed - const timestamp = new Date().getTime().toString(); - this.body.attr('data-timestamp', timestamp); - const colHeadsCht = this.body.select('thead tr').selectAll('th.head').data(this.cohorts, (cht) => cht.id); - const colHeadsChtSpan = colHeadsCht.enter().append('th') - .attr('class', 'head rotate').append('div').append('span').append('span'); //th.head are the column headers - const that = this; // for the function below - const updateTableBody = (bodyData, timestamp) => { - if (that.body.attr('data-timestamp') !== timestamp) { - return; // skip outdated result - } - that.updateTableDescription(bodyData.length === 0); - // create a table body for every column - const bodies = that.body.select('table').selectAll('tbody').data(bodyData, (d) => d[0][0].label); // the data of each body is of type: Array> - const bodiesEnter = bodies.enter().append('tbody').classed('bottom-margin', true); //For each IColumnTableData, create a tbody - // the data of each row is of type: Array - const trs = bodies.merge(bodiesEnter).selectAll('tr').data((d) => d, (d) => d[0].key); // had to specify the function to derive the data (d -> d) - const trsEnter = trs.enter().append('tr'); - const tds = trs.merge(trsEnter).selectAll('td').data((d) => d); // the data of each td is of type: IScoreCell - const tdsEnter = tds.enter().append('td'); - // Set colheads in thead - colHeadsChtSpan.html((d) => `${d.label}`); - colHeadsChtSpan.each(function (d) { - const parent = select(this).node().parentNode; //parent span-element - select(parent).style('background-color', (d) => d.colorTaskView); - let color = '#333333'; - if (d && d.colorTaskView && 'transparent' !== d.colorTaskView && hsl(d.colorTaskView).l < 0.5) { //transparent has lightness of zero - color = 'white'; - } - select(parent.parentNode).style('color', color) - .attr('title', (d) => `${d.label}`); - }); - // set data in tbody - tds.merge(tdsEnter) - .attr('colspan', (d) => d.colspan) - .attr('rowspan', (d) => d.rowspan) - .style('color', (d) => d.foreground) - .style('background-color', (d) => d.background) - .attr('data-type', (d) => d.type) - .classed('action', (d) => d.score !== undefined) - .classed('score', (d) => d.measure !== undefined) - .html((d) => d.label) - .on('click', function () { that.onClick.bind(that)(this); }) - .on('mouseover', function () { that.onMouseOver.bind(that)(this, true); }) - .on('mouseout', function () { that.onMouseOver.bind(that)(this, false); }) - .attr('title', function () { return that.createToolTip.bind(that)(this); }); - // Exit - tds.exit().remove(); // remove cells of removed columns - colHeadsCht.exit().remove(); // remove attribute columns - trs.exit().remove(); // remove attribute rows - bodies.exit().remove(); - colHeadsCht.order(); - trs.order(); // Order the trs is important, if you have no items selected and then do select some, the select category would be at the bottom and the unselect category at the top of the table - bodies.order(); - const svgWidth = 120 + 33 * this.cohorts.length; // 120 height with 45° widht also 120, calculated width for the svg and polygon - that.body.select('th.head.rotate svg').remove(); - that.body.select('th.head.rotate') //select first - .insert('svg', ':first-child') - .attr('width', svgWidth) - .attr('height', 120) - .append('polygon').attr('points', '0,0 ' + svgWidth + ',0 0,120'); // 120 is thead height - }; - this.getTableBody(this.cohorts, this.attributes, true, null).then((data) => updateTableBody(data, timestamp)); // initialize - this.getTableBody(this.cohorts, this.attributes, false, (data) => updateTableBody(data, timestamp)).then((data) => updateTableBody(data, timestamp)); // set values - } - appendLegend() { - const legendContainer = this.body.append('div').classed('legend', true); - insertLegend(legendContainer); - } - close() { - super.close(); - } - /** - * For each attribute in rowAttributes, we want to comapre the rows inside colGroups with the rows of rowGroups - * i.e. the number of table rows is: |rowAttributes| * |rowGroups| - * and there are |colGroups| columns - * + plus the rows and columns where we put labels - * - * @param colGroups - * @param rowGroups - * @param rowAttributes - * @param scaffold only create the matrix with row headers, but no value calculation - * @param update - */ - async getTableBody(cohorts, attributes, scaffold, update) { - const data = this.prepareDataArray(cohorts, attributes); - if (scaffold) { - return data; - } - else { - const promises = []; - // if a group is part of the column and row item groups, we use these array to get the correct index (so we can avoid duplicate calculations) - const rowIndex4col = cohorts.map((colGrp, i) => i); - for (const [bodyIndex, attr] of attributes.entries()) { - const attrPromises = []; - const measures = MethodManager.getMeasuresByType(Type.get(attr.type), Type.get(attr.type), SCOPE.SETS); // Always compare selected elements with a group of elements of the same column - if (measures.length > 0) { - const measure = measures[0]; - for (const [rowIndex, rowCht] of cohorts.entries()) { - // Get the data of 'attr' for the rows inside 'rowCht' - const rowData = (await attr.getData(rowCht.dbId)).map((item) => item[attr.dataKey]); - for (const [colIndex, colCht] of cohorts.entries()) { - const colIndexOffset = rowIndex === 0 ? 2 : 1; // Two columns if the attribute label is in the same line, (otherwise 1 (because rowspan)) - if (rowCht.id === colCht.id) { // identical groups - data[bodyIndex][rowIndex][colIndexOffset + colIndex] = { label: '', measure }; - } - else if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0 && rowIndex4col[colIndex] < rowIndex) { - // the cht is also part of the colGroups array, and the colGrp is one of the previous rowGroups --> i.e. already calculated in a table row above the current one - } - else { - const colData = (await attr.getData(colCht.dbId)).map((item) => item[attr.dataKey]); - const setParameters = { - setA: rowData, - setADesc: attr, - setACategory: { label: `${rowCht.label}`, color: rowCht.colorTaskView }, - setB: colData, - setBDesc: attr, - setBCategory: { label: `${colCht.label}`, color: colCht.colorTaskView } - }; - attrPromises.push(new Promise((resolve, reject) => { - // score for the measure - let score = null; - score = measure.calc(rowData, colData, null); - // return score; - resolve(score); - }).then((score) => { - data[bodyIndex][rowIndex][colIndexOffset + colIndex] = this.toScoreCell(score, measure, setParameters); - if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0) { - const colIndexOffset4Duplicate = rowIndex4col[colIndex] === 0 ? 2 : 1; // Currenlty, we can't have duplicates in the first line, so this will always be 1 - data[bodyIndex][rowIndex4col[colIndex]][colIndexOffset4Duplicate + rowIndex4col[rowIndex]] = this.toScoreCell(score, measure, setParameters); - } - }).catch((err) => { - log.error(err); - const errorCell = { label: 'err', measure }; - data[bodyIndex][rowIndex][colIndexOffset + colIndex] = errorCell; - if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0) { - const colIndexOffset4Duplicate = rowIndex4col[colIndex] === 0 ? 2 : 1; - data[bodyIndex][rowIndex4col[colIndex]][colIndexOffset4Duplicate + rowIndex4col[rowIndex]] = errorCell; - } - })); - } - } - } - } - Promise.all(attrPromises).then(() => { update(data); }); // TODO: updateSelectionAndVisuallization - promises.concat(attrPromises); - } - await Promise.all(promises); //rather await all at once: https://developers.google.com/web/fundamentals/primers/async-functions#careful_avoid_going_too_sequential - return data; // then return the data - } - } - prepareDataArray(cohorts, attributes) { - if (cohorts.length === 0 || attributes.length === 0) { - return []; //return empty array, will cause an empty table - } - const data = new Array(attributes.length); // one array per attribute (number of table bodies) - for (const [i, attr] of attributes.entries()) { - data[i] = new Array(cohorts.length); // one array per rowGroup (number of rows in body) - for (const [j, cht] of cohorts.entries()) { - data[i][j] = new Array(cohorts.length + (j === 0 ? 2 : 1)).fill({ label: '', measure: null }); - data[i][j][j === 0 ? 1 : 0] = { - label: `${cht.label}`, - background: cht.colorTaskView, - foreground: textColor4Background(cht.colorTaskView) - }; - if (j === 0) { - data[i][j][0] = { - label: `${attr.label}`, - rowspan: cohorts.length, - type: attr.type - }; - } - data[i][j][0].key = `${attr.label}-${cht.id}`; - } - } - return data; - } - toScoreCell(score, measure, setParameters) { - let color = score2color(score.pValue); - let cellLabel = score.pValue.toFixed(3); - cellLabel = cellLabel.startsWith('0') ? cellLabel.substring(1) : score.pValue.toFixed(2); // [0,1) --> .123, 1 --> 1.00 - if (score.pValue > 0.1) { - color = { - background: '#ffffff', - foreground: '#ffffff', //white - }; - } - if (score.pValue === -1) { - cellLabel = '-'; - color = { - background: '#ffffff', - foreground: '#ffffff', //white - }; - } - return { - label: cellLabel, - background: color.background, - foreground: color.foreground, - score, - measure, - setParameters - }; - } - createToolTip(tableCell) { - if (select(tableCell).classed('score') && select(tableCell).classed('action')) { - const tr = tableCell.parentNode; //current row - const tbody = tr.parentNode; //current body - const table = tbody.parentNode; //current table - const allTds = select(tr).selectAll('td'); - let index = -1; - const currLength = allTds.nodes().length; - // get current index of cell in row - allTds.nodes().forEach((tdNode, i) => { - if (tdNode === tableCell) { - index = i; - } - }); - // all label cells in row - const rowCategories = []; - select(tr).selectAll('td:not(.score)').each(function () { - rowCategories.push(select(this).text()); - }); - // the first cell in the first row of the cells tbody - const row = select(tbody).select('tr').select('td').text(); - // maxIndex is the maximum number of table cell in the table - const maxLength = select(tbody).select('tr').selectAll('td').nodes().length; - // if currMaxIndex and maxIndex are not the same -> increase headerIndex by one - // because the current row has one cell fewer - const headerIndex = (currLength === maxLength) ? index : index + 1; - // column label - const allHeads = select(table).select('thead').selectAll('th'); - const header = select(allHeads.nodes()[headerIndex]).select('div').select('span').text(); - const category = rowCategories.pop(); - const isColTask = category === row ? true : false; - const cellData = select(tableCell).datum(); - const scoreValue = typeof (cellData.score.scoreValue) === 'number' && !isNaN(cellData.score.scoreValue) ? cellData.score.scoreValue.toFixed(3) : 'n/a'; - let scorePvalue = cellData.score.pValue; - if (scorePvalue === -1) { - scorePvalue = 'n/a'; - } - else { - scorePvalue = scorePvalue.toExponential(3); - } - let tooltipText = ''; - if (isColTask) { - tooltipText = `Column: ${header}\nRow: ${row}\nScore: ${scoreValue}\np-Value: ${scorePvalue}`; - } - else { - tooltipText = `Data Column: ${row}\nColumn: ${header}\nRow: ${category}\nScore: ${scoreValue}\np-Value: ${scorePvalue}`; - } - return tooltipText; - } - else { - // cell that have no p-values - return null; - } - } - onClick(tableCell) { - const cellData = select(tableCell).datum(); - log.debug('Cell click - data: ', cellData); - // save data for selected cell in sesisonStorage - let selCellObj; - // save selected cell in sessionStorage - if (cellData.measure !== null && cellData.score) { - const colLabel = this.body.selectAll('span.cross-selection').text(); - const rowLabels = []; - this.body.selectAll('td.cross-selection').each(function (d) { - const label = select(this).text(); - const rowspan = select(this).attr('rowspan'); - const obj = { label, rowspan }; - rowLabels.push(obj); - }); - // create selected cell object - selCellObj = { colLabel, rowLabels }; - } - else { - selCellObj = { colLabel: null, rowLabels: null }; - } - log.debug('selectionLabels: ', selCellObj); - const selCellObjString = JSON.stringify(selCellObj); - sessionStorage.setItem('touringSelCell', selCellObjString); - this.highlightSelectedCell(tableCell, cellData); - this.visualizeSelectedCell(tableCell, cellData); - } - onMouseOver(tableCell, state) { - if (select(tableCell).classed('score')) { - const tr = tableCell.parentNode; //current row - const tbody = tr.parentNode; //current body - const table = tbody.parentNode; //current table - const allTds = select(tr).selectAll('td'); - let index = -1; - const currLength = allTds.nodes().length; - // get current index of cell in row - allTds.nodes().forEach((tdNode, i) => { - if (tdNode === tableCell) { - index = i; - } - }); - // highlight all label cells in row - select(tr).selectAll('td:not(.score)').classed('cross-selection', state); - // highlight the first cell in the first row of the cells tbody - select(tbody).select('tr').select('td').classed('cross-selection', state); - // maxIndex is the maximum number of table cell in the table - const maxLength = select(tbody).select('tr').selectAll('td').nodes().length; - // if currMaxIndex and maxIndex are not the same -> increase headerIndex by one - // because the current row has one cell fewer - const headerIndex = (currLength === maxLength) ? index : index + 1; - // highlight column label - const allHeads = select(table).select('thead').selectAll('th'); - if (index > -1) { - // use header index - select(allHeads.nodes()[headerIndex]).select('div').select('span').classed('cross-selection', state); - } - } - } - highlightSelectedCell(tableCell, cellData) { - // remove bg highlighting from all tds - this.body.selectAll('td').classed('selectedCell', false); - if (cellData.score) { //Currenlty only cells with a score are calculated (no category or attribute label cells) - // Color table cell - select(tableCell).classed('selectedCell', true); // add bg highlighting - } - } - visualizeSelectedCell(tableCell, cellData) { - // remove all old details - const details = this.body.select('div.details'); - details.selectAll('*').remove(); // avada kedavra outdated details! - if (cellData.score) { //Currenlty only cells with a score are calculated (no category or attribute label cells) - const resultScore = cellData.score; - const measure = cellData.measure; - // Display details - if (measure) { - this.generateVisualDetails(details, measure, resultScore, cellData.setParameters); //generate description into details div - } - else { - details.append('p').text('There are no details for the selected table cell.'); - } - // display visualisation - if (measure.visualization) { - const visualization = measure.visualization; - if (cellData.setParameters) { - const d3v3Details = d3v3.select(details.node()); - visualization.generateVisualization(d3v3Details, cellData.setParameters, cellData.score); - } - } - } - } - // generates the detail inforamtion to the test and the remove button - generateVisualDetails(miniVisualisation, measure, measureResult, setParameters) { - const divDetailInfoContainer = miniVisualisation.append('div') - .classed('detailVisContainer', true); - //button for mini visualization removal - const that = this; - const detailRemoveButton = divDetailInfoContainer.append('button'); - detailRemoveButton.attr('class', 'btn btn-coral removeMiniVis-btn'); - detailRemoveButton.on('click', function () { that.removeCellDetails.bind(that)(miniVisualisation); }); - detailRemoveButton.html('x'); - const divDetailInfo = divDetailInfoContainer.append('div') - .classed('detailVis', true); - // the 2 compared sets - const setALabel = setParameters.setACategory ? setParameters.setACategory.label : setParameters.setADesc.label; - const setBLabel = setParameters.setBCategory ? setParameters.setBCategory.label : setParameters.setBDesc.label; - const detailSetInfo = divDetailInfo.append('div') - .classed('detailDiv', true); - if (setParameters.setACategory) { - detailSetInfo.append('span') - .classed('detail-label', true) - .text('Data Column: ') - .append('span') - .text(setParameters.setADesc.label); - detailSetInfo.append('span') - .text(' / '); - } - detailSetInfo.append('span') - .classed('detail-label', true) - .text('Comparing '); - detailSetInfo.append('span') - .html(setALabel + ' ') - .append('span') - .text('[' + measureResult.setSizeA + ']'); - detailSetInfo.append('span') - .classed('detail-label', true) - .text(' vs. '); - detailSetInfo.append('span') - .html(setBLabel + ' ') - .append('span') - .text('[' + measureResult.setSizeB + ']'); - // test value + p-value - const scoreValue = typeof (measureResult.scoreValue) === 'number' && !isNaN(measureResult.scoreValue) ? measureResult.scoreValue.toFixed(3) : 'n/a'; - const pValue = measureResult.pValue === -1 ? 'n/a' : measureResult.pValue.toExponential(3); - const detailInfoValues = divDetailInfo.append('div') - .classed('detailDiv', true); - // .text(`Test-Value: ${scoreValue}, p-Value: ${pValue}`); - detailInfoValues.append('span') - .classed('detail-label', true) - .text(measure.label + ': '); - detailInfoValues.append('span') - .text(scoreValue); - detailInfoValues.append('span') - .text(', '); - detailInfoValues.append('span') - .classed('detail-label', true) - .text('p-Value: '); - detailInfoValues.append('span') - .text(pValue); - // test description - divDetailInfo.append('div') - .classed('detailDiv', true) - .text('Description: ') - .append('span') - .text(measure.description); - } - // removes mini visualization with details, and highlighting - removeCellDetails(details) { - // remove bg highlighting from all tds - this.body.selectAll('div.table-container').selectAll('td').classed('selectedCell', false); - // remove saved selection from session storage - const selCellObj = { task: this.id, colLabel: null, rowLabels: null }; - log.debug('selectionLabels: ', selCellObj); - const selCellObjString = JSON.stringify(selCellObj); - sessionStorage.setItem('touringSelCell', selCellObjString); - // remove mini visualization with details - details.selectAll('*').remove(); - } -} -// creates legend for the p-value; copied from tdp_core: -// https://github.com/datavisyn/tdp_core/blob/keckelt/122/touring/src/lineup/internal/Touring/Tasks/Tasks.ts#L242 -const insertLegend = (parentElement) => { - const divLegend = parentElement.append('div').classed('measure-legend', true); - const svgLegendContainer = divLegend.append('svg') - .attr('width', '100%') - .attr('height', 50); - // .attr('viewBox','0 0 100% 35') - // .attr('preserveAspectRatio','xMaxYMin meet'); - const legendId = Date.now(); - const svgDefs = svgLegendContainer.append('defs').append('linearGradient') - .attr('id', 'pValue-gradLegend-' + legendId); - svgDefs.append('stop') - .attr('offset', '0%') - .attr('stop-color', '#000000'); - svgDefs.append('stop') - .attr('offset', '25%') - .attr('stop-color', '#FFFFFF'); - let xStart = 0; - const yStart = 0; - const barWidth = 300; - const barHeight = 10; - const space = 5; - const textHeight = 15; - const textWidth = 50; - const tickLength = 5; - const lineWidth = 1; - xStart = xStart + textWidth; - const svgLegend = svgLegendContainer.append('g'); - const svgLegendLabel = svgLegend.append('g'); - // label - svgLegendLabel.append('text') - .attr('x', xStart) - .attr('y', yStart + barHeight) - .attr('text-anchor', 'end') - .text('p-Value'); - xStart = xStart + space; - const svgLegendGroup = svgLegend.append('g'); - // bar + bottom line - svgLegendGroup.append('rect') - .attr('x', xStart).attr('y', yStart) - .attr('width', barWidth) - .attr('height', barHeight) - .style('fill', 'url(#pValue-gradLegend-' + legendId + ')'); - svgLegendGroup.append('line') - .attr('x1', xStart).attr('y1', yStart + barHeight) - .attr('x2', xStart + barWidth).attr('y2', yStart + barHeight) - .style('stroke-width', lineWidth).style('stroke', 'black'); - // label: 0 + tick - svgLegendGroup.append('text') - .attr('x', xStart).attr('y', yStart + barHeight + textHeight) - .attr('text-anchor', 'middle').text('0'); - svgLegendGroup.append('line') - .attr('x1', xStart).attr('y1', yStart) - .attr('x2', xStart).attr('y2', yStart + barHeight - (lineWidth / 2) + tickLength) - .style('stroke-width', lineWidth / 2).style('stroke', 'black'); - // label: 0.05 + tick - svgLegendGroup.append('text') - .attr('x', xStart + (barWidth * 0.25)).attr('y', yStart + barHeight + textHeight) - .attr('text-anchor', 'middle').text('0.05'); - svgLegendGroup.append('line') - .attr('x1', xStart + (barWidth * 0.25)).attr('y1', yStart + barHeight - (lineWidth / 2)) - .attr('x2', xStart + (barWidth * 0.25)).attr('y2', yStart + barHeight - (lineWidth / 2) + tickLength) - .style('stroke-width', lineWidth / 2).style('stroke', 'black'); - // label: 0.05 + tick - svgLegendGroup.append('text') - .attr('x', xStart + (barWidth * 0.5)).attr('y', yStart + barHeight + textHeight) - .attr('text-anchor', 'middle').text('0.1'); - svgLegendGroup.append('line') - .attr('x1', xStart + (barWidth * 0.5)).attr('y1', yStart + barHeight - (lineWidth / 2)) - .attr('x2', xStart + (barWidth * 0.5)).attr('y2', yStart + barHeight - (lineWidth / 2) + tickLength) - .style('stroke-width', lineWidth / 2).style('stroke', 'black'); - // label: 0.5 + tick - svgLegendGroup.append('text') - .attr('x', xStart + (barWidth * 0.75)).attr('y', yStart + barHeight + textHeight) - .attr('text-anchor', 'middle').text('0.5'); - svgLegendGroup.append('line') - .attr('x1', xStart + (barWidth * 0.75)).attr('y1', yStart + barHeight - (lineWidth / 2)) - .attr('x2', xStart + (barWidth * 0.75)).attr('y2', yStart + barHeight - (lineWidth / 2) + tickLength) - .style('stroke-width', lineWidth / 2).style('stroke', 'black'); - // label: 1 + tick - svgLegendGroup.append('text') - .attr('x', xStart + barWidth).attr('y', yStart + barHeight + textHeight) - .attr('text-anchor', 'middle').text('1'); - svgLegendGroup.append('line') - .attr('x1', xStart + barWidth).attr('y1', yStart) - .attr('x2', xStart + barWidth).attr('y2', yStart + barHeight - (lineWidth / 2) + tickLength) - .style('stroke-width', lineWidth / 2).style('stroke', 'black'); - // label: no p-value correction - svgLegendLabel.append('text') - .attr('x', xStart) - .attr('y', yStart + barHeight + 2 * textHeight) - .attr('text-anchor', 'start') - .text('No p-Value correction for multiple comparisons.'); -}; -export function textColor4Background(backgroundColor) { - let color = '#333333'; - if ('transparent' !== backgroundColor && hsl(backgroundColor).l < 0.5) { //transparent has lightness of zero - color = 'white'; - } - return color; -} -export function score2color(score) { - let background = '#ffffff'; //white - let foreground = '#333333'; //kinda black - if (score <= 0.05) { - // log.debug('bg color cahnge') - const calcColor = scaleLinear().domain([0, 0.05]).range(['#000000', '#FFFFFF']); - background = calcColor(score).toString(); - foreground = textColor4Background(background); - } - return { background, foreground }; -} -//# sourceMappingURL=Compare.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Compare.js.map b/dist/Taskview/tasks/Compare.js.map deleted file mode 100644 index 93eba4a..0000000 --- a/dist/Taskview/tasks/Compare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Compare.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/Compare.ts"],"names":[],"mappings":"AAAA;;;;gFAIgF;AAGhF,OAAO,EAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAY,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAA4E,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAG9I,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAAlC;;QACS,UAAK,GAAG,SAAS,CAAC;QAClB,OAAE,GAAG,SAAS,CAAC;QACf,cAAS,GAAG,KA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AK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEjE,+BAA+B;IAC/B,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC;SAC1B,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC;SACjB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,GAAG,UAAU,CAAC;SAC9C,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;SAC5B,IAAI,CAAC,iDAAiD,CAAC,CAAC;AAC7D,CAAC,CAAC;AAwBF,MAAM,UAAU,oBAAoB,CAAC,eAAuB;IAC1D,IAAI,KAAK,GAAG,SAAS,CAAC;IACtB,IAAI,aAAa,KAAK,eAAe,IAAI,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,EAAE,mCAAmC;QAC1G,KAAK,GAAG,OAAO,CAAC;KACjB;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,IAAI,UAAU,GAAG,SAAS,CAAC,CAAC,OAAO;IACnC,IAAI,UAAU,GAAG,SAAS,CAAC,CAAC,aAAa;IAGzC,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,+BAA+B;QAC/B,MAAM,SAAS,GAAG,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;QAEvF,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;QACzC,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;KAC/C;IAED,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,CAAC;AAClC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/tasks/Details.d.ts b/dist/Taskview/tasks/Details.d.ts deleted file mode 100644 index bb2b91c..0000000 --- a/dist/Taskview/tasks/Details.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Cohort } from '../../Cohort'; -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute } from '../../data/Attribute'; -import { ATask } from './ATask'; -export declare class Details extends ATask { - label: string; - id: string; - hasOutput: boolean; - private eventID; - private _entityName; - private $lineUpContainer; - private lineup; - supports(attributes: IAttribute[], cohorts: ICohort[]): boolean; - showSearchBar(): boolean; - show(columnHeader: HTMLDivElement, container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): Promise; - getData(attributes: IAttribute[], cohorts: Cohort[]): Promise; - createLineup(data: any, attributes: any, cohorts: any): Promise; - getCategoryColorsForColumn(mergedDataArray: any[], attr: IAttribute): { - name: string; - color: string; - }[]; - close(): void; - download(): Promise; -} diff --git a/dist/Taskview/tasks/Details.js b/dist/Taskview/tasks/Details.js deleted file mode 100644 index 1e32700..0000000 --- a/dist/Taskview/tasks/Details.js +++ /dev/null @@ -1,139 +0,0 @@ -import * as aq from 'arquero'; -import { select } from 'd3v7'; -import * as LineUpJS from 'lineupjs'; -import { colors } from '../../colors'; -import { getCohortData } from '../../rest'; -import { CohortColorSchema, getAnimatedLoadingText } from '../../util'; -import { getIdTypeFromCohort } from '../../utilIdTypes'; -import { DATA_LABEL } from '../visualizations'; -import { ATask } from './ATask'; -export class Details extends ATask { - constructor() { - super(...arguments); - this.label = `Inspect Items`; - this.id = `details`; - this.hasOutput = false; - this.eventID = 0; - this._entityName = null; - } - supports(attributes, cohorts) { - return cohorts.length > 0; - } - showSearchBar() { - return true; - } - async show(columnHeader, container, attributes, cohorts) { - super.show(columnHeader, container, attributes, cohorts); - const eventId = ++this.eventID; // get new eventID, we will compare it with the field again to see if it is still up to date - if (cohorts.length > 0) { - this.$lineUpContainer = this.body.append('div').classed('lineup-container', true).node(); - this.$lineUpContainer.insertAdjacentElement('beforeend', getAnimatedLoadingText('data')); - select(columnHeader).selectAll('.export').remove(); - const data = await this.getData(attributes, cohorts); - if (eventId !== this.eventID) { - return; - } - select(columnHeader).append('button') // add button after the data is available - .text('Export Data') - .attr('type', 'button') - .attr('title', 'Export to CSV') - .classed('btn btn-coral-prime export', true) - .style('width', '18rem').style('margin-left', '1rem').style('margin-right', '1rem') - .on('click', async () => this.download()); - columnHeader.insertAdjacentHTML('beforeend', ``); - this.createLineup(data, attributes, cohorts); - } - } - async getData(attributes, cohorts) { - const idType = getIdTypeFromCohort(cohorts[0]); - this._entityName = idType.entityName; - const dataPromises = cohorts - .map((cht) => { - const promise = new Promise(async (resolve, reject) => { - const chtDataPromises = attributes.map((attr) => attr.getData(cht.dbId)); - if (attributes.length === 0) { // If Lineup is empty, add entityName as single attribute to be able to show something - chtDataPromises.push(getCohortData({ cohortId: cht.dbId, attribute: idType.entityName })); - } - try { - const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort - let joinedData = aq.from(chtData[0]); - for (let i = 1; i < chtData.length; i++) { - joinedData = joinedData.join_full(aq.from(chtData[i])); - } - const labelTable = aq.table({ [DATA_LABEL]: [['' + cht.dbId]], ['id_' + cht.dbId]: ['true'] }); - joinedData = joinedData.join_left(labelTable, (data, label) => true); - resolve(joinedData.objects()); - } - catch (e) { - reject(e); - } - }); - return promise; - }); - const longData = (await Promise.all(dataPromises)).flat(); - const map = new Map(); - for (const item of longData) { - let storedItem = map.get(item[this._entityName]); - if (storedItem) { - storedItem[DATA_LABEL].push(...item[DATA_LABEL]); - storedItem = Object.assign(item, storedItem); - } - else { - storedItem = item; - storedItem[DATA_LABEL] = storedItem[DATA_LABEL].slice(); // clone as all items use the same object - } - map.set(item[this._entityName], storedItem); - } - const data = Array.from(map.values()); - return data; - } - async createLineup(data, attributes, cohorts) { - const builder = LineUpJS.builder(data); - // define id column - builder - .column(LineUpJS.buildStringColumn(this._entityName).label('Id').width(120)) - .column(LineUpJS - .buildCategoricalColumn(DATA_LABEL, cohorts.map((cht) => ({ name: '' + cht.dbId, label: cht.label, color: cht.colorTaskView }))) - .renderer('catheatmap', 'categorical') - .asSet()); - // define attribute columns - for (const attr of attributes) { - attr.type = attr.dataKey === this._entityName ? 'string' : attr.type; - if (attr.type === 'categorical') { - builder - .column(LineUpJS.buildCategoricalColumn(attr.dataKey).label(attr.label)); - } - else if (attr.type === 'number') { - builder.column(LineUpJS.buildNumberColumn(attr.dataKey).label(attr.label).colorMapping(colors.barColor)); - } - else { // text - builder.column(LineUpJS.buildStringColumn(attr.dataKey).label(attr.label).width(100)); - } - } - // builder.sidePanel(true); // sets side panel https://lineup.js.org/master/docs/classes/_builder_databuilder_.databuilder.html#sidepanel - // builder.summaryHeader(false); // sets the summary header for each column - // builder.defaultRanking(false); // sets selection,rank, and aggregation columns - builder.rowHeight(21); - builder.singleSelection(); // only single selection possible - this.$lineUpContainer.firstChild.remove(); - this.lineup = builder.build(this.$lineUpContainer); - } - getCategoryColorsForColumn(mergedDataArray, attr) { - const uniqueCat = Array.from(new Set(mergedDataArray.map((elem) => elem[attr.dataKey]))); - const categoryColors = uniqueCat.map((cat, i) => { return { name: cat, color: CohortColorSchema.get(i) }; }); - return categoryColors; - } - close() { - super.close(); - select(this.$columnHeader).selectAll('.export').remove(); - } - async download() { - const data = await this.lineup.data.exportTable(this.lineup.data.getRankings()[0], { separator: ';' }); - const b = new Blob([data], { type: 'text/csv' }); - const downloadHelper = this.$columnHeader.querySelector('a#downloadHelper'); - downloadHelper.href = URL.createObjectURL(b); - downloadHelper.download = 'coral-cohorts.csv'; - downloadHelper.click(); - } -} -//# sourceMappingURL=Details.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Details.js.map b/dist/Taskview/tasks/Details.js.map deleted file mode 100644 index 3792ca4..0000000 --- a/dist/Taskview/tasks/Details.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/Details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5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AAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAC7C,cAAc,CAAC,QAAQ,GAAG,mBAAmB,CAAC;QAC9C,cAAc,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CAEF"} \ No newline at end of file diff --git a/dist/Taskview/tasks/Filter.d.ts b/dist/Taskview/tasks/Filter.d.ts deleted file mode 100644 index 9ee1c8a..0000000 --- a/dist/Taskview/tasks/Filter.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Selection } from 'd3v7'; -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute } from '../../data/Attribute'; -import { AVegaVisualization } from '../visualizations/AVegaVisualization'; -import { ATask } from './ATask'; -export declare class Filter extends ATask { - label: string; - id: string; - hasOutput: boolean; - vis: AVegaVisualization; - $visContainer: HTMLDivElement; - controls: Selection; - private eventID; - visualizations: { - new (): AVegaVisualization; - }[]; - attributes: IAttribute[]; - cohorts: ICohort[]; - supports(attributes: IAttribute[], cohorts: ICohort[]): boolean; - showSearchBar(): boolean; - show(columnHeader: HTMLDivElement, container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): Promise; - addVisSelector(): void; - private show1Attribute; - private show2Attributes; - private showTsne; - set title(title: string); - setVisualizations(visualizations: { - new (): AVegaVisualization; - }[]): void; - showWithVis(vis: AVegaVisualization): Promise; -} diff --git a/dist/Taskview/tasks/Filter.js b/dist/Taskview/tasks/Filter.js deleted file mode 100644 index 80cda66..0000000 --- a/dist/Taskview/tasks/Filter.js +++ /dev/null @@ -1,213 +0,0 @@ -import { getAnimatedLoadingText, log } from '../../util'; -import { AreaChart } from '../visualizations/AreaChart'; -import { DensityPlot } from '../visualizations/DensityPlot'; -import { GroupedBoxplot } from '../visualizations/GroupedBoxplot'; -import { VegaGroupedHistogram } from '../visualizations/GroupedHistogram'; -import { KaplanMeierPlot } from '../visualizations/KaplanMeierPlot'; -import { Scatterplot } from '../visualizations/Scatterplot'; -import { ATask } from './ATask'; -export class Filter extends ATask { - constructor() { - super(...arguments); - this.label = `View, Filter & Split`; - this.id = `filter`; - this.hasOutput = true; - this.eventID = 0; - } - supports(attributes, cohorts) { - return cohorts.length > 0; - } - showSearchBar() { - return true; - } - async show(columnHeader, container, attributes, cohorts) { - super.show(columnHeader, container, attributes, cohorts); - if (attributes.length > 0) { - this.addVisSelector(); - } - this.$visContainer = this.body.append('div').classed('vis-container', true).node(); - // TODO #427 check number of attributes and theid types to define the visualizations - switch (attributes.length) { - case 0: - this.$visContainer.innerHTML = ''; - break; - case 1: - this.show1Attribute(attributes[0], cohorts); - break; - case 2: - this.show2Attributes(attributes, cohorts); - break; - default: // 3 or more - this.showTsne(attributes, cohorts); - break; - } - } - addVisSelector() { - this.header.append('div') - .classed('vis-selector', true) - .html(` -
-
- - -
- -
- `); - } - async show1Attribute(attribute, cohorts) { - this.attributes = [attribute]; - this.cohorts = cohorts; - if (cohorts.length === 0) { - this.$visContainer.innerHTML = '

Select one or more cohorts to see visualizations

'; - } - else if (cohorts.length >= 1) { - if (attribute.type === 'number') { - const visualizations = [DensityPlot]; - if (attribute.id === 'days_to_death' || attribute.id === 'days_to_last_followup') { - visualizations.unshift(KaplanMeierPlot); - } - this.setVisualizations(visualizations); - } - else { - this.setVisualizations([VegaGroupedHistogram]); - } - } - } - async show2Attributes(attributes, cohorts) { - this.attributes = attributes; - this.cohorts = cohorts; - if (cohorts.length === 0) { - this.$visContainer.innerHTML = '

Select one or more cohorts to see visualizations

'; - } - else if (cohorts.length >= 1) { - if (attributes.every((attr) => attr.type === 'number')) { - const visualizations = [Scatterplot]; - if (attributes.every((attr) => ['days_to_death', 'days_to_last_followup'].includes(attr.id))) { - visualizations.unshift(KaplanMeierPlot); - } - this.setVisualizations(visualizations); - } - else if (attributes.every((attr) => ['categorical', 'string'].includes(attr.type))) { - this.setVisualizations([AreaChart]); - } - else if (attributes.some((attr) => attr.type === 'number') && attributes.some((attr) => ['categorical', 'string'].includes(attr.type))) { - this.setVisualizations([GroupedBoxplot]); - } - else { - this.$visContainer.innerHTML = 'Currently no visualization supports the selected attribute combination!'; - } - } - } - async showTsne(attributes, cohorts) { - this.$visContainer.innerHTML = 'Currently, we only support the visualization of up to two attributes.'; - // TODO #647 fix tsne implementation - // this.attributes = attributes; - // this.cohorts = cohorts; - // this.setVisualizations([TsneScatterplot]); - } - set title(title) { - this.header.select('.vis-selector .vis-type .type').each(function () { this.textContent = title; }); - } - setVisualizations(visualizations) { - this.visualizations = visualizations; - //Show the first one - if (visualizations.length > 0) { - this.showWithVis(new visualizations[0]()); - // only add dropdown caret for vis types if there are more than one - this.header.select('.vis-selector .vis-type button').classed('dropdown-toggle', visualizations.length > 1); - const entries = this.header.select('.vis-selector .vis-type ul.dropdown-menu') - .selectAll('li').data(visualizations); - entries.enter() - .append('li').classed('dropdown-item', true) - .classed('selected', (vis) => vis.NAME === this.vis.constructor.NAME) - .append('a').text((vis) => vis.NAME) // cast to any to access static property - .on('click', (event, visClass) => { - if (visClass.NAME !== this.vis.constructor.NAME) { //check if vis has changed - this.header.selectAll('.vis-selector .vis-type li').classed('selected', (vis) => vis.NAME === visClass.NAME); - this.showWithVis(new visClass()); - } - }); - } - } - async showWithVis(vis) { - const eventId = ++this.eventID; // get new eventID, we will compare it with the field again to see if it is still up to date - // remove old vis - if (this.vis) { - this.vis.destroy(); - } - this.$visContainer.innerHTML = ''; - // show loading - const loading = getAnimatedLoadingText('data'); - this.$visContainer.appendChild(loading); // show loader - // set new vis - this.vis = vis; - this.title = vis.constructor.NAME; // access static property from instance via constructor property - try { - await vis.show(this.$visContainer, this.attributes, this.cohorts); - if (eventId !== this.eventID) { // remove the visualization if we changed it in the meantime - vis.destroy(); - } - else { - //Show options - const configs = vis.getConfig(); - const entries = this.header.select('.vis-selector .vis-header') - .selectAll('.vis-config').data(configs, (d) => d.label); - const configGrps = entries.enter() - .append('div').classed('vis-config btn-group', true); - configGrps - .append('button').attr('type', 'button') - .classed('btn btn-coral', true) // dropdown-toggle class to avoid dropdown caret symbol - .attr('data-bs-toggle', 'dropdown').attr('title', (d) => `${d.label} Config`) - .append('span').classed('icon', true).html((d) => d.icon); - const configDropdown = configGrps - .append('ul').classed('dropdown-menu dropdown-menu-right', true) - .selectAll('li').data((d) => d.groups.flatMap((group) => [group, ...group.options])); // headers and options are on the same level, so create one array that contains both - const configHeader = configDropdown.enter() - .append('li').attr('class', (d) => d.options ? 'dropdown-header' : 'dropdown-item') - .html((d) => 'icon' in d ? `${d.icon} ${d.label}` : `${d.label}`); - configHeader.filter('.dropdown-item') - .attr('data-group', (d) => d.group.label) - .classed('selected', (d) => d.selected) - .on('click', (evemt, d) => { - this.header - .selectAll(`li.dropdown-item[data-group="${d.group.label}"]`) - .classed('selected', (option) => d === option); - vis.selectOption(d); - }); - entries.exit().remove(); - } - //remove loading - if (this.$visContainer.contains(loading)) { - loading.remove(); - } - } - catch (e) { - let msg = 'Creating the visualization failed.'; - log.error(msg, e); - //remove loading - if (this.$visContainer.contains(loading)) { - loading.remove(); - } - let icon = ``; - if (e.message === 'Internal Server Error') { - msg = 'Could not retrieve the data.'; - icon = ``; - } - this.$visContainer.insertAdjacentHTML('afterbegin', ` -

- ${icon} - ${msg} -

- `); - } - } -} -//# sourceMappingURL=Filter.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Filter.js.map b/dist/Taskview/tasks/Filter.js.map deleted file mode 100644 index d30a905..0000000 --- a/dist/Taskview/tasks/Filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/Filter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,sBAAsB,EAAE,GAAG,EAAC,MAAM,YAAY,CAAC;AACvD,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAGtD,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAo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B;YAED,IAAI,IAAI,GAAG,gDAAgD,CAAC;YAC5D,IAAI,CAAC,CAAC,OAAO,KAAK,uBAAuB,EAAE;gBACzC,GAAG,GAAG,8BAA8B,CAAC;gBACrC,IAAI,GAAG,wDAAwD,CAAC;aACjE;YAED,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,YAAY,EAAE;;YAE9C,IAAI;YACJ,GAAG;;OAER,CAAC,CAAC;SACJ;IAEH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/tasks/Prevalence.d.ts b/dist/Taskview/tasks/Prevalence.d.ts deleted file mode 100644 index d47f1a4..0000000 --- a/dist/Taskview/tasks/Prevalence.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute } from '../../data/Attribute'; -import { ATask } from './ATask'; -export declare class Prevalence extends ATask { - label: string; - id: string; - hasOutput: boolean; - supports(attributes: IAttribute[], cohorts: ICohort[]): boolean; - showSearchBar(): boolean; - private prevalencePacks; - private baseCohort; - private baseCohortSize; - private cbExclMissingVal; - private excludeMissingValues; - static readonly EXCL_MISSING_VAL_TEXT = "excl. missing values"; - static readonly INCL_MISSING_VAL_TEXT = "incl. missing values"; - static readonly INITIAL_CHT_LABEL = "Initial Cohort"; - static readonly TASK_OPTION_LABEL = "Applicable Tasks"; - private currentState; - show(columnHeader: HTMLDivElement, container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): void; - private addCheckboxForMissingValues; - private changeMissingValueInclusion; - private createPrevalenceCohortPack; - private createCohortAndTasksConfig; - private addPackElements; - private createLegendItem; - private createBarStructure; - private createNonClickableTasks; - private createClickableTasks; - private addMouseEventListernersToElements; - handleOptionSelectionChange(chtIndex: number, clickedTask: HTMLDivElement): Promise; - private updatePrevalencePack; - private startBarLoadingAnimation; - private startTaskLoadingAnimation; - private stopBarLoadingAnimation; - private stopTaskLoadingAnimation; - private updateBars; - private setBaseCohort; - close(): void; -} diff --git a/dist/Taskview/tasks/Prevalence.js b/dist/Taskview/tasks/Prevalence.js deleted file mode 100644 index e4386df..0000000 --- a/dist/Taskview/tasks/Prevalence.js +++ /dev/null @@ -1,843 +0,0 @@ -import { format, select, transition } from 'd3v7'; -import tippy from 'tippy.js'; -import { getRootCohort } from '../../cohortview'; -import { colors } from '../../colors'; -import { multiFilter } from '../../data/Attribute'; -import { createHTMLElementWithClasses, getSessionStorageItem, setSessionStorageItem } from '../../util'; -import { easyLabelFromFilter } from '../../utilLabels'; -import { ATask } from './ATask'; -export class Prevalence extends ATask { - constructor() { - super(...arguments); - this.label = `Prevalence`; - this.id = `prevalence`; - this.hasOutput = false; - this.prevalencePacks = []; - this.excludeMissingValues = true; - this.currentState = []; - } - supports(attributes, cohorts) { - return cohorts.length > 0; - } - showSearchBar() { - return false; - } - show(columnHeader, container, attributes, cohorts) { - super.show(columnHeader, container, attributes, cohorts); - // log parameters - // log.debug('PREVALENCE.show: ', {container, attributes, cohorts, body: this.body.node()}); - // check if checkbox was already checked - this.excludeMissingValues = this.excludeMissingValues === null ? true : this.excludeMissingValues; - // add checkbox für missin values - this.addCheckboxForMissingValues(this.body.node()); - this.prevalencePacks = []; - this.setBaseCohort(); // set base cohort - // create for each selected cohort a prevalence pack - for (let chtIndex = 0; chtIndex < cohorts.length; chtIndex++) { - const parentTaskIDs = cohorts[chtIndex].parents.map((elem) => elem.id); - const parentTaskId = parentTaskIDs.length === 0 ? null : parentTaskIDs[0]; - // get current cohort - let currentCht; - if (parentTaskId === null) { - currentCht = this.baseCohort; - } - else { - currentCht = cohorts[chtIndex]; - } - // create prevalence pack for the current cohort - this.createPrevalenceCohortPack(this.body.node(), chtIndex, parentTaskId, currentCht); - } - // set default value of task selection - for (const currPack of this.prevalencePacks) { - const currStateIdx = this.currentState.map((conf) => conf.chtId).indexOf(currPack.chtId); - if (currStateIdx !== -1) { - const currState = this.currentState[currStateIdx]; - const currContainer = currPack.container; - for (const at of currState.activeTaskIds) { - currContainer.querySelector(`.${at}`).classList.add('active'); - } - this.updatePrevalencePack(currPack); - } - else if (currPack.parentTaskId !== null) { - const currContainer = currPack.container; - const taskOptions = Array.from(currContainer.querySelectorAll('.ref-task-option')); - const lastTask = taskOptions[taskOptions.length - 1]; - if (lastTask) { - lastTask.click(); - } - } - else { - // in case that the root cohort was selected as input cohort for the prevalence task - this.updatePrevalencePack(currPack); - } - } - } - addCheckboxForMissingValues(container) { - const divExclContainer = document.createElement('div'); - divExclContainer.classList.add('exclude-container'); - container.appendChild(divExclContainer); - // checkbox: manual created with html div elements - const checkbox = document.createElement('div'); - checkbox.classList.add('prev-checkbox'); - if (this.excludeMissingValues === true) { - checkbox.classList.add('active'); - } - // checkbox indicator - const cbIndicator = document.createElement('div'); - cbIndicator.classList.add('checkbox-indicator'); - checkbox.appendChild(cbIndicator); - divExclContainer.appendChild(checkbox); - // add loading effect icon container - const cbCtrLoading = createHTMLElementWithClasses('div', ['icon-container']); - cbCtrLoading.toggleAttribute('hidden'); - checkbox.appendChild(cbCtrLoading); - checkbox.addEventListener('click', async (event) => { - this.excludeMissingValues = !this.excludeMissingValues; - // toggle active state - checkbox.classList.toggle('active'); - cbIndicator.toggleAttribute('hidden', true); // hide check mark indicator - checkbox.classList.add('color-loading'); // add loading style for checkbox - cbCtrLoading.removeAttribute('hidden'); // make loading indicator visible - await this.changeMissingValueInclusion(this.excludeMissingValues); - cbCtrLoading.toggleAttribute('hidden', true); // hide loading indicator - checkbox.classList.remove('color-loading'); // remove loading style for checkbox - cbIndicator.removeAttribute('hidden'); // make check mark indicator visible - }); - // label - const divLabelContainer = document.createElement('div'); - divLabelContainer.classList.add('label-excl-container'); - divExclContainer.appendChild(divLabelContainer); - const labelMissingVal = document.createElement('div'); - labelMissingVal.classList.add('label-excl'); - labelMissingVal.innerHTML = 'Filter out the missing values from the reference cohorts.'; - tippy(labelMissingVal, { - content: ` -

Select this option to always exclude missing data from the reference cohorts.

-

- This means that unknown values in one of the filter steps will not be included in the prevalence calculation, even if a filter is not applied to the reference cohort. - This is done for each reference cohort individually. -

- ` - }); - divLabelContainer.appendChild(labelMissingVal); - } - async changeMissingValueInclusion(exclState) { - const updatePromises = []; - // update data based on exclusion state - for (const currPack of this.prevalencePacks) { - if (currPack.parentTaskId !== null) { - // update prevalence calculations - updatePromises.push(this.updatePrevalencePack(currPack)); - } - } - // wait until all prevalence are updated - await Promise.all(updatePromises); - } - createPrevalenceCohortPack(container, chtIndex, parentTaskId, cohort) { - // log.debug('cohort pack: ', {container, chtIndex, parentTaskId, cohort}); - const divPrevPack = document.createElement('div'); - divPrevPack.classList.add('prevalence-cohort-pack'); - container.appendChild(divPrevPack); - const bloodline = cohort.getBloodline(); - // get all tasks from the bloodline - // fist task is the one before the cohort - let tasks = bloodline.filter((elem) => elem.elemType === 'task').map((elem) => elem.obj); - // reverse order of tasks -> now the first element is the first task after root cohort - tasks = tasks.reverse(); - // get the current cohort config and its tasks attribute and value pairs - const chtConfig = this.createCohortAndTasksConfig(cohort, bloodline, tasks); - // add elements for each input cohort to calculate prevelence - this.addPackElements(divPrevPack, chtIndex, chtConfig, tasks); - // save the pack (reference and config) data into pack array - this.prevalencePacks.push({ chtIndex, chtId: cohort.dbId, container: divPrevPack, parentTaskId, chtConfig }); - } - // crates fot each cohort a cohort and its tasks attribute value pair configuration - createCohortAndTasksConfig(cohort, bloodline, tasks) { - const chtSize = cohort.getRetrievedSize(); - // const refSize = bloodline[bloodline.length - 1].size; // is the root cohort size - const refSize = chtSize; - // create for each cohort the filter task in combination with the values - const attrVal = tasks.map((elem) => { - // get the index of the current task in the bloodline - const currTaskIdx = bloodline.map((bItem) => bItem.obj.id).indexOf(elem.id); - // the corresponding cohort to the task is always the element before the task in the bloodline - const currChild = bloodline[currTaskIdx - 1].obj; - const taskAttValue = { - taskId: elem.id, - attributes: elem.attributes, - values: currChild.values, - }; - return taskAttValue; - }); - // cohort configuration object with the cohort, sizes and filters used to for the creation - const cohortAndTasksConfig = { - cht: cohort, - size: chtSize, - refSize, - attributeValue: attrVal - }; - return cohortAndTasksConfig; - } - // add all the elements that are needed for an input cohort - addPackElements(ctrPrevPack, chtIndex, chtConfig, tasks) { - // split into 3 areas: 1. legend + clickable tasks, 2. bar, 3. scale with the values - // 1. Area _______________________________________________ - const divLegend = document.createElement('div'); - divLegend.classList.add('prev-legends-tasks'); - ctrPrevPack.appendChild(divLegend); - // ### 1. row: dataset / base cohort - // row container - const divAllCreation = document.createElement('div'); - divAllCreation.classList.add('prev-all-creation', 'prev-row', 'legend-task-row'); - // legend container - const divAllLabel = document.createElement('div'); - divAllLabel.classList.add('prev-all-label', 'prev-lable-cntr'); - divAllCreation.appendChild(divAllLabel); - // legend all (base cohort) - const divLegendAll = this.createLegendItem(['prev-legend-all'], this.baseCohort.label); - divLegendAll.title = `${this.baseCohort.label}`; - divAllLabel.appendChild(divLegendAll); - // enter mouse hover - divLegendAll.addEventListener('mouseenter', (event) => { - event.stopImmediatePropagation(); - this.baseCohort.representation.getRepresentation().dispatchEvent(new Event('mouseenter')); - }); - // leave mouse hover - divLegendAll.addEventListener('mouseleave', (event) => { - event.stopImmediatePropagation(); - this.baseCohort.representation.getRepresentation().dispatchEvent(new Event('mouseleave')); - }); - // add eye icon for the dataset bar - const iconEye = document.createElement('i'); - iconEye.classList.add('fas', 'fa-eye', 'prev-show-dataset-eye'); - iconEye.dataset.showDatasetBar = '1'; - iconEye.title = 'Show/Hide base cohort bar'; - iconEye.addEventListener('click', async (event) => { - const showDatasetBar = Boolean(Number(iconEye.dataset.showDatasetBar)); - const toggled = !showDatasetBar; - iconEye.dataset.showDatasetBar = toggled ? '1' : '0'; - const updatePromises = []; - // update data based on exclusion state - for (const currPack of this.prevalencePacks) { - if (currPack.parentTaskId !== null) { - // update prevalence calculations - updatePromises.push(this.updatePrevalencePack(currPack)); - } - } - // wait until all prevalence are updated - await Promise.all(updatePromises); - }); - divAllCreation.appendChild(iconEye); - // ### 2. row: reference cohort - // row container - const divRefCreation = document.createElement('div'); - divRefCreation.classList.add('prev-ref-creation', 'prev-row', 'legend-task-row'); - // legend container - const divRefLabel = document.createElement('div'); - divRefLabel.classList.add('prev-ref-label', 'prev-lable-cntr'); - divRefCreation.appendChild(divRefLabel); - // legend reference - const divLegendRef = this.createLegendItem(['prev-legend-ref'], 'Reference, defined by'); - divRefLabel.appendChild(divLegendRef); - // tasks container - // clickable taks - // task container (containes all tasks) - const divRefTaskContainer = document.createElement('div'); - divRefTaskContainer.classList.add('ref-task-container'); - divRefCreation.appendChild(divRefTaskContainer); - //add different task options (tasks with their attributes) - const taskAndAttribute = tasks.map((elem) => { - const values = chtConfig.attributeValue.filter((conf) => conf.taskId === elem.id)[0].values; - return { - task: elem, - values - }; - }); - // tasks - const dataCellsRef = select(divRefTaskContainer).selectAll('div.ref-task-option').data(taskAndAttribute, (d) => d.task.id); - // create buttons for the tasks - const enterSelectionRef = dataCellsRef.enter(); - enterSelectionRef - .append('div') - .classed('ref-task-option', true) - .classed('task-option', true) - .each((d, index, nodes) => { - this.createClickableTasks(d, chtIndex, index, nodes); - }); - // ### 3. row: cohort - // row container - const divChtCreation = document.createElement('div'); - divChtCreation.classList.add('prev-cht-creation', 'prev-row', 'legend-task-row'); - // legend container - const divChtlabel = document.createElement('div'); - divChtlabel.classList.add('prev-cht-label', 'prev-lable-cntr'); - divChtCreation.appendChild(divChtlabel); - // legend cohort (input cohort) - const currCht = chtConfig.cht; - // get the styled cohort label - const currLabel = currCht.getHTMLLabel(); - const divLegendCht = this.createLegendItem(['prev-legend-cht'], currLabel, currCht.colorTaskView); - divLegendCht.title = `${currCht.label} (All filters are used to create this cohort.)`; - divChtlabel.appendChild(divLegendCht); - // enter mouse hover - divLegendCht.addEventListener('mouseenter', (event) => { - event.stopImmediatePropagation(); - currCht.representation.getRepresentation().dispatchEvent(new Event('mouseenter')); - }); - // leave mouse hover - divLegendCht.addEventListener('mouseleave', (event) => { - event.stopImmediatePropagation(); - currCht.representation.getRepresentation().dispatchEvent(new Event('mouseleave')); - }); - // tasks container - // clickable taks - // task container (containes all tasks) - const divChtTaskContainer = document.createElement('div'); - divChtTaskContainer.classList.add('cht-task-container'); - divChtCreation.appendChild(divChtTaskContainer); - // tasks - const dataCellsCht = select(divChtTaskContainer).selectAll('div.cht-task-option').data(taskAndAttribute, (d) => d.task.id); - // create buttons for the tasks - const enterSelectionCht = dataCellsCht.enter(); - enterSelectionCht - .append('div') - .classed('cht-task-option', true) - .classed('task-option', true) - // .classed('active', true) - .each((d, index, nodes) => { - this.createNonClickableTasks(d, chtIndex, index, nodes); - }); - // add all row containers - divLegend.appendChild(divAllCreation); - divLegend.appendChild(divRefCreation); - divLegend.appendChild(divChtCreation); - // 2. Area _______________________________________________ - // bars container - const divResult = document.createElement('div'); - divResult.classList.add('prev-result', 'prev-row'); - ctrPrevPack.appendChild(divResult); - // bars - const divResultBar = document.createElement('div'); - divResultBar.classList.add('prev-result-bar'); - divResult.appendChild(divResultBar); - this.createBarStructure(divResultBar, chtConfig.cht.colorTaskView); - // scale label space at the end - const divBarSpace = document.createElement('div'); - divBarSpace.classList.add('prev-label-space'); - divResult.appendChild(divBarSpace); - // add max label for the scale - const maxScaleLable = createHTMLElementWithClasses('div', ['prev-max-scale-label']); - maxScaleLable.innerHTML = `${this.baseCohortSize}`; - divBarSpace.appendChild(maxScaleLable); - // 3. Area _______________________________________________ - // label (= space for size label) + scale (+ size indicators) + label space - const divScale = document.createElement('div'); - divScale.classList.add('prev-result-scale', 'prev-row'); - ctrPrevPack.appendChild(divScale); - // scale - const divScaleSizes = document.createElement('div'); - divScaleSizes.classList.add('prev-scale-sizes'); - divScale.appendChild(divScaleSizes); - // container for the lower scale elements - const lowerScales = createHTMLElementWithClasses('div', ['prev-lower-scales']); - divScaleSizes.appendChild(lowerScales); - // dataset scale - const divScaleDataset = document.createElement('div'); - divScaleDataset.classList.add('prev-scale-dataset', 'prev-scale-elem'); - // divScaleSizes.appendChild(divScaleDataset); - lowerScales.appendChild(divScaleDataset); - // -> fist tick - const divScaleFistTick = document.createElement('div'); - divScaleFistTick.classList.add('prev-scale-first-tick'); - divScaleDataset.appendChild(divScaleFistTick); - // reference scale - const divScaleRef = document.createElement('div'); - divScaleRef.classList.add('prev-scale-reference', 'prev-scale-elem', 'prev-value-reference'); - // divScaleSizes.appendChild(divScaleRef); - lowerScales.appendChild(divScaleRef); - // -> tick - const divScaleRefTick = document.createElement('div'); - divScaleRefTick.classList.add('scale-reference-tick'); - divScaleRef.appendChild(divScaleRefTick); - // -> label container - const divScaleRefLabelContainer = document.createElement('div'); - divScaleRefLabelContainer.classList.add('scale-reference-container'); - divScaleRef.appendChild(divScaleRefLabelContainer); - // -> label prevalence (percentage) - const divScaleRefPercentage = document.createElement('div'); - divScaleRefPercentage.classList.add('scale-ref-percentage'); - divScaleRefPercentage.innerHTML = '100%'; - divScaleRefLabelContainer.appendChild(divScaleRefPercentage); - // -> label size - const ctrRefSize = createHTMLElementWithClasses('div', ['scale-ctr-ref-size']); - divScaleRefLabelContainer.appendChild(ctrRefSize); - const divScaleRefSize = document.createElement('div'); - divScaleRefSize.classList.add('scale-ref-size'); - ctrRefSize.appendChild(divScaleRefSize); - // add info icon for exluded missing values - const infoLable = createHTMLElementWithClasses('div', ['prev-info-bar-label']); - infoLable.toggleAttribute('hidden', true); // hide at the beginning - ctrRefSize.appendChild(infoLable); - const infoIcon = createHTMLElementWithClasses('i', ['fas', 'fa-info-circle']); - tippy(infoIcon, { - content: `Reference doesn't equal dataset,
- because samples with missing values are filtered out.` - }); - infoLable.appendChild(infoIcon); - // cohort scale - const divScaleCohort = document.createElement('div'); - divScaleCohort.classList.add('prev-scale-cohort', 'prev-scale-elem', 'prev-value-cohort'); - // divScaleSizes.appendChild(divScaleCohort); - lowerScales.appendChild(divScaleCohort); - // -> tick - const divScaleChtTick = document.createElement('div'); - divScaleChtTick.classList.add('scale-cohort-tick'); - divScaleCohort.appendChild(divScaleChtTick); - // -> label size container - const divScaleCohortContainer = document.createElement('div'); - divScaleCohortContainer.classList.add('scale-cohort-container'); - divScaleCohort.appendChild(divScaleCohortContainer); - // -> label prevalence (percentage) - const divScaleCohortPercentage = document.createElement('div'); - divScaleCohortPercentage.classList.add('scale-cohort-percentage'); - const cohortColor = chtConfig.cht.colorTaskView === null ? 'white' : chtConfig.cht.colorTaskView; - divScaleCohortPercentage.style.background = `linear-gradient(to right, ${cohortColor} 0%, white 100%)`; - // divScaleCohortPercentage.style.background = `linear-gradient(to right, ${cohortColor} 0%, white 25%, white 100%)`; - divScaleCohortContainer.appendChild(divScaleCohortPercentage); - // -> label size - const divScaleCohortSize = document.createElement('div'); - divScaleCohortSize.classList.add('scale-cohort-size'); - divScaleCohortContainer.appendChild(divScaleCohortSize); - // scale label space at the end - const divScaleSpace = document.createElement('div'); - divScaleSpace.classList.add('prev-label-space'); - divScale.appendChild(divScaleSpace); - } - createLegendItem(cssClasses, label, color = null) { - // legend item - const divLegend = document.createElement('div'); - divLegend.classList.add('prev-legend-item', ...cssClasses); - // mark - const divLegMark = document.createElement('div'); - divLegMark.classList.add('prev-legend-mark'); - if (color !== null) { - divLegMark.style.background = color; - } - divLegend.appendChild(divLegMark); - // text - const divLegText = document.createElement('div'); - divLegText.classList.add('prev-legend-text'); - divLegText.innerHTML = label; - divLegend.appendChild(divLegText); - return divLegend; - } - // create the bar structure for a cohort - createBarStructure(ctrBars, colorCht) { - // dataset bar (referenve + filterted out) - const divDataset = document.createElement('div'); - divDataset.classList.add('bar-dataset'); - ctrBars.appendChild(divDataset); - // zero line bar -> needed so that the scale is aligned correctly - const divZero = createHTMLElementWithClasses('div', ['bar', 'prev-value-zero']); - divDataset.appendChild(divZero); - // reference bar - const divReference = document.createElement('div'); - divReference.classList.add('bar-reference', 'bar', 'prev-value-reference'); - divDataset.appendChild(divReference); - // cohort bar - const divCohort = document.createElement('div'); - divCohort.classList.add('bar-cohort', 'bar', 'prev-value-cohort'); - divCohort.style.background = colorCht; - divDataset.appendChild(divCohort); - // error bars for confidence interval - const ctrErrorBars = createHTMLElementWithClasses('div', ['bar', 'prev-container-ci-bar']); - divCohort.appendChild(ctrErrorBars); - const barError = createHTMLElementWithClasses('div', ['prev-ci-bar-error']); - ctrErrorBars.appendChild(barError); - const barErrorLeft = createHTMLElementWithClasses('div', ['prev-ci-bar-error-line', 'side']); - const barErrorMiddle = createHTMLElementWithClasses('div', ['prev-ci-bar-error-line', 'middle']); - const barErrorRight = createHTMLElementWithClasses('div', ['prev-ci-bar-error-line', 'side']); - barError.appendChild(barErrorLeft); - barError.appendChild(barErrorMiddle); - barError.appendChild(barErrorRight); - } - // create all task options for an input cohort - createNonClickableTasks(d, chtIndex, index, nodes) { - const currNode = nodes[index]; - const currTask = d.task; - const taskRep = currTask.representation.getRepresentation(); - // add the task id as class - currNode.classList.add(currTask.id); - // checkbox - const checkbox = document.createElement('div'); - // checkbox.classList.add('task-checkbox'); - checkbox.classList.add('prev-checkbox'); - // checkbox indicator - const cbIndicator = document.createElement('div'); - // cbIndicator.classList.add('task-checkbox-indicator'); - cbIndicator.classList.add('checkbox-indicator'); - checkbox.appendChild(cbIndicator); - // label - const label = document.createElement('div'); - label.classList.add('task-label'); - // add checkbox and label - currNode.appendChild(checkbox); - currNode.appendChild(label); - // get attribute label - const attrLabel = currTask.label; - // get all values for the task - const values = d.values; - // get all attribtues for the task - const attributes = d.task.attributes; - // get all value labels for all attributes - const valueLabel = attributes.map((attr, i) => { - let attributeRangeLabel; - if (Array.isArray(values[i])) { - // TODO labels - // attributeRangeLabel = (values[i] as INumRange[]).map((val) => labelFromFilter(val, attr)).join('/'); - attributeRangeLabel = values[i].map((val) => easyLabelFromFilter(val, attr.label)).join('/'); - } - else { - // TODO labels - // attributeRangeLabel = labelFromFilter((values[i] as IEqualsList), attr); - attributeRangeLabel = easyLabelFromFilter(values[i], attr.label); - } - return attributeRangeLabel; - }).join(', '); - // set text for the task html element - label.innerHTML = `${attrLabel}: ${valueLabel}`; - // set tootip - tippy(label, { - content: `${attrLabel}: ${valueLabel}` - }); - } - // create all task options for an referce cohort - createClickableTasks(d, chtIndex, index, nodes) { - const currNode = nodes[index]; - const currTask = d.task; - const taskRep = currTask.representation.getRepresentation(); - // add the task id as class - currNode.classList.add(currTask.id); - // checkbox - const checkbox = document.createElement('div'); - // checkbox.classList.add('task-checkbox'); - checkbox.classList.add('prev-checkbox'); - // checkbox indicator - const cbIndicator = document.createElement('div'); - // cbIndicator.classList.add('task-checkbox-indicator'); - cbIndicator.classList.add('checkbox-indicator'); - checkbox.appendChild(cbIndicator); - // add loading effect icon container - const cbCtrLoading = createHTMLElementWithClasses('div', ['icon-container']); - cbCtrLoading.toggleAttribute('hidden', true); - checkbox.appendChild(cbCtrLoading); - // label - const label = document.createElement('div'); - label.classList.add('task-label'); - // add checkbox and label - currNode.appendChild(checkbox); - currNode.appendChild(label); - // get attribute label - const attrLabel = currTask.label; - // get all values for the task - const values = d.values; - // get all attribtues for the task - const attributes = d.task.attributes; - // get all value labels for all attributes - const valueLabel = attributes.map((attr, i) => { - let attributeRangeLabel; - if (Array.isArray(values[i])) { - // TODO labels - // attributeRangeLabel = (values[i] as INumRange[]).map((val) => labelFromFilter(val, attr)).join('/'); - attributeRangeLabel = values[i].map((val) => easyLabelFromFilter(val, attr.label)).join('/'); - } - else { - // TODO labels - // attributeRangeLabel = labelFromFilter((values[i] as IEqualsList), attr); - attributeRangeLabel = easyLabelFromFilter(values[i], attr.label); - } - return attributeRangeLabel; - }).join(', '); - // set text for the task html element - label.innerHTML = `${attrLabel}: ${valueLabel}`; - // set tootip - tippy(label, { - content: `${attrLabel}: ${valueLabel}` - }); - // add mouse enter and leave events (highlighting for the task in overview) - this.addMouseEventListernersToElements(currNode, taskRep); - // add click event (toggle task) - currNode.addEventListener('click', async (event) => { - event.stopPropagation(); - await this.handleOptionSelectionChange(chtIndex, currNode); - }); - } - // handle highlighting for the task options an their orinals in the overview - addMouseEventListernersToElements(prevElem, overviewElem) { - if (prevElem) { - // event: mouseenter - prevElem.addEventListener('mouseenter', (event) => { - event.stopPropagation(); - prevElem.classList.add('prev-element-highlight'); - if (overviewElem) { - overviewElem.classList.add('overview-element-highlight'); - } - }); - // event: mouseleave - prevElem.addEventListener('mouseleave', (event) => { - event.stopPropagation(); - prevElem.classList.remove('prev-element-highlight'); - if (overviewElem) { - overviewElem.classList.remove('overview-element-highlight'); - } - }); - } - } - // handler function for button action - async handleOptionSelectionChange(chtIndex, clickedTask) { - clickedTask.classList.toggle('active'); - this.startTaskLoadingAnimation(clickedTask); - const prevPack = this.prevalencePacks.filter((elem) => elem.chtIndex === chtIndex)[0]; - if (prevPack) { - await this.updatePrevalencePack(prevPack); - } - } - // update prevalence for an input cohort - async updatePrevalencePack(currPack) { - // start loading animation - this.startBarLoadingAnimation(currPack); - const activeTasks = select(currPack.container).selectAll('.ref-task-option.active').data().map((elem) => elem.task); - const notActiveTasks = select(currPack.container).selectAll('.ref-task-option:not(.active)').data().map((elem) => elem.task); - // get all task ids - const taskIds = activeTasks.map((elem) => elem.id); - // current state config - const stateConfig = { - chtId: currPack.chtConfig.cht.dbId, - activeTaskIds: taskIds - }; - // set current state config - const currStateIdx = this.currentState.map((conf) => conf.chtId).indexOf(stateConfig.chtId); - if (currStateIdx !== -1) { - this.currentState[currStateIdx].activeTaskIds = stateConfig.activeTaskIds; - } - else { - this.currentState.push(stateConfig); - } - // get dataset size - const datasetSize = await this.baseCohort.size; - // define the cohorts used to calculate the prevalence - let newBaseCohort = this.baseCohort; - let oldBaseCohort = this.baseCohort; - const taskpair = currPack.chtConfig.attributeValue; - const strTaskIds = taskIds.length === 0 ? '' : '::' + taskIds.join('::'); // string of the active tasks for the storagekey - // get checkbox for excluding missing values from the tasks - const exclState = this.excludeMissingValues; - const cc = currPack.chtConfig; - const storageKey = `cht-prev-${cc.cht.id}-exclMV:${exclState}-root-${strTaskIds}`; - let cohortRefSize = getSessionStorageItem(storageKey); - // log.debug('SessionStorage found : ', cohortRefSize !== null, ' | key: ', storageKey, ' | value: ', cohortRefSize); - // log.debug('SessionStorage with : ', {taskIds}, ' | for: ', {chtIndex: currPack.chtIndex, cohort: cc.cht.label}); - // check if the reference cohort size was already calculated -> if not create the cohort - if (cohortRefSize === null) { - // go though all tasks to create a new cohort base on the tasks - for (const at of activeTasks) { - const attValue = taskpair.filter((elem) => elem.taskId === at.id)[0].values; - // create new cohort in db with the attribute and value - newBaseCohort = await multiFilter(oldBaseCohort, at.attributes, attValue); - oldBaseCohort = newBaseCohort; - } - // go through all not active task if the exclude missing value option is active - if (exclState) { - const valExclMVForTask = { values: ['!null'] }; // filter parameter for not equals null (missing value) - for (const nat of notActiveTasks) { - // log.debug('not active Task pair: ', {attribute: nat.attribute, value: valExclMVForTask}); - // create new cohort in db with the attribute and value - newBaseCohort = await multiFilter(oldBaseCohort, nat.attributes, new Array(nat.attributes.length).fill(valExclMVForTask)); - oldBaseCohort = newBaseCohort; - } - } - const currRefSize = await newBaseCohort.size; - cohortRefSize = currRefSize; - // save the size of the current reference cohort - setSessionStorageItem(storageKey, cohortRefSize); - // log.debug('Set SessionStorage -> key: ', storageKey, ' | value: ', cohortRefSize); - } - cc.refSize = cohortRefSize; - // change reference bar size and the prevalence value - this.updateBars(currPack, datasetSize, currPack.chtConfig.size, cohortRefSize); - } - startBarLoadingAnimation(prevPack) { - // add loading animation for the reference bar - const divReference = prevPack.container.querySelector('.bar-reference.prev-value-reference'); - divReference.classList.add('loading-effect'); - } - startTaskLoadingAnimation(clickedTask) { - // add loading animation for the clicked task - const cbIndicator = clickedTask.querySelector('.checkbox-indicator'); - cbIndicator.toggleAttribute('hidden', true); - clickedTask.classList.add('color-loading'); - const cbCtrLoading = clickedTask.querySelector('.icon-container'); - cbCtrLoading.removeAttribute('hidden'); - } - stopBarLoadingAnimation(prevPack) { - // remove loading animation for the reference bar - const divReference = prevPack.container.querySelector('.bar-reference.prev-value-reference'); - divReference.classList.remove('loading-effect'); - } - stopTaskLoadingAnimation(prevPack, clickedTask = null) { - if (clickedTask === null) { - // remove loading animation for all tasks - const tasks = prevPack.container.querySelectorAll('.ref-task-option'); - tasks.forEach((task) => { - // remove loading animation of one task - const cbCtrLoading = task.querySelector('.icon-container'); - cbCtrLoading.toggleAttribute('hidden', true); - task.classList.remove('color-loading'); - const cbIndicator = task.querySelector('.checkbox-indicator'); - cbIndicator.removeAttribute('hidden'); - }); - } - else { - // remove loading animation of one task - const cbCtrLoading = clickedTask.querySelector('.icon-container'); - cbCtrLoading.toggleAttribute('hidden', true); - const cbIndicator = clickedTask.querySelector('.checkbox-indicator'); - cbIndicator.removeAttribute('hidden'); - } - } - // set the prevalence result (value and bar) - updateBars(prevPack, sizeDataset, sizeCht, sizeRef) { - // log.debug('updateBars: ', {prevPack, sizeDataset, sizeCht, sizeRef}); - const formatter = format('.3~f'); - const prevValue = (sizeCht / sizeRef); - const prevValuePercentage = prevValue * 100; - const prevValueFormat = prevValuePercentage < 1 ? '< 1' : '' + Math.round(prevValuePercentage); - const prevValueMore = formatter(prevValuePercentage); - // prevalence = 100% -> confidence interval = 0% - let ciValue = 0; - let ciValuePercentage = 0; - let ciValueFormat = '0'; - let ciValueMore = '0'; - if (prevValue !== 1) { - // calculate confidence interval with binom. distribution and 95% (1.96) - ciValue = 1.96 * Math.sqrt((prevValue * (1 - prevValue)) / sizeRef); - ciValuePercentage = ciValue * 100; - ciValueFormat = ciValuePercentage < 1 ? '< 1' : '' + Math.round(ciValuePercentage); - ciValueMore = formatter(ciValuePercentage); - } - // log.debug('CI values: ', {sizeCht, sizeRef, prevValue, ciValue}); - this.stopBarLoadingAnimation(prevPack); - this.stopTaskLoadingAnimation(prevPack); - const animationTime = 1000; - const tBar = transition().duration(animationTime); - // check if the dataset bar should be shown - const iconEye = prevPack.container.querySelector('.prev-show-dataset-eye'); - const showDatasetBar = Boolean(Number(iconEye.dataset.showDatasetBar)); - const maxSizeRef = showDatasetBar ? sizeDataset : sizeRef; - const colorDatasetBar = showDatasetBar ? colors.lightBorder : 'transparent'; - const datasetBar = prevPack.container.querySelector('.bar-dataset'); - // datasetBar.classList.toggle('hide-dataset', !showDatasetBar); - select(datasetBar).transition(tBar).style('background-color', `${colorDatasetBar}`); - const colorDatasetMaxLabel = showDatasetBar ? colors.textColor : 'transparent'; - const datasetBarMaxLabel = prevPack.container.querySelector('.prev-max-scale-label'); - // datasetBarMaxLabel.classList.toggle('hide-label', !showDatasetBar); - select(datasetBarMaxLabel).transition(tBar).style('color', `${colorDatasetMaxLabel}`); - // reference size - const percentageRef = (sizeRef / maxSizeRef) * 100; - const refElems = prevPack.container.querySelectorAll('.prev-value-reference'); - refElems.forEach((elem) => { - select(elem).transition(tBar).style('width', `${percentageRef}%`); - // elem.style.width = `${percentageRef}%`; - }); - const scaleRefS = prevPack.container.querySelector('.scale-ref-size'); - scaleRefS.innerHTML = `${sizeRef}`; - setTimeout(() => { - // update ci interval after the animation for the dataset bar -> otherwise the bar size is not correct - // error bar for confidence intervall - // set error bar length - const refBar = prevPack.container.querySelector('.prev-value-reference.bar'); - const refBarWidth = refBar.getBoundingClientRect().width; - const errorBar = prevPack.container.querySelector('.prev-ci-bar-error'); - const ciHalfBarWidth = ciValue * refBarWidth; - const ciBarWidth = 2 * ciHalfBarWidth; - // select(errorBar).transition(tBar).style('width', `${ciBarWidth}px`).style('margin-right', `-${ciHalfBarWidth}px`); - errorBar.style.width = `${ciBarWidth}px`; - errorBar.style.marginRight = `-${ciHalfBarWidth}px`; - }, animationTime + 10); - // cohort size - const percentageCht = (sizeCht / maxSizeRef) * 100; - const chtElems = prevPack.container.querySelectorAll('.prev-value-cohort'); - chtElems.forEach((elem) => { - select(elem).transition(tBar).style('width', `${percentageCht}%`); - // elem.style.width = `${percentageCht}%`; - }); - const scaleChtS = prevPack.container.querySelector('.scale-cohort-size'); - scaleChtS.innerHTML = `${sizeCht}`; - const scaleChtP = prevPack.container.querySelector('.scale-cohort-percentage'); - scaleChtP.innerHTML = `${prevValueFormat}% ± ${ciValueFormat}%`; // ± -> plus-minus sign: https://www.compart.com/de/unicode/U+00B1 - // add tooltip for the prevalence and its CI - const prevTooltip = ` - Prevalence: ${prevValueMore}%
- Confidence Interval (95% Confidence): ± ${ciValueMore}%
- `; - const prevInstance = scaleChtP._tippy; - if (prevInstance) { - prevInstance.setContent(prevTooltip); - } - else { - tippy(scaleChtP, { - content: prevTooltip - }); - } - // add info label for no filter active and excluding missing values - // and if reference size != dataset size - const exclState = this.excludeMissingValues; - const activeTasks = select(prevPack.container).selectAll('.ref-task-option.active').data().map((elem) => elem.task); - const infoLabel = prevPack.container.querySelector('.prev-info-bar-label'); - if (showDatasetBar) { - if (exclState && activeTasks.length === 0 && sizeDataset !== sizeRef) { - infoLabel.removeAttribute('hidden'); - } - else { - infoLabel.toggleAttribute('hidden', true); - } - } - else { - infoLabel.toggleAttribute('hidden', true); - } - // add tooltip to bar - const barContainer = prevPack.container.querySelector('.prev-result-bar'); - // update toottip text - const tooltip = ` - ${this.baseCohort.label} (${sizeDataset} items)
- Reference: defined with checkboxes (${sizeRef} items)
- ${prevPack.chtConfig.cht.getHTMLLabel()} (${sizeCht} items)
- Prevalence: ${prevValueMore}%
- Confidence Interval (95% Confidence): ± ${ciValueMore}%
`; - // get tippy instance, to overwrite existing tippy tooltip - const instance = barContainer._tippy; - if (instance) { - instance.setContent(tooltip); - } - else { - tippy(barContainer, { - content: tooltip - }); - } - } - // sets the base cohort on which all task operations will be applied - setBaseCohort() { - this.baseCohort = getRootCohort(); - this.baseCohortSize = this.baseCohort.getRetrievedSize(); - } - close() { - // remove node and back title button - super.close(); - this.currentState = []; - } -} -Prevalence.EXCL_MISSING_VAL_TEXT = 'excl. missing values'; -Prevalence.INCL_MISSING_VAL_TEXT = 'incl. missing values'; -Prevalence.INITIAL_CHT_LABEL = 'Initial Cohort'; -Prevalence.TASK_OPTION_LABEL = 'Applicable Tasks'; -//# sourceMappingURL=Prevalence.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/Prevalence.js.map b/dist/Taskview/tasks/Prevalence.js.map deleted file mode 100644 index 01eda46..0000000 --- a/dist/Taskview/tasks/Prevalence.js.map +++ /dev/null @@ -1 +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AC,QAAQ,EAAE,IAAI,CAAC,CAAC;SAC3C;QAED,qBAAqB;QACrB,MAAM,YAAY,GAAG,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,kBAAkB,CAAmB,CAAC;QAC5F,sBAAsB;QACtB,MAAM,OAAO,GAAG;MACd,IAAI,CAAC,UAAU,CAAC,KAAK,KAAK,WAAW;0CACD,OAAO;MAC3C,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,OAAO;0DACG,aAAa;yFACkB,WAAW,QAAQ,CAAC;QACzG,0DAA0D;QAC1D,MAAM,QAAQ,GAAI,YAAoB,CAAC,MAAM,CAAC;QAC9C,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAC9B;aAAM;YACL,KAAK,CAAC,YAAY,EAAE;gBAClB,OAAO,EAAE,OAAO;aACjB,CAAC,CAAC;SACJ;IACH,CAAC;IAED,oEAAoE;IAC5D,aAAa;QACnB,IAAI,CAAC,UAAU,GAAG,aAAa,EAAE,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC;IAC3D,CAAC;IAGD,KAAK;QACH,oCAAoC;QACpC,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACzB,CAAC;;AAr8Be,gCAAqB,GAAG,sBAAsB,CAAC;AAC/C,gCAAqB,GAAG,sBAAsB,CAAC;AAC/C,4BAAiB,GAAG,gBAAgB,CAAC;AACrC,4BAAiB,GAAG,kBAAkB,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/tasks/TaskList.d.ts b/dist/Taskview/tasks/TaskList.d.ts deleted file mode 100644 index 153cacf..0000000 --- a/dist/Taskview/tasks/TaskList.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ATask } from './ATask'; -export declare const TASKLIST: Array; diff --git a/dist/Taskview/tasks/TaskList.js b/dist/Taskview/tasks/TaskList.js deleted file mode 100644 index 0ae2447..0000000 --- a/dist/Taskview/tasks/TaskList.js +++ /dev/null @@ -1,13 +0,0 @@ -import { Compare } from './Compare'; -import { Details } from './Details'; -import { Filter } from './Filter'; -import { Prevalence } from './Prevalence'; -import { Characterize } from './Characterize'; -export const TASKLIST = [ - new Filter(), - new Details(), - new Prevalence(), - new Compare(), - new Characterize() -]; // Add new tasks to this array -//# sourceMappingURL=TaskList.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/TaskList.js.map b/dist/Taskview/tasks/TaskList.js.map deleted file mode 100644 index 830ed84..0000000 --- a/dist/Taskview/tasks/TaskList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TaskList.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/TaskList.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,CAAC,MAAM,QAAQ,GAAiB;IACpC,IAAI,MAAM,EAAE;IACZ,IAAI,OAAO,EAAE;IACb,IAAI,UAAU,EAAE;IAChB,IAAI,OAAO,EAAE;IACb,IAAI,YAAY,EAAE;CACnB,CAAC,CAAC,8BAA8B"} \ No newline at end of file diff --git a/dist/Taskview/tasks/index.d.ts b/dist/Taskview/tasks/index.d.ts deleted file mode 100644 index 225d6ec..0000000 --- a/dist/Taskview/tasks/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './ATask'; -export * from './Compare'; -export * from './Details'; -export * from './Filter'; -export * from './Prevalence'; -export * from './TaskList'; diff --git a/dist/Taskview/tasks/index.js b/dist/Taskview/tasks/index.js deleted file mode 100644 index e7a2c8e..0000000 --- a/dist/Taskview/tasks/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from './ATask'; -export * from './Compare'; -export * from './Details'; -export * from './Filter'; -export * from './Prevalence'; -export * from './TaskList'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/Taskview/tasks/index.js.map b/dist/Taskview/tasks/index.js.map deleted file mode 100644 index cf4ba3c..0000000 --- a/dist/Taskview/tasks/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Taskview/tasks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/AVegaVisualization.d.ts b/dist/Taskview/visualizations/AVegaVisualization.d.ts deleted file mode 100644 index 0aaf774..0000000 --- a/dist/Taskview/visualizations/AVegaVisualization.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { View as VegaView } from 'vega'; -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { Cohort } from '../../Cohort'; -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute, IdValuePair } from '../../data/Attribute'; -import { IEqualsList, INumRange, NumRangeOperators } from '../../rest'; -import { Option, VisConfig } from './config/VisConfig'; -import { IVisualization } from './IVisualization'; -export declare const MISSING_VALUES_LABEL = "Missing Values"; -export declare const FACETED_CHARTS_WIDTH = 520; -export interface IVegaVisualization extends IVisualization { - getSpec(gdata: IdValuePair[]): Partial; - showImpl(chart: HTMLDivElement, data: Array): any; -} -export declare abstract class AVegaVisualization implements IVegaVisualization { - protected vegaLiteOptions: Object; - static readonly NAME: string; - static readonly SELECTION_SIGNAL_NAME = "selected"; - static readonly SELECTION_STORE: string; - static readonly HIGHLIGHT_SIGNAL_NAME = "highlight"; - static readonly DATA_STORE_0 = "data_0"; - static readonly DATA_STORE_1 = "data_1"; - static readonly DATA_STORE_3 = "data_3"; - static readonly SPLITVALUE_DATA_STORE = "splitvalues"; - protected container: HTMLDivElement; - protected chart: HTMLDivElement; - protected controls: HTMLDivElement; - protected legend: HTMLParagraphElement; - protected nullValueContainer: HTMLDivElement; - protected data: any; - protected cohorts: Cohort[]; - protected vegaLiteSpec: any; - protected vegaSpec: any; - protected vegaView: VegaView; - protected showBrush: boolean; - protected colorPalette: string[]; - protected config: VisConfig[]; - constructor(vegaLiteOptions?: Object); - clearSelection(): void; - hasSelectedData(): boolean; - getSpec(data: IdValuePair[]): Partial; - addHoverSelection(spec: any): void; - addIntervalSelection(spec: any): void; - setLogScale(spec: any, axis: 'x' | 'y'): void; - getFilterRange(axis: 'x' | 'y'): any[]; - addMultiSelection(spec: any): void; - addColorLegend(): void; - getNullCheckboxState(attribute: IAttribute): boolean; - abstract getSelectedData(): { - from: string | number; - to: string | number; - cohort: ICohort; - }[]; - abstract show(container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): any; - abstract filter(): void; - abstract split(): void; - abstract showImpl(chart: HTMLDivElement, data: Array): any; - destroy(): void; - getConfig(): VisConfig[]; - selectOption(o: Option): void; - getCategoricalFilter(categories: string[]): IEqualsList; - getNumericalFilterAllInclusive(lower: number, upper: number): INumRange; - getStandardNumericalFilter(lower: number, upper: number): INumRange; - getGeneralNumericalFilter(lower: number, upper: number, lowerOperator?: NumRangeOperators, upperOperator?: NumRangeOperators): INumRange; -} -export declare abstract class SingleAttributeVisualization extends AVegaVisualization { - protected type: 'quantitative' | 'nominal' | 'ordinal'; - /** - * The displayed attribute - */ - protected attribute: IAttribute; - /** - * Vega name of the displayed attribute, might be different to attribute.dataKey due to transformation (e.g. density transform) - */ - protected field: string; - protected colorPalette: string[]; - protected hideVisualization: boolean; - protected nullValueMap: Map>; - show(container: HTMLDivElement, attributes: IAttribute[], cohorts: Cohort[]): Promise; - getData(): Promise<(IdValuePair & { - Cohort: string; - })[][]>; - showImpl(chart: HTMLDivElement, data: Array): Promise; - getNullValueSelectedData(cohort: ICohort, attribute: IAttribute): { - from: string | number; - to: string | number; - cohort: ICohort; - }; - /** - * Creates a IFilterDesc for every Cohort. - * To do so we have to merge the categories or numranges we get for a cohort (multiple object) into one IFilterDesc, which makes this method a lot longer than split() - * There can only be one IFilterDesc for the same cohort, but this can contain multiple categories, i.e. filter ALL down to a new cohort with all male&female items - */ - filter(): void; - /** - * Creates a IFilterDesc for every Cohort/Category or Cohort/NumRange combination. - * This means there can be multiple IFilterDesc for the same cohort (different categories, or multiple ranges (5-10, 10-15, and 30-40)) - * Splitting a cohort is only possible by single categories, i.e. you can't split ALL into a "asian/african" and a "white/american indian" cohort ( 2 categories each) - */ - split(): void; - protected splitValues: Array<{ - x: number; - }>; - addIntervalControls(): void; - /** - * Returns split or filter, depending on the currently active task tab - */ - protected getActiveTask(): 'filter' | 'split'; - protected toggleFilterSplitMarks(newTask: 'filter' | 'split'): void; - addCategoricalControls(): void; - handleBinChangeEvent(event: any): void; - protected vegaBrushListener: (name: any, value: any) => void; - protected vegaSplitListener: (name: any, value: any) => void; - handleInputIntervalEvent(event: any): void; - protected scaleRange(range: [number, number] | []): number[]; - getBrushRange(): [number, number] | []; - handleVegaIntervalEvent(name: any, value: any): void; - handleSplitDragEvent(name: any, value: any): void; -} diff --git a/dist/Taskview/visualizations/AVegaVisualization.js b/dist/Taskview/visualizations/AVegaVisualization.js deleted file mode 100644 index 7963f32..0000000 --- a/dist/Taskview/visualizations/AVegaVisualization.js +++ /dev/null @@ -1,673 +0,0 @@ -import { format, select } from 'd3v7'; -import { cloneDeep } from 'lodash'; -import tippy from 'tippy.js'; -import vegaEmbed from 'vega-embed'; -import { getCohortLabel } from '../../Cohort'; -import { NumRangeOperators } from '../../rest'; -import { log } from '../../util'; -import { FilterEvent, SplitEvent } from '../../utilCustomEvents'; -import { DATA_LABEL } from './constants'; -export const MISSING_VALUES_LABEL = 'Missing Values'; -export const FACETED_CHARTS_WIDTH = 520; -export class AVegaVisualization { - constructor(vegaLiteOptions = {}) { - this.vegaLiteOptions = vegaLiteOptions; - this.showBrush = true; - this.config = []; - } - clearSelection() { - if (this.vegaView) { - this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME, null); - this.vegaView.data(AVegaVisualization.SELECTION_STORE, []); - this.vegaView.runAsync(); // update the charty - } - } - hasSelectedData() { - const selectionData = this.vegaView.data(AVegaVisualization.SELECTION_STORE); - return selectionData.length > 0; - } - getSpec(data) { - const vegaLiteSpec = { - $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', - autosize: { type: 'fit', contains: 'padding' }, - padding: { left: 5, top: 0, right: 5, bottom: 5 }, - data: { values: data }, - //mark - //encoding - config: { - axis: { - titleFontSize: 16, titleFontWeight: 500, titleFont: 'Roboto', - labelFontSize: 12, labelLimit: 150, labelFont: 'Roboto', - labelOverlap: 'parity', - labelSeparation: 5, - labelBound: true // clip labels if they are not within chart area - }, - legend: { - titleFontSize: 16, titleFontWeight: 500, titleFont: 'Roboto', - labelFontSize: 12, labelLimit: 150, labelFont: 'Roboto', - labelOverlap: 'parity' - }, - header: { - titleFontSize: 16, titleFontWeight: 500, titleFont: 'Roboto', - labelFontSize: 12, labelLimit: 150, labelFont: 'Roboto' - }, - range: { - category: this.colorPalette //Cat16.COLOR_SCHEME - } - } - }; - return vegaLiteSpec; - } - addHoverSelection(spec) { - const subspec = spec.layer ? spec.layer[0] : spec; - if (!subspec.params) { // create if not existing - subspec.params = []; - } - subspec.params.push({ - name: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, - select: { - type: 'point', - toggle: false, - on: 'mouseover', - clear: 'mouseout' // otherwise the hover effect might stay moving the mouse cursor out quickly - } - }); - } - addIntervalSelection(spec) { - const subspec = spec.layer ? spec.layer[0] : spec; - if (!subspec.params) { // create if not existing - subspec.params = []; - } - const range = this.getFilterRange('x'); - subspec.params.push({ - name: AVegaVisualization.SELECTION_SIGNAL_NAME, - select: { - type: 'interval', - mark: { cursor: 'pointer' }, - encodings: ['x'], - }, - ...(range.length > 0 ? { value: { x: range } } : {}) - }); - Object.assign(subspec.mark, { - cursor: 'text' // switch cursor to vertical text above marks - }); - if (!subspec.view) { // create if not existing - subspec.view = {}; - } - Object.assign(subspec.view, { - cursor: 'text' // switch cursor to vertical text if not above a mark - }); - } - setLogScale(spec, axis) { - const subspec = spec.layer ? spec.layer[0] : spec; - if (!subspec.encoding[axis].scale) { // create if not existing - subspec.encoding[axis].scale = {}; - } - Object.assign(subspec.encoding[axis].scale, { 'type': 'log', 'base': 10 }); - } - getFilterRange(axis) { - const range = []; - if (!select(this.controls).select('input.minimum[data-axis="x"]').empty()) { - range.push(parseFloat(select(this.controls).select(`input.minimum[data-axis="${axis}"]`).node().value)); - range.push(parseFloat(select(this.controls).select(`input.maximum[data-axis="${axis}"]`).node().value)); - } - return range; - } - addMultiSelection(spec) { - const subspec = spec.layer ? spec.layer[0] : spec; - if (!subspec.params) { // create if not existing - subspec.params = []; - } - subspec.params.push({ - name: AVegaVisualization.SELECTION_SIGNAL_NAME, - select: { - type: 'point', - toggle: 'true' - } - }); - Object.assign(subspec.mark, { - cursor: 'pointer' // switch cursor to pointer above marks - }); - } - addColorLegend() { - this.legend = document.createElement('p'); - this.legend.classList.add('legend'); - const entries = select(this.legend).selectAll('.entry').data(this.cohorts); - entries.enter() - .append('span').classed('entry-wrapper', true) - .append('span').classed('entry', true) - .html((d, i) => ` ${d.label}`); - this.container.insertAdjacentElement('beforeend', this.legend); - } - getNullCheckboxState(attribute) { - const activeTask = select(this.controls).select('.tab-pane.active').attr('id'); - const checkbox = this.controls.querySelector(`#${activeTask} [data-attr="${attribute.dataKey}"] .null-value-checkbox`); - if (checkbox) { - return checkbox.checked; - } - return false; - } - destroy() { - if (this.vegaView) { - this.vegaView.finalize(); - } - select(this.controls).selectAll('input.interval').on('change', null).remove(); - select(this.controls).remove(); - if (this.container) { - this.container.innerHTML = ''; - } - } - getConfig() { - return this.config; - } - selectOption(o) { - o.group.select(o); - this.showImpl(this.chart, this.data); - } - getCategoricalFilter(categories) { - return { values: categories }; - } - getNumericalFilterAllInclusive(lower, upper) { - return this.getGeneralNumericalFilter(lower, upper, NumRangeOperators.gte, NumRangeOperators.lte); - } - getStandardNumericalFilter(lower, upper) { - return this.getGeneralNumericalFilter(lower, upper, NumRangeOperators.gte, NumRangeOperators.lt); - } - getGeneralNumericalFilter(lower, upper, lowerOperator = NumRangeOperators.gt, upperOperator = NumRangeOperators.lt) { - return { - operatorOne: lowerOperator, - valueOne: lower === null ? 'null' : lower, - operatorTwo: upperOperator, - valueTwo: upper === null ? 'null' : upper - }; - } -} -AVegaVisualization.SELECTION_SIGNAL_NAME = 'selected'; -AVegaVisualization.SELECTION_STORE = AVegaVisualization.SELECTION_SIGNAL_NAME + '_store'; -AVegaVisualization.HIGHLIGHT_SIGNAL_NAME = 'highlight'; -AVegaVisualization.DATA_STORE_0 = 'data_0'; -AVegaVisualization.DATA_STORE_1 = 'data_1'; -AVegaVisualization.DATA_STORE_3 = 'data_3'; -AVegaVisualization.SPLITVALUE_DATA_STORE = 'splitvalues'; -export class SingleAttributeVisualization extends AVegaVisualization { - constructor() { - super(...arguments); - this.splitValues = []; - this.vegaBrushListener = (name, value) => this.handleVegaIntervalEvent(name, value); - this.vegaSplitListener = (name, value) => this.handleSplitDragEvent(name, value); - } - async show(container, attributes, cohorts) { - log.debug('show: ', { container, attributes, cohorts }); - if (cohorts.length <= 0) { - throw new Error('Pass at least one cohort'); - } - this.cohorts = cohorts; - this.attribute = attributes[0]; - const data = await this.getData(); - this.container = container; - this.container.insertAdjacentHTML(`afterbegin`, ` -
-
-
-
- `); - this.chart = this.container.getElementsByTagName('div')[0]; //first-child was not the right type of object and vega-embed failed - this.controls = this.container.querySelector('.controls .sticky'); - const notZeroCohorts = this.cohorts.filter((a) => { - const currSize = a.getRetrievedSize(); - return currSize > 0; - }); - this.colorPalette = notZeroCohorts.map((elem) => elem.colorTaskView); - console.log(notZeroCohorts.map((elem) => elem.label), this.colorPalette); - // data's outer array has one item per cohort, which in turn contains array with the items/values - // flatten the array: - const flatData = data.flat(1); - // check if all values are null - this.nullValueMap = new Map(); // Map: Attribute -> Cohort --> number of null values per cohort per attribute - this.nullValueMap.set(this.attribute.dataKey, new Map(this.cohorts.map((cht) => [cht, 0]))); // init map with 0 for all attribues - let nullValues = 0; - for (const d of flatData) { - if (d[this.attribute.dataKey] === null) { - const attrData = this.nullValueMap.get(this.attribute.dataKey); - const chtLabel = d[DATA_LABEL]; - const chtIndex = this.cohorts.findIndex((cht) => cht.label === chtLabel); - const count = 1 + attrData.get(this.cohorts[chtIndex]); - attrData.set(this.cohorts[chtIndex], count); - nullValues++; - } - } - this.hideVisualization = nullValues === flatData.length; - this.type = this.attribute.type === `number` ? 'quantitative' : 'nominal'; - if (!flatData || flatData.length === 0) { - this.chart.innerText = 'No Data'; - } - else if (this.hideVisualization) { - this.chart.innerText = 'Data only contains missing values!'; - } - else { - this.data = flatData; // save the data that is used in the chart - await this.showImpl(this.chart, flatData); - } - if (!this.hideVisualization) { - if (this.type === 'quantitative') { - this.addIntervalControls(); - } - else { - this.addCategoricalControls(); - } - this.addColorLegend(); - } - this.container.querySelectorAll('[title]').forEach((elem) => tippy(elem, { - content(elm) { - const title = elm.getAttribute('title'); - elm.removeAttribute('title'); - return title; - }, - })); - } - async getData() { - const dataPromises = this.cohorts - .map((cht) => this.attribute.getData(cht.dbId, cht.filters) - .then((data) => data.map((item) => Object.assign(item, { [DATA_LABEL]: getCohortLabel(cht) })))); - return Promise.all(dataPromises); - } - async showImpl(chart, data) { - const spec = this.getSpec(data); // get spec - if (this.vegaView) { - this.vegaView.finalize(); - select(chart).selectAll('*').remove(); - chart.className = ''; - } - const result = await vegaEmbed(chart, spec, { actions: false, renderer: 'svg' }); - this.vegaLiteSpec = result.spec; - this.vegaSpec = result.vgSpec; - this.vegaView = result.view; - if (this.type === 'quantitative') { - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); - } - log.debug('vega', this.vegaSpec); - log.info('vegalite', this.vegaLiteSpec); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became narrower - } - getNullValueSelectedData(cohort, attribute) { - let filter = null; - if (this.getNullCheckboxState(attribute)) { // add filter ranges for null value - filter = { - from: null, - to: null, - cohort - }; - } - return filter; - } - /** - * Creates a IFilterDesc for every Cohort. - * To do so we have to merge the categories or numranges we get for a cohort (multiple object) into one IFilterDesc, which makes this method a lot longer than split() - * There can only be one IFilterDesc for the same cohort, but this can contain multiple categories, i.e. filter ALL down to a new cohort with all male&female items - */ - filter() { - const bins = this.getSelectedData(); - if (bins.length > 0) { - let filterDesc = []; - if (bins.length === 1) { // 1 cohort, 1 category - let filter = []; - if (this.type === 'quantitative') { - filter.push(this.getNumericalFilterAllInclusive(bins[0].from, bins[0].to)); - } - else { - filter = this.getCategoricalFilter([String(bins[0].from)]); - } - filterDesc.push({ - cohort: bins[0].cohort, filter: [{ - attr: this.attribute, range: filter - }] - }); - } - else { // 1 cohort, multiple categories, or one category, multiple cohorts - if (this.attribute.type === 'number') { // n cohorts, one range (can't be more because we use one interval selection) - const chtRanges = []; // create a list of chts and their filtered categories - for (const bin of bins) { - const chtRange = chtRanges.find((elem) => elem.cht.id === bin.cohort.id); - if (chtRange !== undefined) { // I handled this cohort before - chtRange.ranges.push({ from: bin.from, to: bin.to }); //add range to exisiting list - } - else { // new cht, create object and init range array - chtRanges.push({ cht: bin.cohort, ranges: [{ from: bin.from, to: bin.to }] }); - } - } - // get a filter for the categories per cohort - filterDesc = chtRanges.map((elem) => { - const filters = []; - for (const rg of elem.ranges) { - filters.push(this.getNumericalFilterAllInclusive(rg.from, rg.to)); - } - return { - cohort: elem.cht, - filter: [{ - attr: this.attribute, - range: filters - }] - }; - }); - } - else { - const chtCats = []; // create a list of chts and their filtered categories - for (const bin of bins) { - const chtCat = chtCats.find((elem) => elem.cht.id === bin.cohort.id); - if (chtCat !== undefined) { // I handled this cohort before - chtCat.cats.push(String(bin.from)); //add category to exisiting list - } - else { // new cht, create object and init category array - chtCats.push({ cht: bin.cohort, cats: [String(bin.from)] }); - } - } - // get a filter for the categories per cohort - filterDesc = chtCats.map((elem) => ({ - cohort: elem.cht, - filter: [{ - attr: this.attribute, - range: this.getCategoricalFilter(elem.cats) - }] - })); - } - } - log.debug('show filter description: ', filterDesc); - this.container.dispatchEvent(new FilterEvent(filterDesc)); - } - } - /** - * Creates a IFilterDesc for every Cohort/Category or Cohort/NumRange combination. - * This means there can be multiple IFilterDesc for the same cohort (different categories, or multiple ranges (5-10, 10-15, and 30-40)) - * Splitting a cohort is only possible by single categories, i.e. you can't split ALL into a "asian/african" and a "white/american indian" cohort ( 2 categories each) - */ - split() { - var _a; - let filters; - if (this.attribute.type === 'number') { - const [min, max] = this.vegaView.scale('x').domain(); - const bins = this.splitValues.map((splitValue, i) => { - let from = min; - if (i >= 1) { - from = this.splitValues[i - 1].x; - } - const to = splitValue.x; - return { from, to }; - }); - bins.push({ from: ((_a = this.splitValues[this.splitValues.length - 1]) === null || _a === void 0 ? void 0 : _a.x) || min, to: max }); // last bin - if (this.getNullCheckboxState(this.attribute)) { - bins.push({ from: null, to: null }); // add a null bin if checked - } - filters = []; - for (const cohort of this.cohorts) { //every cohort ... - for (const bin of bins) { // ...is split into each bin - let upperOp = NumRangeOperators.lt; - let closingBracket = ')'; - if (bin.to === max) { - upperOp = NumRangeOperators.lte; - closingBracket = ']'; - } - filters.push({ - filter: [{ - attr: this.attribute, - range: [this.getGeneralNumericalFilter(bin.from, bin.to, NumRangeOperators.gte, upperOp)] - }], - cohort - }); - } - } - } - else { - const bins = this.getSelectedData(); - if (bins.length > 0) { - filters = bins.map((bin) => ({ - cohort: bin.cohort, - filter: [{ - attr: this.attribute, - range: this.getCategoricalFilter([String(bin.from)]) - }] - })); - } - } - if (filters) { - this.container.dispatchEvent(new SplitEvent(filters)); - } - } - addIntervalControls() { - const [min, max] = this.vegaView.scale('x').domain(); - this.controls.insertAdjacentHTML('afterbegin', ` -
- - - -
-
-

Click and drag in the visualization or set the range below:

-
- - - - -
- - -
-
-
-
-
- - - - -
- - -
-
-
-
-
-
- -
- `); - let nullValueTooltip = ``; - for (const [cht, nullValues] of this.nullValueMap.get(this.attribute.dataKey)) { - nullValueTooltip += ` ${nullValues}
`; - } - const selector = `[data-attr="${this.attribute.dataKey}"] .hint`; - tippy(this.controls.querySelectorAll(selector), { content: nullValueTooltip }); - select(this.controls).select('button.applyBtn').on('click', () => { - const activeTask = select(this.controls).select('.tab-pane.active').attr('id'); - switch (activeTask) { - case 'filter': - this.filter(); - break; - case 'split': - this.split(); - break; - default: - log.error('Unknown task: ', activeTask); - } - }); - const that = this; //helper varible to access this instance in the d3 event handler function - select(this.controls).selectAll('a[role="tab"]').on('click', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - const newTask = d3Event.hash.replace('#', ''); - that.toggleFilterSplitMarks(newTask); - }); - const brushInputs = select(this.controls).selectAll('input.interval'); - brushInputs.on('change', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); - const splitNumberInput = select(this.controls).select('input.bins'); - splitNumberInput.on('change', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - that.handleBinChangeEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); - const splitTypeInput = select(this.controls).select('select.binType'); - splitTypeInput.on('change', function () { - splitNumberInput.node().dispatchEvent(new Event('change')); - }); - this.handleBinChangeEvent(splitNumberInput.node()); - } - /** - * Returns split or filter, depending on the currently active task tab - */ - getActiveTask() { - const tabPane = select(this.controls).select('.tab-pane.active'); - if (!tabPane.empty()) { - return tabPane === null || tabPane === void 0 ? void 0 : tabPane.attr('id'); - } - return 'filter'; //no task open yet, but we always start with filter - } - toggleFilterSplitMarks(newTask) { - switch (newTask) { - case 'split': // switch to split -> remove interval - this.showBrush = false; - select(this.chart).selectAll('.mark-rect.role-mark.selected_brush_bg, .mark-rect.role-mark.selected_brush').style('display', 'none'); - select(this.chart).selectAll('g.splitmarks').style('display', null); - // this.clearSelection(); - break; - case 'filter': // switch to filter --> remove split rulers - this.showBrush = true; - select(this.chart).selectAll('.mark-rect.role-mark.selected_brush_bg, .mark-rect.role-mark.selected_brush').style('display', null); // these elements have no opacity set from the spec which makes it safe to revert back to a hardcoded 1 - select(this.chart).selectAll('g.splitmarks').style('display', 'none'); - // this.clearSelection(); // clear any selection that has been made while in split mode - // (select(this.controls).select('input.bins').node() as HTMLInputElement).value = '1'; - // (select(this.controls).select('input.bins').node() as HTMLInputElement).dispatchEvent(new Event('change')); - break; - default: - log.error('Unknown task: ', newTask); - } - } - addCategoricalControls() { - this.controls.insertAdjacentHTML('afterbegin', ` -

Select bars with a mouse click. All bars are selected initially.

-
- - -
- `); - const visInstance = this; - select(this.controls).selectAll('button').on('click', function () { - const button = this; - const task = button.textContent.toLowerCase(); - if (task.indexOf('filter') >= 0) { - visInstance.filter(); - } - else if (task.indexOf('split') >= 0) { - visInstance.split(); - } - else { - log.error('Unknown task: ', task); - } - }); - } - handleBinChangeEvent(event) { - this.vegaView.removeDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener); //remove listener temporarily - const binCount = parseFloat(event.value); - const splitValCount = binCount - 1; - const [min, max] = this.vegaView.scale('x').domain(); - const extent = max - min; - const binWidth = extent / binCount; - const binType = this.controls.querySelector('#split select.binType'); - if (binType.selectedIndex === 0) { // equal width - this.splitValues = []; - for (let i = 1; i <= splitValCount; i++) { - const binBorder = min + binWidth * i; - this.splitValues.push({ x: binBorder }); - } - } - else if (binType.selectedIndex === 1) { // custom width - if (this.splitValues.length > splitValCount) { - this.splitValues = this.splitValues.sort((a, b) => a.x - b.x); //sort em - this.splitValues.length = splitValCount; //drop largest split values - } - else { - while (this.splitValues.length < splitValCount) { - this.splitValues.push({ x: max }); // add maximum until there are enough rulers - } - } - } - else { - this.splitValues = new Array(5).fill({ x: 0 }).map((x) => ({ x })); - } - this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE, cloneDeep(this.splitValues)); //set a defensive copy - this.vegaView.runAsync().then((vegaView) => //defer adding signallistener until the new data is set internally - vegaView.addDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener) //add listener again - ); - } - handleInputIntervalEvent(event) { - this.vegaView.removeSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //remove listener temporarily - const range = this.getBrushRange(); - log.debug('range', range); - const scaledRange = this.scaleRange(range); - log.debug('scaledRange', scaledRange); - this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME + '_x', scaledRange); - this.vegaView.runAsync(); // update the chart - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //add listener again - } - scaleRange(range) { - const scaledMin = 0; - const scaledMax = this.vegaView.width(); - const scaledRange = [scaledMin, scaledMax]; //use min and max as default for range - const scale = this.vegaView.scale('x'); - // if one or both ranges are set, replace with values - if (range[0] !== undefined && !isNaN(range[0])) { - scaledRange[0] = scale(range[0]); // get min value from input - } - if (range[1] !== undefined && !isNaN(range[1])) { - scaledRange[1] = scale(range[1]); // get max value from input - if (range[0] === range[1]) { - scaledRange[1] = scale(range[1]) + Math.pow(10, -10); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) - } - } - return scaledRange; - } - getBrushRange() { - if (!select(this.controls).select('input.minimum').empty()) { - return [ - parseFloat(select(this.controls).select('input.minimum').node().value), - parseFloat(select(this.controls).select('input.maximum').node().value) - ]; - } - return []; - } - handleVegaIntervalEvent(name, value) { - if (value[this.field]) { - const lowerBound = value[this.field][0]; - const upperBound = value[this.field][1]; - const inputs = select(this.controls).selectAll('input.interval'); - inputs.on('change', null); //remove listeners temporarily - const formatter = format('.4~f'); - select(this.controls).selectAll('input.minimum').node().value = formatter(lowerBound); - select(this.controls).selectAll('input.maximum').node().value = formatter(upperBound); - const that = this; //helper varible to access this instance in the d3 event handler function - inputs.on('change', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); //add listeners again - } - else { - select(this.controls).selectAll('input.minimum').node().value = ''; - select(this.controls).selectAll('input.maximum').node().value = ''; - } - } - handleSplitDragEvent(name, value) { - this.splitValues = this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE) - .map((val) => ({ x: val.x })) //copy vega data (remove Symbols) - .sort((a, b) => a.x - b.x); - this.controls.querySelector('#split select.binType').selectedIndex = 1; - this.controls.querySelector('#split input.bins').value = (1 + this.splitValues.length).toString(); - } -} -//# sourceMappingURL=AVegaVisualization.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/AVegaVisualization.js.map b/dist/Taskview/visualizations/AVegaVisualization.js.map deleted file mode 100644 index e2b5832..0000000 --- a/dist/Taskview/visualizations/AVegaVisualization.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AVegaVisualization.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/AVegaVisualization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,MAAM,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAS,cAAc,EAAC,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAyB,iBAAiB,EAAC,MAAM,YAAY,CAAC;AACrE,OAAO,EAAiC,GAAG,EAAC,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAC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F,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,mBAAmB,CAAsB,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1H,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/AreaChart.d.ts b/dist/Taskview/visualizations/AreaChart.d.ts deleted file mode 100644 index 404310c..0000000 --- a/dist/Taskview/visualizations/AreaChart.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { ICohort } from '../../CohortInterfaces'; -import { IdValuePair } from '../../data/Attribute'; -import { MultiAttributeVisualization } from './MultiAttributeVisualization'; -export declare class AreaChart extends MultiAttributeVisualization { - static readonly NAME = "Area Chart"; - constructor(vegaLiteOptions?: Object); - getSpec(data: IdValuePair[]): VegaLiteSpec; - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData(): { - cohort: ICohort; - from: string | number; - to: string | number; - }[]; - filter(): void; - split(): void; - addControls(): void; -} diff --git a/dist/Taskview/visualizations/AreaChart.js b/dist/Taskview/visualizations/AreaChart.js deleted file mode 100644 index a397413..0000000 --- a/dist/Taskview/visualizations/AreaChart.js +++ /dev/null @@ -1,81 +0,0 @@ -import log from 'loglevel'; -import { getCohortLabels } from '../../Cohort'; -import { DATA_LABEL } from './constants'; -import { MultiAttributeVisualization } from './MultiAttributeVisualization'; -export class AreaChart extends MultiAttributeVisualization { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - } - getSpec(data) { - if (!(this.attributes.length === 2 && this.attributes.every((attr) => ['categorical', 'string'].includes(attr.type)))) { - throw new Error(`Area chart requires attributes of type categorical`); // TODO generalize, could also be used for binned numerical - } - const scatterSpec = { - $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - data: { values: data }, - padding: { left: 5, top: 0, right: 5, bottom: 5 }, - mark: { type: 'square', tooltip: true }, - encoding: { - row: { - field: this.attributes[0].dataKey, - type: 'nominal', - spacing: -2, - header: { - labelAngle: 0, - labelAlign: 'left', - title: null // We will set a descriptive title for the whole plot - } - }, - x: { - field: this.attributes[1].dataKey, - type: 'nominal', - title: null - }, - y: { - field: DATA_LABEL, - type: 'nominal', - axis: null // hide cohort names - }, - color: { - // bars will only change color on selection if the type is ordinal/nominal - // for quantitative this does not work due the applied data transofrmations (binning) - // which leads to errors on select/hovering selected data (data in the interval) - field: DATA_LABEL, - type: 'nominal', - scale: { domain: getCohortLabels(this.cohorts) }, - legend: null // custom legend - }, - size: { - aggregate: 'count', - type: 'quantitative', - scale: { type: 'linear' } - } - }, - view: { cursor: 'pointer' } - }; - // Get base spec, merge with above - const vegaLiteSpec = Object.assign(super.getSpec(data), scatterSpec); - delete vegaLiteSpec.autosize; // does not work for facetted charts - delete vegaLiteSpec.width; // determine by step size - // this.addIntervalSelection(vegaLiteSpec); // add interval selection - return Object.assign(vegaLiteSpec, this.vegaLiteOptions); - } - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData() { - return []; - } - filter() { - log.error('filter is not implemented'); - } - split() { - log.error('split is not implemented'); - } - addControls() { - log.info('no controls for Area Chart yet'); - } -} -AreaChart.NAME = 'Area Chart'; -//# sourceMappingURL=AreaChart.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/AreaChart.js.map b/dist/Taskview/visualizations/AreaChart.js.map deleted file mode 100644 index 452498b..0000000 --- a/dist/Taskview/visualizations/AreaChart.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AreaChart.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/AreaChart.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAE3B,OAAO,EAAC,eAAe,EAAC,MAAM,cA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newline at end of file diff --git a/dist/Taskview/visualizations/DensityPlot.d.ts b/dist/Taskview/visualizations/DensityPlot.d.ts deleted file mode 100644 index 34cfd92..0000000 --- a/dist/Taskview/visualizations/DensityPlot.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { ICohort } from '../../CohortInterfaces'; -import { IdValuePair } from '../../data/Attribute'; -import { SingleAttributeVisualization } from './AVegaVisualization'; -export declare class DensityPlot extends SingleAttributeVisualization { - static readonly NAME = "Density Plot"; - static readonly TRANSFORMED_ATTRIBUTE = "value"; - protected readonly type = "quantitative"; - constructor(vegaLiteOptions?: Object); - getSpec(data: IdValuePair[]): VegaLiteSpec; - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData(): { - cohort: ICohort; - from: string | number; - to: string | number; - }[]; - showImpl(chart: HTMLDivElement, data: Array): Promise; -} diff --git a/dist/Taskview/visualizations/DensityPlot.js b/dist/Taskview/visualizations/DensityPlot.js deleted file mode 100644 index ee58b43..0000000 --- a/dist/Taskview/visualizations/DensityPlot.js +++ /dev/null @@ -1,630 +0,0 @@ -import { format, select } from 'd3v7'; -import log from 'loglevel'; -import { AVegaVisualization, SingleAttributeVisualization } from './AVegaVisualization'; -import { DATA_LABEL } from './constants'; -import { countConfig, counts } from './config/CountCounfig'; -export class DensityPlot extends SingleAttributeVisualization { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - this.type = 'quantitative'; - this.config = [ - { icon: '', label: 'Density Estimation Method', groups: [countConfig] } - ]; - } - getSpec(data) { - this.field = DensityPlot.TRANSFORMED_ATTRIBUTE; // set for interval selection handler - if (this.attribute.type !== `number`) { - throw new Error(`Type "${this.attribute.type}" is not supported for density plots.`); - } - const vegaSpec = { - $schema: 'https://vega.github.io/schema/vega/v5.json', - autosize: { type: 'fit-x', contains: 'padding' }, - background: 'white', - padding: { left: 5, top: 0, right: 0, bottom: 5 }, - height: 300, - style: 'cell', - encode: { update: { cursor: { value: 'text' } } }, - data: [ - { name: 'selected_store' }, - { - name: 'source_0', - values: data.filter((d) => d[this.attribute.dataKey] !== null) - }, - { - name: 'splitvalues', - values: this.splitValues, - on: [ - { - trigger: 'draggedMark', - modify: 'draggedMark', - values: 'dragTo' - }, - { - trigger: 'addMark', - insert: 'addMark' - }, - { - trigger: 'remMark', - remove: 'remMark' - } - ] - }, - { - name: 'data_0', - source: 'source_0', - transform: [ - { - type: 'kde', - field: this.attribute.dataKey, - groupby: [DATA_LABEL], - counts: countConfig.getSelected().label === counts.label, - as: ['value', 'density'] - } - ] - } - ], - signals: [ - { - name: 'width', - init: 'isFinite(containerSize()[0]) ? containerSize()[0] : 200', - on: [ - { - update: 'isFinite(containerSize()[0]) ? containerSize()[0] : 200', - events: 'window:resize' - } - ] - }, - { - name: 'dragTo', - on: [ - { - events: '[@right_grabber:mousedown, window:mouseup] > window:mousemove', - update: '{x: invert(\'x\',x())}' - } - ] - }, - { - name: 'draggedMark', - on: [ - { - events: [{ - markname: 'right_grabber', - type: 'mousedown', - filter: ['!event.ctrlKey'] - }], - update: 'group().datum' - } - ] - }, - { - name: 'addMark', - on: [ - { - events: [ - { - source: 'view', - type: 'click', - filter: ['event.ctrlKey', 'item().mark.name === \'root\''] - } - ], - update: '{x: invert(\'x\',x())}' - } - ] - }, - { - name: 'remMark', - on: [ - { - events: [ - { markname: 'right_grabber', type: 'click', filter: 'event.ctrlKey' }, - { markname: 'splitrule', type: 'click', filter: 'event.ctrlKey' } - ], - update: 'group().datum' - } - ] - }, - { - name: 'unit', - value: {}, - on: [ - { events: 'mousemove', update: 'isTuple(group()) ? group() : unit' } - ] - }, - { - name: 'selected', - update: 'vlSelectionResolve(\'selected_store\', \'union\')' - }, - { - name: 'selected_x', - value: [], - on: [ - { - events: { - source: 'view', - type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] - }, - update: '[x(unit), x(unit)]' - }, - { - events: { - source: 'window', - type: 'mousemove', - consume: true, - between: [ - { - source: 'scope', - type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] - }, - { source: 'window', type: 'mouseup' } - ] - }, - update: '[selected_x[0], clamp(x(unit), 0, width)]' - }, - { - events: { signal: 'selected_scale_trigger' }, - update: '[scale(\'x\', selected_value[0]), scale(\'x\', selected_value[1])]' - }, - { - events: [{ - source: 'view', - type: 'dblclick', - filter: [ - 'event.item.mark.name !== \'right_grabber\'' - ] - }], - update: '[0, 0]' - }, - { - events: { signal: 'selected_translate_delta' }, - update: 'clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)' - }, - { - events: { signal: 'selected_zoom_delta' }, - update: 'clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)' - } - ] - }, - { - name: 'selected_value', - value: this.getBrushRange(), - on: [ - { - events: { signal: 'selected_x' }, - update: 'selected_x[0] === selected_x[1] ? null : invert(\'x\', selected_x)' - } - ] - }, - { - name: 'selected_scale_trigger', - value: {}, - on: [ - { - events: [{ scale: 'x' }], - update: '(!isArray(selected_value) || (+invert(\'x\', selected_x)[0] === +selected_value[0] && +invert(\'x\', selected_x)[1] === +selected_value[1])) ? selected_scale_trigger : {}' - } - ] - }, - { - name: 'selected_tuple', - on: [ - { - events: [{ signal: 'selected_value' }], - update: 'selected_value ? {unit: \'layer_0\', fields: selected_tuple_fields, values: [selected_value]} : null' - } - ] - }, - { - name: 'selected_tuple_fields', - value: [{ field: 'value', channel: 'x', type: 'R' }] - }, - { - name: 'selected_translate_anchor', - value: {}, - on: [ - { - events: [ - { - source: 'scope', - type: 'mousedown', - markname: 'selected_brush' - } - ], - update: '{x: x(unit), y: y(unit), extent_x: slice(selected_x)}' - } - ] - }, - { - name: 'selected_translate_delta', - value: {}, - on: [ - { - events: [ - { - source: 'window', - type: 'mousemove', - consume: true, - between: [ - { - source: 'scope', - type: 'mousedown', - markname: 'selected_brush' - }, - { source: 'window', type: 'mouseup' } - ] - } - ], - update: '{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}' - } - ] - }, - { - name: 'selected_zoom_anchor', - on: [ - { - events: [ - { - source: 'scope', - type: 'wheel', - consume: true, - markname: 'selected_brush' - } - ], - update: '{x: x(unit), y: y(unit)}' - } - ] - }, - { - name: 'selected_zoom_delta', - on: [ - { - events: [ - { - source: 'scope', - type: 'wheel', - consume: true, - markname: 'selected_brush' - } - ], - force: true, - update: 'pow(1.001, event.deltaY * pow(16, event.deltaMode))' - } - ] - }, - { - name: 'selected_modify', - on: [ - { - events: { signal: 'selected_tuple' }, - update: 'modify(\'selected_store\', selected_tuple, true)' - } - ] - } - ], - marks: [ - { - name: 'selected_brush_bg', - type: 'rect', - clip: true, - encode: { - enter: { fill: { value: '#333' }, fillOpacity: { value: 0.125 } }, - update: { - x: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' - }, - { value: 0 } - ], - y: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 - }, - { value: 0 } - ], - x2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' - }, - { value: 0 } - ], - y2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: { group: 'height' } - }, - { value: 0 } - ] - } - } - }, - { - name: 'layer_0_pathgroup', - type: 'group', - from: { - facet: { - name: 'faceted_path_layer_0_main', - data: 'data_0', - groupby: [DATA_LABEL] - } - }, - encode: { - update: { - width: { field: { group: 'width' } }, - height: { field: { group: 'height' } } - } - }, - marks: [ - { - name: 'layer_0_marks', - type: 'line', - style: ['line'], - sort: { field: ['datum[\'value\']'], order: ['ascending'] }, - interactive: true, - from: { data: 'faceted_path_layer_0_main' }, - encode: { - update: { - cursor: { value: 'text' }, - tooltip: { - signal: `{\'${this.attribute.label}\': format(datum[\'value\'], \'\'), \'Density\': format(datum[\'density\'], \'\'), \'value\': format(datum[\'value\'], \'\'), \'${DATA_LABEL}\': isValid(datum[\'${DATA_LABEL}\']) ? datum[\'${DATA_LABEL}\'] : \'\'+datum[\'${DATA_LABEL}\']}` - }, - stroke: { scale: 'color', field: DATA_LABEL }, - description: { - signal: `\'${this.attribute.label}: \' + (format(datum[\'value\'], \'\')) + \'; Density: \' + (format(datum[\'density\'], \'\')) + \'; value: \' + (format(datum[\'value\'], \'\')) + \'; ${DATA_LABEL}: \' + (isValid(datum[\'${DATA_LABEL}\']) ? datum[\'${DATA_LABEL}\'] : \'\'+datum[\'${DATA_LABEL}\'])` - }, - x: { scale: 'x', field: 'value' }, - y: { scale: 'y', field: 'density' }, - defined: { - signal: 'isValid(datum[\'value\']) && isFinite(+datum[\'value\']) && isValid(datum[\'density\']) && isFinite(+datum[\'density\'])' - } - } - } - } - ] - }, - { - name: 'selected_brush', - type: 'rect', - clip: true, - encode: { - enter: { - cursor: { value: 'pointer' }, - fill: { value: 'transparent' } - }, - update: { - x: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' - }, - { value: 0 } - ], - y: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 - }, - { value: 0 } - ], - x2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' - }, - { value: 0 } - ], - y2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: { group: 'height' } - }, - { value: 0 } - ], - stroke: [ - { test: 'selected_x[0] !== selected_x[1]', value: 'white' }, - { value: null } - ] - } - } - }, - { - name: 'splitmarks', - type: 'group', - from: { data: 'splitvalues' }, - encode: { - enter: { height: { field: { group: 'height' } } }, - update: { - x: [ - { - test: '!isValid(datum[\'x\']) || !isFinite(+datum[\'x\'])', - value: 0 - }, - { scale: 'x', field: 'x' } - ] - } - }, - marks: [ - { - name: 'splitrule', - type: 'rule', - style: ['rule'], - encode: { - update: { - strokeDash: { value: [4, 6] }, - stroke: { value: 'black' }, - y: { value: 0 }, - y2: { field: { group: 'height' } } - } - } - }, - { - type: 'path', - name: 'right_grabber', - encode: { - enter: { - y: { field: { group: 'height' }, mult: 0.5, offset: -50 }, - fill: { value: '#fff' }, - stroke: { value: '#666' }, - cursor: { value: 'ew-resize' } - }, - update: { - path: { - signal: '\'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667\'' - } - } - } - } - ] - } - ], - scales: [ - { - name: 'x', - ...this.attribute.preferLog ? { type: 'log', base: 10 } : { type: 'linear', zero: false }, - domain: { data: 'data_0', field: 'value' }, - range: [0, { signal: 'width' }], - clamp: true, - nice: false - }, - { - name: 'y', - type: 'linear', - domain: { data: 'data_0', field: 'density' }, - range: [{ signal: 'height' }, 0], - nice: true, - zero: true - }, - { - name: 'color', - type: 'ordinal', - domain: { data: 'data_0', field: DATA_LABEL }, - range: 'category' - } - ], - axes: [ - { - scale: 'x', - orient: 'bottom', - gridScale: 'y', - grid: true, - tickCount: { signal: 'ceil(width/40)' }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - }, - { - scale: 'y', - orient: 'left', - gridScale: 'x', - grid: true, - tickCount: { signal: 'ceil(height/40)' }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - }, - { - scale: 'x', - orient: 'bottom', - grid: false, - title: this.attribute.label, - labelFlush: true, - tickCount: { signal: 'ceil(width/40)' }, - zindex: 0 - }, - { - scale: 'y', - orient: 'left', - grid: false, - title: 'Density', - tickCount: { signal: 'ceil(height/40)' }, - zindex: 0 - } - ], - config: { - range: { category: this.colorPalette }, - axis: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: 'Roboto', - labelFontSize: 12, - labelLimit: 150, - labelFont: 'Roboto', - labelOverlap: 'parity', - labelSeparation: 5, - labelBound: true - }, - legend: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: 'Roboto', - labelFontSize: 12, - labelLimit: 150, - labelFont: 'Roboto', - labelOverlap: 'parity' - } - } - }; - return vegaSpec; //little workaround because the multiple types supported by vegaEmbed are not recognized correctly - } - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData() { - const filters = []; - const formatter = format('.6~f'); // round numbers to 6 decimal digits - if (!this.hideVisualization) { - const selections = this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME); - let attrSelection = selections[DensityPlot.TRANSFORMED_ATTRIBUTE]; // value == name applied through density transform - if (!attrSelection || attrSelection.length !== 2) { - attrSelection = this.vegaView.scale('x').domain(); - } - this.cohorts.forEach((cohort) => { - filters.push({ from: formatter(attrSelection[0]), to: formatter(attrSelection[1]), cohort }); - const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if (nullFilter) { - filters.push(nullFilter); - } - }); - } - else { - this.cohorts.forEach((cohort) => { - const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if (nullFilter) { - filters.push(nullFilter); - } - }); - } - log.debug('filters', filters); - return filters; - } - async showImpl(chart, data) { - await super.showImpl(chart, data); - this.vegaView.addDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener); - this.vegaView.addSignalListener('remMark', (name, value) => { - this.splitValues = this.splitValues.filter((splitVal) => splitVal.x !== value.x); - this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE, this.splitValues); - }); - select(this.chart).selectAll('g.splitmarks').style('display', 'none'); - } -} -DensityPlot.NAME = 'Density Plot'; -DensityPlot.TRANSFORMED_ATTRIBUTE = 'value'; // After applying the vega density transform, the attribute is simply called value -//# sourceMappingURL=DensityPlot.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/DensityPlot.js.map b/dist/Taskview/visualizations/DensityPlot.js.map deleted file mode 100644 index 0f422b0..0000000 --- a/dist/Taskview/visualizations/DensityPlot.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DensityPlot.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/DensityPlot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,MAAM,CAAC;AACpC,OAAO,GAAG,MAAM,UAAU,CAAC;AAK3B,OAAO,EAAC,kBAAkB,EAAE,4BAA4B,EAAC,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,OAAO,WAAY,SAAQ,4BAA4B;IAM3D,YAAY,kBAA0B,EAAE;QACtC,KAAK,CAAC,eAAe,CAAC,CAAC;QAHN,SAAI,GAAG,cAAc,CAAC;QAKvC,IAAI,CAAC,MAAM,GAAG;YACZ,EAAC,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,2BAA2B,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAC;SAClG,CAAC;IACJ,CAAC;IAGD,OAAO,CAAC,IAAmB;QACzB,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC,qCAAqC;QAErF,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,QAAQ,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,IAAI,uCAAuC,CAAC,CAAC;SACtF;QAED,MAAM,QAAQ,GAAa;YACzB,OA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Taskview/visualizations/GroupedBoxplot.d.ts b/dist/Taskview/visualizations/GroupedBoxplot.d.ts deleted file mode 100644 index a00ec28..0000000 --- a/dist/Taskview/visualizations/GroupedBoxplot.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute, IdValuePair } from '../../data/Attribute'; -import { MultiAttributeVisualization } from './MultiAttributeVisualization'; -export declare class GroupedBoxplot extends MultiAttributeVisualization { - static readonly NAME = "Boxplot"; - catAttribute: IAttribute; - numAttribute: IAttribute; - brushData: object[]; - constructor(vegaLiteOptions?: Object); - showImpl(chart: HTMLDivElement, data: Array): Promise; - addIntervalSelection(spec: any): void; - protected addIntervalControls(attributeLabel: string, axis: any): void; - handleInputIntervalEvent(event: any): void; - handleVegaIntervalEvent(name: any, interval: object): void; - clearSelection(): void; - getSelectedData(): { - cohort: ICohort; - from: string | number; - to: string | number; - }[]; - filter(): void; - split(): void; - getSpec(data: IdValuePair[]): VegaLiteSpec; -} diff --git a/dist/Taskview/visualizations/GroupedBoxplot.js b/dist/Taskview/visualizations/GroupedBoxplot.js deleted file mode 100644 index 3e46abf..0000000 --- a/dist/Taskview/visualizations/GroupedBoxplot.js +++ /dev/null @@ -1,1150 +0,0 @@ -import { format, select } from 'd3v7'; -import log from 'loglevel'; -import { NumRangeOperators } from '../../rest'; -import { FilterEvent, SplitEvent } from '../../utilCustomEvents'; -import { AVegaVisualization } from './AVegaVisualization'; -import { groupByConfig } from './config/GroupConfig'; -import { BRUSH_DATA_END, BRUSH_DATA_NAME, BRUSH_DATA_START, DATA_LABEL } from './constants'; -import { MultiAttributeVisualization } from './MultiAttributeVisualization'; -export class GroupedBoxplot extends MultiAttributeVisualization { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - this.brushData = []; - this.config = [ - { icon: '', label: 'Group', groups: [groupByConfig] } - ]; - } - async showImpl(chart, data) { - await super.showImpl(chart, data); - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); - this.toggleFilterSplitMarks(this.getActiveTask()); - } - addIntervalSelection(spec) { - if (!spec.params) { // create if not existing - spec.params = []; - } - const range = this.getFilterRange('x'); - spec.params.push({ - name: AVegaVisualization.SELECTION_SIGNAL_NAME, - select: { - type: 'interval', - mark: { fillOpacity: 0, strokeOpacity: 0, cursor: 'pointer' }, - encodings: ['x'], - resolve: 'global' - }, - ...(range.length > 0 ? { value: { x: range } } : {}) - }); - } - addIntervalControls(attributeLabel, axis) { - super.addIntervalControls(attributeLabel, 'x'); //always x - } - handleInputIntervalEvent(event) { - this.vegaView.removeSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //remove listener temporarily - const range = this.getInterval('x'); - log.debug('range', range); - const scale = this.vegaView.scale('x'); - const newRange = scale.domain(); - // if one or both ranges are set, replace with values - if (range[0] !== undefined && !isNaN(range[0])) { - newRange[0] = range[0]; // get min value from input - } - if (range[1] !== undefined && !isNaN(range[1])) { - newRange[1] = range[1]; // get max value from input - if (range[0] === range[1]) { - newRange[1] = scale.invert(scale(range[1]) + Math.pow(10, -10)); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) - } - } - log.info('scaledRange', newRange); - // Set brushes' data - this.brushData = [{ [BRUSH_DATA_START]: newRange[0], [BRUSH_DATA_END]: newRange[1] }]; - this.vegaView.data(BRUSH_DATA_NAME, this.brushData); - super.clearSelection(); // clear Vega's transparent brush because it no longer matches the custom brushes - this.vegaView.runAsync(); // update the chart - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //remove listener temporarily - } - handleVegaIntervalEvent(name, interval) { - log.debug(name, interval); - if (this.showBrush) { - if (interval[BRUSH_DATA_START]) { - const lowerBound = interval[BRUSH_DATA_START][0]; - const upperBound = interval[BRUSH_DATA_START][1]; - const inputs = select(this.controls).selectAll('input.interval'); - inputs.on('change', null); //remove listeners temporarily - const formatter = format('.4~f'); - select(this.controls).selectAll('input.minimum').node().value = formatter(lowerBound); - select(this.controls).selectAll('input.maximum').node().value = formatter(upperBound); - // Set brushes' data - this.brushData = [{ [BRUSH_DATA_START]: lowerBound, [BRUSH_DATA_END]: upperBound }]; - this.vegaView.data(BRUSH_DATA_NAME, this.brushData); - const that = this; //helper varible to access this instance in the d3 event handler function - inputs.on('change', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); //add listeners again - } - else { - select(this.controls).selectAll('input.minimum').node().value = ''; - select(this.controls).selectAll('input.maximum').node().value = ''; // Set brushes' data - this.brushData = []; - this.vegaView.data(BRUSH_DATA_NAME, this.brushData); - } - this.vegaView.runAsync(); // update the custom brush in the chart - } - else { - // nothing to do because the vega brush is transparent - } - } - clearSelection() { - super.clearSelection(); - this.brushData = []; - this.vegaView.data(BRUSH_DATA_NAME, this.brushData); - this.vegaView.runAsync(); - } - getSelectedData() { - return []; - } - filter() { - const interval = this.getInterval('x'); - const range = [{ - operatorOne: NumRangeOperators.gte, - valueOne: interval[0], - operatorTwo: NumRangeOperators.lte, - valueTwo: interval[1] - }]; - if (this.getNullCheckboxState(this.numAttribute)) { - range.push({ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }); - } - const categories = this.vegaView.data('row_domain').map((row) => row[this.catAttribute.dataKey]); - const filterDescs = []; - for (const cht of this.cohorts) { //every cohort - // NUM Filter - for (const cat of categories) { // every category - const filter = []; - // filter by numerical range and ... - filter.push({ - attr: this.numAttribute, - range - }); - // ... filter by category - filter.push({ - attr: this.catAttribute, - range: { values: [String(cat)] } - }); - // store filter with cohort - filterDescs.push({ - cohort: cht, - filter - }); - } - } - this.container.dispatchEvent(new FilterEvent(filterDescs)); - } - split() { - const categories = this.vegaView.data('row_domain').map((row) => row[this.catAttribute.dataKey]); - const [minX, maxX] = this.vegaView.scale('x').domain(); - const filterDescs = []; - for (const cht of this.cohorts) { //every cohort - // NUM Filter - for (const cat of categories) { // every category - for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { //every range - const filter = []; - // filter by numerical range and ... - filter.push({ - attr: this.numAttribute, - range: [this.getGeneralNumericalFilter(ix >= 1 ? this.splitValuesX[ix - 1] : minX, splitX, NumRangeOperators.gte, splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - }); - // ... filter by category - filter.push({ - attr: this.catAttribute, - range: { values: [String(cat)] } - }); - // store filter with cohort - filterDescs.push({ - cohort: cht, - filter - }); - } - if (this.getNullCheckboxState(this.numAttribute)) { - filterDescs.push({ - cohort: cht, - filter: [ - { - attr: this.numAttribute, - range: [{ operatorOne: NumRangeOperators.gte, valueOne: null, operatorTwo: NumRangeOperators.lte, valueTwo: null }] - }, - { attr: this.catAttribute, range: { values: [String(cat)] } } - ] - }); - } - } - } - this.container.dispatchEvent(new SplitEvent(filterDescs)); - } - getSpec(data) { - this.catAttribute = this.attributes.find((attr) => ['categorical', 'string'].includes(attr.type)); - this.numAttribute = this.attributes.find((attr) => attr.type === `number`); - if (!this.catAttribute || !this.numAttribute) { - throw new Error(`Boxplot requires attributes of type number and categorical`); - } - const [yField, rowField] = groupByConfig.getSelected().label === 'Same Category' ? [DATA_LABEL, this.catAttribute.dataKey] : [this.catAttribute.dataKey, DATA_LABEL]; - const vegaSpec = { - $schema: `https://vega.github.io/schema/vega/v5.json`, - background: `white`, - padding: { left: 5, top: 0, right: 5, bottom: 5 }, - data: [ - { name: `selected_store` }, - { - name: `source_0`, - values: data - }, - { name: BRUSH_DATA_NAME, values: this.brushData }, - { - name: `splitvalues_x`, values: this.splitValuesX, - on: [ - { - trigger: `draggedMark_x`, - modify: `draggedMark_x`, - values: `dragTo_x` - }, - { - trigger: `addMark_x`, - insert: `addMark_x` - }, - { - trigger: `remMark_x`, - remove: `remMark_x` - } - ] - }, - { - name: `row_domain`, - source: `source_0`, - transform: [{ type: `aggregate`, groupby: [rowField] }] - }, - { - name: `data_2`, - source: `source_0`, - transform: [ - { - type: `joinaggregate`, - as: [`lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], - ops: [`q1`, `q3`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], - groupby: [yField, rowField] - } - ] - }, - { - name: `data_3`, - source: `data_2`, - transform: [ - { - type: `filter`, - expr: `(datum['${this.numAttribute.dataKey}'] < datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}'])) || (datum['${this.numAttribute.dataKey}'] > datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` - }, - { - type: `filter`, - expr: `isValid(datum['${this.numAttribute.dataKey}']) && isFinite(+datum['${this.numAttribute.dataKey}'])` - } - ] - }, - { - name: `data_4`, - source: `data_2`, - transform: [ - { - type: `filter`, - expr: `(datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']) <= datum['${this.numAttribute.dataKey}']) && (datum['${this.numAttribute.dataKey}'] <= datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` - }, - { - type: `aggregate`, - groupby: [yField, rowField], - ops: [`min`, `max`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], - as: [ - `lower_whisker_${this.numAttribute.dataKey}`, - `upper_whisker_${this.numAttribute.dataKey}`, - `lower_box_${this.numAttribute.dataKey}`, - `upper_box_${this.numAttribute.dataKey}` - ] - } - ] - }, - { - name: `data_5`, - source: `source_0`, - transform: [ - { - type: `aggregate`, - groupby: [yField, rowField], - ops: [`q1`, `q3`, `median`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], - as: [ - `lower_box_${this.numAttribute.dataKey}`, - `upper_box_${this.numAttribute.dataKey}`, - `mid_box_${this.numAttribute.dataKey}`, - `min_${this.numAttribute.dataKey}`, - `max_${this.numAttribute.dataKey}` - ] - } - ] - }, - { - name: `data_6`, - source: BRUSH_DATA_NAME, - transform: [ - { - type: `filter`, - expr: `isValid(datum['brush_start']) && isFinite(+datum['brush_start'])` - } - ] - }, - { - name: `data_7`, - source: `splitvalues_x`, - transform: [ - { - type: `filter`, - expr: `isValid(datum['data']) && isFinite(+datum['data'])` - } - ] - } - ], - signals: [ - { name: `child_width`, value: 520 }, - { name: `y_step`, value: 20 }, - { - name: `child_height`, - update: `bandspace(domain('y').length, 0, 0) * y_step` - }, - { - name: `unit`, - value: {}, - on: [ - { events: `mousemove`, update: `isTuple(group()) ? group() : unit` } - ] - }, - { - name: `selected`, - update: `vlSelectionResolve('selected_store', 'union')` - }, - { - name: `dragTo_x`, - on: [ - { - events: `[@grabber_x:mousedown, window:mouseup] > window:mousemove`, - update: `{data: invert('x',x())}` - } - ] - }, - { - name: `draggedMark_x`, - on: [ - { - events: [ - { - markname: `grabber_x`, - type: `mousedown`, - filter: [ - `!event.ctrlKey` - ] - } - ], - update: `group().datum` - } - ] - }, - { - name: `addMark_x`, - on: [ - { - events: [ - { - source: `view`, - type: `click`, - filter: [ - `event.ctrlKey`, - `item().mark.name !== 'grabber_x'` - ] - } - ], - update: `{data: invert('x',x())}` - } - ] - }, - { - name: `remMark_x`, - on: [ - { - events: [ - { - markname: `grabber_x`, - type: `click`, - filter: `event.ctrlKey` - }, - { - markname: `splitrule_x`, - type: `click`, - filter: `event.ctrlKey` - } - ], - update: `group().datum` - } - ] - } - ], - layout: { - padding: { row: -2, column: 20 }, - offset: { rowTitle: 10 }, - columns: 1, - bounds: `full`, - align: `all`, - titleBand: { row: 0 } - }, - marks: [ - { - name: `row-title`, - type: `group`, - role: `row-title`, - title: { - text: this.catAttribute.label, - orient: `left`, - style: `guide-title`, - align: `right`, - anchor: `end`, - font: `Roboto`, - fontSize: 16, - fontWeight: 500, - offset: 10 - } - }, - { - name: `row_header`, - type: `group`, - role: `row-header`, - from: { data: `row_domain` }, - sort: { field: `datum['${rowField}']`, order: `ascending` }, - title: groupByConfig.getSelected().label === 'Same Cohort' ? null : { - text: { - signal: `isValid(parent['${this.catAttribute.dataKey}']) ? parent['${this.catAttribute.dataKey}'] : ''+parent['${this.catAttribute.dataKey}']` - }, - orient: `left`, - style: `guide-label`, - frame: `group`, - baseline: `middle`, - align: `left`, - angle: 0, - font: `Roboto`, - fontSize: 12, - limit: 150, - offset: 10 - }, - axes: groupByConfig.getSelected().label === 'Same Cohort' ? [ - { - scale: 'y', - orient: 'left', - grid: false, - domain: false, - ticks: false, - zindex: 0 - } - ] : [], - encode: { update: { height: { signal: `child_height` } } } - }, - { - name: `column_header`, - type: `group`, - role: `column-header`, - encode: { update: { width: { signal: `child_width` } } }, - axes: [ - { - scale: `x`, - orient: `top`, - grid: false, - title: this.numAttribute.label, - labelFlush: true, - tickCount: { signal: `ceil(child_width/40)` }, - zindex: 0 - } - ] - }, - { - name: `cell`, - type: `group`, - style: `cell`, - from: { - facet: { name: `facet`, data: `source_0`, groupby: [rowField] } - }, - sort: { field: [`datum['${this.catAttribute.dataKey}']`], order: [`ascending`] }, - data: [ - { - source: `facet`, - name: `data_0`, - transform: [ - { - type: `joinaggregate`, - as: [`lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], - ops: [`q1`, `q3`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], - groupby: [yField, DATA_LABEL] - } - ] - }, - { - name: `data_1`, - source: `data_0`, - transform: [ - { - type: `filter`, - expr: `(datum['${this.numAttribute.dataKey}'] < datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}'])) || (datum['${this.numAttribute.dataKey}'] > datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` - }, - { - type: `filter`, - expr: `isValid(datum['${this.numAttribute.dataKey}']) && isFinite(+datum['${this.numAttribute.dataKey}'])` - } - ] - }, - { - name: `data_2`, - source: `data_0`, - transform: [ - { - type: `filter`, - expr: `(datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']) <= datum['${this.numAttribute.dataKey}']) && (datum['${this.numAttribute.dataKey}'] <= datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` - }, - { - type: `aggregate`, - groupby: [yField, rowField], - ops: [`min`, `max`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], - as: [ - `lower_whisker_${this.numAttribute.dataKey}`, - `upper_whisker_${this.numAttribute.dataKey}`, - `lower_box_${this.numAttribute.dataKey}`, - `upper_box_${this.numAttribute.dataKey}` - ] - } - ] - }, - { - source: `facet`, - name: `data_3`, - transform: [ - { - type: `aggregate`, - groupby: [yField, rowField], - ops: [`q1`, `q3`, `median`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], - as: [ - `lower_box_${this.numAttribute.dataKey}`, - `upper_box_${this.numAttribute.dataKey}`, - `mid_box_${this.numAttribute.dataKey}`, - `min_${this.numAttribute.dataKey}`, - `max_${this.numAttribute.dataKey}` - ] - } - ] - } - ], - encode: { - update: { - width: { signal: `child_width` }, - height: { signal: `child_height` } - } - }, - signals: [ - { - name: `facet`, - value: {}, - on: [ - { - events: [{ source: `scope`, type: `mousemove` }], - update: `isTuple(facet) ? facet : group('cell').datum` - } - ] - }, - { - name: `selected_x`, - value: [], - on: [ - { - events: { - source: `scope`, - type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'`, - `event.item.mark.name !== 'grabber_x'` - ] - }, - update: `[x(unit), x(unit)]` - }, - { - events: { - source: `window`, - type: `mousemove`, - consume: true, - between: [ - { - source: `scope`, - type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'`, - `event.item.mark.name !== 'grabber_x'` - ] - }, - { source: `window`, type: `mouseup` } - ] - }, - update: `[selected_x[0], clamp(x(unit), 0, child_width)]` - }, - { - events: { signal: `selected_scale_trigger` }, - update: `[scale('x', selected_brush_start[0]), scale('x', selected_brush_start[1])]` - }, - { - events: [{ source: `view`, type: `dblclick` }], - update: `[0, 0]` - }, - { - events: { signal: `selected_translate_delta` }, - update: `clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, child_width)` - }, - { - events: { signal: `selected_zoom_delta` }, - update: `clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, child_width)` - } - ] - }, - { - name: `selected_brush_start`, - on: [ - { - events: { signal: `selected_x` }, - update: `selected_x[0] === selected_x[1] ? null : invert('x', selected_x)` - } - ] - }, - { - name: `selected_scale_trigger`, - value: {}, - on: [ - { - events: [{ scale: `x` }], - update: `(!isArray(selected_brush_start) || (+invert('x', selected_x)[0] === +selected_brush_start[0] && +invert('x', selected_x)[1] === +selected_brush_start[1])) ? selected_scale_trigger : {}` - } - ] - }, - { - name: `selected_tuple`, - on: [ - { - events: [{ signal: `selected_brush_start` }], - update: `selected_brush_start ? {unit: 'child_layer_0' + '__facet_row_' + (facet['${rowField}']), fields: selected_tuple_fields, values: [selected_brush_start]} : null` - } - ] - }, - { - name: `selected_tuple_fields`, - value: [{ field: `brush_start`, channel: `x`, type: `R` }] - }, - { - name: `selected_translate_anchor`, - value: {}, - on: [ - { - events: [ - { - source: `scope`, - type: `mousedown`, - markname: `selected_brush` - } - ], - update: `{x: x(unit), y: y(unit), extent_x: slice(selected_x)}` - } - ] - }, - { - name: `selected_translate_delta`, - value: {}, - on: [ - { - events: [ - { - source: `window`, - type: `mousemove`, - consume: true, - between: [ - { - source: `scope`, - type: `mousedown`, - markname: `selected_brush` - }, - { source: `window`, type: `mouseup` } - ] - } - ], - update: `{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}` - } - ] - }, - { - name: `selected_zoom_anchor`, - on: [ - { - events: [ - { - source: `scope`, - type: `wheel`, - consume: true, - markname: `selected_brush` - } - ], - update: `{x: x(unit), y: y(unit)}` - } - ] - }, - { - name: `selected_zoom_delta`, - on: [ - { - events: [ - { - source: `scope`, - type: `wheel`, - consume: true, - markname: `selected_brush` - } - ], - force: true, - update: `pow(1.001, event.deltaY * pow(16, event.deltaMode))` - } - ] - }, - { - name: `selected_modify`, - on: [ - { - events: { signal: `selected_tuple` }, - update: `modify('selected_store', selected_tuple, true)` - } - ] - } - ], - marks: [ - { - name: `selected_brush_bg`, - type: `rect`, - clip: true, - encode: { - enter: { fill: { value: `#333` }, fillOpacity: { value: 0 } }, - update: { - x: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[0]` - }, - { value: 0 } - ], - y: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - value: 0 - }, - { value: 0 } - ], - x2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[1]` - }, - { value: 0 } - ], - y2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - field: { group: `height` } - }, - { value: 0 } - ] - } - } - }, - { - name: `selected_brush_facethelper`, - type: `rect`, - style: [`rect`], - interactive: true, - from: { data: `data_6` }, - encode: { - update: { - opacity: { value: 0.125 }, - fill: { value: `#333` }, - description: { - signal: `'brush_start: ' + (format(datum['brush_start'], '')) + '; brush_end: ' + (format(datum['brush_end'], ''))` - }, - x: [ - { - test: `!isValid(datum['brush_start']) || !isFinite(+datum['brush_start'])`, - value: 0 - }, - { scale: `x`, field: `brush_start` } - ], - x2: [ - { - test: `!isValid(datum['brush_end']) || !isFinite(+datum['brush_end'])`, - value: 0 - }, - { scale: `x`, field: `brush_end` } - ], - y: { value: 0 }, - y2: { field: { group: `height` } } - } - } - }, - { - name: `child_layer_1_layer_0_layer_0_marks`, - type: `symbol`, - style: [`point`, `boxplot-outliers`], - interactive: false, - from: { data: `data_1` }, - encode: { - update: { - opacity: { value: 0.7 }, - fill: { value: `transparent` }, - stroke: { scale: `color`, field: DATA_LABEL }, - ariaRoleDescription: { value: `point` }, - description: { - signal: `'${this.catAttribute.label}: ' + (format(datum['${this.numAttribute.dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])` - }, - x: [ - { - test: `!isValid(datum['${this.numAttribute.dataKey}']) || !isFinite(+datum['${this.numAttribute.dataKey}'])`, - value: 0 - }, - { scale: `x`, field: `${this.numAttribute.dataKey}` } - ], - y: { scale: `y`, field: yField, band: 0.5 } - } - } - }, - { - name: `child_layer_1_layer_0_layer_1_layer_0_marks`, - type: `rule`, - style: [`rule`, `boxplot-rule`], - interactive: true, - aria: false, - from: { data: `data_2` }, - encode: { - update: { - stroke: { value: `black` }, - tooltip: { - signal: `{'Upper Whisker of ${this.numAttribute.dataKey}': format(datum['upper_whisker_${this.numAttribute.dataKey}'], ''), 'Lower Whisker of ${this.catAttribute.label}': format(datum['lower_whisker_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` - }, - x: { scale: `x`, field: `lower_whisker_${this.numAttribute.dataKey}` }, - x2: { scale: `x`, field: `lower_box_${this.numAttribute.dataKey}` }, - y: { scale: `y`, field: yField, band: 0.5 } - } - } - }, - { - name: `child_layer_1_layer_0_layer_1_layer_1_marks`, - type: `rule`, - style: [`rule`, `boxplot-rule`], - interactive: true, - aria: false, - from: { data: `data_2` }, - encode: { - update: { - stroke: { value: `black` }, - tooltip: { - signal: `{'Upper Whisker of ${this.catAttribute.label}': format(datum['upper_whisker_${this.numAttribute.dataKey}'], ''), 'Lower Whisker of ${this.catAttribute.label}': format(datum['lower_whisker_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` - }, - x: { scale: `x`, field: `upper_box_${this.numAttribute.dataKey}` }, - x2: { scale: `x`, field: `upper_whisker_${this.numAttribute.dataKey}` }, - y: { scale: `y`, field: yField, band: 0.5 } - } - } - }, - { - name: `child_layer_1_layer_1_layer_0_marks`, - type: `rect`, - style: [`bar`, `boxplot-box`], - interactive: true, - from: { data: `data_3` }, - encode: { - update: { - ariaRoleDescription: { value: `box` }, - fill: { scale: `color`, field: DATA_LABEL }, - tooltip: { - signal: `{'Max of ${this.catAttribute.label}': format(datum['max_${this.numAttribute.dataKey}'], ''), 'Q3 of ${this.catAttribute.label}': format(datum['upper_box_${this.numAttribute.dataKey}'], ''), 'Median of ${this.catAttribute.label}': format(datum['mid_box_${this.numAttribute.dataKey}'], ''), 'Q1 of ${this.catAttribute.label}': format(datum['lower_box_${this.numAttribute.dataKey}'], ''), 'Min of ${this.catAttribute.label}': format(datum['min_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` - }, - description: { - signal: `'${this.catAttribute.label}: ' + (format(datum['lower_box_${this.numAttribute.dataKey}'], '')) + '; upper_box_${this.numAttribute.dataKey}: ' + (format(datum['upper_box_${this.numAttribute.dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']) + '; Max of ${this.catAttribute.label}: ' + (format(datum['max_${this.numAttribute.dataKey}'], '')) + '; Q3 of ${this.catAttribute.label}: ' + (format(datum['upper_box_${this.numAttribute.dataKey}'], '')) + '; Median of ${this.catAttribute.label}: ' + (format(datum['mid_box_${this.numAttribute.dataKey}'], '')) + '; Q1 of ${this.catAttribute.label}: ' + (format(datum['lower_box_${this.numAttribute.dataKey}'], '')) + '; Min of ${this.catAttribute.label}: ' + (format(datum['min_${this.numAttribute.dataKey}'], ''))` - }, - x: { scale: `x`, field: `lower_box_${this.numAttribute.dataKey}` }, - x2: { scale: `x`, field: `upper_box_${this.numAttribute.dataKey}` }, - yc: { scale: `y`, field: yField, band: 0.5 }, - height: { value: 14 } - } - } - }, - { - name: `child_layer_1_layer_1_layer_1_marks`, - type: `rect`, - style: [`tick`, `boxplot-median`], - interactive: true, - aria: false, - from: { data: `data_3` }, - encode: { - update: { - opacity: { value: 0.7 }, - fill: { value: `black` }, - tooltip: { - signal: `{'Max of ${this.catAttribute.label}': format(datum['max_${this.numAttribute.dataKey}'], ''), 'Q3 of ${this.catAttribute.label}': format(datum['upper_box_${this.numAttribute.dataKey}'], ''), 'Median of ${this.catAttribute.label}': format(datum['mid_box_${this.numAttribute.dataKey}'], ''), 'Q1 of ${this.catAttribute.label}': format(datum['lower_box_${this.numAttribute.dataKey}'], ''), 'Min of ${this.catAttribute.label}': format(datum['min_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` - }, - xc: { scale: `x`, field: `mid_box_${this.numAttribute.dataKey}` }, - yc: { scale: `y`, field: yField, band: 0.5 }, - height: { value: 14 }, - width: { value: 1 } - } - } - }, - { - name: `splitmarks_x`, - type: `group`, - from: { - data: `data_7` - }, - encode: { - enter: { - height: { - field: { - group: `height` - } - } - }, - update: { - x: [ - { - test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - value: 0 - }, - { - scale: `x`, - field: `data` - } - ] - } - }, - marks: [ - { - name: `splitrule_x`, - type: `rule`, - style: [ - `rule` - ], - encode: { - update: { - strokeDash: { - value: [ - 3, - 2 - ] - }, - stroke: { - value: `black` - }, - y: { - value: 0 - }, - y2: { - field: { - group: `height` - } - } - } - } - }, - { - type: `path`, - name: `grabber_x`, - encode: { - enter: { - x: { - offset: 1 - }, - y: { - field: { - group: `height` - }, - mult: 0.5, - offset: -7.5 //half the height of the svg grabber - }, - fill: { - value: `#fff` - }, - stroke: { - value: `#666` - }, - cursor: { - value: `ew-resize` - } - }, - update: { - path: { - signal: `'M 0.5,14.85 A 6,2.583 0 0 0 6.5,12.267 V 3.083 A 6,2.583 0 0 0 0.5,0.5 Z M 2.5,11.406 V 3.944 m 2,7.462 V 3.944'` - } - } - } - } - ] - }, - { - name: `selected_brush`, - type: `rect`, - clip: true, - encode: { - enter: { - cursor: { value: `pointer` }, - fill: { value: `transparent` } - }, - update: { - x: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[0]` - }, - { value: 0 } - ], - y: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - value: 0 - }, - { value: 0 } - ], - x2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[1]` - }, - { value: 0 } - ], - y2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - field: { group: `height` } - }, - { value: 0 } - ], - stroke: [ - { test: `selected_x[0] !== selected_x[1]`, value: `white` }, - { value: null } - ], - strokeOpacity: [ - { test: `selected_x[0] !== selected_x[1]`, value: 0 }, - { value: null } - ] - } - } - } - ], - axes: [ - { - scale: `x`, - orient: `top`, - gridScale: `y`, - grid: true, - tickCount: { signal: `ceil(child_width/40)` }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - } - ] - } - ], - scales: [ - { - name: `x`, - type: `linear`, - domain: { - fields: [ - { data: `data_6`, field: `brush_start` }, - { data: `data_6`, field: `brush_end` }, - { data: `data_3`, field: `${this.numAttribute.dataKey}` }, - { data: `data_4`, field: `lower_whisker_${this.numAttribute.dataKey}` }, - { data: `data_4`, field: `lower_box_${this.numAttribute.dataKey}` }, - { data: `data_4`, field: `upper_box_${this.numAttribute.dataKey}` }, - { data: `data_4`, field: `upper_whisker_${this.numAttribute.dataKey}` }, - { data: `data_5`, field: `lower_box_${this.numAttribute.dataKey}` }, - { data: `data_5`, field: `upper_box_${this.numAttribute.dataKey}` }, - { data: `data_5`, field: `mid_box_${this.numAttribute.dataKey}` }, - { data: `data_7`, field: `data` } - ] - }, - range: [0, { signal: `child_width` }], - clamp: true, - nice: false, - zero: false - }, - { - name: `y`, - type: `band`, - domain: { - fields: [ - { data: `data_3`, field: yField }, - { data: `data_4`, field: yField }, - { data: `data_5`, field: yField } - ] - }, - range: { step: { signal: `y_step` } }, - paddingInner: 0, - paddingOuter: 0 - }, - { - name: `color`, - type: `ordinal`, - domain: { data: 'data_5', field: DATA_LABEL }, - range: `category` - } - ], - config: { - range: { category: this.colorPalette }, - axis: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: `Roboto`, - labelFontSize: 12, - labelLimit: 150, - labelFont: `Roboto`, - labelOverlap: `parity`, - labelSeparation: 5, - labelBound: true - }, - legend: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: `Roboto`, - labelFontSize: 12, - labelLimit: 150, - labelFont: `Roboto`, - labelOverlap: `parity` - }, - style: { cell: { cursor: `text` } } - } - }; - return vegaSpec; - } -} -GroupedBoxplot.NAME = 'Boxplot'; -//# sourceMappingURL=GroupedBoxplot.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/GroupedBoxplot.js.map b/dist/Taskview/visualizations/GroupedBoxplot.js.map deleted file mode 100644 index 14acd59..0000000 --- a/dist/Taskview/visualizations/GroupedBoxplot.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GroupedBoxplot.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/GroupedBoxplot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,MAAM,CAAC;AACpC,OAAO,GAAG,MAAM,UAAU,CAAC;AAK3B,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAC,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAC,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAC,2BAA2B,EAAC,MAAM,+BAA+B,CAAC;AAE1E,MAAM,OAAO,cAAe,SAAQ,2BAA2B;IAM7D,YAAY,kBAA0B,EAAE;QACtC,KAAK,CAAC,eAAe,CAAC,CAAC;QAHzB,cAAS,GAAa,EAAE,CAAC;QAKvB,IAAI,CAAC,MAAM,GAAG;YACZ,EAAC,IAAI,EAAE,8CAA8C,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,aAAa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ACpC,IAAI,EAAE;oBACJ,aAAa,EAAE,EAAE;oBACjB,eAAe,EAAE,GAAG;oBACpB,SAAS,EAAE,QAAQ;oBACnB,aAAa,EAAE,EAAE;oBACjB,UAAU,EAAE,GAAG;oBACf,SAAS,EAAE,QAAQ;oBACnB,YAAY,EAAE,QAAQ;oBACtB,eAAe,EAAE,CAAC;oBAClB,UAAU,EAAE,IAAI;iBACjB;gBACD,MAAM,EAAE;oBACN,aAAa,EAAE,EAAE;oBACjB,eAAe,EAAE,GAAG;oBACpB,SAAS,EAAE,QAAQ;oBACnB,aAAa,EAAE,EAAE;oBACjB,UAAU,EAAE,GAAG;oBACf,SAAS,EAAE,QAAQ;oBACnB,YAAY,EAAE,QAAQ;iBACvB;gBACD,KAAK,EAAE,EAAC,IAAI,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,EAAC;aAChC;SACF,CAAC;QAEF,OAAO,QAAmC,CAAC;IAC7C,CAAC;;AA7pCe,mBAAI,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/GroupedHistogram.d.ts b/dist/Taskview/visualizations/GroupedHistogram.d.ts deleted file mode 100644 index 6148e20..0000000 --- a/dist/Taskview/visualizations/GroupedHistogram.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { ICohort } from '../../CohortInterfaces'; -import { IdValuePair } from '../../data/Attribute'; -import { VegaHistogram } from './Histogram'; -export declare class VegaGroupedHistogram extends VegaHistogram { - static readonly COUNT = "Count"; - protected readonly type = "nominal"; - constructor(vegaLiteOptions?: Object); - getSpec(data: IdValuePair[]): VegaLiteSpec; - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData(): { - cohort: ICohort; - from: string | number; - to: string | number; - }[]; -} diff --git a/dist/Taskview/visualizations/GroupedHistogram.js b/dist/Taskview/visualizations/GroupedHistogram.js deleted file mode 100644 index dc1182e..0000000 --- a/dist/Taskview/visualizations/GroupedHistogram.js +++ /dev/null @@ -1,174 +0,0 @@ -import { getCohortLabel } from '../../Cohort'; -import { colors } from '../../colors'; -import { log } from '../../util'; -import { AVegaVisualization, FACETED_CHARTS_WIDTH } from './AVegaVisualization'; -import { groupByConfig } from './config/GroupConfig'; -import { dataConfig } from './config/ScaleConfig'; -import { sortByConfig, sortOrderConfig } from './config/SortConfig'; -import { DATA_LABEL } from './constants'; -import { VegaHistogram } from './Histogram'; -export class VegaGroupedHistogram extends VegaHistogram { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - this.type = 'nominal'; - this.config = [ - { icon: '', label: 'Group', groups: [groupByConfig] }, - { icon: '', label: 'Data', groups: [/*scaleConfig,*/ dataConfig] }, - { icon: '', label: 'Sort', groups: [sortOrderConfig, sortByConfig] } - ]; - } - getSpec(data) { - if (this.attribute.type === `number`) { - throw new Error('Type "number" is not supported for grouped histograms'); - } - const histSpec = super.getSpec(data); - delete histSpec.autosize; // does not work for facetted charts - delete histSpec.encoding; // make new encoding for groupedhistogram - const [yField, rowField] = groupByConfig.getSelected().label === 'Same Category' ? [DATA_LABEL, this.field] : [this.field, DATA_LABEL]; - const grpHistSpec = { - width: FACETED_CHARTS_WIDTH, - transform: [{ - aggregate: [{ op: 'count', as: VegaGroupedHistogram.COUNT }], - groupby: [this.field, DATA_LABEL] - }, - ...groupByConfig.getSelected().label === 'Same Cohort' ? [] : [{ - //impute zero for cohort+category combinations with no data - impute: VegaGroupedHistogram.COUNT, value: 0, key: yField, groupby: [rowField] - }], { - joinaggregate: [{ op: 'sum', field: VegaGroupedHistogram.COUNT, as: 'GroupCount' }], - groupby: [DATA_LABEL] - }, { - calculate: `datum.${VegaGroupedHistogram.COUNT}/datum.GroupCount`, as: 'PercentOfCohort' - }, { - joinaggregate: [{ op: 'sum', field: VegaGroupedHistogram.COUNT, as: 'CategoryItemSum' }], - groupby: [DATA_LABEL] - }, { - joinaggregate: [{ op: 'sum', field: 'PercentOfCohort', as: 'CategoryPercentSum' }], - groupby: [DATA_LABEL] - } - ], - encoding: { - row: { - field: rowField, - type: this.type, - spacing: this.cohorts.length === 1 ? -2 : 4, - header: { - labelAngle: 0, - labelAlign: 'left', - labels: rowField !== DATA_LABEL, - title: this.attribute.label, - titleAnchor: 'end' - }, - sort: groupByConfig.getSelected().label === 'Same Cohort' ? null : - sortByConfig.getSelected().label.includes('Name') ? sortOrderConfig.getSelected().label.toLowerCase() : { - field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', - op: sortByConfig.getSelected().label.includes('Average') ? 'average' : - sortByConfig.getSelected().label.includes('Spread') ? 'stdev' : 'max', - order: sortOrderConfig.getSelected().label.toLowerCase() - } - }, - x: { - field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', - title: dataConfig.getSelected().label === 'Absolute Counts' ? 'Count within Cohort' : 'Share within Cohort', - type: 'quantitative', - axis: { - ...dataConfig.getSelected().label === 'Absolute Counts' ? {} : ({ format: '.1~%' }), - orient: 'top', - grid: false // no vertical lines (indicating the ticks on the axis) - } - }, - y: { - field: yField, - type: 'nominal', - axis: rowField === DATA_LABEL ? { 'title': null, ticks: false, domain: false } : null, - sort: groupByConfig.getSelected().label === 'Same Category' ? null : - sortByConfig.getSelected().label.includes('Name') ? sortOrderConfig.getSelected().label.toLowerCase() : { - field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', - op: sortByConfig.getSelected().label.includes('Average') ? 'average' : - sortByConfig.getSelected().label.includes('Spread') ? 'stdev' : 'max', - order: sortOrderConfig.getSelected().label.toLowerCase() - } - }, - color: { - field: DATA_LABEL, - type: 'nominal', - sort: null, - legend: null // use custom legend - }, - stroke: { - field: DATA_LABEL, - type: 'nominal', - sort: null, - condition: [ - { - param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, - empty: false, - value: colors.darkBorder - } - ] - }, - opacity: { - condition: [ - { - param: AVegaVisualization.SELECTION_SIGNAL_NAME, - value: 1 - }, - { - param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, - empty: false, - value: 0.8 // not fully opaque --> you will notice a change when selection the bar - } - ], - value: 0.3 - }, - tooltip: [ - { field: this.field }, - { field: DATA_LABEL }, - { field: VegaGroupedHistogram.COUNT }, - { field: 'PercentOfCohort', title: this.cohorts.length === 1 ? 'Share' : 'Share per Cohort', format: '.1~%' } - ] - }, - resolve: groupByConfig.getSelected().label === 'Same Category' ? {} : { scale: { y: 'independent' } }, - view: { stroke: colors.lightBorder } // border color between sub-charts - }; - const vegaLiteSpec = Object.assign(histSpec, grpHistSpec); - return Object.assign(vegaLiteSpec, this.vegaLiteOptions); - } - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData() { - let filters = []; - let vegaData = []; - try { - vegaData = this.vegaView.data(AVegaVisualization.DATA_STORE_3); // data store 3may be used depending on sorting and grouping combinations - } - catch { - log.warn('could not access data_3, fallback to data_0.'); - vegaData = this.vegaView.data(AVegaVisualization.DATA_STORE_0); // use data store 0 (default), if the other does not exist - } - log.debug('vegaData', vegaData); - const selectionData = this.vegaView.data(VegaHistogram.SELECTION_STORE); - if (selectionData.length > 0) { - const selectionVegaIds = selectionData.reduce((array, selectedItem) => array.push(...selectedItem.values) && array, []); - log.debug('selectionData', selectionData); - const filteredVegaData = vegaData.filter((dataItem) => selectionVegaIds.find((evItemId) => evItemId === dataItem._vgsid_)); - log.debug('filteredVegaData', filteredVegaData); - filters = filteredVegaData.map((dataItem) => ({ - cohort: this.cohorts.find((cht) => getCohortLabel(cht) === dataItem[DATA_LABEL]), - from: dataItem[this.field], - to: dataItem[this.field] - })); - } - else { - //select all - const rowDomain = this.vegaView.data('row_domain'); //default name - this.cohorts.forEach((cohort) => filters.push(...rowDomain.map((datum) => ({ from: datum[this.field], to: datum[this.field], cohort })))); - } - log.debug('filters', filters); - return filters; - } -} -VegaGroupedHistogram.COUNT = 'Count'; -//# sourceMappingURL=GroupedHistogram.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/GroupedHistogram.js.map b/dist/Taskview/visualizations/GroupedHistogram.js.map deleted file mode 100644 index 3e351fb..0000000 --- a/dist/Taskview/visualizations/GroupedHistogram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GroupedHistogram.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/GroupedHistogram.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IAKrD,YAAY,kBAA0B,EAAE;QACtC,KAAK,CAAC,eAAe,CAAC,CAAC;QAHN,SAAI,GAAG,SAAS,CAAC;QAKlC,IAAI,CAAC,MAAM,GAAG;YACZ,EAAC,IAAI,EAAE,8CAA8C,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,aAAa,CAAC,EAAC;YAC/F,EAAC,IAAI,EAAE,mCAAmC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,gBAAgB,CAAC,U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AG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc;YAClE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACzI;QAED,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9B,OAAO,OAAO,CAAC;IACjB,CAAC;;AA5Ke,0BAAK,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/Histogram.d.ts b/dist/Taskview/visualizations/Histogram.d.ts deleted file mode 100644 index 40e8a09..0000000 --- a/dist/Taskview/visualizations/Histogram.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { ICohort } from '../../CohortInterfaces'; -import { IdValuePair } from '../../data/Attribute'; -import { SingleAttributeVisualization } from './AVegaVisualization'; -export declare class VegaHistogram extends SingleAttributeVisualization { - static readonly NAME = "Histogram"; - sort: string; - getSpec(data: IdValuePair[]): VegaLiteSpec; - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData(): { - cohort: ICohort; - from: string | number; - to: string | number; - }[]; -} diff --git a/dist/Taskview/visualizations/Histogram.js b/dist/Taskview/visualizations/Histogram.js deleted file mode 100644 index 0e84e80..0000000 --- a/dist/Taskview/visualizations/Histogram.js +++ /dev/null @@ -1,140 +0,0 @@ -import { colors } from '../../colors'; -import { log } from '../../util'; -import { AVegaVisualization, SingleAttributeVisualization } from './AVegaVisualization'; -import { DATA_LABEL } from './constants'; -export class VegaHistogram extends SingleAttributeVisualization { - constructor() { - super(...arguments); - this.sort = null; // == no sort by default} - } - getSpec(data) { - this.field = this.attribute.dataKey; - this.type = this.attribute.type === `number` ? 'quantitative' : 'nominal'; - const bin = this.type === `quantitative`; - if (this.type === 'nominal') { - this.sort = '-x'; // one more transformation! (data_1 isntead data_0) - } - else { - this.sort = 'ascending'; - } - const vegaLiteSpecPart = { - mark: { - type: 'bar', - tooltip: true, - cursor: 'pointer', - height: 15 - }, - encoding: { - [this.type === 'quantitative' ? 'x' : 'y']: { - bin, - field: this.field, - type: this.type, - sort: this.sort, - title: this.attribute.label, - scale: { clamp: true } - }, - [this.type === 'quantitative' ? 'y' : 'x']: { - aggregate: 'count', - type: 'quantitative', - axis: { - orient: this.type === 'quantitative' ? 'left' : 'top' - }, - title: 'Count' - }, - color: { - field: DATA_LABEL, - type: 'nominal', - legend: null // use custom legend - }, - stroke: { - field: DATA_LABEL, - type: 'nominal', - condition: [ - { - param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, - empty: false, - value: colors.darkBorder - } - ] - }, - opacity: { - condition: [ - { - param: AVegaVisualization.SELECTION_SIGNAL_NAME, - value: 1 - }, - { - param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, - empty: false, - value: 0.8 // not fully opaque --> you will notice a change when selection the bar - } - ], - value: 0.3 - } - } - }; - const histSpec = Object.assign(super.getSpec(data), vegaLiteSpecPart); //the combination gives a full spec - this.addHoverSelection(histSpec); - if (this.type === 'quantitative') { - this.addIntervalSelection(histSpec); - } - else { - this.addMultiSelection(histSpec); - } - return Object.assign(histSpec, this.vegaLiteOptions); - } - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData() { - const filters = []; - if (this.type === 'quantitative') { - if (!this.hideVisualization) { - const selections = this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME); - let attrSelection = selections[this.field]; - if (!attrSelection || attrSelection.length !== 2) { - attrSelection = this.vegaView.scale('x').domain(); - } - this.cohorts.forEach((cohort) => { - filters.push({ from: attrSelection[0], to: attrSelection[1], cohort }); - const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if (nullFilter) { - filters.push(nullFilter); - } - }); - } - else { - this.cohorts.forEach((cohort) => { - const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if (nullFilter) { - filters.push(nullFilter); - } - }); - } - } - else { - const dataStore = this.sort === '-x' || this.sort === 'x' ? AVegaVisualization.DATA_STORE_1 : AVegaVisualization.DATA_STORE_0; // sorting by frequency adds one more transformation, i.e. data array -> data_1 - const vegaData = this.vegaView.data(dataStore); //default name - log.debug('vegaData', vegaData); - const selectionData = this.vegaView.data(AVegaVisualization.SELECTION_STORE); - if (selectionData.length > 0) { - const selectionVegaIds = selectionData.reduce((array, selectedItem) => array.push(...selectedItem.values) && array, []); - log.debug('selectionData', selectionData); - const filteredVegaData = vegaData.filter((dataItem) => selectionVegaIds.find((evItemId) => evItemId === dataItem._vgsid_)); - log.debug('filteredVegaData', filteredVegaData); - // if ordinal or nominal, we can get the selected bins by the name of field - const selectedBins = filteredVegaData.map((dataItem) => dataItem[this.field]); - this.cohorts.forEach((cohort) => filters.push(...selectedBins.map((bin) => ({ from: bin, to: bin, cohort })))); - } - else { - //select all - this.cohorts.forEach((cohort) => filters.push(...vegaData.map((datum) => ({ from: datum[this.field], to: datum[this.field], cohort })))); - } - } - log.debug('filters', filters); - return filters; - } -} -VegaHistogram.NAME = 'Histogram'; -//# sourceMappingURL=Histogram.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/Histogram.js.map b/dist/Taskview/visualizations/Histogram.js.map deleted file mode 100644 index f692bd6..0000000 --- a/dist/Taskview/visualizations/Histogram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Histogram.js","sourceRoot":"","sources":["../../../src/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AAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC9E,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAC9G;iBAAM;gBACL,YAAY;gBACZ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aACxI;SACF;QAED,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9B,OAAO,OAAO,CAAC;IACjB,CAAC;;AAxIe,kBAAI,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/IVisualization.d.ts b/dist/Taskview/visualizations/IVisualization.d.ts deleted file mode 100644 index 385c073..0000000 --- a/dist/Taskview/visualizations/IVisualization.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute } from '../../data/Attribute'; -export interface IVisualization { - destroy(): any; - hasSelectedData(): boolean; - getSelectedData(): { - from: string | number; - to: string | number; - cohort: ICohort; - }[]; - show(container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): void; - filter(): void; - split(): void; - clearSelection(): void; -} diff --git a/dist/Taskview/visualizations/IVisualization.js b/dist/Taskview/visualizations/IVisualization.js deleted file mode 100644 index 8e630ce..0000000 --- a/dist/Taskview/visualizations/IVisualization.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=IVisualization.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/IVisualization.js.map b/dist/Taskview/visualizations/IVisualization.js.map deleted file mode 100644 index 578326a..0000000 --- a/dist/Taskview/visualizations/IVisualization.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IVisualization.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/IVisualization.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/Taskview/visualizations/KaplanMeierPlot.d.ts b/dist/Taskview/visualizations/KaplanMeierPlot.d.ts deleted file mode 100644 index 338ee4c..0000000 --- a/dist/Taskview/visualizations/KaplanMeierPlot.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { IdValuePair } from '../../data/Attribute'; -import { SingleAttributeVisualization } from './AVegaVisualization'; -import { ICohort } from '../../CohortInterfaces'; -export declare class KaplanMeierPlot extends SingleAttributeVisualization { - static readonly NAME = "Kaplan-Meier Plot"; - static readonly SURVIVAL = "survival"; - static readonly TIME = "days"; - static readonly ERROR = "error_95"; - protected readonly type = "quantitative"; - constructor(vegaLiteOptions?: Object); - getData(): Promise<(IdValuePair & { - Cohort: string; - })[][]>; - getSpec(data: IdValuePair[]): VegaLiteSpec; - /** - * Arquero Resources: - * https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/bs704_survival4.html - * https://towardsdatascience.com/kaplan-meier-curves-c5768e349479 - * Test calculations: https://observablehq.com/d/5426a198a7a2dca7 - */ - convertData(data: IdValuePair[]): IdValuePair[]; - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData(): { - cohort: ICohort; - from: string | number; - to: string | number; - }[]; - showImpl(chart: HTMLDivElement, data: Array): Promise; -} diff --git a/dist/Taskview/visualizations/KaplanMeierPlot.js b/dist/Taskview/visualizations/KaplanMeierPlot.js deleted file mode 100644 index f6410a8..0000000 --- a/dist/Taskview/visualizations/KaplanMeierPlot.js +++ /dev/null @@ -1,879 +0,0 @@ -import log from 'loglevel'; -import { ServerColumnAttribute } from '../../data/Attribute'; -import { DATA_LABEL } from './constants'; -import { desc, op, from, rolling, table, not } from 'arquero'; -import { getCohortLabel, getCohortLabels } from '../../Cohort'; -import { SingleAttributeVisualization, AVegaVisualization } from './AVegaVisualization'; -import { confidenceToggleGroup, confidenceNone } from './config/ConfidenceConfig'; -import confidenceIcon from '../../assets/icons/confidence.svg'; -export class KaplanMeierPlot extends SingleAttributeVisualization { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - this.type = 'quantitative'; - this.config = [ - { - icon: ``, - label: 'Confidence Intervals', - groups: [confidenceToggleGroup] - } - ]; - } - async getData() { - const attributes = [this.attribute]; - let missingAttrId = 'days_to_last_followup'; - if (this.attribute.id === 'days_to_last_followup') { - missingAttrId = 'days_to_death'; - } - log.debug('Also get data for ', missingAttrId); - const missingAttr = new ServerColumnAttribute(missingAttrId, this.attribute.view, this.attribute.database, { type: 'number', label: missingAttrId, column: missingAttrId }); - attributes.push(missingAttr); - if (missingAttrId === 'days_to_death') { - this.attribute = missingAttr; - } - const dataPromises = this.cohorts - .map((cht) => { - const promise = new Promise(async (resolve, reject) => { - const chtDataPromises = attributes.map((attr) => attr.getData(cht.dbId)); - try { - const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort - const mergedChtData = chtData[0].map((_, itemIndex) => chtData.reduce((mergedItem, attribute, i) => Object.assign(mergedItem, attribute[itemIndex]), { [DATA_LABEL]: getCohortLabel(cht) })); - resolve(mergedChtData); - } - catch (e) { - reject(e); - } - }); - return promise; - }); - return Promise.all(dataPromises); - } - getSpec(data) { - if (this.attribute.type !== `number`) { - throw new Error(`${KaplanMeierPlot.NAME} requires a numerical attribute.`); - } - data = this.convertData(data); - this.field = KaplanMeierPlot.TIME; - const vegaSpec = { - '$schema': 'https://vega.github.io/schema/vega/v5.json', - autosize: { type: 'fit-x', contains: 'padding' }, - background: 'white', - padding: { left: 5, top: 0, right: 5, bottom: 5 }, - height: 300, - style: 'cell', - encode: { update: { cursor: { value: 'text' } } }, - data: [ - { name: 'selected_store' }, - { - name: 'source_0', - values: data - }, - { - name: 'splitvalues', - values: this.splitValues, - on: [ - { - trigger: 'draggedMark', - modify: 'draggedMark', - values: 'dragTo' - }, - { - trigger: 'addMark', - insert: 'addMark' - }, - { - trigger: 'remMark', - remove: 'remMark' - } - ] - }, - { - name: 'data_0', - source: 'source_0', - transform: [ - { type: 'formula', expr: 'toNumber(datum[\'' + KaplanMeierPlot.TIME + '\'])', as: KaplanMeierPlot.TIME } - ] - }, - { - name: 'data_1', - source: 'data_0', - transform: [ - { type: 'filter', expr: 'datum[\'last_followups\']>0' }, - { - type: 'filter', - expr: 'isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\']) && isValid(datum[\'' + KaplanMeierPlot.SURVIVAL + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.SURVIVAL + '\'])' - } - ] - }, - { - name: 'data_2', - source: 'data_0', - transform: [ - { - type: 'formula', - expr: 'datum[\'' + KaplanMeierPlot.SURVIVAL + '\'] + datum[\'' + KaplanMeierPlot.ERROR + '\']', - as: 'upper_' + KaplanMeierPlot.SURVIVAL + '' - }, - { - type: 'formula', - expr: 'datum[\'' + KaplanMeierPlot.SURVIVAL + '\'] - datum[\'' + KaplanMeierPlot.ERROR + '\']', - as: 'lower_' + KaplanMeierPlot.SURVIVAL + '' - } - ] - } - ], - signals: [ - { - name: 'width', - init: 'isFinite(containerSize()[0]) ? containerSize()[0] : 200', - on: [ - { - update: 'isFinite(containerSize()[0]) ? containerSize()[0] : 200', - events: 'window:resize' - } - ] - }, - { - name: 'dragTo', - on: [ - { - events: '[@right_grabber:mousedown, window:mouseup] > window:mousemove', - update: '{x: invert(\'x\',x())}' - } - ] - }, - { - name: 'draggedMark', - on: [ - { - events: [ - { - markname: 'right_grabber', - type: 'mousedown', - filter: [ - '!event.ctrlKey' - ] - } - ], - update: 'group().datum' - } - ] - }, - { - name: 'addMark', - on: [ - { - events: [ - { - source: 'view', - type: 'click', - filter: [ - 'event.ctrlKey', - 'item().mark.name === \'root\'' - ] - } - ], - update: '{x: invert(\'x\',x())}' - } - ] - }, - { - name: 'remMark', - on: [ - { - events: [ - { - markname: 'right_grabber', - type: 'click', - filter: 'event.ctrlKey' - }, - { - markname: 'splitrule', - type: 'click', - filter: 'event.ctrlKey' - } - ], - update: 'group().datum' - } - ] - }, - { - name: 'unit', - value: {}, - on: [ - { - events: 'mousemove', - update: 'isTuple(group()) ? group() : unit' - } - ] - }, - { - name: 'selected', - update: 'vlSelectionResolve(\'selected_store\', \'union\')' - }, - { - name: 'selected_x', - value: [], - on: [ - { - events: { - source: 'view', - type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] - }, - update: '[x(unit), x(unit)]' - }, - { - events: { - source: 'window', - type: 'mousemove', - consume: true, - between: [ - { - source: 'scope', - type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] - }, - { - source: 'window', - type: 'mouseup' - } - ] - }, - update: '[selected_x[0], clamp(x(unit), 0, width)]' - }, - { - events: { - signal: 'selected_scale_trigger' - }, - update: '[scale(\'x\', selected_' + KaplanMeierPlot.TIME + '[0]), scale(\'x\', selected_' + KaplanMeierPlot.TIME + '[1])]' - }, - { - events: [ - { - source: 'view', - type: 'dblclick', - filter: [ - 'event.item.mark.name !== \'right_grabber\'' - ] - } - ], - update: '[0, 0]' - }, - { - events: { - signal: 'selected_translate_delta' - }, - update: 'clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)' - }, - { - events: { - signal: 'selected_zoom_delta' - }, - update: 'clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)' - } - ] - }, - { - name: 'selected_' + KaplanMeierPlot.TIME, - value: this.getBrushRange(), - on: [ - { - events: { - signal: 'selected_x' - }, - update: 'selected_x[0] === selected_x[1] ? null : invert(\'x\', selected_x)' - } - ] - }, - { - name: 'selected_scale_trigger', - value: {}, - on: [ - { - events: [ - { - scale: 'x' - } - ], - update: '(!isArray(selected_' + KaplanMeierPlot.TIME + ') || (+invert(\'x\', selected_x)[0] === +selected_' + KaplanMeierPlot.TIME + '[0] && +invert(\'x\', selected_x)[1] === +selected_' + KaplanMeierPlot.TIME + '[1])) ? selected_scale_trigger : {}' - } - ] - }, - { - name: 'selected_tuple', - on: [ - { - events: [ - { - signal: 'selected_' + KaplanMeierPlot.TIME - } - ], - update: 'selected_' + KaplanMeierPlot.TIME + ' ? {unit: \'layer_0\', fields: selected_tuple_fields, values: [selected_' + KaplanMeierPlot.TIME + ']} : null' - } - ] - }, - { - name: 'selected_tuple_fields', - value: [ - { - field: KaplanMeierPlot.TIME, - channel: 'x', - type: 'R' - } - ] - }, - { - name: 'selected_translate_anchor', - value: {}, - on: [ - { - events: [ - { - source: 'scope', - type: 'mousedown', - markname: 'selected_brush' - } - ], - update: '{x: x(unit), y: y(unit), extent_x: slice(selected_x)}' - } - ] - }, - { - name: 'selected_translate_delta', - value: {}, - on: [ - { - events: [ - { - source: 'window', - type: 'mousemove', - consume: true, - between: [ - { - source: 'scope', - type: 'mousedown', - markname: 'selected_brush' - }, - { - source: 'window', - type: 'mouseup' - } - ] - } - ], - update: '{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}' - } - ] - }, - { - name: 'selected_zoom_anchor', - on: [ - { - events: [ - { - source: 'scope', - type: 'wheel', - consume: true, - markname: 'selected_brush' - } - ], - update: '{x: x(unit), y: y(unit)}' - } - ] - }, - { - name: 'selected_zoom_delta', - on: [ - { - events: [ - { - source: 'scope', - type: 'wheel', - consume: true, - markname: 'selected_brush' - } - ], - force: true, - update: 'pow(1.001, event.deltaY * pow(16, event.deltaMode))' - } - ] - }, - { - name: 'selected_modify', - on: [ - { - events: { - signal: 'selected_tuple' - }, - update: 'modify(\'selected_store\', selected_tuple, true)' - } - ] - } - ], - marks: [ - ...confidenceToggleGroup.getSelected().label === confidenceNone.label ? [] : [ - { - name: 'layer_1_layer_0_pathgroup', - type: 'group', - from: { - facet: { - name: 'faceted_path_layer_1_layer_0_main', - data: 'data_2', - groupby: [DATA_LABEL] - } - }, - encode: { - update: { - width: { field: { group: 'width' } }, - height: { field: { group: 'height' } } - } - }, - marks: [ - { - name: 'layer_1_layer_0_marks', - type: 'area', - style: ['area', 'errorband-band'], - sort: { field: 'datum[\'' + KaplanMeierPlot.TIME + '\']' }, - interactive: true, - from: { data: 'faceted_path_layer_1_layer_0_main' }, - encode: { - update: { - ariaRoleDescription: { value: 'errorband' }, - opacity: { value: 0.3 }, - interpolate: { value: 'step-after' }, - orient: { value: 'vertical' }, - fill: { scale: 'color', field: DATA_LABEL }, - tooltip: { - signal: '{\'' + KaplanMeierPlot.SURVIVAL + '\': format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'\'), \'' + KaplanMeierPlot.SURVIVAL + ' + ' + KaplanMeierPlot.ERROR + '\': format(datum[\'upper_' + KaplanMeierPlot.SURVIVAL + '\'], \'\'), \'' + KaplanMeierPlot.SURVIVAL + ' - ' + KaplanMeierPlot.ERROR + '\': format(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'], \'\'), \'' + KaplanMeierPlot.TIME + '\': format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\'), \'' + DATA_LABEL + '\': isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\']}' - }, - description: { - signal: '\'lower_' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; upper_' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'upper_' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; ' + KaplanMeierPlot.TIME + ': \' + (format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\')) + \'; Cohort: \' + (isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\']) + \'; ' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; ' + KaplanMeierPlot.SURVIVAL + ' + ' + KaplanMeierPlot.ERROR + ': \' + (format(datum[\'upper_' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; ' + KaplanMeierPlot.SURVIVAL + ' - ' + KaplanMeierPlot.ERROR + ': \' + (format(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'], \'\'))' - }, - x: { scale: 'x', field: KaplanMeierPlot.TIME }, - y: { scale: 'y', field: 'lower_' + KaplanMeierPlot.SURVIVAL + '' }, - y2: { scale: 'y', field: 'upper_' + KaplanMeierPlot.SURVIVAL + '' }, - defined: { - signal: 'isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\']) && isValid(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\']) && isFinite(+datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'])' - } - } - } - } - ] - } - ], - { - name: 'selected_brush_bg', - type: 'rect', - clip: true, - encode: { - enter: { fill: { value: '#333' }, fillOpacity: { value: 0.125 } }, - update: { - x: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' - }, - { value: 0 } - ], - y: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 - }, - { value: 0 } - ], - x2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' - }, - { value: 0 } - ], - y2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: { group: 'height' } - }, - { value: 0 } - ] - } - } - }, - { - name: 'layer_0_pathgroup', - type: 'group', - from: { - facet: { - name: 'faceted_path_layer_0_main', - data: 'data_0', - groupby: [DATA_LABEL] - } - }, - encode: { - update: { - width: { field: { group: 'width' } }, - height: { field: { group: 'height' } } - } - }, - marks: [ - { - name: 'layer_0_marks', - type: 'line', - style: ['line'], - sort: { field: 'datum[\'' + KaplanMeierPlot.TIME + '\']' }, - interactive: true, - from: { data: 'faceted_path_layer_0_main' }, - encode: { - update: { - interpolate: { value: 'step-after' }, - cursor: { value: 'text' }, - stroke: { scale: 'color', field: DATA_LABEL }, - description: { - signal: '\'Time in Days: \' + (format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\')) + \'; Survival Probability: \' + (format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'.1~%\')) + \'; Cohort: \' + (isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\'])' - }, - x: { scale: 'x', field: KaplanMeierPlot.TIME }, - y: { scale: 'y', field: KaplanMeierPlot.SURVIVAL }, - defined: { - signal: 'isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\']) && isValid(datum[\'' + KaplanMeierPlot.SURVIVAL + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.SURVIVAL + '\'])' - } - } - } - } - ] - }, - { - name: 'layer_2_marks', - type: 'rect', - style: ['tick'], - interactive: false, - from: { data: 'data_1' }, - encode: { - update: { - opacity: { value: 0.6 }, - fill: { scale: 'color', field: DATA_LABEL }, - ariaRoleDescription: { value: 'tick' }, - description: { - signal: '\'' + KaplanMeierPlot.TIME + ': \' + (format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\')) + \'; ' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; Cohort: \' + (isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\'])' - }, - xc: [ - { - test: '!isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) || !isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\'])', - value: 0 - }, - { scale: 'x', field: KaplanMeierPlot.TIME } - ], - yc: { scale: 'y', field: KaplanMeierPlot.SURVIVAL }, - height: { value: 15 }, - width: { value: 1 } - } - } - }, - { - name: 'splitmarks', - type: 'group', - from: { - data: 'splitvalues' - }, - encode: { - enter: { height: { field: { group: 'height' } } }, - update: { - x: [ - { - test: '!isValid(datum[\'x\']) || !isFinite(+datum[\'x\'])', - value: 0 - }, - { scale: 'x', field: 'x' } - ] - } - }, - marks: [ - { - name: 'splitrule', - type: 'rule', - style: ['rule'], - encode: { - update: { - strokeDash: { value: [4, 6] }, - stroke: { value: 'black' }, - y: { value: 0 }, - y2: { field: { group: 'height' } } - } - } - }, - { - type: 'path', - name: 'right_grabber', - encode: { - enter: { - y: { field: { group: 'height' }, mult: 0.5, offset: -50 }, - fill: { value: '#fff' }, - stroke: { value: '#666' }, - cursor: { value: 'ew-resize' } - }, - update: { - path: { - signal: '\'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667\'' - } - } - } - } - ] - }, - { - name: 'selected_brush', - type: 'rect', - clip: true, - encode: { - enter: { - cursor: { value: 'pointer' }, - fill: { value: 'transparent' } - }, - update: { - x: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' - }, - { value: 0 } - ], - y: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 - }, - { value: 0 } - ], - x2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' - }, - { value: 0 } - ], - y2: [ - { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: { group: 'height' } - }, - { value: 0 } - ], - stroke: [ - { test: 'selected_x[0] !== selected_x[1]', value: 'white' }, - { value: null } - ] - } - } - } - ], - scales: [ - { - name: 'x', - type: 'linear', - domain: { - fields: [ - { data: 'data_0', field: KaplanMeierPlot.TIME }, - { data: 'data_2', field: KaplanMeierPlot.TIME }, - { data: 'data_1', field: KaplanMeierPlot.TIME } - ] - }, - range: [0, { signal: 'width' }], - domainMin: 0, - // nice: true, - zero: false - }, - { - name: 'y', - type: 'linear', - domain: [0, 1], - range: [{ signal: 'height' }, 0], - clamp: true, - nice: true, - zero: true - }, - { - name: 'color', - type: 'ordinal', - domain: this.cohorts.map((cht) => cht.label), - range: 'category' - } - ], - axes: [ - { - scale: 'x', - orient: 'bottom', - gridScale: 'y', - grid: true, - tickCount: { signal: 'ceil(width/40)' }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - }, - { - scale: 'y', - orient: 'left', - gridScale: 'x', - grid: true, - tickCount: { signal: 'ceil(height/40)' }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - }, - { - scale: 'x', - orient: 'bottom', - grid: false, - title: 'Time in Days', - labelFlush: true, - tickCount: { signal: 'ceil(width/40)' }, - zindex: 0 - }, - { - scale: 'y', - orient: 'left', - grid: false, - title: 'Survival Probability', - format: '.1~%', - labelBound: false, - tickCount: { signal: 'ceil(height/40)' }, - zindex: 0 - } - ], - config: { - range: { category: this.colorPalette }, - axis: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: 'Roboto', - labelFontSize: 12, - labelLimit: 150, - labelFont: 'Roboto', - labelOverlap: 'parity', - labelSeparation: 5, - labelBound: true - }, - legend: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: 'Roboto', - labelFontSize: 12, - labelLimit: 150, - labelFont: 'Roboto', - labelOverlap: 'parity' - } - } - }; - return vegaSpec; //little workaround because the multiple types supported by vegaEmbed are not recognized correctly - } - /** - * Arquero Resources: - * https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/bs704_survival4.html - * https://towardsdatascience.com/kaplan-meier-curves-c5768e349479 - * Test calculations: https://observablehq.com/d/5426a198a7a2dca7 - */ - convertData(data) { - const aqdata = from(data) - // we could filter all items that have null for days to death/last followup first, but those will be removed by a later step - // pre-processing: remove days to last follow for all patients where a death date is available (can only be before death) - .derive({ days_to_last_followup: (d) => !op.match(/null/, d.days_to_death, null) && !op.match(/null/, d.days_to_last_followup, null) ? null : d.days_to_last_followup }) - // - // Convert to long format (one row per sample, day, and event) - .fold(not('tissuename', DATA_LABEL), { as: ['event', KaplanMeierPlot.TIME] }) // transform from wide form into long form (one column with days, one column showing which event (death/last followup) - .filter((d) => !op.match(/null/, d.days, null)) //drop missing data - // - .groupby(DATA_LABEL, KaplanMeierPlot.TIME, 'event') // group by cohort and days to calc events (#deaths, #followups), group by event so that the events can be directly counted with ... - .count() // sum up same events of each day per group - // - .concat(table({ Cohort: getCohortLabels(this.cohorts), days: [0, 0] })) //ensure to start at zero days - // - // convert back to wide format: one column for days, two columns for number of death followup events - .groupby(DATA_LABEL, KaplanMeierPlot.TIME) - .pivot('event', 'count') - // - // rename columns - .derive({ deaths: (d) => d.days_to_death || 0, last_followups: (d) => d.days_to_last_followup || 0 }) - // - // calculate risk - .groupby(DATA_LABEL).orderby(desc(KaplanMeierPlot.TIME)) // sum up from behind to ease calculation - .derive({ at_risk: rolling((d) => op.sum(d.deaths) + op.sum(d.last_followups)) }) - // - // Calculate Survival and error basis, based on https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/bs704_survival4.html - .groupby(DATA_LABEL).orderby(KaplanMeierPlot.TIME) - .derive({ - [KaplanMeierPlot.SURVIVAL]: rolling((d) => op.product(1 - (d.deaths) / d.at_risk)), - error_sum: rolling((d) => op.sum(d.deaths / (d.at_risk * (d.at_risk - d.deaths)))), // number type is inferred by the math operations, but sum wants a string - }) - // - // calculate actual error, has to be done in a sepeate step because it relies on values just calculated - // "Greenwoods" Error based on https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/bs704_survival4.html - .derive({ - [KaplanMeierPlot.ERROR]: (d) => 1.96 * d.survival * op.sqrt(d.error_sum), //1.96 = 95% interval - }); - // not necessary for plotting: - // .derive({ - // error_up: d => (d.survival_propability + d.error_95) > 1 ? 1 : (d.survival_propability + d.error_95), - // error_down: d => (d.survival_propability - d.error_95) < 0 ? 0 : (d.survival_propability - d.error_95) - // }) - //aqdata.print({limit: 100}); // print to console - return aqdata.objects(); - } - /** - * From == To for categorical data, e.g. FROM: male, TO: male - * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) - */ - getSelectedData() { - const filters = []; - if (!this.hideVisualization) { - const selections = this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME); - let attrSelection = selections[KaplanMeierPlot.TIME]; // value == name applied through density transform - if (!attrSelection || attrSelection.length !== 2) { - attrSelection = this.vegaView.scale('x').domain(); - } - this.cohorts.forEach((cohort) => { - filters.push({ from: attrSelection[0], to: attrSelection[1], cohort }); - const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if (nullFilter) { - filters.push(nullFilter); - } - }); - } - else { - this.cohorts.forEach((cohort) => { - const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if (nullFilter) { - filters.push(nullFilter); - } - }); - } - log.debug('filters', filters); - return filters; - } - async showImpl(chart, data) { - await super.showImpl(chart, data); - this.vegaView.addDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener); - this.vegaView.addSignalListener('remMark', (name, value) => { - this.splitValues = this.splitValues.filter((splitVal) => splitVal.x !== value.x); - this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE, this.splitValues); - }); - this.toggleFilterSplitMarks(this.getActiveTask()); - } -} -KaplanMeierPlot.NAME = 'Kaplan-Meier Plot'; -// ATTENTION! with arquero, you can't use variables for identifiers (e.g., data[CALCULATED_ERROR]) -KaplanMeierPlot.SURVIVAL = 'survival'; // After applying the transform -KaplanMeierPlot.TIME = 'days'; // After applying the transform -KaplanMeierPlot.ERROR = 'error_95'; // After applying the transform -//# sourceMappingURL=KaplanMeierPlot.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/KaplanMeierPlot.js.map b/dist/Taskview/visualizations/KaplanMeierPlot.js.map deleted file mode 100644 index 4eb14b4..0000000 --- a/dist/Taskview/visualizations/KaplanMeierPlot.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KaplanMeierPlot.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/KaplanMeierPlot.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAI3B,OAAO,EAAc,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAC,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAC,4BAA4B,EAAE,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAGtF,OAAO,EAAC,qBAAqB,EAAE,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAChF,OAAO,cAAc,MAAM,mCAAmC,CAAC;AAE/D,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3C,kGAAkG;AAClF,wBAAQ,GAAG,UAAU,CAAC,CAAC,+BAA+B;AACtD,oBAAI,GAAG,MAAM,CAAC,CAAC,+BAA+B;AAC9C,qBAAK,GAAG,UAAU,CAAC,CAAC,+BAA+B"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/MultiAttributeVisualization.d.ts b/dist/Taskview/visualizations/MultiAttributeVisualization.d.ts deleted file mode 100644 index 43b4bb3..0000000 --- a/dist/Taskview/visualizations/MultiAttributeVisualization.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Cohort } from '../../Cohort'; -import { ICohort } from '../../CohortInterfaces'; -import { IAttribute, IdValuePair } from '../../data/Attribute'; -import { AVegaVisualization } from './AVegaVisualization'; -export declare abstract class MultiAttributeVisualization extends AVegaVisualization { - /** - * The displayed attribute - */ - protected attributes: IAttribute[]; - /** - * Vega name of the displayed attribute, might be different to attribute.datakey due to transformation (e.g. density transform) - */ - protected fields: string[]; - protected colorPalette: string[]; - protected nullValueMap: Map>; - show(container: HTMLDivElement, attributes: IAttribute[], cohorts: Cohort[]): Promise; - protected addControls(): void; - /** - * Returns split or filter, depending on the currently active task tab - */ - protected getActiveTask(): 'filter' | 'split'; - protected toggleFilterSplitMarks(newTask: 'filter' | 'split'): void; - protected splitValues: any[]; - protected addIntervalControls(attribute: IAttribute | string, axis: AxisType): void; - addNullCheckbox(attribute: string): void; - protected splitValuesX: any[]; - protected splitValuesY: any[]; - handleBinChangeEvent(event: any): void; - protected vegaBrushListener: (name: any, value: any) => void; - protected vegaSplitListener: (name: any, value: any) => void; - protected axes: Array; - handleInputIntervalEvent(event: any): void; - getInterval(axis: AxisType): number[]; - handleVegaIntervalEvent(name: any, interval: object): void; - handleSplitDragEvent(name: any, value: any): void; - showImpl(chart: HTMLDivElement, data: Array): Promise; - getSelectedData(): { - from: string | number; - to: string | number; - cohort: ICohort; - }[]; -} -export declare type AxisType = 'x' | 'y'; diff --git a/dist/Taskview/visualizations/MultiAttributeVisualization.js b/dist/Taskview/visualizations/MultiAttributeVisualization.js deleted file mode 100644 index b317b01..0000000 --- a/dist/Taskview/visualizations/MultiAttributeVisualization.js +++ /dev/null @@ -1,395 +0,0 @@ -import * as aq from 'arquero'; -import { format, select } from 'd3v7'; -import tippy from 'tippy.js'; -import vegaEmbed from 'vega-embed'; -import { getCohortLabel } from '../../Cohort'; -import { log, selectLast } from '../../util'; -import { AVegaVisualization } from './AVegaVisualization'; -import { DATA_LABEL } from './constants'; -export class MultiAttributeVisualization extends AVegaVisualization { - constructor() { - super(...arguments); - this.splitValues = []; - this.splitValuesX = []; - this.splitValuesY = []; - this.vegaBrushListener = (name, value) => this.handleVegaIntervalEvent(name, value); - this.vegaSplitListener = (name, value) => this.handleSplitDragEvent(name, value); - this.axes = ['x', 'y']; - } - async show(container, attributes, cohorts) { - log.debug('show: ', { container, attributes, cohorts }); - if (attributes.length <= 1) { - throw new Error('Number of attributes must be at least 2'); - } - else if (cohorts.length <= 0) { - throw new Error('Pass at least one cohort'); - } - this.cohorts = cohorts; - this.attributes = attributes; - //Create an array, with on entry per cohort, which contains an array with one entry per attribute, i.e. for 2 cohorts and 2 attributes (A1,A2) we get [[A1, A2], [A1, A2]] - const dataPromises = cohorts - .map((cht, chtIndex) => { - const promise = new Promise(async (resolve, reject) => { - const chtDataPromises = this.attributes.map((attr) => attr.getData(cht.dbId)); - try { - const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort - let joinedData = aq.from(chtData[0]); - for (let i = 1; i < chtData.length; i++) { - joinedData = joinedData.join_full(aq.from(chtData[i])); - } - const labelTable = aq.table({ [DATA_LABEL]: [getCohortLabel(cht)] }); - joinedData = joinedData.join_left(labelTable, (data, label) => true); - resolve(joinedData.objects()); - } - catch (e) { - reject(e); - } - }); - return promise; - }); - const data = await Promise.all(dataPromises); - this.container = container; - this.container.insertAdjacentHTML(`afterbegin`, ` -
-
-
-
- `); - this.chart = this.container.getElementsByTagName('div')[0]; //first-child was not the right type of object and vega-embed failed - this.controls = this.container.querySelector('.controls .sticky'); - const notZeroCohorts = this.cohorts.filter((a) => { - const currSize = a.getRetrievedSize(); - return currSize > 0; - }); - this.colorPalette = notZeroCohorts.map((elem) => elem.colorTaskView); - // data's outer array has one item per cohort, which in turn contains array with the items/values - // flatten the array: - const flatData = data.flat(1); - // check if all values are null - this.nullValueMap = new Map(); // Map: Attribute -> Cohort --> number of null values per cohort per attribute - this.attributes.forEach((attr) => this.nullValueMap.set(attr.dataKey, new Map(this.cohorts.map((cht) => [cht, 0])))); // init map with 0 for all attribues - let nullValues = 0; - for (const d of flatData) { - let nullCounter = 0; - for (const attr of this.attributes) { - if (d[attr.dataKey] === null) { - const attrData = this.nullValueMap.get(attr.dataKey); - const chtLabel = d[DATA_LABEL]; - const chtIndex = this.cohorts.findIndex((cht) => cht.label === chtLabel); - const count = 1 + attrData.get(this.cohorts[chtIndex]); - attrData.set(this.cohorts[chtIndex], count); - nullCounter++; - } - } - if (nullCounter === this.attributes.length) { - nullValues++; - } - } - if (!flatData || flatData.length === 0) { - this.chart.innerText = 'No Data'; - } - else if (flatData.length === nullValues) { - this.chart.innerText = 'Data only contains missing values!'; - } - else { - this.data = flatData; // save the data that is used in the chart - await this.showImpl(this.chart, flatData); - this.addControls(); - this.addColorLegend(); - } - } - // may be overwritten (e.g. for tsne plot where the attribtues are different) - addControls() { - this.controls.insertAdjacentHTML('afterbegin', ` -
- - - -
-
-

Click and drag in the visualization or set the range below:

- -
-
- -
-
-
-
- -
- `); - // for each attribute type, add the respective controls: - for (const [i, attr] of this.attributes.entries()) { - if (attr.type === 'number') { - const axis = i === 0 ? 'x' : 'y'; - this.addIntervalControls(attr, axis); - } - } - select(this.controls).select('button.applyBtn').on('click', () => { - const activeTask = select(this.controls).select('.tab-pane.active').attr('id'); - switch (activeTask) { - case 'filter': - this.filter(); - break; - case 'split': - this.split(); - break; - default: - log.error('Unknown task: ', activeTask); - } - }); - const that = this; //helper varible to access this instance in the d3 event handler function - select(this.controls).selectAll('a[role="tab"]').on('click', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - const newTask = d3Event.hash.replace('#', ''); - that.toggleFilterSplitMarks(newTask); - }); - } - /** - * Returns split or filter, depending on the currently active task tab - */ - getActiveTask() { - const tabPane = select(this.controls).select('.tab-pane.active'); - if (!tabPane.empty()) { - return tabPane === null || tabPane === void 0 ? void 0 : tabPane.attr('id'); - } - return 'filter'; //no task open yet, but we always start with filter - } - toggleFilterSplitMarks(newTask) { - switch (newTask) { - case 'split': // switch to split -> remove interval - this.showBrush = false; - select(this.chart).selectAll('.mark-rect.role-mark.selected_brush_bg, .mark-rect.role-mark.selected_brush, .mark-rect.role-mark.selected_brush_facethelper').style('display', 'none'); - select(this.chart).selectAll('g.splitmarks, g.splitmarks_x, g.splitmarks_y').style('display', null); - // this.clearSelection(); - break; - case 'filter': // switch to filter --> remove split rulers - this.showBrush = true; - select(this.chart).selectAll('.mark-rect.role-mark.selected_brush_bg, .mark-rect.role-mark.selected_brush, .mark-rect.role-mark.selected_brush_facethelper').style('display', null); // these elements have no opacity set from the spec which makes it safe to revert back to a hardcoded 1 - select(this.chart).selectAll('g.splitmarks, g.splitmarks_x, g.splitmarks_y').style('display', 'none'); - break; - default: - log.error('Unknown task: ', newTask); - } - } - addIntervalControls(attribute, axis) { - var _a, _b; - const attrKey = (_a = attribute.dataKey) !== null && _a !== void 0 ? _a : attribute; - const attrLabel = (_b = attribute.label) !== null && _b !== void 0 ? _b : attribute; - const [min, max] = this.vegaView.scale(axis).domain(); - this.controls.querySelector('#filter').insertAdjacentHTML(`beforeend`, ` -
- - - - -
- - -
-
- `); - this.controls.querySelector('#split').insertAdjacentHTML(`beforeend`, ` -
- - - - -
- - -
-
- `); - this.addNullCheckbox(attrKey); - const that = this; //helper varible to access this instance in the d3 event handler function - const brushInputs = select(this.controls).selectAll(`input.interval[data-axis="${axis}"]`); - brushInputs.on('change', function () { - const d3Event = this; // because we use a function "this" is overwritten by d3, asssign to variable for clarity - that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set "this" back to the current instance - }); - const splitNumberInput = selectLast(select(this.controls), 'input.bins'); - splitNumberInput.on('change', function () { - const d3Event = this; // because we use a function "this" is overwritten by d3, asssign to variable for clarity - that.handleBinChangeEvent.bind(that)(d3Event); // voodoo magic (👺) to set "this" back to the current instance - }); - // handle switching bin Type (i.e. make current draggers equal width) - const splitTypeInput = select(this.controls).select(`select.binType[data-axis="${axis}"]`); - splitTypeInput.on('change', function () { - splitNumberInput.node().dispatchEvent(new Event('change')); - }); - this.handleBinChangeEvent(splitNumberInput.node()); - } - addNullCheckbox(attribute) { - let nullValueTooltip = ``; - for (const [cht, nullValues] of this.nullValueMap.get(attribute)) { - nullValueTooltip += ` ${nullValues}
`; - } - const selector = `[data-attr="${attribute}"] .hint`; - tippy(this.controls.querySelectorAll(selector), { content: nullValueTooltip }); - } - handleBinChangeEvent(event) { - this.vegaView.removeDataListener(`splitvalues_${event.dataset.axis}`, this.vegaSplitListener); //remove listener temporarily - const binCount = parseFloat(event.value); - const splitValCount = binCount - 1; - const [min, max] = this.vegaView.scale(event.dataset.axis).domain(); - const extent = max - min; - const binWidth = extent / binCount; - const binType = this.controls.querySelector(`#split select.binType[data-axis="${event.dataset.axis}"]`); - const splitValues = event.dataset.axis === 'x' ? this.splitValuesX : this.splitValuesY; - if ((binType === null || binType === void 0 ? void 0 : binType.selectedIndex) === 1) { // custom width - if (splitValues.length > splitValCount) { - splitValues.sort((a, b) => a - b); //sort em - splitValues.length = splitValCount; //drop largest split values - } - else { - while (splitValues.length < splitValCount) { - splitValues.push(max); // add maximum until there are enough rulers - } - } - } - else { // equal width - splitValues.length = 0; - for (let i = 1; i < binCount; i++) { - const binBorder = min + binWidth * i; - splitValues.push(binBorder); - } - } - this.vegaView.data(`splitvalues_${event.dataset.axis}`, splitValues.slice()); //set a defensive copy - this.vegaView.runAsync().then((vegaView) => //defer adding signallistener until the new data is set internally - vegaView.addDataListener(`splitvalues_${event.dataset.axis}`, this.vegaSplitListener) //add listener again - ); - } - handleInputIntervalEvent(event) { - for (const axis of this.axes) { - this.vegaView.removeSignalListener(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, this.vegaBrushListener); //remove listener temporarily - const range = this.getInterval(axis); - log.debug('range', range); - const scaledMin = axis === 'x' ? 0 : this.vegaView.height(); - const scaledMax = axis === 'x' ? this.vegaView.width() : 0; // y has zero in the top and maximum scren cooridinates at the bottom - const scaledRange = [scaledMin, scaledMax]; //use min and max as default for range - const scale = this.vegaView.scale(axis); - // if one or both ranges are set, replace with values - if (range[0] !== undefined && !isNaN(range[0])) { - scaledRange[0] = scale(range[0]); // get min value from input - } - if (range[1] !== undefined && !isNaN(range[1])) { - scaledRange[1] = scale(range[1]); // get max value from input - if (range[0] === range[1]) { - scaledRange[1] = scale(range[1]) + Math.pow(10, -10); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) - } - } - log.info('scaledRange', scaledRange); - this.vegaView.signal(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, scaledRange); - this.vegaView.addSignalListener(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, this.vegaBrushListener); //add listener again - } - this.vegaView.runAsync(); // update the chart - } - getInterval(axis) { - const range = [ - parseFloat(select(this.controls).select(`input.minimum[data-axis="${axis}"]`).node().value), - parseFloat(select(this.controls).select(`input.maximum[data-axis="${axis}"]`).node().value) - ]; - if (range.some((rangeNum) => rangeNum === undefined || isNaN(rangeNum))) { - const domain = this.vegaView.scale(axis).domain(); - for (const i in range) { - if (range[i] === undefined || isNaN(range[i])) { - range[i] = domain[i]; - } - } - } - return range; - } - handleVegaIntervalEvent(name, interval) { - log.debug(name, interval); - const intervalValues = Object.values(interval); - if (intervalValues.length > 0) { - for (const [i, attrValues] of intervalValues.entries()) { - // first attribute is on x, - // second on y - const axis = i === 0 ? 'x' : 'y'; - const lowerBound = attrValues[0]; - const upperBound = attrValues[1]; - const inputs = select(this.controls).selectAll(`input.interval[data-axis="${axis}"]`); - inputs.on('change', null); //remove listeners temporarily - const formatter = format('.4~f'); - select(this.controls).selectAll(`input.minimum[data-axis="${axis}"]`).node().value = formatter(lowerBound); - select(this.controls).selectAll(`input.maximum[data-axis="${axis}"]`).node().value = formatter(upperBound); - //add listener again: - const that = this; //helper varible to access this instance in the d3 event handler function - inputs.on('change', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); - } - } - else { - select(this.controls).selectAll(`input.minimum, input.maximum`).nodes().forEach((node) => node.value = ''); - } - } - handleSplitDragEvent(name, value) { - const axis = name.replace('splitvalues_', ''); // e.g., splitvalues_x -> x - const splitValues = this.vegaView.data(`splitvalues_${axis}`) - .map((val) => val.data) - .sort((a, b) => a - b); - if (axis === 'x') { - this.splitValuesX = splitValues; - } - else { - this.splitValuesY = splitValues; - } - this.controls.querySelector(`#split select.binType[data-axis="${axis}"]`).selectedIndex = 1; - this.controls.querySelector(`#split input.bins[data-axis="${axis}"]`).value = (1 + splitValues.length).toString(); - } - // addCategoricalControls() { - // this.controls.insertAdjacentHTML('afterbegin', ` - //

Select bars with a mouse click. All bars are selected initially.

- //
- // - // - //
- // `); - // this.container.insertAdjacentElement('beforeend', this.controls); - // const visInstance = this; - // select(this.controls).selectAll('button').on('click', function () { - // const button = this as HTMLButtonElement; - // const task = button.textContent.toLowerCase(); - // if (task.indexOf('filter') >= 0) { - // visInstance.filter(); - // } else if (task.indexOf('split') >= 0) { - // visInstance.split(); - // } else { - // log.error('Unknown task: ', task); - // } - // }); - // } - async showImpl(chart, data) { - const spec = this.getSpec(data); // get spec - if (this.vegaView) { - this.vegaView.finalize(); - select(chart).selectAll('*').remove(); - chart.className = ''; - } - const result = await vegaEmbed(chart, spec, { actions: false, renderer: 'svg' }); - this.vegaLiteSpec = result.spec; - this.vegaSpec = result.vgSpec; - this.vegaView = result.view; - if (this.attributes.some((attr) => attr.type === 'number')) { - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); - } - log.info('vega', this.vegaSpec); - log.info('vegalite', this.vegaLiteSpec); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became narrower - } - getSelectedData() { - throw new Error('use getSelectedDatas for multi attribute'); - } -} -//# sourceMappingURL=MultiAttributeVisualization.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/MultiAttributeVisualization.js.map b/dist/Taskview/visualizations/MultiAttributeVisualization.js.map deleted file mode 100644 index 402ed43..0000000 --- a/dist/Taskview/visualizations/MultiAttributeVisualization.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MultiAttributeVisualization.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/MultiAttributeVisualization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAS,cAAc,EAAC,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAC,GAAG,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAgB,2BAA4B,SAAQ,kBAAkB;IAA5E;;QAkLY,gBAAW,GAAG,EAAE,CAAC;QAqEjB,iBAAY,GAAG,EAAE,CAAC;QAClB,iBAAY,GAAG,EAAE,CAAC;QAqClB,sBAAiB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;Q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AAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;SACnG;QAED,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QACxC,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,6DAA6D;IAC1G,CAAC;IAED,eAAe;QACb,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/Scatterplot.d.ts b/dist/Taskview/visualizations/Scatterplot.d.ts deleted file mode 100644 index 7a53b7d..0000000 --- a/dist/Taskview/visualizations/Scatterplot.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; -import { Cohort } from '../../Cohort'; -import { IAttribute, IdValuePair } from '../../data/Attribute'; -import { AxisType, MultiAttributeVisualization } from './MultiAttributeVisualization'; -import { TopLevel, LayerSpec } from 'vega-lite/build/src/spec'; -import { Field } from 'vega-lite/build/src/channeldef'; -export declare class Scatterplot extends MultiAttributeVisualization { - static readonly NAME: string; - protected checkAttributeType: boolean; - constructor(vegaLiteOptions?: Object); - getSpec(data: IdValuePair[]): VegaLiteSpec; - showImpl(chart: HTMLDivElement, data: Array): Promise; - filter(): void; - split(): void; -} -export declare class TsneScatterplot extends Scatterplot { - static readonly NAME = "t-SNE Scatterplot"; - readonly ITERATIONS = 100; - iteration: number; - progressBar: HTMLDivElement; - running: boolean; - playBtn: any; - inputData: number[][]; - tsne: any; - progressWrapper: any; - tsneClass: any; - projData: any[]; - originalAttributes: IAttribute[]; - constructor(vegaLiteOptions?: Object); - getSpec(data: IdValuePair[]): TopLevel>; - show(container: HTMLDivElement, attributes: IAttribute[], cohorts: Cohort[]): Promise; - showImpl(chart: HTMLDivElement, data: Array): Promise; - embeddStep(): Promise; - embeddArrToJson(projCoords: Array>): IdValuePair[]; - addProgressBar(): void; - setProgress(iteration: number): void; - run(run: boolean): void; - protected addControls(): void; - addIntervalControls(attribute: string, axis: AxisType): void; - addNullCheckbox(attribute: string): void; - filter(): void; - split(): void; -} diff --git a/dist/Taskview/visualizations/Scatterplot.js b/dist/Taskview/visualizations/Scatterplot.js deleted file mode 100644 index 39935a0..0000000 --- a/dist/Taskview/visualizations/Scatterplot.js +++ /dev/null @@ -1,1141 +0,0 @@ -import * as Comlink from 'comlink'; -import { select } from 'd3v7'; -import { ServerColumnAttribute } from '../../data/Attribute'; -import { NumRangeOperators } from '../../rest'; -import { inRange } from '../../util'; -import { FilterEvent } from '../../utilCustomEvents'; -import { DATA_LABEL } from './constants'; -import { MultiAttributeVisualization } from './MultiAttributeVisualization'; -export class Scatterplot extends MultiAttributeVisualization { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - this.checkAttributeType = false; - } - getSpec(data) { - if (this.checkAttributeType && - this.attributes.some((attr) => attr.type !== `number`)) { - throw new Error(`Scatterplot requires attributes of type number`); - } - const vegaSpec = { - $schema: `https://vega.github.io/schema/vega/v5.json`, - autosize: { type: `fit`, contains: `padding` }, - background: `white`, - padding: { left: 5, top: 5, right: 5, bottom: 5 }, - height: 300, - style: `cell`, - encode: { update: { cursor: { value: `crosshair` } } }, - data: [ - { - name: `selected_store`, - values: [ - { - unit: `layer_0`, - fields: [ - { field: `${this.attributes[0].dataKey}`, channel: `x`, type: `R` }, - { field: `${this.attributes[1].dataKey}`, channel: `y`, type: `R` } - ], - values: [[], []] - } - ] - }, - { - name: `source_0`, - values: data - }, - { - name: `splitvalues_x`, - values: this.splitValuesX, - on: [ - { - trigger: `draggedMark_x`, - modify: `draggedMark_x`, - values: `dragTo_x` - }, - { trigger: `addMark_x`, insert: `addMark_x` }, - { trigger: `remMark_x`, remove: `remMark_x` } - ] - }, - { - name: `splitvalues_y`, - values: this.splitValuesY, - on: [ - { - trigger: `draggedMark_y`, - modify: `draggedMark_y`, - values: `dragTo_y` - }, - { trigger: `remMark_y`, remove: `remMark_y` } - ] - }, - { - name: `data_0`, - source: `source_0`, - transform: [ - { - type: `filter`, - expr: `isValid(datum['${this.attributes[0].dataKey}']) && isFinite(+datum['${this.attributes[0].dataKey}']) && isValid(datum['${this.attributes[1].dataKey}']) && isFinite(+datum['${this.attributes[1].dataKey}'])` - } - ] - }, - { - name: `data_1`, - source: `splitvalues_x`, - transform: [ - { - type: `filter`, - expr: `isValid(datum['data']) && isFinite(+datum['data'])` - } - ] - }, - { - name: `data_2`, - source: `splitvalues_y`, - transform: [ - { - type: `filter`, - expr: `isValid(datum['data']) && isFinite(+datum['data'])` - } - ] - } - ], - signals: [ - { - name: `width`, - init: `isFinite(containerSize()[0]) ? containerSize()[0] : 200`, - on: [ - { - update: `isFinite(containerSize()[0]) ? containerSize()[0] : 200`, - events: `window:resize` - } - ] - }, - { - name: `dragTo_x`, - on: [ - { - events: `[@grabber_x:mousedown, window:mouseup] > window:mousemove`, - update: `{data: invert('x',x())}` - } - ] - }, - { - name: `draggedMark_x`, - on: [ - { - events: [ - { - markname: `grabber_x`, - type: `mousedown`, - filter: [`!event.ctrlKey`] - } - ], - update: `group().datum` - } - ] - }, - { - name: `addMark_x`, - on: [ - { - events: [ - { - source: `view`, - type: `click`, - filter: [`event.ctrlKey`, `item().mark.name === 'root'`] - } - ], - update: `{data: invert('x',x())}` - } - ] - }, - { - name: `remMark_x`, - on: [ - { - events: [ - { - markname: `grabber_x`, - type: `click`, - filter: `event.ctrlKey` - }, - { - markname: `splitrule_x`, - type: `click`, - filter: `event.ctrlKey` - } - ], - update: `group().datum` - } - ] - }, - { - name: `dragTo_y`, - on: [ - { - events: `[@grabber_y:mousedown, window:mouseup] > window:mousemove`, - update: `{data: invert('y',y())}` - } - ] - }, - { - name: `draggedMark_y`, - on: [ - { - events: [ - { - markname: `grabber_y`, - type: `mousedown`, - filter: [`!event.ctrlKey`] - } - ], - update: `group().datum` - } - ] - }, - { - name: `remMark_y`, - on: [ - { - events: [ - { - markname: `grabber_y`, - type: `click`, - filter: `event.ctrlKey` - }, - { - markname: `splitrule_y`, - type: `click`, - filter: `event.ctrlKey` - } - ], - update: `group().datum` - } - ] - }, - { - name: `unit`, - value: {}, - on: [ - { events: `mousemove`, update: `isTuple(group()) ? group() : unit` } - ] - }, - { - name: `selected`, - update: `vlSelectionResolve('selected_store', 'union')` - }, - { - name: `selected_x`, - init: `[]`, - on: [ - { - events: { - source: `scope`, - type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'`, - `event.item.mark.name !== 'grabber_x'`, - `event.item.mark.name !== 'grabber_y'` - ] - }, - update: `[x(unit), x(unit)]` - }, - { - events: { - source: `window`, - type: `mousemove`, - consume: true, - between: [ - { - source: `scope`, - type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'`, - `event.item.mark.name !== 'grabber_x'`, - `event.item.mark.name !== 'grabber_y'` - ] - }, - { source: `window`, type: `mouseup` } - ] - }, - update: `[selected_x[0], clamp(x(unit), 0, width)]` - }, - { - events: { signal: `selected_scale_trigger` }, - update: `[scale('x', selected_attr0[0]), scale('x', selected_attr0[1])]` - }, - { - events: [{ source: `view`, type: `dblclick` }], - update: `[0, 0]` - }, - { - events: { signal: `selected_translate_delta` }, - update: `clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)` - }, - { - events: { signal: `selected_zoom_delta` }, - update: `clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)` - } - ] - }, - { - name: `selected_attr0`, - init: `[]`, - on: [ - { - events: { signal: `selected_x` }, - update: `selected_x[0] === selected_x[1] ? null : invert('x', selected_x)` - } - ] - }, - { - name: `selected_y`, - init: `[]`, - on: [ - { - events: { - source: `scope`, - type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'` - ] - }, - update: `[y(unit), y(unit)]` - }, - { - events: { - source: `window`, - type: `mousemove`, - consume: true, - between: [ - { - source: `scope`, - type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'` - ] - }, - { source: `window`, type: `mouseup` } - ] - }, - update: `[selected_y[0], clamp(y(unit), 0, height)]` - }, - { - events: { signal: `selected_scale_trigger` }, - update: `[scale('y', selected_attr1[0]), scale('y', selected_attr1[1])]` - }, - { - events: [{ source: `view`, type: `dblclick` }], - update: `[0, 0]` - }, - { - events: { signal: `selected_translate_delta` }, - update: `clampRange(panLinear(selected_translate_anchor.extent_y, selected_translate_delta.y / span(selected_translate_anchor.extent_y)), 0, height)` - }, - { - events: { signal: `selected_zoom_delta` }, - update: `clampRange(zoomLinear(selected_y, selected_zoom_anchor.y, selected_zoom_delta), 0, height)` - } - ] - }, - { - name: `selected_attr1`, - init: `[]`, - on: [ - { - events: { signal: `selected_y` }, - update: `selected_y[0] === selected_y[1] ? null : invert('y', selected_y)` - } - ] - }, - { - name: `selected_scale_trigger`, - value: {}, - on: [ - { - events: [{ scale: `x` }, { scale: `y` }], - update: `(!isArray(selected_attr0) || (+invert('x', selected_x)[0] === +selected_attr0[0] && +invert('x', selected_x)[1] === +selected_attr0[1])) && (!isArray(selected_attr1) || (+invert('y', selected_y)[0] === +selected_attr1[0] && +invert('y', selected_y)[1] === +selected_attr1[1])) ? selected_scale_trigger : {}` - } - ] - }, - { - name: `selected_tuple`, - init: `{unit: 'layer_0', fields: selected_tuple_fields, values: [[], []]}`, - on: [ - { - events: [{ signal: `selected_attr0 || selected_attr1` }], - update: `selected_attr0 && selected_attr1 ? {unit: 'layer_0', fields: selected_tuple_fields, values: [selected_attr0,selected_attr1]} : null` - } - ] - }, - { - name: `selected_tuple_fields`, - value: [ - { field: `${this.attributes[0].dataKey}`, channel: `x`, type: `R` }, - { field: `${this.attributes[1].dataKey}`, channel: `y`, type: `R` } - ] - }, - { - name: `selected_translate_anchor`, - value: {}, - on: [ - { - events: [ - { - source: `scope`, - type: `mousedown`, - markname: `selected_brush` - } - ], - update: `{x: x(unit), y: y(unit), extent_x: slice(selected_x), extent_y: slice(selected_y)}` - } - ] - }, - { - name: `selected_translate_delta`, - value: {}, - on: [ - { - events: [ - { - source: `window`, - type: `mousemove`, - consume: true, - between: [ - { - source: `scope`, - type: `mousedown`, - markname: `selected_brush` - }, - { source: `window`, type: `mouseup` } - ] - } - ], - update: `{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}` - } - ] - }, - { - name: `selected_zoom_anchor`, - on: [ - { - events: [ - { - source: `scope`, - type: `wheel`, - consume: true, - markname: `selected_brush` - } - ], - update: `{x: x(unit), y: y(unit)}` - } - ] - }, - { - name: `selected_zoom_delta`, - on: [ - { - events: [ - { - source: `scope`, - type: `wheel`, - consume: true, - markname: `selected_brush` - } - ], - force: true, - update: `pow(1.001, event.deltaY * pow(16, event.deltaMode))` - } - ] - }, - { - name: `selected_modify`, - on: [ - { - events: { signal: `selected_tuple` }, - update: `modify('selected_store', selected_tuple, true)` - } - ] - } - ], - marks: [ - { - name: `selected_brush_bg`, - type: `rect`, - clip: true, - encode: { - enter: { fill: { value: `#333` }, fillOpacity: { value: 0.125 } }, - update: { - x: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[0]` - }, - { value: 0 } - ], - y: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[0]` - }, - { value: 0 } - ], - x2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[1]` - }, - { value: 0 } - ], - y2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[1]` - }, - { value: 0 } - ] - } - } - }, - { - name: `layer_0_marks`, - type: `symbol`, - style: [`circle`], - interactive: true, - from: { data: `data_0` }, - encode: { - update: { - opacity: { value: 0.9 }, - size: { value: 15 }, - cursor: { value: `crosshair` }, - tooltip: { - signal: `{'${this.attributes[0].label}': format(datum['${this.attributes[0].dataKey}'], ''), '${this.attributes[1].label}': format(datum['${this.attributes[1].dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` - }, - fill: { scale: `color`, field: `${DATA_LABEL}` }, - ariaRoleDescription: { value: `circle` }, - description: { - signal: `'${this.attributes[0].label}: ' + (format(datum['${this.attributes[0].dataKey}'], '')) + '; ${this.attributes[1].label}: ' + (format(datum['${this.attributes[1].dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])` - }, - x: [ - { - test: `!isValid(datum['${this.attributes[0].dataKey}']) || !isFinite(+datum['${this.attributes[0].dataKey}'])`, - value: 0 - }, - { scale: `x`, field: `${this.attributes[0].dataKey}` } - ], - y: [ - { - test: `!isValid(datum['${this.attributes[1].dataKey}']) || !isFinite(+datum['${this.attributes[1].dataKey}'])`, - field: { group: `height` } - }, - { scale: `y`, field: `${this.attributes[1].dataKey}` } - ], - shape: { value: `circle` } - } - } - }, - { - name: `splitmarks_x`, - type: `group`, - from: { data: `data_1` }, - encode: { - enter: { height: { field: { group: `height` } } }, - update: { - x: [ - { - test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - value: 0 - }, - { scale: `x`, field: `data` } - ] - } - }, - marks: [ - { - name: `splitrule_x`, - type: `rule`, - style: [`rule`], - encode: { - update: { - strokeDash: { value: [4, 6] }, - stroke: { value: `black` }, - y: { value: 0 }, - y2: { field: { group: `height` } } - } - } - }, - { - type: `path`, - name: `grabber_x`, - encode: { - enter: { - y: { field: { group: `height` }, mult: 0.5, offset: -80 }, - fill: { value: `#fff` }, - stroke: { value: `#666` }, - cursor: { value: `ew-resize` } - }, - update: { - path: { - signal: `'M0.5,33.333A6,6 0 0 1 6.5,39.333V60.666A6,6 0 0 1 0.5,66.666ZM2.5,41.333V58.666M4.5,41.333V58.666'` - } - } - } - } - ] - }, - { - name: `splitmarks_y`, - type: `group`, - from: { data: `data_2` }, - encode: { - update: { - x: { field: { group: `width` } }, - x2: { value: 0 }, - y: [ - { - test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - value: 0 - }, - { scale: `y`, field: `data` } - ] - } - }, - marks: [ - { - name: `splitrule_y`, - type: `rule`, - style: [`rule`], - encode: { - update: { - strokeDash: { value: [4, 6] }, - stroke: { value: `black` }, - description: { - signal: `'data: ' + (format(datum['data'], ''))` - }, - x: { field: { group: `width` } }, - x2: { value: 0 }, - y: [ - { - test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - field: { group: `height` } - }, - { scale: `y`, field: `data` } - ] - } - } - }, - { - type: `path`, - name: `grabber_y`, - encode: { - enter: { - x: { field: { group: `width` }, mult: 0.5, offset: 15 }, - y: [ - { - test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - field: { group: `height` } - }, - { scale: `y`, field: `data` } - ], - fill: { value: `#fff` }, - stroke: { value: `#666` }, - cursor: { value: `ns-resize` } - }, - update: { - path: { - signal: `'M33.333,0a6,6 0 0 0 -6,-6H6A6,6 0 0 0 0,0Zm-8,-2 H8M25.333,-4H8'` - } - } - } - } - ] - }, - { - name: `selected_brush`, - type: `rect`, - clip: true, - encode: { - enter: { - cursor: { value: `pointer` }, - fill: { value: `transparent` } - }, - update: { - x: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[0]` - }, - { value: 0 } - ], - y: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[0]` - }, - { value: 0 } - ], - x2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[1]` - }, - { value: 0 } - ], - y2: [ - { - test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[1]` - }, - { value: 0 } - ], - stroke: [ - { - test: `selected_x[0] !== selected_x[1] && selected_y[0] !== selected_y[1]`, - value: `white` - }, - { value: null } - ] - } - } - } - ], - scales: [ - { - name: `x`, - ...this.attributes[0].preferLog ? { type: 'log', base: 10 } : { type: 'linear', zero: false }, - domain: { - fields: [ - { data: `data_0`, field: `${this.attributes[0].dataKey}` }, - { data: `data_1`, field: `data` } - ] - }, - range: [0, { signal: `width` }], - clamp: true, - nice: false, - zero: false - }, - { - name: `y`, - ...this.attributes[1].preferLog ? { type: 'log', base: 10 } : { type: 'linear', zero: false }, - domain: { - fields: [ - { data: `data_0`, field: `${this.attributes[1].dataKey}` }, - { data: `data_2`, field: `data` } - ] - }, - range: [{ signal: `height` }, 0], - clamp: true, - nice: false, - zero: false - }, - { - name: `color`, - type: `ordinal`, - domain: { data: 'data_0', field: DATA_LABEL, sort: true }, - range: `category` - } - ], - axes: [ - { - scale: `x`, - orient: `bottom`, - gridScale: `y`, - grid: true, - tickCount: { signal: `ceil(width/40)` }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - }, - { - scale: `y`, - orient: `left`, - gridScale: `x`, - grid: true, - tickCount: { signal: `ceil(height/40)` }, - domain: false, - labels: false, - aria: false, - maxExtent: 0, - minExtent: 0, - ticks: false, - zindex: 0 - }, - { - scale: `x`, - orient: `bottom`, - grid: false, - title: `${this.attributes[0].label}`, - labelFlush: true, - tickCount: { signal: `ceil(width/40)` }, - zindex: 0 - }, - { - scale: `y`, - orient: `left`, - grid: false, - title: `${this.attributes[1].label}`, - tickCount: { signal: `ceil(height/40)` }, - zindex: 0 - } - ], - config: { - range: { category: this.colorPalette }, - axis: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: `Roboto`, - labelFontSize: 12, - labelLimit: 150, - labelFont: `Roboto`, - labelOverlap: `parity`, - labelSeparation: 5, - labelBound: true - }, - legend: { - titleFontSize: 16, - titleFontWeight: 500, - titleFont: `Roboto`, - labelFontSize: 12, - labelLimit: 150, - labelFont: `Roboto`, - labelOverlap: `parity` - } - } - }; - return vegaSpec; - } - async showImpl(chart, data) { - await super.showImpl(chart, data); - this.vegaView.addDataListener('splitvalues_x', this.vegaSplitListener); - this.vegaView.addDataListener('splitvalues_y', this.vegaSplitListener); - this.vegaView.addSignalListener('remMark_x', (name, value) => { - this.splitValuesX = this.splitValuesX.filter((splitVal) => splitVal !== value); - this.vegaView.data('splitvalues_x', this.splitValuesX); - }); - this.vegaView.addSignalListener('remMark_y', (name, value) => { - this.splitValuesY = this.splitValuesY.filter((splitVal) => splitVal !== value); - this.vegaView.data('splitvalues_y', this.splitValuesY); - }); - this.toggleFilterSplitMarks(this.getActiveTask()); - } - filter() { - const filterDescs = []; - for (const cht of this.cohorts) { - const filter = []; - for (const [i, axis] of this.axes.entries()) { - const interval = this.getInterval(axis); - const range = [{ - operatorOne: NumRangeOperators.gte, - valueOne: interval[0], - operatorTwo: NumRangeOperators.lte, - valueTwo: interval[1] - }]; - if (this.getNullCheckboxState(this.attributes[i])) { - range.push({ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }); - } - filter.push({ - attr: this.attributes[i], - range - }); - } - filterDescs.push({ - cohort: cht, - filter - }); - } - this.container.dispatchEvent(new FilterEvent(filterDescs)); - } - split() { - const filterDescs = []; - for (const cht of this.cohorts) { - const filter = []; - const [minX, maxX] = this.vegaView.scale('x').domain(); - const [minY, maxY] = this.vegaView.scale('y').domain(); - // one filterdesc per cohort and split bin - // a bin consits of x and y range - for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { - for (const [iy, splitY] of [...this.splitValuesY, maxY].entries()) { - const desc = { - cohort: cht, - filter: [ - { - attr: this.attributes[0], - range: [this.getGeneralNumericalFilter(ix >= 1 ? this.splitValuesX[ix - 1] : minX, splitX, NumRangeOperators.gte, splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - }, - { - attr: this.attributes[1], - range: [this.getGeneralNumericalFilter(iy >= 1 ? this.splitValuesY[iy - 1] : minY, splitY, NumRangeOperators.gte, splitY === maxY ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - } - ] - }; - filterDescs.push(desc); - } - } - if (this.getNullCheckboxState(this.attributes[0])) { //x = null - for (const [iy, splitY] of [...this.splitValuesY, maxY].entries()) { - filterDescs.push({ - cohort: cht, - filter: [ - { - attr: this.attributes[0], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] - }, - { - attr: this.attributes[1], - range: [this.getGeneralNumericalFilter(iy >= 1 ? this.splitValuesY[iy - 1] : minY, splitY, NumRangeOperators.gte, splitY === maxY ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - } - ] - }); - } - } - if (this.getNullCheckboxState(this.attributes[1])) { // y= null - for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { - filterDescs.push({ - cohort: cht, - filter: [ - { - attr: this.attributes[0], - range: [this.getGeneralNumericalFilter(ix >= 1 ? this.splitValuesX[ix - 1] : minX, splitX, NumRangeOperators.gte, splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - }, - { - attr: this.attributes[1], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] - } - ] - }); - } - } - if (this.getNullCheckboxState(this.attributes[0]) && this.getNullCheckboxState(this.attributes[1])) { - filterDescs.push({ - cohort: cht, - filter: [ - { - attr: this.attributes[0], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] - }, - { - attr: this.attributes[1], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] - } - ] - }); - } - } - this.container.dispatchEvent(new FilterEvent(filterDescs)); - } -} -Scatterplot.NAME = 'Scatterplot'; -export class TsneScatterplot extends Scatterplot { - constructor(vegaLiteOptions = {}) { - super(vegaLiteOptions); - this.ITERATIONS = 100; - this.iteration = 0; - this.checkAttributeType = false; - } - getSpec(data) { - const scatterSpec = super.getSpec(data); - scatterSpec.layer[0].encoding.x.field = 'x_embed'; //cast to any because I couldnt find out the right type... - scatterSpec.layer[0].encoding.y.field = 'y_embed'; - scatterSpec.layer[0].encoding.tooltip = this.originalAttributes.map((attr) => ({ field: attr.dataKey, type: attr.type === 'number' ? 'ordinal' : 'nominal' })); - return scatterSpec; - } - async show(container, attributes, cohorts) { - super.show(container, attributes, cohorts); - } - async showImpl(chart, data) { - this.addProgressBar(); - const oneHotWorker = new (require('worker-loader?name=OneHotEncoder.js!./dimreduce/OneHotEncoder.worker'))(); - const oneHotClass = Comlink.wrap(oneHotWorker); - const oneHot = await new oneHotClass(); - // Note: numerical attributes will be normalized - const oneHotData = await oneHot.encode(data, this.attributes); - oneHot[Comlink.releaseProxy](); - const opt = { - epsilon: 10, - perplexity: data.length ** 0.5, - dim: 2 // dimensionality of the embedding (2 = default) - }; - const tsneWorker = new (require('worker-loader?name=tsne.worker.js!./dimreduce/tsne.worker'))(); - this.tsneClass = Comlink.wrap(tsneWorker); - this.tsne = await new this.tsneClass(opt); - this.tsne.initDataRaw(oneHotData); - this.originalAttributes = this.attributes; //backup for tooltip - this.attributes = ['x', 'y'].map((axis) => ({ - id: `${axis}_embed`, - label: axis, - type: 'number' - })); // workaround to glory - this.run(true); - } - async embeddStep() { - this.progressBar.classList.toggle('active', true); - this.progressBar.classList.toggle('progress-bar-striped', true); - this.playBtn.select('i') - .classed('fa-circle-notch fa-spin', false) - .classed('fa-play-circle', false) - .classed('fa-pause-circle', true); - await this.tsne.step(); // every time you call this, solution gets better - this.iteration++; - this.setProgress(this.iteration); - if (this.iteration % 10 === 0 || this.iteration === this.ITERATIONS || !this.running) { - const projCoords = await this.tsne.getSolution(); - super.showImpl(this.chart, this.embeddArrToJson(projCoords)).then(() => { - if (this.iteration === this.ITERATIONS) { - super.addControls(); - } - }); - } - if (this.iteration === this.ITERATIONS) { - this.run(false); - this.progressWrapper.remove(); - this.tsneClass[Comlink.releaseProxy](); - } - if (this.running) { - this.embeddStep(); // call self - } - else { - this.progressBar.classList.toggle('active', false); - this.progressBar.classList.toggle('progress-bar-striped', false); - this.playBtn.select('i') - .classed('fa-circle-notch fa-spin', false) - .classed('fa-play-circle', true) - .classed('fa-pause-circle', false); - } - } - embeddArrToJson(projCoords) { - const projCoordsObjArr = projCoords.map((item, index) => Object.assign({ - x_embed: item[0] * 1000, - y_embed: item[1] * 1000, - }, this.data[index])); - this.projData = projCoordsObjArr; - return projCoordsObjArr; - } - addProgressBar() { - this.container.insertAdjacentHTML('beforeend', ` -
-
- -
-
-
- 0/${this.ITERATIONS} -
-
-
- `); - this.progressWrapper = select(this.container).select('.progress-wrapper'); - this.progressBar = select(this.container).select('.progress .progress-bar').node(); - this.playBtn = select(this.container).select('a.run'); - this.playBtn.on('click', () => this.run(!this.running)); - } - setProgress(iteration) { - this.progressBar.textContent = `${iteration}/${this.ITERATIONS}`; - this.progressBar.style.width = `${100 * iteration / this.ITERATIONS}%`; - } - run(run) { - this.running = run; - this.playBtn.select('i') - .classed('fa-circle-notch fa-spin', true) - .classed('fa-play-circle', false) - .classed('fa-pause-circle', false); - if (run) { - this.embeddStep(); - } - } - addControls() { - // noop - } - addIntervalControls(attribute, axis) { - super.addIntervalControls(axis, axis); - } - addNullCheckbox(attribute) { } - filter() { - const intervals = { - x: this.getInterval('x'), - y: this.getInterval('y') - }; - const selectedItems = this.projData.filter((item) => { - let selected = true; - for (const axis of ['x', 'y']) { - selected = selected && inRange(item[`${axis}_embed`], intervals[axis]); - } - return selected; - }); - const filterDescs = []; - for (const cohort of this.cohorts) { - filterDescs.push({ - cohort, - filter: [{ - attr: new ServerColumnAttribute(cohort.idColumn.column, cohort.view, cohort.database, cohort.idColumn), - range: { values: selectedItems.filter((item) => item.Cohort.indexOf(cohort.label) >= 0).map((item) => item[cohort.idColumn.column]) } - }] - }); - } - this.container.dispatchEvent(new FilterEvent(filterDescs)); - } - split() { - const filterDescs = []; - for (const cohort of this.cohorts) { - const chtItems = this.projData.filter((item) => item.Cohort.indexOf(cohort.label) >= 0); - const [minX, maxX] = this.vegaView.scale('x').domain(); - const [minY, maxY] = this.vegaView.scale('y').domain(); - for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { - for (const [iy, splitY] of [...this.splitValuesY, maxY].entries()) { - const chtSplitItems = chtItems.filter((item) => { - const x = item[`x_embed`]; - const selectedX = splitX === maxX ? - x >= (ix >= 1 ? this.splitValuesX[ix - 1] : minX) && x <= splitX : // splitX is maxX -> include max - x >= (ix >= 1 ? this.splitValuesX[ix - 1] : minX) && x < splitX; // splitX is something else - const y = item[`y_embed`]; - const selectedY = splitY === maxY ? - y >= (iy >= 1 ? this.splitValuesY[iy - 1] : minY) && y <= splitY : - y >= (iy >= 1 ? this.splitValuesY[iy - 1] : minY) && y < splitY; - return selectedX && selectedY; - }); - filterDescs.push({ - cohort, - filter: [{ - range: { values: chtSplitItems.map((item) => item[cohort.idColumn.column]) }, - attr: new ServerColumnAttribute(cohort.idColumn.column, cohort.view, cohort.database, cohort.idColumn), - }] - }); - } - } - } - this.container.dispatchEvent(new FilterEvent(filterDescs)); - } -} -TsneScatterplot.NAME = 't-SNE Scatterplot'; -//# sourceMappingURL=Scatterplot.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/Scatterplot.js.map b/dist/Taskview/visualizations/Scatterplot.js.map deleted file mode 100644 index cf10280..0000000 --- a/dist/Taskview/visualizations/Scatterplot.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scatterplot.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/Scatterplot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAI5B,OAAO,EAAyC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;A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C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAC;gCAC1E,IAAI,EAAE,IAAI,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;6BACvG,CAAC;qBACH,CAAC,CAAC;iBACJ;aACF;SACF;QACD,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7D,CAAC;;AA3Ne,oBAAI,GAAG,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/ConfidenceConfig.d.ts b/dist/Taskview/visualizations/config/ConfidenceConfig.d.ts deleted file mode 100644 index 351b8b3..0000000 --- a/dist/Taskview/visualizations/config/ConfidenceConfig.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -export declare const confidenceNone: Option; -export declare const confidenceToggleGroup: OptionGroup; diff --git a/dist/Taskview/visualizations/config/ConfidenceConfig.js b/dist/Taskview/visualizations/config/ConfidenceConfig.js deleted file mode 100644 index 0eed9c1..0000000 --- a/dist/Taskview/visualizations/config/ConfidenceConfig.js +++ /dev/null @@ -1,5 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -const confidence95 = new Option('95% Confidence Intervals', true); -export const confidenceNone = new Option('Hide Confidence Intervals'); -export const confidenceToggleGroup = new OptionGroup('', 'Confidence Intervals', [confidence95, confidenceNone]); -//# sourceMappingURL=ConfidenceConfig.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/ConfidenceConfig.js.map b/dist/Taskview/visualizations/config/ConfidenceConfig.js.map deleted file mode 100644 index 1bcf323..0000000 --- a/dist/Taskview/visualizations/config/ConfidenceConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConfidenceConfig.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/config/ConfidenceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAG3D,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,0BAA0B,EAAE,IAAI,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,sBAAsB,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/CountCounfig.d.ts b/dist/Taskview/visualizations/config/CountCounfig.d.ts deleted file mode 100644 index 9503797..0000000 --- a/dist/Taskview/visualizations/config/CountCounfig.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -export declare const counts: Option; -export declare const countConfig: OptionGroup; diff --git a/dist/Taskview/visualizations/config/CountCounfig.js b/dist/Taskview/visualizations/config/CountCounfig.js deleted file mode 100644 index 8cb5460..0000000 --- a/dist/Taskview/visualizations/config/CountCounfig.js +++ /dev/null @@ -1,5 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -const probability = new Option('Estimated Probability', true); -export const counts = new Option('Smoothed Counts'); -export const countConfig = new OptionGroup('', 'Density Estimation', [probability, counts]); -//# sourceMappingURL=CountCounfig.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/CountCounfig.js.map b/dist/Taskview/visualizations/config/CountCounfig.js.map deleted file mode 100644 index 22c87d6..0000000 --- a/dist/Taskview/visualizations/config/CountCounfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CountCounfig.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/config/CountCounfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAG3D,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/GroupConfig.d.ts b/dist/Taskview/visualizations/config/GroupConfig.d.ts deleted file mode 100644 index 7bffc10..0000000 --- a/dist/Taskview/visualizations/config/GroupConfig.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { OptionGroup, VisConfig } from './VisConfig'; -export declare const groupByConfig: OptionGroup; -export declare const groupConfig: VisConfig; diff --git a/dist/Taskview/visualizations/config/GroupConfig.js b/dist/Taskview/visualizations/config/GroupConfig.js deleted file mode 100644 index ef8cf40..0000000 --- a/dist/Taskview/visualizations/config/GroupConfig.js +++ /dev/null @@ -1,11 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -const groupByCategory = new Option('Same Category', true); -const groupByCohort = new Option('Same Cohort'); -// Group = Facet -export const groupByConfig = new OptionGroup('', 'Group Bars of', [groupByCohort, groupByCategory]); -export const groupConfig = { - icon: '', - label: 'Group', - groups: [groupByConfig] -}; -//# sourceMappingURL=GroupConfig.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/GroupConfig.js.map b/dist/Taskview/visualizations/config/GroupConfig.js.map deleted file mode 100644 index b0015ab..0000000 --- a/dist/Taskview/visualizations/config/GroupConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GroupConfig.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/config/GroupConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAG3D,MAAM,eAAe,GAAG,IAAI,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;AAC1D,MAAM,aAAa,GAAG,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;AAEhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,eAAe,EAAE,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,8CAA8C;IACpD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,CAAC,aAAa,CAAC;CACxB,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/ScaleConfig.d.ts b/dist/Taskview/visualizations/config/ScaleConfig.d.ts deleted file mode 100644 index 22c43b8..0000000 --- a/dist/Taskview/visualizations/config/ScaleConfig.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { OptionGroup, VisConfig } from './VisConfig'; -export declare const scaleConfig: OptionGroup; -export declare const dataConfig: OptionGroup; -export declare const dataScaleConfig: VisConfig; diff --git a/dist/Taskview/visualizations/config/ScaleConfig.js b/dist/Taskview/visualizations/config/ScaleConfig.js deleted file mode 100644 index d671e49..0000000 --- a/dist/Taskview/visualizations/config/ScaleConfig.js +++ /dev/null @@ -1,13 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -const linearScale = new Option('Linear', true); -const logScale = new Option('Logarithmic', false); -export const scaleConfig = new OptionGroup('', 'Scale', [linearScale, logScale]); -const absoluteData = new Option('Absolute Counts'); -const relativeData = new Option('Relative Frequency', true); -export const dataConfig = new OptionGroup('', 'Show Data as', [absoluteData, relativeData]); -export const dataScaleConfig = { - icon: '', - label: 'Data', - groups: [scaleConfig, dataConfig] -}; -//# sourceMappingURL=ScaleConfig.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/ScaleConfig.js.map b/dist/Taskview/visualizations/config/ScaleConfig.js.map deleted file mode 100644 index 0042d4a..0000000 --- a/dist/Taskview/visualizations/config/ScaleConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScaleConfig.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/config/ScaleConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAG3D,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC/C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,mCAAmC,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElH,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACnD,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,cAAc,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;AAE5F,MAAM,CAAC,MAAM,eAAe,GAAc;IACxC,IAAI,EAAE,mCAAmC;IACzC,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;CAClC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/SortConfig.d.ts b/dist/Taskview/visualizations/config/SortConfig.d.ts deleted file mode 100644 index 0098d07..0000000 --- a/dist/Taskview/visualizations/config/SortConfig.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { OptionGroup, VisConfig } from './VisConfig'; -export declare const sortOrderConfig: OptionGroup; -export declare const sortByConfig: OptionGroup; -export declare const sortConfig: VisConfig; diff --git a/dist/Taskview/visualizations/config/SortConfig.js b/dist/Taskview/visualizations/config/SortConfig.js deleted file mode 100644 index bce13eb..0000000 --- a/dist/Taskview/visualizations/config/SortConfig.js +++ /dev/null @@ -1,15 +0,0 @@ -import { OptionGroup, Option } from './VisConfig'; -const sortRowsAscending = new Option('Ascending'); -const sortRowsDescending = new Option('Descending', true); -export const sortOrderConfig = new OptionGroup('', 'Sort Order', [sortRowsAscending, sortRowsDescending]); -const sortRowsByName = new Option('Name'); -const sortRowsByAverage = new Option('Average'); -const sortRowsByMaxium = new Option('Maximum', true); -const sortRowsByVariance = new Option('Spread'); -export const sortByConfig = new OptionGroup('', 'Sort Categories by', [sortRowsByName, sortRowsByAverage, sortRowsByMaxium, sortRowsByVariance]); -export const sortConfig = { - icon: '', - label: 'Sort', - groups: [sortOrderConfig, sortByConfig] -}; -//# sourceMappingURL=SortConfig.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/SortConfig.js.map b/dist/Taskview/visualizations/config/SortConfig.js.map deleted file mode 100644 index 2c97c83..0000000 --- a/dist/Taskview/visualizations/config/SortConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SortConfig.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/config/SortConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAG3D,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC;AAClD,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,WAAW,CAAC,6BAA6B,EAAE,YAAY,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAErI,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;AAChD,MAAM,gBAAgB,GAAG,IAAI,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AACrD,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,8BAA8B,EAAE,oBAAoB,EAAE,CAAC,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAE7K,MAAM,CAAC,MAAM,UAAU,GAAc;IACnC,IAAI,EAAE,6CAA6C;IACnD,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;CACxC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/VisConfig.d.ts b/dist/Taskview/visualizations/config/VisConfig.d.ts deleted file mode 100644 index 8710953..0000000 --- a/dist/Taskview/visualizations/config/VisConfig.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * A Single option - */ -export declare class Option { - label: string; - selected: boolean; - group: OptionGroup; - constructor(label: string, selected?: boolean); -} -/** - * An option group. Only one option per group may be selected - */ -export declare class OptionGroup { - icon: string; - label: string; - options: Option[]; - /** - * @param icon font awesome icon class - * @param label - * @param options - */ - constructor(icon: string, label: string, options: Option[]); - select(option: Option): void; - getSelected(): Option; -} -/** - * VisConfig will be shown in header, can contain multiple groups - */ -export declare class VisConfig { - icon: string; - label: string; - groups: OptionGroup[]; - /** - * @param icon html code for the icon, e.g., for font-awesome: - * @param label - * @param groups - */ - constructor(icon: string, label: string, groups: OptionGroup[]); -} diff --git a/dist/Taskview/visualizations/config/VisConfig.js b/dist/Taskview/visualizations/config/VisConfig.js deleted file mode 100644 index 15166ea..0000000 --- a/dist/Taskview/visualizations/config/VisConfig.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * A Single option - */ -export class Option { - constructor(label, selected = false) { - this.label = label; - this.selected = selected; - } -} -/** - * An option group. Only one option per group may be selected - */ -export class OptionGroup { - /** - * @param icon font awesome icon class - * @param label - * @param options - */ - constructor(icon, label, options) { - this.icon = icon; - this.label = label; - this.options = options; - for (const o of options) { - o.group = this; - } - } - select(option) { - for (const o of this.options) { - o.selected = false; - } - option.selected = true; - } - getSelected() { - return this.options.find((o) => o.selected); - } -} -/** - * VisConfig will be shown in header, can contain multiple groups - */ -export class VisConfig { - /** - * @param icon html code for the icon, e.g., for font-awesome: - * @param label - * @param groups - */ - constructor(icon, label, groups) { - this.icon = icon; - this.label = label; - this.groups = groups; - } -} -//# sourceMappingURL=VisConfig.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/config/VisConfig.js.map b/dist/Taskview/visualizations/config/VisConfig.js.map deleted file mode 100644 index 2bdd7ed..0000000 --- a/dist/Taskview/visualizations/config/VisConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VisConfig.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/config/VisConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,MAAM;IAGjB,YAAmB,KAAa,EAAS,WAAoB,KAAK;QAA/C,UAAK,GAAL,KAAK,CAAQ;QAAS,aAAQ,GAAR,QAAQ,CAAiB;IAAI,CAAC;CACxE;AAED;;GAEG;AACH,MAAM,OAAO,WAAW;IACtB;;;;OAIG;IACH,YAAmB,IAAY,EAAS,KAAa,EAAS,OAAiB;QAA5D,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAU;QAC7E,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;YACvB,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC;SAChB;IACH,CAAC;IAEM,MAAM,CAAC,MAAc;QAC1B,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE;YAC5B,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAC;SACpB;QAED,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAEM,WAAW;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,SAAS;IACpB;;;;OAIG;IACH,YAAmB,IAAY,EAAS,KAAa,EAAS,MAAqB;QAAhE,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAQ;QAAS,WAAM,GAAN,MAAM,CAAe;IAAI,CAAC;CACzF"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/constants.d.ts b/dist/Taskview/visualizations/constants.d.ts deleted file mode 100644 index 6b91131..0000000 --- a/dist/Taskview/visualizations/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const DATA_LABEL = "Cohort"; -export declare const BRUSH_DATA_NAME = "BRUSH_DATA"; -export declare const BRUSH_DATA_START = "brush_start"; -export declare const BRUSH_DATA_END = "brush_end"; diff --git a/dist/Taskview/visualizations/constants.js b/dist/Taskview/visualizations/constants.js deleted file mode 100644 index 3b6208f..0000000 --- a/dist/Taskview/visualizations/constants.js +++ /dev/null @@ -1,5 +0,0 @@ -export const DATA_LABEL = 'Cohort'; -export const BRUSH_DATA_NAME = 'BRUSH_DATA'; -export const BRUSH_DATA_START = 'brush_start'; -export const BRUSH_DATA_END = 'brush_end'; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/constants.js.map b/dist/Taskview/visualizations/constants.js.map deleted file mode 100644 index 9ef9c7f..0000000 --- a/dist/Taskview/visualizations/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/constants.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AACnC,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAC9C,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.d.ts b/dist/Taskview/visualizations/dimreduce/OneHotEncoder.d.ts deleted file mode 100644 index 4ae1d21..0000000 --- a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -export declare class OneHotEncoder { - /** - * - * @param data the data to encode - * @param dataKeys optional subset of the attributes present in the data to not encode labels - */ - encode(data: Array, attributes: Array): any[]; - categoryIndices: { - [attribute: string]: { - [category: string]: number; - }; - }; - /** - * - * @param attribute numbers start at 0 for every attribute - * @param category first encountered category will have index 0, second category 1 and so on. - */ - getNumberForAttributeCategory(attribute: string, category: string): number; - getNumberOfAttributeCategories(attribute: string): number; - oneHotArray(length: number, hotIndex: number): any[]; -} -/** - * copy of Attribute.ts (an import would break the worker) - */ -interface IAttribute { - dataKey: string; - type: AttributeType; -} -declare type AttributeType = 'categorical' | 'number' | 'string'; -export {}; diff --git a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.js b/dist/Taskview/visualizations/dimreduce/OneHotEncoder.js deleted file mode 100644 index 2c1c5c4..0000000 --- a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.js +++ /dev/null @@ -1,72 +0,0 @@ -import * as logger from 'loglevel'; -logger.setDefaultLevel(logger.levels.INFO); -// 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 -export class OneHotEncoder { - constructor() { - this.categoryIndices = {}; - } - /** - * - * @param data the data to encode - * @param dataKeys optional subset of the attributes present in the data to not encode labels - */ - encode(data, attributes) { - var _a; - const hotData = []; - if ((_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0 > 0) { - // gather categories of the categorical attributes - for (const attr of attributes) { - for (const item of data) { - if (attr.type === 'categorical') { - this.getNumberForAttributeCategory(attr.dataKey, item[attr.dataKey]); - } - } - } - // loop over ... - for (const item of data) { // ...all items and ... - let hotItem = []; - for (const attr of attributes) { // ... all attributes - if (attr.type === 'categorical') { - //there is work to do... - hotItem = hotItem.concat(this.oneHotArray(this.getNumberOfAttributeCategories(attr.dataKey), this.getNumberForAttributeCategory(attr.dataKey, item[attr.dataKey]))); - } - else if (attr.type === 'number') { - hotItem.push(item[attr.dataKey]); //just copy the numeric value - } - else { - logger.warn(`skipping ${attr.type} value of ${attr.dataKey}`); - } - } - hotData.push(hotItem); - } - } - return hotData; - } - /** - * - * @param attribute numbers start at 0 for every attribute - * @param category first encountered category will have index 0, second category 1 and so on. - */ - getNumberForAttributeCategory(attribute, category) { - var _a; - if (!this.categoryIndices[attribute]) { - this.categoryIndices[attribute] = { [category]: 0 }; // init attribute directly with the given category - } - if (((_a = this.categoryIndices[attribute][category]) !== null && _a !== void 0 ? _a : -1) < 0) { - this.categoryIndices[attribute][category] = Object.keys(this.categoryIndices[attribute]).length; //will be zero if there are non, 1 if there is alrady an entry and so on - } - return this.categoryIndices[attribute][category]; - } - getNumberOfAttributeCategories(attribute) { - var _a; - return Object.keys((_a = this.categoryIndices[attribute]) !== null && _a !== void 0 ? _a : {}).length; - } - oneHotArray(length, hotIndex) { - const hotArray = new Array(length).fill(0); - if (hotIndex >= 0 && hotIndex < length) { - hotArray[hotIndex] = 1; - } - return hotArray; - } -} -//# sourceMappingURL=OneHotEncoder.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.js.map b/dist/Taskview/visualizations/dimreduce/OneHotEncoder.js.map deleted file mode 100644 index c63d249..0000000 --- a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OneHotEncoder.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/dimreduce/OneHotEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,M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AAC;IAClB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.d.ts b/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.js b/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.js deleted file mode 100644 index 75bc253..0000000 --- a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.js +++ /dev/null @@ -1,4 +0,0 @@ -import * as Comlink from 'comlink'; -import { OneHotEncoder } from './OneHotEncoder'; -Comlink.expose(OneHotEncoder); -//# sourceMappingURL=OneHotEncoder.worker.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.js.map b/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.js.map deleted file mode 100644 index 9872d1f..0000000 --- a/dist/Taskview/visualizations/dimreduce/OneHotEncoder.worker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OneHotEncoder.worker.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/dimreduce/OneHotEncoder.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/dimreduce/tsne.worker.d.ts b/dist/Taskview/visualizations/dimreduce/tsne.worker.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/Taskview/visualizations/dimreduce/tsne.worker.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/Taskview/visualizations/dimreduce/tsne.worker.js b/dist/Taskview/visualizations/dimreduce/tsne.worker.js deleted file mode 100644 index 056c3be..0000000 --- a/dist/Taskview/visualizations/dimreduce/tsne.worker.js +++ /dev/null @@ -1,4 +0,0 @@ -import * as Comlink from 'comlink'; -import { TSNE } from '@keckelt/tsne'; -Comlink.expose(TSNE); -//# sourceMappingURL=tsne.worker.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/dimreduce/tsne.worker.js.map b/dist/Taskview/visualizations/dimreduce/tsne.worker.js.map deleted file mode 100644 index ad6ea81..0000000 --- a/dist/Taskview/visualizations/dimreduce/tsne.worker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tsne.worker.js","sourceRoot":"","sources":["../../../../src/Taskview/visualizations/dimreduce/tsne.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/Taskview/visualizations/index.d.ts b/dist/Taskview/visualizations/index.d.ts deleted file mode 100644 index 09560a6..0000000 --- a/dist/Taskview/visualizations/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from './AreaChart'; -export * from './AVegaVisualization'; -export * from './constants'; -export * from './DensityPlot'; -export * from './GroupedHistogram'; -export * from './Histogram'; -export * from './IVisualization'; -export * from './MultiAttributeVisualization'; -export * from './Scatterplot'; diff --git a/dist/Taskview/visualizations/index.js b/dist/Taskview/visualizations/index.js deleted file mode 100644 index 4cf3554..0000000 --- a/dist/Taskview/visualizations/index.js +++ /dev/null @@ -1,10 +0,0 @@ -export * from './AreaChart'; -export * from './AVegaVisualization'; -export * from './constants'; -export * from './DensityPlot'; -export * from './GroupedHistogram'; -export * from './Histogram'; -export * from './IVisualization'; -export * from './MultiAttributeVisualization'; -export * from './Scatterplot'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/Taskview/visualizations/index.js.map b/dist/Taskview/visualizations/index.js.map deleted file mode 100644 index 4611bba..0000000 --- a/dist/Taskview/visualizations/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Taskview/visualizations/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/Tooltip.d.ts b/dist/Tooltip.d.ts deleted file mode 100644 index c89f8fa..0000000 --- a/dist/Tooltip.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function createSearchBarTooltip(elemWithTooltip: HTMLDivElement, cssClassName: string, database: string, view: string, positionStart?: boolean): void; diff --git a/dist/Tooltip.js b/dist/Tooltip.js deleted file mode 100644 index 35a3af5..0000000 --- a/dist/Tooltip.js +++ /dev/null @@ -1,59 +0,0 @@ -import tippy from 'tippy.js'; -import { taskview } from './cohortview'; -import { toAttribute } from './data/Attribute'; -import { SearchBar } from './Taskview/SearchBar'; -export function createSearchBarTooltip(elemWithTooltip, cssClassName, database, view, positionStart = true) { - // start of tooltip content - const divAddAttr = document.createElement('div'); - divAddAttr.classList.add('tooltip-serachbar'); - const divText = document.createElement('div'); - divText.innerHTML = 'Add attribute columns to the input and output sides:'; - divText.classList.add('tooltip-txt'); - divAddAttr.appendChild(divText); - const divSearchBar = document.createElement('div'); - const searchBar = new SearchBar(divSearchBar, database, view, cssClassName); - divAddAttr.appendChild(divSearchBar); - const divControls = document.createElement('div'); - const divOK = document.createElement('div'); - divOK.classList.add('okay', 'btn', 'btn-coral', 'tooltip-btn'); - divOK.innerHTML = 'Okay'; - divOK.addEventListener('click', () => { - // get options from search bar - const options = searchBar ? searchBar.getSelectedOptions() : []; - // convert options to attributes - const attributes = options.map((opt) => toAttribute(opt, database, view)); - // add attributes to taskview - taskview.addMultipleAttributeColumns(attributes, true, true); - // remove options and close tooltip - elemWithTooltip.click(); - }); - divControls.classList.add('tooltip-controls'); - const divCancel = document.createElement('div'); - divCancel.classList.add('cancel', 'btn', 'btn-coral', 'tooltip-btn'); - divCancel.innerHTML = 'Cancel'; - divCancel.addEventListener('click', () => { - // remove options and close tooltip - elemWithTooltip.click(); - }); - divControls.appendChild(divOK); - divControls.appendChild(divCancel); - divAddAttr.appendChild(divControls); - elemWithTooltip.addEventListener('click', () => { - searchBar.removeAllSelectedOptions(); // remove all selected options form the search bar - elemWithTooltip.classList.toggle('active'); - }); - // add the tippy tool tip - tippy(elemWithTooltip, { - content: divAddAttr, - allowHTML: true, - interactive: true, - placement: positionStart ? 'top-start' : 'top-end', - appendTo: () => document.body, - trigger: 'click', - hideOnClick: 'toggle', - arrow: true, - zIndex: 9000, - maxWidth: 'none', // default max. width is 350px - }); -} -//# sourceMappingURL=Tooltip.js.map \ No newline at end of file diff --git a/dist/Tooltip.js.map b/dist/Tooltip.js.map deleted file mode 100644 index 2648c93..0000000 --- a/dist/Tooltip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../src/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAE/C,MAAM,UAAU,sBAAsB,CAAC,eAA+B,EAAE,YAAoB,EAAE,QAAgB,EAAE,IAAY,EAAE,gBAAyB,IAAI;IACzJ,2BAA2B;IAC3B,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACjD,UAAU,CAAC,SAAS,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100644 index 3d91901..0000000 --- a/dist/app.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { ATDPApplication, CLUEGraphManager, IObjectRef, ITDPOptions, ProvenanceGraph } from 'tdp_core'; -import { Cohort } from './Cohort'; -import { IElementProvJSON, IElementProvJSONCohort } from './CohortInterfaces'; -import { CohortOverview } from './Overview'; -import Taskview from './Taskview/Taskview'; -import { CohortSelectionEvent, ConfirmTaskEvent } from './utilCustomEvents'; -import { IEntitySourceConfig } from './utilIdTypes'; -/** - * The Cohort app that does the acutal stuff. - */ -export declare class CohortApp { - readonly graph: ProvenanceGraph; - readonly graphManager: CLUEGraphManager; - readonly options: ITDPOptions; - private readonly $node; - private $overview; - private $detail; - private restartSession; - readonly name: string; - private dataset; - private _cohortOverview; - private _taskview; - private rootCohort; - private datasetEventID; - private datasetTip; - chtCounter: number; - /** - * IObjectRef to this CohortApp instance - * @type {IObjectRef} - */ - readonly ref: IObjectRef; - constructor(graph: ProvenanceGraph, graphManager: CLUEGraphManager, parent: HTMLElement, options: ITDPOptions); - /** - * Initialize the view and return a promise - * that is resolved as soon the view is completely initializqed. - * @returns {Promise} - */ - init(): Promise; - firstOutput: boolean; - handleConfirmTask(ev: ConfirmTaskEvent): Promise; - /** - * Load and initialize all necessary views - * @returns {Promise} - */ - private build; - private builDataSelector; - handleDatasetClick(newDataset: any): Promise; - getDatabases(): Promise>; - defineIdTypes(databases: Array): Array; - private _getOldCohortOverviewElements; - getAppOverview(): CohortOverview; - private _createRootCohort; - /** - * loads the needed data and creates the graph - * @param database name of the database - * @param view name of the view - */ - setDataset(dataset: IDatasetDesc): Promise; - private _showChangeLayoutOptions; - private _addSplitScreenDraggerFunctionality; - private _createScreenControlBtn; - setAppGridLayout(type: 'top' | 'split' | 'bot'): void; -} -/** - * The app for this website, embeds our Cohort App - */ -export declare class App extends ATDPApplication { - constructor(name: string, loginDialog: string, showCookieDisclaimer?: boolean); - protected createApp(graph: ProvenanceGraph, manager: CLUEGraphManager, main: HTMLElement): CohortApp | PromiseLike; - private replaceHelpIcon; - protected initSessionImpl(app: CohortApp): void; -} -export declare class CohortSelectionListener { - private eventTarget; - private app; - private static instance; - taskview: Taskview; - selection: Cohort[]; - firstCohort: boolean; - static get(): CohortSelectionListener; - static init(eventTarget: Node, app: CohortApp): void; - static reset(): void; - private constructor(); - handleSelectionEvent(ev: CohortSelectionEvent): void; -} -export interface IPanelDesc { - id: string; - description: string; - species: string; -} -export interface IDatasetDesc { - source: IEntitySourceConfig; - panel?: IPanelDesc; - rootCohort: IElementProvJSONCohort; - chtOverviewElements: IElementProvJSON[]; -} diff --git a/dist/app.js b/dist/app.js deleted file mode 100644 index 51c6d75..0000000 --- a/dist/app.js +++ /dev/null @@ -1,554 +0,0 @@ -import { select } from 'd3v7'; -import SplitGrid from 'split-grid'; -import { AppContext, ATDPApplication, NotificationHandler, ObjectRefUtils, RestBaseUtils } from 'tdp_core'; -import { cellline, tissue } from 'tdp_publicdb'; -import { createCohort, createCohortFromDB } from './Cohort'; -import { cohortOverview, createCohortOverview, destroyOld, loadViewDescription, taskview } from './cohortview'; -import { PanelScoreAttribute } from './data/Attribute'; -import { OnboardingManager } from './OnboardingManager'; -import { setDatasetAction } from './Provenance/General'; -import { getDBCohortData } from './rest'; -import deleteModal from './templates/DeleteModal.html'; -import welcomeHtml from './templates/Welcome.html'; // webpack imports html to variable -import { getAnimatedLoadingText, handleDataLoadError, log, removeFromArray } from './util'; -import { CohortSelectionEvent, COHORT_SELECTION_EVENT_TYPE, CONFIRM_TASK_EVENT_TYPE, PreviewConfirmEvent } from './utilCustomEvents'; -import { idCellline, idCovid19, idStudent, idTissue } from './utilIdTypes'; -import { niceName } from './utilLabels'; -/** - * The Cohort app that does the acutal stuff. - */ -export class CohortApp { - constructor(graph, graphManager, parent, options) { - this.graph = graph; - this.graphManager = graphManager; - this.options = options; - this.dataset = null; - this._cohortOverview = null; - this._taskview = null; - this.rootCohort = null; - this.datasetEventID = 0; - this.chtCounter = 1; - this.firstOutput = true; - this.name = options.name; - this.$node = select(parent).append('div').classed('cohort_app', true); - this.ref = graph.findOrAddObject(this, this.name, ObjectRefUtils.category.visual); // cat.visual = it is a visual operation - } - /** - * Initialize the view and return a promise - * that is resolved as soon the view is completely initializqed. - * @returns {Promise} - */ - async init() { - log.debug('Initialize application'); - this.$node.html('

Loading, please wait...

'); - OnboardingManager.init(); - CohortSelectionListener.init(this.$node.node(), this); - this.$node.node().addEventListener(CONFIRM_TASK_EVENT_TYPE, (ev) => this.handleConfirmTask(ev)); - return this.build(); - } - async handleConfirmTask(ev) { - const taskParams = ev.detail.params; // task parameters (e.g. column/category to filter) - const taskAttributes = ev.detail.attributes; - for (const task of taskParams) { - for (const cht of task.outputCohorts) { - log.debug('app sets counter to', 1 + this.chtCounter); - cht.setLabels(`#${this.chtCounter++} ` + cht.labelOne, cht.labelTwo); - } - } - // confirm the current preview as the result of the task - this.$node.node().dispatchEvent(new PreviewConfirmEvent(taskParams, taskAttributes)); - // get the new added task (the ones confirmed from the preview) - const tasks = cohortOverview.getLastAddedTasks(); - taskview.clearOutput(); //clear taskview output - //set output as new input - let replace = true; - for (const task of tasks) { - for (const cht of task.children) { - this.$node.node().dispatchEvent(new CohortSelectionEvent(cht, replace)); - replace = false; //replace old selection with first cohort, then add the others - if (this.firstOutput) { - this.firstOutput = false; - OnboardingManager.addTip('firstOutputCohort', cht.representation.getRepresentation()); - } - } - } - } - /** - * Load and initialize all necessary views - * @returns {Promise} - */ - async build() { - log.debug('Build app html structure'); - this.$node.selectAll('*').remove(); - // reconfigure app link to open the homepage in a new tab - // do this first, in case data retrieval fails - const appLink = document.querySelector('*[data-header="appLink"]'); - appLink.title = 'Open Coral start page in a new tab'; - appLink.href = '/'; // domain root - appLink.target = '_blank'; - appLink.rel = 'noopener noreferrer'; - appLink.onclick = null; // remove default click listener from `ATDPApplication.createHeader()` - const controlBar = this.$node.append('div').attr('class', 'control-bar'); - controlBar.append('span').classed('control-bar-label', true).text('Datasets:'); - const btnGrp = controlBar.append('div').attr('id', 'db_btnGrp').attr('style', 'display: flex;gap: 0.5em;'); - const loading = btnGrp.append('div').html(getAnimatedLoadingText('available datasets', false).outerHTML); - // new div for the css grid overview - this.$overview = this.$node.append('div').attr('id', 'chtOverview').node(); - this.$overview.insertAdjacentHTML('beforeend', welcomeHtml); - // add delete modal to document body - document.body.insertAdjacentHTML('beforeend', deleteModal); - try { - this._addSplitScreenDraggerFunctionality(this.$node); // add the dragger and the functionality to the app - this.$detail = this.$node.append('div').node(); - this.setAppGridLayout('top'); // set grid layout of app - // get all databses - const dataBtns = await this.builDataSelector(btnGrp); - loading.remove(); - // btnGrp.html(dataBtns.outerHTML); - this.datasetTip = OnboardingManager.addTip('dataset', btnGrp.node(), true); - } - catch { - NotificationHandler.pushNotification('error', 'Loading datasets failed'); - loading.html(` - - Loading datasets failed. Please try to reload or ${this.options.clientConfig.contact.label}. - `); - } - return Promise.resolve(this); - } - async builDataSelector(btnGrp) { - const databases = await this.getDatabases(); - // find databases with idtypes (i.e. with data we can use in Coral) - const dataSources = this.defineIdTypes(databases); - // check if there are also predefined subsets of the data (panels/predefiend sets) - const dataSourcesAndPanels = await Promise.all(dataSources.map(async (d) => ({ - source: d, - panels: (d.idType === cellline.idType || d.idType === tissue.idType) ? await RestBaseUtils.getTDPData(d.dbConnectorName, `${d.base}_panel`) : [] - // check for idType, because for other data sources currently no panels exist, e.g. covid19 - // TODO: check if there are sets stored by the user (namedsets (private/public)) - // * const namedSets = await RestStorageUtils.listNamedSets(); - // * const namedSetOptions = await RestStorageUtils.listNamedSetsAsOptions(); - }))); - const datasetGroup = btnGrp.selectAll('div.btn-group').data(dataSourcesAndPanels) //create a btngroup for each data source - .enter().append('div').classed('btn-group btn-group-sm', true); - datasetGroup.append('button') - .attr('type', 'button') - .attr('class', 'db_btn btn btn-coral') - .attr('data-db', (d) => d.source.dbConnectorName) - .attr('data-dbview', (d) => d.source.viewName) - .html((d) => { return d.source.idType.toUpperCase(); }) - .on('click', async (event, d) => { - var _a, _b; - const newDataset = ((_b = (_a = this.dataset) === null || _a === void 0 ? void 0 : _a.source) === null || _b === void 0 ? void 0 : _b.idType) === d.source.idType ? //same as current? - { source: null, rootCohort: null, chtOverviewElements: null } : // deselect - { source: d.source, rootCohort: null, chtOverviewElements: null }; // select - this.handleDatasetClick(newDataset); - }); - datasetGroup.append('button') - .attr('type', 'button') - .attr('class', 'db_btn btn btn-coral dropdown-toggle') - .attr('data-bs-toggle', 'dropdown') - .append('span').classed('caret', true); - const dropdown = datasetGroup.append('ul').classed('dropdown-menu', true); - dropdown.append('li').classed('dropdown-item', true).append('a').text('All') - .on('click', async (event, d) => { - const newDataset = { source: d.source, rootCohort: null, chtOverviewElements: null }; - this.handleDatasetClick(newDataset); - }); - dropdown.append('li').attr('role', 'separator').classed('dropdown-divider', true); - dropdown.append('li').classed('dropdown-header', true).text('Predefined Sets'); - const that = this; - dropdown - .selectAll('li.data-panel') - .data((d) => d.panels) - .enter() - .append('li').classed('data-panel', true).classed('dropdown-item', true) - .append('a').text((d) => d.id).attr('title', (d) => d.description) - .on('click', async function (event, d) { - // don't toggle data by checkging what is selected in dropdown - const dataSourcesAndPanels = select(this.parentNode.parentNode).datum(); // a -> parent = li -> parent = dropdown = ul - const newDataset = { source: dataSourcesAndPanels.source, panel: d, rootCohort: null, chtOverviewElements: null }; - that.handleDatasetClick.bind(that)(newDataset); - }); - this.restartSession = btnGrp.append('button') - .attr('type', 'button') - .attr('class', 'btn btn-coral btn-sm') - .html(` New Session`) - .attr('style', 'margin-left: 2.5rem;') - .attr('hidden', true) - .on('click', async () => { - this.graphManager.newGraph(); - }); - } - async handleDatasetClick(newDataset) { - // clean up/destory the old parts of the application - destroyOld(); // remove old overview -> otherwise loading information will be added next to the overview - if (newDataset.source) { // only add loading animation if new dataset is not null - const loading = select(this.$overview).append('div').html(getAnimatedLoadingText('initial cohort').outerHTML).attr('class', 'loading-inital-animation'); - } - else { - this.datasetTip.show(); - } - const rootJSON = await this._createRootCohort(newDataset); - newDataset.rootCohort = rootJSON; - // perpare oldDataset for proveance - if (this.dataset) { - this.dataset.chtOverviewElements = this._getOldCohortOverviewElements(); - } - this.graph.push(setDatasetAction(this.ref, newDataset, this.dataset)); - } - async getDatabases() { - let databases; - // get all databases - try { - databases = await AppContext.getInstance().getAPIJSON('/tdp/db/'); - log.debug('Available databases: ', databases); - } - catch (e) { - handleDataLoadError(e); - } - return [].concat(databases); - } - defineIdTypes(databases) { - const idTypes = []; - for (const db of databases) { - if (db.name === 'publicdb') { - idTypes.push(idTissue); - idTypes.push(idCellline); - } - if (db.name === 'studentdb') { - idTypes.push(idStudent); - } - if (db.name === 'covid19db') { - idTypes.push(idCovid19); - } - } - return idTypes; - } - _getOldCohortOverviewElements() { - if (this._cohortOverview === null) { - return null; - } - else { - return this._cohortOverview.getElementsAsJSON(); - } - } - getAppOverview() { - return this._cohortOverview; - } - async _createRootCohort(dataset) { - if (dataset.source === null) { - this.rootCohort = null; - return null; - } - else { - const idTypeConfig = dataset.source; - const panel = dataset.panel; - const viewDescription = await loadViewDescription(idTypeConfig.dbConnectorName, idTypeConfig.viewName); - log.debug('retrievedViewDesctiprion', viewDescription); - const idColumn = viewDescription.columns.find((col) => col.label === 'id') || { column: 'id', label: 'id', type: 'string' }; - // create root cohort - let root = await createCohort(niceName(idTypeConfig.idType), 'All', true, -1, idTypeConfig.dbConnector, idTypeConfig.dbConnectorName, idTypeConfig.schema, idTypeConfig.tableName, idTypeConfig.viewName, idTypeConfig.idType, idColumn, { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }); - if (panel) { - const panelAttr = new PanelScoreAttribute(panel.id, idTypeConfig.viewName, idTypeConfig.dbConnectorName, 'categorical'); - root = await panelAttr.filter(root, { values: ['true'] }); - root.setLabels(idTypeConfig.idType, panel.id); - } - root.isInitial = true; // set cohort as root - // referenceCohort = reference; // save reference cohort - this.rootCohort = root; - const rootAsJSON = root.toProvenanceJSON(); - rootAsJSON.attrAndValues.isRoot = true; - return rootAsJSON; - } - } - /** - * loads the needed data and creates the graph - * @param database name of the database - * @param view name of the view - */ - async setDataset(dataset) { - select('#db_btnGrp').selectAll('button').classed('selected', false); //remove selected class from all buttons - const currEventID = ++this.datasetEventID; // save current EventId that and incerease the gloabl one - log.debug('setDataset parameters: ', dataset); - CohortSelectionListener.reset(); - if (dataset !== null && dataset.source) { - const source = dataset.source; - if (source.dbConnectorName && source.viewName) { - // check if current event is the last called event - if (currEventID === this.datasetEventID) { - this.dataset = dataset; - // get current rootCohorts, doesn't have to be created again - let rootCohort = this.rootCohort; - const datasetRootCohortId = dataset.rootCohort.id; - // create new rootCohort if none is defined or is not matching the current configuration - if (rootCohort === null || rootCohort.id !== datasetRootCohortId) { - const dbCohortInfo = await getDBCohortData({ cohortIds: [Number(datasetRootCohortId)] }); - const jsonCht = dataset.rootCohort; - const provJSON = { - idColumn: jsonCht.attrAndValues.idColumn, - idType: jsonCht.attrAndValues.idType, - values: jsonCht.attrAndValues.values, - view: jsonCht.attrAndValues.view, - database: jsonCht.attrAndValues.database, - selected: jsonCht.attrAndValues.selected, - isRoot: true - }; - rootCohort = createCohortFromDB(dbCohortInfo[0], provJSON); - this.rootCohort = rootCohort; - } - this._showChangeLayoutOptions(true); - this.restartSession.attr('hidden', null); // remove with null (not false) - select('#db_btnGrp').select(`button[data-db="${source.dbConnectorName}"][data-dbview="${source.viewName}"]`).classed('selected', true); //add selected class to current button - const views = await createCohortOverview(this.graph, this.ref, this.$overview, this.$detail, this.dataset.source, rootCohort); - // get loading animation - const loading = select(this.$overview).select('.loading-inital-animation'); - if (loading) { - loading.remove(); // remove loading animation - } - this._cohortOverview = views.cohortOV; - this._taskview = views.taskV; - // get Old elements - if (dataset.chtOverviewElements !== null) { - await this._cohortOverview.generateOverviewProv(dataset.chtOverviewElements); - } - } - } - } - else if (currEventID === this.datasetEventID) { - destroyOld(); - this.dataset = dataset; - this._taskview = null; - this._cohortOverview = null; - this.setAppGridLayout('top'); - this._showChangeLayoutOptions(false); - } - } - // /** - // * get all idTypes from all the databases - // */ - // private async getGenericViews() { - // const genericViews: Array = []; - // // get all databases - // try { - // const databases: Array = await AppContext.getInstance().getAPIJSON('/tdp/db/'); - // log.debug('Available databases: ', databases); - // // get all idtypes via the views - // if (databases.length > 0) { - // for (const db of databases) { - // // get all views for the DB - // const views: Array = await AppContext.getInstance().getAPIJSON('/tdp/db/' + db.name + '/'); - // for (const v of views) { - // // only save the generic views which have an idType - // if (v.type === 'generic' && v.idType) { - // // if (v.idType === 'Tissue' || v.idType === 'Cellline' || v.idType === 'student') { - // v.dbName = db.name; // add databse name to the view - // log.info(`Generic view of db=${db.name}: `, v); - // // the name property is the view id - // genericViews.push(v); - // // } - // } - // } - // } - // } - // log.info('idTypes found: ', genericViews.map((view) => view.idType)); - // } catch (e) { - // handleDataLoadError(e); - // } - // return genericViews; - // } - _showChangeLayoutOptions(show) { - const screenControls = this.$node.select('.control-bar').select('.screen-controls').node(); - screenControls.toggleAttribute('hidden', !show); - } - _addSplitScreenDraggerFunctionality(container) { - // add slider between the two containers - const dragger = container.append('div').attr('id', 'dragger'); - const draggerDots = dragger.append('svg').attr('class', 'dragger-dots'); - draggerDots.append('rect').attr('x', '0').attr('y', '1').attr('height', '3').attr('width', '3'); - draggerDots.append('rect').attr('x', '6').attr('y', '1').attr('height', '3').attr('width', '3'); - draggerDots.append('rect').attr('x', '12').attr('y', '1').attr('height', '3').attr('width', '3'); - // add functionality - SplitGrid({ - rowGutters: [{ - track: 2, - element: document.querySelector('#dragger') - }], - snapOffset: 30, - onDragEnd: () => window.dispatchEvent(new Event('resize')) //update responsive vega charts - }); - // add buttons to switch - const screenControls = container.select('.control-bar').append('div').attr('class', 'screen-controls hidden'); - screenControls.append('span').classed('control-bar-label', true).html('Change Layout:'); - // add overview fullscreen control - const ovBtn = this._createScreenControlBtn('Overview', 'top'); - ovBtn.addEventListener('click', (event) => { - this.setAppGridLayout('top'); - }); - screenControls.node().appendChild(ovBtn); - // add split screen control - const spBtn = this._createScreenControlBtn('Split Screen', 'split'); - screenControls.node().appendChild(spBtn); - spBtn.addEventListener('click', (event) => { - this.setAppGridLayout('split'); - }); - // add action view fullscreen control - const avBtn = this._createScreenControlBtn('Action View', 'bot'); - screenControls.node().appendChild(avBtn); - avBtn.addEventListener('click', (event) => { - this.setAppGridLayout('bot'); - }); - } - _createScreenControlBtn(label, type) { - const divBtn = document.createElement('div'); - divBtn.classList.add('sc-button', 'btn-coral'); - divBtn.title = label; - // icon - const divIcon = document.createElement('div'); - divIcon.classList.add('icon'); - if (type === 'top') { - divIcon.style.borderBottomWidth = '3px'; - } - else if (type === 'bot') { - divIcon.style.borderTopWidth = '3px'; - } - else { - // separator that has 50% of the height - const divIconSeparator = document.createElement('div'); - divIconSeparator.style.height = '50%'; - divIcon.appendChild(divIconSeparator); - } - divBtn.appendChild(divIcon); - return divBtn; - } - setAppGridLayout(type) { - const entityBtnHeight = 'auto'; - const draggerHeight = '7px'; - let gridRowTemplate = `${entityBtnHeight} 1fr ${draggerHeight} 1fr`; - if (type === 'top') { - gridRowTemplate = `${entityBtnHeight} 1fr ${draggerHeight} 0px`; - } - else if (type === 'bot') { - gridRowTemplate = `${entityBtnHeight} 0px ${draggerHeight} 1fr`; - } - else { - const size = document.body.getBoundingClientRect(); - let tvHeightPropertyValue = this.$node.style('--tv-height-vh'); - tvHeightPropertyValue = tvHeightPropertyValue.substring(0, tvHeightPropertyValue.length - 2); - const tvHeight = size.height * Number(tvHeightPropertyValue) / 100; - gridRowTemplate = `${entityBtnHeight} 1fr ${draggerHeight} ${tvHeight}px`; - } - this.$node.style('grid-template-rows', gridRowTemplate); - } -} -/** - * The app for this website, embeds our Cohort App - */ -export class App extends ATDPApplication { - constructor(name, loginDialog, showCookieDisclaimer = true) { - var _a; - super({ - prefix: 'coral', - name, - loginForm: loginDialog, - /** - * Link to help and show help in `Coral at a Glance` page instead - */ - showHelpLink: `${(window.location.href).split('app/')[0] + '#/help'}`, - showCookieDisclaimer, - /** - * Show content in the `Coral at a Glance` page instead - */ - showAboutLink: false, - /** - * Show content in the `Coral at a Glance` page instead - */ - showReportBugLink: false, - clientConfig: { - contact: { - href: 'https://github.com/Caleydo/Coral/issues/', - label: 'report an issue' - } - } - }); - console.log('clientConfig', this.options.clientConfig); - console.log('clientConfig contact', (_a = this.options.clientConfig) === null || _a === void 0 ? void 0 : _a.contact); - } - createApp(graph, manager, main) { - log.debug('Create App'); - this.replaceHelpIcon(); - return new CohortApp(graph, manager, main, this.options).init(); - } - replaceHelpIcon() { - const helpButton = select(this.header.rightMenu).select('li[data-header="helpLink"]'); - helpButton.select('span.fa-stack').remove(); - helpButton.select('a.nav-link').insert('i', ':first-child').attr('class', 'fa fa-question-circle'); - } - initSessionImpl(app) { - log.debug('initSessionImpl. Is Graph empty?', app.graph.isEmpty); - this.jumpToStoredOrLastState(); - } -} -export class CohortSelectionListener { - constructor(eventTarget, app) { - this.eventTarget = eventTarget; - this.app = app; - this.selection = []; - this.firstCohort = true; - eventTarget.addEventListener(COHORT_SELECTION_EVENT_TYPE, (ev) => this.handleSelectionEvent(ev)); //arrow function to keep "this" working in eventhandler - } - static get() { - return CohortSelectionListener.instance; - } - static init(eventTarget, app) { - if (CohortSelectionListener.instance) { - CohortSelectionListener.instance.eventTarget.removeEventListener(COHORT_SELECTION_EVENT_TYPE, CohortSelectionListener.instance.handleSelectionEvent); // remove listener - CohortSelectionListener.instance.selection.forEach((cht) => cht.selected = false); // deselect - delete CohortSelectionListener.instance; // destroy - } - CohortSelectionListener.instance = new CohortSelectionListener(eventTarget, app); - } - static reset() { - if (CohortSelectionListener.instance) { - CohortSelectionListener.instance.selection = []; - CohortSelectionListener.instance.firstCohort = true; - } - } - handleSelectionEvent(ev) { - const clickedCht = ev.detail.cohort; - const replaceSelection = ev.detail.replaceSelection; - if (!clickedCht.representation.getRepresentation().classList.contains('preview')) { - // if true deselect all current selected cohorts - if (replaceSelection) { - const toDeselect = this.selection.splice(0, this.selection.length); //clear array and get a copy with cohorts to deselect - toDeselect.forEach((cht) => cht.selected = false); //deselect all - } - // Update selection array: - if (this.selection.indexOf(clickedCht) > -1) { - //already selected --> remove - removeFromArray(this.selection, clickedCht); - clickedCht.colorTaskView = null; - clickedCht.selected = false; - if (clickedCht.outputCohorts !== undefined) { - delete clickedCht.outputCohorts; - } - log.info('De-Selected "' + clickedCht.label + '"'); - } - else { - if (this.firstCohort) { // this is the first cohort the user selected - this.app.setAppGridLayout('split'); //show bottom - this.firstCohort = false; - } - this.selection.push(clickedCht); - clickedCht.colorTaskView = null; - clickedCht.selected = true; - log.info('Selected "' + clickedCht.label + '"'); - } - // set selection in taskview - this.taskview.setInputCohorts(this.selection); - this.selection.forEach((cht) => cht.selected = true); - this.taskview.clearOutput(); // every selection change clears the output cohorts - } - } -} -//# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/dist/app.js.map b/dist/app.js.map deleted file mode 100644 index 4bf2aed..0000000 --- a/dist/app.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAY,MAAM,MAAM,CAAC;AACvC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,UAAU,EAAE,eAAe,EAA+E,mBAAmB,EAAE,cAAc,EAAmB,aAAa,EAAC,MAAM,UAAU,CAAC;AACvM,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAS,YAAY,EAAE,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAElE,OAAO,EAAC,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAC7G,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC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,CAAC;iBAC1B;gBAED,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAChC,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC;gBAChC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;gBAC3B,GAAG,CAAC,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;aACjD;YAED,6BAA6B;YAC7B,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAE9C,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;YACrD,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,mDAAmD;SACjF;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/assets/coral-hero.png b/dist/assets/coral-hero.png deleted file mode 100644 index a7fc906..0000000 Binary files a/dist/assets/coral-hero.png and /dev/null differ diff --git a/dist/assets/coral-hero.svg b/dist/assets/coral-hero.svg deleted file mode 100644 index b688954..0000000 --- a/dist/assets/coral-hero.svg +++ /dev/null @@ -1,3398 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/dist/assets/coral-waves.svg b/dist/assets/coral-waves.svg deleted file mode 100644 index b9e6102..0000000 --- a/dist/assets/coral-waves.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/dist/assets/favicon.png b/dist/assets/favicon.png deleted file mode 100644 index 9a06ba2..0000000 Binary files a/dist/assets/favicon.png and /dev/null differ diff --git a/dist/assets/favicon.svg b/dist/assets/favicon.svg deleted file mode 100644 index 24aeac7..0000000 --- a/dist/assets/favicon.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - diff --git a/dist/assets/feature_icons/areaChart.png b/dist/assets/feature_icons/areaChart.png deleted file mode 100644 index 1a5959c..0000000 Binary files a/dist/assets/feature_icons/areaChart.png and /dev/null differ diff --git a/dist/assets/feature_icons/barChart.png b/dist/assets/feature_icons/barChart.png deleted file mode 100644 index 3b27e57..0000000 Binary files a/dist/assets/feature_icons/barChart.png and /dev/null differ diff --git a/dist/assets/feature_icons/boxPlot.png b/dist/assets/feature_icons/boxPlot.png deleted file mode 100644 index 325ed86..0000000 Binary files a/dist/assets/feature_icons/boxPlot.png and /dev/null differ diff --git a/dist/assets/feature_icons/densityPlot.png b/dist/assets/feature_icons/densityPlot.png deleted file mode 100644 index bf0ba46..0000000 Binary files a/dist/assets/feature_icons/densityPlot.png and /dev/null differ diff --git a/dist/assets/feature_icons/scatterPlot.png b/dist/assets/feature_icons/scatterPlot.png deleted file mode 100644 index 6277443..0000000 Binary files a/dist/assets/feature_icons/scatterPlot.png and /dev/null differ diff --git a/dist/assets/feature_icons/survivalPlot.png b/dist/assets/feature_icons/survivalPlot.png deleted file mode 100644 index fe4be4f..0000000 Binary files a/dist/assets/feature_icons/survivalPlot.png and /dev/null differ diff --git a/dist/assets/grabber/grabber_x_tiny.svg b/dist/assets/grabber/grabber_x_tiny.svg deleted file mode 100644 index 125eeca..0000000 --- a/dist/assets/grabber/grabber_x_tiny.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/dist/assets/grabber/grabber_y.svg b/dist/assets/grabber/grabber_y.svg deleted file mode 100644 index 3112fcf..0000000 --- a/dist/assets/grabber/grabber_y.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - diff --git a/dist/assets/icons/confidence.svg b/dist/assets/icons/confidence.svg deleted file mode 100644 index 841799b..0000000 --- a/dist/assets/icons/confidence.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - diff --git a/dist/assets/logos/boehringer-ingelheim.jpg b/dist/assets/logos/boehringer-ingelheim.jpg deleted file mode 100644 index 7aba62f..0000000 Binary files a/dist/assets/logos/boehringer-ingelheim.jpg and /dev/null differ diff --git a/dist/assets/logos/boehringer-ingelheim.svg b/dist/assets/logos/boehringer-ingelheim.svg deleted file mode 100644 index aedf323..0000000 --- a/dist/assets/logos/boehringer-ingelheim.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/dist/assets/logos/datavisyn.png b/dist/assets/logos/datavisyn.png deleted file mode 100644 index 26ab3e4..0000000 Binary files a/dist/assets/logos/datavisyn.png and /dev/null differ diff --git a/dist/assets/logos/datavisyn.svg b/dist/assets/logos/datavisyn.svg deleted file mode 100644 index 3448901..0000000 --- a/dist/assets/logos/datavisyn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/logos/jku-vds-lab-logo.png b/dist/assets/logos/jku-vds-lab-logo.png deleted file mode 100644 index 0cb5d99..0000000 Binary files a/dist/assets/logos/jku-vds-lab-logo.png and /dev/null differ diff --git a/dist/assets/logos/johannes-kepler-university-linz.png b/dist/assets/logos/johannes-kepler-university-linz.png deleted file mode 100644 index 088480d..0000000 Binary files a/dist/assets/logos/johannes-kepler-university-linz.png and /dev/null differ diff --git a/dist/assets/logos/johannes-kepler-university-linz.svg b/dist/assets/logos/johannes-kepler-university-linz.svg deleted file mode 100644 index 003cd6e..0000000 --- a/dist/assets/logos/johannes-kepler-university-linz.svg +++ /dev/null @@ -1 +0,0 @@ -JKU_Hauptlogo_en_schwarz_hoch_rgb \ No newline at end of file diff --git a/dist/assets/welcome_tour/030_Workflow_Intro.svg b/dist/assets/welcome_tour/030_Workflow_Intro.svg deleted file mode 100644 index 105d2f2..0000000 --- a/dist/assets/welcome_tour/030_Workflow_Intro.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/100_Overview.svg b/dist/assets/welcome_tour/100_Overview.svg deleted file mode 100644 index 4063764..0000000 --- a/dist/assets/welcome_tour/100_Overview.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/110_Overview.svg b/dist/assets/welcome_tour/110_Overview.svg deleted file mode 100644 index 6b273d2..0000000 --- a/dist/assets/welcome_tour/110_Overview.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/200_Split.svg b/dist/assets/welcome_tour/200_Split.svg deleted file mode 100644 index 267bcab..0000000 --- a/dist/assets/welcome_tour/200_Split.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/210_Split.svg b/dist/assets/welcome_tour/210_Split.svg deleted file mode 100644 index 74f6a72..0000000 --- a/dist/assets/welcome_tour/210_Split.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/300_Filter.svg b/dist/assets/welcome_tour/300_Filter.svg deleted file mode 100644 index 88dabfc..0000000 --- a/dist/assets/welcome_tour/300_Filter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/310_Filter.svg b/dist/assets/welcome_tour/310_Filter.svg deleted file mode 100644 index 05e7f1a..0000000 --- a/dist/assets/welcome_tour/310_Filter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/400_Prevalence.svg b/dist/assets/welcome_tour/400_Prevalence.svg deleted file mode 100644 index 579d4e6..0000000 --- a/dist/assets/welcome_tour/400_Prevalence.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/500_Compare.svg b/dist/assets/welcome_tour/500_Compare.svg deleted file mode 100644 index dc26762..0000000 --- a/dist/assets/welcome_tour/500_Compare.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/510_Compare.svg b/dist/assets/welcome_tour/510_Compare.svg deleted file mode 100644 index 1bc55e2..0000000 --- a/dist/assets/welcome_tour/510_Compare.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/600_Details.svg b/dist/assets/welcome_tour/600_Details.svg deleted file mode 100644 index 8befefd..0000000 --- a/dist/assets/welcome_tour/600_Details.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/welcome_tour/coral-workflow.svg b/dist/assets/welcome_tour/coral-workflow.svg deleted file mode 100644 index d4bb62c..0000000 --- a/dist/assets/welcome_tour/coral-workflow.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/welcome_tour/coral_icon.svg b/dist/assets/welcome_tour/coral_icon.svg deleted file mode 100644 index db64f94..0000000 --- a/dist/assets/welcome_tour/coral_icon.svg +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - diff --git a/dist/base/extensions.d.ts b/dist/base/extensions.d.ts deleted file mode 100644 index cce9ff4..0000000 --- a/dist/base/extensions.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { IStartMenuDatasetSectionDesc } from 'ordino'; -import { IDataSourceConfig } from '../common'; -interface IStartMenuDatasetSectionTab { - /** - * Unique id of the tab - */ - id: string; - /** - * Title of the tab - */ - name: string; - /** - * Font Awesome icon of the tab - * @see https://fontawesome.com/ - * @example `fas fa-male` - */ - icon: string; -} -export interface IPublicDbStartMenuDatasetSectionDesc extends IStartMenuDatasetSectionDesc { - /** - * List of tabs for the dataset section - */ - tabs: IStartMenuDatasetSectionTab[]; - /** - * Data source object - */ - dataSource: IDataSourceConfig; - /** - * Optional CSS class to add to the section - */ - cssClass?: string; - /** - * Optional token separators. Used to split the text pasted on the `DatasetSearchBox` - */ - tokenSeparators?: RegExp; -} -export {}; diff --git a/dist/base/extensions.js b/dist/base/extensions.js deleted file mode 100644 index e5a5ae7..0000000 --- a/dist/base/extensions.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=extensions.js.map \ No newline at end of file diff --git a/dist/base/extensions.js.map b/dist/base/extensions.js.map deleted file mode 100644 index 2e68116..0000000 --- a/dist/base/extensions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../src/base/extensions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/cohortview.d.ts b/dist/cohortview.d.ts deleted file mode 100644 index 97da4c1..0000000 --- a/dist/cohortview.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { IObjectRef, ProvenanceGraph } from 'tdp_core'; -import { IDatabaseViewDesc } from 'tdp_core'; -import { CohortApp } from './app'; -import { Cohort } from './Cohort'; -import { CohortOverview } from './Overview/CohortOverview'; -import Taskview from './Taskview/Taskview'; -import { IEntitySourceConfig } from './utilIdTypes'; -export declare let cohortOverview: CohortOverview; -export declare let taskview: Taskview; -export declare function createCohortOverview(graph: ProvenanceGraph, ref: IObjectRef, container: HTMLDivElement, detailView: HTMLDivElement, idTypeConfig: IEntitySourceConfig, rootCohort: Cohort): Promise<{ - cohortOV: CohortOverview; - taskV: Taskview; -}>; -export declare function getRootCohort(): Cohort; -export declare function destroyOld(): void; -export declare function getCohortOverview(): CohortOverview; -export declare function getTaskview(): Taskview; -export declare function updateOverview(overview: CohortOverview): void; -export declare function loadViewDescription(database: string, view: string): Promise; diff --git a/dist/cohortview.js b/dist/cohortview.js deleted file mode 100644 index 2719637..0000000 --- a/dist/cohortview.js +++ /dev/null @@ -1,65 +0,0 @@ -import { RestBaseUtils } from 'tdp_core'; -import { CohortSelectionListener } from './app'; -import { OnboardingManager } from './OnboardingManager'; -import { CohortOverview } from './Overview/CohortOverview'; -import { RectangleLayout } from './Overview/OverviewLayout'; -import Taskview from './Taskview/Taskview'; -import { handleDataLoadError, log } from './util'; -export let cohortOverview; -export let taskview; -let referenceCohort; -export async function createCohortOverview(graph, ref, container, detailView, idTypeConfig, rootCohort) { - const viewDescription = await loadViewDescription(idTypeConfig.dbConnectorName, idTypeConfig.viewName); - log.debug('retrievedViewDesctiprion', viewDescription); - destroyOld(); - // set reference/root cohort - referenceCohort = rootCohort; // save reference cohort - log.debug('cohortview - root: ', rootCohort); - // create Overview - cohortOverview = new CohortOverview(container, graph, ref, new RectangleLayout(130, 50, 50, 50), rootCohort, viewDescription); - // create Taskview - taskview = new Taskview(detailView, rootCohort); - CohortSelectionListener.get().taskview = taskview; - // draw overview in container element - updateOverview(cohortOverview); - OnboardingManager.addTip('rootCohort', rootCohort.representation.getRepresentation()); - return { - cohortOV: cohortOverview, - taskV: taskview - }; -} -export function getRootCohort() { - return referenceCohort; -} -export function destroyOld() { - if (taskview) { - taskview.destroy(); - taskview = null; - } - if (cohortOverview) { - cohortOverview.destroy(); - cohortOverview = null; - } - referenceCohort = null; -} -export function getCohortOverview() { - return cohortOverview; -} -export function getTaskview() { - return taskview; -} -export function updateOverview(overview) { - overview.generateOverview(); -} -export async function loadViewDescription(database, view) { - log.debug('getTDPDesc for: db:', database, ' |view: ', view); - try { - const descr = await RestBaseUtils.getTDPDesc(database, view); - log.debug('descr= ', descr); - return descr; - } - catch (e) { - handleDataLoadError(e); - } -} -//# sourceMappingURL=cohortview.js.map \ No newline at end of file diff --git a/dist/cohortview.js.map b/dist/cohortview.js.map deleted file mode 100644 index 9c20839..0000000 --- a/dist/cohortview.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cohortview.js","sourceRoot":"","sources":["../src/cohortview.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,aAAa,EAAC,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAY,uBAAuB,EAAC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAC,mBAAmB,EAAE,GAAG,EAAC,MAAM,QAAQ,C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Q,CAAC,OAAO,EAAE,CAAC;QACnB,QAAQ,GAAG,IAAI,CAAC;KACjB;IACD,IAAI,cAAc,EAAE;QAClB,cAAc,CAAC,OAAO,EAAE,CAAC;QACzB,cAAc,GAAG,IAAI,CAAC;KACvB;IACD,eAAe,GAAG,IAAI,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,QAAwB;IACrD,QAAQ,CAAC,gBAAgB,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,QAAgB,EAAE,IAAY;IACtE,GAAG,CAAC,KAAK,CAAC,qBAAqB,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAC7D,IAAI;QACF,MAAM,KAAK,GAAsB,MAAM,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAChF,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC5B,OAAO,KAAK,CAAC;KACd;IAAC,OAAO,CAAC,EAAE;QACV,mBAAmB,CAAC,CAAC,CAAC,CAAC;KACxB;AACH,CAAC"} \ No newline at end of file diff --git a/dist/colors.d.ts b/dist/colors.d.ts deleted file mode 100644 index 7d6a49e..0000000 --- a/dist/colors.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare const colors: { - selectedColor: string; - hoverColor: string; - searchbarHoverColor: string; - barColor: string; - barBackgroundColor: string; - cohortBackgroundColor: string; - lighterTextColor: string; - textColor: string; - backgroundColor: string; - lightBorder: string; - mediumBorder: string; - darkBorder: string; -}; diff --git a/dist/colors.js b/dist/colors.js deleted file mode 100644 index 975387d..0000000 --- a/dist/colors.js +++ /dev/null @@ -1,16 +0,0 @@ -// equals colors in src/scss/abstracts/_variables.scss -export const colors = { - selectedColor: '#FFC340', - hoverColor: '#52C0CC', - searchbarHoverColor: '#D4D4D4', - barColor: '#595959', - barBackgroundColor: '#FFF', - cohortBackgroundColor: '#EFEFEF', - lighterTextColor: '#737373', - textColor: ' #333333', - backgroundColor: '#FFF', - lightBorder: '#d4d4d4', - mediumBorder: '#AAA', - darkBorder: '#333' -}; -//# sourceMappingURL=colors.js.map \ No newline at end of file diff --git a/dist/colors.js.map b/dist/colors.js.map deleted file mode 100644 index 2f2c57f..0000000 --- a/dist/colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"colors.js","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAEA,sDAAsD;AACtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,aAAa,EAAE,SAAS;IACxB,UAAU,EAAE,SAAS;IACrB,mBAAmB,EAAE,SAAS;IAE9B,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,MAAM;IAC1B,qBAAqB,EAAE,SAAS;IAEhC,gBAAgB,EAAE,SAAS;IAC3B,SAAS,EAAE,UAAU;IACrB,eAAe,EAAE,MAAM;IAEvB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,MAAM;IACpB,UAAU,EAAE,MAAM;CACnB,CAAC"} \ No newline at end of file diff --git a/dist/common/GeneUtils.d.ts b/dist/common/GeneUtils.d.ts deleted file mode 100644 index f225b17..0000000 --- a/dist/common/GeneUtils.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { ISelect3Item, IdTextPair } from 'tdp_core'; -import { IDataSourceConfig } from './config'; -import { ICommonDBConfig } from 'tdp_gene'; -interface IDrugData extends IdTextPair { - target?: string; - moa?: string; -} -export declare class GeneUtils { - /** - * Search and autocomplete of the input string for Select3 - * - * @param {string} query An array of gene symbols - * @param {number} page Server-side pagination page number - * @param {number} pageSize Server-side pagination page size - * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. - */ - static searchGene(query: string, page: number, pageSize: number): Promise<{ - more: boolean; - items: Readonly[]; - }>; - /** - * Validation of a query input via paste or filedrop against the database for Select3 - * - * @param {string[]} query An array of gene symbols - * @returns {Promise[]>} Return the validated gene symbols as id-text pairs. - */ - static validateGene(query: string[]): Promise[]>; - /** - * Formatting of genes within Select3 Searchbox. - * - * @param {ISelect3Item} item The single gene id-text pair. - * @param {HTMLElement} node The HTML Element in the DOM. - * @param {"result" | "selection"} mode The search result items within the dropdown or the selected items inside the search input field. - * @param {RegExp} currentSearchQuery The actual search query input. - * @returns {string} The string how the gene is actually rendered. - */ - static formatGene(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp): string; - static search(config: IDataSourceConfig | ICommonDBConfig, query: string, page: number, pageSize: number): Promise<{ - more: boolean; - items: Readonly[]; - }>; - static validate(config: IDataSourceConfig | ICommonDBConfig, query: string[]): Promise[]>; - static format(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp): string; - /** - * Search and autocomplete of the input string for Select3 - * - * @param {string} query An array of gene symbols - * @param {number} page Server-side pagination page number - * @param {number} pageSize Server-side pagination page size - * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. - */ - static searchDrug(query: string, page: number, pageSize: number): Promise<{ - more: boolean; - items: Readonly[]; - }>; - /** - * Formatting of drugs within Select3 Searchbox. - * - * @param {ISelect3Item} item The single drug id-text-target trio. - * @param {HTMLElement} node The HTML Element in the DOM. - * @param {"result" | "selection"} mode The search result items within the dropdown or the selected items inside the search input field. - * @param {RegExp} currentSearchQuery The actual search query input. - * @returns {string} The string how the drug is actually rendered. - */ - static formatDrug(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp): string; - /** - * Validation of a query input via paste or filedrop against the database for Select3 - * - * @param {string[]} query An array of drug drugids - * @returns {Promise[]>} Return the validated drug drugids. - */ - static validateDrug(query: string[]): Promise[]>; - /** - * Search and autocomplete of the input string for Select3 - * - * @param {string} query An array of gene symbols - * @param {number} page Server-side pagination page number - * @param {number} pageSize Server-side pagination page size - * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. - */ - static searchDrugScreen(query: string, page: number, pageSize: number): Promise<{ - more: boolean; - items: Readonly[]; - }>; - /** - * Validation of a query input via paste or filedrop against the database for Select3 - * - * @param {string[]} query An array of drugscreen campaigns - * @returns {Promise[]>} Return the validated drugscreen campaigns. - */ - static validateDrugScreen(query: string[]): Promise[]>; - /** - * Formatting of drugsreen within Select3 Searchbox. - * - * @param {ISelect3Item} item The single id-text-target pair. - * @param {HTMLElement} node The HTML Element in the DOM. - * @param {"result" | "selection"} mode The search result items within the dropdown or the selected items inside the search input field. - * @param {RegExp} currentSearchQuery The actual search query input. - * @returns {string} The string how the drugscreen is actually rendered. - */ - static formatDrugScreen(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp): string; - /** - * Chooses which validation function to use depending on the dataSource provided. - * @param dataSource - * @param query - * @returns {Promise[]>} Return the validated entity as id-text pairs. - */ - static validateGeneric(dataSource: IDataSourceConfig, query: string[]): Promise[]>; -} -export {}; diff --git a/dist/common/GeneUtils.js b/dist/common/GeneUtils.js deleted file mode 100644 index 1e80431..0000000 --- a/dist/common/GeneUtils.js +++ /dev/null @@ -1,185 +0,0 @@ -import { Categories, SpeciesUtils } from 'tdp_gene'; -import { Select3Utils } from 'tdp_core'; -import { gene, drug } from './config'; -import { RestBaseUtils } from 'tdp_core'; -// Gene -export class GeneUtils { - /** - * Search and autocomplete of the input string for Select3 - * - * @param {string} query An array of gene symbols - * @param {number} page Server-side pagination page number - * @param {number} pageSize Server-side pagination page size - * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. - */ - static searchGene(query, page, pageSize) { - return RestBaseUtils.getTDPLookup(gene.db, `${gene.base}_gene_items`, { - column: 'symbol', - species: SpeciesUtils.getSelectedSpecies(), - query, - page, - limit: pageSize - }); - } - /** - * Validation of a query input via paste or filedrop against the database for Select3 - * - * @param {string[]} query An array of gene symbols - * @returns {Promise[]>} Return the validated gene symbols as id-text pairs. - */ - static validateGene(query) { - return RestBaseUtils.getTDPData(gene.db, `${gene.base}_gene_items_verify/filter`, { - column: 'symbol', - species: SpeciesUtils.getSelectedSpecies(), - filter_symbol: query, - }); - } - /** - * Formatting of genes within Select3 Searchbox. - * - * @param {ISelect3Item} item The single gene id-text pair. - * @param {HTMLElement} node The HTML Element in the DOM. - * @param {"result" | "selection"} mode The search result items within the dropdown or the selected items inside the search input field. - * @param {RegExp} currentSearchQuery The actual search query input. - * @returns {string} The string how the gene is actually rendered. - */ - static formatGene(item, node, mode, currentSearchQuery) { - if (mode === 'result') { - //highlight match - return `${item.text.replace(currentSearchQuery, Select3Utils.highlightMatch)} ${item.id}`; - } - return item.text; - } - // Cellline and Tissue Select3 options methods - static search(config, query, page, pageSize) { - return RestBaseUtils.getTDPLookup(config.db, `${config.base}_items`, { - column: config.entityName, - species: SpeciesUtils.getSelectedSpecies(), - query, - page, - limit: pageSize - }); - } - static validate(config, query) { - return RestBaseUtils.getTDPData(config.db, `${config.base}_items_verify/filter`, { - column: config.entityName, - species: SpeciesUtils.getSelectedSpecies(), - [`filter_${config.entityName}`]: query, - }); - } - static format(item, node, mode, currentSearchQuery) { - if (mode === 'result' && currentSearchQuery) { - //highlight match - return `${item.text.replace(currentSearchQuery, Select3Utils.highlightMatch)}`; - } - return item.text; - } - /** - * Search and autocomplete of the input string for Select3 - * - * @param {string} query An array of gene symbols - * @param {number} page Server-side pagination page number - * @param {number} pageSize Server-side pagination page size - * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. - */ - static searchDrug(query, page, pageSize) { - return RestBaseUtils.getTDPLookup(drug.db, `${drug.base}_drug_items`, { - column: 'drugid', - species: SpeciesUtils.getSelectedSpecies(), - query, - page, - limit: pageSize - }); - } - /** - * Formatting of drugs within Select3 Searchbox. - * - * @param {ISelect3Item} item The single drug id-text-target trio. - * @param {HTMLElement} node The HTML Element in the DOM. - * @param {"result" | "selection"} mode The search result items within the dropdown or the selected items inside the search input field. - * @param {RegExp} currentSearchQuery The actual search query input. - * @returns {string} The string how the drug is actually rendered. - */ - static formatDrug(item, node, mode, currentSearchQuery) { - if (mode === 'result') { - //highlight match - return `${item.id.replace(currentSearchQuery, Select3Utils.highlightMatch)}
- MoA: ${item.data.moa ? item.data.moa.replace(currentSearchQuery, Select3Utils.highlightMatch) : item.data.moa}
- Target: ${item.data.target ? item.data.target.replace(currentSearchQuery, Select3Utils.highlightMatch) : item.data.target}`; - } - return item.id; - } - /** - * Validation of a query input via paste or filedrop against the database for Select3 - * - * @param {string[]} query An array of drug drugids - * @returns {Promise[]>} Return the validated drug drugids. - */ - static validateDrug(query) { - return RestBaseUtils.getTDPData(drug.db, `${drug.base}_drug_items_verify/filter`, { - column: 'drugid', - filter_drug: query, - }); - } - /** - * Search and autocomplete of the input string for Select3 - * - * @param {string} query An array of gene symbols - * @param {number} page Server-side pagination page number - * @param {number} pageSize Server-side pagination page size - * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. - */ - static searchDrugScreen(query, page, pageSize) { - const rows = RestBaseUtils.getTDPLookup(drug.db, `drug_screen_items`, { - column: 'campaign', - query, - page, - limit: pageSize - }); - return rows; - } - /** - * Validation of a query input via paste or filedrop against the database for Select3 - * - * @param {string[]} query An array of drugscreen campaigns - * @returns {Promise[]>} Return the validated drugscreen campaigns. - */ - static validateDrugScreen(query) { - return RestBaseUtils.getTDPData(drug.db, `drug_screen_items_verify/filter`, { - column: 'campaign', - filter_drug_screen: query, - }); - } - /** - * Formatting of drugsreen within Select3 Searchbox. - * - * @param {ISelect3Item} item The single id-text-target pair. - * @param {HTMLElement} node The HTML Element in the DOM. - * @param {"result" | "selection"} mode The search result items within the dropdown or the selected items inside the search input field. - * @param {RegExp} currentSearchQuery The actual search query input. - * @returns {string} The string how the drugscreen is actually rendered. - */ - static formatDrugScreen(item, node, mode, currentSearchQuery) { - if (mode === 'result') { - //highlight match - return `${item.id.replace(currentSearchQuery, Select3Utils.highlightMatch)} (${item.text})`; - } - return item.id; - } - /** - * Chooses which validation function to use depending on the dataSource provided. - * @param dataSource - * @param query - * @returns {Promise[]>} Return the validated entity as id-text pairs. - */ - static validateGeneric(dataSource, query) { - switch (dataSource.idType) { - case Categories.GENE_IDTYPE: - return GeneUtils.validateGene(query); - // add other cases when needed - default: - return GeneUtils.validate(dataSource, query); - } - } -} -//# sourceMappingURL=GeneUtils.js.map \ No newline at end of file diff --git a/dist/common/GeneUtils.js.map b/dist/common/GeneUtils.js.map deleted file mode 100644 index 80675d0..0000000 --- a/dist/common/GeneUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GeneUtils.js","sourceRoot":"","sources":["../../src/common/GeneUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAClD,OAAO,EAAC,YAAY,EAA2B,MAAM,UAAU,CAAC;AAChE,OAAO,EAAC,IAAI,EAAqB,IAAI,EAAC,MAAM,UAAU,CAAC;AACvD,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAQvC,OAAO;AAEP,MAAM,OAAO,SAAS;IACpB;;;;;;;OAOG;IACH,MAAM,CAAC,UAAU,CAAC,KAAa,EAAE,IAAY,EAAE,QAAgB;QAC7D,OAAO,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,aAAa,EAAE;YACpE,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,YAAY,CAAC,kBAAkB,EAAE;YAC1C,KAAK;YACL,IAAI;YACJ,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,KAAe;QACjC,OAAO,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,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AAC;YAEvC,8BAA8B;YAE9B;gBACI,OAAO,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;SAClD;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/common/config.d.ts b/dist/common/config.d.ts deleted file mode 100644 index 933c4ea..0000000 --- a/dist/common/config.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Created by sam on 06.03.2017. - */ -import { IServerColumn } from 'tdp_core'; -import { IAdditionalColumnDesc } from 'tdp_core'; -/** - * maximal number of rows in which just the subset if fetched instead of all - * @type {number} - */ -export declare const MAX_FILTER_SCORE_ROWS_BEFORE_ALL = 1000; -/** - * Detailed information about the column type - */ -interface IDataSourceColumnInfo { - /** - * List of all string column names - */ - string?: string[]; - /** - * List of all number column names - */ - number?: string[]; - /** - * List of all categorical column names - */ - categorical?: string[]; -} -export interface IDataSourceConfig { - idType: string; - name: string; - db: string; - schema: string; - tableName: string; - entityName: string; - base: string; - columns(find: (column: string) => IServerColumn): IAdditionalColumnDesc[]; - /** - * Detailed information about the column type. - */ - columnInfo?: IDataSourceColumnInfo; - [key: string]: any; -} -export declare const cellline: IDataSourceConfig; -export declare const tissue: IDataSourceConfig; -export declare const gene: IDataSourceConfig; -export declare const dataSources: IDataSourceConfig[]; -export declare function chooseDataSource(desc: any): IDataSourceConfig; -export interface IDataTypeConfig { - id: string; - name: string; - tableName: string; - query: string; - dataSubtypes: IDataSubtypeConfig[]; -} -/** - * list of possible types - */ -export declare const dataSubtypes: { - number: string; - string: string; - cat: string; - boxplot: string; -}; -export interface IDataSubtypeConfig { - id: string; - name: string; - type: string; - useForAggregation: string; - categories?: { - label: string; - name: string; - color: string; - }[]; - domain?: number[]; - missingValue?: number; - constantDomain?: boolean; -} -export declare const expression: IDataTypeConfig; -export declare const copyNumber: IDataTypeConfig; -export declare const mutation: IDataTypeConfig; -export declare const depletion: IDataTypeConfig; -export declare const drugScreen: IDataTypeConfig; -export declare const drug: IDataSourceConfig; -export declare const dataTypes: IDataTypeConfig[]; -/** - * splits strings in the form of "DATA_TYPE-DATA_SUBTYPE" and returns the corresponding DATA_TYPE and DATA_SUBTYPE objects - */ -export declare function splitTypes(toSplit: string): { - dataType: IDataTypeConfig; - dataSubType: IDataSubtypeConfig; -}; -export declare function resolveDataTypes(dataTypeId: string, dataSubTypeId: string): { - dataType: IDataTypeConfig; - dataSubType: IDataSubtypeConfig; -}; -export {}; diff --git a/dist/common/config.js b/dist/common/config.js deleted file mode 100644 index 30b2f2c..0000000 --- a/dist/common/config.js +++ /dev/null @@ -1,401 +0,0 @@ -/** - * Created by sam on 06.03.2017. - */ -import { Categories } from 'tdp_gene'; -import { ColumnDescUtils } from 'tdp_core'; -/** - * maximal number of rows in which just the subset if fetched instead of all - * @type {number} - */ -export const MAX_FILTER_SCORE_ROWS_BEFORE_ALL = 1000; -export const cellline = { - idType: 'Cellline', - name: 'Cell Line', - db: 'publicdb', - schema: 'cellline', - tableName: 'cellline', - entityName: 'celllinename', - dbViewSuffix: `_items`, - base: 'cellline', - columns: (find) => { - return [ - ColumnDescUtils.stringCol('id', { label: 'Name' }), - //categoricalCol('species', desc.columns.species.categories, 'Species', true), - ColumnDescUtils.categoricalCol('tumortype', find('tumortype').categories, { label: 'Tumor Type' }), - ColumnDescUtils.categoricalCol('organ', find('organ').categories, { label: 'Organ' }), - ColumnDescUtils.categoricalCol('gender', find('gender').categories, { label: 'Gender' }), - ColumnDescUtils.categoricalCol('metastatic_site', find('metastatic_site').categories, { label: 'Metastatic Site', visible: false }), - ColumnDescUtils.categoricalCol('histology_type', find('histology_type').categories, { label: 'Histology Type', visible: false }), - ColumnDescUtils.categoricalCol('morphology', find('morphology').categories, { label: 'Morphology', visible: false }), - ColumnDescUtils.categoricalCol('growth_type', find('growth_type').categories, { label: 'Growth Type', visible: false }), - ColumnDescUtils.categoricalCol('age_at_surgery', find('age_at_surgery').categories, { label: 'Age at Surgery', visible: false }), - ColumnDescUtils.categoricalCol('microsatellite_stability_class', find('microsatellite_stability_class').categories, { label: 'Micro Satellite Instability (MSI) Status', visible: false }), - ColumnDescUtils.numberCol('microsatellite_stability_score', 0, find('microsatellite_stability_score').max, { label: 'Micro Satellite Instability (MSI) Score', visible: false }), - ColumnDescUtils.categoricalCol('hla_a_allele1', find('hla_a_allele1').categories, { label: 'Human Leukocyte Antigen (HLA) type allele 1', visible: false }), - ColumnDescUtils.categoricalCol('hla_a_allele2', find('hla_a_allele2').categories, { label: 'Human Leukocyte Antigen (HLA) type allele 2', visible: false }), - ColumnDescUtils.numberCol('mutational_fraction', 0, find('mutational_fraction').max, { label: 'Mutational Burden', visible: false }), - ]; - }, - columnInfo: { - string: ['id'], - number: ['microsatellite_stability_score', 'mutational_fraction'], - categorical: ['organ', 'gender', 'tumortype', 'metastatic_site', 'histology_type', 'morphology', 'growth_type', 'microsatellite_stability_class', 'hla_a_allele1', 'hla_a_allele2'] - } -}; -export const tissue = { - idType: 'Tissue', - name: 'Tissue', - db: 'publicdb', - schema: 'tissue', - tableName: 'tissue', - entityName: 'tissuename', - dbViewSuffix: `_items`, - base: 'tissue', - columns: (find) => { - return [ - ColumnDescUtils.stringCol('id', { label: 'Name' }), - //categoricalCol('species', desc.columns.species.categories, 'Species', true), - ColumnDescUtils.categoricalCol('tumortype', find('tumortype').categories, { label: 'Tumor Type' }), - ColumnDescUtils.categoricalCol('organ', find('organ').categories, { label: 'Organ' }), - ColumnDescUtils.categoricalCol('gender', find('gender').categories, { label: 'Gender' }), - ColumnDescUtils.stringCol('tumortype_adjacent', { label: 'Tumor Type adjacent', visible: false }), - ColumnDescUtils.categoricalCol('vendorname', find('vendorname').categories, { label: 'Vendor name', visible: false }), - ColumnDescUtils.categoricalCol('race', find('race').categories, { label: 'Race', visible: false }), - ColumnDescUtils.categoricalCol('ethnicity', find('ethnicity').categories, { label: 'Ethnicity', visible: false }), - ColumnDescUtils.numberCol('age', find('age').min, find('age').max, { label: 'Age', visible: false }), - ColumnDescUtils.numberCol('days_to_death', 0, find('days_to_death').max, { label: 'Days to death', visible: false }), - ColumnDescUtils.numberCol('days_to_last_followup', 0, find('days_to_last_followup').max, { label: 'Days to last follow up', visible: false }), - ColumnDescUtils.categoricalCol('vital_status', find('vital_status').categories, { label: 'Vital status', visible: false }), - ColumnDescUtils.numberCol('height', 0, find('height').max, { label: 'Height', visible: false }), - ColumnDescUtils.numberCol('weight', 0, find('weight').max, { label: 'Weight', visible: false }), - ColumnDescUtils.numberCol('bmi', 0, find('bmi').max, { label: 'Body Mass Index (BMI)', visible: false }), - ColumnDescUtils.categoricalCol('microsatellite_stability_class', find('microsatellite_stability_class').categories, { label: 'Micro Satellite Instability (MSI) Status', visible: false }), - ColumnDescUtils.numberCol('microsatellite_stability_score', 0, find('microsatellite_stability_score').max, { label: 'Micro Satellite Instability (MSI) Score', visible: false }), - ColumnDescUtils.categoricalCol('hla_a_allele1', find('hla_a_allele1').categories, { label: 'Human Leukocyte Antigen (HLA) type allele 1', visible: false }), - ColumnDescUtils.categoricalCol('hla_a_allele2', find('hla_a_allele2').categories, { label: 'Human Leukocyte Antigen (HLA) type allele 2', visible: false }), - ColumnDescUtils.numberCol('mutational_fraction', 0, find('mutational_fraction').max, { label: 'Mutational Burden', visible: false }), - ]; - }, - columnInfo: { - string: ['id', 'tumortype_adjacent'], - number: ['age', 'days_to_death', 'days_to_last_followup', 'height', 'weight', 'bmi', 'microsatellite_stability_score', 'mutational_fraction'], - categorical: ['organ', 'gender', 'tumortype', 'vendorname', 'race', 'ethnicity', 'vital_status', 'microsatellite_stability_class', 'hla_a_allele1', 'hla_a_allele2'] - } -}; -function toChromosomes(categories) { - const order = new Map(); - for (let i = 1; i <= 22; ++i) { - order.set(String(i), i); - } - order.set('x', 23); - order.set('y', 24); - order.set('mt', 25); - categories.sort((a, b) => { - const an = a.toLowerCase(); - const bn = b.toLowerCase(); - const ai = order.get(an); - const bi = order.get(bn); - if (ai === bi) { - return an.localeCompare(bn); - } - if (ai == null) { - return 1; - } - if (bi == null) { - return -1; - } - return ai - bi; - }); - return categories.map((d, i) => ({ name: d, label: d, value: i })); -} -export const gene = { - idType: Categories.GENE_IDTYPE, - name: 'Gene', - db: 'publicdb', - schema: 'public', - tableName: 'gene', - entityName: 'ensg', - dbViewSuffix: `_gene_items`, - base: 'gene', - columns: (find) => { - const maxRegion = Math.max(find('seqregionstart').max, find('seqregionend').max); - return [ - ColumnDescUtils.stringCol('symbol', { label: 'Symbol', width: 120 }), - ColumnDescUtils.stringCol('id', { label: 'Ensembl' }), - ColumnDescUtils.stringCol('name', { label: 'Name' }), - ColumnDescUtils.categoricalCol('chromosome', toChromosomes(find('chromosome').categories), { label: 'Chromosome' }), - ColumnDescUtils.categoricalCol('biotype', find('biotype').categories, { label: 'Biotype' }), - ColumnDescUtils.categoricalCol('strand', [{ label: 'reverse strand', name: String(-1) }, { label: 'forward strand', name: String(1) }], { label: 'Strand', visible: false }), - ColumnDescUtils.numberCol('seqregionstart', 0, maxRegion, { label: 'Seq Region Start', visible: false, extras: { renderer: 'default' } }), - ColumnDescUtils.numberCol('seqregionend', 0, maxRegion, { label: 'Seq Region End', visible: false, extras: { renderer: 'default' } }), - ]; - }, - columnInfo: { - string: ['id', 'symbol', 'name', 'chromosome', 'seqregionstart', 'seqregionend'], - number: [], - categorical: ['biotype', 'strand'] - } -}; -export const dataSources = [cellline, tissue]; -export function chooseDataSource(desc) { - if (typeof (desc) === 'object') { - if (desc.sampleType === 'Tissue' || desc.idtype === 'Tissue' || desc.idType === 'Tissue') { - return tissue; - } - else if (desc.sampleType === 'Cellline' || desc.idtype === 'Cellline' || desc.idType === 'Cellline') { - return cellline; - } - else { - return gene; - } - } - switch (desc) { - case cellline.name: - return cellline; - case tissue.name: - return tissue; - case gene.name: - return gene; - } -} -/** - * list of possible types - */ -export const dataSubtypes = { - number: 'number', - string: 'string', - cat: 'cat', - boxplot: 'boxplot' -}; -export const expression = { - id: 'expression', - name: 'Expression', - tableName: 'expression', - query: 'expression_score', - dataSubtypes: [ - { - id: 'tpm', - name: 'Normalized Gene Expression (TPM Values)', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'tpm' - }, - { - id: 'counts', - name: 'Raw Counts', - type: dataSubtypes.number, - domain: [0, 10000], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'counts' - } - ] -}; -export const copyNumber = { - id: 'copy_number', - name: 'Copy Number', - tableName: 'copynumber', - query: 'copynumber_score', - dataSubtypes: [ - { - id: 'relativecopynumber', - name: 'Relative Copy Number', - type: dataSubtypes.number, - domain: [0, 15], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'relativecopynumber' - }, - { - id: 'totalabscopynumber', - name: 'Total Absolute Copy Number', - type: dataSubtypes.number, - domain: [0, 15], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'totalabscopynumber' - }, - { - id: 'copynumberclass', - name: 'Copy Number Class', - type: dataSubtypes.cat, - categories: toLineUpCategories(Categories.copyNumberCat), - domain: [0, 100], - missingValue: Categories.unknownCopyNumberValue, - useForAggregation: 'copynumberclass' - } - ], -}; -export const mutation = { - id: 'mutation', - name: 'Mutation', - tableName: 'mutation', - query: 'alteration_mutation_frequency', - dataSubtypes: [ - //it is a cat by default but in the frequency case also a number? - { - id: 'aa_mutated', - name: 'AA Mutated', - type: dataSubtypes.cat, - categories: toLineUpCategories(Categories.mutationCat), - useForAggregation: 'aa_mutated', - domain: [0, 100], - missingValue: Categories.unknownMutationValue - }, - //just for single score: - { - id: 'aamutation', - name: 'AA Mutation', - type: dataSubtypes.string, - useForAggregation: '', - domain: [0, 100], - missingValue: NaN - }, - { - id: 'dna_mutated', - name: 'DNA Mutated', - type: dataSubtypes.cat, - categories: toLineUpCategories(Categories.mutationCat), - useForAggregation: 'dna_mutated', - domain: [0, 100], - missingValue: Categories.unknownMutationValue - }, - //just for single score: - { - id: 'dnamutation', - name: 'DNA Mutation', - type: dataSubtypes.string, - useForAggregation: '', - domain: [0, 100], - missingValue: NaN - }, - { - id: 'zygosity', - name: 'Zygosity', - type: dataSubtypes.number, - domain: [0, 15], - missingValue: NaN, - useForAggregation: 'zygosity' - } - ] -}; -export const depletion = { - id: 'depletion', - name: 'Depletion Screen ', - tableName: 'depletionscore', - query: 'depletion_score', - dataSubtypes: [ - { - id: 'rsa', - name: 'DRIVE RSA (ER McDonald III et al., Cell, 2017)', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'rsa' - }, - { - id: 'ataris', - name: 'DRIVE ATARiS (ER McDonald III et al., Cell, 2017)', - type: dataSubtypes.number, - domain: [0, 10000], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ataris' - }, - { - id: 'ceres', - name: 'Avana CERES (Robin M. Meyers et al., Nature Genetics, 2017)', - type: dataSubtypes.number, - domain: [0, 10000], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ceres' - } - ] -}; -export const drugScreen = { - id: 'drug', - name: 'Drug Screen', - tableName: 'drugscore', - query: 'drug_score', - dataSubtypes: [ - { - id: 'actarea', - name: 'Activity Area', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'actarea' - }, - { - id: 'ic50', - name: 'IC50', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ic50' - }, - { - id: 'ec50', - name: 'EC50', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ec50' - } - ] -}; -export const drug = { - idType: 'Drug', - name: 'Drug', - db: 'publicdb', - schema: 'public', - tableName: 'tdp_drug', - entityName: 'drugid', - base: 'drug', - columns: () => [] -}; -export const dataTypes = [expression, copyNumber, mutation]; -function toLineUpCategories(arr) { - return arr.map((a) => ({ label: a.name, name: String(a.value), color: a.color })); -} -/** - * splits strings in the form of "DATA_TYPE-DATA_SUBTYPE" and returns the corresponding DATA_TYPE and DATA_SUBTYPE objects - */ -export function splitTypes(toSplit) { - console.assert(toSplit.includes('-'), 'The splitTypes method requires the string to contain a dash ("-")'); - const [type, subtype] = toSplit.split('-'); - return resolveDataTypes(type, subtype); -} -export function resolveDataTypes(dataTypeId, dataSubTypeId) { - let dataType; - switch (dataTypeId) { - case mutation.id: - dataType = mutation; - break; - case expression.id: - dataType = expression; - break; - case copyNumber.id: - dataType = copyNumber; - break; - case depletion.id: - dataType = depletion; - break; - case drugScreen.id: - dataType = drugScreen; - break; - } - const dataSubType = dataType.dataSubtypes.find((element) => element.id === dataSubTypeId); - return { - dataType, - dataSubType - }; -} -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/dist/common/config.js.map b/dist/common/config.js.map deleted file mode 100644 index 7dbf20d..0000000 --- a/dist/common/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/common/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAIzC;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,CAAC;AA0CrD,MAAM,CAAC,MAAM,QAAQ,GAAsB;IACvC,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,WAAW;IACjB,EAAE,EAAE,UAAU;IACd,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,cAAc;IAC1B,YAAY,EAAE,QAAQ;IACtB,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAuC,EAAE,EAAE;QACjD,OAAO;YACH,eAAe,CAAC,SAAS,CAAC,IAAI,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC;YAChD,8EAA8E;YAC9E,eAAe,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,YAAY,EAAC,CAAC;YAChG,eAAe,CAAC,c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CAAC,EAAE,mEAAmE,CAAC,CAAC;IAC3G,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAkB,EAAE,aAAqB;IACtE,IAAI,QAAyB,CAAC;IAE9B,QAAQ,UAAU,EAAE;QAChB,KAAK,QAAQ,CAAC,EAAE;YACZ,QAAQ,GAAG,QAAQ,CAAC;YACpB,MAAM;QACV,KAAK,UAAU,CAAC,EAAE;YACd,QAAQ,GAAG,UAAU,CAAC;YACtB,MAAM;QACV,KAAK,UAAU,CAAC,EAAE;YACd,QAAQ,GAAG,UAAU,CAAC;YACtB,MAAM;QACV,KAAK,SAAS,CAAC,EAAE;YACb,QAAQ,GAAG,SAAS,CAAC;YACrB,MAAM;QACV,KAAK,UAAU,CAAC,EAAE;YACd,QAAQ,GAAG,UAAU,CAAC;YACtB,MAAM;KACb;IACD,MAAM,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,CAAC;IAC1F,OAAO;QACH,QAAQ;QACR,WAAW;KACd,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/common/forms.d.ts b/dist/common/forms.d.ts deleted file mode 100644 index f4cdeaa..0000000 --- a/dist/common/forms.d.ts +++ /dev/null @@ -1,359 +0,0 @@ -/** - * Created by sam on 06.03.2017. - */ -import { FormElementType } from 'tdp_core'; -import { IDataSourceConfig } from './config'; -import { GeneUtils } from './GeneUtils'; -/** - * List of ids for parameter form elements - * Reuse this ids and activate the `useSession` option for form elements to have the same selectedIndex between different views - */ -export declare class ParameterFormIds { - static DATA_SOURCE: string; - static GENE_SYMBOL: string; - static CELLLINE_NAME: string; - static TISSUE_NAME: string; - static DRUG_NAME: string; - static SCREEN_TYPE: string; - static DATA_SUBTYPE: string; - static DATA_HIERARCHICAL_SUBTYPE: string; - static COPYNUMBER_SUBTYPE: string; - static EXPRESSION_SUBTYPE: string; - static AGGREGATION: string; - static COMPARISON_OPERATOR: string; - static COMPARISON_VALUE: string; - static COMPARISON_CN: string; - static SCORE_FORCE_DATASET_SIZE: string; - static COLOR_CODING: string; -} -export declare const COMPARISON_OPERATORS: { - name: string; - value: string; - data: string; -}[]; -export declare const CATEGORICAL_AGGREGATION: { - name: string; - value: string; - data: string; -}[]; -export declare const NUMERIC_AGGREGATION: { - name: string; - value: string; - data: string; -}[]; -export declare const FORM_GENE_NAME: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - optionsData: any[]; - search: typeof GeneUtils.searchGene; - validate: typeof GeneUtils.validateGene; - format: typeof GeneUtils.formatGene; - }; - useSession: boolean; -}; -export declare const FORM_DRUG_NAME: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - optionsData: any[]; - search: typeof GeneUtils.searchDrug; - validate: typeof GeneUtils.validateDrug; - format: typeof GeneUtils.formatDrug; - }; - useSession: boolean; -}; -export declare const FORM_TISSUE_NAME: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - optionsData: any[]; - search: (query: any, page: any, pageSize: any) => Promise<{ - more: boolean; - items: Readonly[]; - }>; - validate: (query: any) => Promise[]>; - format: typeof GeneUtils.format; - tokenSeparators: RegExp; - defaultTokenSeparator: string; - }; - useSession: boolean; -}; -export declare const FORM_CELLLINE_NAME: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - optionsData: any[]; - search: (query: any, page: any, pageSize: any) => Promise<{ - more: boolean; - items: Readonly[]; - }>; - validate: (query: any) => Promise[]>; - format: typeof GeneUtils.format; - tokenSeparators: RegExp; - defaultTokenSeparator: string; - }; - useSession: boolean; -}; -export declare const FORM_GENE_FILTER: { - type: FormElementType; - label: string; - id: string; - useSession: boolean; - options: { - sessionKeySuffix: string; - defaultSelection: boolean; - uniqueKeys: boolean; - badgeProvider: (rows: import("tdp_core").IFormRow[]) => Promise; - entries: ({ - name: string; - value: string; - type: FormElementType; - multiple: boolean; - return: string; - optionsData: () => Promise; - options: { - placeholder: string; - }; - search?: undefined; - validate?: undefined; - format?: undefined; - } | { - name: string; - value: string; - type: FormElementType; - multiple: boolean; - return: string; - optionsData: () => Promise<{ - name: string; - value: string | number; - }[]>; - options: { - placeholder: string; - }; - search?: undefined; - validate?: undefined; - format?: undefined; - } | { - name: string; - value: string; - type: FormElementType; - multiple: boolean; - optionsData: any; - options: { - placeholder: string; - }; - return?: undefined; - search?: undefined; - validate?: undefined; - format?: undefined; - } | { - name: string; - value: string; - type: FormElementType; - multiple: boolean; - search: typeof GeneUtils.searchGene; - validate: typeof GeneUtils.validateGene; - format: typeof GeneUtils.formatGene; - options: { - placeholder: string; - }; - return?: undefined; - optionsData?: undefined; - })[]; - }; -}; -export declare const FORM_DATA_SOURCE: { - type: FormElementType; - label: string; - id: string; - required: boolean; - options: { - optionsData: { - name: string; - value: string; - data: IDataSourceConfig; - }[]; - }; - useSession: boolean; -}; -export declare const FORM_TISSUE_FILTER: { - type: FormElementType; - label: string; - id: string; - useSession: boolean; - options: { - sessionKeySuffix: string; - badgeProvider: (rows: import("tdp_core").IFormRow[]) => Promise; - defaultSelection: boolean; - uniqueKeys: boolean; - entries: any[]; - }; -}; -export declare const FORM_CELLLINE_FILTER: { - type: FormElementType; - label: string; - id: string; - useSession: boolean; - options: { - sessionKeySuffix: string; - badgeProvider: (rows: import("tdp_core").IFormRow[]) => Promise; - defaultSelection: boolean; - uniqueKeys: boolean; - entries: any[]; - }; -}; -export declare const FORM_TISSUE_OR_CELLLINE_FILTER: { - type: FormElementType; - label: string; - id: string; - useSession: boolean; - dependsOn: string[]; - options: any; -}; -export declare const FORM_COLOR_CODING: { - type: FormElementType; - label: string; - id: string; - dependsOn: string[]; - options: { - optionsData: (depends: any) => { - name: string; - value: string; - data: any; - }[]; - }; - useSession: boolean; -}; -export declare const FORM_DATA_HIERARCHICAL_SUBTYPE: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - data: { - text: string; - children: { - id: string; - text: string; - }[]; - }[]; - }; - useSession: boolean; -}; -export declare const FORM_DATA_HIERARCHICAL_SUBTYPE_AGGREGATED_SELECTION: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - data: { - text: string; - children: { - id: string; - text: string; - }[]; - }[]; - }; - useSession: boolean; -}; -export declare const FORM_DATA_HIERARCHICAL_SUBTYPE_DEPLETION: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - data: { - id: string; - text: string; - }[]; - }; - useSession: boolean; -}; -export declare const FORM_DATA_HIERARCHICAL_SUBTYPE_AGGREGATED_SELECTION_DEPLETION: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - data: { - id: string; - text: string; - }[]; - }; - useSession: boolean; -}; -export declare const FORM_DATA_HIERARCHICAL_SUBTYPE_DRUG: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - data: { - id: string; - text: string; - }[]; - }; - useSession: boolean; -}; -export declare const DRUG_SCREEN_SCORE_FORM_ELEMENT: { - type: FormElementType; - label: string; - id: string; - attributes: { - style: string; - }; - required: boolean; - options: { - placeholder: string; - optionsData: any[]; - search: typeof GeneUtils.searchDrugScreen; - validate: typeof GeneUtils.validateDrugScreen; - format: typeof GeneUtils.formatDrugScreen; - }; - useSession: boolean; -}; diff --git a/dist/common/forms.js b/dist/common/forms.js deleted file mode 100644 index dcaa15d..0000000 --- a/dist/common/forms.js +++ /dev/null @@ -1,626 +0,0 @@ -/** - * Created by sam on 06.03.2017. - */ -import { SpeciesUtils } from 'tdp_gene'; -import { FormSubtype } from 'tdp_gene'; -import { FormElementType } from 'tdp_core'; -import { ValueCache } from 'tdp_core'; -import { gene, tissue, cellline, dataSources, dataTypes, dataSubtypes, depletion, drugScreen } from './config'; -import { RestStorageUtils } from 'tdp_core'; -import { LineupUtils } from 'tdp_core'; -import { RestBaseUtils } from 'tdp_core'; -import { GeneUtils } from './GeneUtils'; -/** - * List of ids for parameter form elements - * Reuse this ids and activate the `useSession` option for form elements to have the same selectedIndex between different views - */ -export class ParameterFormIds { -} -ParameterFormIds.DATA_SOURCE = 'data_source'; -ParameterFormIds.GENE_SYMBOL = 'gene_symbol'; -ParameterFormIds.CELLLINE_NAME = 'cellline_name'; -ParameterFormIds.TISSUE_NAME = 'tissue_name'; -ParameterFormIds.DRUG_NAME = 'drug_name'; -ParameterFormIds.SCREEN_TYPE = 'screen_type'; -ParameterFormIds.DATA_SUBTYPE = 'data_subtype'; -ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE = 'hierarchical_data_subtype'; -ParameterFormIds.COPYNUMBER_SUBTYPE = FormSubtype.FORM_COPYNUMBER_SUBTYPE_ID; -ParameterFormIds.EXPRESSION_SUBTYPE = FormSubtype.FORM_EXPRESSION_SUBTYPE_ID; -ParameterFormIds.AGGREGATION = 'aggregation'; -ParameterFormIds.COMPARISON_OPERATOR = 'comparison_operator'; -ParameterFormIds.COMPARISON_VALUE = 'comparison_value'; -ParameterFormIds.COMPARISON_CN = 'comparison_cn'; -ParameterFormIds.SCORE_FORCE_DATASET_SIZE = 'maxDirectFilterRows'; -ParameterFormIds.COLOR_CODING = 'form_color_coding'; -export const COMPARISON_OPERATORS = [ - { name: '< less than', value: '<', data: '<' }, - { name: '<= less equal', value: '<=', data: '<=' }, - { name: 'not equal to', value: '<>', data: '<>' }, - { name: '>= greater equal', value: '>=', data: '>=' }, - { name: '> greater than', value: '>', data: '>' } -]; -export const CATEGORICAL_AGGREGATION = [ - { name: 'Frequency', value: 'frequency', data: 'frequency' }, - { name: 'Count', value: 'count', data: 'count' } -]; -export const NUMERIC_AGGREGATION = [ - { name: 'Average', value: 'avg', data: 'avg' }, - { name: 'Median', value: 'median', data: 'median' }, - { name: 'Min', value: 'min', data: 'min' }, - { name: 'Max', value: 'max', data: 'max' }, - { name: 'Frequency', value: 'frequency', data: 'frequency' }, - { name: 'Count', value: 'count', data: 'count' }, - { name: 'Boxplot', value: 'boxplot', data: 'boxplot' }, - { name: 'Raw Matrix', value: 'numbers', data: 'numbers' } -]; -function buildPredefinedNamedSets(ds) { - return RestBaseUtils.getTDPData(ds.db, `${ds.base}_panel`).then((panels) => panels.map((p) => p.id)); -} -export const FORM_GENE_NAME = { - type: FormElementType.SELECT3, - label: 'Gene Symbol', - id: ParameterFormIds.GENE_SYMBOL, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: GeneUtils.searchGene, - validate: GeneUtils.validateGene, - format: GeneUtils.formatGene - }, - useSession: true -}; -export const FORM_DRUG_NAME = { - type: FormElementType.SELECT3, - label: 'Drug Name', - id: ParameterFormIds.DRUG_NAME, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: GeneUtils.searchDrug, - validate: GeneUtils.validateDrug, - format: GeneUtils.formatDrug - }, - useSession: true -}; -function generateNameLookup(d, field) { - return { - type: FormElementType.SELECT3, - label: d.name, - id: field, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: (query, page, pageSize) => GeneUtils.search(d, query, page, pageSize), - validate: (query) => GeneUtils.validate(d, query), - format: GeneUtils.format, - tokenSeparators: /[\r\n;,]+/mg, - defaultTokenSeparator: ';' - }, - useSession: true - }; -} -export const FORM_TISSUE_NAME = generateNameLookup(tissue, ParameterFormIds.TISSUE_NAME); -export const FORM_CELLLINE_NAME = generateNameLookup(cellline, ParameterFormIds.CELLLINE_NAME); -//see also tdp_bi_bioinfodb/src/index.ts -> the session will be preset there -export const FORM_GENE_FILTER = { - type: FormElementType.MAP, - label: `Filter:`, - id: 'filter', - useSession: true, - options: { - sessionKeySuffix: `-${SpeciesUtils.getSelectedSpecies()}-gene`, - defaultSelection: false, - uniqueKeys: true, - badgeProvider: LineupUtils.previewFilterHint(gene.db, 'gene', () => ({ filter_species: SpeciesUtils.getSelectedSpecies() })), - entries: [{ - name: 'Bio Type', - value: 'biotype', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_biotypes`, () => RestBaseUtils.getTDPData(gene.db, 'gene_unique_all', { - column: 'biotype', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Strand', - value: 'strand', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_strands`, () => RestBaseUtils.getTDPData(gene.db, `gene_unique_all`, { - column: 'strand', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => ({ name: `${d.text === -1 ? 'reverse' : 'forward'} strand`, value: d.text })))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Chromosome', - value: 'chromosome', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_chromosome`, () => RestBaseUtils.getTDPData(gene.db, `gene_unique_all`, { - column: 'chromosome', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text.toString()))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Predefined Named Sets', - value: 'panel_ensg', - type: FormElementType.SELECT2, - multiple: true, - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_predefined_namedsets`, buildPredefinedNamedSets.bind(null, gene)), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'My Named Sets', - value: 'namedset4ensg', - type: FormElementType.SELECT2, - multiple: true, - optionsData: RestStorageUtils.listNamedSetsAsOptions.bind(null, gene.idType), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Gene Symbol', - value: 'ensg', - type: FormElementType.SELECT3, - multiple: true, - search: GeneUtils.searchGene, - validate: GeneUtils.validateGene, - format: GeneUtils.formatGene, - options: { - placeholder: 'Start typing...', - } - }] - } -}; -function generateTissueSpecificFilter(d) { - return [ - { - name: 'Tumor Type adjacent', - value: 'tumortype_adjacent', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_tumortype_adjacent`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'tumortype_adjacent', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Vendor name', - value: 'vendorname', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_vendorname`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'vendorname', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Race', - value: 'race', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_race`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'race', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Ethnicity', - value: 'ethnicity', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_ethnicity`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'ethnicity', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Vital status', - value: 'vital_status', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_vital_status`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'vital_status', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text === true ? 'true' : 'false'))), - options: { - placeholder: 'Start typing...', - } - } - ]; -} -function generateCelllineSpecificFilter(d) { - return [ - { - name: 'Age at Surgery', - value: 'age_at_surgery', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_age_at_surgery`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'age_at_surgery', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Growth Type', - value: 'growth_type', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_growth_type`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'growth_type', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Histology Type', - value: 'histology_type', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_histology_type`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'histology_type', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Metastatic Site', - value: 'metastatic_site', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_metastatic_site`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'metastatic_site', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Morphology', - value: 'morphology', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_morphology`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'morphology', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - } - ]; -} -function generateFilter(d) { - let specificFilters = []; - if (d === tissue) { - specificFilters = generateTissueSpecificFilter(d); - } - else if (d === cellline) { - specificFilters = generateCelllineSpecificFilter(d); - } - return { - type: FormElementType.MAP, - label: `Filter:`, - id: 'filter', - useSession: true, - options: { - sessionKeySuffix: `-${SpeciesUtils.getSelectedSpecies()}-${d.base}`, - badgeProvider: LineupUtils.previewFilterHint(d.db, d.base, () => ({ filter_species: SpeciesUtils.getSelectedSpecies() })), - defaultSelection: false, - uniqueKeys: true, - entries: [{ - name: 'Tumor Type', - value: 'tumortype', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_tumortypes`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'tumortype', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Organ', - value: 'organ', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_organs`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'organ', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Gender', - value: 'gender', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_gender`, () => RestBaseUtils.getTDPData(d.db, `${d.base}_unique_all`, { - column: 'gender', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, - ...specificFilters, - { - name: 'Predefined Named Sets', - value: 'panel_' + d.entityName, - type: FormElementType.SELECT2, - multiple: true, - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_predefined_namedsets`, buildPredefinedNamedSets.bind(null, d)), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'My Named Sets', - value: 'namedset4' + d.entityName, - type: FormElementType.SELECT2, - multiple: true, - optionsData: RestStorageUtils.listNamedSetsAsOptions.bind(null, d.idType), - options: { - placeholder: 'Start typing...', - } - }, { - name: d.name, - value: d.entityName, - type: FormElementType.SELECT3, - multiple: true, - search: (query, page, pageSize) => GeneUtils.search(d, query, page, pageSize), - validate: (query) => GeneUtils.validate(d, query), - format: GeneUtils.format, - tokenSeparators: /[\r\n;,]+/mg, - defaultTokenSeparator: ';', - placeholder: 'Start typing...', - }] - } - }; -} -export const FORM_DATA_SOURCE = { - type: FormElementType.SELECT, - label: 'Data Source', - id: ParameterFormIds.DATA_SOURCE, - required: true, - options: { - optionsData: dataSources.map((ds) => { - return { name: ds.name, value: ds.name, data: ds }; - }) - }, - useSession: true -}; -export const FORM_TISSUE_FILTER = generateFilter(tissue); -export const FORM_CELLLINE_FILTER = generateFilter(cellline); -export const FORM_TISSUE_OR_CELLLINE_FILTER = { - type: FormElementType.MAP, - label: `Filter:`, - id: 'filter', - useSession: true, - dependsOn: [ParameterFormIds.DATA_SOURCE], - options: { - sessionKeySuffix: '-choose', - defaultSelection: false, - uniqueKeys: true, - badgeProvider: (filter, dataSource) => { - const value = dataSource.value; - const data = value ? value.data : null; - if (data === tissue || data === tissue.name) { - return FORM_TISSUE_FILTER.options.badgeProvider(filter); - } - else if (data === cellline || data === cellline.name) { - return FORM_CELLLINE_FILTER.options.badgeProvider(filter); - } - return ''; - }, - entries: (dataSource) => { - const value = dataSource.value; - const data = value ? value.data : null; - if (data === tissue || data === tissue.name) { - return FORM_TISSUE_FILTER.options.entries; - } - else if (data === cellline || data === cellline.name) { - return FORM_CELLLINE_FILTER.options.entries; - } - return []; - } - } -}; -export const FORM_COLOR_CODING = { - type: FormElementType.SELECT, - label: 'Color Coding', - id: ParameterFormIds.COLOR_CODING, - dependsOn: [ParameterFormIds.DATA_SOURCE], - options: { - optionsData: (depends) => { - const value = depends[0]; - const data = value ? value.data : null; - if (data === tissue || data === tissue.name) { - return addEmptyOption(selectCategoricalColumn(tissue)); - } - else if (data === cellline || data === cellline.name) { - return addEmptyOption(selectCategoricalColumn(cellline)); - } - return []; - } - }, - useSession: false -}; -function selectCategoricalColumn(ds) { - const dummy = { - type: 'string', - column: '', - label: '', - categories: [], - min: 0, - max: 1 - }; - const cats = ds.columns(() => dummy).filter((d) => d.type === 'categorical'); - return cats.map((c) => ({ name: c.label, value: c.column, data: c.column })); -} -function addEmptyOption(options) { - return [{ name: 'None', value: '', data: null }].concat(options); -} -export const FORM_DATA_HIERARCHICAL_SUBTYPE = { - type: FormElementType.SELECT2_MULTIPLE, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: dataTypes.map((ds) => { - return { - text: ds.name, - children: ds.dataSubtypes.map((dss) => ({ - id: `${ds.id}-${dss.id}`, - text: dss.name - })) - }; - }) - }, - useSession: true -}; -export const FORM_DATA_HIERARCHICAL_SUBTYPE_AGGREGATED_SELECTION = { - type: FormElementType.SELECT2, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: dataTypes.map((ds) => { - return { - text: ds.name, - //string types can't be aggregated - children: ds.dataSubtypes.filter((d) => d.type !== dataSubtypes.string).map((dss) => ({ - id: `${ds.id}-${dss.id}`, - text: dss.name - })) - }; - }) - }, - useSession: true -}; -export const FORM_DATA_HIERARCHICAL_SUBTYPE_DEPLETION = { - type: FormElementType.SELECT2_MULTIPLE, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: depletion.dataSubtypes.map((dss) => ({ - id: `${depletion.id}-${dss.id}`, - text: dss.name - })) - }, - useSession: true -}; -export const FORM_DATA_HIERARCHICAL_SUBTYPE_AGGREGATED_SELECTION_DEPLETION = { - type: FormElementType.SELECT2, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: depletion.dataSubtypes.filter((d) => d.type !== dataSubtypes.string).map((dss) => ({ - id: `${depletion.id}-${dss.id}`, - text: dss.name - })) - }, - useSession: true -}; -export const FORM_DATA_HIERARCHICAL_SUBTYPE_DRUG = { - type: FormElementType.SELECT2_MULTIPLE, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: drugScreen.dataSubtypes.map((subtype) => ({ - id: `${drugScreen.id}-${subtype.id}`, - text: subtype.name - })) - }, - useSession: true -}; -export const DRUG_SCREEN_SCORE_FORM_ELEMENT = { - type: FormElementType.SELECT3, - label: 'Drug Screen', - id: ParameterFormIds.SCREEN_TYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: GeneUtils.searchDrugScreen, - validate: GeneUtils.validateDrugScreen, - format: GeneUtils.formatDrugScreen - }, - useSession: true -}; -//# sourceMappingURL=forms.js.map \ No newline at end of file diff --git a/dist/common/forms.js.map b/dist/common/forms.js.map deleted file mode 100644 index b8081dc..0000000 --- a/dist/common/forms.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/common/forms.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,eAAe,EAAkC,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACpC,OAAO,EAAC,IAAI,EAAqB,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAChI,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,aAAa,EAAgB,MAAM,UAAU,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,OAAO,gBAAgB;;AAClB,4BAAW,GAAG,aAAa,CAAC;AAC5B,4BAAW,GAAG,aAAa,CAAC;AAC5B,8BAAa,GAAG,eAAe,CAAC;AAChC,4BAAW,GAAG,aAAa,CAAC;AAC5B,0BAAS,GAAG,WAAW,CAAC;AACxB,4BAAW,GAAG,aAAa,CAAC;AAC5B,6BAAY,GAAG,cAAc,CAAC;AAC9B,0CAAyB,GAAG,2BA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OAAO,EAAE;QACL,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,SAAS,CAAC,gBAAgB;QAClC,QAAQ,EAAE,SAAS,CAAC,kBAAkB;QACtC,MAAM,EAAE,SAAS,CAAC,gBAAgB;KACrC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC"} \ No newline at end of file diff --git a/dist/common/index.d.ts b/dist/common/index.d.ts deleted file mode 100644 index b4af434..0000000 --- a/dist/common/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './config'; -export * from './GeneUtils'; -export * from './forms'; diff --git a/dist/common/index.js b/dist/common/index.js deleted file mode 100644 index 04c80f6..0000000 --- a/dist/common/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from './config'; -export * from './GeneUtils'; -export * from './forms'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/common/index.js.map b/dist/common/index.js.map deleted file mode 100644 index 5d51711..0000000 --- a/dist/common/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/config/onboarding.d.ts b/dist/config/onboarding.d.ts deleted file mode 100644 index cc37b9a..0000000 --- a/dist/config/onboarding.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Props } from 'tippy.js'; -export declare const CONFIG_ONBOARDING: ITippyConfig; -interface ITippyConfig { - defaultSettings: Partial; - tooltips: { - [tipId: string]: Partial; - }; -} -export {}; diff --git a/dist/config/onboarding.js b/dist/config/onboarding.js deleted file mode 100644 index 6473fd5..0000000 --- a/dist/config/onboarding.js +++ /dev/null @@ -1,130 +0,0 @@ -// compare: -// * Demo: https://atomiks.github.io/tippyjs/ -// * all props: https://atomiks.github.io/tippyjs/v6/all-props/ -export const CONFIG_ONBOARDING = { - defaultSettings: { - animation: 'shift-toward', - inertia: true, - theme: 'light-border', - delay: [500, null], - allowHTML: true - }, - tooltips: { - dataset: { - placement: 'bottom', - content: 'Start by selecting a dataset for your analysis.' - }, - rootCohort: { - placement: 'bottom-start', - content: ` -

- Selecting a dataset created your first cohort, containing all items of this dataset. - The cohort's size is represented by the bar at the bottom. -

-

Click the cohort to select it for use.

- `, - maxWidth: 250 - }, - input: { - placement: 'top', - content: `

- All selected cohorts are colored and listed here. - Click a cohort again to deselect, or hit the Clear button below to remove all. -

-

Continue by selecting one of the operations on the right.

`, - }, - output: { - placement: 'top', - content: `

- You now see a preview of the generated output cohorts. - -

- Adding the cohorts to the cohort evolution graph confirms the operation. - You may also adjust the parameters or clear the output completely. -

`, - }, - filter: { - placement: 'left-start', - content: ` - In this operation, cohorts can be -
    -
  • - - Filtered -
  • -
  • - - Split -
  • -
  • - - Or simply viewed -
  • -
-

You can add and remove attributes and cohorts at any time. The visualization is updated based on the type and number of attributes.

-

The color assigned to the cohorts upon selection also encodes the cohorts in the visualization.

- `, - }, - details: { - placement: 'left-start', - content: ` -

- Inspect which items are in your cohorts. Add attributes using the search bar to see the individual values. -

-

- The items can also be sorted, grouped, and filtered.
- You can add and remove attributes and cohorts at any time. The list will then automatically update. -

- This operation cannot create output cohorts and therefore takes up their space. - `, - }, - compare: { - placement: 'left-start', - content: ` -

- This operation statistically compares all selected cohorts. - The attributes for the comparison are specified in the search bar. -

-

- The generated table shows the p-values of the comparisons. Non-significant results are only shown on hover. - Click a value for details about the comparison. -

- This operation cannot create output cohorts and therefore takes up their space. - `, - }, - characterize: { - placement: 'left-start', - content: ` -

- Characterize cohorts by a large set of attributes. -

-

- The individual views show what the driving differences are, how well the cohorts are separable, and give insight into the homogeneity and outliers of the cohorts. -

- This operation cannot create output cohorts and therefore takes up their space. - `, - }, - prevalence: { - placement: 'left-start', - content: ` -

- Determine the prevalence of the selected cohorts.
- The reference does not have to be a cohort from the graph, but can be dynamically specified for each cohort by selecting from the filters used. -

- This operation cannot create output cohorts and therefore takes up their space. - `, - }, - firstOutputCohort: { - placement: 'right', - content: ` -

- Your output cohorts are now the new input cohorts. -

-

Click a cohort to toggle its selection. To directly select only a single cohort, double-click it.

- `, - maxWidth: 250, - onHidden: (instance) => instance.destroy() // auto remove after first click - }, - } -}; -//# sourceMappingURL=onboarding.js.map \ No newline at end of file diff --git a/dist/config/onboarding.js.map b/dist/config/onboarding.js.map deleted file mode 100644 index df68942..0000000 --- a/dist/config/onboarding.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onboarding.js","sourceRoot":"","sources":["../../src/config/onboarding.ts"],"names":[],"mappings":"AAEA,WAAW;AACX,6CAA6C;AAC7C,+DAA+D;AAC/D,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,eAAe,EAAE;QACf,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,iDAAiD;SAC3D;QACD,UAAU,EAAE;YACV,SAAS,EAAE,cAAc;YACzB,OAAO,EAAE;;;;;;OAMR;YACD,QAAQ,EAAE,GAAG;SACd;QACD,KAAK,EAAE;YACL,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE;;;;uEAIwD;SAClE;QACD,MAAM,EAAE;YACN,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE;;;;;;WAMJ;SACN;QACD,MAAM,EAAE;YACN,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE;;;;;;;;;;;;;;;;;;OAkBR;SACF;QACD,OAAO,EAAE;YACP,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE;;;;;;;;;OASR;SACF;QACD,OAAO,EAAE;YACP,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE;;;;;;;;;;OAUR;SACF;QACD,YAAY,EAAE;YACZ,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE;;;;;;;;OAQR;SACF;QACD,UAAU,EAAE;YACV,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE;;;;;;OAMR;SACF;QACD,iBAAiB,EAAE;YACjB,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE;;;;;OAKR;YACD,QAAQ,EAAE,GAAG;YACb,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gCAAgC;SAC5E;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/dist/data/Attribute.d.ts b/dist/data/Attribute.d.ts deleted file mode 100644 index dece09c..0000000 --- a/dist/data/Attribute.d.ts +++ /dev/null @@ -1,192 +0,0 @@ -import { IAllFilters, IServerColumn } from 'tdp_core'; -import { IDataSubtypeConfig, IDataTypeConfig } from 'tdp_publicdb'; -import { Cohort } from '../Cohort'; -import { ICohort } from '../CohortInterfaces'; -import { HistRouteType, ICohortDBHistDataParms, ICohortDBHistPanelParms, ICohortDBHistScoreDepletionParms, ICohortDBHistScoreParms, IEqualsList, INumRange } from '../rest'; -import { IOption } from '../Taskview/SearchBar'; -import { IAttributeFilter } from '../util'; -import { ISpecialAttribute } from './SpecialAttribute'; -export declare type AttributeType = 'categorical' | 'number' | 'string'; -export declare type ScoreType = 'depletion' | 'expression' | 'copy_number' | 'mutation'; -export declare type IdValuePair = { - id: string; - [key: string]: any; -}; -export interface IAttributeJSON { - option: IOption; - currentDB: string; - currentView: string; -} -/** - * base type for ServerColumns and ScoreColumn - * id, view, and database are needed for the methods in rest.ts - */ -export interface IAttribute { - /** - * id database access the data - */ - id: string; - /** - * datakey with which the attributes data can be accessed frontend - * necessary as GeneScoreAttributes have the same id for TPM, Copy Number, etc of the same gene - */ - dataKey: string; - /** - * view to access the data - */ - view: string; - /** - * database to access the data - */ - database: string; - /** - * label of this column for display to the user by default the column name - */ - label: string; - /** - * column type - */ - type: AttributeType; - /** - * the categories in case of type=categorical - */ - categories?: string[]; - /** - * the minimal value in case of type=number - */ - min?: number; - /** - * the maxmial value in case of type=number - */ - max?: number; - /** - * wether the attribute is best shown on a log scale - */ - preferLog: boolean; - getData(cohortDbId: number, filters?: IAllFilters): Promise; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{ - bin: string; - count: number; - }[]>; - getCount(cohortDbId: number, filters?: IAllFilters): Promise; - filter(cht: ICohort, filter: INumRange[] | IEqualsList): Promise; - toJSON(): any; -} -export declare abstract class Attribute implements IAttribute { - readonly id: string; - readonly view: string; - readonly database: string; - readonly type: AttributeType; - preferLog: boolean; - min?: number; - max?: number; - categories?: string[]; - label: string; - dataKey: string; - constructor(id: string, view: string, database: string, type: AttributeType); - getData(cohortDbId: number, filters?: IAllFilters): Promise; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{ - bin: string; - count: number; - }[]>; - getCount(cohortDbId: number, filters?: IAllFilters): Promise; - abstract filter(cht: ICohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise; - abstract toJSON(): IAttributeJSON; -} -export declare class ServerColumnAttribute extends Attribute { - readonly id: string; - readonly view: string; - readonly database: string; - readonly serverColumn: IServerColumn; - resolvedDataType: { - dataType: IDataTypeConfig; - dataSubType: IDataSubtypeConfig; - }; - constructor(id: string, view: string, database: string, serverColumn: IServerColumn); - filter(cht: Cohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise; - toJSON(): IAttributeJSON; -} -export declare class SpecialAttribute extends Attribute { - readonly id: string; - readonly view: string; - readonly database: string; - readonly spAttribute: ISpecialAttribute; - readonly attrOption: string; - constructor(id: string, view: string, database: string, spAttribute: ISpecialAttribute, attrOption: string); - getData(cohortDbId: number, filters?: IAllFilters): Promise; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - filter(cht: Cohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise; - toJSON(): IAttributeJSON; -} -export declare abstract class AScoreAttribute extends Attribute { - readonly id: string; - readonly view: string; - readonly database: string; - readonly type: AttributeType; - constructor(id: string, view: string, database: string, type: AttributeType); - getCount(): Promise; -} -/** - * TODO: Compare with SingleDepletionScore in tdp_publicdb/src/scores/SingleScore.ts - */ -export declare class GeneScoreAttribute extends AScoreAttribute { - readonly id: string; - readonly gene: string; - readonly view: string; - readonly database: string; - readonly scoreType: ScoreType; - readonly scoreSubType: IDataSubtypeConfig; - resolvedDataType: { - dataType: IDataTypeConfig; - dataSubType: IDataSubtypeConfig; - }; - constructor(id: string, gene: string, view: string, database: string, scoreType: ScoreType, scoreSubType: IDataSubtypeConfig); - getData(cohortDbId: number, filters?: IAllFilters): Promise; - filter(cht: Cohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise; - /** - * little helper to avoid duplicate code - */ - getParam(): { - table: string; - attribute: string; - name: string; - species: string; - target: string; - }; - /** - * depletion views are a bit special - */ - getView(): string; - /** - * depletion needs an extra filter - */ - updateFilters(filters: IAllFilters): IAllFilters; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - toJSON(): IAttributeJSON; -} -export declare class PanelScoreAttribute extends AScoreAttribute { - getData(cohortDbId: number, filters?: IAllFilters): Promise; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - filter(cht: Cohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise; - toJSON(): IAttributeJSON; -} -export declare function toAttribute(option: IOption, currentDB: any, currentView: any): IAttribute; -export declare function multiFilter(baseCohort: Cohort, attributes: IAttribute[], filters: Array): Promise; -export declare function multiAttributeFilter(baseCohort: Cohort, filters: IAttributeFilter[]): Promise; diff --git a/dist/data/Attribute.js b/dist/data/Attribute.js deleted file mode 100644 index f3891fc..0000000 --- a/dist/data/Attribute.js +++ /dev/null @@ -1,427 +0,0 @@ -import { resolveDataTypes } from 'tdp_publicdb'; -import { createCohortWithDepletionScoreFilter, createCohortWithEqualsFilter, createCohortWithGeneEqualsFilter, createCohortWithGeneNumFilter, createCohortWithNumFilter, createCohortWithPanelAnnotationFilter } from '../Cohort'; -import { getCohortData, getCohortDepletionScore, getCohortGeneScore, getCohortHist, getCohortPanelAnnotation, getCohortSize, HistRouteType } from '../rest'; -import { deepCopy, getSessionStorageItem, log, setSessionStorageItem } from '../util'; -import { easyLabelFromFilter, easyLabelFromFilterArray, niceName } from '../utilLabels'; -export class Attribute { - constructor(id, view, database, type) { - this.id = id; - this.view = view; - this.database = database; - this.type = type; - this.preferLog = false; - this.label = niceName(this.id); //default - this.dataKey = this.id; //identical by default - // console.log('attribute Option: ', option); - // console.log('attribute JSON: ', this.toJSON()); - } - async getData(cohortDbId, filters) { - const rows = await getCohortData({ cohortId: cohortDbId, attribute: this.id }); - return rows; - } - getHist(dbId, filters, bins) { - const params = { - cohortId: dbId, - attribute: this.id - }; - const type = this.type === 'number' ? HistRouteType.dataNum : HistRouteType.dataCat; - return this.getHistWithStorage(type, params); - } - async getHistWithStorage(histType, params) { - // define storagekey as cohort dbId and attribute label - const storageKey = `${params.cohortId}#${this.label}`; - let histData = getSessionStorageItem(storageKey); // get histogram from session storage - // check if histogram was saved in sesison storage - if (histData === null) { - histData = await getCohortHist(histType, params); // get histrogram from DB - setSessionStorageItem(storageKey, histData); // save retrieved histogram to session storage - } - return histData; - } - getCount(cohortDbId, filters) { - return getCohortSize({ cohortId: cohortDbId }); - } -} -export class ServerColumnAttribute extends Attribute { - constructor(id, view, database, serverColumn) { - super(id, view, database, serverColumn.type); - this.id = id; - this.view = view; - this.database = database; - this.serverColumn = serverColumn; - this.label = niceName(serverColumn.label); - this.categories = serverColumn.categories; - } - async filter(cht, filter, rangeLabel) { - if (Array.isArray(filter)) { - // TODO label - // const label = rangeLabel ? rangeLabel : filter.map((a) => labelFromFilter(a, this)).join(' / '); - const label = rangeLabel ? rangeLabel : filter.map((a) => easyLabelFromFilter(a, this.label)).join(' / '); - return createCohortWithNumFilter(cht, niceName(this.id), label, this.id, filter); - } - else { - // TODO label - // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); - const label = rangeLabel ? rangeLabel : easyLabelFromFilter(filter, this.label); - return createCohortWithEqualsFilter(cht, niceName(this.id), label, this.id, this.type === 'number' ? 'true' : 'false', filter.values); - } - } - toJSON() { - const option = { - optionId: this.id, - optionType: 'dbc', - optionText: null, - optionData: { - serverColumn: this.serverColumn, - } - }; - return { - option, - currentDB: this.database, - currentView: this.view - }; - } -} -export class SpecialAttribute extends Attribute { - constructor(id, view, database, spAttribute, attrOption) { - super(id, view, database, spAttribute.type); - this.id = id; - this.view = view; - this.database = database; - this.spAttribute = spAttribute; - this.attrOption = attrOption; - this.spAttribute.attributeOption = this.attrOption; - this.label = this.spAttribute.label; - this.dataKey = this.spAttribute.dataKey; - } - async getData(cohortDbId, filters) { - let rows = []; - if (this.spAttribute.overrideGetData) { - rows = await this.spAttribute.getData(cohortDbId); - } //else { - // rows = await super.getData(cohortDbId, filters); - // } - return rows; - } - async getHist(dbId, filters, bins) { - if (this.spAttribute.overrideGetHist) { - return await this.spAttribute.getHist(dbId, filters, bins); - } - return null; - } - async filter(cht, filter, rangeLabel) { - if (this.spAttribute.overrideFilter) { - // this.spAttribute.attributeOption = this.attrOption; - // TODO label - //const label = rangeLabel ? rangeLabel : labelFromFilterArray(filter, this); - const filterLabel = easyLabelFromFilterArray(filter, this.label); - const label = rangeLabel ? rangeLabel : filterLabel; - return await this.spAttribute.filter(cht, filter, label); - } //else { - // rows = await super.filter(cht, filter); - // } - return null; - } - toJSON() { - const option = { - optionId: this.id, - optionType: 'dbc', - optionText: null, - optionData: { - spAttribute: this.spAttribute, - attrOprtion: this.attrOption, - } - }; - return { - option, - currentDB: this.database, - currentView: this.view - }; - } -} -export class AScoreAttribute extends Attribute { - constructor(id, view, database, type) { - super(id, view, database, type); - this.id = id; - this.view = view; - this.database = database; - this.type = type; - } - async getCount() { - return -1; // dummy - } -} -/** - * Returns the depletion screen (whatever that is) for the given score sub type id - * @param subTypeID known subtype ids are ['rsa', 'ataris', 'ceres'] but we are just checking if it is ceres or not. - */ -function getDepletionscreen(subTypeID) { - return subTypeID === 'ceres' ? 'Avana' : 'Drive'; // copied form tdp_public 🤷‍♂️ -} -/** - * TODO: Compare with SingleDepletionScore in tdp_publicdb/src/scores/SingleScore.ts - */ -export class GeneScoreAttribute extends AScoreAttribute { - constructor(id, gene, view, database, scoreType, scoreSubType) { - super(id, view, database, subType2Type(scoreSubType.type)); - this.id = id; - this.gene = gene; - this.view = view; - this.database = database; - this.scoreType = scoreType; - this.scoreSubType = scoreSubType; - this.label = gene + ': ' + scoreSubType.name; - this.preferLog = this.scoreType === 'expression'; - if (scoreSubType.domain) { - this.min = scoreSubType.domain[0]; - this.max = scoreSubType.domain[1]; - } - if (scoreSubType.categories) { - this.categories = scoreSubType.categories.map((cat) => cat.label); - } - this.resolvedDataType = resolveDataTypes(scoreType, scoreSubType.id); - this.dataKey = `${this.id}-${this.resolvedDataType.dataSubType.id}`; - } - async getData(cohortDbId, filters) { - const param = this.getParam(); - const scoreView = this.getView(); - const scoreFilters = this.updateFilters(filters); - let scores = []; - if (this.scoreType === 'depletion') { - const params = { - cohortId: cohortDbId, - table: param.table, - attribute: param.attribute, - ensg: param.name, - depletionscreen: getDepletionscreen(this.scoreSubType.id) - }; - scores = await getCohortDepletionScore(params); - } - else { - const params = { - cohortId: cohortDbId, - table: param.table, - attribute: param.attribute, - ensg: param.name - }; - scores = await getCohortGeneScore('tissue', params); - } - // rename score property to : - // BUT:Id is the same for relative copy number, tpm, etc --> we need a suffix - return scores.map((score) => { - const enhancedObj = Object.assign(score, { [this.dataKey]: score.score }); - delete enhancedObj.score; // remove score as it was stored at dataKey - return enhancedObj; - }); - } - async filter(cht, filter, rangeLabel) { - const param = this.getParam(); - if (Array.isArray(filter)) { - // TODO label - // const label = rangeLabel ? rangeLabel : filter.map((a) => labelFromFilter(a, this)).join(' / '); - const label = rangeLabel ? rangeLabel : filter.map((a) => easyLabelFromFilter(a, this.label)).join(' / '); - if (this.scoreType === 'depletion') { - const depletionscreen = getDepletionscreen(this.scoreSubType.id); - return createCohortWithDepletionScoreFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, depletionscreen, filter); - } - else { - return createCohortWithGeneNumFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, filter); - } - } - else { - // TODO label - // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); - const label = rangeLabel ? rangeLabel : easyLabelFromFilter(filter, this.label); - return createCohortWithGeneEqualsFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, this.type === 'number' ? 'true' : 'false', filter.values); - } - } - /** - * little helper to avoid duplicate code - */ - getParam() { - return { - table: this.resolvedDataType.dataType.tableName, - attribute: this.resolvedDataType.dataSubType.id, - name: this.id, - species: 'human', - target: niceName(this.view) - }; - } - /** - * depletion views are a bit special - */ - getView() { - let scoreView = this.view + '_gene_single_score'; - if (this.scoreType === 'depletion') { - scoreView = 'depletion_' + scoreView; // necessary prefix - } - return scoreView; - } - /** - * depletion needs an extra filter - */ - updateFilters(filters) { - if (this.scoreType === 'depletion') { - const depletionscreen = this.scoreSubType.id === 'ceres' ? 'Avana' : 'Drive'; // copied form tdp_public 🤷‍♂️ - if (filters) { - filters = deepCopy(filters); // don't mess with the cohorts filters - filters.normal.depletionscreen = depletionscreen; - } - else { - filters = { - normal: { depletionscreen }, - lt: {}, - lte: {}, - gt: {}, - gte: {} - }; - } - } - return filters; - } - async getHist(dbId, filters, bins) { - const param = this.getParam(); - let params = { - cohortId: dbId, - attribute: param.attribute, - table: param.table, - ensg: param.name - }; - let type = this.type === 'number' ? HistRouteType.geneScoreNum : HistRouteType.geneScoreCat; - // depletion score - if (this.scoreType === 'depletion') { - const depletionscreen = this.scoreSubType.id === 'ceres' ? 'Avana' : 'Drive'; // copied form tdp_public - params.depletionscreen = depletionscreen; - params = params; - type = HistRouteType.depletionScore; - } - return this.getHistWithStorage(type, params); - } - toJSON() { - const option = { - optionId: this.id, - optionType: 'gene', - optionText: this.gene, - optionData: { - type: this.scoreType, - subType: this.scoreSubType - } - }; - return { - option, - currentDB: this.database, - currentView: this.view - }; - } -} -export class PanelScoreAttribute extends AScoreAttribute { - async getData(cohortDbId, filters) { - const params = { - cohortId: cohortDbId, - panel: this.id - }; - const scores = await getCohortPanelAnnotation('tissue', params); - // rename score property to : - // BUT:Id is the same for relative copy number, tpm, etc --> we need a suffix - return scores.map((score) => { - const enhancedObj = Object.assign(score, { [this.dataKey]: score.score }); - delete enhancedObj.score; // remove score as it was stored at dataKey - return enhancedObj; - }); - } - async getHist(dbId, filters, bins) { - const params = { - cohortId: dbId, - panel: this.id - }; - const type = HistRouteType.panelAnnotation; - return this.getHistWithStorage(type, params); - } - async filter(cht, filter, rangeLabel) { - if (Array.isArray(filter)) { - throw new Error('not implemented ☠'); - } - else { - // TODO label - // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); - const label = rangeLabel ? rangeLabel : easyLabelFromFilter(filter, this.label); - const stringValues = filter.values.map((item) => item.toString()); //convert potential numbers to string - return createCohortWithPanelAnnotationFilter(cht, niceName(this.id), label, this.id, stringValues); - } - } - toJSON() { - const option = { - optionId: this.id, - optionType: 'panel', - optionText: null, - }; - return { - option, - currentDB: this.database, - currentView: this.view - }; - } -} -export function toAttribute(option, currentDB, currentView) { - if (option.optionType === 'dbc') { - if (option.optionData && option.optionData.spAttribute) { - // Create Special Attribtues - // if (option.optionData.spA === 'treatment') { - log.debug('create special Attribute: ', option.optionId); - log.debug('special Attribute object: ', option.optionData.spAttribute); - return new SpecialAttribute(option.optionId, currentView, currentDB, option.optionData.spAttribute, option.optionData.attrOption); - } - else { - // Create Attribute - return new ServerColumnAttribute(option.optionId, currentView, currentDB, option.optionData.serverColumn); - } - } - else { - // Create ScoreAttribute - if (option.optionType === 'gene') { - return new GeneScoreAttribute(option.optionId, option.optionText, currentView, currentDB, option.optionData.type, option.optionData.subType); - } - else if (option.optionType === 'panel') { - return new PanelScoreAttribute(option.optionId, currentView, currentDB, 'categorical'); - } - } -} -function subType2Type(subType) { - // one of number, string, cat, boxplot - switch (subType) { - case 'number': - case 'string': - return subType; - case 'cat': - return 'categorical'; - case 'boxplot': - default: - throw new Error('No Support for type: ' + subType); - } -} -export async function multiFilter(baseCohort, attributes, filters) { - if (attributes.length !== filters.length) { - throw new Error(`Number of filters has to match the number of attribtues`); - } - return multiAttributeFilter(baseCohort, attributes.map((attr, i) => ({ attr, range: filters[i] }))); -} -export async function multiAttributeFilter(baseCohort, filters) { - let newCohort = baseCohort; - const labelOne = []; - const labelTwo = []; - const values = []; - for (const attrFilter of filters) { - newCohort = await attrFilter.attr.filter(newCohort, attrFilter.range); - labelOne.push(newCohort.labelOne); - labelTwo.push(newCohort.labelTwo); - values.push(...newCohort.values); - } - // when only one filter is used the labels don't have to be set again - // minimizes the number of time a cohort in the DB has to be updated - if (filters.length > 1) { - newCohort.setLabels(labelOne.join(', '), labelTwo.join(', ')); - newCohort.values = values; - } - return newCohort; -} -//# sourceMappingURL=Attribute.js.map \ No newline at end of file diff --git a/dist/data/Attribute.js.map b/dist/data/Attribute.js.map deleted file mode 100644 index 869ff62..0000000 --- a/dist/data/Attribute.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../src/data/Attribute.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACnF,OAAO,EAAS,oCAAoC,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,6BAA6B,E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IACpB,MAAM,MAAM,GAAG,EAAE,CAAC;IAElB,KAAK,MAAM,UAAU,IAAI,OAAO,EAAE;QAChC,SAAS,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QACtE,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAClC,MAAM,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;KAClC;IAED,qEAAqE;IACrE,oEAAoE;IACpE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;QACtB,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9D,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;KAC3B;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/dist/data/SpecialAttribute.d.ts b/dist/data/SpecialAttribute.d.ts deleted file mode 100644 index d6c542f..0000000 --- a/dist/data/SpecialAttribute.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { IAllFilters } from 'tdp_core'; -import { Cohort } from '../Cohort'; -import { HistRouteType, ICohortDBHistDataParms, ICohortDBHistPanelParms, ICohortDBHistScoreDepletionParms, ICohortDBHistScoreParms, IEqualsList, INumRange } from '../rest'; -import { AttributeType, IdValuePair } from './Attribute'; -export interface ISpecialAttribute { - readonly overrideSearchBarDetails: boolean; - readonly overrideGetData: boolean; - readonly overrideGetHist: boolean; - readonly overrideGetCount: boolean; - readonly overrideFilter: boolean; - /** - * id database access the data - */ - readonly id: string; - label: string; - type: AttributeType; - dataKey: string; - /** - * Possible options the attribute could be formated - */ - options: { - id: string; - name: string; - }[]; - /** - * Option that is should be used to format the data - */ - attributeOption: string; - getDetailForSearchBar(): HTMLDivElement; - getData(cohortDbId: number, filters?: IAllFilters): Promise; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{ - bin: string; - count: number; - }[]>; - getCount(cohortDbId: number, filters?: IAllFilters): Promise; - filter(cht: Cohort, filter: INumRange[] | IEqualsList, label: string): Promise; -} -export declare class SATreatment implements ISpecialAttribute { - readonly overrideSearchBarDetails: boolean; - readonly overrideGetData: boolean; - readonly overrideGetHist: boolean; - readonly overrideGetCount: boolean; - readonly overrideFilter: boolean; - static ID: string; - type: AttributeType; - readonly id: string; - options: { - id: string; - name: string; - }[]; - private _attributeOption; - private _dataKey; - private _label; - constructor(); - get attributeOption(): string; - set attributeOption(value: string); - get dataKey(): string; - get label(): string; - setupOptions(): Promise; - combineAgentsIntoString(agents: string[]): string; - getDetailForSearchBar(): HTMLDivElement; - getData(cohortDbId: number, filters?: IAllFilters): Promise; - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ - bin: string; - count: number; - }[]>; - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{ - bin: string; - count: number; - }[]>; - getCount(cohortDbId: number, filters?: IAllFilters): Promise; - filter(cht: Cohort, filter: INumRange[] | IEqualsList, label: string): Promise; -} -export declare function checkSpecialAttribute(attributeId: string): ISpecialAttribute; diff --git a/dist/data/SpecialAttribute.js b/dist/data/SpecialAttribute.js deleted file mode 100644 index 688856c..0000000 --- a/dist/data/SpecialAttribute.js +++ /dev/null @@ -1,295 +0,0 @@ -import _ from 'lodash'; -import { createCohortWithTreatmentFilter } from '../Cohort'; -import { getRootCohort } from '../cohortview'; -import { getCohortData } from '../rest'; -import { deepCopy, getSessionStorageItem, log, setSessionStorageItem } from '../util'; -import { niceName } from '../utilLabels'; -export class SATreatment { - constructor() { - this.overrideSearchBarDetails = true; - this.overrideGetData = true; - this.overrideGetHist = true; - this.overrideGetCount = true; - this.overrideFilter = true; - this.type = 'string'; - this.options = []; - this.id = SATreatment.ID; - this.setupOptions(); - } - get attributeOption() { - return this._attributeOption; - } - set attributeOption(value) { - this._attributeOption = value; - this._dataKey = this.id + ':' + this._attributeOption; - const name = this.options.filter((opt) => opt.id === this._attributeOption)[0].name; - this._label = niceName(this.id + ':' + name); - } - get dataKey() { - return this._dataKey; - } - // public set dataKey(value: string) { - // this._dataKey = value; - // } - get label() { - return this._label; - } - // public set label(value: string) { - // this._label = value; - // } - async setupOptions() { - const storageKey = `treatment#maxRegimen`; - let maxRegimen = getSessionStorageItem(storageKey); // get histogram from session storage - // check if histogram was saved in sesison storage - if (maxRegimen === null || getSessionStorageItem('treatment#categoriesHist') === null || getSessionStorageItem('treatment#categoriesBaseHist') === null) { - let calcMaxRegimen = 0; - const rootCohort = getRootCohort(); - const rows = await getCohortData({ cohortId: rootCohort.dbId, attribute: this.id }); - // const maxRegimenNumbRows = Math.max(...rows.map((r) => r.treatment).map((t) => t.REGIMEN_NUMBER)); - // const maxRegimenNumb = Math.max(...maxRegimenNumbRows); - rows.forEach((row) => { - if (row.treatment) { - const regimenNumbers = row.treatment.map((t) => t.REGIMEN_NUMBER); - const currMaxRegimen = Math.max(...regimenNumbers); - calcMaxRegimen = Math.max(calcMaxRegimen, currMaxRegimen); - } - }); - setSessionStorageItem(storageKey, calcMaxRegimen); // save retrieved histogram to session storage - maxRegimen = calcMaxRegimen; - // define the histograms - // regNumb = 0 -> all regimens - const histCategories = []; - const histBaseCategories = []; - for (let i = 0; i <= maxRegimen; i++) { - const currHist = { regNumb: i, categories: [] }; - histCategories.push(currHist); - histBaseCategories.push(deepCopy(currHist)); - } - const tempAgents = []; - rows.forEach((row) => { - var _a, _b, _c, _d; - if (row.treatment) { - for (let i = 1; i <= maxRegimen; i++) { - const currTreatment = row.treatment; - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === i)); - const currAgents = currRegimen.map((t) => t.AGENT); - const newBaseValue = currAgents.length === 0 ? ['null'] : deepCopy(currAgents); - const newValue = currAgents.length === 0 ? 'null' : this.combineAgentsIntoString(currAgents); // combine all agents - const currHist = histCategories.filter((elem) => (elem.regNumb === i))[0]; - currHist.categories.push(newValue); - const currHistBase = histBaseCategories.filter((elem) => (elem.regNumb === i))[0]; - currHistBase.categories.push(...newBaseValue); - } - } - // if there is no treatment (=null) for a row than that means ther is also no treatment for regimen number = 1 - // add for both the null categorie - (_a = histCategories.filter((elem) => (elem.regNumb === 0))[0]) === null || _a === void 0 ? void 0 : _a.categories.push('null'); - (_b = histCategories.filter((elem) => (elem.regNumb === 1))[0]) === null || _b === void 0 ? void 0 : _b.categories.push('null'); - (_c = histBaseCategories.filter((elem) => (elem.regNumb === 0))[0]) === null || _c === void 0 ? void 0 : _c.categories.push('null'); - (_d = histBaseCategories.filter((elem) => (elem.regNumb === 1))[0]) === null || _d === void 0 ? void 0 : _d.categories.push('null'); - }); - // get all regimen hists - const histAllReg = histCategories.filter((elem) => (elem.regNumb === 0))[0]; - const histBaseAllReg = histBaseCategories.filter((elem) => (elem.regNumb === 0))[0]; - // remove duplicate categories and define all regimen categories - for (let i = 1; i <= maxRegimen; i++) { - const currHist = histCategories.filter((elem) => (elem.regNumb === i))[0]; - currHist.categories = [...new Set(currHist.categories)].sort(); - histAllReg.categories.push(...currHist.categories); - const currBaseHist = histBaseCategories.filter((elem) => (elem.regNumb === i))[0]; - currBaseHist.categories = [...new Set(currBaseHist.categories)].sort(); - histBaseAllReg.categories.push(...currBaseHist.categories); - } - // remove duplicates for the all regimens hists - histAllReg.categories = [...new Set(histAllReg.categories)].sort(); - histBaseAllReg.categories = [...new Set(histBaseAllReg.categories)].sort(); - setSessionStorageItem('treatment#categoriesHist', histCategories); // save retrieved histogram to session storage - setSessionStorageItem('treatment#categoriesBaseHist', histBaseCategories); // save retrieved histogram to session storage - } - const opts = []; - // agent combination for all regimen - opts.push({ id: 'treatment:all_agents', name: 'All Regimens' }); - // agent combination per regimen - for (let i = 1; i <= maxRegimen; i++) { - const currOpt = { id: `treatment:rg_${i}`, name: `Regimen ${i}` }; - opts.push(currOpt); - } - // agent combination for all regimen - opts.push({ id: 'treatment:base:all_agents', name: 'All Regimens (Base)' }); - // base combination per regimen - for (let i = 1; i <= maxRegimen; i++) { - const currOpt = { id: `treatment:base:rg_${i}`, name: `Regimen ${i} (Base)` }; - opts.push(currOpt); - } - // log.debug('Treatment Options: ', opts); - this.options = opts; - } - combineAgentsIntoString(agents) { - return agents.sort().join(', '); - } - getDetailForSearchBar() { - throw new Error('Method not implemented.'); - } - async getData(cohortDbId, filters) { - let rows = await getCohortData({ cohortId: cohortDbId, attribute: this.id }); - // log.debug('first row: ', JSON.stringify(rows[0])); - const propTn = 'tissuename'; - if (this.attributeOption === 'treatment:all_agents' || this.attributeOption === 'treatment:base:all_agents') { - const newRows = []; - rows.forEach((row) => { - if (row.treatment) { - const currTreatment = row.treatment; - const maxRegimen = Math.max(...currTreatment.map((t) => t.REGIMEN_NUMBER)); - const agents = new Set(); - for (let i = 1; i <= maxRegimen; i++) { - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === i)); - const currAgents = currRegimen.map((t) => t.AGENT); - if (this.attributeOption === 'treatment:base:all_agents') { - currAgents.reduce((set, agent) => set.add(agent), agents); - } - else { // = treatment:all_agents - const newValue = currAgents.length === 0 ? null : this.combineAgentsIntoString(currAgents); // combine all agents - agents.add(newValue); // add to set to remove possible duplicates - } - } - newRows.push(...Array.from(agents).map((agent) => ({ [propTn]: row[propTn], treatment: agent }))); - } - else { - newRows.push({ [propTn]: row[propTn], treatment: null }); // no treatment for item - } - }); - rows = newRows; - // log.debug('Agents for all regimens: ', rows); - } - else if (this.attributeOption.includes('treatment:rg_')) { - const rgNumb = Number(this.attributeOption.slice(-1)); - rows.forEach((row) => { - if (row.treatment) { - const currTreatment = row.treatment; - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === rgNumb)); - const currAgents = currRegimen.map((t) => t.AGENT); - const newValue = currAgents.length === 0 ? null : this.combineAgentsIntoString(currAgents); - row.treatment = newValue; - } - }); - // log.debug('Agents per regimen: ', rgNumb, rows); - } - else if (this.attributeOption.includes('treatment:base:rg_')) { - const newRows = []; - const rgNumb = Number(this.attributeOption.slice(-1)); - rows.forEach((row) => { - if (row.treatment) { - const currTreatment = row.treatment; - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === rgNumb)); - let currAgents = currRegimen.map((t) => { return { [propTn]: row[propTn], treatment: t.AGENT }; }); - currAgents = currAgents.length === 0 ? [{ treatment: null }] : currAgents; - newRows.push(...currAgents); - } - else { - newRows.push({ [propTn]: row[propTn], treatment: null }); - } - }); - rows = newRows; - // log.debug('Base Agents per regimen: ', rgNumb, rows); - } - else { - log.warn('This attribute option is not yet implemented'); - rows = []; - } - // rename treatment (=id) property to <_dataKey>: has to be done to differentiate between the options - // otherwise having the same attribute with different options would not work - rows.map((row) => { - const treatmentObj = Object.assign(row, { [this._dataKey]: row.treatment }); - delete treatmentObj.treatment; // remove score as it was stored at dataKey - return treatmentObj; - }); - // log.debug('first row: ', JSON.stringify(rows.slice(0, 4))); - return rows; - } - async getHist(dbId, filters, bins) { - // define storagekey as cohort dbId and attribute label - const storageKey = `${dbId}#${this.id}#${this.attributeOption}`; - let histData = getSessionStorageItem(storageKey); // get histogram from session storage - // check if histogram was saved in sesison storage - if (histData === null) { - const rows = await this.getData(dbId); - const valTreatement = rows.map((elem) => elem[this._dataKey]); - const lodashCountBy = _.countBy(valTreatement); - // log.debug('lodash frequency plot: ', lodashCountBy); - let currHistCategories = []; - if (this.attributeOption.includes('treatment:base')) { - // base agents plot - const categoriesBaseHist = getSessionStorageItem('treatment#categoriesBaseHist'); - if (this.attributeOption.includes('all_agents')) { - // all agents - currHistCategories = categoriesBaseHist.filter((elem) => elem.regNumb === 0)[0].categories; - } - else { - // regimen number - const rgNumb = Number(this.attributeOption.split('rg_')[1]); - // log.debug('base reg number: ', rgNumb); - currHistCategories = categoriesBaseHist.filter((elem) => elem.regNumb === rgNumb)[0].categories; - } - } - else { - // agents (combination) plot - const categoriesHist = getSessionStorageItem('treatment#categoriesHist'); - if (this.attributeOption.includes('all_agents')) { - // all agents - currHistCategories = categoriesHist.filter((elem) => elem.regNumb === 0)[0].categories; - } - else { - // regimen number - const rgNumb = Number(this.attributeOption.split('rg_')[1]); - // log.debug('base reg number: ', rgNumb); - currHistCategories = categoriesHist.filter((elem) => elem.regNumb === rgNumb)[0].categories; - } - } - // log.debug('all categories of dataset: ', currHistCategories); - histData = currHistCategories.map((cat) => { return { bin: cat, count: 0 }; }); - histData.forEach((elem) => { - const name = elem.bin; - const count = lodashCountBy[name]; - elem.count = count === undefined || null ? 0 : count; - }); - // log.debug('finished hist: ', histData); - setSessionStorageItem(storageKey, histData); // save retrieved histogram to session storage - } - return await histData; - } - getHistWithStorage(histType, params) { - throw new Error('Method not implemented.'); - } - getCount(cohortDbId, filters) { - throw new Error('Method not implemented.'); - } - filter(cht, filter, label) { - log.debug('FILTER of special attribute: ', { cht, filter }); - const optName = this.options.filter((o) => o.id === this.attributeOption)[0].name; - const baseAgent = this.attributeOption.includes('base'); - if (!Array.isArray(filter)) { - const agent = filter.values; - if (this.attributeOption.includes('all_agents')) { - // with all regimens - return createCohortWithTreatmentFilter(cht, niceName(`${this.id}:${optName}`), label, baseAgent, agent, null); - } - else if (this.attributeOption.includes(':rg_')) { - // only for one regimen - const rgNumb = Number(this.attributeOption.slice(-1)); - return createCohortWithTreatmentFilter(cht, niceName(`${this.id}:${optName}`), label, baseAgent, agent, rgNumb); - } - } - } -} -SATreatment.ID = 'treatment'; -const specAttributes = [{ id: SATreatment.ID, getClass: () => { return new SATreatment(); } }]; -export function checkSpecialAttribute(attributeId) { - let specialAttribute = null; - for (const attr of specAttributes) { - if (attributeId === attr.id) { - specialAttribute = attr.getClass(); - } - } - return specialAttribute; -} -//# sourceMappingURL=SpecialAttribute.js.map \ No newline at end of file diff --git a/dist/data/SpecialAttribute.js.map b/dist/data/SpecialAttribute.js.map deleted file mode 100644 index b7974c4..0000000 --- a/dist/data/SpecialAttribute.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SpecialAttribute.js","sourceRoot":"","sources":["../../src/data/SpecialAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAS,+BAA+B,EAAC,MAAM,WAAW,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAoJ,MAAM,SAAS,CAAC;AACzL,OAAO,EAAC,QAAQ,EAAE,qBAAqB,EAAE,GAAG,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAC;AACpF,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AA4CvC,MAAM,OAAO,WAAW;IAetB;QAdS,6BAAwB,GAAY,IAAI,CAAC;QACzC,oBAAe,GAAY,IAAI,CAAC;QAChC,oBAAe,GAAY,IAAI,CAAC;QAChC,qBAAgB,GAAY,IAAI,CAAC;QACjC,mBAAc,GAAY,IAAI,CAAC;QAExC,SAAI,GAAG,QAAyB,CAAC;QAGjC,YAAO,GAAkC,EAAE,CAAC;QAM1C,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,EAAE,CAAC;QAEzB,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,IAAW,eAAe;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAW,eAAe,CAAC,KAAa;QACtC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC;Q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AW,WAAW,CAAC;AAyTlC,MAAM,cAAc,GAAuC,CAAC,EAAC,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAsB,EAAE,GAAE,OAAO,IAAI,WAAW,EAAE,CAAC,CAAA,CAAC,EAAC,CAAC,CAAC;AAElJ,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACvD,IAAI,gBAAgB,GAAG,IAAI,CAAC;IAC5B,KAAK,MAAM,IAAI,IAAI,cAAc,EAAE;QACjC,IAAI,WAAW,KAAK,IAAI,CAAC,EAAE,EAAE;YAC3B,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;SACpC;KACF;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/dist/data/index.d.ts b/dist/data/index.d.ts deleted file mode 100644 index d800a15..0000000 --- a/dist/data/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './Attribute'; diff --git a/dist/data/index.js b/dist/data/index.js deleted file mode 100644 index 442ad54..0000000 --- a/dist/data/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Attribute'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/data/index.js.map b/dist/data/index.js.map deleted file mode 100644 index df856e9..0000000 --- a/dist/data/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 995b787..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './data'; -export * from './Overview'; -export * from './Taskview'; -export * from './app'; -export * from './Cohort'; -export * from './CohortInterfaces'; -export * from './CohortRepresentations'; -export * from './cohortview'; -export * from './rest'; -export * from './util'; -export * from './utils'; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 16714fd..0000000 --- a/dist/index.js +++ /dev/null @@ -1,12 +0,0 @@ -export * from './data'; -export * from './Overview'; -export * from './Taskview'; -export * from './app'; -export * from './Cohort'; -export * from './CohortInterfaces'; -export * from './CohortRepresentations'; -export * from './cohortview'; -export * from './rest'; -export * from './util'; -export * from './utils'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 91ad5aa..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAE3B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/phovea.d.ts b/dist/phovea.d.ts deleted file mode 100644 index bd2c133..0000000 --- a/dist/phovea.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { IRegistry } from 'tdp_core'; -export default function (registry: IRegistry): void; diff --git a/dist/phovea.js b/dist/phovea.js deleted file mode 100644 index 12f4b30..0000000 --- a/dist/phovea.js +++ /dev/null @@ -1,45 +0,0 @@ -export default function (registry) { - // helper functions copied from tdp_core: - // ------------------------------------------------------------------------------------------------------- - function actionFunction(id, factory, loader, options) { - registry.push('actionFunction', id, loader, { factory, ...options }); - } - // id: id string for comporessor action - // factory: name of the compressor functtion - // matches: string that defines the actions that should be compressed '([function1_id]|[function2_id])' - function actionCompressor(id, factory, matches, loader) { - registry.push('actionCompressor', id, loader, { factory, matches }); - } - // Cohort action functions: - // ------------------------------------------------------------------------------------------------------- - /** - * Set the base data-set - */ - actionFunction('chtSetDataset', 'setDatasetImpl', () => import('./Provenance/General'), { - analytics: { - category: 'data', - action: 'setDatasetAction' // --> function to create an action in the prov tree - } - }); - // commented out due to errors in combination with Add/Remove Cohort actions - // actionCompressor('tdpCompressChtSetDataset', 'compressChtSetDataset', '(chtSetDataset)', () => import('./Provenance/Genera').then(); - /** - * Add Cohorts - */ - actionFunction('addCohorts', 'addOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), { - analytics: { - category: 'data', - action: 'addOverviewCohortAction' // --> function to create an action in the prov tree - } - }); - /** - * Remove Cohorts - */ - actionFunction('removeCohorts', 'removeOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), { - analytics: { - category: 'data', - action: 'removeOverviewCohortAction' // --> function to create an action in the prov tree - } - }); -} -//# sourceMappingURL=phovea.js.map \ No newline at end of file diff --git a/dist/phovea.js.map b/dist/phovea.js.map deleted file mode 100644 index 1dbb1cc..0000000 --- a/dist/phovea.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"phovea.js","sourceRoot":"","sources":["../src/phovea.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,WAAW,QAAmB;IAE1C,yCAAyC;IACzC,0GAA0G;IAC1G,SAAS,cAAc,CAAC,EAAU,EAAE,OAAe,EAAE,MAAiB,EAAE,OAAY;QAClF,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,EAAE,MAAM,EAAE,EAAC,OAAO,EAAE,GAAG,OAAO,EAAC,CAAC,CAAC;IACrE,CAAC;IAED,uCAAuC;IACvC,4CAA4C;IAC5C,uGAAuG;IACvG,SAAS,gBAAgB,CAAC,EAAU,EAAE,OAAe,EAAE,OAAe,EAAE,MAAiB;QACvF,QAAQ,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,EAAE,MAAM,EAAE,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;IACpE,CAAC;IAED,2BAA2B;IAC3B,0GAA0G;IAE1G;;OAEG;IACH,cAAc,CAAC,eAAe,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE;QACtF,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,kBAAkB,CAAC,oDAAoD;SAChF;KACF,CAAC,CAAC;IAEH,4EAA4E;IAC5E,uIAAuI;IAEvI;;OAEG;IACH,cAAc,CAAC,YAAY,EAAE,uBAAuB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,IAAI,EAAE,EAAE;QAClG,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,yBAAyB,CAAC,oDAAoD;SACvF;KACF,CAAC,CAAC;IAEH;;OAEG;IACH,cAAc,CAAC,eAAe,EAAE,0BAA0B,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,IAAI,EAAE,EAAE;QACxG,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,4BAA4B,CAAC,oDAAoD;SAC1F;KACF,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/dist/rest.d.ts b/dist/rest.d.ts deleted file mode 100644 index 82ce84e..0000000 --- a/dist/rest.d.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { IParams, IRow } from 'tdp_core'; -export interface ICohortDBParams extends IParams { - name: string; - isInitial: number; - previous: number; - database: string; - schema: string; - table: string; -} -export interface ICohortEqualsFilterParams extends IParams, IEqualsList { - cohortId: number; - attribute: string; - numeric: 'true' | 'false'; -} -export interface ICohortDBWithEqualsFilterParams extends ICohortEqualsFilterParams { - name: string; -} -export interface ICohortNumFilterParams { - cohortId: number; - attribute: string; - ranges: Array; -} -export interface ICohortGeneNumFilterParams extends ICohortNumFilterParams { - table: string; - ensg: string; -} -export interface ICohortGeneEqualsFilterParams extends ICohortEqualsFilterParams { - table: string; - ensg: string; -} -export interface ICohortDBWithNumFilterParams extends ICohortNumFilterParams { - name: string; -} -export declare const valueListDelimiter = "⸱"; -export interface IEqualsList { - values: Array | Array; -} -/** - * Type Guard 💂‍♂️ helper because interfaces can't be checked if instanceof - * @param filter - */ -export declare function isEqualsList(filter: INumRange | IEqualsList): filter is IEqualsList; -export declare enum NumRangeOperators { - lt = "lt", - lte = "lte", - gt = "gt", - gte = "gte" -} -export interface INumRange { - operatorOne: NumRangeOperators; - valueOne: number | 'null'; - operatorTwo?: NumRangeOperators; - valueTwo?: number | 'null'; -} -/** - * Type Guard 💂‍♂️ helper because interfaces can't be checked if instanceof - * @param filter - */ -export declare function isNumRangeFilter(filter: INumRange | IEqualsList): filter is INumRange; -export interface ICohortDBDataParams extends IParams { - cohortId: number; - attribute?: string; -} -export interface ICohortDBSizeParams extends IParams { - cohortId: number; -} -export interface ICohortDBCohortDataParams extends IParams { - cohortIds: number[]; -} -export interface ICohortDBUpdateName extends IParams { - cohortId: number; - name: string; -} -export interface ICohortDBGeneScoreParams extends IParams { - cohortId: number; - table: string; - attribute: string; - ensg: string; -} -export interface ICohortDBDepletionScoreParams extends ICohortDBGeneScoreParams { - depletionscreen: string; -} -export interface ICohortDBPanelAnnotationParams extends IParams { - cohortId: number; - panel: string; -} -export interface ICohortDepletionScoreFilterParams { - cohortId: number; - table: string; - attribute: string; - ensg: string; - depletionscreen: string; - ranges: Array; -} -export interface ICohortDBWithGeneNumFilterParams extends ICohortDBWithNumFilterParams { - table: string; - ensg: string; -} -export interface ICohortDBWithGeneEqualsFilterParams extends ICohortDBWithEqualsFilterParams { - table: string; - ensg: string; -} -export interface ICohortDBWithDepletionScoreFilterParams extends ICohortDBWithGeneNumFilterParams { - depletionscreen: string; -} -export interface ICohortDBWithPanelAnnotationFilterParams extends IParams { - cohortId: number; - name: string; - panel: string; - values: Array; -} -export interface ICohortPanelAnnotationFilterParams extends IParams { - cohortId: number; - panel: string; - values: Array; -} -export interface ICohortDBWithTreatmentFilterParams extends IParams { - cohortId: number; - name: string; - baseAgent: boolean; - agent?: Array; - regimen?: number; -} -/** - * Interface for the cohort tuple (row) in the DB - */ -export interface ICohortRow { - id: number; - name: string; - entity_database: string; - entity_schema: string; - entity_table: string; - is_initial: number; -} -export declare function createDBCohort(params: ICohortDBParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithEqualsFilter(params: ICohortDBWithEqualsFilterParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithNumFilter(params: ICohortDBWithNumFilterParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithGeneNumFilter(params: ICohortDBWithGeneNumFilterParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithGeneEqualsFilter(params: ICohortDBWithGeneEqualsFilterParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithDepletionScoreFilter(params: ICohortDBWithDepletionScoreFilterParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithPanelAnnotationFilter(params: ICohortDBWithPanelAnnotationFilterParams, assignIds?: boolean): Promise; -export declare function createDBCohortWithTreatmentFilter(params: ICohortDBWithTreatmentFilterParams, assignIds?: boolean): Promise; -/** - * returns the data a cohort represents - */ -export declare function getCohortData(params: ICohortDBDataParams, assignIds?: boolean): Promise; -export declare function getCohortSize(params: ICohortDBSizeParams, assignIds?: boolean): Promise; -/** - * returns the saved cohort tuples in the DB - */ -export declare function getDBCohortData(params: ICohortDBCohortDataParams, assignIds?: boolean): Promise; -/** - * updates the name of the cohort in the DB - * @returns the updated cohort data from the DB - */ -export declare function updateCohortName(params: ICohortDBUpdateName, assignIds?: boolean): Promise; -export declare function sizeDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, assignIds?: boolean): Promise; -export declare function dataDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, assignIds?: boolean): Promise; -export declare function sizeDBCohortWithNumFilter(params: ICohortNumFilterParams, assignIds?: boolean): Promise; -export declare function dataDBCohortWithNumFilter(params: ICohortNumFilterParams, assignIds?: boolean): Promise; -export declare function sizeDBCohortGeneWithNumFilter(params: ICohortGeneNumFilterParams, assignIds?: boolean): Promise; -export declare function dataDBCohortGeneWithNumFilter(params: ICohortGeneNumFilterParams, assignIds?: boolean): Promise; -export declare function sizeDBCohortGeneWithEqualsFilter(params: ICohortGeneEqualsFilterParams, assignIds?: boolean): Promise; -export declare function dataDBCohortGeneWithEqualsFilter(params: ICohortGeneEqualsFilterParams, assignIds?: boolean): Promise; -export declare function sizeDBCohortDepletionScoreFilter(params: ICohortDepletionScoreFilterParams, assignIds?: boolean): Promise; -export declare function dataDBCohortDepletionScoreFilter(params: ICohortDepletionScoreFilterParams, assignIds?: boolean): Promise; -export declare function sizeDBCohortPanelAnnotationFilter(params: ICohortPanelAnnotationFilterParams, assignIds?: boolean): Promise; -export declare function dataDBCohortPanelAnnotationFilter(params: ICohortPanelAnnotationFilterParams, assignIds?: boolean): Promise; -export declare function getCohortGeneScore(idType: 'tissue' | 'cellline' | 'more', params: ICohortDBGeneScoreParams, assignIds?: boolean): Promise; -export declare function getCohortDepletionScore(params: ICohortDBDepletionScoreParams, assignIds?: boolean): Promise; -export declare function getCohortPanelAnnotation(idType: 'tissue' | 'cellline' | 'gene' | 'more', params: ICohortDBPanelAnnotationParams, assignIds?: boolean): Promise; -export declare enum HistRouteType { - dataCat = "dataCat", - dataNum = "dataNum", - geneScoreCat = "geneScoreCat", - geneScoreNum = "geneScoreNum", - depletionScore = "depletionScore", - panelAnnotation = "panelAnnotation" -} -export interface ICohortDBHistDataParms extends IParams { - cohortId: number; - attribute: string; -} -export interface ICohortDBHistScoreParms extends ICohortDBHistDataParms { - table: string; - ensg: string; -} -export interface ICohortDBHistScoreDepletionParms extends ICohortDBHistScoreParms { - depletionscreen: string; -} -export interface ICohortDBHistPanelParms extends IParams { - cohortId: number; - panel: string; -} -export declare function getCohortHist(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, assignIds?: boolean): Promise<{ - bin: string; - count: number; -}[]>; diff --git a/dist/rest.js b/dist/rest.js deleted file mode 100644 index 7fa2840..0000000 --- a/dist/rest.js +++ /dev/null @@ -1,402 +0,0 @@ -import { Ajax, AppContext } from 'tdp_core'; -import { deepCopy, log } from './util'; -export const valueListDelimiter = '⸱'; -/** - * Type Guard 💂‍♂️ helper because interfaces can't be checked if instanceof - * @param filter - */ -export function isEqualsList(filter) { - return filter.values && Array.isArray(filter.values); // checking the type of the array requires to check every item but this should be sufficently safe -} -export var NumRangeOperators; -(function (NumRangeOperators) { - NumRangeOperators["lt"] = "lt"; - NumRangeOperators["lte"] = "lte"; - NumRangeOperators["gt"] = "gt"; - NumRangeOperators["gte"] = "gte"; -})(NumRangeOperators || (NumRangeOperators = {})); -/** - * Type Guard 💂‍♂️ helper because interfaces can't be checked if instanceof - * @param filter - */ -export function isNumRangeFilter(filter) { - return filter.operatorOne !== undefined && filter.valueOne !== undefined; // check the non-optional properties -} -var CohortRoutes; -(function (CohortRoutes) { - CohortRoutes["create"] = "create"; - CohortRoutes["createUseEqulasFilter"] = "createUseEqulasFilter"; - CohortRoutes["dataUseEqulasFilter"] = "dataUseEqulasFilter"; - CohortRoutes["sizeUseEqulasFilter"] = "sizeUseEqulasFilter"; - CohortRoutes["createUseNumFilter"] = "createUseNumFilter"; - CohortRoutes["dataUseNumFilter"] = "dataUseNumFilter"; - CohortRoutes["sizeUseNumFilter"] = "sizeUseNumFilter"; - CohortRoutes["createUseGeneNumFilter"] = "createUseGeneNumFilter"; - CohortRoutes["dataUseGeneNumFilter"] = "dataUseGeneNumFilter"; - CohortRoutes["sizeUseGeneNumFilter"] = "sizeUseGeneNumFilter"; - CohortRoutes["createUseGeneEqualsFilter"] = "createUseGeneEqualsFilter"; - CohortRoutes["sizeUseGeneEqualsFilter"] = "sizeUseGeneEqualsFilter"; - CohortRoutes["dataUseGeneEqualsFilter"] = "dataUseGeneEqualsFilter"; - CohortRoutes["cohortData"] = "cohortData"; - CohortRoutes["size"] = "size"; - CohortRoutes["getDBCohorts"] = "getDBCohorts"; - CohortRoutes["updateCohortName"] = "updateCohortName"; - CohortRoutes["geneScore"] = "geneScore"; - CohortRoutes["celllineDepletionScore"] = "celllineDepletionScore"; - CohortRoutes["createUseDepletionScoreFilter"] = "createUseDepletionScoreFilter"; - CohortRoutes["dataUseDepletionScoreFilter"] = "dataUseDepletionScoreFilter"; - CohortRoutes["sizeUseDepletionScoreFilter"] = "sizeUseDepletionScoreFilter"; - CohortRoutes["panelAnnotation"] = "panelAnnotation"; - CohortRoutes["createUsePanelAnnotationFilter"] = "createUsePanelAnnotationFilter"; - CohortRoutes["dataUsePanelAnnotationFilter"] = "dataUsePanelAnnotationFilter"; - CohortRoutes["sizeUsePanelAnnotationFilter"] = "sizeUsePanelAnnotationFilter"; - CohortRoutes["hist"] = "hist"; - CohortRoutes["createUseTreatmentFilter"] = "createUseTreatmentFilter"; -})(CohortRoutes || (CohortRoutes = {})); -// copy from tdp_gene/src/constants.ts -// for 'Copy Number Class' -// table: copynumber, attribtue: copynumberclass -const mapCopyNumberCat = [ - { value: 2, name: 'Amplification' }, - { value: -2, name: 'Deep Deletion' }, - //{value: -1, name: 'Heterozygous deletion'}, - { value: 0, name: 'NORMAL' }, - //{value: 1, name: 'Low level amplification'}, - //{value: 2, name: 'High level amplification'}, - { value: 'null', name: 'Unknown' }, - { value: '!null', name: '!null' } -]; -// for 'AA Mutated' and 'DNA Mutated' -// table: mutation, attribute: aa_mutated / dna_mutated -const mapMutationCat = [ - { value: 'true', name: 'Mutated' }, - { value: 'false', name: 'Non Mutated' }, - { value: 'null', name: 'Unknown' }, - { value: '!null', name: '!null' } -]; -var DataMappingDirection; -(function (DataMappingDirection) { - DataMappingDirection[DataMappingDirection["DB2Display"] = 0] = "DB2Display"; - DataMappingDirection[DataMappingDirection["Display2DB"] = 1] = "Display2DB"; -})(DataMappingDirection || (DataMappingDirection = {})); -// maps the database value to a display name -function mapDataBaseValueToDisplayName(mapObject, valueLabel, values) { - for (const v of values) { - const vStr = v['' + valueLabel] === null ? 'null' : v['' + valueLabel].toString(); // convert values into string - const currVauleMap = mapObject.filter((a) => vStr === a.value.toString()); // get map object - const currDisplay = currVauleMap[0].name; // get display name of map object - v['' + valueLabel] = currDisplay; // set the score value to the display name - } - return values; -} -// maps the display name to the database value -function mapDisplayNameToDataBaseValue(mapObject, values) { - const newValues = []; - for (const v of values) { - const currVauleMap = mapObject.filter((a) => v === a.name); // get map object - const currValue = currVauleMap[0].value; // get name of the map onject - newValues.push(currValue); - } - return newValues; -} -// add the data mapping to the different attributes -function addDataValueMapping(table, attribute, values, direction, databaseValueLabel = 'score') { - if (table === 'mutation' || table === 'copynumber') { - if (attribute === 'aa_mutated' || attribute === 'dna_mutated') { - log.debug('map either "AA_Mutated" or "DNA_Muatated" values: ', attribute); - // For 'AA Mutated' and 'DNA Mutated' - if (direction === DataMappingDirection.DB2Display) { - // DB -> Display - values = mapDataBaseValueToDisplayName(mapMutationCat, databaseValueLabel, values); - } - else { - // Display -> DB - values = mapDisplayNameToDataBaseValue(mapMutationCat, values); - } - } - else if (attribute === 'copynumberclass') { - log.debug('map "Copy Number Class" values: ', attribute); - // For 'Copy Number Class' - if (direction === DataMappingDirection.DB2Display) { - // DB -> Display - values = mapDataBaseValueToDisplayName(mapCopyNumberCat, databaseValueLabel, values); - } - else { - // Display -> DB - values = mapDisplayNameToDataBaseValue(mapCopyNumberCat, values); - } - } - } - return values; -} -// const CREATION_ROUTES = 'create' | 'createUseEqulasFilter' | 'createUseNumFilter' | 'createUseGeneNumFilter' | 'createUseGeneEqualsFilter' | 'createUseDepletionScoreFilter' | 'createUsePanelAnnotationFilter'; -// const ENTITY_ROUTES = 'size' | 'cohortData'; -// const CLONE_FILTER_ENTITY_ROUTES = 'sizeUseEqulasFilter' | 'dataUseEqulasFilter' | 'sizeUseNumFilter' | 'dataUseNumFilter'; -// const CLONE_FILTER_SCORE_ROUTES = 'sizeUseGeneNumFilter' | 'dataUseGeneNumFilter' | 'sizeUseGeneEqualsFilter' | 'dataUseGeneEqualsFilter' | 'sizeUseDepletionScoreFilter' | 'dataUseDepletionScoreFilter' | 'sizeUsePanelAnnotationFilter' | 'dataUsePanelAnnotationFilter'; -// const SCORE_ROUTES = 'geneScore' | 'celllineDepletionScore' | 'panelAnnotation'; -// const HIST = 'hist' -function getCohortDataImpl(route, params = {}, assignIds = false) { - if (assignIds) { - params._assignids = true; // assign globally ids on the server side - } - const url = `/cohortdb/db/${route}`; - const encoded = Ajax.encodeParams(params); - if (encoded && (url.length + encoded.length > Ajax.MAX_URL_LENGTH)) { - // use post instead - return AppContext.getInstance().sendAPI(url, params, 'POST'); - } - return AppContext.getInstance().getAPIJSON(url, params); -} -// const CREATION_ROUTES = 'create' | 'createUseEqulasFilter' | 'createUseNumFilter' | 'createUseGeneNumFilter' | 'createUseDepletionScoreFilter' | 'createUsePanelAnnotationFilter'; -export function createDBCohort(params, assignIds = false) { - return getCohortDataImpl(CohortRoutes.create, params, assignIds); -} -function convertEqualValues(values) { - return values.join(valueListDelimiter); -} -export function createDBCohortWithEqualsFilter(params, assignIds = false) { - const newParams = deepCopy(params); - newParams.values = convertEqualValues(params.values); - return getCohortDataImpl(CohortRoutes.createUseEqulasFilter, newParams, assignIds); -} -function convertNumRanges(ranges) { - let rangeString = ''; - for (const r of ranges) { - let limits = `${r.operatorOne}_${r.valueOne}`; - if (r.operatorTwo && r.valueTwo) { - limits = limits + `%${r.operatorTwo}_${r.valueTwo}`; - } - rangeString = rangeString + limits + ';'; - } - rangeString = rangeString.slice(0, -1); // remove the last ; - return rangeString; -} -export function createDBCohortWithNumFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - name: params.name, - attribute: params.attribute, - ranges: convertNumRanges(params.ranges) - }; - return getCohortDataImpl(CohortRoutes.createUseNumFilter, newParams, assignIds); -} -export function createDBCohortWithGeneNumFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - name: params.name, - table: params.table, - attribute: params.attribute, - ensg: params.ensg, - ranges: convertNumRanges(params.ranges) - }; - return getCohortDataImpl(CohortRoutes.createUseGeneNumFilter, newParams, assignIds); -} -export function createDBCohortWithGeneEqualsFilter(params, assignIds = false) { - const newParams = deepCopy(params); - let newValues = [].concat(newParams.values); - // add data value mapping - newValues = addDataValueMapping(params.table, params.attribute, newValues, DataMappingDirection.Display2DB); - newParams.values = convertEqualValues(newValues); - return getCohortDataImpl(CohortRoutes.createUseGeneEqualsFilter, newParams, assignIds); -} -export function createDBCohortWithDepletionScoreFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - name: params.name, - table: params.table, - attribute: params.attribute, - ensg: params.ensg, - depletionscreen: params.depletionscreen, - ranges: convertNumRanges(params.ranges) - }; - return getCohortDataImpl(CohortRoutes.createUseDepletionScoreFilter, newParams, assignIds); -} -export function createDBCohortWithPanelAnnotationFilter(params, assignIds = false) { - const newParams = deepCopy(params); - newParams.values = convertEqualValues(params.values); - return getCohortDataImpl(CohortRoutes.createUsePanelAnnotationFilter, newParams, assignIds); -} -export function createDBCohortWithTreatmentFilter(params, assignIds = false) { - const newParams = deepCopy(params); - if (newParams.agent === null) { - delete newParams.agent; - } - if (newParams.agent) { - newParams.agent = convertEqualValues(params.agent); - } - if (newParams.regimen === null) { - delete newParams.regimen; - } - return getCohortDataImpl(CohortRoutes.createUseTreatmentFilter, newParams, assignIds); -} -// const ENTITY_ROUTES = 'size' | 'cohortData'; -/** - * returns the data a cohort represents - */ -export function getCohortData(params, assignIds = false) { - return getCohortDataImpl(CohortRoutes.cohortData, params, assignIds); -} -export async function getCohortSize(params, assignIds = false) { - const sizeResp = await getCohortDataImpl(CohortRoutes.size, params, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -/** - * returns the saved cohort tuples in the DB - */ -export function getDBCohortData(params, assignIds = false) { - const cohortIdsString = params.cohortIds.join(valueListDelimiter); - delete params.cohortIds; - const newParams = deepCopy(params); - newParams.cohortIds = cohortIdsString; - return getCohortDataImpl(CohortRoutes.getDBCohorts, newParams, assignIds); -} -/** - * updates the name of the cohort in the DB - * @returns the updated cohort data from the DB - */ -export function updateCohortName(params, assignIds = false) { - return getCohortDataImpl(CohortRoutes.updateCohortName, params, assignIds); -} -// const CLONE_FILTER_ENTITY_ROUTES = 'sizeUseEqulasFilter' | 'dataUseEqulasFilter' | 'sizeUseNumFilter' | 'dataUseNumFilter'; -export async function sizeDBCohortWithEqualsFilter(params, assignIds = false) { - const valueString = convertEqualValues(params.values); - delete params.values; - const newParams = deepCopy(params); - newParams.values = valueString; - const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseEqulasFilter, newParams, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -export function dataDBCohortWithEqualsFilter(params, assignIds = false) { - const valueString = convertEqualValues(params.values); - delete params.values; - const newParams = deepCopy(params); - newParams.values = valueString; - return getCohortDataImpl(CohortRoutes.dataUseEqulasFilter, newParams, assignIds); -} -export async function sizeDBCohortWithNumFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - attribute: params.attribute, - ranges: convertNumRanges(params.ranges) - }; - const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseNumFilter, newParams, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -export function dataDBCohortWithNumFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - attribute: params.attribute, - ranges: convertNumRanges(params.ranges) - }; - return getCohortDataImpl(CohortRoutes.dataUseNumFilter, newParams, assignIds); -} -// const CLONE_FILTER_SCORE_ROUTES = 'sizeUseGeneNumFilter' | 'dataUseGeneNumFilter' | 'sizeUseGeneEqualsFilter' | 'dataUseGeneEqualsFilter' | 'sizeUseDepletionScoreFilter' | 'dataUseDepletionScoreFilter' | 'sizeUsePanelAnnotationFilter' | 'dataUsePanelAnnotationFilter'; -export async function sizeDBCohortGeneWithNumFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - table: params.table, - attribute: params.attribute, - ensg: params.ensg, - ranges: convertNumRanges(params.ranges) - }; - const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseGeneNumFilter, newParams, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -export function dataDBCohortGeneWithNumFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - table: params.table, - attribute: params.attribute, - ensg: params.ensg, - ranges: convertNumRanges(params.ranges) - }; - return getCohortDataImpl(CohortRoutes.dataUseGeneNumFilter, newParams, assignIds); -} -export async function sizeDBCohortGeneWithEqualsFilter(params, assignIds = false) { - const newParams = deepCopy(params); - newParams.values = convertEqualValues(params.values); - const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseGeneEqualsFilter, newParams, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -export function dataDBCohortGeneWithEqualsFilter(params, assignIds = false) { - const newParams = deepCopy(params); - newParams.values = convertEqualValues(params.values); - return getCohortDataImpl(CohortRoutes.dataUseGeneEqualsFilter, newParams, assignIds); -} -export async function sizeDBCohortDepletionScoreFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - table: params.table, - attribute: params.attribute, - ensg: params.ensg, - depletionscreen: params.depletionscreen, - ranges: convertNumRanges(params.ranges) - }; - const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseDepletionScoreFilter, newParams, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -export function dataDBCohortDepletionScoreFilter(params, assignIds = false) { - const newParams = { - cohortId: params.cohortId, - table: params.table, - attribute: params.attribute, - ensg: params.ensg, - depletionscreen: params.depletionscreen, - ranges: convertNumRanges(params.ranges) - }; - return getCohortDataImpl(CohortRoutes.dataUseDepletionScoreFilter, newParams, assignIds); -} -export async function sizeDBCohortPanelAnnotationFilter(params, assignIds = false) { - const newParams = deepCopy(params); - newParams.values = convertEqualValues(params.values); - const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUsePanelAnnotationFilter, newParams, assignIds); - return Promise.resolve(Number(sizeResp[0].size)); -} -export function dataDBCohortPanelAnnotationFilter(params, assignIds = false) { - const newParams = deepCopy(params); - newParams.values = convertEqualValues(params.values); - return getCohortDataImpl(CohortRoutes.dataUsePanelAnnotationFilter, newParams, assignIds); -} -// const SCORE_ROUTES = 'geneScore' | 'celllineDepletionScore' | 'panelAnnotation'; -export async function getCohortGeneScore(idType, params, assignIds = false) { - if (idType === 'tissue' || idType === 'cellline') { - let values = await getCohortDataImpl(CohortRoutes.geneScore, params, assignIds); - // add data value mapping - values = addDataValueMapping(params.table, params.attribute, values, DataMappingDirection.DB2Display); - return values; - } - else { - return null; - } -} -export function getCohortDepletionScore(params, assignIds = false) { - return getCohortDataImpl(CohortRoutes.celllineDepletionScore, params, assignIds); -} -export function getCohortPanelAnnotation(idType, params, assignIds = false) { - if (idType === 'tissue' || idType === 'cellline' || idType === 'gene') { - return getCohortDataImpl(CohortRoutes.panelAnnotation, params, assignIds); - } - else { - return null; - } -} -export var HistRouteType; -(function (HistRouteType) { - HistRouteType["dataCat"] = "dataCat"; - HistRouteType["dataNum"] = "dataNum"; - HistRouteType["geneScoreCat"] = "geneScoreCat"; - HistRouteType["geneScoreNum"] = "geneScoreNum"; - HistRouteType["depletionScore"] = "depletionScore"; - HistRouteType["panelAnnotation"] = "panelAnnotation"; -})(HistRouteType || (HistRouteType = {})); -// const HIST = 'hist' -export async function getCohortHist(histType, params, assignIds = false) { - params.type = histType; - let bins = await getCohortDataImpl(CohortRoutes.hist, params, assignIds); - if (params.type === HistRouteType.geneScoreCat || params.type === HistRouteType.geneScoreNum) { - // add data value mapping - bins = addDataValueMapping(params.table, params.attribute, bins, DataMappingDirection.DB2Display, 'bin'); - } - return bins; -} -//# sourceMappingURL=rest.js.map \ No newline at end of file diff --git a/dist/rest.js.map b/dist/rest.js.map deleted file mode 100644 index 54a0f17..0000000 --- a/dist/rest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rest.js","sourceRoot":"","sources":["../src/rest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAC,QAAQ,EAAE,GAAG,EAAC,MAAM,QAAQ,CAAC;AAyCrC,MAAM,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,CAAC,KAAK,EAAG,MAAkC,CAAC,SAAS,EAAE,IAAI,EAAE,oBAAoB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;KACpK;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/robots.txt b/dist/robots.txt deleted file mode 100644 index 9417495..0000000 --- a/dist/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# robotstxt.org - -User-agent: * diff --git a/dist/scss/abstracts/_variables.scss b/dist/scss/abstracts/_variables.scss deleted file mode 100644 index 3cd7ee1..0000000 --- a/dist/scss/abstracts/_variables.scss +++ /dev/null @@ -1,117 +0,0 @@ -// ------------ -// colors -// ------------ - -$color-app: #0084c8; // favicon, onboarding tooltips - -// text -$color-text: #333333 !default; -$color-text-medium: #595959 !default; -$color-text-light: #737373 !default; - -// background -$color-background: #FFF !default; -$color-app-background: #FFF !default; -$color-background-darker: #d4d4d4 !default; - -// red for delete -$color-red: #DC3545 !default; - -// shadow -$color-shadow: #d4d4d4 !default; - -// borders -$color-border: #333333 !default; -$color-border-medium: #AAA !default; -$color-border-light: #d4d4d4 !default; - -// cohort element -$color-cohort-background: #EFEFEF !default; -$color-bar-background: #FFF !default; -$color-bar: #595959 !default; -$color-remove-icon: #333333 !default; - -// bar loading animation -$color-animation-bar-default: #D4D4D4 !default; -$color-animation-bar-highlight: #737373 !default; - -// task element -$color-task-background: #EFEFEF !default; -$color-task-detail-icon: #333333 !default; - -// path -$color-path-overview: #d4d4d4 !default; - -// interaction -// --old hover color -// $color-hover: #52C0CC !default; //previous: #0097A7 #00B8CC , #29BCCC -// $color-hover-opacity-75: #52C0CCC0 !default; -// --new hover color -$color-hover: $color-app !default; -$color-hover-opacity-75: #0084c8C0 !default; -$color-selected: #FFC340 !default; -$color-selected-light: #FFCB59 !default; - -// buttons -// -- Coral button -// normal -$color-btn-coral-bg: $color-background !default; // bootstarp hover styling -$color-btn-coral-border: $color-border-light !default; // bootstarp hover styling -// hover or selected -$color-btn-coral-first-bg: darken($color-btn-coral-bg,10%) !default;; // bootstarp hover styling -$color-btn-coral-first-border: darken($color-btn-coral-border,12%) !default;; // bootstarp hover styling -$box-shadow-btn-coral-selected: inset 0 3px 5px rgba(0, 0, 0, 0.13) !default; -// hover of selected -$color-btn-coral-second-bg: darken($color-btn-coral-first-bg,7%) !default;; // bootstarp hover styling for selected button -$color-btn-coral-second-border: darken($color-btn-coral-first-border,13%) !default;; // bootstarp hover styling for selected button - -// -- Coral prime button -// normal -$color-btn-coral-prime: $color-background !default; // bootstarp hover styling -$color-btn-coral-prime-bg: $color-hover !default; // bootstarp hover styling -$color-btn-coral-prime-border: $color-hover !default; // bootstarp hover styling -// hover or selected -$color-btn-coral-prime-first-bg: darken($color-btn-coral-prime-bg,10%) !default;; // bootstarp hover styling -$color-btn-coral-prime-first-border: darken($color-btn-coral-prime-border,12%) !default;; // bootstarp hover styling -$box-shadow-btn-coral-prime-selected: inset 0 3px 5px rgba(0, 0, 0, 0.13) !default; -// hover of selected -$color-btn-coral-prime-second-bg: darken($color-btn-coral-prime-first-bg,7%) !default;; // bootstarp hover styling for selected button -$color-btn-coral-prime-second-border: darken($color-btn-coral-prime-first-border,13%) !default;; // bootstarp hover styling for selected button - -// search bar -$color-search-bar-border: $color-app !default; -$border-radius-search-bar: 3px !default; -$color-search-bar-placeholder: $color-app !default; -// search bar badges -$color-badge-background: $color-app-background !default; -$color-badge-border: #AAAAAA !default; -$color-badge-interaction-bg: $color-app-background !default; -$color-badge-interaction-border: #AAAAAA !default; -// search bar option list -$color-search-bar-header-border: #000000 !default; -$color-search-bar-background: #EFEFEF !default; -// $color-searchbar-hover: $color-hover; -// $color-searchbar-selected: $color-selected; -$color-searchbar-hover: $color-badge-interaction-bg !default; -$color-searchbar-selected: $color-badge-background !default; -$box-shadow-searchbar-option-selected: inset 0 3px 5px rgba(0, 0, 0, 0.13) !default; -// search bar detail option list -$color-search-bar-option-detail-bg: #ffffff !default; -$color-search-bar-option-detail-header-bg: #ffffff !default; -$color-search-bar-option-detail-top-border: $color-border-light !default; -$color-search-bar-option-detail-bottom-border: #000000 !default; - -// prevalence checkbox -$color-prevalence-cb-background: #EFEFEF !default; - -// task view column header option button -$color-tv-opt: #AAA !default; -$color-tv-opt-hover: $color-hover !default; -$color-tv-opt-active: #333 !default; - - - -//darkgrey is #A9A9A9, see https://www.w3schools.com/colors/colors_shades.asp - -// $unused: #C8DCDE !default; -// $unused2: #B5AA99 !default; diff --git a/dist/scss/base/_animations.scss b/dist/scss/base/_animations.scss deleted file mode 100644 index a3b97e8..0000000 --- a/dist/scss/base/_animations.scss +++ /dev/null @@ -1,23 +0,0 @@ - -.shaking { - animation: shake 0.5s; - animation-iteration-count: infinite; -} - -@keyframes shake { - 10%, 90% { - transform: translate3d(-1px, 0, 0); - } - - 20%, 80% { - transform: translate3d(1px, 0, 0); - } - - 30%, 50%, 70% { - transform: translate3d(-1px, 0, 0); - } - - 40%, 60% { - transform: translate3d(1px, 0, 0); - } -} \ No newline at end of file diff --git a/dist/scss/base/_base.scss b/dist/scss/base/_base.scss deleted file mode 100644 index e9beea9..0000000 --- a/dist/scss/base/_base.scss +++ /dev/null @@ -1,34 +0,0 @@ -body, html { - font-family: Roboto, sans-serif; - font-weight: 400; -} - -th, label, strong, b, .label { - font-weight: 500 !important; -} - -#headerAboutDialog .modal-dialog { - width: 50vw; - min-width: 600px; - max-width: 900px; -} - -#deleteModal .modal-header-flex { - display: flex !important; - justify-content: space-between !important; - padding: 15px; - border-bottom: 1px solid #e5e5e5; - align-items: flex-start; -} - -.hint { - text-decoration-line: underline; - text-decoration-style: dotted; - text-decoration-color: $color-border; -} - -.app-color { - color: $color-app; -} - -@import './cohortRectangle'; //rectange style of the cohorts diff --git a/dist/scss/base/_cohortRectangle.scss b/dist/scss/base/_cohortRectangle.scss deleted file mode 100644 index 843268e..0000000 --- a/dist/scss/base/_cohortRectangle.scss +++ /dev/null @@ -1,82 +0,0 @@ -$cht-border-radius: 3px !default; -// styles for cohort -div.rectCohort { - border: 1px solid $color-border-medium; - border-radius: $cht-border-radius; - background-color: $color-cohort-background; - text-align: center; - cursor: pointer; - display: flex; - flex-direction: column; - - .rectCohort-label, .rectCohort-labelBar { - padding: 0 0.25em; - text-overflow: ellipsis; - white-space: nowrap; // No line breaks - overflow: hidden; // require for text-overflow to work - text-align: center; - flex-grow: 1; - flex-shrink: 0; - } - - .rectCohort-sizeBar { - background-color: $color-bar-background; - position: relative; - flex-grow: 0; - flex-shrink: 0; - border-bottom-right-radius: $cht-border-radius; - border-bottom-left-radius: $cht-border-radius; - - .size-label{ - padding: 0 0.25em; - position: absolute; - top: 0; - left: 0; - color: $color-text; - font-weight: bold; - width: 100%; - max-width: 100%; - } - - .rectCohort-sizeBar-indicator { - background-color: $color-bar; - height: 100%; - position: absolute; - top: 0; - left: 0; - } - - .size-label-overlay-wrapper { - position: absolute; - top: 0; - left: 0; - overflow: hidden; - height: 100%; - - .size-label-overlay { - padding: 0 0.25em; - color: white; - font-weight: bold; - } - } - } - - .rectCohort-CB { - text-align: center; - vertical-align: middle; - margin: 0 0 2px 0 !important; - } - - .remove-cohort { - position: absolute; - top: 1px; - right: 1px; - color: $color-remove-icon; - font-size: 0.7em; - - &:hover { - color: $color-red !important; - } - - } -} diff --git a/dist/scss/base/_icon_layer.scss b/dist/scss/base/_icon_layer.scss deleted file mode 100644 index 4d806b4..0000000 --- a/dist/scss/base/_icon_layer.scss +++ /dev/null @@ -1,25 +0,0 @@ -.icon-custom-layers { - display: inline-grid; - grid-template-columns: 1fr; //only a single grid row and column that will be used to put icon on top of each other - grid-template-rows: 1fr; - - > * { - grid-area: 1 / 1 / 2 / 2; // put children in same grid element - } - - .icon-layer-shrink { // reduced height of a layered icon - font-size: 0.5em; - } - - .icon-layer { - display: flex; - align-items: flex-start; // do'nt stretch icon over full height - - .icon-top-left { // utility class for position, add others when needed - border-radius: 50%; - padding: 0.1em; - margin-left: -0.25em; - margin-top: -0.1em; - } - } -} diff --git a/dist/scss/base/_loading.scss b/dist/scss/base/_loading.scss deleted file mode 100644 index 929fee2..0000000 --- a/dist/scss/base/_loading.scss +++ /dev/null @@ -1,135 +0,0 @@ -// source1 https://codepen.io/thetallweeks/pen/yybGra -// source2 https://codepen.io/davidangel/pen/NqPYdW -// source3 https://martinwolf.org/before-2018/blog/2015/01/pure-css-savingloading-dots-animation/ - -// Copyright (c) 2021 by Martin Wolf (https://codepen.io/martinwolf/pen/PwbEZo) -// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -// THE 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. - - -.loading { - margin: 0; - - &.large { - font-size: 1.5em; - } - - span { - /** - * Use the blink animation, which is defined above - */ - animation-name: blink; - /** - * The animation should take 1.4 seconds - */ - animation-duration: 1.4s; - /** - * It will repeat itself forever - */ - animation-iteration-count: infinite; - /** - * This makes sure that the starting style (opacity: .2) - * of the animation is applied before the animation starts. - * Otherwise we would see a short flash or would have - * to set the default styling of the dots to the same - * as the animation. Same applies for the ending styles. - */ - animation-fill-mode: both; - } - - span:nth-child(2) { - /** - * Starts the animation of the third dot - * with a delay of .2s, otherwise all dots - * would animate at the same time - */ - animation-delay: .2s; - } - - span:nth-child(3) { - /** - * Starts the animation of the third dot - * with a delay of .4s, otherwise all dots - * would animate at the same time - */ - animation-delay: .4s; - } -} - - -@keyframes blink { - /** - * At the start of the animation the dot - * has an opacity of .2 - */ - 0% { - opacity: .2; - } - /** - * At 20% the dot is fully visible and - * then fades out slowly - */ - 20% { - opacity: 1; - } - /** - * Until it reaches an opacity of .2 and - * the animation can start again - */ - 100% { - opacity: .2; - } -} - - -.loading-bars { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - align-items: center; -} - -.loading-bars div { - width: 10px; - height: 15px; - background: $color-animation-bar-default; - -webkit-animation: bars 2s infinite ease-in; - animation: bars 2s infinite ease-in; - -webkit-animation-delay: calc(var(--n) * 0.2s); - animation-delay: calc(var(--n) * 0.2s); -} - -.loading-bars div:not(:first-child) { - margin-left: 3px; -} - -@keyframes bars { - 0% { - background: $color-animation-bar-default; - } - 25% { - background: $color-animation-bar-highlight; - } - 50% { - background: $color-animation-bar-default; - } - 100% { - background: $color-animation-bar-default; - } -} -@-webkit-keyframes bars { - 0% { - background: $color-animation-bar-default; - } - 25% { - background: $color-animation-bar-highlight; - } - 50% { - background: $color-animation-bar-default; - } - 100% { - background: $color-animation-bar-default; - } -} \ No newline at end of file diff --git a/dist/scss/components/StartMenu.scss b/dist/scss/components/StartMenu.scss deleted file mode 100644 index 9d3449d..0000000 --- a/dist/scss/components/StartMenu.scss +++ /dev/null @@ -1,205 +0,0 @@ -.ordino-start-menu { - display: none; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - background-color: $light; - z-index: 99; // above all other content - overflow: auto; - - .card-shadow { - // same as the Bootstrap class `.shadow-sm`, but without `!important` to allow highlighting - box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08); - } - - .highlight-card { - animation: highlight-card 4s linear; - } - - @keyframes highlight-card { - 10%, - 70% { - box-shadow: 0 0 0.75rem $select-color; - border: 1px solid $select-color; - } - } - - &.ordino-start-menu-open { - display: grid; - grid-template-rows: 1fr auto; // use available space for tab content (1fr) and push footer always to the bottom (auto) - } - - .ordino-icon-1 { - font-size: 2rem; - color: #0084c8; - } - - .ordino-icon-2 { - background-color: #0084c8; - color: $white; - display: inline-flex; - align-items: center; - justify-content: center; - width: 2.2rem; - height: 2.2rem; - border-radius: 50%; - font-size: 1rem; - } - - .nav-link { - position: relative; - color: $gray-600; - font-size: 1.12rem; - - .active { - color: inherit; - font-weight: 500; - - &:before { - @extend .fas; - content: fa-content($fa-var-angle-right); - position: absolute; - top: 0.5rem; - left: 1rem; - font-size: 1.3rem; - } - } - } - - .dataset-entry:not(:first-child) { - border-left: 1px solid $gray-300; - } - - .dropdown-parent:hover, - .dropdown-parent:focus-within { - .list-item-dropdown { - visibility: visible; - } - } - - .list-item-dropdown { - // showing a dropdown in an element whose overflow is set to hidden, does not work (the dropdown is cut off) - // therefore, we overwrite the `position relative` of a dropdown, and manually set as relative a parent element whose overflow is not hidden - position: initial; - visibility: hidden; - - .dropdown-toggle { - color: $gray-600; - } - - .dropdown-toggle::after { - display: none; - } - .dropdown-delete { - color: red; - &:hover { - background-color: rgb(255, 233, 233); - } - } - } - - .session-tab { - height: 46px; - border-bottom: 2px solid $gray-300; - - &.card-header-pills { - margin-left: 0 !important; - margin-right: 0 !important; - } - - .nav-item { - > a { - // clear bootstrap styles - &, - &:hover, - &:focus, - a.active { - font-weight: 500; - color: inherit; - background: none; - } - - &::after { - content: ""; - position: absolute; - top: 44px; - left: 0; - width: 0px; - height: 0px; - background: black; - transition: width 0.3s; - } - &.active::after { - width: 100%; - height: 2px; - } - &.disabled { - opacity: 0.2; - } - } - } - } - - .session-dropzone { - border: 1px dashed $gray-600; - border-radius: 6px; - padding: 0.6rem; - - p:nth-child(1) { - font-weight: 500; - color: $gray-600; - } - p:nth-child(2) { - color: $gray-500; - } - } -} - -.session-item:not(:last-child) { - border-bottom: 1px solid $gray-300; -} - -.col.position-relative { - .btn-close { - position: relative; - z-index: 1; // position icon above the tab container to make it clickable - padding-top: 2em; - padding-right: 2em; - } -} - -.ordino-start-menu-overlay { - // make background color more transparent in overlay mode ... - background-color: rgba($gray-100, 0.9); - - // ... but use full-colored background with some gradient at the edges for text containers - .start-menu-close { - background: $gray-100; - background: radial-gradient(circle, - rgba($gray-100, 1) 40%, - rgba($gray-100, 0) 80% - ); - } - - .ordino-scrollspy-container > .container { - background: $gray-100; - background: linear-gradient(90deg, - rgba($gray-100, 0) 0%, - rgba($gray-100, 1) 5%, - rgba($gray-100, 1) 95%, - rgba($gray-100, 0) 100% - ); - } - - .ordino-scrollspy-nav { - background: $gray-100; - background: linear-gradient(90deg, - rgba($gray-100, 0) 0%, - rgba($gray-100, 1) 20%, - rgba($gray-100, 1) 80%, - rgba($gray-100, 0) 100% - ); // same as container scrollspy container above, but with different gradient stops - } -} diff --git a/dist/scss/components/_column.scss b/dist/scss/components/_column.scss deleted file mode 100644 index eddcc81..0000000 --- a/dist/scss/components/_column.scss +++ /dev/null @@ -1,145 +0,0 @@ -$vertical-border-width: 2px !default; - -.column { - border-left: $vertical-border-width solid $color-background; - flex-basis: 100px; //default size - min-width: 100px; // minimum size the column can shrink to (see flex-shrink) - max-width: 175px; // max size the column can grow to (see flex-grow) - - flex-shrink: 1; // can shrink - flex-grow: 1; // can grow - order: 50; //default order prop - background: $color-background; - - &.highlight { - background-color: $color-cohort-background !important; - } - - &.first { - order: -1; // -1<50 --> first display column - border-left: none; //edge of the viewport - border-right: $vertical-border-width solid $color-background; - } - - &:last-child { - border-right: $vertical-border-width solid $color-background; - } - - &.last { - order: 100; // 100>50 --> last displayed column - margin-left: auto; // moves it to the right edge of the container - - border-right: none; //edge of the viewport - border-left: $vertical-border-width solid $color-background; - } - // ======== TYPES ========= - - &.cohort { - flex-basis: 136px; - flex-shrink: 0; - flex-grow: 0; - } - - &.prevalence { - // can't get as wide as default columns - flex-basis: 100px; - min-width: 100px; - max-width: 150px; - } - - &.number { - // very narrow - flex-basis: 4em; - min-width: unset; - max-width: unset; - flex-shrink: 0; - flex-grow: 0; - - .header { - justify-content: center; - } - - .data { - padding: 0.5em; - padding-top: 1.3em; // centers the text vertically to the cohort - } - } - - &.empty { - //content is 0 by default, can grow and shrink infinetly, default column border remains - flex-basis: 2em; - min-width: 0em; - max-width: unset; - order: 900; - - .header { - padding: 0; - } - } - - &.add-column { - // very narrow - flex-basis: 2.5em; - min-width: unset; - max-width: unset; - flex-shrink: 0; - flex-grow: 0; - z-index: 999 !important; - - .header { - //no header -> no padding - padding-left: 0; - padding-right: 0; - - .header-only-button { - height: 100%; - display: flex; - justify-content: center; - align-items: center; - - .empty-header-button { - width: 27px; - height: 27px; - line-height: 27px; - text-align: center; - font-size: 1.1em; - // background: $color-cohort-background; - // border: 1px solid $color-border-light; - // border-radius: 3px; - - // &.active { - // background: $color-selected !important; - // } - - // &:hover { - // border-color: $color-hover; - // box-shadow: 0 0 8px $color-hover-opacity-75 !important; - // } - } - } - } - } - - // ======== STICKY COLUMNS ========= - - &.first, - &.last { - position: sticky; - z-index: 1000; - - background-color: $color-background; - } - - &.first { - left: 0; - } - - &.last { - right: 0; - order: 1000; - } - - // ======== CONTENT ========= - @import "./columns/header"; - @import "./columns/datacells"; -} diff --git a/dist/scss/components/_coral.scss b/dist/scss/components/_coral.scss deleted file mode 100644 index 7591a14..0000000 --- a/dist/scss/components/_coral.scss +++ /dev/null @@ -1,168 +0,0 @@ -.cohort_app { - position: absolute; // absolute position this one should help in setting min/max sizes - width: 100%; - height: 100%; - border-bottom: 1px solid #ddd; - border-left: 1px solid #ddd; - - // height of the initial taskview in vh, is later used to define the standard layout with pixels - // the size in pixels is needed to change the split screen with the dragger - --tv-height-vh: 50vh; - - display: grid; - overflow: hidden; - grid-template-columns: 1fr; - grid-template-rows: auto 1fr 7px var(--tv-height); //50vh for detail view because otherwise i couldn't get scrolling to work inside the input/output cohort areas. -} - -.control-bar { - display: flex; - align-items: center; - border-bottom: 1px solid lightgrey; - padding: 0.25rem 0.5em; - - .control-bar-label { - font-size: 1.2em; - margin-right: 0.5em; - } -} - -#modalWindow { - left: 25%; - top: 10%; - width: 50%; /* Full width */ - height: 50%; /* Full height */ -} - -// define default Coral button style -.btn-coral { - background-color: $color-btn-coral-bg; - border: 1px solid $color-btn-coral-border; - border-radius: 3px; - //box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.40); - - &.disabled { - background-color: $color-btn-coral-bg; - color: $color-btn-coral-border; //same as border - } - - &:not(.disabled) { - &:hover, &:focus { - background-color: $color-btn-coral-first-bg; // bootstarp hover styling - border-color: $color-btn-coral-first-border; // bootstarp hover styling - //border-color: $color-hover; - //box-shadow: 0 0 9px $color-hover !important; - } - - &.selected, &.active { - box-shadow: $box-shadow-btn-coral-selected; // bootstrap selection styling - background-color: $color-btn-coral-first-bg; // bootstarp selection styling - border-color: $color-btn-coral-first-border; // bootstarp selection styling - - &:hover, &:focus { - background-color: $color-btn-coral-second-bg; // bootstarp hover styling for selected button - border-color: $color-btn-coral-second-border; // bootstarp hover styling for selected button - } - } - } -} - -// define primary action Coral button style -.btn-coral-prime { - background-color: $color-btn-coral-prime-bg; - color: $color-btn-coral-prime; - border: 1px solid $color-btn-coral-prime-border; - border-radius: 3px; - //box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.40); - - &.disabled { - color: $color-btn-coral-prime-border; //same as border - background-color: $color-btn-coral-prime; //text color - } - - &:not(.disabled) { - &:hover, &:focus { - // background-color: $color-hover; - // border-color: $color-hover; - // box-shadow: 0 0 9px $color-hover !important; - color: $color-btn-coral-prime; - background-color: $color-btn-coral-prime-first-bg; // bootstarp hover styling - border-color: $color-btn-coral-prime-first-border; // bootstarp hover styling - } - - &.selected, &.active { - color: $color-btn-coral-prime; - box-shadow: $box-shadow-btn-coral-prime-selected; // bootstrap selection styling - background-color: $color-btn-coral-prime-first-bg; // bootstarp selection styling - border-color: $color-btn-coral-prime-first-border; // bootstarp selection styling - - &:hover, &:focus { - color: $color-btn-coral-prime; - background-color: $color-btn-coral-prime-second-bg; // bootstarp hover styling for selected button - border-color: $color-btn-coral-prime-second-border; // bootstarp hover styling for selected button - } - } - } -} - -.screen-controls { - margin-left: auto; - display: flex; - align-items: center; - margin-right: 50px; - padding: 0 2px; - box-sizing: border-box; - - .sc-button { - height: 20px; - width: 20px; - margin: 0 2px; - display: flex; - // border: 1px solid $color-border-light; - // border-radius: 2px; - - .icon { - width: 20px; - border: 1px solid $color-bar; - margin: 3px; - background-color: white; - - div { - border-bottom: 1px solid $color-bar; - background-color: white; - } - } - } -} - -#chtOverview { - display: flex; - overflow: auto; - - @import './overview'; //overview styling - -} - - -#dragger { - background: $color-cohort-background; - border-top: 1px solid $color-border-light; - border-bottom: 1px solid $color-border-light; - - &:hover { - background: $color-background-darker !important; - cursor: row-resize; - } - - svg.dragger-dots { - margin: auto; - display: block; - height: 5px; - width: 18px; - - circle, rect { - fill: $color-bar; - } - } - -} diff --git a/dist/scss/components/_overview.scss b/dist/scss/components/_overview.scss deleted file mode 100644 index 7675fd2..0000000 --- a/dist/scss/components/_overview.scss +++ /dev/null @@ -1,235 +0,0 @@ -#chtOverviewGraphWrapper { - overflow: auto; - width: 100%; - height: 100%; -} - -.overview-element-highlight { - // background-color: $color-hover !important; - // color: $color-text !important; - border-color: $color-hover !important; - box-shadow: inset 0 0px 2px $color-hover-opacity-75 , 0 0 8px $color-hover-opacity-75 !important; -} - -.task-hist-element-highlight { - // box-shadow: inset 0 0px 2px rgba(0, 0, 0, 0.075), 0 0 8px $color-hover-opacity-75 !important; - box-shadow: inset 0 0px 2px 2px $color-hover-opacity-75 !important; -} - -#chtOverviewGraph { - position: relative; - margin-top: 0.5em; - margin-left: 0.5em; - - .preview { - opacity: 0.5 !important; - } - - .layout_rect { - top: 0; - left: 0; - display: grid; - grid-row-gap: 2px; - box-sizing: border-box; - - @import './task/taskRectangle'; //rectange style of the tasks - } -} - -#svg-path-container { - position: absolute; - top: 0; - left: 0; - z-index: -1; - - .svg-path { - stroke: $color-path-overview; - fill: none; - opacity: 1; - - &.overview-path-highlight { - stroke: $color-hover; - } - } -} - -#taskSideBar { - display: flex; - flex-grow: 0; - flex-shrink: 0; - margin-left: auto; - - * { - box-sizing: border-box; - } - - .taskHistory { - min-width: 51px; - // width: 75px; - } - - .taskDetails { - width: 150px; - display: flex; - box-sizing: border-box; - min-width: 0px !important; - } - - .taskDetails.hide { - visibility: hidden; - width: 0px; - } - - .task-sidebar-column { - box-sizing: border-box; - display: flex; - flex-direction: column; - border-left: 1px solid $color-border; - border-top: 1px solid $color-border; - text-align: center; - - .task-history-header { - min-height: 25px; - max-height: 25px; - } - - // remove scrollbar - .task-history-stack-wrapper::-webkit-scrollbar { - display: none; // Safari and Chrome - } - - .task-history-stack-wrapper { - overflow: auto; - display: flex; - flex-direction: column; - flex: 1; - - // remove scrollbar - -ms-overflow-style: none; // IE 10+ - scrollbar-width: none; // Firefox - - .task-history-stack { - display: flex; - flex-grow: 0; - flex-shrink: 0; - height: 100%; - min-height: 100%; - flex-direction: column; - align-items: left; // alignment in row - - @import './task/taskRectangle'; //rectange style of the tasks - - > div:not(.task-details) { - box-sizing: border-box; - width: 51px; - height: 51px; - } - .task-details { - width: 149px; - height: 51px; - flex-grow: 0; - flex-shrink: 0; - box-sizing: border-box; - border-top: 1px solid $color-border; - background-color: $color-task-background; - overflow-x: auto; - - .task-detail-attribute { - min-height: 15px; - margin-top: 2px; - font-size: 0.9em; - line-height: 15px; - padding-left: 2px; - text-align: left; - font-weight: normal; - word-break: break-word; - - span { - font-weight: bold; - } - } - - .task-detail-cohort { - min-height: 15px; - display: flex; - flex-wrap: wrap; - - .task-detail-label { - height: 15px; - font-size: 0.9em; - line-height: 15px; - padding-left: 2px; - padding-right: 5px; - text-align: left; - font-weight: bold; - } - - .task-detail-icon { - height: 8px; - margin: 3px 2px 4px 2px; - width: 12px; - background-color: $color-task-detail-icon; - - &:hover { - background-color: $color-hover; - } - } - } - - // p { - // white-space: normal; - // font-size: x-small; - // padding-left: 2px; - // margin: 0; - // text-align: left; - - // span { - // font-weight: bold; - // } - // } - } - - .rectTask { // not set without important - border: unset !important; - border-top: 1px solid $color-border !important; - } - } - - .task-history-stack > :first-child { - margin-top: auto !important; - /* justify-content: flex-end; --> BREAKS scrolling behaviour*/ - } - - } - - } - - #btnDetailsToggle, - #btnDetailsToggle:link, - #btnDetailsToggle:visited, - #btnDetailsToggle:active { - color: $color-text; - } - - #btnDetailsToggle:hover { - color: $color-hover; - text-decoration: none; - } - - #btnDetailsToggle { - - - &::before{ - font-family: 'Font Awesome 5 Free'; - content: '\f191'; - font-size: 20px; - } - - &.close-detail::before{ - font-family: 'Font Awesome 5 Free'; - content: '\f152'; - font-size: 20px; - } - } - -} \ No newline at end of file diff --git a/dist/scss/components/_search.scss b/dist/scss/components/_search.scss deleted file mode 100644 index a5d7336..0000000 --- a/dist/scss/components/_search.scss +++ /dev/null @@ -1,95 +0,0 @@ -$control-height: 35px !default; -$gap: 0.25em !default; -$hover-animation-time: 0.4s !default; - -.task-view-search { - height: 100%; - padding-top: 0.5em; - - border-left: 1px solid $color-border-light; - border-right: 1px solid $color-border-light; - - display: grid; - grid-template-columns: 1fr; - grid-template-rows: auto 1fr; - - .header { - display: flex; - flex-direction: row; - // gap: $gap; // handled by margin of search bar below because chrome doesnt support "gap" yet - margin: 0 $gap; - - .task-title { - font-size: 1.1em; - padding: 0.1em 0.5em; - margin: 0 0 0 $gap; - height: 35px; - line-height: 35px; - display: flex; - align-items: center; - } - - .search-bar { - flex-shrink: 1; // can shrink - flex-grow: 1; // can grow - margin: 0 $gap; - - @import "./searchBar/searchbar"; - } - - .action { - width: $control-height; - height: $control-height; - font-size: 1.8em; - flex-shrink: 0; // can not shrink - flex-grow: 0; // can not grow - - //center: - display: flex; - justify-content: center; - align-items: center; - - border: 1px solid $color-border-light; - border-radius: $control-height/7; - - &.disabled { - color: $color-border-light; //same as border - } - - &:not(.disabled) { - box-shadow: -1px 1px 1px 0px $color-shadow; // button pops out of page - - &:hover { - box-shadow: -1px 1px 2px 1px $color-shadow; // button pops even more out of page - } - &:active { - //on click - box-shadow: inset -1px 1px 5px 0px $color-shadow; // button is pushed into page - } - } - - &.selected { - box-shadow: inset -1px 1px 3px 0px $color-shadow; // button is pushed into page, a bit less shadow on click - color: $color-selected; - - &:hover { - box-shadow: inset -2px 2px 5px 0px $color-shadow; // button is pushed into deeper in page - } - &:active { - box-shadow: inset -3px 3px 5px 0px $color-shadow; // button is pushed even into deeper in page - } - } - } - } - - .content { - position: relative; - display: flex; - flex-direction: column; - padding: 1em; - overflow-y: auto; - - @import "./task/taskchooser"; - @import "./task/tasks"; - } -} diff --git a/dist/scss/components/_taskview.scss b/dist/scss/components/_taskview.scss deleted file mode 100644 index 3c107fe..0000000 --- a/dist/scss/components/_taskview.scss +++ /dev/null @@ -1,58 +0,0 @@ -.task-view { - display: grid; - grid-template-columns: 4fr 8fr 4fr; - transition: grid-template-columns 0.66s ease-in-out; - grid-template-rows: 100%; - - &.no-output { - grid-template-columns: 4fr 12fr 0fr; - transition: grid-template-columns 0.5s ease-out; - } - - @import "./search"; - - .task-view-table-button-wrapper { - position: relative; - - .task-view-scroll-wrapper { - overflow: auto; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - - .task-view-table { - display: flex; - align-items: flex-start; // each column has its own height, used to keep search column seperate of others. default=stretch - padding-bottom: 5em; - - @import "./column"; - - &.input .data { - margin-top: 10px; - padding-bottom: 10px; - border-bottom: 1px solid $color-border-light; - } - } - } - - .floating-confirm { - position: absolute; - left: 1em; - bottom: 1.5em; - right: 1em; - padding: 0.5em 1em; - - z-index: 2000; //output cohort column has 1000 - - display: grid; - grid-template-columns: auto minmax(min-content, 50%); - justify-content: space-between; - - button { - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16), 0 3px 9px rgba(0, 0, 0, 0.23); - } - } - } -} diff --git a/dist/scss/components/_tooltip.scss b/dist/scss/components/_tooltip.scss deleted file mode 100644 index d8a6b70..0000000 --- a/dist/scss/components/_tooltip.scss +++ /dev/null @@ -1,27 +0,0 @@ - - -.tooltip-serachbar { - width: 500px; - - .tooltip-txt { - width: auto; - } - - @import "./searchBar/searchbar"; - - .tooltip-controls{ - display: flex; - direction: rtl; - padding: 5px 0px 0px 0px; - - .tooltip-btn{ - // cursor: pointer; - flex: 0 1; - // height: 20px; - // line-height: 20px; - // border-radius: 4px; - margin-left: 5px; - // padding: 0 5px; - } - } -} \ No newline at end of file diff --git a/dist/scss/components/_welcome.scss b/dist/scss/components/_welcome.scss deleted file mode 100644 index 4e35a33..0000000 --- a/dist/scss/components/_welcome.scss +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************** - * Copyright (c) The Caleydo Team, http://caleydo.org - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - ********************************************************************/ - - .welcomeView:not(:only-child) { - display: none; -} - -.welcomeView { - width: 100% !important; - padding-top: 1em; - margin-left: 0px; - margin-right: 0px; - display: flex; - justify-content: center; - align-items: center; - - h1, h2, p { - color: $color-text-medium; - } - - h1 { - font-size: 3rem; - margin-top: 0px; - } - - .intro { - p { - font-size: 2em; - } - } -} diff --git a/dist/scss/components/columns/_datacells.scss b/dist/scss/components/columns/_datacells.scss deleted file mode 100644 index c607297..0000000 --- a/dist/scss/components/columns/_datacells.scss +++ /dev/null @@ -1,58 +0,0 @@ - -.data { - - - &.deselected { - opacity: 0.5; - } - - - .hist { - width: 100%; - height: 100%; - padding: 3px 1px; - > div { - width: 100%; - height: 100%; - } - - .loader { - display: flex; - align-items: center; - justify-content: center; - height: 56px; - } - - &.text{ - display: flex; - justify-content: center; - align-items: center; - height: 56px; //Cohort Representation + Padding = 52px + 2*2px= 56px - - - > div { - width: unset; - height: unset; - max-width: 100%; - max-height: 40px; - line-height: 20px; - text-overflow: ellipsis; - text-align: center; - // mutli line text trimming: https://css-tricks.com/line-clampin/ (license: https://css-tricks.com/license/) - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - overflow: hidden; - } - } - } - - &.first-output-cohort { - margin-top: 10px; - } - - &.last-output-cohort { - padding-bottom: 10px; - border-bottom: 1px solid $color-border-light; - } -} diff --git a/dist/scss/components/columns/_header.scss b/dist/scss/components/columns/_header.scss deleted file mode 100644 index 34f9373..0000000 --- a/dist/scss/components/columns/_header.scss +++ /dev/null @@ -1,85 +0,0 @@ - -.header { - display: flex; - flex-direction: column; - height: 42px; // = same height as (searchbar + padding) from the task column - - font-weight: 500; - - position: sticky; - top: 0; - - background: inherit; - z-index: 2; // because the mini vis were on top of the header - - border-bottom: 1px solid $color-border-light; - padding: 2px 2px 0 2px; // more padding on top so the text is not so close to the border - - .header-title { - font-size: 1.1em; - height: 18px; - line-height: 18px; - margin-top: 3px; - &.text { - text-overflow: ellipsis; - white-space: nowrap; // No line breaks - overflow: hidden; // require for text-overflow to work - text-align: center; - } - } - - .header-option { - display: flex; - flex-direction: row-reverse; - height: 18px; - line-height: 18px; - - - .options { - height: 18px; - width: 12px; - margin-left: 3px; - font-size: 13px; - color: $color-tv-opt; - text-align: center; - - &.left-side { - margin-right: auto; - } - - &:hover { - color: $color-tv-opt-hover; - cursor: pointer; - } - - &.active { - color: $color-tv-opt-active; - - &:hover { - color: $color-tv-opt-hover; - } - } - - &.remove{ - font-size: 12px !important; - color: $color-tv-opt-active; - order: 100; - - &:hover { - color: $color-red; - cursor: pointer; - } - } - } - - .options.options-with-text { - width: auto; - display: flex; - - .options-text { - font-size: 0.9em; - padding: 0 2px; - } - } - } -} diff --git a/dist/scss/components/searchBar/_searchbar.scss b/dist/scss/components/searchBar/_searchbar.scss deleted file mode 100644 index cc6b54f..0000000 --- a/dist/scss/components/searchBar/_searchbar.scss +++ /dev/null @@ -1,108 +0,0 @@ -* { - box-sizing: border-box; -} - -.search-bar-container { - position: relative; - border: 1px solid $color-search-bar-border; - padding: 1px 1px 0px 1px; - border-radius: $border-radius-search-bar; - cursor: text; - min-height: 35px; - max-height: 66px; - overflow-y: auto; - overflow-x: hidden; - display: flex; - flex: 0; - flex-wrap: wrap; - background: $color-background; - color: $color-text; - - .input-badge { - position: relative; - border-radius: $border-radius-search-bar; - - .search-bar-placeholder { - position: absolute; - height: 32px; - font-size: 1.1em; - line-height: 32px; - left: 0.25em; - top: 0; - color: $color-search-bar-placeholder; - } - } - - - .search-bar-input { - min-width: 10px; - height: 25px; - line-height: 25px; - padding: 0 0.25em; - border: none; - font-size: 1.1em; - - &:focus { - outline: none !important; //should remove the highlighting - } - } - - .clear-all { - height: 25px; - width: 25px; - background-color: $color-badge-interaction-bg; - color: $color-text; - border: 1px solid $color-badge-interaction-border; - border-radius: $border-radius-search-bar; - text-align: center; - line-height: 25px; - margin-bottom: 1px; - margin-right: 5px; - vertical-align: middle; - font-weight: bold; - font-size: 1.1em; - cursor: pointer; - } - - .selected-option-badge { - height: 25px; - background-color: $color-badge-background; - border: 1px solid $color-badge-border; - border-radius: $border-radius-search-bar; - margin-left: 1px; - margin-bottom: 1px; - overflow: hidden; //needed to allow rounded corners in the child-elements - cursor: default; - display: flex; - - .label { - max-width: 150px; - padding: 0 0.25em; - font-size: 1.1em; - font-weight: normal !important; - line-height: 24px; - vertical-align: middle; - text-align: center; - color: $color-text; - text-overflow: ellipsis; - white-space: nowrap; // No line breaks - overflow: hidden; // require for text-overflow to work - } - - .remove-x { - width: 20px; - text-align: center; - line-height: 25px; - font-size: 25px; // == height of the text - vertical-align: middle; - background-color: $color-badge-interaction-bg; - font-weight: bold; - padding: 0px 3px; - cursor: pointer; - border-top-left-radius: $border-radius-search-bar; - border-bottom-left-radius: $border-radius-search-bar; - border-top-right-radius: unset; - border-bottom-right-radius: unset; - } - } -} diff --git a/dist/scss/components/searchBar/_searchbar_options.scss b/dist/scss/components/searchBar/_searchbar_options.scss deleted file mode 100644 index 3c1c48f..0000000 --- a/dist/scss/components/searchBar/_searchbar_options.scss +++ /dev/null @@ -1,322 +0,0 @@ -* { - box-sizing: border-box; -} - -.option-container-wrapper { - position: absolute; - z-index: 9001; //over 9000 -} - -.option-container { - height: 326px; - display: grid; - grid-template-rows: 1fr; - grid-template-columns: 55% 45%; - border: 1px solid $color-border-light; - border-top: none; - border-radius: $border-radius-search-bar; - - .option-list { - overflow: auto; - background-color: $color-background; - height: 100%; - grid-column: 1; - grid-row: 1; - border-top-left-radius: $border-radius-search-bar; - border-bottom-left-radius: $border-radius-search-bar; - - .option-group-header { - padding: 5px 2px 5px 10px; - border-top: 1px solid $color-search-bar-header-border; - border-bottom: 1px solid $color-search-bar-header-border; - font-weight: bolder; - } - - .option { - padding: 5px 2px 5px 15px; - cursor: pointer; - background-color: $color-background; - border-bottom: 1px solid $color-border-light; - display: flex; - flex-wrap: wrap; - align-items: baseline; - - .option-text-ensemble { - margin-left: 5px; - font-weight: normal; - color: $color-text-light; - } - - &:hover { - background-color: $color-searchbar-hover; - font-style: italic; - } - - &.option-selected { - background-color: $color-searchbar-selected !important; - box-shadow: $box-shadow-searchbar-option-selected; - - &:hover { - background-color: $color-searchbar-hover !important; - font-style: italic; - } - } - - &.option-focus { - // keyboard focus - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-background 2%, - $color-background 100% - ) !important; - font-style: italic; - - &.option-selected { - box-shadow: $box-shadow-searchbar-option-selected; - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-selected 2%, - $color-searchbar-selected 100% - ) !important; - - &:hover { - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-hover 2%, - $color-searchbar-hover 100% - ) !important; - } - } - - &:not(.option-selected):hover { - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-hover 2%, - $color-searchbar-hover 100% - ) !important; - } - } - } - } - - .option-detail { - background-color: $color-search-bar-option-detail-bg; - border-left: 1px solid $color-border-light; - height: 100%; - grid-column: 2; - grid-row: 1; - overflow-y: auto; - border-top-right-radius: $border-radius-search-bar; - border-bottom-right-radius: $border-radius-search-bar; - - .detail-info { - &.detail-dbc, - &.detail-panel { - overflow-x: hidden; - p { - word-wrap: break-word; - padding-left: 2px; - span { - font-weight: bold; - } - } - } - - &.detail-special { - overflow: auto; - background: $color-search-bar-option-detail-header-bg; - height: 100%; - - .detail-info-label { - padding: 5px 2px 5px 10px; - background-color: $color-search-bar-option-detail-header-bg; - font-weight: bolder; - } - - .detail-info-text { - padding: 5px 2px 5px 10px; - background-color: $color-background; - border-bottom: 1px solid $color-border-light; - } - - .detail-info-group-header { - padding: 5px 2px 2px 10px; - border-top: 1px solid $color-search-bar-option-detail-top-border; - border-bottom: 1px solid $color-search-bar-option-detail-bottom-border; - font-weight: bolder; - } - - .detail-info-option { - padding: 2px 2px 2px 15px; - cursor: pointer; - background-color: $color-background; - border-bottom: 1px solid $color-border-light; - - &:last-child { - border-bottom: unset; - } - - &:hover { - background-color: $color-searchbar-hover; - font-style: italic; - } - - &.option-selected { - background-color: $color-searchbar-selected !important; - box-shadow: $box-shadow-searchbar-option-selected; - - &:hover { - background-color: $color-searchbar-hover !important; - font-style: italic; - } - } - - &.option-focus { - // keyboard focus - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-background 2%, - $color-background 100% - ) !important; - font-style: italic; - - &.option-selected { - box-shadow: $box-shadow-searchbar-option-selected; - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-selected 2%, - $color-searchbar-selected 100% - ) !important; - - &:hover { - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-hover 2%, - $color-searchbar-hover 100% - ) !important; - } - } - - &:not(.option-selected):hover { - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-hover 2%, - $color-searchbar-hover 100% - ) !important; - } - } - } - } - - &.detail-gene { - overflow: auto; - background: $color-search-bar-option-detail-header-bg; - height: 100%; - - .detail-info-gene-label { - padding: 5px 2px 5px 10px; - background-color: $color-search-bar-option-detail-header-bg; - font-weight: bolder; - - .detail-info-gene-ensemble { - margin-left: 5px; - font-weight: normal; - color: $color-text-light; - } - } - .detail-info-group-header { - padding: 5px 2px 2px 10px; - border-top: 1px solid $color-search-bar-option-detail-top-border; - border-bottom: 1px solid $color-search-bar-option-detail-bottom-border; - font-weight: bolder; - } - - .detail-info-option { - padding: 2px 2px 2px 15px; - cursor: pointer; - background-color: $color-background; - border-bottom: 1px solid $color-border-light; - - &:last-child { - border-bottom: unset; - } - - &:hover { - background-color: $color-searchbar-hover; - font-style: italic; - } - - &.option-selected { - background-color: $color-searchbar-selected !important; - box-shadow: $box-shadow-searchbar-option-selected; - - &:hover { - background-color: $color-searchbar-hover !important; - font-style: italic; - } - } - - &.option-focus { - // keyboard focus - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-background 2%, - $color-background 100% - ) !important; - font-style: italic; - - &.option-selected { - box-shadow: $box-shadow-searchbar-option-selected; - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-selected 2%, - $color-searchbar-selected 100% - ) !important; - - &:hover { - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-hover 2%, - $color-searchbar-hover 100% - ) !important; - } - } - - - &:not(.option-selected):hover { - background: linear-gradient( - 90deg, - $color-bar 0%, - $color-bar 2%, - $color-searchbar-hover 2%, - $color-searchbar-hover 100% - ) !important; - } - } - } - } - } - } -} diff --git a/dist/scss/components/task/_compare.scss b/dist/scss/components/task/_compare.scss deleted file mode 100644 index 898e0eb..0000000 --- a/dist/scss/components/task/_compare.scss +++ /dev/null @@ -1,237 +0,0 @@ - - -.tourdino { - display: grid; - grid-template-rows: 1fr auto; - grid-template-columns: 1fr 1fr; - column-gap: 120px; // a bit more than the width of a 45° rotated table column header - - table { - - $wide-col-padding: 0.5em; - $narrow-col-padding: 0.2em; - $col-min-size: 4.5ch; - $col-max-size: 15em; - $table-border-color: white; - - - .head-desc { - z-index: -1; // above td elements - background-color: white; - header { - font-size: 1.2em; - } - - p { - font-weight: normal; - } - } - - table-layout: fixed; // The table and column widths are set by the widths of table and col or by the width of the first row of cells. Cells in other rows do not affect column widths. - - tbody.bottom-margin { - border-bottom: 0.5em solid $table-border-color; // table's border spacing applies to all rows and tbody has no margin - } - - th { - min-width: $col-min-size; - max-width: $col-min-size; - position: sticky; - top: 0; - z-index: 2; - - &:not(.head) { // cells of row labels in header - min-width: $col-max-size*0.7; //flexible from min to max - max-width: $col-max-size; - padding: 0 $wide-col-padding; - background-color: white; - } - - &.head { - - &.rotate { // adapted from https://css-tricks.com/rotated-table-column-headers/ (licencs: https://css-tricks.com/license/) - height:120px; - - svg { - position: absolute; - top: 0; - left: 0; - - polygon { - fill: white; - } - } - - > div { - transform: translate(12px,48px) //3. Back to the correct position - rotate(-45deg) //2. Rotate to correct angle - skew(45deg,0deg); //1. skew the div, so that the background is correct (text content is unskewed below) - width: 30px; - - > span { - position: relative; - display: inline-block; // to set a width - min-width: 165px; - max-width: 165px; - box-sizing: border-box; // i dont want to mess with the padding - - padding-bottom: 0px; - padding-top: 1px; - line-height: 1.25; //defines height of headers - border-bottom: 2px solid $table-border-color; //make space between headers non-transparent (removed for last header below) - background-color: white; - - > span { - transform: skew(-45deg,0deg); //unskew the text - - max-width: 100%; // just as wide as the parent - display: inline-block; // to make width & string truncation work - vertical-align: bottom; // at the bottom of the parent - overflow: hidden; // important to stop text at right border - white-space: nowrap; // no line breaks - text-overflow: ellipsis; - font-weight: normal; - - box-sizing: border-box; // i dont want to mess with the padding - padding: 0.1em 0.5em 0.1em 1.5em; - } - } - } - - &:last-child > div > span{ - border-bottom: none; // no need for a border on last header - } - } - } - - - } - - .cross-selection, .cross-selection::before, .cross-selection span::before { - background-color: $color-hover !important; // important because to overwrite the htmml inline color definition - color: black !important; - } - - td { - border: 1px solid $table-border-color; - border-collapse: collapse; - position: relative; - background: white; - background-clip: padding-box; // fix firefox bug: td background stretches over tbody border - - &[rowspan] { - vertical-align: text-top; // move text of multi-row cells to the top - } - - &:not(.score) { // row labels - min-width: $col-max-size*0.7; - max-width: $col-max-size; - padding: 0 $wide-col-padding; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - &.score { - // no min-width here because than the cell gets larger on hover (wich makes the text bolder) - max-width: $col-min-size; - text-align: center; // padding workaround, because we make the font bolder on hover and can use the whitespace of the cell this way - overflow: hidden; - text-overflow: clip; // cells are so small, the ... would take to much space - white-space: nowrap; - - // border-style: solid; - // border-color: $table-border-color; - // border-width: 0px; // overwrite the default - // border-right-width: 1px; // just on the right - } - - &.action, &.score { - cursor: pointer; - vertical-align: bottom; // Actually, it should be middle, but bottom looks more centered ¯\_(ツ)_/¯ - - &:hover, &:focus { // = td.action:hover - background-color: $color-hover !important; // important because to overwrite the htmml inline color definition - color: black !important; - font-weight: bolder; - } - - &.selectedCell { - background-color: $color-selected !important; // important because to overwrite the htmml inline color definition - color: black !important; - font-weight: bolder; - } - } - - span.circle { - display: inline-block; - width: 0.8em; - height: 0.8em; - vertical-align: middle; - background-color: $color-text; - border: 1px solid transparent; - border-radius: 100%; - } - } - } - - - .details { - - .detailDiv { - font-weight: bold; - - span { - font-weight: normal; - - &.detail-label { - font-weight: bold; - } - } - } - - svg { - // generic axes styles - path, - .axis path, - line, - .axis line { - fill: none; - stroke-width: 1; - stroke: black; - shape-rendering: crispEdges; - } - } - - - // ------ boxplot with D3 - g.box-element text { - stroke: none; - fill: black; - } - - g.box-element { - rect.box { - stroke: black; - stroke-width: 1; - stroke-opacity: 0; - fill-opacity: .5; - } - line.center, line.median, line.whisker{ - stroke-opacity: 0.2; - } - } - - g.box-element.selected { - rect.box{ - stroke: black; - stroke-width: 1; - stroke-opacity: 1; - fill-opacity: 1; - } - line.center, line.median, line.whisker{ - stroke-opacity: 1; - } - } - } -} \ No newline at end of file diff --git a/dist/scss/components/task/_details.scss b/dist/scss/components/task/_details.scss deleted file mode 100644 index fb013ec..0000000 --- a/dist/scss/components/task/_details.scss +++ /dev/null @@ -1,29 +0,0 @@ -.lineup-container { - height: 100%; - - .lu-side-panel { - // 20em is the value from the LineUpJs scss - width: 20rem; // otherwise tdp_core/../_view_lineup.scss sets it to 100% - &.lu-collapsed{ - width: 0; - } - - .lu-side-panel-chooser { - display: none; - } - - .lu-stats > span { - border-color: $color-hover; - } - } - - .lineup-engine > main > footer { - // these footers provide space so that the scrollbars look like you can browse over the whole table while actually lineup is always showing just a fraction - display: block; // otherwise clue (selector = body[data-clue='E'] footer) sets it to 'none' - width: 0; // it would be 50px causing the table body being 50px wider than the table header and the two scrolling out of sync - } - - .le-tr.lu-selected, .le-tr:hover, .le-tr.le-highlighted { - box-shadow: 0 0 0 2px $color-hover; - } -} \ No newline at end of file diff --git a/dist/scss/components/task/_filter.scss b/dist/scss/components/task/_filter.scss deleted file mode 100644 index 4d43fa8..0000000 --- a/dist/scss/components/task/_filter.scss +++ /dev/null @@ -1,125 +0,0 @@ -@mixin right-caret { - font-family: "Font Awesome 5 Free"; - font-weight: 900; //only solid version of icon is free - content: "\f0da\00a0"; -} - -.vis-selector { - flex-grow: 1; - - a.selector { - &.selected::before { - @include right-caret(); - } - } - - .dropdown-item { - padding-left: 1em; - - &.selected a::before { - @include right-caret(); - } - } - - .dropdown-header { - font-size: unset; - color: unset; - padding-top: 0.5em; - border-top: 1px solid $color-border-light; - - &:first-child { - padding-top: unset; - border-top: unset; - } - } -} - -.vis-container { - display: grid; - grid-template-columns: 1fr 14em; - gap: 1em; - grid-template-areas: - "vis controls" - "legend legend"; - width: calc(100% - 1em); // save some space for scrollbar - - .controls { - grid-area: controls; - margin-left: -0.5em; //half of the gap between vis and controls - - display: grid; - align-content: start; // don't stretch the items (flexbox-like behaviour) - gap: 0.5em; - - .tab-content { - border: 1px solid $color-border-light; - border-top: none; - padding: 0.5em; - } - - .tab-pane .flex-wrapper { - display: flex; - flex-direction: column; - margin-bottom: 1em; - - &:last-child { - margin-bottom: unset; - } - - input[type="number"], - select { - padding-top: 2px; - padding-bottom: 2px; - height: 26px; // input's default height - } - } - } - - .legend { - grid-area: legend; - overflow: hidden; - text-overflow: ellipsis; - - .entry-wrapper { - &::after { - content: "\2003"; //emspace - } - - .entry { - white-space: nowrap; - } - } - } - - .null-value-container { - margin-top: 0.25em; - - .null-value-checkbox { - vertical-align: bottom; - top: -1px; - height: 18px; - position: relative; - } - - .null-value-label { - padding-left: 5px; - } - } - - .interval-controls { - width: 100%; - display: grid; - grid-template-columns: auto minmax(4em, 8em) auto minmax(4em, 8em); - grid-column-gap: 0.5em; - justify-content: center; - - input { - border: 1px solid $color-border-light; - width: auto; //needed to adjust to css grid 🤷‍♀️ - } - } -} - -button img { - padding-right: unset; -} diff --git a/dist/scss/components/task/_prevalence.scss b/dist/scss/components/task/_prevalence.scss deleted file mode 100644 index 1a11af9..0000000 --- a/dist/scss/components/task/_prevalence.scss +++ /dev/null @@ -1,614 +0,0 @@ -.prev-checkbox { - position: relative; - flex-shrink: 0; - width: 1.2em; - height: 1.2em; - margin: 0 0.2em; - background: $color-background; - border: 1px solid $color-border-light; - border-radius: 3px; - cursor: pointer; - - .checkbox-indicator { - position: absolute; - left: 5px; - top: 0px; - width: 5px; - height: 11px; - border: solid $color-background; - // border right+bot and roation creates checkmark - border-width: 0 2px 2px 0; - transform: rotate(45deg); - } - - .icon-container { - text-align: center; - height: 100%; - width: 100%; - } - - - .icon-container::after { - animation: spinAround infinite .75s linear; - position: absolute; - top: calc(50% - (0.45em)); - left: calc(50% - (0.45em)); - border: 2px black solid; - border-radius: 9999px; - border-color: transparent transparent $color-background $color-background; - content: ''; - display: block; - height: 0.9em; - width: 0.9em; - - @keyframes spinAround { - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(359deg); - } - } - - } -} - -// container for the checkbox for the exclusion of missing values -.exclude-container { - display: flex; - height: 1.5em; - align-items: center; - - // label for the checkbox - .label-excl-container { - align-self: center; - height: 100%; - margin-left: 3px; - cursor: default; - } - - // loading checkbox - .prev-checkbox.color-loading, - .prev-checkbox.active.color-loading { - background: $color-background !important; - - .icon-container::after { - background: $color-background !important; - border-color: transparent transparent $color-text $color-text !important; - } - } - - // active checkbox - .prev-checkbox.active { - background: $color-bar; - border-color: $color-bar; - - .checkbox-indicator { - border-color: $color-background; - } - } -} - -// container for the checkbox for showing the dataset bar -.show-dataset-container { - display: flex; - height: 1.5em; - align-items: center; - - // label for the checkbox - .label-show-dataset-container { - align-self: center; - height: 100%; - margin-left: 3px; - cursor: default; - } - - // loading checkbox - .prev-checkbox.color-loading, - .prev-checkbox.active.color-loading { - background: $color-background !important; - - .icon-container::after { - background: $color-background !important; - border-color: transparent transparent $color-text $color-text !important; - } - } - - // active checkbox - .prev-checkbox.active { - background: $color-bar; - border-color: $color-bar; - - .checkbox-indicator { - border-color: $color-background; - } - } -} - -$scale-line-width: 1px !default; -$error-bar-line-width: 1px !default; - -// container for one input cohort for the prevalence calculation -.prevalence-cohort-pack { - margin-top: 10px; - padding-top: 0.5em; - border-top: 1px solid $color-border-light; - - .prev-element-highlight { - border-color: $color-hover !important; - box-shadow: inset 0 0px 2px $color-hover-opacity-75, 0 0 8px $color-hover-opacity-75 !important; - } - - // reach row - .prev-row { - display: flex; - flex-direction: row; - } - - - .prev-show-dataset-eye { - cursor: pointer; - padding-top: 0.25em; - - &[data-show-dataset-bar='0'] { - color: $color-border-light; - } - - &[data-show-dataset-bar='1'] { - color: $color-text; - } - } - - .legend-task-row { - margin-bottom: 0.2em; - height: 1.6em; - } - - // labels for each bar legend - .prev-lable-cntr { - width: 200px; - } - - // **** task options ***** - - .task-option { - max-width: 350px; - height: 100%; - display: flex; - margin-right: 0.5em; - align-items: center; - border-radius: 3px; - - .task-label { - padding: 0 0.25em; - text-overflow: ellipsis; - white-space: nowrap; // No line breaks - overflow: hidden; // require for text-overflow to work - text-align: center; - align-self: center; - height: 100%; - } - } - - .ref-task-container, - .cht-task-container { - display: flex; - flex-direction: row; - align-items: center; - flex-wrap: wrap; - } - - // ---- reference tasks - // task options - .ref-task-option { - border: 1px solid $color-border-light; - cursor: pointer; - - - .task-label { - background: $color-background; - } - - .prev-checkbox { - border-color: $color-hover; - } - - } - - // loading task options - .ref-task-option.color-loading, - .ref-task-option.active.color-loading { - .prev-checkbox { - background: $color-background !important; - } - - .icon-container::after { - background: $color-background !important; - border-color: transparent transparent $color-hover $color-hover !important; - } - - } - - // active task options - .ref-task-option.active { - .prev-checkbox { - background: $color-hover; - border-color: $color-hover; - } - - .checkbox-indicator { - border-color: $color-background; - } - } - - // ---- input cohort tasks - // task options - .cht-task-option { - border: 1px solid $color-border-light; - cursor: default; - - .task-label { - background: $color-background; - color: $color-text-light; - } - - .prev-checkbox { - cursor: default !important; - background: $color-text-light; - border-color: $color-text-light; - } - - .checkbox-indicator { - border-color: $color-background; - } - } - - // **** legend ***** - .prev-legend-item { - display: flex; - flex-direction: row; - height: 100%; - align-items: center; - cursor: default; - } - - // the label for the bars = legend - .prev-result-label { - display: flex; - flex-direction: column; - justify-content: space-between; - height: 35px; - } - - // mark for all legend items - .prev-legend-mark { - height: 30%; - width: 1em; - min-width: 1em; - margin-right: 3px; - margin-bottom: 0.25em; - } - - // text for all legend items - .prev-legend-text { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - height: 100%; - } - - // mark for the reference item - .prev-legend-ref { - .prev-legend-mark { - background: $color-bar; - } - } - - // mark for the filtered out item - .prev-legend-all { - - // margin-bottom: 3px; - .prev-legend-mark { - background: $color-background-darker; - } - } - - // space after bar and scale - .prev-label-space { - width: 150px; - flex-grow: 0; - flex-shrink: 0; - display: flex; - flex-direction: column; - - .prev-max-scale-label { - height: 15px; - font-size: 0.9em; - margin-bottom: -0.45em; - margin-top: auto; - width: 100%; - flex-grow: 0; - flex-shrink: 0; - padding-left: 0.25em; - text-align: left; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - cursor: default; - - &.hide-label { - display: none !important; - } - } - - } - - // **** bars ***** - // container with all the bars - .prev-result-bar { - height: 25px; - width: 100%; - margin-top: auto; - - // for each bar (dataset, reference, cohort) - .bar { - position: absolute; - left: 0; - } - - .bar-dataset { - position: relative; - height: 100%; - width: 100%; - background: $color-background-darker; - - &.hide-dataset { - background: transparent; - } - } - - .prev-value-zero { - height: 100%; - background: transparent; - border-left: $scale-line-width solid $color-text; - z-index: 10; - } - - .bar-reference { - top: 10%; - height: 80%; - width: 0%; // inital value - background: $color-bar; - - &.loading-effect { - background-size: 40px 40px; - background-color: $color-bar !important; - // transition: width 0.6s ease; - background-image: - -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: - -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: - linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - - -webkit-animation: stripes 2s linear infinite; - -o-animation: stripes 2s linear infinite; - animation: stripes 2s linear infinite; - - @keyframes stripes { - 0% { - background-position: 0px 0; - } - - 100% { - background-position: 40px 0; - } - } - } - } - - .bar-cohort { - top: 25%; - height: 50%; - width: 0%; // inital value - - } - - - .prev-container-ci-bar { - width: 100%; // inital value - height: 100%; - display: flex; - flex-direction: row; - justify-content: flex-end; - align-items: center; - z-index: 10; - - .prev-ci-bar-offset { - width: 0% // inital value - } - - .prev-ci-bar-error { - flex-grow: 0; - flex-shrink: 0; - height: 50%; - width: 0%; // inital value - display: flex; - flex-direction: row; - align-items: center; - overflow: hidden; - - .prev-ci-bar-error-line { - height: 100%; - width: 100%; - - - &.side { - height: 100%; - width: $error-bar-line-width; - flex-grow: 0; - flex-shrink: 0; - background: $color-background; - } - - &.middle { - height: $error-bar-line-width; - flex-grow: 1; - flex-shrink: 1; - background: $color-background; - } - } - } - } - - } - - // **** scale ***** - // container with all the bars - .prev-result-scale { - height: 50px; // 14 (upperscale) + 36 (lower scale: 2*16 for the sizes + 4 padding) - - // for each scale (dataset, reference, cohort) - .prev-scale-elem { - position: absolute; - border-right: $scale-line-width solid $color-text; - left: 0; - top: 0; - } - - .prev-scale-sizes { - width: 100%; - - .prev-lower-scales { - position: relative; - width: 100%; - - .prev-scale-dataset { - width: 100%; - // height: 20px; - border-top: $scale-line-width solid $color-text; - - .prev-scale-first-tick { - height: 4px; - border-top: none; - border-right: none; - border-left: $scale-line-width solid $color-text; - } - } - - // reference scale - .prev-scale-reference { - height: 1.5em; - width: 0%; // inital value - display: flex; - flex-direction: row; - - // remove the border on the right -> use tick - &.prev-scale-elem { - border-right: none; - } - - // add border to the right = tick - .scale-reference-tick { - height: 100%; - width: 100%; - flex-grow: 0; - flex-shrink: 0; - border-right: $scale-line-width solid $color-text; - } - - // container with the labels = centered by tick - .scale-reference-container { - display: flex; - align-items: flex-end; - height: 100%; - width: 150px; - flex-grow: 0; - flex-shrink: 0; - text-align: center; - cursor: default; - - .scale-ctr-ref-size { - display: flex; - flex-direction: row; - } - - .prev-info-bar-label { - margin-left: 5px; - color: $color-bar; - flex-grow: 0; - flex-shrink: 0; - font-size: 0.9em; - height: 15px; - } - - .scale-ref-size { - height: 15px; - font-size: 0.9em; - padding-left: 0.25em; - text-align: left; - flex-grow: 0; - flex-shrink: 0; - } - - .scale-ref-percentage { - height: 16px; - padding: 0 0.25em; - text-align: left; - } - } - } - - - // cohort scale - .prev-scale-cohort { - height: 2.7em; - width: 0%; // inital value - display: flex; - - // remove the border on the right -> use tick - &.prev-scale-elem { - border-right: none; - } - - // add border to the right = tick - .scale-cohort-tick { - height: 100%; - width: 100%; - flex-grow: 0; - flex-shrink: 0; - border-right: $scale-line-width solid $color-text; - } - - // container with the labels = right aligned by tick - .scale-cohort-container { - display: flex; - height: 100%; - align-items: flex-end; - min-width: 150px; - cursor: default; - - .scale-cohort-size { - height: 15px; - font-size: 0.9em; - padding-left: 0.25em; - } - - .scale-cohort-percentage { - height: 16px; - padding: 0 0.25em; - } - - .scale-cohort-percentage { - font-weight: bold; - } - } - } - } - } - - - - } -} \ No newline at end of file diff --git a/dist/scss/components/task/_taskRectangle.scss b/dist/scss/components/task/_taskRectangle.scss deleted file mode 100644 index 58ee332..0000000 --- a/dist/scss/components/task/_taskRectangle.scss +++ /dev/null @@ -1,38 +0,0 @@ -$task-border-radius: 3px !default; -// styles for operation -div.rectTask { - border: 1px solid $color-border-medium; - border-radius: $task-border-radius; - background-color: $color-task-background; - text-align: center; - cursor: default; - position: relative; - - .rectTask-label { - padding: 0 0.25em; - text-overflow: ellipsis; - white-space: nowrap; // No line breaks - overflow: hidden; // require for text-overflow to work - } - - .rectTask-image { - background-repeat: no-repeat; - background-position: center; - font-size: 25px; - font-family: 'Font Awesome 5 Free'; - } - - .remove-task { - position: absolute; - top: 1px; - right: 1px; - color: $color-remove-icon; - font-size: 0.7em; - cursor: pointer; - - &:hover { - color: $color-red !important; - } - } - -} diff --git a/dist/scss/components/task/_taskchooser.scss b/dist/scss/components/task/_taskchooser.scss deleted file mode 100644 index 2d28280..0000000 --- a/dist/scss/components/task/_taskchooser.scss +++ /dev/null @@ -1,107 +0,0 @@ -$task-width: 8em !default; -$task-gap: 1em !default; - -.task-selector { - z-index: 2; - transform-origin: top left; - - &.minimize { - transform: scale(0.1); - transition: transform 0.2s linear; - } - - - .tasks-header, .task-list-header { - font-size: 1.75rem; - - &.task-list-header { - margin: 0.5em 0; - border-bottom: 1px solid $color-border-light; - - .info { - font-size: 0.5em; - } - } - } - - p { - font-size: 1rem; - } - - .tasks { - padding: 0 1em; - } - - .task-list { - display: grid; // grid instead of flexbox because chrome can handle gap for grids - grid-auto-flow: column; // fill columns first - justify-content: start; // don't stretch the task buttons - gap: $task-gap; - } - - .task { - width: $task-width; - height: 6em; - // border: 1px solid $color-border-light; - // border-radius: 0.25em; - display: grid; - grid-template-columns: 1fr; - grid-template-rows: 1fr auto; - cursor: pointer; - - &.dual { - // grid-column-end: span 2; - width: $task-width*2+$task-gap; - grid-template-columns: 1fr 1fr; - grid-template-rows: 1fr; - - > div { - display: grid; - grid-template-columns: 1fr; - grid-template-rows: 1fr auto; - - &:first-child { - border-right: 1px dashed $color-border-light; - } - } - - &:hover { - > div { - border-color: darken($color-border-light,12%); // bootstarp hover styling - } - } - } - - // &.disabled { - // color: $color-border-light; //same as border - // } - - // &:not(.disabled) { - // box-shadow: -1px 1px 3px 0px $color-shadow; // button pops out of page - - // &:hover { - // box-shadow: -1px 1px 5px 1px $color-shadow; // button pops even more out of page - // text-shadow: -1px -1px $color-shadow; - // } - // &:active { - // //on click - // box-shadow: inset -1px 1px 5px 0px $color-shadow; // button is pushed into page; - // text-shadow: 1px 1px $color-shadow; - // } - // } - - .task-icon, .task-label { - display: flex; - justify-content: center; - align-items: center; - - &.task-label { - padding-bottom: 0.25em; - font-size: 1rem; - } - &.task-icon { - font-size: 2.5rem; - } - } - } -} diff --git a/dist/scss/components/task/_tasks.scss b/dist/scss/components/task/_tasks.scss deleted file mode 100644 index 47cc435..0000000 --- a/dist/scss/components/task/_tasks.scss +++ /dev/null @@ -1,68 +0,0 @@ -.task-container { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - overflow-y: auto; - padding: 0.5em; - - .task-vis-container { - display: grid; - grid-template-columns: 1fr; - grid-template-rows: auto 1fr; - height: 100%; - - - .task-header { - display: flex; - // gap: 1em; // handled by margin of task title below because chrome doesnt support "gap" yet - margin-bottom: 0.5em; - grid-row: 1; - grid-column: 1; - - } - - .task-body { - grid-row: 2; - grid-column: 1; - } - - @import "./filter"; - @import "./details"; - @import "./prevalence"; - @import "./compare"; - @import "./characterize"; - - - .progress-wrapper { - display: flex; - align-items: center; - - .progress-ctrl { - width: 2em; // constant width - display: flex; // move button to bottom - align-items: flex-end; - - .run { - color: $color-text; - &:hover { - color: $color-hover; - } - } - } - - .progress { - flex-grow: 1; // variable width - flex-shrink: 1; - margin-bottom: unset; - - .progress-bar { - min-width: 3em; - background-color: $color-bar; - } - } - } - } - -} diff --git a/dist/scss/main.scss b/dist/scss/main.scss deleted file mode 100644 index a2c378f..0000000 --- a/dist/scss/main.scss +++ /dev/null @@ -1,15 +0,0 @@ -@import './abstracts/variables'; -@import './base/animations'; -@import './base/loading'; -@import './base/icon_layer'; -@import './base/base'; - -@import './vendors/tippy'; -@import './components/StartMenu.scss'; - -@import './components/taskview'; -@import './components/overview'; -@import './components/tooltip'; -@import './components/searchBar/searchbar_options'; -@import './components/welcome'; -@import './components/coral'; diff --git a/dist/scss/themes/_coral.scss b/dist/scss/themes/_coral.scss deleted file mode 100644 index dd06985..0000000 --- a/dist/scss/themes/_coral.scss +++ /dev/null @@ -1,2 +0,0 @@ -$carousel-control-color: #0084c8 !default; -$phovea-navbar-icon-url: url('~coral/dist/assets/favicon.svg') !default; diff --git a/dist/scss/vendors/_tippy.scss b/dist/scss/vendors/_tippy.scss deleted file mode 100644 index d6a8526..0000000 --- a/dist/scss/vendors/_tippy.scss +++ /dev/null @@ -1,23 +0,0 @@ -@import '~tippy.js/dist/tippy.css'; -@import '~tippy.js/themes/light-border.css'; -@import '~tippy.js/themes/translucent.css'; -@import '~tippy.js/animations/shift-toward.css'; - -.tippy-box[data-theme~='onboarding'] { - background: linear-gradient(to bottom, $color-app, lighten($color-app, 5%)); // slight gradient - font-weight: 500; - font-size: 1.1em; -} - -.tippy-box[data-theme~='onboarding'][data-placement^='top'] > .tippy-arrow::before { - border-top-color: $color-app; -} -.tippy-box[data-theme~='onboarding'][data-placement^='bottom'] > .tippy-arrow::before { - border-bottom-color: $color-app; -} -.tippy-box[data-theme~='onboarding'][data-placement^='left'] > .tippy-arrow::before { - border-left-color: $color-app; -} -.tippy-box[data-theme~='onboarding'][data-placement^='right'] > .tippy-arrow::before { - border-right-color: $color-app; -} \ No newline at end of file diff --git a/dist/templates/DeleteModal.html b/dist/templates/DeleteModal.html deleted file mode 100644 index 2e7ed71..0000000 --- a/dist/templates/DeleteModal.html +++ /dev/null @@ -1,19 +0,0 @@ - \ No newline at end of file diff --git a/dist/templates/SearchColumn.html b/dist/templates/SearchColumn.html deleted file mode 100644 index 9c9a75d..0000000 --- a/dist/templates/SearchColumn.html +++ /dev/null @@ -1,74 +0,0 @@ - \ No newline at end of file diff --git a/dist/templates/Welcome.html b/dist/templates/Welcome.html deleted file mode 100644 index 6f01bc8..0000000 --- a/dist/templates/Welcome.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
-
-

Welcome to Coral

-

- Get started by selecting a dataset to analyze at the top left.
- Blue tooltips will guide you through the process.
- Click the Help icon in the top right, for more information on Coral. -

- -
-
-
\ No newline at end of file diff --git a/dist/templates/_aboutDisclaimer.html b/dist/templates/_aboutDisclaimer.html deleted file mode 100644 index 1e41f39..0000000 --- a/dist/templates/_aboutDisclaimer.html +++ /dev/null @@ -1,122 +0,0 @@ -
-

Disclaimer

- -

- The information provided by Johannes Kepler University Linz, Boehringer Ingelheim RCV GmbH & Co KG, - and datavisyn GmbH (“we,” “us” or “our”) on - https://coral.calyedoapp.org - (the “Site”) is for general research purposes and non-commercial use only. All information on the Site - is provided in good faith, however we make no representation or warranty of any kind, expressed or implied, - regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the Site. -

- -

- Under no circumstance shall we have any liability to you for any loss or damage of any kind incurred as a result - of - the use of the Site or reliance on any information provided on the Site. Your use of the Site and your reliance on - any information on the Site is solely at your own risk. -

- -

- The Site may contain (or you may be sent through the Site) links to other websites or content belonging to or - originating from third parties or links to websites and features in banners or other advertising. Such external - links are not investigated, monitored, or checked for accuracy, adequacy, validity, reliability, availability or - completeness by us. We do not warrant, endorse, guarantee, or assume responsibility for the accuracy or - reliability - of any information offered by third-party websites linked through or embedded within the Site. -

- -

- The Site cannot and does not contain medical or health advice. The information is provided for general - informational - and educational purposes only and is not a substitute for professional advice. -

-
- -
-

Terms of Use

- -
    -
  1. Coral is intended for scientific research and non-commercial use only.
  2. -
  3. Coral cannot be used for the provision of medical advice.
  4. -
  5. We expect attribution (e.g. in publications, services or products) for any of Coral's online services, - databases or software in accordance with good scientific practice. -
  6. -
  7. Coral provides data collated from the public domain with references to their sources. We cannot guarantee the - accuracy of any data or databases nor their suitability for user purposes. -
  8. -
  9. The original data in Coral may be subject to rights claimed by third parties, including but not limited to, - patent, copyright, other intellectual property rights, biodiversity-related access and benefit-sharing rights. - It is the responsibility of users of Coral to ensure that their exploitation of the data does not infringe any - of the rights of such third parties. -
  10. -
  11. We are not liable to you or third parties claiming through you, for any loss or damage.
  12. -
  13. We do not accept responsibility for the consequences of any breach of the confidentiality of the Coral Site - by third parties. -
  14. -
  15. We accept no responsibility for the consequences of any temporary or permanent discontinuity in service of this Site. -
  16. -
  17. Users of Coral agree not to attempt to use any Coral computers, files or networks apart from through the service interfaces provided. -
  18. -
  19. Any attempt to use Coral to a level that prevents, or looks likely to prevent, Coral providing services to others, will result in the use being blocked. -
  20. -
  21. Any feedback on Coral will be treated as non-confidential unless the individual or organization providing the feedback states otherwise. -
  22. -
-
- -
-

Data

- -

Coral contains the following data sets:

- - -
- -
-

Source code

- -

- The source code of Coral is available at - GitHub. -

-
- -
-

Contact

- -

- If you want to use the software in a commercial context or if you have other questions, write us an email to - coral@caleydo.org. -

-
diff --git a/dist/util.d.ts b/dist/util.d.ts deleted file mode 100644 index 40d8e16..0000000 --- a/dist/util.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { Selection } from 'd3v7'; -import * as logger from 'loglevel'; -import { ICohort } from './CohortInterfaces'; -import { IAttribute } from './data/Attribute'; -import { IEqualsList, INumRange } from './rest'; -export declare const log: logger.RootLogger; -/** - * Deep copy function for TypeScript. - * SOURCE: https://stackoverflow.com/a/51592360/2549748 - * Function licensed under CC-BY-SA 4.0, see https://stackoverflow.com/help/licensing - * License is available at https://creativecommons.org/licenses/by-sa/4.0/ - * @param T Generic type of target/copied value. - * @param target Target value to be copied. - * @see Source project, ts-deepcopy https://github.com/ykdr2017/ts-deepcopy - * @see Code pen https://codepen.io/erikvullings/pen/ejyBYg - */ -export declare const deepCopy: (target: T) => T; -export declare function handleDataLoadError(e: any): void; -export declare function handleDataSaveError(e: any): void; -export declare class ScrollLinker { - private divA; - private divB; - private enabled; - isSyncingScrollA: boolean; - isSyncingScrollB: boolean; - constructor(divA: HTMLDivElement, divB: HTMLDivElement, enabled?: boolean); - private handleScrollA; - private handleScrollB; - enable(): void; - disable(): void; - destroy(): void; -} -/** - * Returns true if removed, false if it didn't contain the element - * @param array array to remove from - * @param toRemove element to remove - */ -export declare function removeFromArray(array: Array, toRemove: T): boolean; -/** - * Returns true if added to array, false if it already contained the element - * @param array array to push to - * @param toPush element to push - */ -export declare function pushUnique(array: Array, toPush: T): boolean; -export declare enum SortType { - Default = "default", - Alpha_AZ = "alpha_az", - Alpha_ZA = "alpha_za", - Size_19 = "size_19", - Size_91 = "size_91" -} -export interface IFilterDesc { - cohort: ICohort; - filter: IAttributeFilter[]; -} -export interface IAttributeFilter { - attr: IAttribute; - range: INumRange[] | IEqualsList; -} -export declare function getAnimatedLoadingText(thingToLoad?: string, large?: boolean): HTMLParagraphElement; -export declare function getAnimatedText(thingToLoad?: string, large?: boolean): HTMLParagraphElement; -export declare function getAnimatedLoadingBars(): HTMLDivElement; -export declare class CohortColorSchema { - static readonly COLOR_SCHEME: string[]; - static get(index: number): string; -} -export declare function setSessionStorageItem(key: string, value: any): void; -export declare function getSessionStorageItem(key: string): any; -export declare function selectLast(d3Elem: Selection, query: string): Selection; -export declare function inRange(value: any, interval: any): boolean; -export declare function hasCookie(cookieID: any): boolean; -export declare function createHTMLElementWithClasses(htmlElem: string, classes: string[]): HTMLElement; -export declare class DebugTools { - /** - * lets the execution pause for the given amount of milliseconds. - * Use with await keyword. - * @param millis time to wait - */ - static sleep(millis: number): Promise; -} diff --git a/dist/util.js b/dist/util.js deleted file mode 100644 index 7203cb5..0000000 --- a/dist/util.js +++ /dev/null @@ -1,260 +0,0 @@ -import { select } from 'd3v7'; -import * as logger from 'loglevel'; -import { NotificationHandler } from 'tdp_core'; -logger.setDefaultLevel(logger.levels.INFO); -export const log = logger; -/** - * Deep copy function for TypeScript. - * SOURCE: https://stackoverflow.com/a/51592360/2549748 - * Function licensed under CC-BY-SA 4.0, see https://stackoverflow.com/help/licensing - * License is available at https://creativecommons.org/licenses/by-sa/4.0/ - * @param T Generic type of target/copied value. - * @param target Target value to be copied. - * @see Source project, ts-deepcopy https://github.com/ykdr2017/ts-deepcopy - * @see Code pen https://codepen.io/erikvullings/pen/ejyBYg - */ -export const deepCopy = (target) => { - if (target === null) { - return target; - } - if (target instanceof Date) { - return new Date(target.getTime()); - } - if (target instanceof Array) { - const cp = []; - target.forEach((v) => { cp.push(v); }); - return cp.map((n) => deepCopy(n)); - } - if (typeof target === 'object' && target !== {}) { - const cp = { ...target }; - Object.keys(cp).forEach((k) => { - cp[k] = deepCopy(cp[k]); - }); - return cp; - } - return target; -}; -export function handleDataLoadError(e) { - let msg = 'Data could not be loaded.'; - if (e instanceof Error && e.message.toUpperCase() === 'UNAUTHORIZED') { - msg = 'You need to login first.'; - } - log.error(msg, e); - NotificationHandler.pushNotification('error', msg, 4000); -} -export function handleDataSaveError(e) { - let msg = 'Data could not be saved.'; - if (e instanceof Error && e.message.toUpperCase() === 'UNAUTHORIZED') { - msg = 'You need to login first.'; - } - log.error(msg, e); - NotificationHandler.pushNotification('error', msg, 4000); -} -export class ScrollLinker { - constructor(divA, divB, enabled = true) { - this.divA = divA; - this.divB = divB; - this.enabled = enabled; - divA.addEventListener('scroll', (e) => this.handleScrollA(e)); - divB.addEventListener('scroll', (e) => this.handleScrollB(e)); - } - handleScrollA(e) { - if (!this.isSyncingScrollA && this.enabled) { - this.isSyncingScrollB = true; - this.divB.scrollTop = e.target.scrollTop; - } - this.isSyncingScrollA = false; - } - handleScrollB(e) { - if (!this.isSyncingScrollB && this.enabled) { - this.isSyncingScrollA = true; - this.divA.scrollTop = e.target.scrollTop; - } - this.isSyncingScrollB = false; - } - enable() { - this.enabled = true; - this.divB.scrollTop = this.divA.scrollTop; // sync position - } - disable() { - this.enabled = false; - } - destroy() { - this.divA.removeEventListener('scroll', (e) => this.handleScrollA(e)); - this.divA.removeEventListener('scroll', (e) => this.handleScrollA(e)); - this.divB.addEventListener('scroll', (e) => this.handleScrollB(e)); - } -} -/** - * Returns true if removed, false if it didn't contain the element - * @param array array to remove from - * @param toRemove element to remove - */ -export function removeFromArray(array, toRemove) { - const index = array.indexOf(toRemove); - if (index > -1) { - array.splice(index, 1); //remove one element at - return true; - } - return false; -} -/** - * Returns true if added to array, false if it already contained the element - * @param array array to push to - * @param toPush element to push - */ -export function pushUnique(array, toPush) { - const index = array.indexOf(toPush); - if (index === -1) { - array.push(toPush); - return true; - } - return false; -} -export var SortType; -(function (SortType) { - SortType["Default"] = "default"; - SortType["Alpha_AZ"] = "alpha_az"; - SortType["Alpha_ZA"] = "alpha_za"; - SortType["Size_19"] = "size_19"; - SortType["Size_91"] = "size_91"; -})(SortType || (SortType = {})); -export function getAnimatedLoadingText(thingToLoad = '', large = true) { - return getAnimatedText(`Loading ${thingToLoad}`, large); -} -export function getAnimatedText(thingToLoad = '', large = true) { - const span = document.createElement('p'); - span.classList.add('loading'); - span.classList.toggle('large', large); - span.innerHTML = `${thingToLoad} ...`; - return span; -} -export function getAnimatedLoadingBars() { - const loadingContainer = document.createElement('div'); - loadingContainer.classList.add('loading-bars'); - const numBars = 5; - for (let i = 0; i < numBars; i++) { - const spanBar = document.createElement('div'); - spanBar.style.setProperty('--n', '' + i); - loadingContainer.appendChild(spanBar); - } - return loadingContainer; -} -const category20 = [ - //Based on Category20: https://vega.github.io/vega/docs/schemes/#category20 - //Saturated - '#1f77b4', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', - //unsaturated - '#aec7e8', '#98df8a', '#ff9896', '#c5b0d5', '#c49c94', '#f7b6d2', '#c7c7c7', '#dbdb8d', -]; -const tableau20 = [ - //Based on Tableau20: https://vega.github.io/vega/docs/schemes/#tableau20 - //Saturated - '#4c78a8', '#54a24b', '#e45756', '#79706e', '#d67195', '#b279a2', '#9e765f', - //unsaturated - '#9ecae9', '#88d27a', '#ff9d98', '#bab0ac', '#fcbfd2', '#d6a5c9', '#d8b5a5' -]; -const pastel1 = [ - // based on patel1: https://vega.github.io/vega/docs/schemes/#pastel1 - '#fbb4ae' /* p1:red */, - '#b3cde3' /* p1:blue */, - '#ccebc5' /* p1:green */, - '#decbe4' /* p1:lila */, - '#fed9a6' /* p1:orange */, - '#ffffcc' /* p1:yellow */, - '#e5d8bd' /* p1:brown */, - '#fddaec' /* p1:pink */, - '#f2f2f2' /* p1:grey */, -]; -const pastel2 = [ - // based on pastel2: https://vega.github.io/vega/docs/schemes/#pastel2 - '#b3e2cd' /* p2:dark green */, - '#fdcdac' /* p2:orange */, - '#cbd5e8' /* p2:blue */, - '#f4cae4' /* p2:pink */, - '#e6f5c9' /* p2:light green*/, - '#fff2ae' /* p2:yellow */, - '#f1e2cc' /* p2:brown */, - '#cccccc' /* p2:grey */, -]; -const set2 = [ - // based on set3: https://vega.github.io/vega/docs/schemes/#set2 - // -> rearranged and without turquose, and grey - '#fc8d62' /* red */, - '#8da0cb' /* blue */, - '#e78ac3' /* pink */, - '#a6d854' /* green */, - '#ffd92f' /* yellow */, - '#e5c494' /* brown */, - // '#66c2a5' /* turquose */, - // '#b3b3b3' /* grey*/, -]; -const set3 = [ - // based on set3: https://vega.github.io/vega/docs/schemes/#set3 - // -> rearranged and without orange, turquose, and grey - '#8dd3c7' /* set3:turquose */, - '#fdb462' /* set3:orange */, - '#b3de69' /* set3:green */, - '#fb8072' /* set3:red */, - '#ffed6f' /* set3:yellow */, - '#bc80bd' /* set3:lila */, - '#80b1d3' /* set3:blue */, - '#fccde5' /* set3:pink */, - '#ccebc5' /* set3:mint */, - '#bebada' /* set3:light lila */, - '#d8b5a5' /* t20: light brown */, - // '#ffffb3' /* set3:light yellow */, - // '#d9d9d9' /* set3:grey */, -]; -const combination = [ - // combination of different set: set3, tableau20, pastel1 & 2 - '#80b1d3' /* set3:blue */, '#fb8072' /* set3:red */, - '#b3de69' /* set3:green */, '#bc80bd' /* set3:lila */, '#ffed6f' /* set3:yellow */, '#fcbfd2' /* t20:light pink */, '#d8b5a5' /* t20: light brown */, - '#e6f5c9' /* p2:light green*/, '#decbe4' /* p1:lila */, '#ffffb3' /* set3:light yellow */, '#fddaec' /* p1:pink */, '#f1e2cc' /* p2:brown */, -]; -export class CohortColorSchema { - static get(index) { - const moduloIndex = index % CohortColorSchema.COLOR_SCHEME.length; - return CohortColorSchema.COLOR_SCHEME[moduloIndex]; - } -} -CohortColorSchema.COLOR_SCHEME = set3; -export function setSessionStorageItem(key, value) { - const strValue = JSON.stringify(value); - sessionStorage.setItem(key, strValue); -} -// returns null if key does not exist -export function getSessionStorageItem(key) { - const value = sessionStorage.getItem(key); - return JSON.parse(value); -} -export function selectLast(d3Elem, query) { - const queryHits = d3Elem.selectAll(query).nodes(); - const queryHitsNo = queryHits.length; - return select(queryHits[queryHitsNo - 1]); -} -export function inRange(value, interval) { - const lower = Math.min(...interval), upper = Math.max(...interval); - return value >= lower && value <= upper; -} -export function hasCookie(cookieID) { - return document.cookie.split(';') - .some((item) => item.trim().startsWith(`${cookieID}=`)); -} -export function createHTMLElementWithClasses(htmlElem, classes) { - const element = document.createElement(htmlElem); - element.classList.add(...classes); - return element; -} -export class DebugTools { - /** - * lets the execution pause for the given amount of milliseconds. - * Use with await keyword. - * @param millis time to wait - */ - static async sleep(millis) { - log.info('taking a little nap'); - return new Promise((resolve) => setTimeout(resolve, millis)); - } -} -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/dist/util.js.map b/dist/util.js.map deleted file mode 100644 index 2c61ca1..0000000 --- a/dist/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAY,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,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AAC,IAAI,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,QAAgB,EAAE,OAAiB;IAC9E,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjD,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAClC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,OAAO,UAAU;IAErB;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAChC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,CAAC;CACF"} \ No newline at end of file diff --git a/dist/utilCustomEvents.d.ts b/dist/utilCustomEvents.d.ts deleted file mode 100644 index 4ae2cde..0000000 --- a/dist/utilCustomEvents.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Cohort } from './Cohort'; -import { ITaskParams } from './CohortInterfaces'; -import { IAttribute } from './data/Attribute'; -import { Task } from './Tasks'; -import { AColumn } from './Taskview/columns/AColumn'; -import { IFilterDesc, SortType } from './util'; -export declare const COHORT_REMOVE_EVENT_TYPE = "cht:remove"; -export declare class CohortRemoveEvent extends CustomEvent<{ - cohort: Cohort; -}> { - constructor(cohort: Cohort); -} -export declare const TASK_REMOVE_EVENT_TYPE = "task:remove"; -export declare class TaskRemoveEvent extends CustomEvent<{ - task: Task; -}> { - constructor(task: Task); -} -export declare const COHORT_SELECTION_EVENT_TYPE = "cht:select"; -export declare class CohortSelectionEvent extends CustomEvent<{ - cohort: Cohort; - replaceSelection: boolean; -}> { - constructor(cohort: Cohort, replaceSelection?: boolean); -} -export declare const COLUMN_CLOSE_EVENT_TYPE = "cht:column:close"; -export declare class ColumnCloseEvent extends CustomEvent<{ - column: AColumn; -}> { - constructor(column: AColumn); -} -export declare const COLUMN_SORT_EVENT_TYPE = "cht:column:sort"; -export declare class ColumnSortEvent extends CustomEvent<{ - type: SortType; - sortInputChts: boolean; -}> { - constructor(type: SortType, sortInputChts: boolean); -} -export declare const CREATE_OUTPUT_COHORT_EVENT_TYPE = "cht:create:output"; -export declare class CreateOutputCohortEvent extends CustomEvent<{ - cohort: Cohort; - origin?: Cohort; -}> { - constructor(cohort: Cohort, originCohort?: Cohort); -} -export declare const FILTER_EVENT_TYPE = "cht:filter"; -export declare class FilterEvent extends CustomEvent<{ - desc: IFilterDesc[]; -}> { - constructor(desc: IFilterDesc[]); -} -export declare const SPLIT_EVENT_TYPE = "cht:split"; -export declare class SplitEvent extends CustomEvent<{ - desc: IFilterDesc[]; -}> { - constructor(desc: IFilterDesc[]); -} -export declare const CONFIRM_OUTPUT_EVENT_TYPE = "cht:output:confirm"; -export declare class ConfirmOutputEvent extends CustomEvent<{ - cohorts: Cohort[]; -}> { - constructor(cohorts: Cohort[]); -} -export declare const CONFIRM_TASK_EVENT_TYPE = "cht:task:confirm"; -export declare class ConfirmTaskEvent extends CustomEvent<{ - params: ITaskParams[]; - attributes: IAttribute[]; -}> { - constructor(params: ITaskParams[], attributes: IAttribute[]); -} -export declare const OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE = "cht:ov:preview:change"; -export declare class PreviewChangeEvent extends CustomEvent<{ - params: ITaskParams[]; - attributes: IAttribute[]; -}> { - constructor(params: ITaskParams[], attributes: IAttribute[]); -} -export declare const OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE = "cht:ov:preview:confirm"; -export declare class PreviewConfirmEvent extends CustomEvent<{ - params: ITaskParams[]; - attributes: IAttribute[]; -}> { - constructor(params: ITaskParams[], attributes: IAttribute[]); -} diff --git a/dist/utilCustomEvents.js b/dist/utilCustomEvents.js deleted file mode 100644 index 1fd40d7..0000000 --- a/dist/utilCustomEvents.js +++ /dev/null @@ -1,77 +0,0 @@ -export const COHORT_REMOVE_EVENT_TYPE = 'cht:remove'; -export class CohortRemoveEvent extends CustomEvent { - constructor(cohort) { - super(COHORT_REMOVE_EVENT_TYPE, { detail: { cohort }, bubbles: true }); - } -} -export const TASK_REMOVE_EVENT_TYPE = 'task:remove'; -export class TaskRemoveEvent extends CustomEvent { - constructor(task) { - super(TASK_REMOVE_EVENT_TYPE, { detail: { task }, bubbles: true }); - } -} -export const COHORT_SELECTION_EVENT_TYPE = 'cht:select'; -export class CohortSelectionEvent extends CustomEvent { - constructor(cohort, replaceSelection = false) { - super(COHORT_SELECTION_EVENT_TYPE, { detail: { cohort, replaceSelection }, bubbles: true }); - } -} -export const COLUMN_CLOSE_EVENT_TYPE = 'cht:column:close'; -export class ColumnCloseEvent extends CustomEvent { - constructor(column) { - super(COLUMN_CLOSE_EVENT_TYPE, { detail: { column }, bubbles: true }); - } -} -export const COLUMN_SORT_EVENT_TYPE = 'cht:column:sort'; -export class ColumnSortEvent extends CustomEvent { - constructor(type, sortInputChts) { - super(COLUMN_SORT_EVENT_TYPE, { detail: { type, sortInputChts }, bubbles: true }); - } -} -export const CREATE_OUTPUT_COHORT_EVENT_TYPE = 'cht:create:output'; -export class CreateOutputCohortEvent extends CustomEvent { - constructor(cohort, originCohort) { - super(CREATE_OUTPUT_COHORT_EVENT_TYPE, { detail: { cohort, origin: originCohort }, bubbles: true }); - } -} -export const FILTER_EVENT_TYPE = 'cht:filter'; -export class FilterEvent extends CustomEvent { - constructor(desc) { - // Its actually the same as the SplitEvent - // while note checked, - // * the splitevent can contain the same cohort multiple times, e.g., twice when splitting into male and female, - // * the filterevent should contain each cohort once, the filter inside the filterdesc describes what should be kept. - super(FILTER_EVENT_TYPE, { detail: { desc }, bubbles: true }); - } -} -export const SPLIT_EVENT_TYPE = 'cht:split'; -export class SplitEvent extends CustomEvent { - constructor(desc) { - super(SPLIT_EVENT_TYPE, { detail: { desc }, bubbles: true }); - } -} -export const CONFIRM_OUTPUT_EVENT_TYPE = 'cht:output:confirm'; -export class ConfirmOutputEvent extends CustomEvent { - constructor(cohorts) { - super(CONFIRM_OUTPUT_EVENT_TYPE, { detail: { cohorts }, bubbles: true }); - } -} -export const CONFIRM_TASK_EVENT_TYPE = 'cht:task:confirm'; -export class ConfirmTaskEvent extends CustomEvent { - constructor(params, attributes) { - super(CONFIRM_TASK_EVENT_TYPE, { detail: { params, attributes }, bubbles: true }); - } -} -export const OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE = 'cht:ov:preview:change'; -export class PreviewChangeEvent extends CustomEvent { - constructor(params, attributes) { - super(OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, { detail: { params, attributes }, bubbles: true }); - } -} -export const OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE = 'cht:ov:preview:confirm'; -export class PreviewConfirmEvent extends CustomEvent { - constructor(params, attributes) { - super(OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, { detail: { params, attributes }, bubbles: true }); - } -} -//# sourceMappingURL=utilCustomEvents.js.map \ No newline at end of file diff --git a/dist/utilCustomEvents.js.map b/dist/utilCustomEvents.js.map deleted file mode 100644 index 5c08548..0000000 --- a/dist/utilCustomEvents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utilCustomEvents.js","sourceRoot":"","sources":["../src/utilCustomEvents.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC;AACrD,MAAM,OAAO,iBAAkB,SAAQ,WAA6B;IAElE,YAAY,MAAc;QACxB,KAAK,CAAC,wBAAwB,EAAE,EAAC,MAAM,EAAE,EAAC,MAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IACrE,CAAC;CACF;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC;AACpD,MAAM,OAAO,eAAgB,SAAQ,WAAyB;IAE5D,YAAY,IAAU;QACpB,KAAK,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,CAAC,CAAC;IAC3F,CAAC;CACF;AAED,MAAM,CAAC,MAAM,mCAAmC,GAAG,wBAAwB,CAAC;AAC5E,MAAM,OAAO,mBAAoB,SAAQ,WAA8D;IAErG,YAAY,MAAqB,EAAE,UAAwB;QACzD,KAAK,CAAC,mCAAmC,EAAE,EAAC,MAAM,EAAE,EAAC,MAAM,EAAE,UAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAC5F,CAAC;CACF"} \ No newline at end of file diff --git a/dist/utilIdTypes.d.ts b/dist/utilIdTypes.d.ts deleted file mode 100644 index b7a50ad..0000000 --- a/dist/utilIdTypes.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Cohort } from './Cohort'; -export interface IEntitySourceConfig { - idType: string; - name: string; - dbConnectorName: string; - dbConnector: string; - schema: string; - viewName: string; - tableName: string; - entityName: string; - base: string; -} -export declare const idTissue: IEntitySourceConfig; -export declare const idCellline: IEntitySourceConfig; -export declare const idStudent: IEntitySourceConfig; -export declare const idCovid19: IEntitySourceConfig; -export declare function getIdTypeFromCohort(cht: Cohort): IEntitySourceConfig; diff --git a/dist/utilIdTypes.js b/dist/utilIdTypes.js deleted file mode 100644 index 40e033a..0000000 --- a/dist/utilIdTypes.js +++ /dev/null @@ -1,69 +0,0 @@ -import { cellline, tissue } from 'tdp_publicdb'; -// tissue -export const idTissue = { - idType: tissue.idType, - name: tissue.name, - dbConnectorName: 'publicdb', - dbConnector: 'tdp_publicdb', - schema: tissue.schema, - viewName: tissue.tableName, - tableName: 'tdp_tissue', - entityName: tissue.entityName, - base: tissue.base -}; -// cellline -export const idCellline = { - idType: cellline.idType, - name: cellline.name, - dbConnectorName: 'publicdb', - dbConnector: 'tdp_publicdb', - schema: cellline.schema, - viewName: cellline.tableName, - tableName: 'tdp_cellline', - entityName: cellline.entityName, - base: cellline.base -}; -// student -export const idStudent = { - idType: 'Student', - name: 'Student', - dbConnectorName: 'studentdb', - dbConnector: 'tdp_student', - schema: 'public', - viewName: 'studentdb_view', - tableName: 'student_view_anonym', - entityName: 'id', - base: 'student' -}; -// corona / covid19 -export const idCovid19 = { - idType: 'covid19', - name: 'covid19', - dbConnectorName: 'covid19db', - dbConnector: 'tdp_covid19', - schema: 'public', - viewName: 'korea_view', - tableName: 'korea', - entityName: 'id', - base: 'covid19' -}; -export function getIdTypeFromCohort(cht) { - const entitiyTable = cht.table; - if (entitiyTable === 'tdp_tissue') { - return idTissue; - } - else if (entitiyTable === 'tdp_tissue_2') { - return idTissue; - } - else if (entitiyTable === 'tdp_cellline') { - return idCellline; - } - else if (entitiyTable === 'student_view_anonym') { - return idStudent; - } - else if (entitiyTable === 'korea') { - return idCovid19; - } - return null; -} -//# sourceMappingURL=utilIdTypes.js.map \ No newline at end of file diff --git a/dist/utilIdTypes.js.map b/dist/utilIdTypes.js.map deleted file mode 100644 index f7581ca..0000000 --- a/dist/utilIdTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utilIdTypes.js","sourceRoot":"","sources":["../src/utilIdTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,MAAM,cAAc,CAAC;AAe9C,SAAS;AACT,MAAM,CAAC,MAAM,QAAQ,GAAwB;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,eAAe,EAAE,UAAU;IAC3B,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC,SAAS;IAC1B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,MAAM,CAAC,UAAU;IAC7B,IAAI,EAAE,MAAM,CAAC,IAAI;CAClB,CAAC;AAEF,WAAW;AACX,MAAM,CAAC,MAAM,UAAU,GAAwB;IAC7C,MAAM,EAAE,QAAQ,CAAC,MAAM;IACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;IACnB,eAAe,EAAE,UAAU;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CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utilLabels.d.ts b/dist/utilLabels.d.ts deleted file mode 100644 index 68928bb..0000000 --- a/dist/utilLabels.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { IEqualsList, INumRange } from './rest'; -export declare function niceName(label: string): string; -export declare function easyLabelFromFilterArray(filter: INumRange[] | IEqualsList, attrLabel?: string): string; -export declare function easyLabelFromFilter(filter: INumRange | IEqualsList, attrLabel?: string): string; -export declare function labelFromFilter(filter: INumRange | IEqualsList, attrLabel: string): string; -export declare function labelFromRanges(lowerOperator: '(' | '[', lowerBound: number, upperBound: number, upperOperator: ')' | ']', attrLabel: string): string; -export declare function labelForCategories(categories: Array): string; -/** - * Returns the plural of an English word. - * - * @export - * @param {string} word - * @param {number} [amount] - * @returns {string} - */ -export declare function plural(word: string, amount?: number): string; -/** - * Returns the singular of an English word. - * - * @export - * @param {string} word - * @param {number} [amount] - * @returns {string} - */ -export declare function singular(word: string, amount?: number): string; diff --git a/dist/utilLabels.js b/dist/utilLabels.js deleted file mode 100644 index 3179fdf..0000000 --- a/dist/utilLabels.js +++ /dev/null @@ -1,306 +0,0 @@ -import { format } from 'd3v7'; -import { isEqualsList, isNumRangeFilter, NumRangeOperators } from './rest'; -export function niceName(label) { - return label.split('_').map((l) => l[0].toUpperCase() + l.slice(1)).join(' '); -} -export function easyLabelFromFilterArray(filter, attrLabel = null) { - let label = ''; - if (Array.isArray(filter)) { - label = filter.map((a) => easyLabelFromFilter(a, attrLabel)).join(' / '); - } - else { - label = easyLabelFromFilter(filter, attrLabel); - } - return label; -} -export function easyLabelFromFilter(filter, attrLabel = null) { - const formatter = format('.1~f'); - if (isNumRangeFilter(filter)) { //INumRange Type Guard 💂‍♂️ - if (filter.valueOne === 'null' || filter.valueTwo === 'null' - || filter.valueOne === null || filter.valueTwo === null) { - return attrLabel === null ? `Missing Values` : `Missing ${attrLabel} Values`; - } - else { - return `${formatter(filter.valueOne)} to ${formatter(filter.valueTwo)}`; - } - } - else if (isEqualsList(filter)) { - // for number of categories uncomment next line. - // check if more than one category - //return filter.values.length > 1 ? `${filter.values.length} Categories` : niceName(`${filter.values[0]}`); - return labelForCategories(filter.values); - } - throw new Error('not implemented ☠'); -} -// ----- -// export function labelFromFilterArray(filter: INumRange[] | IEqualsList, attr: IAttribute): string { -// if (Array.isArray(filter)) { -// const labels = []; -// for (const f of filter) { -// labels.push(labelFromFilter(f, attr)); -// } -// return labels.join('/'); -// } else { -// return labelFromFilter(filter, attr); -// } -// } -// TODO label -// export function labelFromFilter(filter: INumRange | IEqualsList, attr: IAttribute): string { -export function labelFromFilter(filter, attrLabel) { - if (isNumRangeFilter(filter)) { //INumRange Type Guard 💂‍♂️ - const opOne = filter.operatorOne.indexOf('=') === -1 ? ')' : ']'; - const lowerOperator = filter.operatorOne === NumRangeOperators.gte ? '[' : '('; - const upperOperator = filter.operatorTwo === NumRangeOperators.lte ? ']' : ')'; - if (filter.valueOne === 'null' || filter.valueTwo === 'null' - || filter.valueOne === null || filter.valueTwo === null) { - // return `Missing ${attr.label} Values`; - return `Missing ${attrLabel} Values`; - } - else { - // return labelFromRanges(lowerOperator, filter.valueOne as number, filter.valueTwo as number, upperOperator, attr); - return labelFromRanges(lowerOperator, filter.valueOne, filter.valueTwo, upperOperator, attrLabel); - } - } - else if (isEqualsList(filter)) { - return labelForCategories(filter.values); - } - throw new Error('not implemented ☠'); -} -// TODO label -// export function labelFromRanges(lowerOperator: '(' | '[', lowerBound: number, upperBound: number, upperOperator: ')' | ']', attr: IAttribute): string { -export function labelFromRanges(lowerOperator, lowerBound, upperBound, upperOperator, attrLabel) { - //const attribute = attr && attr.label ? attr.label : 'x'; - const attribute = attrLabel ? attrLabel : 'x'; - const htmlLte = '≤'; - const htmlLt = '<'; - const htmlGte = '≥'; - const htmlGt = '>'; - const formatter = format('.4~f'); - if (lowerOperator === null) { - // const up = upperOperator === ')' ? htmlLt : htmlLte; - // return `${attribute} ${up} ${formatter(upperBound as number)}`; - const up = upperOperator === ')' ? htmlLt : htmlLte; - return `${up} ${formatter(upperBound)}`; - } - else if (upperOperator === null) { - // const low = lowerOperator === '(' ? htmlLt : htmlLte; - // return `${formatter(lowerBound as number)} ${low} ${attribute}`; - const low = lowerOperator === '(' ? htmlGt : htmlGte; - return `${low} ${formatter(lowerBound)}`; - } - else if (formatter(lowerBound) === formatter(upperBound)) { - return `${formatter(lowerBound)}`; - } - else { - // const low = lowerOperator === '(' ? htmlLt : htmlLte; - // const up = upperOperator === ')' ? htmlLt : htmlLte; - // return `${formatter(lowerBound as number)} ${low} ${attribute} ${up} ${formatter(upperBound as number)}`; - const low = lowerOperator === '(' ? htmlGt : htmlGte; - const up = upperOperator === ')' ? htmlLt : htmlLte; - return ` ${low} ${formatter(lowerBound)} to ${up} ${formatter(upperBound)}`; - } -} -export function labelForCategories(categories) { - return categories.map((cat) => niceName(`${cat}`)).join('/'); -} -// plural and sigular functions from: https://stackoverflow.com/a/57129703 -// licensed under CC-BY-SA 4.0, see https://stackoverflow.com/help/licensing -/** - * Returns the plural of an English word. - * - * @export - * @param {string} word - * @param {number} [amount] - * @returns {string} - */ -export function plural(word, amount) { - if (amount !== undefined && amount === 1) { - return word; - } - const plural = { - '(quiz)$': '$1zes', - '^(ox)$': '$1en', - '([m|l])ouse$': '$1ice', - '(matr|vert|ind)ix|ex$': '$1ices', - '(x|ch|ss|sh)$': '$1es', - '([^aeiouy]|qu)y$': '$1ies', - '(hive)$': '$1s', - '(?:([^f])fe|([lr])f)$': '$1$2ves', - '(shea|lea|loa|thie)f$': '$1ves', - 'sis$': 'ses', - '([ti])um$': '$1a', - '(tomat|potat|ech|her|vet)o$': '$1oes', - '(bu)s$': '$1ses', - '(alias)$': '$1es', - '(octop)us$': '$1i', - '(ax|test)is$': '$1es', - '(us)$': '$1es', - '([^s]+)$': '$1s' - }; - const irregular = { - 'move': 'moves', - 'foot': 'feet', - 'goose': 'geese', - 'sex': 'sexes', - 'child': 'children', - 'man': 'men', - 'tooth': 'teeth', - 'person': 'people' - }; - const uncountable = [ - 'sheep', - 'fish', - 'deer', - 'moose', - 'series', - 'species', - 'money', - 'rice', - 'information', - 'equipment', - 'bison', - 'cod', - 'offspring', - 'pike', - 'salmon', - 'shrimp', - 'swine', - 'trout', - 'aircraft', - 'hovercraft', - 'spacecraft', - 'sugar', - 'tuna', - 'you', - 'wood' - ]; - // save some time in the case that singular and plural are the same - if (uncountable.indexOf(word.toLowerCase()) >= 0) { - return word; - } - // check for irregular forms - for (const w in irregular) { - if (irregular.hasOwnProperty(w)) { - const pattern = new RegExp(`${w}$`, 'i'); - const replace = irregular[w]; - if (pattern.test(word)) { - return word.replace(pattern, replace); - } - } - } - // check for matches using regular expressions - for (const reg in plural) { - if (plural.hasOwnProperty(reg)) { - const pattern = new RegExp(reg, 'i'); - if (pattern.test(word)) { - return word.replace(pattern, plural[reg]); - } - } - } - return word; -} -/** - * Returns the singular of an English word. - * - * @export - * @param {string} word - * @param {number} [amount] - * @returns {string} - */ -export function singular(word, amount) { - if (amount !== undefined && amount !== 1) { - return word; - } - const singular = { - '(quiz)zes$': '$1', - '(matr)ices$': '$1ix', - '(vert|ind)ices$': '$1ex', - '^(ox)en$': '$1', - '(alias)es$': '$1', - '(octop|vir)i$': '$1us', - '(cris|ax|test)es$': '$1is', - '(shoe)s$': '$1', - '(o)es$': '$1', - '(bus)es$': '$1', - '([m|l])ice$': '$1ouse', - '(x|ch|ss|sh)es$': '$1', - '(m)ovies$': '$1ovie', - '(s)eries$': '$1eries', - '([^aeiouy]|qu)ies$': '$1y', - '([lr])ves$': '$1f', - '(tive)s$': '$1', - '(hive)s$': '$1', - '(li|wi|kni)ves$': '$1fe', - '(shea|loa|lea|thie)ves$': '$1f', - '(^analy)ses$': '$1sis', - '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$': '$1$2sis', - '([ti])a$': '$1um', - '(n)ews$': '$1ews', - '(h|bl)ouses$': '$1ouse', - '(corpse)s$': '$1', - '(us)es$': '$1', - 's$': '' - }; - const irregular = { - 'move': 'moves', - 'foot': 'feet', - 'goose': 'geese', - 'sex': 'sexes', - 'child': 'children', - 'man': 'men', - 'tooth': 'teeth', - 'person': 'people' - }; - const uncountable = [ - 'sheep', - 'fish', - 'deer', - 'moose', - 'series', - 'species', - 'money', - 'rice', - 'information', - 'equipment', - 'bison', - 'cod', - 'offspring', - 'pike', - 'salmon', - 'shrimp', - 'swine', - 'trout', - 'aircraft', - 'hovercraft', - 'spacecraft', - 'sugar', - 'tuna', - 'you', - 'wood' - ]; - // save some time in the case that singular and plural are the same - if (uncountable.indexOf(word.toLowerCase()) >= 0) { - return word; - } - // check for irregular forms - for (const w in irregular) { - if (irregular.hasOwnProperty(w)) { - const pattern = new RegExp(`${irregular[w]}$`, 'i'); - const replace = w; - if (pattern.test(word)) { - return word.replace(pattern, replace); - } - } - } - // check for matches using regular expressions - for (const reg in singular) { - if (singular.hasOwnProperty(reg)) { - const pattern = new RegExp(reg, 'i'); - if (pattern.test(word)) { - return word.replace(pattern, singular[reg]); - } - } - } - return word; -} -//# sourceMappingURL=utilLabels.js.map \ No newline at end of file diff --git a/dist/utilLabels.js.map b/dist/utilLabels.js.map deleted file mode 100644 index 4b021b5..0000000 --- a/dist/utilLabels.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utilLabels.js","sourceRoot":"","sources":["../src/utilLabels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAyB,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,QAAQ,CAAC;AAEjG,MAAM,UAAU,QAAQ,CAAC,KAAa;IACpC,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC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;QACP,MAAM;QACN,aAAa;QACb,WAAW;QACX,OAAO;QACP,KAAK;QACL,WAAW;QACX,MAAM;QACN,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,OAAO;QACP,UAAU;QACV,YAAY;QACZ,YAAY;QACZ,OAAO;QACP,MAAM;QACN,KAAK;QACL,MAAM;KACP,CAAC;IAEF,mEAAmE;IACnE,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE;QAChD,OAAO,IAAI,CAAC;KACb;IACD,4BAA4B;IAC5B,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE;QACzB,IAAI,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;YAC/B,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACpD,MAAM,OAAO,GAAG,CAAC,CAAC;YAClB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACtB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;aACvC;SACF;KACF;IACD,8CAA8C;IAC9C,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE;QAC1B,IAAI,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YAChC,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACrC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACtB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;aAC7C;SACF;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utils/RouterScrollToTop.d.ts b/dist/utils/RouterScrollToTop.d.ts deleted file mode 100644 index f69e436..0000000 --- a/dist/utils/RouterScrollToTop.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Scroll the window up on every navigation - * @see https://reactrouter.com/web/guides/scroll-restoration - */ -export declare function RouterScrollToTop(): any; diff --git a/dist/utils/RouterScrollToTop.js b/dist/utils/RouterScrollToTop.js deleted file mode 100644 index 8a2dc27..0000000 --- a/dist/utils/RouterScrollToTop.js +++ /dev/null @@ -1,14 +0,0 @@ -import { useEffect } from 'react'; -import { useLocation } from 'react-router-dom'; -/** - * Scroll the window up on every navigation - * @see https://reactrouter.com/web/guides/scroll-restoration - */ -export function RouterScrollToTop() { - const { pathname } = useLocation(); - useEffect(() => { - window.scrollTo(0, 0); - }, [pathname]); - return null; -} -//# sourceMappingURL=RouterScrollToTop.js.map \ No newline at end of file diff --git a/dist/utils/RouterScrollToTop.js.map b/dist/utils/RouterScrollToTop.js.map deleted file mode 100644 index 0519ee6..0000000 --- a/dist/utils/RouterScrollToTop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RouterScrollToTop.js","sourceRoot":"","sources":["../../src/utils/RouterScrollToTop.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts deleted file mode 100644 index 8ce3f7c..0000000 --- a/dist/utils/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './RouterScrollToTop'; diff --git a/dist/utils/index.js b/dist/utils/index.js deleted file mode 100644 index 4db066c..0000000 --- a/dist/utils/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from './RouterScrollToTop'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/utils/index.js.map b/dist/utils/index.js.map deleted file mode 100644 index eb97ae3..0000000 --- a/dist/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index 69f1c97..c1627b8 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,49 +1 @@ -// test dependencies that require transformation -let pluginsToTransform = [ - 'tdp_*', - 'phovea_*', - 'lineupjs' -].join('|'); - -if(pluginsToTransform.length > 0) { - /** Attention: Negative Lookahead! This regex adds the specified repos to a whitelist that holds plugins that are excluded from the transformIgnorePatterns. - * This means that pluginsToTransform should contain all repos that export ts files. They can only be handled by the transformation. */ - pluginsToTransform = `(?!${pluginsToTransform})`; -} - -/** - * TODO check if we can process inline webpack loaders (e.g. as found in https://github.com/datavisyn/tdp_core/blob/develop/src/webpack/_bootstrap.ts) - * see also https://jestjs.io/docs/en/webpack#mocking-css-modules - */ -module.exports = { - transform: { - "^.+\\.(js|ts|tsx)$": "ts-jest", - "\\.xml$": "jest-raw-loader" - }, - testRegex: "(.*(test|spec))\\.(tsx?)$", - moduleFileExtensions: [ - "ts", - "tsx", - "js", - "jsx", - "json", - "node" - ], - modulePaths: [ - "src" - ], - transformIgnorePatterns: [`../node_modules/${pluginsToTransform}`, `node_modules/${pluginsToTransform}`], - globals: { - "__VERSION__": "TEST_VERSION", - "__APP_CONTEXT__": "TEST_CONTEXT", - 'ts-jest': { - // has to be set to true, otherwise i18n import fails - "tsconfig": { - "esModuleInterop": true, - } - } - }, - moduleNameMapper: { - "^.+\\.(css|less|scss|sass|png|jpg|gif)$": "identity-obj-proxy" - } -} +module.exports = require('visyn_scripts/config/jest.config.template'); diff --git a/package.json b/package.json index 86bf5df..25ab2f0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "coral", "description": "Coral is a web-based cohort analysis tool to interactively create, refine, and analyze patient cohorts.", "homepage": "https://caleydo.org", - "version": "3.0.1-SNAPSHOT", + "version": "4.0.1-SNAPSHOT", "author": { "name": "PatrickAdelberger", "email": "coral@caleydo.org", @@ -19,34 +19,32 @@ }, "private": true, "scripts": { - "build": "npm run clean && npm run compile", - "clean": "rimraf build dist lib", - "compile:watch": "tsc -w", - "compile": "tsc", - "copy-assets": "if [ -d src/assets ]; then cp -rv src/assets/. dist/assets/; fi && if [ -d src/template ]; then shx --verbose cp -R src/template/. dist/template/; fi && if [ -d src/templates ]; then shx --verbose cp -R src/templates/. dist/templates/; fi", - "copy-styles": "if [ -d src/scss ]; then shx --verbose cp -R src/scss/. dist/scss/; fi", - "copy": "npm run copy-assets && npm run copy-styles", - "delete-dependencies": "rimraf node_modules", - "dist": "mkdir lib && cd dist && tar cvzf ../lib/coral.tar.gz *", - "docs": "typedoc --options typedoc.json src/**.ts", - "lint": "tslint -c tslint.json -p . 'src/**/*.ts?(x)' 'tests/**/*.ts?(x)'", - "lint:fix": "tslint --fix -c tslint.json -p . 'src/**/*.ts?(x)' 'tests/**/*.ts?(x)'", - "postcompile": "npm run copy", - "posttest": "npm run lint", - "prebuild": "npm run test", - "predist": "npm run build && npm run docs", - "release:major": "npm version major && npm publish && git push --follow-tags", - "release:minor": "npm version minor && npm publish && git push --follow-tags", - "release:patch": "npm version patch && npm publish && git push --follow-tags", - "test:watch": "jest --watch", - "test": "test ! $(find tests -name \"*.ts\") || jest -w=1", - "make": "make --" + "all": "yarn run lint:fix && yarn run test && yarn run build && yarn run dist", + "build": "yarn run clean && yarn run compile && yarn run copy", + "clean": "visyn_scripts clean build dist lib", + "compile:watch": "visyn_scripts compile --watch", + "compile": "visyn_scripts compile", + "copy": "visyn_scripts copy", + "cy:open": "cypress open", + "cy:run": "cypress run", + "delete-dependencies": "visyn_scripts clean node_modules", + "predist": "yarn run lint && yarn run test && yarn run build", + "dist": "mkdir lib && cd dist && tar cvzf ../lib/bundle.tar.gz *", + "docs": "visyn_scripts docs", + "lint:fix": "visyn_scripts lint --fix", + "lint": "visyn_scripts lint || true", + "prepack": "yarn run build", + "start": "visyn_scripts start --env workspace_mode=single", + "storybook:build": "NODE_OPTIONS=--max_old_space_size=4096 build-storybook", + "storybook": "NODE_OPTIONS=--max_old_space_size=4096 start-storybook -p 6006", + "test": "visyn_scripts test", + "webpack:dev": "visyn_scripts build --mode development --env workspace_mode=single", + "webpack:prod": "visyn_scripts build --mode production --env workspace_mode=single" }, "files": [ "src", "index.js", "phovea.js", - "phovea_registry.js", "dist", "build", "coral", @@ -57,18 +55,17 @@ "docker_packages.txt" ], "engines": { - "npm": ">= 3", - "node": ">= 6" + "npm": ">=8", + "node": ">=16" }, "dependencies": { "@keckelt/tsne": "^1.0.0", "@upsetjs/bundle" : "^1.0.0", "arquero": "^4.8.0", - "canvas-confetti": "^1.4.0", "clone": "^2.1.2", "comlink": "^4.2.0", "jquery": "^3.5.0", - "lineupjs": "~4.6.0", + "lineupjs": "4.6.2", "lodash.merge": "^4.x", "lodash.pick": "^4.4.0", "loglevel": "^1.6.4", @@ -77,45 +74,46 @@ "react-dom": "^16.13.0", "react-router-dom": "^5.2.0", "split-grid": "^1.0.9", - "tdp_core": "git+ssh://git@github.com:datavisyn/tdp_core#mp/add_d3v7", - "tdp_publicdb": "git+ssh://git@github.com:caleydo/tdp_publicdb#develop", + "tdp_core": "git+ssh://git@github.com:datavisyn/tdp_core#develop", + "tdp_gene": "git+ssh://git@github.com:caleydo/tdp_gene#develop", + "tdp_publicdb": "git+ssh://git@github.com/caleydo/tdp_publicdb#develop", "tippy.js": "^6.2.6", - "tourdino": "git+ssh://git@github.com:caleydo/tourdino#develop", + "tourdino": "git+ssh://git@github.com/caleydo/tourdino#develop", "vega": "~5.20.0", "vega-embed": "6.19.1", "vega-functions": "5.12.0", "vega-lite": "5.1.1", - "vega-parser": "6.1.3" + "vega-parser": "6.1.3", + "visyn_scripts": "git+ssh://git@github.com/datavisyn/visyn_scripts.git#develop" }, "devDependencies": { - "@babel/core": "^7.14.0", - "@babel/preset-env": "^7.14.1", "@types/d3-selection": "^3.0.2", "@types/d3-transition": "^3.0.1", - "@types/jest": "~27.4.1", - "@types/jquery": "~3.5.5", "@types/react": "^16.14.6", "@types/react-dom": "^16.9.5", "@types/react-router-dom": "^5.1.7", - "babel-loader": "^8.2.2", - "identity-obj-proxy": "~3.0.0", - "ifdef-loader": "2.0.0", - "jest": "~27.5.1", - "jest-raw-loader": "~1.0.1", "mkdirp": "0.5.1", - "rimraf": "~3.0.2", - "sass": "^1.29.0", - "shx": "~0.3.3", - "ts-jest": "~27.1.3", - "tslib": "~2.3.1", "tslint": "~5.20.1", - "typedoc": "~0.22.13", - "typescript": "~4.6.2", "worker-loader": "^2.0.0" }, "browser": { "fs": false, - "path": false, - "os": false - } + "os": false, + "path": false + }, + "visyn": { + "entries": { + "app": { + "js": "dist/initialize.app.js", + "template": "dist/app.template.ejs", + "html": "app/index.html", + "chunkName": "app", + "excludeChunks": [] + } + }, + "copyFiles": [ + "dist/clientConfig.json" + ] + }, + "packageManager": "yarn@3.2.2" } diff --git a/requirements.txt b/requirements.txt index ddbf21f..e421511 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -tdp_core@git+https://github.com/datavisyn/tdp_core.git@develop#egg=tdp_core \ No newline at end of file +tdp_core@git+https://github.com/datavisyn/tdp_core.git@develop#egg=tdp_core diff --git a/src/Cohort.ts b/src/Cohort.ts index d191cb2..c4114c3 100644 --- a/src/Cohort.ts +++ b/src/Cohort.ts @@ -1,53 +1,133 @@ -import {IAllFilters, IDType, IDTypeLike, IDTypeManager, IRow, IServerColumn, UniqueIdManager} from 'tdp_core'; -import {ElementProvType, ICohort, ICohortRep, IElement, IElementProvJSONCohort, IProvAttrAndValuesCohort} from './CohortInterfaces'; -import {createDBCohort, createDBCohortWithDepletionScoreFilter, createDBCohortWithEqualsFilter, createDBCohortWithGeneEqualsFilter, createDBCohortWithGeneNumFilter, createDBCohortWithNumFilter, createDBCohortWithPanelAnnotationFilter, createDBCohortWithTreatmentFilter, dataDBCohortDepletionScoreFilter, dataDBCohortGeneWithEqualsFilter, dataDBCohortGeneWithNumFilter, dataDBCohortPanelAnnotationFilter, dataDBCohortWithEqualsFilter, dataDBCohortWithNumFilter, getCohortData, getCohortSize, ICohortDBDataParams, ICohortDBParams, ICohortDBSizeParams, ICohortDBWithDepletionScoreFilterParams, ICohortDBWithEqualsFilterParams, ICohortDBWithGeneEqualsFilterParams, ICohortDBWithGeneNumFilterParams, ICohortDBWithNumFilterParams, ICohortDBWithPanelAnnotationFilterParams, ICohortDBWithTreatmentFilterParams, ICohortDepletionScoreFilterParams, ICohortEqualsFilterParams, ICohortGeneEqualsFilterParams, ICohortGeneNumFilterParams, ICohortNumFilterParams, ICohortPanelAnnotationFilterParams, ICohortRow, IEqualsList, INumRange, sizeDBCohortDepletionScoreFilter, sizeDBCohortGeneWithEqualsFilter, sizeDBCohortGeneWithNumFilter, sizeDBCohortPanelAnnotationFilter, sizeDBCohortWithEqualsFilter, sizeDBCohortWithNumFilter, updateCohortName, valueListDelimiter} from './rest'; -import {mergeTwoAllFilters, Task} from './Tasks'; -import {deepCopy, handleDataLoadError, handleDataSaveError, log} from './util'; - -type ICreateMethod = (params: ICohortDBParams | ICohortDBWithEqualsFilterParams | ICohortDBWithNumFilterParams | ICohortDBWithGeneNumFilterParams | ICohortDBWithGeneEqualsFilterParams | ICohortDBWithDepletionScoreFilterParams | ICohortDBWithPanelAnnotationFilterParams | ICohortDBWithTreatmentFilterParams - , assignIds?: boolean) => Promise; - - -export async function createCohort(labelOne: string, labelTwo: string, isInitial: boolean, previousCohortId: number, database: string, databaseName: string, schema: string, table: string, view: string, idType: IDTypeLike, idColumn: IServerColumn, filters: IAllFilters): Promise { +import { IAllFilters, IDType, IDTypeLike, IDTypeManager, IRow, IServerColumn, UniqueIdManager } from 'tdp_core'; +import { ElementProvType, ICohort, ICohortRep, IElement, IElementProvJSONCohort, IProvAttrAndValuesCohort } from './CohortInterfaces'; +import { + createDBCohort, + createDBCohortWithDepletionScoreFilter, + createDBCohortWithEqualsFilter, + createDBCohortWithGeneEqualsFilter, + createDBCohortWithGeneNumFilter, + createDBCohortWithNumFilter, + createDBCohortWithPanelAnnotationFilter, + createDBCohortWithTreatmentFilter, + dataDBCohortDepletionScoreFilter, + dataDBCohortGeneWithEqualsFilter, + dataDBCohortGeneWithNumFilter, + dataDBCohortPanelAnnotationFilter, + dataDBCohortWithEqualsFilter, + dataDBCohortWithNumFilter, + getCohortData, + getCohortSize, + ICohortDBDataParams, + ICohortDBParams, + ICohortDBSizeParams, + ICohortDBWithDepletionScoreFilterParams, + ICohortDBWithEqualsFilterParams, + ICohortDBWithGeneEqualsFilterParams, + ICohortDBWithGeneNumFilterParams, + ICohortDBWithNumFilterParams, + ICohortDBWithPanelAnnotationFilterParams, + ICohortDBWithTreatmentFilterParams, + ICohortDepletionScoreFilterParams, + ICohortEqualsFilterParams, + ICohortGeneEqualsFilterParams, + ICohortGeneNumFilterParams, + ICohortNumFilterParams, + ICohortPanelAnnotationFilterParams, + ICohortRow, + IEqualsList, + INumRange, + sizeDBCohortDepletionScoreFilter, + sizeDBCohortGeneWithEqualsFilter, + sizeDBCohortGeneWithNumFilter, + sizeDBCohortPanelAnnotationFilter, + sizeDBCohortWithEqualsFilter, + sizeDBCohortWithNumFilter, + updateCohortName, + valueListDelimiter, +} from './rest'; +import { mergeTwoAllFilters, Task } from './Tasks'; +import { deepCopy, handleDataLoadError, handleDataSaveError, log } from './util'; + +type ICreateMethod = ( + params: + | ICohortDBParams + | ICohortDBWithEqualsFilterParams + | ICohortDBWithNumFilterParams + | ICohortDBWithGeneNumFilterParams + | ICohortDBWithGeneEqualsFilterParams + | ICohortDBWithDepletionScoreFilterParams + | ICohortDBWithPanelAnnotationFilterParams + | ICohortDBWithTreatmentFilterParams, + assignIds?: boolean, +) => Promise; + +export async function createCohort( + labelOne: string, + labelTwo: string, + isInitial: boolean, + previousCohortId: number, + database: string, + databaseName: string, + schema: string, + table: string, + view: string, + idType: IDTypeLike, + idColumn: IServerColumn, + filters: IAllFilters, +): Promise { const params: ICohortDBParams = { name: combineLabelsForDB(labelOne, labelTwo), isInitial: isInitial ? 1 : 0, previous: previousCohortId, database, schema, - table + table, }; log.debug('try new cohort: ', params); const dbId = await cohortCreationDBHandler(createDBCohort, params); // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [{values: []}] as IEqualsList[], {database: databaseName, schema, table, view, idType, idColumn}, filters, null, isInitial); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [{ values: [] }] as IEqualsList[], + { database: databaseName, schema, table, view, idType, idColumn }, + filters, + null, + isInitial, + ); log.debug('new cohort: ', cht); return cht; } function getLegacyEqualsFilter(parentFilters: IAllFilters, attribute: string, categoryOrValue: string | string[]) { - const thisChtFilter: IAllFilters = {normal: {}, lt: {}, lte: {}, gt: {}, gte: {}}; + const thisChtFilter: IAllFilters = { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }; thisChtFilter.normal[attribute] = categoryOrValue; - return mergeTwoAllFilters(parentFilters, thisChtFilter); //merge the existing with the new filter + return mergeTwoAllFilters(parentFilters, thisChtFilter); // merge the existing with the new filter } function getLegacyRangeFilter(parentFilters: IAllFilters, attribute: string, range: INumRange) { - const thisFilter: IAllFilters = {normal: {}, lt: {}, lte: {}, gt: {}, gte: {}}; + const thisFilter: IAllFilters = { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }; thisFilter[range.operatorOne][attribute] = range.valueOne; if (range.operatorTwo) { thisFilter[range.operatorTwo][attribute] = range.valueTwo; } - return mergeTwoAllFilters(parentFilters, thisFilter); //merge the existing with the new filter + return mergeTwoAllFilters(parentFilters, thisFilter); // merge the existing with the new filter } -export async function createCohortWithEqualsFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, attribute: string, numeric: 'true' | 'false', values: Array | Array): Promise { +export async function createCohortWithEqualsFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + attribute: string, + numeric: 'true' | 'false', + values: Array | Array, +): Promise { const params: ICohortDBWithEqualsFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), attribute, numeric, - values + values, }; log.debug('try new cohort equals filter: ', params); const dbId = await cohortCreationDBHandler(createDBCohortWithEqualsFilter, params); @@ -55,18 +135,37 @@ export async function createCohortWithEqualsFilter(parentCohort: Cohort, labelOn const newFilter = getLegacyEqualsFilter(parentCohort.filters, attribute, values as string[]); // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [{values}], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [{ values }], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with equals filter: ', cht); return cht; } -export async function createCohortWithTreatmentFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, baseAgent: boolean, agent: Array, regimen: number): Promise { +export async function createCohortWithTreatmentFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + baseAgent: boolean, + agent: Array, + regimen: number, +): Promise { const params: ICohortDBWithTreatmentFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), baseAgent, agent, - regimen + regimen, }; log.debug('try new cohort equals filter: ', params); const dbId = await cohortCreationDBHandler(createDBCohortWithTreatmentFilter, params); @@ -74,17 +173,35 @@ export async function createCohortWithTreatmentFilter(parentCohort: Cohort, labe const newFilter = getLegacyEqualsFilter(parentCohort.filters, 'agent', agent as string[]); // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [{values: agent}], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [{ values: agent }], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with equals filter: ', cht); return cht; } -export async function createCohortWithNumFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, attribute: string, ranges: Array): Promise { +export async function createCohortWithNumFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + attribute: string, + ranges: Array, +): Promise { const params: ICohortDBWithNumFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), attribute, - ranges + ranges, }; log.debug('try new cohort num filter: ', params); const dbId = await cohortCreationDBHandler(createDBCohortWithNumFilter, params); @@ -92,12 +209,32 @@ export async function createCohortWithNumFilter(parentCohort: Cohort, labelOne: const newFilter = getLegacyRangeFilter(parentCohort.filters, attribute, ranges[0]); // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [ranges], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [ranges], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with num filter: ', cht); return cht; } -export async function createCohortWithGeneNumFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, table: string, attribute: string, ensg: string, ranges: Array): Promise { +export async function createCohortWithGeneNumFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + table: string, + attribute: string, + ensg: string, + ranges: Array, +): Promise { const params: ICohortDBWithGeneNumFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), @@ -113,12 +250,33 @@ export async function createCohortWithGeneNumFilter(parentCohort: Cohort, labelO const newFilter = parentCohort.filters; // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [ranges], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [ranges], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with gene num filter: ', cht); return cht; } -export async function createCohortWithGeneEqualsFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, table: string, attribute: string, ensg: string, numeric: 'true' | 'false', values: Array | Array): Promise { +export async function createCohortWithGeneEqualsFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + table: string, + attribute: string, + ensg: string, + numeric: 'true' | 'false', + values: Array | Array, +): Promise { const params: ICohortDBWithGeneEqualsFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), @@ -126,7 +284,7 @@ export async function createCohortWithGeneEqualsFilter(parentCohort: Cohort, lab attribute, ensg, numeric, - values + values, }; log.debug('try new cohort gene equals filter: ', params); const dbId = await cohortCreationDBHandler(createDBCohortWithGeneEqualsFilter, params); @@ -135,12 +293,33 @@ export async function createCohortWithGeneEqualsFilter(parentCohort: Cohort, lab const newFilter = parentCohort.filters; // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [{values}], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [{ values }], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with gene equals filter: ', cht); return cht; } -export async function createCohortWithDepletionScoreFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, table: string, attribute: string, ensg: string, depletionscreen: string, ranges: Array): Promise { +export async function createCohortWithDepletionScoreFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + table: string, + attribute: string, + ensg: string, + depletionscreen: string, + ranges: Array, +): Promise { const params: ICohortDBWithDepletionScoreFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), @@ -148,7 +327,7 @@ export async function createCohortWithDepletionScoreFilter(parentCohort: Cohort, attribute, ensg, ranges, - depletionscreen + depletionscreen, }; log.debug('try new cohort depletion score filter: ', params); const dbId = await cohortCreationDBHandler(createDBCohortWithDepletionScoreFilter, params); @@ -157,17 +336,35 @@ export async function createCohortWithDepletionScoreFilter(parentCohort: Cohort, const newFilter = parentCohort.filters; // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [ranges], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [ranges], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with depletion score filter: ', cht); return cht; } -export async function createCohortWithPanelAnnotationFilter(parentCohort: Cohort, labelOne: string, labelTwo: string, panel: string, values: Array): Promise { +export async function createCohortWithPanelAnnotationFilter( + parentCohort: Cohort, + labelOne: string, + labelTwo: string, + panel: string, + values: Array, +): Promise { const params: ICohortDBWithPanelAnnotationFilterParams = { cohortId: parentCohort.dbId, name: combineLabelsForDB(labelOne, labelTwo), panel, - values + values, }; log.debug('try new cohort panel annotation filter: ', params); const dbId = await cohortCreationDBHandler(createDBCohortWithPanelAnnotationFilter, params); @@ -176,12 +373,34 @@ export async function createCohortWithPanelAnnotationFilter(parentCohort: Cohort const newFilter = parentCohort.filters; // ATTENTION : database != databaseName - const cht = new Cohort({id: `${dbId}`, dbId, labelOne, labelTwo}, [{values}], {database: parentCohort.database, schema: parentCohort.schema, table: parentCohort.table, view: parentCohort.view, idType: parentCohort.idType, idColumn: parentCohort.idColumn}, newFilter); + const cht = new Cohort( + { id: `${dbId}`, dbId, labelOne, labelTwo }, + [{ values }], + { + database: parentCohort.database, + schema: parentCohort.schema, + table: parentCohort.table, + view: parentCohort.view, + idType: parentCohort.idType, + idColumn: parentCohort.idColumn, + }, + newFilter, + ); log.debug('new cohort with panel annotation filter: ', cht); return cht; } -async function cohortCreationDBHandler(craeteDBCohortMethod: ICreateMethod, params: ICohortDBParams | ICohortDBWithEqualsFilterParams | ICohortDBWithNumFilterParams | ICohortDBWithGeneNumFilterParams | ICohortDBWithDepletionScoreFilterParams | ICohortDBWithPanelAnnotationFilterParams | ICohortDBWithTreatmentFilterParams): Promise { +async function cohortCreationDBHandler( + craeteDBCohortMethod: ICreateMethod, + params: + | ICohortDBParams + | ICohortDBWithEqualsFilterParams + | ICohortDBWithNumFilterParams + | ICohortDBWithGeneNumFilterParams + | ICohortDBWithDepletionScoreFilterParams + | ICohortDBWithPanelAnnotationFilterParams + | ICohortDBWithTreatmentFilterParams, +): Promise { let dbId: number; try { let idResp = null; @@ -201,27 +420,25 @@ function combineLabelsForDB(labelOne: string, labelTwo: string): string { return `${labelOne}${valueListDelimiter}${labelTwo}`; } -function splitLabelsFromDB(name: string): {labelOne: string, labelTwo: string} { +function splitLabelsFromDB(name: string): { labelOne: string; labelTwo: string } { const split = name.split(valueListDelimiter); // console.log('name, labels:', {name, split}); return { labelOne: split[0], - labelTwo: split[1] + labelTwo: split[1], }; } - - export function createCohortFromDB(data: ICohortRow, provJSON: IProvAttrAndValuesCohort): Cohort { // ATTENTION : database != databaseName const labels = splitLabelsFromDB(data.name); - const isInitial = data.is_initial === 1 ? true : false; + const isInitial = data.is_initial === 1; const basicValues: ICohortClassBasicValues = { id: `${data.id}`, dbId: data.id, labelOne: labels.labelOne, - labelTwo: labels.labelTwo + labelTwo: labels.labelTwo, }; const databaseValues: ICohortClassDatabaseValues = { database: provJSON.database, @@ -229,10 +446,10 @@ export function createCohortFromDB(data: ICohortRow, provJSON: IProvAttrAndValue table: data.entity_table, view: provJSON.view, idType: provJSON.idType, - idColumn: provJSON.idColumn + idColumn: provJSON.idColumn, }; - const cht = new Cohort(basicValues, provJSON.values, databaseValues, {normal: {}, lt: {}, lte: {}, gt: {}, gte: {}}, null, isInitial); + const cht = new Cohort(basicValues, provJSON.values, databaseValues, { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }, null, isInitial); const test = cht.size; // cht.selected = provJSON.selected; return cht; @@ -245,7 +462,7 @@ export enum cloneFilterTypes { geneScoreRange, geneScoreEquals, depletionScoreRange, - panelAnnotation + panelAnnotation, } export interface ICohortClassBasicValues { @@ -267,37 +484,73 @@ export interface ICohortClassDatabaseValues { export class Cohort implements ICohort { // public from interface public id: string; + public dbId: number; + public label: string; + private _labelOne: string; + private _labelTwo: string; + public representation: ICohortRep; + public isInitial: boolean; + public values: Array; + public isClone: boolean; + public colorTaskView: string = null; + private _sizeReference: number; + public usedFilter: cloneFilterTypes; - public usedFilterParams: ICohortEqualsFilterParams | ICohortNumFilterParams | ICohortGeneNumFilterParams | ICohortDepletionScoreFilterParams | ICohortPanelAnnotationFilterParams; + + public usedFilterParams: + | ICohortEqualsFilterParams + | ICohortNumFilterParams + | ICohortGeneNumFilterParams + | ICohortDepletionScoreFilterParams + | ICohortPanelAnnotationFilterParams; // private, because in the set function the size of the cohort will be calculated anew private _database: string; + private _schema: string; + private _view: string; + private _table: string; + private _size: number; + private _parents: Array; + private _children: Array; + private _parentCohorts: Array; + private _filters: IAllFilters; - private _selected: boolean = false; - private _hasFilterConflict: boolean = false; + + private _selected = false; + + private _hasFilterConflict = false; + private _bloodline: IBloodlineElement[] = []; + public readonly idType: IDType; - public readonly idColumn: IServerColumn; + public readonly idColumn: IServerColumn; - constructor(basicValues: ICohortClassBasicValues, values: Array, databaseValues: ICohortClassDatabaseValues, filters: IAllFilters = {normal: {}, lt: {}, lte: {}, gt: {}, gte: {}}, sizeReference: number = null, isInitial: boolean = false) { + constructor( + basicValues: ICohortClassBasicValues, + values: Array, + databaseValues: ICohortClassDatabaseValues, + filters: IAllFilters = { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }, + sizeReference: number = null, + isInitial = false, + ) { this.id = basicValues.id; this.dbId = basicValues.dbId; this._labelOne = basicValues.labelOne; @@ -338,11 +591,11 @@ export class Cohort implements ICohort { return false; // TODO remove legacy code with the filter object and filter conflict check } - private _combineLabels(updateDBCohort: boolean = true) { + private _combineLabels(updateDBCohort = true) { this.label = `${this._labelOne}: ${this._labelTwo}`; // console.log('combineLabels', {updateDBCohort, l1: this._labelOne, l2: this._labelTwo}); if (updateDBCohort) { - updateCohortName({cohortId: this.dbId, name: combineLabelsForDB(this.labelOne, this.labelTwo)}); + updateCohortName({ cohortId: this.dbId, name: combineLabelsForDB(this.labelOne, this.labelTwo) }); } } @@ -373,7 +626,9 @@ export class Cohort implements ICohort { const [labelOneCounter] = currLabel.split(' ', 1); if (labelOneCounter.startsWith('#')) { const labelOneText = currLabel.substring(labelOneCounter.length + 1); - labelOneHTML = `#${labelOneCounter.substring(1)} ` + labelOneText; + labelOneHTML = `#${labelOneCounter.substring( + 1, + )} ${labelOneText}`; } return labelOneHTML; @@ -490,6 +745,7 @@ export class Cohort implements ICohort { public get sizeReference(): number { return this._sizeReference; } + public set sizeReference(value: number) { this._sizeReference = value; } @@ -500,9 +756,8 @@ export class Cohort implements ICohort { this._size = size; // first set size here return this._size; // then return }); - } else { - return Promise.resolve(this._size); // return resolved promise --> nothing to do } + return Promise.resolve(this._size); // return resolved promise --> nothing to do } public getRetrievedSize(): number { @@ -526,32 +781,31 @@ export class Cohort implements ICohort { private async _fetchSize(): Promise { const params: ICohortDBSizeParams = { - cohortId: this.dbId + cohortId: this.dbId, }; try { if (this.isClone) { if (this.usedFilter === cloneFilterTypes.none) { return await getCohortSize(params); - - } else if (this.usedFilter === cloneFilterTypes.equals) { + } + if (this.usedFilter === cloneFilterTypes.equals) { return await sizeDBCohortWithEqualsFilter(this.usedFilterParams as ICohortEqualsFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.range) { + } + if (this.usedFilter === cloneFilterTypes.range) { return await sizeDBCohortWithNumFilter(this.usedFilterParams as ICohortNumFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.geneScoreRange) { + } + if (this.usedFilter === cloneFilterTypes.geneScoreRange) { return await sizeDBCohortGeneWithNumFilter(this.usedFilterParams as ICohortGeneNumFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.geneScoreEquals) { + } + if (this.usedFilter === cloneFilterTypes.geneScoreEquals) { return await sizeDBCohortGeneWithEqualsFilter(this.usedFilterParams as ICohortGeneEqualsFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.depletionScoreRange) { + } + if (this.usedFilter === cloneFilterTypes.depletionScoreRange) { return await sizeDBCohortDepletionScoreFilter(this.usedFilterParams as ICohortDepletionScoreFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.panelAnnotation) { + } + if (this.usedFilter === cloneFilterTypes.panelAnnotation) { return await sizeDBCohortPanelAnnotationFilter(this.usedFilterParams as ICohortPanelAnnotationFilterParams); } - } else { return await getCohortSize(params); } @@ -562,29 +816,29 @@ export class Cohort implements ICohort { private async _fetchData(): Promise { const params: ICohortDBDataParams = { - cohortId: this.dbId + cohortId: this.dbId, }; try { if (this.isClone) { if (this.usedFilter === cloneFilterTypes.none) { return await getCohortData(params); - - } else if (this.usedFilter === cloneFilterTypes.equals) { + } + if (this.usedFilter === cloneFilterTypes.equals) { return await dataDBCohortWithEqualsFilter(this.usedFilterParams as ICohortEqualsFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.range) { + } + if (this.usedFilter === cloneFilterTypes.range) { return await dataDBCohortWithNumFilter(this.usedFilterParams as ICohortNumFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.geneScoreRange) { + } + if (this.usedFilter === cloneFilterTypes.geneScoreRange) { return await dataDBCohortGeneWithNumFilter(this.usedFilterParams as ICohortGeneNumFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.geneScoreEquals) { + } + if (this.usedFilter === cloneFilterTypes.geneScoreEquals) { return await dataDBCohortGeneWithEqualsFilter(this.usedFilterParams as ICohortGeneEqualsFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.depletionScoreRange) { + } + if (this.usedFilter === cloneFilterTypes.depletionScoreRange) { return await dataDBCohortDepletionScoreFilter(this.usedFilterParams as ICohortDepletionScoreFilterParams); - - } else if (this.usedFilter === cloneFilterTypes.panelAnnotation) { + } + if (this.usedFilter === cloneFilterTypes.panelAnnotation) { return await dataDBCohortPanelAnnotationFilter(this.usedFilterParams as ICohortPanelAnnotationFilterParams); } } else { @@ -597,10 +851,24 @@ export class Cohort implements ICohort { } } - // filter method and params for the function - clone(usedFilter: cloneFilterTypes, filterParams: ICohortEqualsFilterParams | ICohortNumFilterParams | ICohortGeneNumFilterParams | ICohortGeneEqualsFilterParams | ICohortDepletionScoreFilterParams | ICohortPanelAnnotationFilterParams): Cohort { - const clone = new Cohort({id: this.id + '-clone#' + UniqueIdManager.getInstance().uniqueId('cht:cohort'), dbId: this.dbId, labelOne: this.labelOne, labelTwo: this.labelTwo}, this.values, {database: this.database, schema: this.schema, table: this.table, view: this.view, idType: this.idType, idColumn: this.idColumn}, this.filters, this.sizeReference); + clone( + usedFilter: cloneFilterTypes, + filterParams: + | ICohortEqualsFilterParams + | ICohortNumFilterParams + | ICohortGeneNumFilterParams + | ICohortGeneEqualsFilterParams + | ICohortDepletionScoreFilterParams + | ICohortPanelAnnotationFilterParams, + ): Cohort { + const clone = new Cohort( + { id: `${this.id}-clone#${UniqueIdManager.getInstance().uniqueId('cht:cohort')}`, dbId: this.dbId, labelOne: this.labelOne, labelTwo: this.labelTwo }, + this.values, + { database: this.database, schema: this.schema, table: this.table, view: this.view, idType: this.idType, idColumn: this.idColumn }, + this.filters, + this.sizeReference, + ); clone.isClone = true; clone.usedFilterParams = filterParams; clone.usedFilter = usedFilter; @@ -608,7 +876,7 @@ export class Cohort implements ICohort { } // the last element in the bloodline is alway the root cohort - private _getHeritage(heritage: Array, currElem: IElement): {obj: IElement, elemType: string, label: string, size: number}[] { + private _getHeritage(heritage: Array, currElem: IElement): { obj: IElement; elemType: string; label: string; size: number }[] { // add current element heritage.push(this._createHeritageElement(currElem)); // go through all parents and add them @@ -621,12 +889,12 @@ export class Cohort implements ICohort { return heritage; } - private _createHeritageElement(currElem: IElement): {obj: IElement, elemType: string, label: string, size: number} { + private _createHeritageElement(currElem: IElement): { obj: IElement; elemType: string; label: string; size: number } { const tmp = { obj: currElem, elemType: 'task', label: currElem.label, - size: 0 + size: 0, }; if (currElem instanceof Cohort) { @@ -663,8 +931,8 @@ export class Cohort implements ICohort { idType: this.idType, idColumn: this.idColumn, selected: this._selected, - isRoot: false - } + isRoot: false, + }, }; } } @@ -676,23 +944,34 @@ export interface IBloodlineElement { size: number; } - export const EMPTY_COHORT_ID = '--EMPTY--'; export function getEmptyCohort(parent: Cohort) { - const cht = new Cohort({id: EMPTY_COHORT_ID, dbId: NaN, labelOne: 'Empty', labelTwo: ''}, null, {database: null, schema: null, table: null, view: null, idType: undefined, idColumn: null}); + const cht = new Cohort({ id: EMPTY_COHORT_ID, dbId: NaN, labelOne: 'Empty', labelTwo: '' }, null, { + database: null, + schema: null, + table: null, + view: null, + idType: undefined, + idColumn: null, + }); cht.setCohortParents([parent]); return cht; } - export const LOADER_COHORT_ID = '--LOADING--'; export function getLoaderCohort(parent: Cohort) { - const cht = new Cohort({id: LOADER_COHORT_ID, dbId: NaN, labelOne: 'Loading', labelTwo: ''}, null, {database: null, schema: null, table: null, view: null, idType: undefined, idColumn: null}); + const cht = new Cohort({ id: LOADER_COHORT_ID, dbId: NaN, labelOne: 'Loading', labelTwo: '' }, null, { + database: null, + schema: null, + table: null, + view: null, + idType: undefined, + idColumn: null, + }); cht.setCohortParents([parent]); return cht; } - export function getCohortLabel(cht: Cohort) { return cht.label; } diff --git a/src/CohortInterfaces.ts b/src/CohortInterfaces.ts index dec4c83..926b3c5 100644 --- a/src/CohortInterfaces.ts +++ b/src/CohortInterfaces.ts @@ -1,10 +1,8 @@ -import {IDType} from 'tdp_core'; -import {IServerColumn} from 'tdp_core'; -import {Cohort} from './Cohort'; -import {IAttribute, IAttributeJSON} from './data/Attribute'; -import {IEqualsList, INumRange} from './rest'; -import {InputCohort} from './Taskview/Taskview'; - +import { IDType, IServerColumn } from 'tdp_core'; +import { Cohort } from './Cohort'; +import { IAttribute, IAttributeJSON } from './data/Attribute'; +import { IEqualsList, INumRange } from './rest'; +import { InputCohort } from './Taskview/Taskview'; /** * Enumeration for the different types of task @@ -17,15 +15,11 @@ export enum TaskType { Characterization, } - - - - -////////////////////////////////////////////////////////////// +/// /////////////////////////////////////////////////////////// // // Cohort Overview Elements (Cohort & Task) // -////////////////////////////////////////////////////////////// +/// /////////////////////////////////////////////////////////// /** * Interface for every element in the overview (except the paths between the elements) @@ -34,7 +28,7 @@ export enum TaskType { export enum ElementProvType { Cohort = 'Cohort', TaskSplit = 'Task-Split', - TaskFilter = 'Task-Filter' + TaskFilter = 'Task-Filter', } export interface IProvAttrAndValuesCohort { @@ -101,14 +95,11 @@ export interface ITask extends IElement { toProvenanceJSON(): IElementProvJSONTask; } - - - -////////////////////////////////////////////////////////////// +/// /////////////////////////////////////////////////////////// // // Cohort Overview Elements Representations (Cohort & Task) // -////////////////////////////////////////////////////////////// +/// /////////////////////////////////////////////////////////// // Overview Layout ------------- export interface IOverviewLayout { @@ -122,7 +113,6 @@ export interface IOverviewLayout { setPositionInGrid(element: HTMLDivElement, level: number, pos: number): void; } - // Rectangle Layout ------------- export interface IRectLayout { elemID: string; @@ -152,7 +142,6 @@ export interface IRectCohortRep extends ICohortRep { setInformation: (labelOne: string, labelTwo: string, size: number, sizeReference: number) => void; } - // Task Representations ------------- /** * Interface for a representation of a task @@ -180,7 +169,7 @@ export interface ISetLabelFunc { } export interface ITaskParams { - inputCohorts: InputCohort[]; //combine can have multiple + inputCohorts: InputCohort[]; // combine can have multiple outputCohorts: Cohort[]; type: TaskType; label: string; diff --git a/src/CohortRepresentations.ts b/src/CohortRepresentations.ts index e763abb..ba69ada 100644 --- a/src/CohortRepresentations.ts +++ b/src/CohortRepresentations.ts @@ -1,26 +1,39 @@ import {hsl} from 'd3v7'; import tippy from 'tippy.js'; -import {Cohort} from './Cohort'; -import {IElement, IRectCohortRep} from './CohortInterfaces'; -import {getRootCohort} from './cohortview'; -import {log} from './util'; -import {CohortRemoveEvent, CohortSelectionEvent} from './utilCustomEvents'; -import {labelFromFilter} from './utilLabels'; +import { Cohort } from './Cohort'; +import { IElement, IRectCohortRep } from './CohortInterfaces'; +import { getRootCohort } from './cohortview'; +import { log } from './util'; +import { CohortRemoveEvent, CohortSelectionEvent } from './utilCustomEvents'; +import { labelFromFilter } from './utilLabels'; + export class RectCohortRep implements IRectCohortRep { id: string; + labelOne: string; + labelTwo: string; private _representation: HTMLDivElement; + private _repClone: HTMLDivElement; + private _height: number; + private _width: number; + private _cohort: Cohort; + private _isSelected: boolean; + private _bloodline: Array; + private _bloodlinePaths: SVGPathElement[]; + private _removeButton: HTMLAnchorElement; + private _size: number; + private _refSize: number; constructor(private cohort: Cohort, height: number, width: number) { @@ -53,7 +66,7 @@ export class RectCohortRep implements IRectCohortRep { // *--- create size bar div ---* const divSizeBar: HTMLDivElement = document.createElement('div'); divSizeBar.className = 'rectCohort-sizeBar cht-part'; - divSizeBar.style.height = barHeight + 'px'; + divSizeBar.style.height = `${barHeight}px`; // indicator div for the size in the size bar div const divSizeBarIndicator: HTMLDivElement = document.createElement('div'); divSizeBarIndicator.className = 'rectCohort-sizeBar-indicator cht-part'; @@ -62,9 +75,9 @@ export class RectCohortRep implements IRectCohortRep { const divSizeBarLabel: HTMLDivElement = document.createElement('div'); divSizeBarLabel.textContent = 'loading...'; divSizeBarLabel.className = 'size-label cht-part'; - divSizeBarLabel.style.height = labelHeight + 'px'; - divSizeBarLabel.style.lineHeight = labelHeight + 'px'; - divSizeBarLabel.style.fontSize = fontSize + 'px'; + divSizeBarLabel.style.height = `${labelHeight}px`; + divSizeBarLabel.style.lineHeight = `${labelHeight}px`; + divSizeBarLabel.style.fontSize = `${fontSize}px`; // add div for the size overlay wrapper const divSizeBarLabelOverlayWrapper: HTMLDivElement = document.createElement('div'); @@ -73,9 +86,9 @@ export class RectCohortRep implements IRectCohortRep { // add div for the size overlay const divSizeBarLabelOverlay: HTMLDivElement = document.createElement('div'); divSizeBarLabelOverlay.className = 'size-label-overlay cht-part'; - divSizeBarLabelOverlay.style.height = labelHeight + 'px'; - divSizeBarLabelOverlay.style.lineHeight = labelHeight + 'px'; - divSizeBarLabelOverlay.style.fontSize = fontSize + 'px'; + divSizeBarLabelOverlay.style.height = `${labelHeight}px`; + divSizeBarLabelOverlay.style.lineHeight = `${labelHeight}px`; + divSizeBarLabelOverlay.style.fontSize = `${fontSize}px`; divSizeBarLabelOverlayWrapper.appendChild(divSizeBarLabelOverlay); divSizeBar.appendChild(divSizeBarLabel); @@ -85,15 +98,15 @@ export class RectCohortRep implements IRectCohortRep { // ------------------------------ // *--- create 1st row label ---* const divLabelBar: HTMLDivElement = document.createElement('div'); - divLabelBar.style.height = labelHeight + 'px'; + divLabelBar.style.height = `${labelHeight}px`; divLabelBar.style.position = 'relative'; // label const divLabel: HTMLDivElement = document.createElement('div'); divLabel.className = 'rectCohort-label-first rectCohort-label cht-part'; - divLabel.style.height = labelHeight + 'px'; - divLabel.style.lineHeight = labelHeight + 'px'; - divLabel.style.fontSize = fontSize + 'px'; + divLabel.style.height = `${labelHeight}px`; + divLabel.style.lineHeight = `${labelHeight}px`; + divLabel.style.fontSize = `${fontSize}px`; // remove button this._removeButton = document.createElement('a'); @@ -104,15 +117,13 @@ export class RectCohortRep implements IRectCohortRep { divLabelBar.appendChild(divLabel); - // ------------------------------ // *--- create 2nd row label ---* const divLabelTwo: HTMLDivElement = document.createElement('div'); divLabelTwo.className = 'rectCohort-label-second rectCohort-label cht-part'; - divLabelTwo.style.height = labelHeight + 'px'; - divLabelTwo.style.lineHeight = labelHeight + 'px'; - divLabelTwo.style.fontSize = fontSize + 'px'; - + divLabelTwo.style.height = `${labelHeight}px`; + divLabelTwo.style.lineHeight = `${labelHeight}px`; + divLabelTwo.style.fontSize = `${fontSize}px`; // -------------------------------------------- // *--- add the 3 parts into the container ---* @@ -141,7 +152,6 @@ export class RectCohortRep implements IRectCohortRep { this.addHighlightingToElements(this._bloodline); this.addHighlightingToPaths(this._bloodlinePaths); } - }); container.addEventListener('mouseleave', (event) => { event.stopPropagation(); @@ -156,7 +166,8 @@ export class RectCohortRep implements IRectCohortRep { let dbClickTimer; container.addEventListener('click', (event) => { - if (event.detail === 1) { // single click + if (event.detail === 1) { + // single click dbClickTimer = setTimeout(() => { log.debug('click on cohort'); if (event.target === this._removeButton.childNodes[0]) { @@ -172,7 +183,6 @@ export class RectCohortRep implements IRectCohortRep { // get delete button in modal let delConfirm = modal.querySelector('.confirm-delete'); if (delConfirm) { - // replace element with copy of it to remove the eventlisteners delConfirm.replaceWith(delConfirm.cloneNode(true)); delConfirm = modal.querySelector('.confirm-delete'); @@ -200,12 +210,16 @@ export class RectCohortRep implements IRectCohortRep { } }); - container.addEventListener('mousedown', function (event) { - if (event.detail > 1) { - event.preventDefault(); - // prevent text highlighting on double click - } - }, false); + container.addEventListener( + 'mousedown', + function (event) { + if (event.detail > 1) { + event.preventDefault(); + // prevent text highlighting on double click + } + }, + false, + ); return container; } @@ -253,14 +267,14 @@ export class RectCohortRep implements IRectCohortRep { const remBtn = clone.querySelector('.remove-cohort'); remBtn.parentNode.removeChild(remBtn); - clone.id = 'clone_' + this.id; + clone.id = `clone_${this.id}`; clone.style.setProperty('grid-area', null); // enable interactions for the cohorts in the task view (de/select input cohorts, de/select possible output cohorts) clone.addEventListener('click', (event) => { log.info('click on cohort'); // to achieve toggle selection the ctrlClick variable has to be set to true - const ctrlClick = true;// was CTRL or ALT key: (event as MouseEvent).ctrlKey || (event as MouseEvent).altKey; + const ctrlClick = true; // was CTRL or ALT key: (event as MouseEvent).ctrlKey || (event as MouseEvent).altKey; clone.dispatchEvent(new CohortSelectionEvent(this.cohort, !ctrlClick)); }); @@ -301,7 +315,6 @@ export class RectCohortRep implements IRectCohortRep { this._repClone.style.color = null; this._removeButton.style.color = null; } - } getSelection(): boolean { @@ -313,12 +326,14 @@ export class RectCohortRep implements IRectCohortRep { this.setSize(size, sizeReference); } - public setLabel(labelOne: string, labelTwo: string = '') { + public setLabel(labelOne: string, labelTwo = '') { let labelOneHTML = labelOne; const [labelOneCounter] = labelOne.split(' ', 1); if (labelOneCounter.startsWith('#')) { const labelOneText = labelOne.substring(labelOneCounter.length + 1); - labelOneHTML = `#${labelOneCounter.substring(1)} ` + labelOneText; + labelOneHTML = `#${labelOneCounter.substring( + 1, + )} ${labelOneText}`; } // 1st row @@ -354,12 +369,12 @@ export class RectCohortRep implements IRectCohortRep { // calculate the size of bar and set its color accordingly const percentage = (size / sizeReference) * 100; - //original + // original const sizeBarPercentage = this._representation.querySelector('div.rectCohort-sizeBar-indicator') as HTMLDivElement; sizeBarPercentage.style.width = `${percentage}%`; // set the label for the size // this._representation.querySelector('div.rectCohort-labelBar').innerHTML = '' + size; - this._representation.querySelector('div.size-label').innerHTML = '' + size; + this._representation.querySelector('div.size-label').innerHTML = `${size}`; // get overlay and overlayWrapper const overlay = this._representation.querySelector('div.size-label-overlay') as HTMLDivElement; @@ -369,18 +384,17 @@ export class RectCohortRep implements IRectCohortRep { // now get the calculated with of overlayWrapper (is a string with 'px' at the end) const repSize: number = window.getComputedStyle(overlayWrapper).getPropertyValue('width').slice(0, -2) as any; - overlay.innerHTML = '' + size; // set the text for the size - overlay.style.width = repSize + 'px'; // set size for the overlay + overlay.innerHTML = `${size}`; // set the text for the size + overlay.style.width = `${repSize}px`; // set size for the overlay overlayWrapper.style.width = `${percentage}%`; // set size of the wrapper to the length of the bar - // clone const sizeBarPercentageClone = this._repClone.querySelector('div.rectCohort-sizeBar-indicator') as HTMLDivElement; sizeBarPercentageClone.style.width = `${percentage}%`; // set the label for the size // this._repClone.querySelector('div.rectCohort-labelBar').innerHTML = '' + size; - this._repClone.querySelector('div.size-label').innerHTML = '' + size; + this._repClone.querySelector('div.size-label').innerHTML = `${size}`; // get overlay and overlayWrapper const overlayClone = this._repClone.querySelector('div.size-label-overlay') as HTMLDivElement; @@ -390,12 +404,11 @@ export class RectCohortRep implements IRectCohortRep { // now get the calculated with of overlayWrapper (is a string with 'px' at the end) const repSizeClone: number = window.getComputedStyle(overlayWrapperClone).getPropertyValue('width').slice(0, -2) as any; - overlayClone.innerHTML = '' + size; // set the text for the size - overlayClone.style.width = repSizeClone + 'px'; // set size for the overlay + overlayClone.innerHTML = `${size}`; // set the text for the size + overlayClone.style.width = `${repSizeClone}px`; // set size for the overlay overlayWrapperClone.style.width = `${percentage}%`; // set size of the wrapper to the length of the bar - // create summary for the cohort this._setSummary(); } @@ -440,7 +453,6 @@ export class RectCohortRep implements IRectCohortRep { duration: [300, null], }); } - } private _getPathsForBloodline() { @@ -475,10 +487,11 @@ export class RectCohortRep implements IRectCohortRep { let previousSize = maxSize; let cntStep = 1; let htmlTooltip; - const tooltipInfo: {chtName: string, chtSize: number, prevSize: number, percentage: number, attr: {name: string, value: string}[]}[] = []; - if (this._bloodline.length > 1) { // only if more than 1 element (root) - for (let i = this._bloodline.length - 2; i > 0; i = i - 2) { - const ttInfo = {chtName: '', chtSize: 0, prevSize: 0, percentage: 0, attr: []}; + const tooltipInfo: { chtName: string; chtSize: number; prevSize: number; percentage: number; attr: { name: string; value: string }[] }[] = []; + if (this._bloodline.length > 1) { + // only if more than 1 element (root) + for (let i = this._bloodline.length - 2; i > 0; i -= 2) { + const ttInfo = { chtName: '', chtSize: 0, prevSize: 0, percentage: 0, attr: [] }; const task = this._bloodline[i]; const cohort = this._bloodline[i - 1]; // TODO labels @@ -504,26 +517,25 @@ export class RectCohortRep implements IRectCohortRep { labelpart = labelFromFilter(val, label); } detailedLabelArray.push(labelpart); - ttInfo.attr.push({name: attrLabel[i], value: labelpart}); + ttInfo.attr.push({ name: attrLabel[i], value: labelpart }); } const detailedLabel = detailedLabelArray.join(', '); const valueLabel = detailedLabel.replace(htmlLte, '<=').replace(htmlLt, '<').replace(htmlGte, '>=').replace(htmlGt, '>'); - const percentage = Math.round(cohort.size / maxSize * 100000) / 1000; + const percentage = Math.round((cohort.size / maxSize) * 100000) / 1000; ttInfo.percentage = percentage; tooltipInfo.push(ttInfo); // TODO lables // summaries = summaries + `\n${cntStep}: ${task.label} = ${valueLabel}:\n ${previousSize} -> ${cohort.size} (= ${percentage} % of the entire dataset)`; - summaries = summaries + `\n${cntStep}. ${task.label}: ${valueLabel}:\n ${previousSize} -> ${cohort.size} (= ${percentage} % of the entire dataset)`; + summaries += `\n${cntStep}. ${task.label}: ${valueLabel}:\n ${previousSize} -> ${cohort.size} (= ${percentage} % of the entire dataset)`; previousSize = cohort.size; cntStep += 1; - } htmlTooltip = this.createCohortTooltip(false, tooltipInfo); } else { const cohort = this._bloodline[0]; - const ttInfo = {chtName: '', chtSize: 0, prevSize: 0, percentage: 0, attr: []}; + const ttInfo = { chtName: '', chtSize: 0, prevSize: 0, percentage: 0, attr: [] }; const cohortObj = cohort.obj as Cohort; ttInfo.chtName = cohortObj.label; ttInfo.chtSize = cohort.size; @@ -538,8 +550,10 @@ export class RectCohortRep implements IRectCohortRep { return htmlTooltip; } - - private createCohortTooltip(root: boolean, ttInfo: {chtName: string, chtSize: number, prevSize: number, percentage: number, attr: {name: string, value: string}[]}[]): HTMLDivElement { + private createCohortTooltip( + root: boolean, + ttInfo: { chtName: string; chtSize: number; prevSize: number; percentage: number; attr: { name: string; value: string }[] }[], + ): HTMLDivElement { // TODO labels log.debug('toolTipInfo: ', ttInfo); log.debug('tooltip cohort: ', this._cohort); @@ -632,7 +646,6 @@ export class RectCohortRep implements IRectCohortRep { ctrTooltip.appendChild(ctrCurrCht); } } - } // const prevInstRep = (this._representation as any)._tippy; diff --git a/src/OnboardingManager.ts b/src/OnboardingManager.ts index bd44e57..81558ce 100644 --- a/src/OnboardingManager.ts +++ b/src/OnboardingManager.ts @@ -1,30 +1,29 @@ import * as loMerge from 'lodash.merge'; -import {CONFIG_ONBOARDING} from './config/onboarding'; -import tippy, {hideAll, Props, Instance as TippyInstance} from 'tippy.js'; -import {log, hasCookie} from './util'; +import tippy, { hideAll, Props, Instance as TippyInstance } from 'tippy.js'; +import { CONFIG_ONBOARDING } from './config/onboarding'; +import { log, hasCookie } from './util'; export class OnboardingManager { - static tooltips = new Map>(); + static tooltips = new Map>(); public static init(settings: any = {}) { - const defaultSettings = CONFIG_ONBOARDING.defaultSettings; + const { defaultSettings } = CONFIG_ONBOARDING; const appliedSettings = loMerge({}, defaultSettings, settings); tippy.setDefaultProps(appliedSettings); } - - static addTip(tipId: string, elem: HTMLElement, forceShow: boolean = false): TippyInstance { + static addTip(tipId: string, elem: HTMLElement, forceShow = false): TippyInstance { const tipConfig = CONFIG_ONBOARDING.tooltips[tipId]; - let tip = undefined; + let tip; if (tipConfig) { this.tooltips.forEach((tip) => tip.clearDelayTimeouts()); const cookieID = `${tipId}_onboarded`; - const showOnCreate = !hasCookie(cookieID) || forceShow; //show if there is no cookie + const showOnCreate = !hasCookie(cookieID) || forceShow; // show if there is no cookie tip = tippy(elem, { ...tipConfig, theme: 'onboarding', - showOnCreate + showOnCreate, }); this.tooltips.set(tipId, tip); setOnboardingCookie(cookieID); @@ -33,13 +32,12 @@ export class OnboardingManager { } return tip; } - } function setOnboardingCookie(cookieName) { const exdays = 14; const expireDate = new Date(); - expireDate.setTime(expireDate.getTime() + (exdays*24*60*60*1000)); + expireDate.setTime(expireDate.getTime() + exdays * 24 * 60 * 60 * 1000); document.cookie = `${cookieName}=displayed; SameSite=Lax; expires=${expireDate.toUTCString()}`; } diff --git a/src/Overview/CohortOverview.ts b/src/Overview/CohortOverview.ts index 032b3b0..a7e2e1e 100644 --- a/src/Overview/CohortOverview.ts +++ b/src/Overview/CohortOverview.ts @@ -1,47 +1,81 @@ -import {IObjectRef, ObjectRefUtils, ProvenanceGraph, UniqueIdManager} from 'tdp_core'; -import {IDatabaseViewDesc} from 'tdp_core'; +import { IObjectRef, ObjectRefUtils, ProvenanceGraph, UniqueIdManager, IDatabaseViewDesc } from 'tdp_core'; import tippy from 'tippy.js'; -import {CohortApp} from '../app'; -import {Cohort, createCohortFromDB} from '../Cohort'; -import {ElementProvType, IElement, IElementProvJSON, IOverviewLayout, IRectCohortRep, IRectTaskRep, ITask, ITaskParams, TaskType} from '../CohortInterfaces'; -import {RectCohortRep} from '../CohortRepresentations'; -import {IAttribute} from '../data/Attribute'; -import {addOverviewCohortAction, removeOverviewCohortAction} from '../Provenance/CohortEV'; -import {getDBCohortData} from '../rest'; -import {RectTaskRep} from '../TaskRepresentations'; -import {createTaskFromProvJSON, Task, TaskFilter, TaskSplit} from '../Tasks'; -import {deepCopy, log, ScrollLinker} from '../util'; -import {CohortRemoveEvent, CohortSelectionEvent, COHORT_REMOVE_EVENT_TYPE, OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, PreviewChangeEvent, TaskRemoveEvent, TASK_REMOVE_EVENT_TYPE} from '../utilCustomEvents'; -import {niceName} from '../utilLabels'; -import {RectangleLayout} from './OverviewLayout'; +import { CohortApp } from '../app'; +import { Cohort, createCohortFromDB } from '../Cohort'; +import { ElementProvType, IElement, IElementProvJSON, IOverviewLayout, IRectCohortRep, IRectTaskRep, ITask, ITaskParams, TaskType } from '../CohortInterfaces'; +import { RectCohortRep } from '../CohortRepresentations'; +import { IAttribute } from '../data/Attribute'; +import { addOverviewCohortAction, removeOverviewCohortAction } from '../Provenance/CohortEV'; +import { getDBCohortData } from '../rest'; +import { RectTaskRep } from '../TaskRepresentations'; +import { createTaskFromProvJSON, Task, TaskFilter, TaskSplit } from '../Tasks'; +import { deepCopy, log, ScrollLinker } from '../util'; +import { + CohortRemoveEvent, + CohortSelectionEvent, + COHORT_REMOVE_EVENT_TYPE, + OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, + OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, + PreviewChangeEvent, + TaskRemoveEvent, + TASK_REMOVE_EVENT_TYPE, +} from '../utilCustomEvents'; +import { niceName } from '../utilLabels'; +import { RectangleLayout } from './OverviewLayout'; export class CohortOverview { private root: Cohort; + private rootDBid: number; + private elements: Array = []; + public sizeReference: number; + public layout: IOverviewLayout; + public container: HTMLDivElement; + public viewDescr: IDatabaseViewDesc; + public taskHistory: Array; private _arrangements: any; + private _zoomFactor: number; + private _showTaskHistoryDetails: boolean; + private _currentPreviewTasks: Task[]; + private _lastAddedTasks: Task[]; + private eventListenerChange; + private eventListenerConfirm; + private cohortAppNode: HTMLDivElement; + private _elementsAsJSON: IElementProvJSON[]; + public graph: ProvenanceGraph; + public readonly ref: IObjectRef; + public readonly appRef: IObjectRef; + private refName = 'CohortApp-Overview'; - private _reference: Cohort; + private _reference: Cohort; - constructor(private parent: HTMLDivElement, graph: ProvenanceGraph, ref: IObjectRef, layout: IOverviewLayout, root: Cohort, viewDescr: IDatabaseViewDesc) { + constructor( + private parent: HTMLDivElement, + graph: ProvenanceGraph, + ref: IObjectRef, + layout: IOverviewLayout, + root: Cohort, + viewDescr: IDatabaseViewDesc, + ) { this.root = root; this.rootDBid = root.dbId; this._reference = root; @@ -74,7 +108,6 @@ export class CohortOverview { this.cohortAppNode.addEventListener(OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, this.eventListenerChange); // event listener to confirm the preview this.cohortAppNode.addEventListener(OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, this.eventListenerConfirm); - } // private static generate_hash(desc: IPluginDesc, selection: ISelection) { @@ -178,9 +211,8 @@ export class CohortOverview { if (elem !== null) { const eleId = elem.id; return this.getElementWithId(eleId); - } else { - return null; } + return null; } // maybe remove, and only keep getElements @@ -188,9 +220,8 @@ export class CohortOverview { if (this.elements !== null) { const target = this.elements.filter((e) => e.id === eleId); return target.length === 1 ? target[0] : null; - } else { - return null; } + return null; } public getLastAddedTasks() { @@ -201,7 +232,7 @@ export class CohortOverview { this._lastAddedTasks = []; } - public executeTask(taskParam: ITaskParams, attributes: IAttribute[], addToTaskHistory: boolean = true): Task { + public executeTask(taskParam: ITaskParams, attributes: IAttribute[], addToTaskHistory = true): Task { log.debug('executeTask: ', taskParam); let validType = false; const parentCohort: Cohort = taskParam.inputCohorts[0] as Cohort; @@ -217,7 +248,6 @@ export class CohortOverview { } if (validType) { - parentCohort.children.push(task); task.parents = [parentCohort]; const selectedOutChts = taskParam.outputCohorts.filter((cht) => cht.selected); @@ -226,7 +256,7 @@ export class CohortOverview { } task.children = selectedOutChts; - log.debug('execute task: ', {task, selectedOutChts}); + log.debug('execute task: ', { task, selectedOutChts }); this.addElement(task); this.addElements(selectedOutChts); if (addToTaskHistory) { @@ -251,11 +281,10 @@ export class CohortOverview { // change preview this.previewChange(taskParams, taskAttributes); } - } else { - if (!(this._currentPreviewTasks.length === 0 && taskParams.length === 0)) { // avoid clearing if there is nothing to clear - this.clearPreview(); - this.generateOverview(); - } + } else if (!(this._currentPreviewTasks.length === 0 && taskParams.length === 0)) { + // avoid clearing if there is nothing to clear + this.clearPreview(); + this.generateOverview(); } } @@ -343,7 +372,6 @@ export class CohortOverview { // set current tasks of preview to empty this._currentPreviewTasks = []; - const oldElements = deepCopy(this._elementsAsJSON); this.updateJSONElements(); const newElements = deepCopy(this._elementsAsJSON); @@ -360,7 +388,7 @@ export class CohortOverview { // const copyElem = this.elements !== null ? this.elements : []; const elemIDs = this.elements !== null ? this.elements.map((elem) => elem.id) : []; - const sizeEquals = elemIDs.length === porvElemIDs.length ? true : false; + const sizeEquals = elemIDs.length === porvElemIDs.length; const containsAll = elemIDs.every((e) => porvElemIDs.includes(e)); // console.log('check all Elements exist: ', {porvElemIDs, elemIDs, sizeEquals, containsAll}); // reduced double loading when the no switch the the cohort evolution tree state has been made @@ -393,7 +421,7 @@ export class CohortOverview { // get cohort DB data const chtSizes = []; if (cohortIDs.length > 0) { - const dbCohortInfos = await getDBCohortData({cohortIds: cohortIDs}); + const dbCohortInfos = await getDBCohortData({ cohortIds: cohortIDs }); for (const cInfo of dbCohortInfos) { const chtId = cInfo.id; const jsonCht = jsonCohorts.filter((elem) => elem.id === String(chtId))[0]; @@ -456,7 +484,6 @@ export class CohortOverview { currC.parents.push(currentElement); } } - } // console.log('elements from JSON - provElements: ', {provElements, rootDBid: this.rootDBid}); @@ -512,9 +539,7 @@ export class CohortOverview { this.generateOverview(); } - - - //maybe add a updateOverview function + // maybe add a updateOverview function public generateOverview() { // console.log('current elements in generateOverview function', this.elements); // remove old graph @@ -533,7 +558,7 @@ export class CohortOverview { this.parent.appendChild(chtOverviewGraphWrapper); tippy(chtOverviewGraphWrapper, { content: 'Click a cohort to toggle its selection. To directly select only a single cohort, double-click it.', - delay: [5000, 0] + delay: [5000, 0], }); this.container = chtOverviewGraphWrapper; // div container for grid layout and svg paths @@ -548,7 +573,7 @@ export class CohortOverview { // add wheel event to the Overview container chtOverviewGraphWrapper.addEventListener('wheel', (event) => { - const deltaY = (event as WheelEvent).deltaY; + const { deltaY } = event as WheelEvent; // only if CTRL-key is pressend in combination with wheel action if ((event as WheelEvent).ctrlKey || (event as WheelEvent).altKey) { event.preventDefault(); @@ -559,10 +584,10 @@ export class CohortOverview { } } }); - //create the placement of the elements + // create the placement of the elements this._generatePlacement(chtGraph); - //generate the path between the elements + // generate the path between the elements this._generatePaths(chtGraph); // always apply current zoom factor @@ -580,9 +605,8 @@ export class CohortOverview { // this.setupTaskHistory(); } - private getAllChildren(elementsToRemove: IElement[], elem: IElement): IElement[] { - const children = elem.children; + const { children } = elem; for (const c of children) { if (elementsToRemove.map((a) => a.id).indexOf(c.id) === -1) { elementsToRemove.push(c); @@ -602,7 +626,7 @@ export class CohortOverview { // function to handle the remove cohort event private handleRemoveTask(event: TaskRemoveEvent) { - const task = event.detail.task; + const { task } = event.detail; // remove all child elements const elementsToRemove = []; @@ -612,9 +636,8 @@ export class CohortOverview { const elemRemoveSelected = elementsToRemove.filter((elem) => { if (elem instanceof Cohort) { return elem.selected; - } else { - return false; } + return false; }); // deselect selected children for (const elemRS of elemRemoveSelected) { @@ -629,14 +652,13 @@ export class CohortOverview { this.removeElement(task); // get all parents (cohorts) of the task - const parents = task.parents; + const { parents } = task; for (const p of parents) { // get index of the task in the children of the parent const childIndex = p.children.findIndex((a) => a.id === task.id); // remove task from the children of parent (cohort) p.children.splice(childIndex, 1); - } const oldElements = deepCopy(this._elementsAsJSON); @@ -649,7 +671,7 @@ export class CohortOverview { // function to handle the remove cohort event private handleRemoveCohort(event: CohortRemoveEvent) { - const cohort = event.detail.cohort; + const { cohort } = event.detail; // log.debug('cohort to remove: ', cohort); // remove clone from taskview if selected if (cohort.selected) { @@ -669,9 +691,8 @@ export class CohortOverview { const elemRemoveSelected = elementsToRemove.filter((elem) => { if (elem instanceof Cohort) { return elem.selected; - } else { - return false; } + return false; }); // deselect selected children for (const elemRS of elemRemoveSelected) { @@ -686,7 +707,7 @@ export class CohortOverview { this.removeElement(cohort); // get all parents (task) of the cohort - const parents = cohort.parents; + const { parents } = cohort; for (const p of parents) { // get index of the cohort in the children of the parent @@ -723,15 +744,13 @@ export class CohortOverview { // this.generateOverview(); } - private _generatePlacement(containerCSSGrid: HTMLDivElement) { if (this.elements && this.elements.length > 0) { // generate the layout assignment of the elements this._arrangements = this.layout.createLayout(this.root); - log.debug('Layout for placement finished: ', {root: this.root, elements: this.elements, arrangement: this._arrangements}); + log.debug('Layout for placement finished: ', { root: this.root, elements: this.elements, arrangement: this._arrangements }); // console.log('Layout for placement finished: ', {root: this.root, elements: this.elements, arrangement: this._arrangements}); - while (containerCSSGrid.firstChild) { containerCSSGrid.removeChild(containerCSSGrid.firstChild); } @@ -740,7 +759,7 @@ export class CohortOverview { // define CSS grid for the container this.layout.setContainerGrid(containerCSSGrid, numCol, numRow); - const rowHeight = this.layout.rowHeight; + const { rowHeight } = this.layout; const chtWidth = this.layout.cohortWidth; const opWidth = this.layout.taskWidth; @@ -794,8 +813,8 @@ export class CohortOverview { const gridDimension = document.getElementById(containerCSSGrid.id).getBoundingClientRect(); const svgElement: SVGElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); svgElement.setAttribute('id', 'svg-path-container'); - svgElement.setAttribute('width', '' + gridDimension.width); - svgElement.setAttribute('height', '' + gridDimension.height); + svgElement.setAttribute('width', `${gridDimension.width}`); + svgElement.setAttribute('height', `${gridDimension.height}`); containerCSSGrid.appendChild(svgElement); const chtOverviewGraph = document.getElementById('chtOverviewGraph').getBoundingClientRect(); @@ -810,27 +829,29 @@ export class CohortOverview { log.debug('svg-line: parent: ', parent, ' | child: ', child); // get cohort bars size - const cohort = ceParent instanceof Cohort ? document.getElementById(ceParent.id).querySelector('.rectCohort-sizeBar') : document.getElementById(ceChild.id).querySelector('.rectCohort-sizeBar'); + const cohort = + ceParent instanceof Cohort + ? document.getElementById(ceParent.id).querySelector('.rectCohort-sizeBar') + : document.getElementById(ceChild.id).querySelector('.rectCohort-sizeBar'); const barHeight = cohort.getBoundingClientRect().height; - const x1 = parent.left + (parent.width) - chtOverviewGraph.left; - let y1 = parent.top + (parent.height / 2) - chtOverviewGraph.top; + const x1 = parent.left + parent.width - chtOverviewGraph.left; + let y1 = parent.top + parent.height / 2 - chtOverviewGraph.top; const x2 = child.left - chtOverviewGraph.left; - let y2 = child.top + (child.height / 2) - chtOverviewGraph.top; + let y2 = child.top + child.height / 2 - chtOverviewGraph.top; // 2px because of the upper border - y1 = y1 + 1; - y2 = y2 + 1; + y1 += 1; + y2 += 1; const mx1 = (x2 - x1) / 2 + x1; const my1 = y1; const mx2 = (x2 - x1) / 2 + x1; const my2 = y2; - const d = 'M ' + x1 + ' ' + y1 + - ' C ' + mx1 + ' ' + my1 + ', ' + mx2 + ' ' + my2 + ', ' + x2 + ' ' + y2; + const d = `M ${x1} ${y1} C ${mx1} ${my1}, ${mx2} ${my2}, ${x2} ${y2}`; const currPath: SVGPathElement = document.createElementNS('http://www.w3.org/2000/svg', 'path'); - currPath.setAttribute('id', 'path-' + ceParent.id + '-to-' + ceChild.id); + currPath.setAttribute('id', `path-${ceParent.id}-to-${ceChild.id}`); // currPath.setAttribute('class', 'svg-path'); currPath.classList.add('svg-path', `path-ep-out-${ceParent.id}`, `path-ep-in-${ceChild.id}`); currPath.setAttribute('d', d); @@ -877,7 +898,6 @@ export class CohortOverview { taskDetailsStack.classList.add('task-history-stack'); taskDetailsStackWrapper.appendChild(taskDetailsStack); - // -- History of tasks // div container for the tasks const taskHistory: HTMLDivElement = document.createElement('div'); @@ -986,7 +1006,6 @@ export class CohortOverview { // paths from task to cohorts this.removeHighligthingFromPaths(pathsTask); }); - } private addHighligthingToPaths(paths: SVGPathElement[]) { @@ -1046,16 +1065,14 @@ export class CohortOverview { // divDetails.appendChild(pOutput); // return divDetails; - divDetails.classList.add('task-details'); const inputs = task.parents as Cohort[]; const outputs = task.children as Cohort[]; const divAttribute = document.createElement('div'); divAttribute.classList.add('task-detail-attribute'); - divAttribute.innerHTML = 'Attribute: ' + task.label; + divAttribute.innerHTML = `Attribute: ${task.label}`; divDetails.appendChild(divAttribute); - const divInput = document.createElement('div'); divInput.classList.add('task-detail-cohort'); @@ -1071,7 +1088,6 @@ export class CohortOverview { } divDetails.appendChild(divInput); - const divOutput = document.createElement('div'); divOutput.classList.add('task-detail-cohort'); @@ -1090,8 +1106,6 @@ export class CohortOverview { return divDetails; } - - public zoomIn() { this._zoomFactor = Math.min(this._zoomFactor + 0.1, 3.0); this._zoom(); @@ -1107,5 +1121,4 @@ export class CohortOverview { cssGrid.style.transform = `scale(${this._zoomFactor})`; cssGrid.style.transformOrigin = '0% 0% 0px'; } - } diff --git a/src/Overview/OverviewLayout.ts b/src/Overview/OverviewLayout.ts index ee57868..8c7d9b9 100644 --- a/src/Overview/OverviewLayout.ts +++ b/src/Overview/OverviewLayout.ts @@ -1,16 +1,19 @@ -import {ICohort, IElement, IOverviewLayout, IRectLayout, ITask} from '../CohortInterfaces'; -import {Task} from '../Tasks'; -import {deepCopy, log} from '../util'; +import { ICohort, IElement, IOverviewLayout, IRectLayout, ITask } from '../CohortInterfaces'; +import { Task } from '../Tasks'; +import { deepCopy, log } from '../util'; export class RectangleLayout implements IOverviewLayout { private _layout: Array; public cohortWidth: number; + public pathWidth: number; + public taskWidth: number; + public rowHeight: number; - constructor(cohortWidth: number = 150, pathWidth: number = 50, taskWidth: number = 50, rowHeight: number = 50) { + constructor(cohortWidth = 150, pathWidth = 50, taskWidth = 50, rowHeight = 50) { this.cohortWidth = cohortWidth; this.pathWidth = pathWidth; this.taskWidth = taskWidth; @@ -34,31 +37,33 @@ export class RectangleLayout implements IOverviewLayout { // calculate width const gridSizeString: string = gridStyleColumns.replace(/px/g, ''); const gridSizeArray: Array = gridSizeString.split(' ').map(Number); - const width = gridSizeArray.reduce((a, b) => {return a + b;}, 0); + const width = gridSizeArray.reduce((a, b) => { + return a + b; + }, 0); // calcualte heigth const height = rows * this.rowHeight; // style container - container.style.width = width + 'px'; - container.style.height = height + 'px'; + container.style.width = `${width}px`; + container.style.height = `${height}px`; container.style.setProperty('grid-template-columns', gridStyleColumns); container.style.setProperty('grid-template-rows', gridStyleRows); } setPositionInGrid(element: HTMLDivElement, column: number, row: number) { - element.style.setProperty('grid-column', '' + this._getGridColumn(column)); - element.style.setProperty('grid-row', '' + row); + element.style.setProperty('grid-column', `${this._getGridColumn(column)}`); + element.style.setProperty('grid-row', `${row}`); } private _createGridStyleColumns(columns: number): string { let style = ''; for (let i = 1; i <= columns; i++) { if (i % 2 === 1) { - style = style + this.cohortWidth + 'px '; + style = `${style + this.cohortWidth}px `; } else { - style = style + this.pathWidth + 'px ' + this.taskWidth + 'px '; + style = `${style + this.pathWidth}px ${this.taskWidth}px `; if (i < columns) { - style = style + this.pathWidth + 'px '; + style = `${style + this.pathWidth}px `; } } } @@ -68,7 +73,7 @@ export class RectangleLayout implements IOverviewLayout { private _createGridStyleRows(rows: number): string { let style = ''; for (let i = 1; i <= rows; i++) { - style = style + this.rowHeight + 'px '; + style = `${style + this.rowHeight}px `; } return style; } @@ -86,7 +91,7 @@ export class RectangleLayout implements IOverviewLayout { // get all elements of current column const currColElem = this._layout.filter((elem) => elem.column === i); // get all elements of previous column - const prevColElem = this._layout.filter((elem) => elem.column === (i - 1)); + const prevColElem = this._layout.filter((elem) => elem.column === i - 1); // get all the different parentIDs of current column let currParentIDs = currColElem.map((elem) => elem.parentID); currParentIDs = [...new Set(currParentIDs)]; @@ -137,7 +142,7 @@ export class RectangleLayout implements IOverviewLayout { // only if // the current element is an operation and // the calculate row position is higher than the current one use the calculated one - calcRow = (currElement instanceof Task && calcRow > row) ? calcRow : row; + calcRow = currElement instanceof Task && calcRow > row ? calcRow : row; // add current element to layout const parentElementID = parentElement === null ? 'null' : parentElement.id; @@ -147,22 +152,20 @@ export class RectangleLayout implements IOverviewLayout { // set column and row for the children const childrenColumn = column + 1; const childrenRow = calcRow + i; - //const childfirstChild = i === 0; + // const childfirstChild = i === 0; layout.concat(this._assignRowAndColumn(layout, eleChildren[i], currElement, childrenColumn, childrenRow)); } - return layout; - } else { - // current element has no children - // add current element to layout - const parentElementID = parentElement === null || parentElement === undefined ? 'null' : parentElement.id; - layout.push(this._createLayoutElement(currElement.id, parentElementID, column, row)); return layout; } - } else { - return []; + // current element has no children + // add current element to layout + const parentElementID = parentElement === null || parentElement === undefined ? 'null' : parentElement.id; + layout.push(this._createLayoutElement(currElement.id, parentElementID, column, row)); + return layout; } + return []; } private _createLayoutElement(elemID: string, parentID: string, column: number, row: number): IRectLayout { @@ -170,7 +173,7 @@ export class RectangleLayout implements IOverviewLayout { elemID, parentID, column, - row + row, }; } @@ -178,10 +181,9 @@ export class RectangleLayout implements IOverviewLayout { if (elements.length > 0) { if (elements[0] instanceof Task) { return elements.sort(this._sortTasks); - } else { - return elements; - // return elements.sort(this._sortCohorts); // TODO make sort dependent on the sorting of the output cohort } + return elements; + // return elements.sort(this._sortCohorts); // TODO make sort dependent on the sorting of the output cohort } return elements; } @@ -207,5 +209,4 @@ export class RectangleLayout implements IOverviewLayout { } return 0; } - } diff --git a/src/Provenance/CohortEV.ts b/src/Provenance/CohortEV.ts index 07c4065..e862734 100644 --- a/src/Provenance/CohortEV.ts +++ b/src/Provenance/CohortEV.ts @@ -1,26 +1,37 @@ -import {ActionMetaData, ActionUtils, ICmdResult, IObjectRef, ObjectRefUtils} from 'tdp_core'; -import {CohortApp} from '../app'; -import {IElementProvJSON} from '../CohortInterfaces'; -import {CohortOverview} from '../Overview/CohortOverview'; -import {log} from '../util'; +import { ActionMetaData, ActionUtils, ICmdResult, IObjectRef, ObjectRefUtils } from 'tdp_core'; +import { CohortApp } from '../app'; +import { IElementProvJSON } from '../CohortInterfaces'; +import { CohortOverview } from '../Overview/CohortOverview'; +import { log } from '../util'; -/*********************************************** +/** ********************************************* ----- Cohort Evolution View (CohortEV) -------- -************************************************/ +*********************************************** */ // ---------------------------- // ---- Add Cohort(s) --------- // ---------------------------- -export function addOverviewCohortAction(provider: IObjectRef, providerApp: IObjectRef, newDataset: IElementProvJSON[], oldDataset: IElementProvJSON[]) { +export function addOverviewCohortAction( + provider: IObjectRef, + providerApp: IObjectRef, + newDataset: IElementProvJSON[], + oldDataset: IElementProvJSON[], +) { log.debug('Add Cohort Action'); -return ActionUtils.action(ActionMetaData.actionMeta('Add Cohort(s)', ObjectRefUtils.category.data, ObjectRefUtils.operation.create), 'addCohorts', addOverviewCohortImpl, [provider, providerApp], { - newDataset, - oldDataset - }); + return ActionUtils.action( + ActionMetaData.actionMeta('Add Cohort(s)', ObjectRefUtils.category.data, ObjectRefUtils.operation.create), + 'addCohorts', + addOverviewCohortImpl, + [provider, providerApp], + { + newDataset, + oldDataset, + }, + ); } export async function addOverviewCohortImpl(inputs: IObjectRef[], parameter: any): Promise { - log.debug('addOverviewCohortImpl', {inputs, parameter}); + log.debug('addOverviewCohortImpl', { inputs, parameter }); // get app CohortApp const app: CohortApp = await inputs[1].v; // get the overview of CohortApp @@ -33,19 +44,20 @@ export async function addOverviewCohortImpl(inputs: IObjectRef[], parameter } return { - inverse: addOverviewCohortAction(inputs[0], inputs[1], parameter.oldDataset, parameter.newDataset) + inverse: addOverviewCohortAction(inputs[0], inputs[1], parameter.oldDataset, parameter.newDataset), }; } - function setChtCounter(parameter: any, app: CohortApp) { const numbers = parameter.newDataset .filter((e) => e.type === 'Cohort') - .map((e) => parseInt( - e.label.split(' ')[0] // extraxt #XY part - .split('#')[1] // remove hash - , - 10) + .map((e) => + parseInt( + e.label + .split(' ')[0] // extraxt #XY part + .split('#')[1], // remove hash + 10, + ), ) .filter(Number.isFinite); // remove cohorts without number (i.e., root) const chts = Math.max(...numbers, 0) + 1; // continue with next number @@ -56,16 +68,27 @@ function setChtCounter(parameter: any, app: CohortApp) { // ---------------------------- // ---- Remove Cohort(s) ------ // ---------------------------- -export function removeOverviewCohortAction(provider: IObjectRef, providerApp: IObjectRef, newDataset: IElementProvJSON[], oldDataset: IElementProvJSON[]) { +export function removeOverviewCohortAction( + provider: IObjectRef, + providerApp: IObjectRef, + newDataset: IElementProvJSON[], + oldDataset: IElementProvJSON[], +) { log.debug('Remove Cohort Action'); - return ActionUtils.action(ActionMetaData.actionMeta('Remove Cohort(s)/Operation(s)', ObjectRefUtils.category.data, ObjectRefUtils.operation.remove), 'removeCohorts', removeOverviewCohortImpl, [provider, providerApp], { - newDataset, - oldDataset - }); + return ActionUtils.action( + ActionMetaData.actionMeta('Remove Cohort(s)/Operation(s)', ObjectRefUtils.category.data, ObjectRefUtils.operation.remove), + 'removeCohorts', + removeOverviewCohortImpl, + [provider, providerApp], + { + newDataset, + oldDataset, + }, + ); } export async function removeOverviewCohortImpl(inputs: IObjectRef[], parameter: any): Promise { - log.debug('removeOverviewCohortImpl', {inputs, parameter}); + log.debug('removeOverviewCohortImpl', { inputs, parameter }); // get app CohortApp const app: CohortApp = await inputs[1].v; // get the overview of CohortApp @@ -78,7 +101,6 @@ export async function removeOverviewCohortImpl(inputs: IObjectRef[], parame } return { - inverse: removeOverviewCohortAction(inputs[0], inputs[1], parameter.oldDataset, parameter.newDataset) + inverse: removeOverviewCohortAction(inputs[0], inputs[1], parameter.oldDataset, parameter.newDataset), }; } - diff --git a/src/Provenance/General.ts b/src/Provenance/General.ts index a2af63a..7d075e8 100644 --- a/src/Provenance/General.ts +++ b/src/Provenance/General.ts @@ -1,23 +1,28 @@ -import {ActionMetaData, ActionUtils, ICmdResult, IObjectRef, ObjectRefUtils} from 'tdp_core'; -import {CohortApp} from '../app'; -import {IElementProvJSON, IElementProvJSONCohort} from '../CohortInterfaces'; -import {log} from '../util'; -import {IEntitySourceConfig} from '../utilIdTypes'; +import { ActionMetaData, ActionUtils, ICmdResult, IObjectRef, ObjectRefUtils } from 'tdp_core'; +import { CohortApp } from '../app'; +import { IElementProvJSON, IElementProvJSONCohort } from '../CohortInterfaces'; +import { log } from '../util'; +import { IEntitySourceConfig } from '../utilIdTypes'; - -/****************************** +/** **************************** ---------- GENERAL ---------- -*******************************/ +****************************** */ // ---------------------------- // ---- DATASET --------------- // ---------------------------- export function setDatasetAction(provider: IObjectRef, newDataset: IDatasetDesc, oldDataset: IDatasetDesc) { log.debug('Create setDataset Action'); - return ActionUtils.action(ActionMetaData.actionMeta('Change Dataset', ObjectRefUtils.category.data, ObjectRefUtils.operation.update), 'chtSetDataset', setDatasetImpl, [provider], { - newDataset, - oldDataset - }); + return ActionUtils.action( + ActionMetaData.actionMeta('Change Dataset', ObjectRefUtils.category.data, ObjectRefUtils.operation.update), + 'chtSetDataset', + setDatasetImpl, + [provider], + { + newDataset, + oldDataset, + }, + ); } export async function setDatasetImpl(inputs: IObjectRef[], parameter: any): Promise { @@ -25,11 +30,10 @@ export async function setDatasetImpl(inputs: IObjectRef[], parameter: const app: CohortApp = await inputs[0].v; await app.setDataset(parameter.newDataset); return { - inverse: setDatasetAction(inputs[0], parameter.oldDataset, parameter.newDataset) + inverse: setDatasetAction(inputs[0], parameter.oldDataset, parameter.newDataset), }; } - // Compressor function -> commented out due to problems with the add/remove cohort actions // export function compressChtSetDataset(path: ActionNode[]) { // return Compression.lastOnly(path, 'chtSetDataset', (p: ActionNode) => `${p.requires[0].id}_${p.parameter.newDataset}`); @@ -47,4 +51,3 @@ export interface IDatasetDesc { rootCohort: IElementProvJSONCohort; chtOverviewElements: IElementProvJSON[]; } - diff --git a/src/TaskRepresentations.ts b/src/TaskRepresentations.ts index 86ee4cb..10d4bd3 100644 --- a/src/TaskRepresentations.ts +++ b/src/TaskRepresentations.ts @@ -1,16 +1,22 @@ -import {IRectTaskRep} from './CohortInterfaces'; -import {Task} from './Tasks'; -import {TaskRemoveEvent} from './utilCustomEvents'; +import { IRectTaskRep } from './CohortInterfaces'; +import { Task } from './Tasks'; +import { TaskRemoveEvent } from './utilCustomEvents'; export class RectTaskRep implements IRectTaskRep { id: string; + label: string; private _representation: HTMLDivElement; + private _repClone: HTMLDivElement; + private _height: number; + private _width: number; - image: string; //url to the image for the representation + + image: string; // url to the image for the representation + private _removeButton: HTMLAnchorElement; constructor(private task: Task, height: number, width: number) { @@ -31,9 +37,9 @@ export class RectTaskRep implements IRectTaskRep { const container: HTMLDivElement = document.createElement('div'); container.className = 'rectTask'; container.id = this.id; - container.style.width = '' + width; + container.style.width = `${width}`; - const labelHeight = Math.round((height * 0.4) * 100) / 100; + const labelHeight = Math.round(height * 0.4 * 100) / 100; const imgHeight = height - labelHeight; const fontSize = labelHeight < 15 ? labelHeight - 1 : 14; @@ -47,20 +53,19 @@ export class RectTaskRep implements IRectTaskRep { // create image div const divImage: HTMLDivElement = document.createElement('div'); divImage.className = 'rectTask-image'; - divImage.style.height = imgHeight + 'px'; - //create fontawesome icon + divImage.style.height = `${imgHeight}px`; + // create fontawesome icon const iIcon: HTMLElement = document.createElement('i'); divImage.appendChild(iIcon); - container.appendChild(divImage); // create label div const divLabel: HTMLDivElement = document.createElement('div'); divLabel.className = 'rectTask-label'; - divLabel.style.height = labelHeight + 'px'; - divLabel.style.lineHeight = labelHeight + 'px'; - divLabel.style.fontSize = fontSize + 'px'; + divLabel.style.height = `${labelHeight}px`; + divLabel.style.lineHeight = `${labelHeight}px`; + divLabel.style.fontSize = `${fontSize}px`; container.appendChild(divLabel); // show remove icon on hover @@ -111,7 +116,7 @@ export class RectTaskRep implements IRectTaskRep { private _createClone(original: HTMLDivElement): HTMLDivElement { const clone = original.cloneNode(true) as HTMLDivElement; - clone.id = 'clone_' + this.id; + clone.id = `clone_${this.id}`; clone.style.setProperty('grid-area', null); return clone; @@ -140,11 +145,11 @@ export class RectTaskRep implements IRectTaskRep { public setImage(image: string) { this.image = image; // original - const divImage = (this._representation.querySelector('div.rectTask-image') as HTMLDivElement); + const divImage = this._representation.querySelector('div.rectTask-image') as HTMLDivElement; divImage.classList.add(image); (divImage.querySelector('i') as HTMLElement).classList.add(...this.getIconClass(image)); // // clone - const divImageClone = (this._repClone.querySelector('div.rectTask-image') as HTMLDivElement); + const divImageClone = this._repClone.querySelector('div.rectTask-image') as HTMLDivElement; divImageClone.classList.add(image); (divImageClone.querySelector('i') as HTMLElement).classList.add(...this.getIconClass(image)); } @@ -152,10 +157,10 @@ export class RectTaskRep implements IRectTaskRep { private getIconClass(image: string): string[] { if (image === 'filter') { return ['fas', 'fa-filter']; - } else if (image === 'split') { + } + if (image === 'split') { return ['fas', 'fa-share-alt']; - } else { - return []; } + return []; } } diff --git a/src/Tasks.ts b/src/Tasks.ts index df4c7e0..ba039f3 100644 --- a/src/Tasks.ts +++ b/src/Tasks.ts @@ -1,16 +1,23 @@ -import {IAllFilters, IParams} from 'tdp_core'; -import {ElementProvType, IElement, IElementProvJSON, IElementProvJSONTask, ITask, ITaskRep, TaskType} from './CohortInterfaces'; -import {IAttribute, toAttribute} from './data/Attribute'; -import {deepCopy, log} from './util'; +import { IAllFilters, IParams } from 'tdp_core'; +import { ElementProvType, IElement, IElementProvJSON, IElementProvJSONTask, ITask, ITaskRep, TaskType } from './CohortInterfaces'; +import { IAttribute, toAttribute } from './data/Attribute'; +import { deepCopy, log } from './util'; export abstract class Task implements ITask { id: string; + label: string; + type: TaskType; + parents: Array; + children: Array; + representation: ITaskRep; + attributes: IAttribute[]; + creationDate: number; constructor(id: string, label: string, attributes: IAttribute[]) { @@ -26,9 +33,7 @@ export abstract class Task implements ITask { abstract toProvenanceJSON(): IElementProvJSONTask; } - export class TaskFilter extends Task { - constructor(id: string, label: string, attributes: IAttribute[]) { super(id, label, attributes); this.type = TaskType.Filter; @@ -42,14 +47,13 @@ export class TaskFilter extends Task { parent: this.parents.map((elem) => elem.id), children: this.children.map((elem) => elem.id), attrAndValues: { - attributes: this.attributes.map((elem) => elem.toJSON()) - } + attributes: this.attributes.map((elem) => elem.toJSON()), + }, }; } } export class TaskSplit extends Task { - constructor(id: string, label: string, attributes: IAttribute[]) { super(id, label, attributes); this.type = TaskType.Split; @@ -63,8 +67,8 @@ export class TaskSplit extends Task { parent: this.parents.map((elem) => elem.id), children: this.children.map((elem) => elem.id), attrAndValues: { - attributes: this.attributes.map((elem) => elem.toJSON()) - } + attributes: this.attributes.map((elem) => elem.toJSON()), + }, }; } } @@ -77,29 +81,28 @@ export function createTaskFromProvJSON(config: IElementProvJSON): Task { if (config.type === ElementProvType.TaskFilter) { return new TaskFilter(config.id, config.label, attributes); - } else { - return new TaskSplit(config.id, config.label, attributes); } + return new TaskSplit(config.id, config.label, attributes); } function mergerAllFilterPart(filterType: FilterType, existingFilter: IParams, newFilter: IParams): IParams { let mergedFilter = deepCopy(existingFilter); // const currType : FilterType = FilterType.normal; - let filterContradiction: boolean = false; + let filterContradiction = false; // go through all attribuets of the new filter for (const attr in newFilter) { // check if attribute exists in the new filter if (Object.prototype.hasOwnProperty.call(newFilter, attr)) { // check if attribute exists in the existing filter if (Object.prototype.hasOwnProperty.call(existingFilter, attr)) { - const newVal = newFilter[attr]; //current value for attribute - const existVal = existingFilter[attr]; //current value for attribute + const newVal = newFilter[attr]; // current value for attribute + const existVal = existingFilter[attr]; // current value for attribute if (filterType === FilterType.normal) { // convert newVal to an array of values - const newValArray = Array.isArray(newVal) ? newVal as string[] | number[] | boolean[] : new Array(newVal as string | number | boolean); + const newValArray = Array.isArray(newVal) ? (newVal as string[] | number[] | boolean[]) : new Array(newVal as string | number | boolean); // convert existVal to an array of values - const existValArray = Array.isArray(existVal) ? existVal as string[] | number[] | boolean[] : new Array(existVal as string | number | boolean); + const existValArray = Array.isArray(existVal) ? (existVal as string[] | number[] | boolean[]) : new Array(existVal as string | number | boolean); // if all new values are part of the existing values, then the filter is OK for (const nv of newValArray) { if (!existValArray.includes(nv)) { @@ -107,7 +110,8 @@ function mergerAllFilterPart(filterType: FilterType, existingFilter: IParams, ne } } // no filter contradiction -> new filter values can be used - if (!filterContradiction) { // outside of for-loop + if (!filterContradiction) { + // outside of for-loop mergedFilter[attr] = newFilter[attr]; } } else if (filterType === FilterType.lt || filterType === FilterType.lte) { @@ -156,7 +160,7 @@ export function mergeTwoAllFilters(existingFilter: IAllFilters, newFilter: IAllF lt, lte, gt, - gte + gte, }; } } @@ -169,5 +173,5 @@ enum FilterType { lt, lte, gt, - gte + gte, } diff --git a/src/Taskview/SearchBar.ts b/src/Taskview/SearchBar.ts index 28bfba1..1f67052 100644 --- a/src/Taskview/SearchBar.ts +++ b/src/Taskview/SearchBar.ts @@ -9,30 +9,49 @@ import {niceName} from '../utilLabels'; export class SearchBar { private _container: HTMLDivElement; + private _serachBarInputDiv: HTMLDivElement; + private _searchBarInput: HTMLInputElement; + private _searchBarPlaceholder: HTMLDivElement; + private _optionContainerWrapper: HTMLDivElement; + private _optionContainer: HTMLDivElement; + private _optionList: HTMLDivElement; + private _optionDetail: HTMLDivElement; + private _optionFocusIndex: number; + private _pageSize: number; + private _pageNumberGenes: number; + private _moreGenes: boolean; + private _databaseColumns: IServerColumn[]; + private _panelAnnotations: any[]; + private _waitForMoreOptions: boolean; + private _optionWrapperCSSClass: string; + private _databaseConfig: { - database: string, - view: string + database: string; + view: string; }; + private _geneDataTypes: Array; + private _eventListenerCloseOptionWindow: (e: any) => void; + private _geneHoverOptionId: string; - constructor(parentContainer: HTMLDivElement, database: string, view: string, optionWrapperCSSClass: string = 'standard') { + constructor(parentContainer: HTMLDivElement, database: string, view: string, optionWrapperCSSClass = 'standard') { this._pageSize = 30; this._pageNumberGenes = 0; this._moreGenes = false; @@ -42,13 +61,13 @@ export class SearchBar { this._optionWrapperCSSClass = optionWrapperCSSClass; this._databaseConfig = { database, - view + view, }; // get all needed gene data types (e.g. Copy Number) this._geneDataTypes = this._getGeneDataTypes(view); - log.debug('SearchBar Configuration - with the database and view: ', {database, view, pageSize: this._pageSize}); + log.debug('SearchBar Configuration - with the database and view: ', { database, view, pageSize: this._pageSize }); // create placeholder this._createSearchBarPlaceholder(); @@ -149,23 +168,31 @@ export class SearchBar { try { const options = await this._getAllPossibleOptions(text); - if (this.searchID === thisSearch) { // check if the retrieved options are still needed + if (this.searchID === thisSearch) { + // check if the retrieved options are still needed loading.remove(); // a follow up call to this method would have already removed the loading indicator and added a new one if (options.length > 0) { this._createAllOptions(options); } else { - this._optionList.insertAdjacentHTML('afterbegin', ` + this._optionList.insertAdjacentHTML( + 'afterbegin', + `

No attributes were found with ${text} in their name.

- `); + `, + ); } } } catch { - if (this.searchID === thisSearch) { // check if the retrieved options are still needed + if (this.searchID === thisSearch) { + // check if the retrieved options are still needed loading.remove(); - this._optionList.insertAdjacentHTML('afterbegin', ` + this._optionList.insertAdjacentHTML( + 'afterbegin', + `

Loading available attributes failed. Please check your connection and try again.

- `); + `, + ); } } } @@ -189,15 +216,13 @@ export class SearchBar { select(this._optionList) .selectAll('div') .data(data) - .enter() // go through all groups + .enter() // go through all groups .append('div') .attr('class', 'option-group option-element') .each((d, i, nodes) => { const group = select(nodes[i]); // add group header - group.append('div') - .attr('class', 'option-group-header option-element') - .html(d.groupLabel); + group.append('div').attr('class', 'option-group-header option-element').html(d.groupLabel); // go through all options for group this._addOptionsToGroup(group.node(), d); }); @@ -224,7 +249,8 @@ export class SearchBar { }); select(groupElement) - .selectAll('div.option').data(options.data, (d: any) => d.optionId) + .selectAll('div.option') + .data(options.data, (d: any) => d.optionId) .enter() .append('div') .attr('class', 'option option-element') @@ -239,9 +265,8 @@ export class SearchBar { } } return noOfSub; - } else { // other wise set to null -> no dataset.subtypes will exits - return null; - } + } // other wise set to null -> no dataset.subtypes will exits + return null; }) .classed('option-selected', (d) => { // check if a option is selected (= badge), then add class to highlight @@ -254,7 +279,7 @@ export class SearchBar { .html((d) => { let text = d.optionText; if (d.optionType === 'gene') { - text = text + `

${d.optionId}
`; + text += `
${d.optionId}
`; } return text; }) @@ -301,7 +326,7 @@ export class SearchBar { } private async _getAllPossibleOptions(text: string): Promise { - //check if databse column were loaded, otherwise do it now + // check if databse column were loaded, otherwise do it now if (this._databaseColumns === null) { // get the database columns await this._getDatabaseColumns(this._databaseConfig.database, this._databaseConfig.view); @@ -320,7 +345,7 @@ export class SearchBar { this._panelAnnotations = await this._getPanelAnnotation(); } // log.debug('Panels: ', this._panelAnnotations); - const groupPanelLabel = niceName(this._databaseConfig.view) + ' Panel Annotation'; + const groupPanelLabel = `${niceName(this._databaseConfig.view)} Panel Annotation`; const filteredPanels = this._panelAnnotations.filter((a) => a.id.toLowerCase().indexOf(text.toLowerCase()) !== -1); panels = this._createSearchBarGroup(filteredPanels, groupPanelLabel, 'panel', 'id', 'id'); } @@ -350,11 +375,11 @@ export class SearchBar { private _createSearchBarGroup(data: any[], groupLabelText: string, type: OptionType, textProperty: string, idProperty: string): ISearchBarGroup { const group: ISearchBarGroup = { groupLabel: groupLabelText, - data: data.map((a: (IdTextPair | IServerColumn)) => { + data: data.map((a: IdTextPair | IServerColumn) => { const text = a[textProperty] === null ? '' : niceName(a[textProperty]); const oId: string = a[idProperty]; return this._createOption(oId, type, text, a); - }) + }), }; return group; } @@ -363,7 +388,7 @@ export class SearchBar { const option: IOption = { optionId: id, optionType: type, - optionText: text + optionText: text, }; switch (type) { @@ -374,10 +399,10 @@ export class SearchBar { sAttrId: option.optionId, attrOption: '', spAttribute: spAttr, - serverColumn: data as IServerColumn + serverColumn: data as IServerColumn, }; } else { - (option as IServerColumnOption).optionData = {serverColumn: data as IServerColumn}; + (option as IServerColumnOption).optionData = { serverColumn: data as IServerColumn }; } break; @@ -387,7 +412,7 @@ export class SearchBar { case 'panel': (option as IPanelOption).optionData = { description: data.description, - species: data.species + species: data.species, }; break; } @@ -399,9 +424,9 @@ export class SearchBar { this._pageNumberGenes += 1; const addOptions = await this._getAdditionalOptionsFromGenePage(text, this._pageNumberGenes); const optionGroupHeaders = this._optionList.querySelectorAll('.option-group-header'); - const targetGroups = Array.from(optionGroupHeaders).filter((a) => (a.innerHTML === addOptions.groupLabel)); - const targetGroup = targetGroups.length > 0 ? targetGroups[0].parentElement as HTMLDivElement : null; - log.debug('group to add: ', {targetGroup, addOptions}); + const targetGroups = Array.from(optionGroupHeaders).filter((a) => a.innerHTML === addOptions.groupLabel); + const targetGroup = targetGroups.length > 0 ? (targetGroups[0].parentElement as HTMLDivElement) : null; + log.debug('group to add: ', { targetGroup, addOptions }); if (targetGroup !== null) { // add options to the group this._addOptionsToGroup(targetGroup, addOptions); @@ -419,19 +444,19 @@ export class SearchBar { // get all available panels private async _getPanelAnnotation(): Promise { - const view = this._databaseConfig.view + '_panel'; + const view = `${this._databaseConfig.view}_panel`; const panels = await RestBaseUtils.getTDPData(this._databaseConfig.database, view); return panels; } // get genes of a certain page with a query value - private _getGenePage(query: string, page: number): Promise<{more: boolean, items: Readonly[]}> { + private _getGenePage(query: string, page: number): Promise<{ more: boolean; items: Readonly[] }> { return RestBaseUtils.getTDPLookup('publicdb', 'gene_gene_items', { column: 'symbol', species: 'human', query, page, - limit: this._pageSize + limit: this._pageSize, }); } @@ -445,7 +470,7 @@ export class SearchBar { const opt = { badgeName: currData.optionText, optionId: currData.optionId, - data: currData + data: currData, }; // create badge for the seach bar @@ -464,7 +489,8 @@ export class SearchBar { } // set classes for un/selected options and (not) close option conatiern depending on the Ctrl-key - if (target.classList.contains('option-selected')) { //already selected -> deselect + if (target.classList.contains('option-selected')) { + // already selected -> deselect log.debug('remove item: ', existingSelectedItem); if (e.ctrlKey || e.altKey) { target.classList.remove('option-selected'); @@ -479,9 +505,10 @@ export class SearchBar { } this._showOCW(false); // close option container } - this._addAndRemoveClearAll(); // add/remove the clearAll button + this._addAndRemoveClearAll(); // add/remove the clearAll button this._setPlaceholder(); - } else { // not selected -> select + } else { + // not selected -> select log.debug('add item: ', sElem); if (e.ctrlKey || e.altKey) { target.classList.add('option-selected'); @@ -526,7 +553,8 @@ export class SearchBar { const geneOption = this._optionList.querySelector(`.option[data-optid="${opttionData.optionId}"]`) as HTMLDivElement; const currNoOfSubTypes = Number(geneOption.dataset.subtypes); // set classes for un/selected options and (not) close option conatiern depending on the Ctrl-key - if (target.classList.contains('option-selected')) { //already selected -> deselect + if (target.classList.contains('option-selected')) { + // already selected -> deselect log.debug('remove item: ', existingSelectedItem); if (e.ctrlKey || e.altKey) { target.classList.remove('option-selected'); @@ -543,13 +571,14 @@ export class SearchBar { this._showOCW(false); // close option container } // remove gene hihglighting if no subdatatypes are selected - geneOption.dataset.subtypes = '' + (currNoOfSubTypes - 1); - if ((currNoOfSubTypes - 1) === 0) { + geneOption.dataset.subtypes = `${currNoOfSubTypes - 1}`; + if (currNoOfSubTypes - 1 === 0) { geneOption.classList.remove('option-selected'); } - this._addAndRemoveClearAll(); // add/remove the clearAll button + this._addAndRemoveClearAll(); // add/remove the clearAll button this._setPlaceholder(); - } else { // not selected -> select + } else { + // not selected -> select log.debug('add item: ', sElem); if (e.ctrlKey || e.altKey) { target.classList.add('option-selected'); @@ -562,8 +591,8 @@ export class SearchBar { this._showOCW(false); // close option container } // add gene hihglighting if one/more subdatatypes are selected - geneOption.dataset.subtypes = '' + (currNoOfSubTypes + 1); - if ((currNoOfSubTypes + 1) > 0) { + geneOption.dataset.subtypes = `${currNoOfSubTypes + 1}`; + if (currNoOfSubTypes + 1 > 0) { geneOption.classList.add('option-selected'); } select(sElem).datum(dataForBadge); @@ -580,7 +609,6 @@ export class SearchBar { this._optionDetail.appendChild(detail); } - private _createSearchBarPlaceholder() { const elem = document.createElement('div'); elem.className = 'search-bar-placeholder'; @@ -660,17 +688,16 @@ export class SearchBar { // adds the eventlistener for the document document.addEventListener('click', this._eventListenerCloseOptionWindow); - } private _keyboardControl(e: KeyboardEvent) { - log.debug('keyboardControl: ', {key: e.key, focusIndex: this._optionFocusIndex}); + log.debug('keyboardControl: ', { key: e.key, focusIndex: this._optionFocusIndex }); if (e.key === 'Down' || e.key === 'ArrowDown') { - //arrow DOWN key + // arrow DOWN key this._optionFocusIndex++; this._setArrowKeyFocus(); } else if (e.key === 'Up' || e.key === 'ArrowUp') { - //arrow UP key + // arrow UP key this._optionFocusIndex--; this._setArrowKeyFocus(); } else if (e.key === 'Enter') { @@ -680,7 +707,7 @@ export class SearchBar { if (this._optionFocusIndex > -1) { const optionFocus = this._optionList.querySelector('.option.option-focus'); if (optionFocus !== null) { - optionFocus.dispatchEvent(new MouseEvent('click', {ctrlKey: e.ctrlKey || e.altKey})); + optionFocus.dispatchEvent(new MouseEvent('click', { ctrlKey: e.ctrlKey || e.altKey })); } } } else if (e.key === 'Esc' || e.key === 'Escape') { @@ -690,10 +717,15 @@ export class SearchBar { // remove the option container wrapper, with css class private _closeOCWCheck(element) { - if (element !== null && !element.classList.contains('option-element') && - element !== this._optionList && element !== this._container && - element !== this._searchBarInput && element !== this._optionContainer && - element !== this._optionDetail) { + if ( + element !== null && + !element.classList.contains('option-element') && + element !== this._optionList && + element !== this._container && + element !== this._searchBarInput && + element !== this._optionContainer && + element !== this._optionDetail + ) { this._showOCW(false); } } @@ -710,14 +742,14 @@ export class SearchBar { const options = this._optionList.querySelectorAll('.option:not([hidden])'); this._optionFocusIndex = this._optionFocusIndex >= options.length ? 0 : this._optionFocusIndex; this._optionFocusIndex = this._optionFocusIndex < 0 ? options.length - 1 : this._optionFocusIndex; - log.debug('Arrow-Key action -> new index: ', {focusIndex: this._optionFocusIndex}); + log.debug('Arrow-Key action -> new index: ', { focusIndex: this._optionFocusIndex }); // set focus options[this._optionFocusIndex].classList.add('option-focus'); - /*// generate detail information + /* // generate detail information clearDetail(); const currData = persons.filter((a) => a.name === options[optionFocusIndex].dataset.name); //not really elegant const detail = createDetail(currData[0]); - optionDetail.appendChild(detail);*/ + optionDetail.appendChild(detail); */ // set scroll offset const optionDim = options[this._optionFocusIndex].getBoundingClientRect(); const spaceBottom = 3 * optionDim.height; @@ -738,14 +770,12 @@ export class SearchBar { if (diffTop < spaceTop) { this._optionList.scrollTop = currScrollTop - (spaceTop - diffTop); } - - } private async _scrollPagination(e: Event) { if (this._moreGenes && !this._waitForMoreOptions) { const optListdim = this._optionList.getBoundingClientRect(); - const optdim = this._optionList.querySelector('.option') === null ? {height: 0} : this._optionList.querySelector('.option').getBoundingClientRect(); + const optdim = this._optionList.querySelector('.option') === null ? { height: 0 } : this._optionList.querySelector('.option').getBoundingClientRect(); const optHeight = optdim.height; // log.debug('scroll now, event: ',e,optHeight); // log.debug('scrollTop: ', this._optionList.scrollTop, ' | scrollHeight: ',this._optionList.scrollHeight,'| optLIst height: ',optListdim.height); @@ -759,7 +789,6 @@ export class SearchBar { } } - // show/hide the options for the search field private _showOCW(show: boolean) { if (show) { @@ -788,13 +817,12 @@ export class SearchBar { // set sie and position of the option continer wrapper private _setSizeAndPositionOfOCW() { const containerDim = this._container.getBoundingClientRect(); - this._optionContainerWrapper.style.width = containerDim.width + 'px'; - this._optionContainerWrapper.style.left = containerDim.left + 'px'; - this._optionContainerWrapper.style.top = containerDim.bottom + 'px'; + this._optionContainerWrapper.style.width = `${containerDim.width}px`; + this._optionContainerWrapper.style.left = `${containerDim.left}px`; + this._optionContainerWrapper.style.top = `${containerDim.bottom}px`; // log.debug('dimensions: ', {searchBarContainer: containerDim, optionContainer: this._optionContainerWrapper.getBoundingClientRect()}); } - private _setPlaceholder() { const inputTextLength = this._searchBarInput.value.length; const selectedOptionLength = this.getSelectedOptions().length; @@ -805,17 +833,15 @@ export class SearchBar { if (!existsPlaceholder) { this._serachBarInputDiv.appendChild(this._searchBarPlaceholder); } - } else { - if (existsPlaceholder) { - this._serachBarInputDiv.removeChild(this._searchBarPlaceholder); - } + } else if (existsPlaceholder) { + this._serachBarInputDiv.removeChild(this._searchBarPlaceholder); } } // set the width of the input element depending on text in it private _setSearchBarInputWidth() { const textLength = this._searchBarInput.value.length; - this._searchBarInput.style.width = (textLength + 2) + 'em'; + this._searchBarInput.style.width = `${textLength + 2}em`; this._setPlaceholder(); } @@ -852,9 +878,8 @@ export class SearchBar { detail = this._createPanelDetail(data as IPanelOption); } - - detail.addEventListener('mouseenter', () => parent.style.backgroundColor = colors.searchbarHoverColor); - detail.addEventListener('mouseleave', () => parent.style.backgroundColor = ''); + detail.addEventListener('mouseenter', () => (parent.style.backgroundColor = colors.searchbarHoverColor)); + detail.addEventListener('mouseleave', () => (parent.style.backgroundColor = '')); return detail; } @@ -866,7 +891,7 @@ export class SearchBar { const badgeIds: Array = Array.from(badges).map((a) => { return a.dataset.optid; }); - const optionId = data.optionId; + const { optionId } = data; // label in detail container to see what gene is currently shown select(detail) .append('div') @@ -880,27 +905,31 @@ export class SearchBar { select(detail) .selectAll('div.detail-info-group') .data(this._geneDataTypes) - .enter() // go through all groups + .enter() // go through all groups .append('div') .attr('class', 'detail-info-group option-element') .each((d, i, nodes) => { const group = select(nodes[i]); // add group header - group.append('div') - .attr('class', 'detail-info-group-header option-element') - .html(d.name); + group.append('div').attr('class', 'detail-info-group-header option-element').html(d.name); // go through all options for group - group.selectAll('div.detail-info-option').data(d.dataSubtypes) + group + .selectAll('div.detail-info-option') + .data(d.dataSubtypes) .enter() .append('div') .attr('class', 'detail-info-option option-element') - .attr('data-optid', (d: IDataSubtypeConfig) => {return this._composeGeneDataTypeOptId(optionId, d.id);}) - .classed('option-selected', (d: IDataSubtypeConfig) => {return badgeIds.indexOf(this._composeGeneDataTypeOptId(optionId, d.id)) !== -1;}) + .attr('data-optid', (d: IDataSubtypeConfig) => { + return this._composeGeneDataTypeOptId(optionId, d.id); + }) + .classed('option-selected', (d: IDataSubtypeConfig) => { + return badgeIds.indexOf(this._composeGeneDataTypeOptId(optionId, d.id)) !== -1; + }) .html((d: IDataSubtypeConfig) => d.name) .on('click', (event, d: IDataSubtypeConfig) => { const badgeName = this._composeGeneDataTypeName(data.optionText, d.name); const badgeData = deepCopy(data); - badgeData.optionData = {subType: d, type: (d as any).dataTypeId}; + badgeData.optionData = { subType: d, type: (d as any).dataTypeId }; this._clickHandlerDetail(data, badgeData, badgeName, event as MouseEvent, event.currentTarget as HTMLElement); // indicate an change in the options this._container.dispatchEvent(new CustomEvent('optionchange')); @@ -910,11 +939,11 @@ export class SearchBar { } private _composeGeneDataTypeName(gene: string, dataType: string): string { - return gene + ': ' + dataType; + return `${gene}: ${dataType}`; } private _composeGeneDataTypeOptId(geneId: string, dataTypeId: string): string { - return geneId + ':' + dataTypeId; + return `${geneId}:${dataTypeId}`; } private _createPanelDetail(option: IPanelOption): HTMLDivElement { @@ -924,8 +953,7 @@ export class SearchBar { detailText.classList.add('option-element'); detail.appendChild(detailText); detailText.innerHTML = - 'ID: ' + option.optionId + '
' + - 'Description: ' + option.optionData.description; + `ID: ${option.optionId}
` + `Description: ${option.optionData.description}`; return detail; } @@ -940,32 +968,34 @@ export class SearchBar { const badgeIds: Array = Array.from(badges).map((a) => { return a.dataset.optid; }); - const optionId = option.optionId; + const { optionId } = option; // label in detail container to see what gene is currently shown - select(detail).append('div') - .attr('class', 'detail-info-label option-element') - .html(option.optionText); + select(detail).append('div').attr('class', 'detail-info-label option-element').html(option.optionText); // text for the attribute - select(detail).append('div') + select(detail) + .append('div') .attr('class', 'detail-info-text option-element') .html(`Treatment consists of a list of REGIMENs, each has one or multiple AGENTs`); // TODO #427 move into spAttribtue class - - select(detail).selectAll('div.detail-info-option').data(spAttr.options) + select(detail) + .selectAll('div.detail-info-option') + .data(spAttr.options) .enter() .append('div') .attr('class', 'detail-info-option option-element') .attr('data-optid', (d) => d.id) - .classed('option-selected', (d) => {return badgeIds.indexOf(d.id) !== -1;}) + .classed('option-selected', (d) => { + return badgeIds.indexOf(d.id) !== -1; + }) .html((d) => d.name) .on('click', (event, d) => { const badgeName = `${option.optionText}:${d.name}`; const badgeData = deepCopy(option); - badgeData.optionData = {sAttrId: option.optionId, attrOption: d.id, spAttribute: spAttr, serverColumn: option.optionData.serverColumn}; + badgeData.optionData = { sAttrId: option.optionId, attrOption: d.id, spAttribute: spAttr, serverColumn: option.optionData.serverColumn }; this._clickHandlerDetail(option, badgeData, badgeName, event as MouseEvent, event.currentTarget as HTMLElement); // this._clickHandlerDetail(data as IScoreOption, (d as any).dataTypeId, d, badgeName, event as MouseEvent, nodes[i] as HTMLElement); // indicate an change in the options - log.debug('click spAttribute option: ', {oprtionId: option.optionId, badgeData}); + log.debug('click spAttribute option: ', { oprtionId: option.optionId, badgeData }); this._container.dispatchEvent(new CustomEvent('optionchange')); }); @@ -979,10 +1009,10 @@ export class SearchBar { detailText.classList.add('option-element'); detail.appendChild(detailText); detailText.innerHTML = - 'Column: ' + option.optionData.serverColumn.column + '
' + - 'Label: ' + niceName(option.optionText) + '
' + - 'Type: ' + option.optionType + '
' + - 'Text: ' + option.optionText; + `Column: ${option.optionData.serverColumn.column}
` + + `Label: ${niceName(option.optionText)}
` + + `Type: ${option.optionType}
` + + `Text: ${option.optionText}`; return detail; } @@ -996,7 +1026,7 @@ export class SearchBar { } } - //remove the selected items in the search field + // remove the selected items in the search field private _removeAllSelectedItems() { if (this._container) { const badges = this._container.querySelectorAll('.selected-option-badge'); @@ -1013,11 +1043,10 @@ export class SearchBar { // add or remove the clear all button, if selected exist or not private _addAndRemoveClearAll() { const badges = this._container.querySelectorAll('.selected-option-badge'); - //log.debug('items in searchBarContainer', items); + // log.debug('items in searchBarContainer', items); if (badges.length > 0) { const clearAll = this._container.querySelectorAll('.clear-all'); if (clearAll.length === 0) { - const divClearAll = document.createElement('div'); divClearAll.className = 'clear-all'; divClearAll.title = 'Remove all'; @@ -1057,7 +1086,6 @@ export class SearchBar { } } - export interface ISearchBarGroup { groupLabel: string; data: Array; @@ -1065,7 +1093,6 @@ export interface ISearchBarGroup { export type OptionType = 'dbc' | 'gene' | 'panel'; - export interface IOption { // id: string; optionId: string; // e.g. gender or ensg00000141510 @@ -1078,12 +1105,11 @@ export interface IOption { export interface IPanelOption extends IOption { optionData: { - description: string // e.g. "Cancer Cell Line Encyclopedia" + description: string; // e.g. "Cancer Cell Line Encyclopedia" species: string; // e.g. human }; } - export interface IScoreOption extends IOption { optionData: { type: ScoreType; // id of = IDataTypeConfig; diff --git a/src/Taskview/SearchColumn.ts b/src/Taskview/SearchColumn.ts index e8bf1c8..c6c4b69 100644 --- a/src/Taskview/SearchColumn.ts +++ b/src/Taskview/SearchColumn.ts @@ -1,38 +1,47 @@ import {select} from 'd3v7'; import * as $ from 'jquery'; import tippy from 'tippy.js'; -import {Cohort} from '../Cohort'; -import {IAttribute, toAttribute} from '../data/Attribute'; +import { Cohort } from '../Cohort'; +import { IAttribute, toAttribute } from '../data/Attribute'; import searchHtml from '../templates/SearchColumn.html'; // webpack imports html to variable -import {log} from '../util'; -import {SearchBar} from './SearchBar'; -import {ATask, TaskCloseEvent, TASK_CLOSE_EVENT_TYPE} from './tasks/ATask'; -import {TASKLIST} from './tasks/TaskList'; +import { log } from '../util'; +import { SearchBar } from './SearchBar'; +import { ATask, TaskCloseEvent, TASK_CLOSE_EVENT_TYPE } from './tasks/ATask'; +import { TASKLIST } from './tasks/TaskList'; import Taskview from './Taskview'; export default class SearchColumn { private $searchColumn: HTMLDivElement; + private $taskContainer: HTMLDivElement; + private $tasks: HTMLDivElement; + private searchBar: SearchBar; + private refCohort: Cohort; + private $ColumnHeader: HTMLDivElement; + activeTask: ATask; constructor($container: HTMLDivElement, private referenceCht: Cohort, private taskview: Taskview) { - $container.insertAdjacentHTML('beforeend', searchHtml); //faster than innerHTML (https://developer.mozilla.org/de/docs/Web/API/Element/insertAdjacentHTML) + $container.insertAdjacentHTML('beforeend', searchHtml); // faster than innerHTML (https://developer.mozilla.org/de/docs/Web/API/Element/insertAdjacentHTML) this.$searchColumn = $container.firstChild as HTMLDivElement; this.$tasks = select(this.$searchColumn).select('.task-selector').node() as HTMLDivElement; this.$taskContainer = select(this.$searchColumn).select('.task-container').node() as HTMLDivElement; this.$ColumnHeader = select(this.$searchColumn).select('.header').node() as HTMLDivElement; - $container.querySelectorAll('[title]').forEach((elem) => tippy(elem, { - content(elm) { // build tippy tooltips from the title attribute - const title = elm.getAttribute('title'); - elm.removeAttribute('title'); - return title; - }, - })); + $container.querySelectorAll('[title]').forEach((elem) => + tippy(elem, { + content(elm) { + // build tippy tooltips from the title attribute + const title = elm.getAttribute('title'); + elm.removeAttribute('title'); + return title; + }, + }), + ); this.refCohort = referenceCht; this._setupSearchBar(referenceCht); // create the search bar and add the its options @@ -43,7 +52,7 @@ export default class SearchColumn { } public clear() { - select(this.$searchColumn).select('.task.selected').classed('selected', false); //deselect all others + select(this.$searchColumn).select('.task.selected').classed('selected', false); // deselect all others this.searchBar.removeAllSelectedOptions(); } @@ -129,26 +138,28 @@ export default class SearchColumn { if (enable) { // add eventListeners const that = this; - select(this.$searchColumn).selectAll('div.action.add').on('click', function () { - const button = this as HTMLDivElement; - const attributes = that.getSelectedAttributes(); - if (attributes.length > 0) { - for (const attr of attributes) { - if (button.classList.contains('add-left')) { - that.taskview.addAttributeColumnForInput(attr, true); - } else { - that.taskview.addAttributeColumnForOutput(attr, true); + select(this.$searchColumn) + .selectAll('div.action.add') + .on('click', function () { + const button = this as HTMLDivElement; + const attributes = that.getSelectedAttributes(); + if (attributes.length > 0) { + for (const attr of attributes) { + if (button.classList.contains('add-left')) { + that.taskview.addAttributeColumnForInput(attr, true); + } else { + that.taskview.addAttributeColumnForOutput(attr, true); + } } + } else { + button.classList.add('shaking'); + setTimeout(() => button.classList.remove('shaking'), 500); + // @ts-ignore + $(button).popover('show'); + // @ts-ignore + setTimeout(() => $(button).popover('hide'), 5000); } - } else { - button.classList.add('shaking'); - setTimeout(() => button.classList.remove('shaking'), 500); - // @ts-ignore - $(button).popover('show'); - // @ts-ignore - setTimeout(() => $(button).popover('hide'), 5000); - } - }); + }); } else { select(this.$searchColumn).selectAll('div.action.add').on('click', null); // remove addleft/addright } diff --git a/src/Taskview/Taskview.ts b/src/Taskview/Taskview.ts index c109a74..94d6752 100644 --- a/src/Taskview/Taskview.ts +++ b/src/Taskview/Taskview.ts @@ -1,17 +1,31 @@ -import {Cohort, EMPTY_COHORT_ID, getEmptyCohort, getLoaderCohort, LOADER_COHORT_ID} from '../Cohort'; -import {ITaskParams, TaskType} from '../CohortInterfaces'; -import {RectCohortRep} from '../CohortRepresentations'; -import {IAttribute, multiAttributeFilter} from '../data/Attribute'; -import {RectangleLayout} from '../Overview/OverviewLayout'; -import {CohortColorSchema, log, removeFromArray, ScrollLinker, SortType} from '../util'; -import {CohortSelectionEvent, COHORT_SELECTION_EVENT_TYPE, ColumnCloseEvent, ColumnSortEvent, COLUMN_CLOSE_EVENT_TYPE, COLUMN_SORT_EVENT_TYPE, ConfirmOutputEvent, ConfirmTaskEvent, CONFIRM_OUTPUT_EVENT_TYPE, FilterEvent, FILTER_EVENT_TYPE, PreviewChangeEvent, SplitEvent, SPLIT_EVENT_TYPE} from '../utilCustomEvents'; -import AddColumnColumn, {AColumn, ADataColumn, EmptyColumn} from './columns/AColumn'; +import { Cohort, EMPTY_COHORT_ID, getEmptyCohort, getLoaderCohort, LOADER_COHORT_ID } from '../Cohort'; +import { ITaskParams, TaskType } from '../CohortInterfaces'; +import { RectCohortRep } from '../CohortRepresentations'; +import { IAttribute, multiAttributeFilter } from '../data/Attribute'; +import { RectangleLayout } from '../Overview/OverviewLayout'; +import { CohortColorSchema, log, removeFromArray, ScrollLinker, SortType } from '../util'; +import { + CohortSelectionEvent, + COHORT_SELECTION_EVENT_TYPE, + ColumnCloseEvent, + ColumnSortEvent, + COLUMN_CLOSE_EVENT_TYPE, + COLUMN_SORT_EVENT_TYPE, + ConfirmOutputEvent, + ConfirmTaskEvent, + CONFIRM_OUTPUT_EVENT_TYPE, + FilterEvent, + FILTER_EVENT_TYPE, + PreviewChangeEvent, + SplitEvent, + SPLIT_EVENT_TYPE, +} from '../utilCustomEvents'; +import AddColumnColumn, { AColumn, ADataColumn, EmptyColumn } from './columns/AColumn'; import AttributeColumn from './columns/AttributeColumn'; -import {InputCohortColumn, OutputCohortColumn} from './columns/CohortColumn'; +import { InputCohortColumn, OutputCohortColumn } from './columns/CohortColumn'; import SearchColumn from './SearchColumn'; export default class Taskview { - public destroy() { this.$node.removeEventListener(FILTER_EVENT_TYPE, this.filterListener); this.$node.removeEventListener(SPLIT_EVENT_TYPE, this.splitListener); @@ -35,15 +49,23 @@ export default class Taskview { } private input: TaskviewInput; + private search: SearchColumn; + private output: TaskviewOutput; + private scrollLink: ScrollLinker; + private taskParams: ITaskParams[]; + private taskAttributes: IAttribute[]; private filterListener: EventListenerOrEventListenerObject = (ev) => this.handleFilterEvent(ev as FilterEvent); + private splitListener: EventListenerOrEventListenerObject = (ev) => this.handleFilterEvent(ev as SplitEvent); + private confirmListener: EventListenerOrEventListenerObject = (ev) => this.confirmTask(); // event data (cohorts) currently ignored + private columnSortListener: EventListenerOrEventListenerObject = (ev) => this.handleColumnSortEvent(ev as ColumnSortEvent); constructor(public readonly $node: HTMLDivElement, private reference: Cohort) { @@ -61,8 +83,7 @@ export default class Taskview { this.output = new TaskviewOutput(outNode, this.reference, this); this.$node.appendChild(outNode); - this.scrollLink = new ScrollLinker(inNode.querySelector('div.task-view-scroll-wrapper'), - outNode.querySelector('div.task-view-scroll-wrapper')); + this.scrollLink = new ScrollLinker(inNode.querySelector('div.task-view-scroll-wrapper'), outNode.querySelector('div.task-view-scroll-wrapper')); // Listen to cohort creation events fired by histograms in the input part this.$node.addEventListener(FILTER_EVENT_TYPE, this.filterListener); @@ -96,9 +117,13 @@ export default class Taskview { currCht.isFirstOutputCohort = false; currCht.isLastOutputCohort = false; // first cohort - if (i === 0) {currCht.isFirstOutputCohort = true;} + if (i === 0) { + currCht.isFirstOutputCohort = true; + } // last cohort - if (i === (sizeOutCht - 1)) {currCht.isLastOutputCohort = true;} + if (i === sizeOutCht - 1) { + currCht.isLastOutputCohort = true; + } } } } @@ -107,23 +132,21 @@ export default class Taskview { } private async sortCohorts(type: SortType, cohortsToSort: Cohort[], defaultOrder: number[]) { - - if (type === SortType.Default) { // sort by default + if (type === SortType.Default) { + // sort by default const sortingArray = defaultOrder; cohortsToSort.sort((a, b) => this.sortWithDbIdArray(a.dbId, b.dbId, sortingArray)); // default - - } else if (type === SortType.Alpha_AZ) { // sort by label name + } else if (type === SortType.Alpha_AZ) { + // sort by label name cohortsToSort.sort((a, b) => this.sortLabelAlpha(a, b)); // A -> Z - } else if (type === SortType.Alpha_ZA) { cohortsToSort.sort((a, b) => this.sortLabelAlpha(b, a)); // Z -> A - - } else if (type === SortType.Size_19) { // sort by cohort size + } else if (type === SortType.Size_19) { + // sort by cohort size await this.sortCohortsBySize(false, cohortsToSort); - - } else if (type === SortType.Size_91) { // sort by cohort size + } else if (type === SortType.Size_91) { + // sort by cohort size await this.sortCohortsBySize(true, cohortsToSort); - } } @@ -132,21 +155,30 @@ export default class Taskview { } private sortLabelAlpha(a, b) { - if (a.label < b.label) {return -1;} - if (a.label > b.label) {return 1;} + if (a.label < b.label) { + return -1; + } + if (a.label > b.label) { + return 1; + } return 0; } private sortSizeNum(a, b) { - if (a.size > b.size) {return -1;} - if (a.size < b.size) {return 1;} + if (a.size > b.size) { + return -1; + } + if (a.size < b.size) { + return 1; + } return 0; } + private async sortCohortsBySize(descending: boolean, cohortsToSort: Cohort[]) { const chtSizes = []; for (const cht of cohortsToSort) { const currSize = await cht.size; - chtSizes.push({id: cht.id, size: currSize}); + chtSizes.push({ id: cht.id, size: currSize }); } if (descending) { @@ -193,7 +225,7 @@ export default class Taskview { } public updateInput() { - this.input.update(); //adjust height after removing output cohorts + this.input.update(); // adjust height after removing output cohorts } public getInputCohorts(): Cohort[] { @@ -212,22 +244,22 @@ export default class Taskview { this.reference = reference; } - public addMultipleAttributeColumns(dArray: IAttribute[], allowDuplicates: boolean = false, pinned: boolean = false) { + public addMultipleAttributeColumns(dArray: IAttribute[], allowDuplicates = false, pinned = false) { dArray.forEach((d) => this.addAttributeColumn(d, allowDuplicates, pinned)); } - public addAttributeColumn(d: IAttribute, allowDuplicates: boolean = false, pinned: boolean = false) { + public addAttributeColumn(d: IAttribute, allowDuplicates = false, pinned = false) { if (this.reference.idColumn.column !== d.id) { this.addAttributeColumnForInput(d, allowDuplicates, pinned); this.addAttributeColumnForOutput(d, allowDuplicates, pinned); } } - public addAttributeColumnForInput(d: IAttribute, allowDuplicates: boolean = false, pinned: boolean = false) { + public addAttributeColumnForInput(d: IAttribute, allowDuplicates = false, pinned = false) { this.input.addAttributeColumn(d, allowDuplicates, pinned); // function is overwritten in and does not need the onInputCohortSide = true variable } - public addAttributeColumnForOutput(d: IAttribute, allowDuplicates: boolean = false, pinned: boolean = false) { + public addAttributeColumnForOutput(d: IAttribute, allowDuplicates = false, pinned = false) { this.output.addAttributeColumn(d, allowDuplicates, false, false, pinned); } @@ -245,9 +277,10 @@ export default class Taskview { } private currentEvent = 0; + async handleFilterEvent(ev: FilterEvent | SplitEvent) { const currentEv = ++this.currentEvent; - let outputCohorts = []; //Stores the output cohorts in correct order, will replace the array currently used + let outputCohorts = []; // Stores the output cohorts in correct order, will replace the array currently used const taskWithSelectedOutput: ITaskParams[] = []; this.taskParams = []; this.taskAttributes = ev.detail.desc[0].filter.map((filter) => filter.attr); @@ -283,7 +316,9 @@ export default class Taskview { } const newChts = await Promise.all(chtPromises); - if (currentEv !== this.currentEvent) {return;} + if (currentEv !== this.currentEvent) { + return; + } const chtSizes = []; newChts.sort((a, b) => this.sortLabelAlpha(a, b)); // sort output cohorts: A -> Z @@ -309,8 +344,10 @@ export default class Taskview { cht.outputCohorts.push(getEmptyCohort(cht)); } - //the async/time instensive stuff is done now, check if we should continue: - if (currentEv !== this.currentEvent) {return;} + // the async/time instensive stuff is done now, check if we should continue: + if (currentEv !== this.currentEvent) { + return; + } (cht.outputCohorts[cht.outputCohorts.length - 1] as OutputCohort).isLastOutputCohort = true; (cht.outputCohorts[0] as OutputCohort).isFirstOutputCohort = true; @@ -322,7 +359,7 @@ export default class Taskview { inputCohorts: [cht], outputCohorts: cht.outputCohorts, type: ev instanceof FilterEvent ? TaskType.Filter : TaskType.Split, - label: ev.detail.desc[0].filter.map((filter) => filter.attr.label).join(', ') + label: ev.detail.desc[0].filter.map((filter) => filter.attr.label).join(', '), }; // save all curertn possibel task params this.taskParams.push(currTaskParam); @@ -337,7 +374,6 @@ export default class Taskview { // Update the input cohorts this.updateInput(); - // show the preview for the current task this.$node.dispatchEvent(new PreviewChangeEvent(taskWithSelectedOutput, this.taskAttributes)); @@ -346,7 +382,6 @@ export default class Taskview { ev.detail.desc[0].filter.forEach((filter) => this.addAttributeColumn(filter.attr)); } - showOutput(show: boolean) { const hide = !show; // this.output.$node.style.display = hide ? 'none' : 'flex'; // setting hidden does not work with flexbox @@ -356,36 +391,41 @@ export default class Taskview { } abstract class TaskviewTable { - $node: HTMLDivElement; + $floatingBtns: HTMLDivElement; + columns: AColumn[] = []; + cohorts: Cohort[] = []; constructor(private $wrapper: HTMLDivElement) { this.$wrapper.classList.add('task-view-table-button-wrapper'); const tableWrapper = document.createElement('div'); - tableWrapper.classList.add('task-view-scroll-wrapper'); // this div can only be around half the height of the browser (which would lead to column border ending to early for example) --> therefore this is a container holding scrollbars + tableWrapper.classList.add('task-view-scroll-wrapper'); // this div can only be around half the height of the browser (which would lead to column border ending to early for example) --> therefore this is a container holding scrollbars this.$wrapper.appendChild(tableWrapper); - this.$node = document.createElement('div'); //this div will contain the columns of our table that can be higher than half of the viewport + this.$node = document.createElement('div'); // this div will contain the columns of our table that can be higher than half of the viewport this.$node.classList.add('task-view-table'); tableWrapper.appendChild(this.$node); $wrapper.appendChild(tableWrapper); - $wrapper.insertAdjacentHTML('beforeend', ` + $wrapper.insertAdjacentHTML( + 'beforeend', + ` - `); + `, + ); this.$floatingBtns = $wrapper.querySelector('div.floating-confirm'); $wrapper.querySelector('div.floating-confirm button.clearBtn').addEventListener('click', () => this.clear()); - this.$node.addEventListener(COLUMN_CLOSE_EVENT_TYPE, (ev) => this.removeColumn((ev as ColumnCloseEvent).detail.column)); //arrow function to keep "this" working in eventhandler + this.$node.addEventListener(COLUMN_CLOSE_EVENT_TYPE, (ev) => this.removeColumn((ev as ColumnCloseEvent).detail.column)); // arrow function to keep "this" working in eventhandler } destroy() { @@ -433,8 +473,11 @@ abstract class TaskviewTable { return attCol; } - public addAttributeColumn(attr: IAttribute, allowDuplicates: boolean = false, onInputCohortSide: boolean = true, color: boolean = false, pinned: boolean = false) { - if (allowDuplicates || !this.columns.find((column) => column instanceof AttributeColumn && (column as AttributeColumn).attribute.dataKey === attr.dataKey)) { + public addAttributeColumn(attr: IAttribute, allowDuplicates = false, onInputCohortSide = true, color = false, pinned = false) { + if ( + allowDuplicates || + !this.columns.find((column) => column instanceof AttributeColumn && (column as AttributeColumn).attribute.dataKey === attr.dataKey) + ) { // if duplicates are allowed or the column wasn't added yet const newCol = new AttributeColumn(attr, this.$node, onInputCohortSide, color, pinned); newCol.setCohorts(this.cohorts); @@ -448,13 +491,13 @@ abstract class TaskviewTable { orderCnt++; } }); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became narrower + window.dispatchEvent(new Event('resize')); // update vega chart sizes in case the columns became narrower } } public removeColumn(col: AColumn) { removeFromArray(this.columns, col); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became wider + window.dispatchEvent(new Event('resize')); // update vega chart sizes in case the columns became wider } clear() { @@ -464,10 +507,14 @@ abstract class TaskviewTable { } class TaskviewInput extends TaskviewTable { - cohortOrder: number[]; + cohorts: InputCohort[]; - usedColorsForCohorts = CohortColorSchema.COLOR_SCHEME.map((elem) => {return {color: elem, cohorts: []};}); + + usedColorsForCohorts = CohortColorSchema.COLOR_SCHEME.map((elem) => { + return { color: elem, cohorts: [] }; + }); + private inputCohortCol: InputCohortColumn; maxColors: number; @@ -487,25 +534,29 @@ class TaskviewInput extends TaskviewTable { private clearColorCohorts() { // setup color options - this.usedColorsForCohorts = CohortColorSchema.COLOR_SCHEME.map((elem) => {return {color: elem, cohorts: []};}); + this.usedColorsForCohorts = CohortColorSchema.COLOR_SCHEME.map((elem) => { + return { color: elem, cohorts: [] }; + }); this.maxColors = this.usedColorsForCohorts.length; } public setCohorts(cohorts: InputCohort[]) { this.clearColorCohorts(); - cohorts.filter((cht) => !cht.outputCohorts).forEach((cht) => cht.outputCohorts = []); // handle undefined outputCohort array + cohorts.filter((cht) => !cht.outputCohorts).forEach((cht) => (cht.outputCohorts = [])); // handle undefined outputCohort array // set selction order of cohorts this.cohortOrder = cohorts.map((cht) => cht.dbId); this.inputCohortCol.setDefaultSort(); // get all cohorts that have already a color - cohorts.filter((cht) => cht.colorTaskView).forEach((cht) => { - const colorIndex = this.usedColorsForCohorts.map((a) => a.color).indexOf(cht.colorTaskView); - if (colorIndex !== -1) { - this.usedColorsForCohorts[colorIndex].cohorts.push(cht.id); - } - }); + cohorts + .filter((cht) => cht.colorTaskView) + .forEach((cht) => { + const colorIndex = this.usedColorsForCohorts.map((a) => a.color).indexOf(cht.colorTaskView); + if (colorIndex !== -1) { + this.usedColorsForCohorts[colorIndex].cohorts.push(cht.id); + } + }); // assign color to cohort without one const maxCohortPerColor = Math.ceil(cohorts.length / this.maxColors); @@ -517,7 +568,7 @@ class TaskviewInput extends TaskviewTable { // check if the color for the current cohort index is available if (this.usedColorsForCohorts[colorIndex].cohorts.length < maxCohortPerColor) { this.usedColorsForCohorts[colorIndex].cohorts.push(elem.id); // add cohort to the cohort array for the color - elem.colorTaskView = this.usedColorsForCohorts[colorIndex].color; // set color for the cohort + elem.colorTaskView = this.usedColorsForCohorts[colorIndex].color; // set color for the cohort } else { // go through all possible color and use the first one not used for (const cc of this.usedColorsForCohorts) { @@ -529,41 +580,42 @@ class TaskviewInput extends TaskviewTable { } } } - }); super.setCohorts(cohorts); } - public addAttributeColumn(attr: IAttribute, allowDuplicates: boolean = false, pinned: boolean = false) { + public addAttributeColumn(attr: IAttribute, allowDuplicates = false, pinned = false) { super.addAttributeColumn(attr, allowDuplicates, true, true, pinned); } clear() { - this.cohorts.slice() // duplicate because the cohort array will change through the event - .forEach((cht) => this.$node.dispatchEvent(new CohortSelectionEvent(cht))); //deselect each + this.cohorts + .slice() // duplicate because the cohort array will change through the event + .forEach((cht) => this.$node.dispatchEvent(new CohortSelectionEvent(cht))); // deselect each super.clear(); } } - class TaskviewOutput extends TaskviewTable { - cohortOrders: {inputCht: number, cohorts: number[]}[]; + cohortOrders: { inputCht: number; cohorts: number[] }[]; + private outputCohortCol: OutputCohortColumn; constructor($wrapper: HTMLDivElement, reference: Cohort, private taskview: Taskview) { super($wrapper); $wrapper.classList.add('output'); - this.$floatingBtns.insertAdjacentHTML(`beforeend`, ` + this.$floatingBtns.insertAdjacentHTML( + `beforeend`, + ` - `); - $wrapper.querySelector('div.floating-confirm button.confirmBtn').addEventListener( - 'click', - (clickEv) => clickEv.target.dispatchEvent(new ConfirmOutputEvent(this.cohorts)) + `, ); - + $wrapper + .querySelector('div.floating-confirm button.confirmBtn') + .addEventListener('click', (clickEv) => clickEv.target.dispatchEvent(new ConfirmOutputEvent(this.cohorts))); this.columns.push(new EmptyColumn(this.$node)); // same flex order as outputcohort column -> ordered by position in DOM this.columns.push(new AddColumnColumn(this.$node, taskview, reference.database, reference.view, false)); @@ -583,7 +635,7 @@ class TaskviewOutput extends TaskviewTable { inputCohorts: tsk.inputCohorts, outputCohorts: selectedOutputCohorts, type: tsk.type, - label: tsk.label + label: tsk.label, }); } } @@ -596,7 +648,7 @@ class TaskviewOutput extends TaskviewTable { clear() { super.clear(); - this.taskview.getInputCohorts().forEach((cht) => (cht as InputCohort).outputCohorts = []); + this.taskview.getInputCohorts().forEach((cht) => ((cht as InputCohort).outputCohorts = [])); this.taskview.updateInput(); // remove the preview by setting the taskParams to an empty array this.$node.dispatchEvent(new PreviewChangeEvent([], null)); @@ -614,7 +666,7 @@ class TaskviewOutput extends TaskviewTable { if (index === -1) { this.cohortOrders.push({ inputCht: parentdbID, - cohorts: [cht.dbId] + cohorts: [cht.dbId], }); } else { this.cohortOrders[index].cohorts.push(cht.dbId); @@ -624,13 +676,12 @@ class TaskviewOutput extends TaskviewTable { } } - - export class InputCohort extends Cohort { outputCohorts: Cohort[] = []; } export class OutputCohort extends Cohort { public isLastOutputCohort = false; // used to add a paddding between outputcohorts of different input cohorts + public isFirstOutputCohort = false; // used to add a paddding between outputcohorts of different input cohorts } diff --git a/src/Taskview/columns/AColumn.ts b/src/Taskview/columns/AColumn.ts index 1919476..da3e2cd 100644 --- a/src/Taskview/columns/AColumn.ts +++ b/src/Taskview/columns/AColumn.ts @@ -9,8 +9,11 @@ import Taskview, {InputCohort, OutputCohort} from '../Taskview'; export abstract class AColumn { $column: HTMLDivElement; + $header: HTMLDivElement; + $headerTitle: HTMLDivElement; + $headerOptions: HTMLDivElement; constructor(protected title: string, protected $container: HTMLDivElement, closeable = true) { @@ -19,10 +22,11 @@ export abstract class AColumn { this.$headerOptions = select(this.$header).append('div').classed('header-option', true).node() as HTMLDivElement; this.$headerTitle = select(this.$header).append('div').classed('header-title', true).node() as HTMLDivElement; - this.$headerTitle.innerHTML = title ? title : '​'; //zero width space if empty + this.$headerTitle.innerHTML = title || '​'; // zero width space if empty this.$headerTitle.classList.add('text'); - if (title) { // only when column has a title then set the title property + if (title) { + // only when column has a title then set the title property this.$headerTitle.title = title; } if (closeable) { @@ -50,23 +54,27 @@ export abstract class AColumn { */ export abstract class ADataColumn extends AColumn { protected showLoadingAnimation = true; + private dataCells; public setCohorts(cohorts: Cohort[]) { - this.dataCells = select(this.$column).selectAll('div.data').data(cohorts, (d) => d.id); + this.dataCells = select(this.$column) + .selectAll('div.data') + .data(cohorts, (d) => d.id); const _thisColumn = this; - //Update + // Update this.dataCells.each(function (d, i) { _thisColumn.setCellStyle(select(this).node() as HTMLDivElement, d, i); }); - //Enter + // Enter const enterSelection = this.dataCells.enter(); enterSelection .append('div') .classed('data', true) - .each(function (d, i) { // function so we can refer to the html element with 'this' + .each(function (d, i) { + // function so we can refer to the html element with 'this' _thisColumn.setCell(select(this).node() as HTMLDivElement, d, i); }); @@ -94,12 +102,13 @@ export abstract class ADataColumn extends AColumn { } async setCellStyle(cell: HTMLDivElement, cht: Cohort, index: number): Promise { - let cellHeight = 56; //Cohort Representation + Padding + Border Top = 52px + 2*2px + 1px = 57px + let cellHeight = 56; // Cohort Representation + Padding + Border Top = 52px + 2*2px + 1px = 57px - if ((cht as InputCohort).outputCohorts) { // check chohort type -> InputCohort always has a outputCohorts array + if ((cht as InputCohort).outputCohorts) { + // check chohort type -> InputCohort always has a outputCohorts array const rows = (cht as InputCohort).outputCohorts.length; // one row for each output cohort cellHeight *= Math.max(rows, 1); // at least one row - cellHeight += (10 - 2); // extra padding - default padding + cellHeight += 10 - 2; // extra padding - default padding cellHeight += 1; // border cell.dataset.inputCohort = `${cht.dbId}`; } else { @@ -110,7 +119,7 @@ export abstract class ADataColumn extends AColumn { cell.classList.remove('first-output-cohort'); if ((cht as OutputCohort).isLastOutputCohort) { cell.classList.add('last-output-cohort'); - cellHeight += (10 - 2); // extra padding - default padding + cellHeight += 10 - 2; // extra padding - default padding cellHeight += 1; // border } if ((cht as OutputCohort).isFirstOutputCohort) { @@ -120,7 +129,7 @@ export abstract class ADataColumn extends AColumn { } cell.style.height = `${cellHeight}px`; - const selected = cht.selected; + const { selected } = cht; cell.classList.toggle('deselected', !selected); } @@ -132,7 +141,6 @@ export abstract class ADataColumn extends AColumn { * Shrinks down to 0px for the content, the border remains, and currently is 2px left, seperating the last input column from the task search and the last output column from the output cohorts */ export class EmptyColumn extends ADataColumn { - constructor($container: HTMLDivElement) { super(undefined, $container, false); this.$column.classList.add('empty'); @@ -140,12 +148,11 @@ export class EmptyColumn extends ADataColumn { } async setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise { - //Empty + // Empty } } export default class AddColumnColumn extends ADataColumn { - constructor($container: HTMLDivElement, taskview: Taskview, database: string, view: string, private onInputCohortSide = true) { super(undefined, $container, false); this.$column.classList.add('first', 'add-column'); @@ -167,7 +174,7 @@ export default class AddColumnColumn extends ADataColumn { - + `; @@ -177,6 +184,6 @@ export default class AddColumnColumn extends ADataColumn { } async setCellContent(cell: HTMLDivElement, cht: Cohort, index: number): Promise { - //Empty + // Empty } } diff --git a/src/Taskview/columns/AttributeColumn.ts b/src/Taskview/columns/AttributeColumn.ts index 123f91e..cb1de92 100644 --- a/src/Taskview/columns/AttributeColumn.ts +++ b/src/Taskview/columns/AttributeColumn.ts @@ -1,52 +1,62 @@ import {select} from 'd3v7'; import vegaEmbed from 'vega-embed'; -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {Cohort} from '../../Cohort'; -import {colors} from '../../colors'; -import {IAttribute} from '../../data/Attribute'; -import {IEqualsList, INumRange, NumRangeOperators} from '../../rest'; -import {getAnimatedLoadingBars, log} from '../../util'; -import {easyLabelFromFilter, niceName} from '../../utilLabels'; -import {ADataColumn} from './AColumn'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { Cohort } from '../../Cohort'; +import { colors } from '../../colors'; +import { IAttribute } from '../../data/Attribute'; +import { IEqualsList, INumRange, NumRangeOperators } from '../../rest'; +import { getAnimatedLoadingBars, log } from '../../util'; +import { easyLabelFromFilter, niceName } from '../../utilLabels'; +import { ADataColumn } from './AColumn'; export default class AttributeColumn extends ADataColumn { private hists: WeakMap = new WeakMap(); + private showOutputChtHistRef = false; + private _pinned = false; + private togglePinBtn; private _order = 50; - constructor(public attribute: IAttribute, $container: HTMLDivElement, private onInputCohortSide = true, private color = false, pinned: boolean = false) { + constructor(public attribute: IAttribute, $container: HTMLDivElement, private onInputCohortSide = true, private color = false, pinned = false) { super(niceName(attribute.label), $container); this.$column.dataset.attribute = this.attribute.label; this.$column.style.order = `${this._order}`; this._pinned = pinned; - this.$header.addEventListener('mouseover', (event) => { - event.stopPropagation(); - if (event.target === this.$header) { - // add highlight - this.addHighlightForColumn(); - } else if (event.target === this.$headerOptions) { - // add highlight - this.addHighlightForColumn(); - } else if (event.target === this.$headerTitle) { - // add highlight - this.addHighlightForColumn(); - } else { + this.$header.addEventListener( + 'mouseover', + (event) => { + event.stopPropagation(); + if (event.target === this.$header) { + // add highlight + this.addHighlightForColumn(); + } else if (event.target === this.$headerOptions) { + // add highlight + this.addHighlightForColumn(); + } else if (event.target === this.$headerTitle) { + // add highlight + this.addHighlightForColumn(); + } else { + // remove highlight + this.removeHighlightForColumn(); + } + }, + false, + ); + + this.$header.addEventListener( + 'mouseout', + (event) => { + event.stopPropagation(); // remove highlight this.removeHighlightForColumn(); - } - - }, false); - - this.$header.addEventListener('mouseout', (event) => { - event.stopPropagation(); - // remove highlight - this.removeHighlightForColumn(); - }, false); + }, + false, + ); // add option to pin column this.togglePinBtn = select(this.$headerOptions).append('i'); @@ -69,7 +79,6 @@ export default class AttributeColumn extends ADataColumn { // const showAttrBtn = select(this.$headerOptions).append('div'); // showAttrBtn.classed('options', true).html('').on('click', () => log.debug('show in serach column')); // showAttrBtn.attr('title', 'Show Attribute'); - } else { // add options for attributes on the ouput side // toggle reference for the mini visulaization @@ -98,6 +107,7 @@ export default class AttributeColumn extends ADataColumn { public get pinned() { return this._pinned; } + public set pinned(value) { this._pinned = value; this.togglePinBtn.node().classList.toggle('active', this.pinned); @@ -147,18 +157,19 @@ export default class AttributeColumn extends ADataColumn { const hist = new Histogram(this.attribute, cht, this.showOutputChtHistRef, index, this.color); this.hists.set(cht, hist); cell.appendChild(hist.getNode()); - } } - class Histogram { - readonly $node: HTMLDivElement; + readonly $loader: HTMLDivElement; + readonly $hist: HTMLDivElement; + vegaView: any; - public showReference: boolean = true; + + public showReference = true; constructor(private attribute: IAttribute, private cohort: Cohort, showReference, private index, private color) { this.showReference = showReference; @@ -183,7 +194,7 @@ class Histogram { if (!this.cohort.hasfilterConflict()) { this.$node.appendChild(this.$loader); // get hist data of attribute for cohort - let data: {bin: string, count: number}[]; + let data: { bin: string; count: number }[]; try { data = await this.attribute.getHist(this.cohort.dbId, this.cohort.filters); } catch (e) { @@ -203,7 +214,10 @@ class Histogram { const notZeroData = data.filter((d) => d.count > 0); // filter only for categories/bins with count bigger 0 let showText = false; // show only text when 1 bin and not numerical attribute or when numerical attribute only for one bin if it is for null - if (this.attribute.type !== 'number' || (this.attribute.type === 'number' && notZeroData.length === 1 && (notZeroData[0].bin === 'null' || notZeroData[0].bin === null))) { + if ( + this.attribute.type !== 'number' || + (this.attribute.type === 'number' && notZeroData.length === 1 && (notZeroData[0].bin === 'null' || notZeroData[0].bin === null)) + ) { showText = notZeroData.length === 1; // show text when only one category/bin with count bigger 0 } @@ -217,16 +231,16 @@ class Histogram { // get parent cohort const parentCht = this.cohort.getCohortParents()[0]; // get hist data of attribtue for parent cohort - const parentData: {bin: string, count: number}[] = await this.attribute.getHist(parentCht.dbId, parentCht.filters); + const parentData: { bin: string; count: number }[] = await this.attribute.getHist(parentCht.dbId, parentCht.filters); const notZeroParentData = parentData.filter((d) => d.count > 0); // filter only for categories/bins with count bigger 0 const showParentText = notZeroParentData.length === 1; // show text when only one category/bin with count bigger 0 const vegaData = { data, parentData, - parentColor: parentCht.colorTaskView + parentColor: parentCht.colorTaskView, }; if (showParentText) { - const bin: string = notZeroParentData[0].bin; + const { bin } = notZeroParentData[0]; // TODO labels // const text = this.formatText(bin); const text = this.formatText(bin, this.cohort.values); @@ -235,16 +249,17 @@ class Histogram { } else { // show histogram with reference this.$node.classList.remove('text'); - vegaEmbed(this.$hist, this.getMinimalVegaSpecWithRef(vegaData), {actions: false, renderer: 'svg'}).then((result) => { + vegaEmbed(this.$hist, this.getMinimalVegaSpecWithRef(vegaData), { actions: false, renderer: 'svg' }).then((result) => { this.vegaView = result.view; }); } } - } else { // when no reference should be shown (is also the case for the input cohort side) + } else { + // when no reference should be shown (is also the case for the input cohort side) // check if only one category/bin has values if (showText) { // show only text - const bin: string = notZeroData[0].bin; + const { bin } = notZeroData[0]; // TODO labels // const text = this.formatText(bin); this.$node.classList.add('text'); @@ -253,7 +268,7 @@ class Histogram { } else { // show histogram this.$node.classList.remove('text'); - vegaEmbed(this.$hist, this.getMinimalVegaSpec(data), {actions: false, renderer: 'svg'}).then((result) => { + vegaEmbed(this.$hist, this.getMinimalVegaSpec(data), { actions: false, renderer: 'svg' }).then((result) => { this.vegaView = result.view; }); } @@ -295,7 +310,7 @@ class Histogram { secondOp: values[1][values[1].length - 1], // TODO labels // secondValue: Number(values[1].substring(0, values[1].length - 2)) - secondValue: Number(values[1].substring(0, values[1].length - 1)) + secondValue: Number(values[1].substring(0, values[1].length - 1)), }; // TODO lables // text = labelFromRanges(params.firstOp === '(' ? '(' : '[', params.firstValue, params.secondValue, params.secondOp === ')' ? ')' : ']', this.attribute); @@ -303,7 +318,7 @@ class Histogram { operatorOne: params.firstOp === '(' ? NumRangeOperators.gt : NumRangeOperators.gte, valueOne: params.firstValue, operatorTwo: params.secondOp === ')' ? NumRangeOperators.lt : NumRangeOperators.lte, - valueTwo: params.secondValue + valueTwo: params.secondValue, }; text = easyLabelFromFilter(range, this.attribute.label); @@ -320,18 +335,18 @@ class Histogram { public getMinimalVegaSpec(data): VegaLiteSpec { let sort: any = 'ascending'; if (this.attribute.type === 'number') { - sort = {field: 'index'}; + sort = { field: 'index' }; } return { $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', //responsive width - height: 50, //responsive height + width: 'container', // responsive width + height: 50, // responsive height background: '#ffffff00', // set visualization background to white and opacity 0 -> https://vega.github.io/vega-lite/docs/spec.html#example-background - autosize: {type: 'fit', contains: 'padding'}, //plots fit a bit better, if though they are specified as responsive - data: {values: data}, + autosize: { type: 'fit', contains: 'padding' }, // plots fit a bit better, if though they are specified as responsive + data: { values: data }, mark: { type: 'bar', - tooltip: true + tooltip: true, }, encoding: { x: { @@ -340,32 +355,32 @@ class Histogram { axis: { title: null, // we will have the title in the column header labels: false, // no space for labels - ticks: false + ticks: false, }, - sort + sort, }, y: { field: 'count', type: 'quantitative', - axis: null // no axis, no title, labels, no grid + axis: null, // no axis, no title, labels, no grid }, color: { field: 'this_does_not_exist', // field is necessary but does not have to exist - type: 'nominal', //type is also necessary, nominal as we have only one category (or none :) ) + type: 'nominal', // type is also necessary, nominal as we have only one category (or none :) ) scale: { - range: [this.cohort.colorTaskView || colors.barColor] //[this.color ? Cat16.get(this.index) : colors.barColor] + range: [this.cohort.colorTaskView || colors.barColor], // [this.color ? Cat16.get(this.index) : colors.barColor] }, - legend: null // no legend + legend: null, // no legend }, tooltip: [ - {field: 'bin', type: 'nominal'}, - {field: 'count', type: 'quantitative'} - ] + { field: 'bin', type: 'nominal' }, + { field: 'count', type: 'quantitative' }, + ], }, config: { view: { - stroke: 'transparent' // https://vega.github.io/vega-lite/docs/spec.html#view-background - } + stroke: 'transparent', // https://vega.github.io/vega-lite/docs/spec.html#view-background + }, }, params: [ { @@ -373,34 +388,35 @@ class Histogram { select: { type: 'point', on: 'mouseover', - clear: 'mouseout' - } - } - ] + clear: 'mouseout', + }, + }, + ], }; } public getMinimalVegaSpecWithRef(data): VegaLiteSpec { let sort: any = 'ascending'; if (this.attribute.type === 'number') { - sort = {field: 'index'}; + sort = { field: 'index' }; } return { $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', //responsive width - height: 50, //responsive height + width: 'container', // responsive width + height: 50, // responsive height background: '#ffffff00', // set visualization background to white and opacity 0 -> https://vega.github.io/vega-lite/docs/spec.html#example-background - autosize: {type: 'fit', contains: 'padding'}, //plots fit a bit better, if though they are specified as responsive + autosize: { type: 'fit', contains: 'padding' }, // plots fit a bit better, if though they are specified as responsive datasets: { parentData: data.parentData, - data: data.data + data: data.data, }, layer: [ - { // layer 1: input cohort reference data - data: {name: 'parentData'}, + { + // layer 1: input cohort reference data + data: { name: 'parentData' }, mark: { type: 'bar', - tooltip: true + tooltip: true, }, encoding: { x: { @@ -409,30 +425,31 @@ class Histogram { axis: { title: null, // we will have the title in the column header labels: false, // no space for labels - ticks: false + ticks: false, }, - sort + sort, }, y: { field: 'count', type: 'quantitative', - axis: null // no axis, no title, labels, no grid + axis: null, // no axis, no title, labels, no grid }, fill: { value: data.parentColor, - legend: null // no legend + legend: null, // no legend }, tooltip: [ - {field: 'bin', type: 'nominal'}, - {field: 'count', type: 'quantitative'} - ] - } + { field: 'bin', type: 'nominal' }, + { field: 'count', type: 'quantitative' }, + ], + }, }, - { // layer 2: output cohort data - data: {name: 'data'}, + { + // layer 2: output cohort data + data: { name: 'data' }, mark: { type: 'bar', - tooltip: true + tooltip: true, }, encoding: { x: { @@ -441,31 +458,31 @@ class Histogram { axis: { title: null, // we will have the title in the column header labels: false, // no space for labels - ticks: false + ticks: false, }, - sort + sort, }, y: { field: 'count', type: 'quantitative', - axis: null // no axis, no title, labels, no grid + axis: null, // no axis, no title, labels, no grid }, fill: { value: colors.barColor, - legend: null // no legend + legend: null, // no legend }, tooltip: [ - {field: 'bin', type: 'nominal'}, - {field: 'count', type: 'quantitative'} - ] - } - } + { field: 'bin', type: 'nominal' }, + { field: 'count', type: 'quantitative' }, + ], + }, + }, ], config: { view: { - stroke: 'transparent' // https://vega.github.io/vega-lite/docs/spec.html#view-background - } - } + stroke: 'transparent', // https://vega.github.io/vega-lite/docs/spec.html#view-background + }, + }, }; } } diff --git a/src/Taskview/columns/CohortColumn.ts b/src/Taskview/columns/CohortColumn.ts index 12aef4f..4c6d58d 100644 --- a/src/Taskview/columns/CohortColumn.ts +++ b/src/Taskview/columns/CohortColumn.ts @@ -10,16 +10,18 @@ import {ADataColumn} from './AColumn'; */ export abstract class ACohortColumn extends ADataColumn { public sortElemIcon: HTMLElement; + protected currSortOptIdx: number; + public sortOptions = [ - {idx: 1, type: SortType.Default, icon: 'fas fa-sort-alpha-down', active: false, next: 2}, - {idx: 2, type: SortType.Alpha_AZ, icon: 'fas fa-sort-alpha-down', active: true, next: 3}, - {idx: 3, type: SortType.Alpha_ZA, icon: 'fas fa-sort-alpha-up', active: true, next: 4}, - {idx: 4, type: SortType.Size_91, icon: 'fas fa-sort-amount-down', active: true, next: 5}, - {idx: 5, type: SortType.Size_19, icon: 'fas fa-sort-amount-up', active: true, next: 1}, + { idx: 1, type: SortType.Default, icon: 'fas fa-sort-alpha-down', active: false, next: 2 }, + { idx: 2, type: SortType.Alpha_AZ, icon: 'fas fa-sort-alpha-down', active: true, next: 3 }, + { idx: 3, type: SortType.Alpha_ZA, icon: 'fas fa-sort-alpha-up', active: true, next: 4 }, + { idx: 4, type: SortType.Size_91, icon: 'fas fa-sort-amount-down', active: true, next: 5 }, + { idx: 5, type: SortType.Size_19, icon: 'fas fa-sort-amount-up', active: true, next: 1 }, ]; - constructor(title, $container: HTMLDivElement, closeable: boolean = false) { + constructor(title, $container: HTMLDivElement, closeable = false) { super(title, $container, closeable); this.$column.classList.add('cohort'); @@ -33,16 +35,15 @@ export abstract class ACohortColumn extends ADataColumn { cell.style.padding = '2px'; } - public setDefaultSort() { this.changeSortOption(this.getSortOption(1)); } - private getSortOption(idx: number): {idx: number; type: SortType; icon: string; active: boolean; next: number;} { + private getSortOption(idx: number): { idx: number; type: SortType; icon: string; active: boolean; next: number } { return this.sortOptions.filter((opt) => opt.idx === idx)[0]; } - private changeSortOption(sortOpt: {idx: number; type: SortType; icon: string; active: boolean; next: number;}) { + private changeSortOption(sortOpt: { idx: number; type: SortType; icon: string; active: boolean; next: number }) { this.currSortOptIdx = sortOpt.idx; this.sortElemIcon.className = sortOpt.icon; this.sortElemIcon.classList.add('options'); @@ -66,11 +67,9 @@ export abstract class ACohortColumn extends ADataColumn { } protected abstract sortCohorts(type: SortType); - } export class InputCohortColumn extends ACohortColumn { - init = true; constructor($container: HTMLDivElement) { @@ -93,6 +92,7 @@ export class InputCohortColumn extends ACohortColumn { export class OutputCohortColumn extends ACohortColumn { cohorts: Cohort[]; + init = true; constructor($container: HTMLDivElement) { diff --git a/src/Taskview/columns/PrevalenceColumn.ts b/src/Taskview/columns/PrevalenceColumn.ts index c38bb84..0bc341c 100644 --- a/src/Taskview/columns/PrevalenceColumn.ts +++ b/src/Taskview/columns/PrevalenceColumn.ts @@ -1,13 +1,11 @@ - import vegaEmbed from 'vega-embed'; -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {Cohort} from '../../Cohort'; -import {colors} from '../../colors'; -import {getAnimatedLoadingBars} from '../../util'; -import {ADataColumn} from './AColumn'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { Cohort } from '../../Cohort'; +import { colors } from '../../colors'; +import { getAnimatedLoadingBars } from '../../util'; +import { ADataColumn } from './AColumn'; export default class PrevalenceColumn extends ADataColumn { - constructor(private reference: Cohort, $container: HTMLDivElement) { super(`% [${reference.label}]`, $container); this.$column.classList.add('prevalence'); @@ -18,11 +16,11 @@ export default class PrevalenceColumn extends ADataColumn { } } - class PrevalenceBar { - readonly $node: HTMLDivElement; + readonly $loader: HTMLDivElement; + readonly $hist: HTMLDivElement; constructor(private cht: Cohort, private reference: Cohort) { @@ -51,7 +49,7 @@ class PrevalenceBar { this.$node.appendChild(this.$hist); const spec = this.getMinimalVegaSpec(size, refSize); - vegaEmbed(this.$hist, this.getMinimalVegaSpec(size, refSize), {actions: false}); + vegaEmbed(this.$hist, this.getMinimalVegaSpec(size, refSize), { actions: false }); } public getNode() { @@ -65,44 +63,44 @@ class PrevalenceBar { public getMinimalVegaSpec(length: number, maxLength: number): VegaLiteSpec { return { $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - width: 'container', //responsive width + width: 'container', // responsive width height: 50, - autosize: {type: 'fit', contains: 'padding'}, //plots fit a bit better, if though they are specified as responsive - data: {values: [length / maxLength]}, + autosize: { type: 'fit', contains: 'padding' }, // plots fit a bit better, if though they are specified as responsive + data: { values: [length / maxLength] }, mark: 'bar', encoding: { x: { field: 'data', type: 'quantitative', - scale: {domain: [0, 1]}, + scale: { domain: [0, 1] }, axis: { labels: false, // no space for labels title: null, // we will have the title in the column header - tickCount: 1, //only one tick, i.e. the last one - tickExtra: true, //include an extra tick for beginning + tickCount: 1, // only one tick, i.e. the last one + tickExtra: true, // include an extra tick for beginning domain: false, ticks: false, - } + }, }, color: { value: colors.barColor, condition: [ { param: 'highlight', - value: colors.hoverColor - } - ] + value: colors.hoverColor, + }, + ], }, tooltip: { field: 'data', type: 'quantitative', - format: '.1%' - } + format: '.1%', + }, }, config: { view: { - stroke: 'transparent' // https://vega.github.io/vega-lite/docs/spec.html#view-background - } + stroke: 'transparent', // https://vega.github.io/vega-lite/docs/spec.html#view-background + }, }, params: [ { @@ -110,10 +108,10 @@ class PrevalenceBar { select: { type: 'point', on: 'mouseover', - clear: 'mouseout' - } - } - ] + clear: 'mouseout', + }, + }, + ], }; } } diff --git a/src/Taskview/columns/index.ts b/src/Taskview/columns/index.ts index b193ad9..49ce44f 100644 --- a/src/Taskview/columns/index.ts +++ b/src/Taskview/columns/index.ts @@ -1,8 +1,8 @@ export * from './AColumn'; export * from './AttributeColumn'; -export {default as AttributeColumn} from './AttributeColumn'; +export { default as AttributeColumn } from './AttributeColumn'; export * from './CohortColumn'; export * from './NumberColumn'; -export {default as NumberColumn} from './NumberColumn'; +export { default as NumberColumn } from './NumberColumn'; export * from './PrevalenceColumn'; -export {default as PrevalenceColumn} from './PrevalenceColumn'; +export { default as PrevalenceColumn } from './PrevalenceColumn'; diff --git a/src/Taskview/index.ts b/src/Taskview/index.ts index 2a1f3be..f8de926 100644 --- a/src/Taskview/index.ts +++ b/src/Taskview/index.ts @@ -4,6 +4,6 @@ export * from './visualizations'; export * from './SearchBar'; export * from './SearchColumn'; -export {default as SearchColumn} from './SearchColumn'; +export { default as SearchColumn } from './SearchColumn'; export * from './Taskview'; -export {default as Taskview} from './Taskview'; +export { default as Taskview } from './Taskview'; diff --git a/src/Taskview/tasks/ATask.ts b/src/Taskview/tasks/ATask.ts index f96a950..45c38c0 100644 --- a/src/Taskview/tasks/ATask.ts +++ b/src/Taskview/tasks/ATask.ts @@ -5,23 +5,27 @@ import {OnboardingManager} from '../../OnboardingManager'; export const TASK_CLOSE_EVENT_TYPE = 'task:close'; -export class TaskCloseEvent extends CustomEvent<{task: ATask}> { - +export class TaskCloseEvent extends CustomEvent<{ task: ATask }> { constructor(task: ATask) { - super(TASK_CLOSE_EVENT_TYPE, {detail: {task}, bubbles: true}); + super(TASK_CLOSE_EVENT_TYPE, { detail: { task }, bubbles: true }); } } - export abstract class ATask { public label: string; + public id: string; + public hasOutput: boolean; protected $container: HTMLDivElement; + protected $columnHeader: HTMLDivElement; + protected node: Selection; + protected header: Selection; + protected body: Selection; abstract supports(attributes: IAttribute[], cohorts: ICohort[]); @@ -36,9 +40,7 @@ export abstract class ATask { this.$columnHeader = columnHeader; this.node = select(container).append('div').classed(this.id, true).classed('task-vis-container', true); // header element for visualization configs - this.header = this.node - .append('div') - .classed('task-header', true); + this.header = this.node.append('div').classed('task-header', true); // create back title button const backTitle = document.createElement('button'); @@ -47,10 +49,12 @@ export abstract class ATask { // add text, classes, and fucntion to back title button select(backTitle) .classed('task-title btn btn-coral', true) - .html(` + .html( + `   - ${this.label}`) + ${this.label}`, + ) .on('click', function () { const clickedBtn = this; clickedBtn.dispatchEvent(new TaskCloseEvent(task)); diff --git a/src/Taskview/tasks/Compare.ts b/src/Taskview/tasks/Compare.ts index d60aa31..eea686d 100644 --- a/src/Taskview/tasks/Compare.ts +++ b/src/Taskview/tasks/Compare.ts @@ -15,10 +15,13 @@ import {ATask} from './ATask'; export class Compare extends ATask { public label = `Compare`; + public id = `compare`; + public hasOutput = false; attributes: IAttribute[]; + cohorts: Cohort[]; supports(attributes: IAttribute[], cohorts: Cohort[]) { @@ -73,9 +76,11 @@ export class Compare extends ATask { const timestamp = new Date().getTime().toString(); this.body.attr('data-timestamp', timestamp); - const colHeadsCht = this.body.select('thead tr').selectAll('th.head').data(this.cohorts, (cht: Cohort) => cht.id); - const colHeadsChtSpan = colHeadsCht.enter().append('th') - .attr('class', 'head rotate').append('div').append('span').append('span'); //th.head are the column headers + const colHeadsCht = this.body + .select('thead tr') + .selectAll('th.head') + .data(this.cohorts, (cht: Cohort) => cht.id); + const colHeadsChtSpan = colHeadsCht.enter().append('th').attr('class', 'head rotate').append('div').append('span').append('span'); // th.head are the column headers const that = this; // for the function below const updateTableBody = (bodyData: Array>>, timestamp: string) => { @@ -86,30 +91,44 @@ export class Compare extends ATask { that.updateTableDescription(bodyData.length === 0); // create a table body for every column - const bodies = that.body.select('table').selectAll('tbody').data(bodyData, (d) => d[0][0].label); // the data of each body is of type: Array> - const bodiesEnter = bodies.enter().append('tbody').classed('bottom-margin', true); //For each IColumnTableData, create a tbody + const bodies = that.body + .select('table') + .selectAll('tbody') + .data(bodyData, (d) => d[0][0].label); // the data of each body is of type: Array> + const bodiesEnter = bodies.enter().append('tbody').classed('bottom-margin', true); // For each IColumnTableData, create a tbody // the data of each row is of type: Array - const trs = bodies.merge(bodiesEnter).selectAll('tr').data((d) => d, (d) => d[0].key); // had to specify the function to derive the data (d -> d) + const trs = bodies + .merge(bodiesEnter) + .selectAll('tr') + .data( + (d) => d, + (d) => d[0].key, + ); // had to specify the function to derive the data (d -> d) const trsEnter = trs.enter().append('tr'); - const tds = trs.merge(trsEnter).selectAll('td').data((d) => d); // the data of each td is of type: IScoreCell + const tds = trs + .merge(trsEnter) + .selectAll('td') + .data((d) => d); // the data of each td is of type: IScoreCell const tdsEnter = tds.enter().append('td'); // Set colheads in thead colHeadsChtSpan.html((d) => `${d.label}`); colHeadsChtSpan.each(function (d: Cohort) { - const parent = select(this).node().parentNode as HTMLElement; //parent span-element + const parent = select(this).node().parentNode as HTMLElement; // parent span-element select(parent).style('background-color', (d) => (d as Cohort).colorTaskView); let color = '#333333'; if (d && d.colorTaskView && 'transparent' !== d.colorTaskView && hsl(d.colorTaskView).l < 0.5) { //transparent has lightness of zero color = 'white'; } - select(parent.parentNode as HTMLElement).style('color', color) + select(parent.parentNode as HTMLElement) + .style('color', color) .attr('title', (d: Cohort) => `${d.label}`); }); // set data in tbody - tds.merge(tdsEnter) + tds + .merge(tdsEnter) .attr('colspan', (d) => d.colspan) .attr('rowspan', (d) => d.rowspan) .style('color', (d) => d.foreground) @@ -118,10 +137,18 @@ export class Compare extends ATask { .classed('action', (d) => d.score !== undefined) .classed('score', (d) => d.measure !== undefined) .html((d) => d.label) - .on('click', function () {that.onClick.bind(that)(this);}) - .on('mouseover', function () {that.onMouseOver.bind(that)(this, true);}) - .on('mouseout', function () {that.onMouseOver.bind(that)(this, false);}) - .attr('title', function () {return that.createToolTip.bind(that)(this);}); + .on('click', function () { + that.onClick.bind(that)(this); + }) + .on('mouseover', function () { + that.onMouseOver.bind(that)(this, true); + }) + .on('mouseout', function () { + that.onMouseOver.bind(that)(this, false); + }) + .attr('title', function () { + return that.createToolTip.bind(that)(this); + }); // Exit tds.exit().remove(); // remove cells of removed columns @@ -135,11 +162,13 @@ export class Compare extends ATask { const svgWidth = 120 + 33 * this.cohorts.length; // 120 height with 45° widht also 120, calculated width for the svg and polygon that.body.select('th.head.rotate svg').remove(); - that.body.select('th.head.rotate') //select first + that.body + .select('th.head.rotate') // select first .insert('svg', ':first-child') .attr('width', svgWidth) .attr('height', 120) - .append('polygon').attr('points', '0,0 ' + svgWidth + ',0 0,120'); // 120 is thead height + .append('polygon') + .attr('points', `0,0 ${svgWidth},0 0,120`); // 120 is thead height }; this.getTableBody(this.cohorts, this.attributes, true, null).then((data) => updateTableBody(data, timestamp)); // initialize @@ -167,103 +196,115 @@ export class Compare extends ATask { * @param scaffold only create the matrix with row headers, but no value calculation * @param update */ - async getTableBody(cohorts: Cohort[], attributes: Attribute[], scaffold: boolean, update: (bodyData: IScoreCell[][][]) => void): Promise>>> { + async getTableBody( + cohorts: Cohort[], + attributes: Attribute[], + scaffold: boolean, + update: (bodyData: IScoreCell[][][]) => void, + ): Promise>>> { const data = this.prepareDataArray(cohorts, attributes); if (scaffold) { return data; - } else { - const promises = []; - - // if a group is part of the column and row item groups, we use these array to get the correct index (so we can avoid duplicate calculations) - const rowIndex4col = cohorts.map((colGrp, i) => i); - - for (const [bodyIndex, attr] of attributes.entries()) { - const attrPromises = []; - const measures = MethodManager.getMeasuresByType(Type.get(attr.type), Type.get(attr.type), SCOPE.SETS); // Always compare selected elements with a group of elements of the same column - if (measures.length > 0) { - const measure = measures[0]; - - for (const [rowIndex, rowCht] of cohorts.entries()) { - // Get the data of 'attr' for the rows inside 'rowCht' - const rowData = (await attr.getData(rowCht.dbId)).map((item) => item[attr.dataKey]); - for (const [colIndex, colCht] of cohorts.entries()) { - const colIndexOffset = rowIndex === 0 ? 2 : 1; // Two columns if the attribute label is in the same line, (otherwise 1 (because rowspan)) - - if (rowCht.id === colCht.id) { // identical groups - data[bodyIndex][rowIndex][colIndexOffset + colIndex] = {label: '', measure}; - } else if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0 && rowIndex4col[colIndex] < rowIndex) { - // the cht is also part of the colGroups array, and the colGrp is one of the previous rowGroups --> i.e. already calculated in a table row above the current one - } else { - const colData = (await attr.getData(colCht.dbId)).map((item) => item[attr.dataKey]); - const setParameters = { - setA: rowData, - setADesc: attr, - setACategory: {label: `${rowCht.label}`, color: rowCht.colorTaskView}, - setB: colData, - setBDesc: attr, - setBCategory: {label: `${colCht.label}`, color: colCht.colorTaskView} - }; - - attrPromises.push(new Promise((resolve, reject) => { + } + const promises = []; + + // if a group is part of the column and row item groups, we use these array to get the correct index (so we can avoid duplicate calculations) + const rowIndex4col = cohorts.map((colGrp, i) => i); + + for (const [bodyIndex, attr] of attributes.entries()) { + const attrPromises = []; + const measures = MethodManager.getMeasuresByType(Type.get(attr.type), Type.get(attr.type), SCOPE.SETS); // Always compare selected elements with a group of elements of the same column + if (measures.length > 0) { + const measure = measures[0]; + + for (const [rowIndex, rowCht] of cohorts.entries()) { + // Get the data of 'attr' for the rows inside 'rowCht' + const rowData = (await attr.getData(rowCht.dbId)).map((item) => item[attr.dataKey]); + for (const [colIndex, colCht] of cohorts.entries()) { + const colIndexOffset = rowIndex === 0 ? 2 : 1; // Two columns if the attribute label is in the same line, (otherwise 1 (because rowspan)) + + if (rowCht.id === colCht.id) { + // identical groups + data[bodyIndex][rowIndex][colIndexOffset + colIndex] = { label: '', measure }; + } else if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0 && rowIndex4col[colIndex] < rowIndex) { + // the cht is also part of the colGroups array, and the colGrp is one of the previous rowGroups --> i.e. already calculated in a table row above the current one + } else { + const colData = (await attr.getData(colCht.dbId)).map((item) => item[attr.dataKey]); + const setParameters = { + setA: rowData, + setADesc: attr, + setACategory: { label: `${rowCht.label}`, color: rowCht.colorTaskView }, + setB: colData, + setBDesc: attr, + setBCategory: { label: `${colCht.label}`, color: colCht.colorTaskView }, + }; + + attrPromises.push( + new Promise((resolve, reject) => { // score for the measure let score: Promise = null; score = measure.calc(rowData, colData, null); // return score; resolve(score); - - }).then((score) => { - data[bodyIndex][rowIndex][colIndexOffset + colIndex] = this.toScoreCell(score, measure, setParameters); - if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0) { - const colIndexOffset4Duplicate = rowIndex4col[colIndex] === 0 ? 2 : 1; // Currenlty, we can't have duplicates in the first line, so this will always be 1 - data[bodyIndex][rowIndex4col[colIndex]][colIndexOffset4Duplicate + rowIndex4col[rowIndex]] = this.toScoreCell(score, measure, setParameters); - } - - }).catch((err) => { - log.error(err); - const errorCell = {label: 'err', measure}; - data[bodyIndex][rowIndex][colIndexOffset + colIndex] = errorCell; - if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0) { - const colIndexOffset4Duplicate = rowIndex4col[colIndex] === 0 ? 2 : 1; - data[bodyIndex][rowIndex4col[colIndex]][colIndexOffset4Duplicate + rowIndex4col[rowIndex]] = errorCell; - } - })); - - - } + }) + .then((score) => { + data[bodyIndex][rowIndex][colIndexOffset + colIndex] = this.toScoreCell(score, measure, setParameters); + if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0) { + const colIndexOffset4Duplicate = rowIndex4col[colIndex] === 0 ? 2 : 1; // Currenlty, we can't have duplicates in the first line, so this will always be 1 + data[bodyIndex][rowIndex4col[colIndex]][colIndexOffset4Duplicate + rowIndex4col[rowIndex]] = this.toScoreCell( + score, + measure, + setParameters, + ); + } + }) + .catch((err) => { + log.error(err); + const errorCell = { label: 'err', measure }; + data[bodyIndex][rowIndex][colIndexOffset + colIndex] = errorCell; + if (rowIndex4col[rowIndex] >= 0 && rowIndex4col[colIndex] >= 0) { + const colIndexOffset4Duplicate = rowIndex4col[colIndex] === 0 ? 2 : 1; + data[bodyIndex][rowIndex4col[colIndex]][colIndexOffset4Duplicate + rowIndex4col[rowIndex]] = errorCell; + } + }), + ); } } } - Promise.all(attrPromises).then(() => {update(data);}); // TODO: updateSelectionAndVisuallization - promises.concat(attrPromises); } - - await Promise.all(promises); //rather await all at once: https://developers.google.com/web/fundamentals/primers/async-functions#careful_avoid_going_too_sequential - return data; // then return the data + Promise.all(attrPromises).then(() => { + update(data); + }); // TODO: updateSelectionAndVisuallization + promises.concat(attrPromises); } + + await Promise.all(promises); // rather await all at once: https://developers.google.com/web/fundamentals/primers/async-functions#careful_avoid_going_too_sequential + return data; // then return the data } prepareDataArray(cohorts: Cohort[], attributes: Attribute[]) { if (cohorts.length === 0 || attributes.length === 0) { - return []; //return empty array, will cause an empty table + return []; // return empty array, will cause an empty table } const data = new Array(attributes.length); // one array per attribute (number of table bodies) for (const [i, attr] of attributes.entries()) { data[i] = new Array(cohorts.length); // one array per rowGroup (number of rows in body) for (const [j, cht] of cohorts.entries()) { - data[i][j] = new Array(cohorts.length + (j === 0 ? 2 : 1)).fill({label: '', measure: null} as IScoreCell); - data[i][j][j === 0 ? 1 : 0] = { // through rowspan, this becomes the first array item + data[i][j] = new Array(cohorts.length + (j === 0 ? 2 : 1)).fill({ label: '', measure: null } as IScoreCell); + data[i][j][j === 0 ? 1 : 0] = { + // through rowspan, this becomes the first array item label: `${cht.label}`, background: cht.colorTaskView, - foreground: textColor4Background(cht.colorTaskView) + foreground: textColor4Background(cht.colorTaskView), }; if (j === 0) { data[i][j][0] = { label: `${attr.label}`, rowspan: cohorts.length, - type: attr.type + type: attr.type, }; } @@ -281,15 +322,15 @@ export class Compare extends ATask { cellLabel = cellLabel.startsWith('0') ? cellLabel.substring(1) : score.pValue.toFixed(2); // [0,1) --> .123, 1 --> 1.00 if (score.pValue > 0.1) { color = { - background: '#ffffff', //white - foreground: '#ffffff', //white + background: '#ffffff', // white + foreground: '#ffffff', // white }; } if (score.pValue === -1) { cellLabel = '-'; color = { - background: '#ffffff', //white - foreground: '#ffffff', //white + background: '#ffffff', // white + foreground: '#ffffff', // white }; } return { @@ -298,15 +339,15 @@ export class Compare extends ATask { foreground: color.foreground, score, measure, - setParameters + setParameters, }; } - createToolTip(tableCell): String { + createToolTip(tableCell): string { if (select(tableCell).classed('score') && select(tableCell).classed('action')) { - const tr = tableCell.parentNode; //current row - const tbody = tr.parentNode; //current body - const table = tbody.parentNode; //current table + const tr = tableCell.parentNode; // current row + const tbody = tr.parentNode; // current body + const table = tbody.parentNode; // current table const allTds = select(tr).selectAll('td'); let index = -1; @@ -320,9 +361,11 @@ export class Compare extends ATask { // all label cells in row const rowCategories = []; - select(tr).selectAll('td:not(.score)').each(function () { - rowCategories.push(select(this).text()); - }); + select(tr) + .selectAll('td:not(.score)') + .each(function () { + rowCategories.push(select(this).text()); + }); // the first cell in the first row of the cells tbody const row = select(tbody).select('tr').select('td').text(); @@ -331,16 +374,16 @@ export class Compare extends ATask { // if currMaxIndex and maxIndex are not the same -> increase headerIndex by one // because the current row has one cell fewer - const headerIndex = (currLength === maxLength) ? index : index + 1; + const headerIndex = currLength === maxLength ? index : index + 1; // column label const allHeads = select(table).select('thead').selectAll('th'); const header = select(allHeads.nodes()[headerIndex]).select('div').select('span').text(); const category = rowCategories.pop(); - const isColTask = category === row ? true : false; + const isColTask = category === row; const cellData = select(tableCell).datum() as IScoreCell; - const scoreValue = typeof (cellData.score.scoreValue) === 'number' && !isNaN(cellData.score.scoreValue) ? cellData.score.scoreValue.toFixed(3) : 'n/a'; + const scoreValue = typeof cellData.score.scoreValue === 'number' && !isNaN(cellData.score.scoreValue) ? cellData.score.scoreValue.toFixed(3) : 'n/a'; let scorePvalue: string | number = cellData.score.pValue; if (scorePvalue === -1) { scorePvalue = 'n/a'; @@ -348,7 +391,6 @@ export class Compare extends ATask { scorePvalue = (scorePvalue as number).toExponential(3); } - let tooltipText = ''; if (isColTask) { tooltipText = `Column: ${header}\nRow: ${row}\nScore: ${scoreValue}\np-Value: ${scorePvalue}`; @@ -357,11 +399,9 @@ export class Compare extends ATask { } return tooltipText; - } else { - // cell that have no p-values - return null; } - + // cell that have no p-values + return null; } onClick(tableCell) { @@ -377,14 +417,14 @@ export class Compare extends ATask { this.body.selectAll('td.cross-selection').each(function (d) { const label = select(this).text(); const rowspan = select(this).attr('rowspan'); - const obj = {label, rowspan}; + const obj = { label, rowspan }; rowLabels.push(obj); }); // create selected cell object - selCellObj = {colLabel, rowLabels}; + selCellObj = { colLabel, rowLabels }; } else { - selCellObj = {colLabel: null, rowLabels: null}; + selCellObj = { colLabel: null, rowLabels: null }; } log.debug('selectionLabels: ', selCellObj); @@ -397,10 +437,9 @@ export class Compare extends ATask { onMouseOver(tableCell, state: boolean) { if (select(tableCell).classed('score')) { - - const tr = tableCell.parentNode; //current row - const tbody = tr.parentNode; //current body - const table = tbody.parentNode; //current table + const tr = tableCell.parentNode; // current row + const tbody = tr.parentNode; // current body + const table = tbody.parentNode; // current table const allTds = select(tr).selectAll('td'); let index = -1; @@ -422,7 +461,7 @@ export class Compare extends ATask { // if currMaxIndex and maxIndex are not the same -> increase headerIndex by one // because the current row has one cell fewer - const headerIndex = (currLength === maxLength) ? index : index + 1; + const headerIndex = currLength === maxLength ? index : index + 1; // highlight column label const allHeads = select(table).select('thead').selectAll('th'); @@ -433,13 +472,12 @@ export class Compare extends ATask { } } - - private highlightSelectedCell(tableCell, cellData) { // remove bg highlighting from all tds this.body.selectAll('td').classed('selectedCell', false); - if (cellData.score) { //Currenlty only cells with a score are calculated (no category or attribute label cells) + if (cellData.score) { + // Currenlty only cells with a score are calculated (no category or attribute label cells) // Color table cell select(tableCell).classed('selectedCell', true); // add bg highlighting } @@ -450,20 +488,21 @@ export class Compare extends ATask { const details = this.body.select('div.details'); details.selectAll('*').remove(); // avada kedavra outdated details! - if (cellData.score) { //Currenlty only cells with a score are calculated (no category or attribute label cells) + if (cellData.score) { + // Currenlty only cells with a score are calculated (no category or attribute label cells) const resultScore: IMeasureResult = cellData.score; - const measure: ISimilarityMeasure = cellData.measure; + const { measure } = cellData; // Display details if (measure) { - this.generateVisualDetails(details, measure, resultScore, cellData.setParameters); //generate description into details div + this.generateVisualDetails(details, measure, resultScore, cellData.setParameters); // generate description into details div } else { details.append('p').text('There are no details for the selected table cell.'); } // display visualisation if (measure.visualization) { - const visualization: IMeasureVisualization = measure.visualization; + const { visualization } = measure; if (cellData.setParameters) { const d3v3Details = d3v3.select(details.node()); visualization.generateVisualization(d3v3Details, cellData.setParameters, cellData.score); @@ -473,77 +512,53 @@ export class Compare extends ATask { } // generates the detail inforamtion to the test and the remove button - private generateVisualDetails(miniVisualisation: Selection, measure: ISimilarityMeasure, measureResult: IMeasureResult, setParameters: ISetParameters) { - - const divDetailInfoContainer = miniVisualisation.append('div') - .classed('detailVisContainer', true); - - //button for mini visualization removal + private generateVisualDetails( + miniVisualisation: Selection, + measure: ISimilarityMeasure, + measureResult: IMeasureResult, + setParameters: ISetParameters, + ) { + const divDetailInfoContainer = miniVisualisation.append('div').classed('detailVisContainer', true); + + // button for mini visualization removal const that = this; const detailRemoveButton = divDetailInfoContainer.append('button'); detailRemoveButton.attr('class', 'btn btn-coral removeMiniVis-btn'); - detailRemoveButton.on('click', function () {that.removeCellDetails.bind(that)(miniVisualisation);}); + detailRemoveButton.on('click', function () { + that.removeCellDetails.bind(that)(miniVisualisation); + }); detailRemoveButton.html('x'); - const divDetailInfo = divDetailInfoContainer.append('div') - .classed('detailVis', true); + const divDetailInfo = divDetailInfoContainer.append('div').classed('detailVis', true); // the 2 compared sets const setALabel = setParameters.setACategory ? setParameters.setACategory.label : setParameters.setADesc.label; const setBLabel = setParameters.setBCategory ? setParameters.setBCategory.label : setParameters.setBDesc.label; - const detailSetInfo = divDetailInfo.append('div') - .classed('detailDiv', true); + const detailSetInfo = divDetailInfo.append('div').classed('detailDiv', true); if (setParameters.setACategory) { - detailSetInfo.append('span') - .classed('detail-label', true) - .text('Data Column: ') - .append('span') - .text(setParameters.setADesc.label); - detailSetInfo.append('span') - .text(' / '); + detailSetInfo.append('span').classed('detail-label', true).text('Data Column: ').append('span').text(setParameters.setADesc.label); + detailSetInfo.append('span').text(' / '); } - detailSetInfo.append('span') - .classed('detail-label', true) - .text('Comparing '); - detailSetInfo.append('span') - .html(setALabel + ' ') - .append('span') - .text('[' + measureResult.setSizeA + ']'); - detailSetInfo.append('span') - .classed('detail-label', true) - .text(' vs. '); - detailSetInfo.append('span') - .html(setBLabel + ' ') - .append('span') - .text('[' + measureResult.setSizeB + ']'); + detailSetInfo.append('span').classed('detail-label', true).text('Comparing '); + detailSetInfo.append('span').html(`${setALabel} `).append('span').text(`[${measureResult.setSizeA}]`); + detailSetInfo.append('span').classed('detail-label', true).text(' vs. '); + detailSetInfo.append('span').html(`${setBLabel} `).append('span').text(`[${measureResult.setSizeB}]`); // test value + p-value - const scoreValue = typeof (measureResult.scoreValue) === 'number' && !isNaN(measureResult.scoreValue) ? measureResult.scoreValue.toFixed(3) : 'n/a'; + const scoreValue = typeof measureResult.scoreValue === 'number' && !isNaN(measureResult.scoreValue) ? measureResult.scoreValue.toFixed(3) : 'n/a'; const pValue = measureResult.pValue === -1 ? 'n/a' : (measureResult.pValue as number).toExponential(3); - const detailInfoValues = divDetailInfo.append('div') - .classed('detailDiv', true); + const detailInfoValues = divDetailInfo.append('div').classed('detailDiv', true); // .text(`Test-Value: ${scoreValue}, p-Value: ${pValue}`); - detailInfoValues.append('span') - .classed('detail-label', true) - .text(measure.label + ': '); - detailInfoValues.append('span') - .text(scoreValue); + detailInfoValues.append('span').classed('detail-label', true).text(`${measure.label}: `); + detailInfoValues.append('span').text(scoreValue); - detailInfoValues.append('span') - .text(', '); + detailInfoValues.append('span').text(', '); - detailInfoValues.append('span') - .classed('detail-label', true) - .text('p-Value: '); - detailInfoValues.append('span') - .text(pValue); + detailInfoValues.append('span').classed('detail-label', true).text('p-Value: '); + detailInfoValues.append('span').text(pValue); // test description - divDetailInfo.append('div') - .classed('detailDiv', true) - .text('Description: ') - .append('span') - .text(measure.description); + divDetailInfo.append('div').classed('detailDiv', true).text('Description: ').append('span').text(measure.description); } // removes mini visualization with details, and highlighting @@ -552,7 +567,7 @@ export class Compare extends ATask { this.body.selectAll('div.table-container').selectAll('td').classed('selectedCell', false); // remove saved selection from session storage - const selCellObj = {task: this.id, colLabel: null, rowLabels: null}; + const selCellObj = { task: this.id, colLabel: null, rowLabels: null }; log.debug('selectionLabels: ', selCellObj); const selCellObjString = JSON.stringify(selCellObj); sessionStorage.setItem('touringSelCell', selCellObjString); @@ -562,27 +577,19 @@ export class Compare extends ATask { } } - // creates legend for the p-value; copied from tdp_core: // https://github.com/datavisyn/tdp_core/blob/keckelt/122/touring/src/lineup/internal/Touring/Tasks/Tasks.ts#L242 const insertLegend = (parentElement: Selection) => { const divLegend = parentElement.append('div').classed('measure-legend', true); - const svgLegendContainer = divLegend.append('svg') - .attr('width', '100%') - .attr('height', 50); + const svgLegendContainer = divLegend.append('svg').attr('width', '100%').attr('height', 50); // .attr('viewBox','0 0 100% 35') // .attr('preserveAspectRatio','xMaxYMin meet'); const legendId = Date.now(); - const svgDefs = svgLegendContainer.append('defs').append('linearGradient') - .attr('id', 'pValue-gradLegend-' + legendId); - svgDefs.append('stop') - .attr('offset', '0%') - .attr('stop-color', '#000000'); - svgDefs.append('stop') - .attr('offset', '25%') - .attr('stop-color', '#FFFFFF'); + const svgDefs = svgLegendContainer.append('defs').append('linearGradient').attr('id', `pValue-gradLegend-${legendId}`); + svgDefs.append('stop').attr('offset', '0%').attr('stop-color', '#000000'); + svgDefs.append('stop').attr('offset', '25%').attr('stop-color', '#FFFFFF'); let xStart = 0; const yStart = 0; @@ -594,84 +601,126 @@ const insertLegend = (parentElement: Selection this.download()); columnHeader.insertAdjacentHTML('beforeend', ``); this.createLineup(data, attributes, cohorts); @@ -55,34 +66,34 @@ export class Details extends ATask { const idType = getIdTypeFromCohort(cohorts[0] as Cohort); this._entityName = idType.entityName; - const dataPromises = cohorts - .map((cht) => { - const promise = new Promise(async (resolve, reject) => { - const chtDataPromises = attributes.map((attr) => attr.getData(cht.dbId)); - if (attributes.length === 0) { // If Lineup is empty, add entityName as single attribute to be able to show something - chtDataPromises.push(getCohortData({cohortId: cht.dbId, attribute: idType.entityName})); - } - try { - const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort - let joinedData = aq.from(chtData[0]); - for (let i = 1; i < chtData.length; i++) { - joinedData = joinedData.join_full(aq.from(chtData[i])); - } - const labelTable = aq.table({[DATA_LABEL]: [['' + cht.dbId]], ['id_' + cht.dbId]: ['true']}); - joinedData = joinedData.join_left(labelTable, (data, label) => true); - resolve(joinedData.objects()); - } catch (e) { - reject(e); + const dataPromises = cohorts.map((cht) => { + const promise = new Promise(async (resolve, reject) => { + const chtDataPromises = attributes.map((attr) => attr.getData(cht.dbId)); + if (attributes.length === 0) { + // If Lineup is empty, add entityName as single attribute to be able to show something + chtDataPromises.push(getCohortData({ cohortId: cht.dbId, attribute: idType.entityName })); + } + try { + const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort + let joinedData = aq.from(chtData[0]); + for (let i = 1; i < chtData.length; i++) { + joinedData = joinedData.join_full(aq.from(chtData[i])); } - }); - return promise; + const labelTable = aq.table({ [DATA_LABEL]: [[`${cht.dbId}`]], [`id_${cht.dbId}`]: ['true'] }); + joinedData = joinedData.join_left(labelTable, (data, label) => true); + resolve(joinedData.objects()); + } catch (e) { + reject(e); + } }); + return promise; + }); const longData: any[] = (await Promise.all(dataPromises)).flat(); - const map = new Map(); + const map = new Map(); for (const item of longData) { let storedItem = map.get(item[this._entityName]); if (storedItem) { - (storedItem[DATA_LABEL] as Array).push(...item[DATA_LABEL]); + (storedItem[DATA_LABEL] as Array).push(...item[DATA_LABEL]); storedItem = Object.assign(item, storedItem); } else { storedItem = item; @@ -98,23 +109,24 @@ export class Details extends ATask { const builder = LineUpJS.builder(data); // define id column - builder - .column(LineUpJS.buildStringColumn(this._entityName).label('Id').width(120)) - .column(LineUpJS - .buildCategoricalColumn(DATA_LABEL, cohorts.map((cht) => ({name: '' + cht.dbId, label: cht.label, color: (cht as Cohort).colorTaskView}))) + builder.column(LineUpJS.buildStringColumn(this._entityName).label('Id').width(120)).column( + LineUpJS.buildCategoricalColumn( + DATA_LABEL, + cohorts.map((cht) => ({ name: `${cht.dbId}`, label: cht.label, color: (cht as Cohort).colorTaskView })), + ) .renderer('catheatmap', 'categorical') - .asSet() - ); + .asSet(), + ); // define attribute columns for (const attr of attributes) { attr.type = attr.dataKey === this._entityName ? 'string' : attr.type; if (attr.type === 'categorical') { - builder - .column(LineUpJS.buildCategoricalColumn(attr.dataKey).label(attr.label)); + builder.column(LineUpJS.buildCategoricalColumn(attr.dataKey).label(attr.label)); } else if (attr.type === 'number') { builder.column(LineUpJS.buildNumberColumn(attr.dataKey).label(attr.label).colorMapping(colors.barColor)); - } else { // text + } else { + // text builder.column(LineUpJS.buildStringColumn(attr.dataKey).label(attr.label).width(100)); } } @@ -128,10 +140,11 @@ export class Details extends ATask { this.lineup = builder.build(this.$lineUpContainer); } - - getCategoryColorsForColumn(mergedDataArray: any[], attr: IAttribute): {name: string, color: string}[] { + getCategoryColorsForColumn(mergedDataArray: any[], attr: IAttribute): { name: string; color: string }[] { const uniqueCat = Array.from(new Set(mergedDataArray.map((elem) => elem[attr.dataKey]))); - const categoryColors = uniqueCat.map((cat, i) => {return {name: cat, color: CohortColorSchema.get(i)};}); + const categoryColors = uniqueCat.map((cat, i) => { + return { name: cat, color: CohortColorSchema.get(i) }; + }); return categoryColors; } @@ -141,13 +154,12 @@ export class Details extends ATask { } async download() { - const data = await this.lineup.data.exportTable(this.lineup!.data.getRankings()[0], {separator: ';'}); - const b = new Blob([data], {type: 'text/csv'}); + const data = await this.lineup.data.exportTable(this.lineup!.data.getRankings()[0], { separator: ';' }); + const b = new Blob([data], { type: 'text/csv' }); const downloadHelper = this.$columnHeader.querySelector('a#downloadHelper') as HTMLAnchorElement; downloadHelper.href = URL.createObjectURL(b); downloadHelper.download = 'coral-cohorts.csv'; downloadHelper.click(); } - } diff --git a/src/Taskview/tasks/Filter.ts b/src/Taskview/tasks/Filter.ts index 31757bc..a2655b6 100644 --- a/src/Taskview/tasks/Filter.ts +++ b/src/Taskview/tasks/Filter.ts @@ -15,16 +15,23 @@ import {ATask} from './ATask'; export class Filter extends ATask { public label = `View, Filter & Split`; + public id = `filter`; + public hasOutput = true; public vis: AVegaVisualization; + public $visContainer: HTMLDivElement; + controls: Selection; private eventID = 0; - visualizations: {new(): AVegaVisualization}[]; // non-absract subclasses + + visualizations: { new (): AVegaVisualization }[]; // non-absract subclasses + attributes: IAttribute[]; + cohorts: ICohort[]; supports(attributes: IAttribute[], cohorts: ICohort[]) { @@ -61,9 +68,7 @@ export class Filter extends ATask { } addVisSelector() { - this.header.append('div') - .classed('vis-selector', true) - .html(` + this.header.append('div').classed('vis-selector', true).html(`
- `); + `, + ); let nullValueTooltip = ``; for (const [cht, nullValues] of this.nullValueMap.get(this.attribute.dataKey)) { nullValueTooltip += ` ${nullValues}
`; } const selector = `[data-attr="${this.attribute.dataKey}"] .hint`; - tippy(this.controls.querySelectorAll(selector), {content: nullValueTooltip}); - - select(this.controls).select('button.applyBtn').on('click', () => { - const activeTask = select(this.controls).select('.tab-pane.active').attr('id'); - switch (activeTask) { - case 'filter': - this.filter(); - break; - case 'split': - this.split(); - break; - default: - log.error('Unknown task: ', activeTask); - } - }); + tippy(this.controls.querySelectorAll(selector), { content: nullValueTooltip }); + + select(this.controls) + .select('button.applyBtn') + .on('click', () => { + const activeTask = select(this.controls).select('.tab-pane.active').attr('id'); + switch (activeTask) { + case 'filter': + this.filter(); + break; + case 'split': + this.split(); + break; + default: + log.error('Unknown task: ', activeTask); + } + }); - const that = this; //helper varible to access this instance in the d3 event handler function - select(this.controls).selectAll('a[role="tab"]').on('click', function () { - const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity - const newTask = (d3Event as HTMLAnchorElement).hash.replace('#', '') as 'filter' | 'split'; - that.toggleFilterSplitMarks(newTask); - }); + const that = this; // helper varible to access this instance in the d3 event handler function + select(this.controls) + .selectAll('a[role="tab"]') + .on('click', function () { + const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity + const newTask = (d3Event as HTMLAnchorElement).hash.replace('#', '') as 'filter' | 'split'; + that.toggleFilterSplitMarks(newTask); + }); const brushInputs = select(this.controls).selectAll('input.interval'); brushInputs.on('change', function () { @@ -636,7 +708,7 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { return tabPane?.attr('id') as 'filter' | 'split'; } - return 'filter'; //no task open yet, but we always start with filter + return 'filter'; // no task open yet, but we always start with filter } protected toggleFilterSplitMarks(newTask: 'filter' | 'split') { @@ -661,30 +733,35 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { } addCategoricalControls() { - this.controls.insertAdjacentHTML('afterbegin', ` + this.controls.insertAdjacentHTML( + 'afterbegin', + `

Select bars with a mouse click. All bars are selected initially.

- `); + `, + ); const visInstance = this; - select(this.controls).selectAll('button').on('click', function () { - const button = this as HTMLButtonElement; - const task = button.textContent.toLowerCase(); - if (task.indexOf('filter') >= 0) { - visInstance.filter(); - } else if (task.indexOf('split') >= 0) { - visInstance.split(); - } else { - log.error('Unknown task: ', task); - } - }); + select(this.controls) + .selectAll('button') + .on('click', function () { + const button = this as HTMLButtonElement; + const task = button.textContent.toLowerCase(); + if (task.indexOf('filter') >= 0) { + visInstance.filter(); + } else if (task.indexOf('split') >= 0) { + visInstance.split(); + } else { + log.error('Unknown task: ', task); + } + }); } handleBinChangeEvent(event) { - this.vegaView.removeDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener); //remove listener temporarily + this.vegaView.removeDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener); // remove listener temporarily const binCount = parseFloat(event.value); const splitValCount = binCount - 1; @@ -694,52 +771,57 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { const binType = this.controls.querySelector('#split select.binType') as HTMLSelectElement; - if (binType.selectedIndex === 0) { // equal width + if (binType.selectedIndex === 0) { + // equal width this.splitValues = []; for (let i = 1; i <= splitValCount; i++) { const binBorder = min + binWidth * i; - this.splitValues.push({x: binBorder}); + this.splitValues.push({ x: binBorder }); } - } else if (binType.selectedIndex === 1) { // custom width + } else if (binType.selectedIndex === 1) { + // custom width if (this.splitValues.length > splitValCount) { - this.splitValues = this.splitValues.sort((a, b) => a.x - b.x); //sort em - this.splitValues.length = splitValCount; //drop largest split values + this.splitValues = this.splitValues.sort((a, b) => a.x - b.x); // sort em + this.splitValues.length = splitValCount; // drop largest split values } else { while (this.splitValues.length < splitValCount) { - this.splitValues.push({x: max}); // add maximum until there are enough rulers + this.splitValues.push({ x: max }); // add maximum until there are enough rulers } } } else { - this.splitValues = new Array(5).fill({x: 0}).map((x) => ({x})); + this.splitValues = new Array(5).fill({ x: 0 }).map((x) => ({ x })); } - this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE, cloneDeep(this.splitValues)); //set a defensive copy - this.vegaView.runAsync().then((vegaView) => //defer adding signallistener until the new data is set internally - vegaView.addDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener) //add listener again + this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE, cloneDeep(this.splitValues)); // set a defensive copy + this.vegaView.runAsync().then( + ( + vegaView, // defer adding signallistener until the new data is set internally + ) => vegaView.addDataListener(AVegaVisualization.SPLITVALUE_DATA_STORE, this.vegaSplitListener), // add listener again ); } protected vegaBrushListener = (name, value) => this.handleVegaIntervalEvent(name, value); + protected vegaSplitListener = (name, value) => this.handleSplitDragEvent(name, value); handleInputIntervalEvent(event) { - this.vegaView.removeSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //remove listener temporarily + this.vegaView.removeSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); // remove listener temporarily const range = this.getBrushRange(); log.debug('range', range); const scaledRange = this.scaleRange(range); log.debug('scaledRange', scaledRange); - this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME + '_x', scaledRange); + this.vegaView.signal(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_x`, scaledRange); this.vegaView.runAsync(); // update the chart - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //add listener again + this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); // add listener again } protected scaleRange(range: [number, number] | []) { const scaledMin = 0; const scaledMax = this.vegaView.width(); - const scaledRange = [scaledMin, scaledMax]; //use min and max as default for range + const scaledRange = [scaledMin, scaledMax]; // use min and max as default for range const scale = this.vegaView.scale('x'); // if one or both ranges are set, replace with values @@ -750,7 +832,7 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { if (range[1] !== undefined && !isNaN(range[1])) { scaledRange[1] = scale(range[1]); // get max value from input if (range[0] === range[1]) { - scaledRange[1] = scale(range[1]) + Math.pow(10, -10); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) + scaledRange[1] = scale(range[1]) + 10 ** -10; // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) } } @@ -761,7 +843,7 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { if (!select(this.controls).select('input.minimum').empty()) { return [ parseFloat((select(this.controls).select('input.minimum').node() as HTMLInputElement).value), - parseFloat((select(this.controls).select('input.maximum').node() as HTMLInputElement).value) + parseFloat((select(this.controls).select('input.maximum').node() as HTMLInputElement).value), ]; } @@ -774,17 +856,17 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { const upperBound = value[this.field][1]; const inputs = select(this.controls).selectAll('input.interval'); - inputs.on('change', null); //remove listeners temporarily + inputs.on('change', null); // remove listeners temporarily const formatter = format('.4~f'); (select(this.controls).selectAll('input.minimum').node() as HTMLInputElement).value = formatter(lowerBound); (select(this.controls).selectAll('input.maximum').node() as HTMLInputElement).value = formatter(upperBound); - const that = this; //helper varible to access this instance in the d3 event handler function + const that = this; // helper varible to access this instance in the d3 event handler function inputs.on('change', function () { const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); //add listeners again + }); // add listeners again } else { (select(this.controls).selectAll('input.minimum').node() as HTMLInputElement).value = ''; (select(this.controls).selectAll('input.maximum').node() as HTMLInputElement).value = ''; @@ -792,8 +874,9 @@ export abstract class SingleAttributeVisualization extends AVegaVisualization { } handleSplitDragEvent(name, value) { - this.splitValues = this.vegaView.data(AVegaVisualization.SPLITVALUE_DATA_STORE) - .map((val) => ({x: val.x})) //copy vega data (remove Symbols) + this.splitValues = this.vegaView + .data(AVegaVisualization.SPLITVALUE_DATA_STORE) + .map((val) => ({ x: val.x })) // copy vega data (remove Symbols) .sort((a, b) => a.x - b.x); (this.controls.querySelector('#split select.binType') as HTMLSelectElement).selectedIndex = 1; (this.controls.querySelector('#split input.bins') as HTMLInputElement).value = (1 + this.splitValues.length).toString(); diff --git a/src/Taskview/visualizations/AreaChart.ts b/src/Taskview/visualizations/AreaChart.ts index 6c81fa1..d6f8224 100644 --- a/src/Taskview/visualizations/AreaChart.ts +++ b/src/Taskview/visualizations/AreaChart.ts @@ -1,10 +1,10 @@ import log from 'loglevel'; -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {getCohortLabels} from '../../Cohort'; -import {ICohort} from '../../CohortInterfaces'; -import {IdValuePair} from '../../data/Attribute'; -import {DATA_LABEL} from './constants'; -import {MultiAttributeVisualization} from './MultiAttributeVisualization'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { getCohortLabels } from '../../Cohort'; +import { ICohort } from '../../CohortInterfaces'; +import { IdValuePair } from '../../data/Attribute'; +import { DATA_LABEL } from './constants'; +import { MultiAttributeVisualization } from './MultiAttributeVisualization'; export class AreaChart extends MultiAttributeVisualization { static readonly NAME = 'Area Chart'; @@ -13,18 +13,16 @@ export class AreaChart extends MultiAttributeVisualization { super(vegaLiteOptions); } - getSpec(data: IdValuePair[]): VegaLiteSpec { - if (!(this.attributes.length === 2 && this.attributes.every((attr) => ['categorical', 'string'].includes(attr.type)))) { throw new Error(`Area chart requires attributes of type categorical`); // TODO generalize, could also be used for binned numerical } const scatterSpec: VegaLiteSpec = { $schema: 'https://vega.github.io/schema/vega-lite/v5.json', - data: {values: data}, - padding: {left: 5, top: 0, right: 5, bottom: 5}, - mark: {type: 'square', tooltip: true}, + data: { values: data }, + padding: { left: 5, top: 0, right: 5, bottom: 5 }, + mark: { type: 'square', tooltip: true }, encoding: { row: { field: this.attributes[0].dataKey, @@ -33,18 +31,18 @@ export class AreaChart extends MultiAttributeVisualization { header: { labelAngle: 0, labelAlign: 'left', - title: null // We will set a descriptive title for the whole plot - } + title: null, // We will set a descriptive title for the whole plot + }, }, x: { field: this.attributes[1].dataKey, type: 'nominal', - title: null + title: null, }, y: { field: DATA_LABEL, type: 'nominal', - axis: null // hide cohort names + axis: null, // hide cohort names }, color: { // bars will only change color on selection if the type is ordinal/nominal @@ -52,16 +50,16 @@ export class AreaChart extends MultiAttributeVisualization { // which leads to errors on select/hovering selected data (data in the interval) field: DATA_LABEL, type: 'nominal', - scale: {domain: getCohortLabels(this.cohorts)}, - legend: null // custom legend + scale: { domain: getCohortLabels(this.cohorts) }, + legend: null, // custom legend }, size: { aggregate: 'count', type: 'quantitative', - scale: {type: 'linear'} - } + scale: { type: 'linear' }, + }, }, - view: {cursor: 'pointer'} + view: { cursor: 'pointer' }, }; // Get base spec, merge with above @@ -77,7 +75,7 @@ export class AreaChart extends MultiAttributeVisualization { * From == To for categorical data, e.g. FROM: male, TO: male * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) */ - getSelectedData(): {cohort: ICohort, from: string | number, to: string | number}[] { + getSelectedData(): { cohort: ICohort; from: string | number; to: string | number }[] { return []; } diff --git a/src/Taskview/visualizations/DensityPlot.ts b/src/Taskview/visualizations/DensityPlot.ts index 0daeb15..6577b4f 100644 --- a/src/Taskview/visualizations/DensityPlot.ts +++ b/src/Taskview/visualizations/DensityPlot.ts @@ -1,15 +1,16 @@ import {format, select} from 'd3v7'; import log from 'loglevel'; -import {Spec as VegaSpec} from 'vega'; -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {ICohort} from '../../CohortInterfaces'; -import {IdValuePair} from '../../data/Attribute'; -import {AVegaVisualization, SingleAttributeVisualization} from './AVegaVisualization'; -import {DATA_LABEL} from './constants'; -import {countConfig, counts} from './config/CountCounfig'; +import { Spec as VegaSpec } from 'vega'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { ICohort } from '../../CohortInterfaces'; +import { IdValuePair } from '../../data/Attribute'; +import { AVegaVisualization, SingleAttributeVisualization } from './AVegaVisualization'; +import { DATA_LABEL } from './constants'; +import { countConfig, counts } from './config/CountCounfig'; export class DensityPlot extends SingleAttributeVisualization { static readonly NAME = 'Density Plot'; + static readonly TRANSFORMED_ATTRIBUTE = 'value'; // After applying the vega density transform, the attribute is simply called value protected readonly type = 'quantitative'; @@ -17,12 +18,9 @@ export class DensityPlot extends SingleAttributeVisualization { constructor(vegaLiteOptions: Object = {}) { super(vegaLiteOptions); - this.config = [ - {icon: '', label: 'Density Estimation Method', groups: [countConfig]} - ]; + this.config = [{ icon: '', label: 'Density Estimation Method', groups: [countConfig] }]; } - getSpec(data: IdValuePair[]): VegaLiteSpec { this.field = DensityPlot.TRANSFORMED_ATTRIBUTE; // set for interval selection handler @@ -32,17 +30,17 @@ export class DensityPlot extends SingleAttributeVisualization { const vegaSpec: VegaSpec = { $schema: 'https://vega.github.io/schema/vega/v5.json', - autosize: {type: 'fit-x', contains: 'padding'}, + autosize: { type: 'fit-x', contains: 'padding' }, background: 'white', - padding: {left: 5, top: 0, right: 0, bottom: 5}, + padding: { left: 5, top: 0, right: 0, bottom: 5 }, height: 300, style: 'cell', - encode: {update: {cursor: {value: 'text'}}}, + encode: { update: { cursor: { value: 'text' } } }, data: [ - {name: 'selected_store'}, + { name: 'selected_store' }, { name: 'source_0', - values: data.filter((d) => d[this.attribute.dataKey] !== null) + values: data.filter((d) => d[this.attribute.dataKey] !== null), }, { name: 'splitvalues', @@ -51,17 +49,17 @@ export class DensityPlot extends SingleAttributeVisualization { { trigger: 'draggedMark', modify: 'draggedMark', - values: 'dragTo' + values: 'dragTo', }, { trigger: 'addMark', - insert: 'addMark' + insert: 'addMark', }, { trigger: 'remMark', - remove: 'remMark' - } - ] + remove: 'remMark', + }, + ], }, { name: 'data_0', @@ -72,10 +70,10 @@ export class DensityPlot extends SingleAttributeVisualization { field: this.attribute.dataKey, groupby: [DATA_LABEL], counts: countConfig.getSelected().label === counts.label, - as: ['value', 'density'] - } - ] - } + as: ['value', 'density'], + }, + ], + }, ], signals: [ { @@ -84,31 +82,33 @@ export class DensityPlot extends SingleAttributeVisualization { on: [ { update: 'isFinite(containerSize()[0]) ? containerSize()[0] : 200', - events: 'window:resize' - } - ] + events: 'window:resize', + }, + ], }, { name: 'dragTo', on: [ { events: '[@right_grabber:mousedown, window:mouseup] > window:mousemove', - update: '{x: invert(\'x\',x())}' - } - ] + update: "{x: invert('x',x())}", + }, + ], }, { name: 'draggedMark', on: [ { - events: [{ - markname: 'right_grabber', - type: 'mousedown', - filter: ['!event.ctrlKey'] - }], - update: 'group().datum' - } - ] + events: [ + { + markname: 'right_grabber', + type: 'mousedown', + filter: ['!event.ctrlKey'], + }, + ], + update: 'group().datum', + }, + ], }, { name: 'addMark', @@ -118,35 +118,33 @@ export class DensityPlot extends SingleAttributeVisualization { { source: 'view', type: 'click', - filter: ['event.ctrlKey', 'item().mark.name === \'root\''] - } + filter: ['event.ctrlKey', "item().mark.name === 'root'"], + }, ], - update: '{x: invert(\'x\',x())}' - } - ] + update: "{x: invert('x',x())}", + }, + ], }, { name: 'remMark', on: [ { events: [ - {markname: 'right_grabber', type: 'click', filter: 'event.ctrlKey'}, - {markname: 'splitrule', type: 'click', filter: 'event.ctrlKey'} + { markname: 'right_grabber', type: 'click', filter: 'event.ctrlKey' }, + { markname: 'splitrule', type: 'click', filter: 'event.ctrlKey' }, ], - update: 'group().datum' - } - ] + update: 'group().datum', + }, + ], }, { name: 'unit', value: {}, - on: [ - {events: 'mousemove', update: 'isTuple(group()) ? group() : unit'} - ] + on: [{ events: 'mousemove', update: 'isTuple(group()) ? group() : unit' }], }, { name: 'selected', - update: 'vlSelectionResolve(\'selected_store\', \'union\')' + update: "vlSelectionResolve('selected_store', 'union')", }, { name: 'selected_x', @@ -156,12 +154,9 @@ export class DensityPlot extends SingleAttributeVisualization { events: { source: 'view', type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] + filter: ["!event.item || event.item.mark.name !== 'selected_brush'", "event.item.mark.name !== 'right_grabber'"], }, - update: '[x(unit), x(unit)]' + update: '[x(unit), x(unit)]', }, { events: { @@ -172,72 +167,71 @@ export class DensityPlot extends SingleAttributeVisualization { { source: 'scope', type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] + filter: ["!event.item || event.item.mark.name !== 'selected_brush'", "event.item.mark.name !== 'right_grabber'"], }, - {source: 'window', type: 'mouseup'} - ] + { source: 'window', type: 'mouseup' }, + ], }, - update: '[selected_x[0], clamp(x(unit), 0, width)]' + update: '[selected_x[0], clamp(x(unit), 0, width)]', }, { - events: {signal: 'selected_scale_trigger'}, - update: '[scale(\'x\', selected_value[0]), scale(\'x\', selected_value[1])]' + events: { signal: 'selected_scale_trigger' }, + update: "[scale('x', selected_value[0]), scale('x', selected_value[1])]", }, { - events: [{ - source: 'view', - type: 'dblclick', - filter: [ - 'event.item.mark.name !== \'right_grabber\'' - ] - }], - update: '[0, 0]' + events: [ + { + source: 'view', + type: 'dblclick', + filter: ["event.item.mark.name !== 'right_grabber'"], + }, + ], + update: '[0, 0]', }, { - events: {signal: 'selected_translate_delta'}, - update: 'clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)' + events: { signal: 'selected_translate_delta' }, + update: + 'clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)', }, { - events: {signal: 'selected_zoom_delta'}, - update: 'clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)' - } - ] + events: { signal: 'selected_zoom_delta' }, + update: 'clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)', + }, + ], }, { name: 'selected_value', value: this.getBrushRange(), on: [ { - events: {signal: 'selected_x'}, - update: 'selected_x[0] === selected_x[1] ? null : invert(\'x\', selected_x)' - } - ] + events: { signal: 'selected_x' }, + update: "selected_x[0] === selected_x[1] ? null : invert('x', selected_x)", + }, + ], }, { name: 'selected_scale_trigger', value: {}, on: [ { - events: [{scale: 'x'}], - update: '(!isArray(selected_value) || (+invert(\'x\', selected_x)[0] === +selected_value[0] && +invert(\'x\', selected_x)[1] === +selected_value[1])) ? selected_scale_trigger : {}' - } - ] + events: [{ scale: 'x' }], + update: + "(!isArray(selected_value) || (+invert('x', selected_x)[0] === +selected_value[0] && +invert('x', selected_x)[1] === +selected_value[1])) ? selected_scale_trigger : {}", + }, + ], }, { name: 'selected_tuple', on: [ { - events: [{signal: 'selected_value'}], - update: 'selected_value ? {unit: \'layer_0\', fields: selected_tuple_fields, values: [selected_value]} : null' - } - ] + events: [{ signal: 'selected_value' }], + update: "selected_value ? {unit: 'layer_0', fields: selected_tuple_fields, values: [selected_value]} : null", + }, + ], }, { name: 'selected_tuple_fields', - value: [{field: 'value', channel: 'x', type: 'R'}] + value: [{ field: 'value', channel: 'x', type: 'R' }], }, { name: 'selected_translate_anchor', @@ -248,12 +242,12 @@ export class DensityPlot extends SingleAttributeVisualization { { source: 'scope', type: 'mousedown', - markname: 'selected_brush' - } + markname: 'selected_brush', + }, ], - update: '{x: x(unit), y: y(unit), extent_x: slice(selected_x)}' - } - ] + update: '{x: x(unit), y: y(unit), extent_x: slice(selected_x)}', + }, + ], }, { name: 'selected_translate_delta', @@ -269,15 +263,15 @@ export class DensityPlot extends SingleAttributeVisualization { { source: 'scope', type: 'mousedown', - markname: 'selected_brush' + markname: 'selected_brush', }, - {source: 'window', type: 'mouseup'} - ] - } + { source: 'window', type: 'mouseup' }, + ], + }, ], - update: '{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}' - } - ] + update: '{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}', + }, + ], }, { name: 'selected_zoom_anchor', @@ -288,12 +282,12 @@ export class DensityPlot extends SingleAttributeVisualization { source: 'scope', type: 'wheel', consume: true, - markname: 'selected_brush' - } + markname: 'selected_brush', + }, ], - update: '{x: x(unit), y: y(unit)}' - } - ] + update: '{x: x(unit), y: y(unit)}', + }, + ], }, { name: 'selected_zoom_delta', @@ -304,23 +298,23 @@ export class DensityPlot extends SingleAttributeVisualization { source: 'scope', type: 'wheel', consume: true, - markname: 'selected_brush' - } + markname: 'selected_brush', + }, ], force: true, - update: 'pow(1.001, event.deltaY * pow(16, event.deltaMode))' - } - ] + update: 'pow(1.001, event.deltaY * pow(16, event.deltaMode))', + }, + ], }, { name: 'selected_modify', on: [ { - events: {signal: 'selected_tuple'}, - update: 'modify(\'selected_store\', selected_tuple, true)' - } - ] - } + events: { signal: 'selected_tuple' }, + update: "modify('selected_store', selected_tuple, true)", + }, + ], + }, ], marks: [ { @@ -328,38 +322,38 @@ export class DensityPlot extends SingleAttributeVisualization { type: 'rect', clip: true, encode: { - enter: {fill: {value: '#333'}, fillOpacity: {value: 0.125}}, + enter: { fill: { value: '#333' }, fillOpacity: { value: 0.125 } }, update: { x: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[0]', }, - {value: 0} + { value: 0 }, ], y: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + value: 0, }, - {value: 0} + { value: 0 }, ], x2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[1]', }, - {value: 0} + { value: 0 }, ], y2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: {group: 'height'} + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + field: { group: 'height' }, }, - {value: 0} - ] - } - } + { value: 0 }, + ], + }, + }, }, { name: 'layer_0_pathgroup', @@ -368,42 +362,42 @@ export class DensityPlot extends SingleAttributeVisualization { facet: { name: 'faceted_path_layer_0_main', data: 'data_0', - groupby: [DATA_LABEL] - } + groupby: [DATA_LABEL], + }, }, encode: { update: { - width: {field: {group: 'width'}}, - height: {field: {group: 'height'}} - } + width: { field: { group: 'width' } }, + height: { field: { group: 'height' } }, + }, }, marks: [ { name: 'layer_0_marks', type: 'line', style: ['line'], - sort: {field: ['datum[\'value\']'], order: ['ascending']}, + sort: { field: ["datum['value']"], order: ['ascending'] }, interactive: true, - from: {data: 'faceted_path_layer_0_main'}, + from: { data: 'faceted_path_layer_0_main' }, encode: { update: { - cursor: {value: 'text'}, + cursor: { value: 'text' }, tooltip: { - signal: `{\'${this.attribute.label}\': format(datum[\'value\'], \'\'), \'Density\': format(datum[\'density\'], \'\'), \'value\': format(datum[\'value\'], \'\'), \'${DATA_LABEL}\': isValid(datum[\'${DATA_LABEL}\']) ? datum[\'${DATA_LABEL}\'] : \'\'+datum[\'${DATA_LABEL}\']}` + signal: `{\'${this.attribute.label}\': format(datum[\'value\'], \'\'), \'Density\': format(datum[\'density\'], \'\'), \'value\': format(datum[\'value\'], \'\'), \'${DATA_LABEL}\': isValid(datum[\'${DATA_LABEL}\']) ? datum[\'${DATA_LABEL}\'] : \'\'+datum[\'${DATA_LABEL}\']}`, }, - stroke: {scale: 'color', field: DATA_LABEL}, + stroke: { scale: 'color', field: DATA_LABEL }, description: { - signal: `\'${this.attribute.label}: \' + (format(datum[\'value\'], \'\')) + \'; Density: \' + (format(datum[\'density\'], \'\')) + \'; value: \' + (format(datum[\'value\'], \'\')) + \'; ${DATA_LABEL}: \' + (isValid(datum[\'${DATA_LABEL}\']) ? datum[\'${DATA_LABEL}\'] : \'\'+datum[\'${DATA_LABEL}\'])` + signal: `\'${this.attribute.label}: \' + (format(datum[\'value\'], \'\')) + \'; Density: \' + (format(datum[\'density\'], \'\')) + \'; value: \' + (format(datum[\'value\'], \'\')) + \'; ${DATA_LABEL}: \' + (isValid(datum[\'${DATA_LABEL}\']) ? datum[\'${DATA_LABEL}\'] : \'\'+datum[\'${DATA_LABEL}\'])`, }, - x: {scale: 'x', field: 'value'}, - y: {scale: 'y', field: 'density'}, + x: { scale: 'x', field: 'value' }, + y: { scale: 'y', field: 'density' }, defined: { - signal: 'isValid(datum[\'value\']) && isFinite(+datum[\'value\']) && isValid(datum[\'density\']) && isFinite(+datum[\'density\'])' - } - } - } - } - ] + signal: "isValid(datum['value']) && isFinite(+datum['value']) && isValid(datum['density']) && isFinite(+datum['density'])", + }, + }, + }, + }, + ], }, { name: 'selected_brush', @@ -411,60 +405,57 @@ export class DensityPlot extends SingleAttributeVisualization { clip: true, encode: { enter: { - cursor: {value: 'pointer'}, - fill: {value: 'transparent'} + cursor: { value: 'pointer' }, + fill: { value: 'transparent' }, }, update: { x: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[0]', }, - {value: 0} + { value: 0 }, ], y: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + value: 0, }, - {value: 0} + { value: 0 }, ], x2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[1]', }, - {value: 0} + { value: 0 }, ], y2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: {group: 'height'} + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + field: { group: 'height' }, }, - {value: 0} + { value: 0 }, ], - stroke: [ - {test: 'selected_x[0] !== selected_x[1]', value: 'white'}, - {value: null} - ] - } - } + stroke: [{ test: 'selected_x[0] !== selected_x[1]', value: 'white' }, { value: null }], + }, + }, }, { name: 'splitmarks', type: 'group', - from: {data: 'splitvalues'}, + from: { data: 'splitvalues' }, encode: { - enter: {height: {field: {group: 'height'}}}, + enter: { height: { field: { group: 'height' } } }, update: { x: [ { - test: '!isValid(datum[\'x\']) || !isFinite(+datum[\'x\'])', - value: 0 + test: "!isValid(datum['x']) || !isFinite(+datum['x'])", + value: 0, }, - {scale: 'x', field: 'x'} - ] - } + { scale: 'x', field: 'x' }, + ], + }, }, marks: [ { @@ -473,85 +464,86 @@ export class DensityPlot extends SingleAttributeVisualization { style: ['rule'], encode: { update: { - strokeDash: {value: [4, 6]}, - stroke: {value: 'black'}, - y: {value: 0}, - y2: {field: {group: 'height'}} - } - } + strokeDash: { value: [4, 6] }, + stroke: { value: 'black' }, + y: { value: 0 }, + y2: { field: { group: 'height' } }, + }, + }, }, { type: 'path', name: 'right_grabber', encode: { enter: { - y: {field: {group: 'height'}, mult: 0.5, offset: -50}, - fill: {value: '#fff'}, - stroke: {value: '#666'}, - cursor: {value: 'ew-resize'} + y: { field: { group: 'height' }, mult: 0.5, offset: -50 }, + fill: { value: '#fff' }, + stroke: { value: '#666' }, + cursor: { value: 'ew-resize' }, }, update: { path: { - signal: '\'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667\'' - } - } - } - } - ] - } + signal: + "'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667'", + }, + }, + }, + }, + ], + }, ], scales: [ { name: 'x', - ... this.attribute.preferLog ? {type: 'log', base: 10} : {type: 'linear', zero: false}, - domain: {data: 'data_0', field: 'value'}, - range: [0, {signal: 'width'}], + ...(this.attribute.preferLog ? { type: 'log', base: 10 } : { type: 'linear', zero: false }), + domain: { data: 'data_0', field: 'value' }, + range: [0, { signal: 'width' }], clamp: true, - nice: false + nice: false, }, { name: 'y', type: 'linear', - domain: {data: 'data_0', field: 'density'}, - range: [{signal: 'height'}, 0], + domain: { data: 'data_0', field: 'density' }, + range: [{ signal: 'height' }, 0], nice: true, - zero: true + zero: true, }, { name: 'color', type: 'ordinal', - domain: {data: 'data_0', field: DATA_LABEL}, - range: 'category' - } + domain: { data: 'data_0', field: DATA_LABEL }, + range: 'category', + }, ], axes: [ { scale: 'x', orient: 'bottom', gridScale: 'y', - grid: true, - tickCount: {signal: 'ceil(width/40)'}, + grid: false, + tickCount: { signal: 'ceil(width/40)' }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 + zindex: 0, }, { scale: 'y', orient: 'left', gridScale: 'x', - grid: true, - tickCount: {signal: 'ceil(height/40)'}, + grid: false, + tickCount: { signal: 'ceil(height/40)' }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 + zindex: 0, }, { scale: 'x', @@ -559,20 +551,20 @@ export class DensityPlot extends SingleAttributeVisualization { grid: false, title: this.attribute.label, labelFlush: true, - tickCount: {signal: 'ceil(width/40)'}, - zindex: 0 + tickCount: { signal: 'ceil(width/40)' }, + zindex: 0, }, { scale: 'y', orient: 'left', grid: false, title: 'Density', - tickCount: {signal: 'ceil(height/40)'}, - zindex: 0 - } + tickCount: { signal: 'ceil(height/40)' }, + zindex: 0, + }, ], config: { - range: {category: this.colorPalette}, + range: { category: this.colorPalette }, axis: { titleFontSize: 16, titleFontWeight: 500, @@ -582,7 +574,7 @@ export class DensityPlot extends SingleAttributeVisualization { labelFont: 'Roboto', labelOverlap: 'parity', labelSeparation: 5, - labelBound: true + labelBound: true, }, legend: { titleFontSize: 16, @@ -591,20 +583,20 @@ export class DensityPlot extends SingleAttributeVisualization { labelFontSize: 12, labelLimit: 150, labelFont: 'Roboto', - labelOverlap: 'parity' - } - } + labelOverlap: 'parity', + }, + }, }; - return vegaSpec as unknown as VegaLiteSpec; //little workaround because the multiple types supported by vegaEmbed are not recognized correctly + return vegaSpec as unknown as VegaLiteSpec; // little workaround because the multiple types supported by vegaEmbed are not recognized correctly } /** * From == To for categorical data, e.g. FROM: male, TO: male * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) */ - getSelectedData(): {cohort: ICohort, from: string | number, to: string | number}[] { - const filters: {cohort: ICohort, from: string | number, to: string | number}[] = []; + getSelectedData(): { cohort: ICohort; from: string | number; to: string | number }[] { + const filters: { cohort: ICohort; from: string | number; to: string | number }[] = []; const formatter = format('.6~f'); // round numbers to 6 decimal digits if (!this.hideVisualization) { const selections = this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME); @@ -613,7 +605,7 @@ export class DensityPlot extends SingleAttributeVisualization { attrSelection = this.vegaView.scale('x').domain(); } this.cohorts.forEach((cohort) => { - filters.push({from: formatter(attrSelection[0]), to: formatter(attrSelection[1]), cohort}); + filters.push({ from: formatter(attrSelection[0]), to: formatter(attrSelection[1]), cohort }); const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); if (nullFilter) { diff --git a/src/Taskview/visualizations/GroupedBoxplot.ts b/src/Taskview/visualizations/GroupedBoxplot.ts index 1194d4e..6fb6c8e 100644 --- a/src/Taskview/visualizations/GroupedBoxplot.ts +++ b/src/Taskview/visualizations/GroupedBoxplot.ts @@ -1,29 +1,30 @@ import {format, select} from 'd3v7'; import log from 'loglevel'; -import {Spec as VegaSpec} from 'vega'; -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {ICohort} from '../../CohortInterfaces'; -import {IAttribute, IdValuePair} from '../../data/Attribute'; -import {NumRangeOperators} from '../../rest'; -import {IAttributeFilter, IFilterDesc} from '../../util'; -import {FilterEvent, SplitEvent} from '../../utilCustomEvents'; -import {AVegaVisualization} from './AVegaVisualization'; -import {groupByConfig} from './config/GroupConfig'; -import {BRUSH_DATA_END, BRUSH_DATA_NAME, BRUSH_DATA_START, DATA_LABEL} from './constants'; -import {MultiAttributeVisualization} from './MultiAttributeVisualization'; +import { Spec as VegaSpec } from 'vega'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { ICohort } from '../../CohortInterfaces'; +import { IAttribute, IdValuePair } from '../../data/Attribute'; +import { NumRangeOperators } from '../../rest'; +import { IAttributeFilter, IFilterDesc } from '../../util'; +import { FilterEvent, SplitEvent } from '../../utilCustomEvents'; +import { AVegaVisualization } from './AVegaVisualization'; +import { groupByConfig } from './config/GroupConfig'; +import { BRUSH_DATA_END, BRUSH_DATA_NAME, BRUSH_DATA_START, DATA_LABEL } from './constants'; +import { MultiAttributeVisualization } from './MultiAttributeVisualization'; export class GroupedBoxplot extends MultiAttributeVisualization { static readonly NAME = 'Boxplot'; + catAttribute: IAttribute; + numAttribute: IAttribute; + brushData: object[] = []; constructor(vegaLiteOptions: Object = {}) { super(vegaLiteOptions); - this.config = [ - {icon: '', label: 'Group', groups: [groupByConfig]} - ]; + this.config = [{ icon: '', label: 'Group', groups: [groupByConfig] }]; } async showImpl(chart: HTMLDivElement, data: Array) { @@ -34,7 +35,8 @@ export class GroupedBoxplot extends MultiAttributeVisualization { } addIntervalSelection(spec) { - if (!spec.params) { // create if not existing + if (!spec.params) { + // create if not existing spec.params = []; } @@ -44,20 +46,20 @@ export class GroupedBoxplot extends MultiAttributeVisualization { name: AVegaVisualization.SELECTION_SIGNAL_NAME, select: { type: 'interval', - mark: {fillOpacity: 0, strokeOpacity: 0, cursor: 'pointer'}, + mark: { fillOpacity: 0, strokeOpacity: 0, cursor: 'pointer' }, encodings: ['x'], - resolve: 'global' + resolve: 'global', }, - ... (range.length > 0 ? {value: {x: range}} : {}) + ...(range.length > 0 ? { value: { x: range } } : {}), }); } protected addIntervalControls(attributeLabel: string, axis) { - super.addIntervalControls(attributeLabel, 'x'); //always x + super.addIntervalControls(attributeLabel, 'x'); // always x } handleInputIntervalEvent(event) { - this.vegaView.removeSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //remove listener temporarily + this.vegaView.removeSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); // remove listener temporarily const range = this.getInterval('x'); log.debug('range', range); @@ -71,18 +73,18 @@ export class GroupedBoxplot extends MultiAttributeVisualization { if (range[1] !== undefined && !isNaN(range[1])) { newRange[1] = range[1]; // get max value from input if (range[0] === range[1]) { - newRange[1] = scale.invert(scale(range[1]) + Math.pow(10, -10)); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) + newRange[1] = scale.invert(scale(range[1]) + 10 ** -10); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) } } log.info('scaledRange', newRange); // Set brushes' data - this.brushData = [{[BRUSH_DATA_START]: newRange[0], [BRUSH_DATA_END]: newRange[1]}]; + this.brushData = [{ [BRUSH_DATA_START]: newRange[0], [BRUSH_DATA_END]: newRange[1] }]; this.vegaView.data(BRUSH_DATA_NAME, this.brushData); super.clearSelection(); // clear Vega's transparent brush because it no longer matches the custom brushes this.vegaView.runAsync(); // update the chart - this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); //remove listener temporarily + this.vegaView.addSignalListener(AVegaVisualization.SELECTION_SIGNAL_NAME, this.vegaBrushListener); // remove listener temporarily } handleVegaIntervalEvent(name, interval: object) { @@ -94,24 +96,24 @@ export class GroupedBoxplot extends MultiAttributeVisualization { const upperBound = interval[BRUSH_DATA_START][1]; const inputs = select(this.controls).selectAll('input.interval'); - inputs.on('change', null); //remove listeners temporarily + inputs.on('change', null); // remove listeners temporarily const formatter = format('.4~f'); (select(this.controls).selectAll('input.minimum').node() as HTMLInputElement).value = formatter(lowerBound); (select(this.controls).selectAll('input.maximum').node() as HTMLInputElement).value = formatter(upperBound); // Set brushes' data - this.brushData = [{[BRUSH_DATA_START]: lowerBound, [BRUSH_DATA_END]: upperBound}]; + this.brushData = [{ [BRUSH_DATA_START]: lowerBound, [BRUSH_DATA_END]: upperBound }]; this.vegaView.data(BRUSH_DATA_NAME, this.brushData); - const that = this; //helper varible to access this instance in the d3 event handler function + const that = this; // helper varible to access this instance in the d3 event handler function inputs.on('change', function () { const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance - }); //add listeners again + }); // add listeners again } else { (select(this.controls).selectAll('input.minimum').node() as HTMLInputElement).value = ''; - (select(this.controls).selectAll('input.maximum').node() as HTMLInputElement).value = ''; // Set brushes' data + (select(this.controls).selectAll('input.maximum').node() as HTMLInputElement).value = ''; // Set brushes' data this.brushData = []; this.vegaView.data(BRUSH_DATA_NAME, this.brushData); } @@ -119,7 +121,6 @@ export class GroupedBoxplot extends MultiAttributeVisualization { } else { // nothing to do because the vega brush is transparent } - } clearSelection() { @@ -129,50 +130,54 @@ export class GroupedBoxplot extends MultiAttributeVisualization { this.vegaView.runAsync(); } - getSelectedData(): {cohort: ICohort, from: string | number, to: string | number}[] { + getSelectedData(): { cohort: ICohort; from: string | number; to: string | number }[] { return []; } filter() { const interval = this.getInterval('x'); - const range = [{ - operatorOne: NumRangeOperators.gte, - valueOne: interval[0], - operatorTwo: NumRangeOperators.lte, - valueTwo: interval[1] - }]; + const range = [ + { + operatorOne: NumRangeOperators.gte, + valueOne: interval[0], + operatorTwo: NumRangeOperators.lte, + valueTwo: interval[1], + }, + ]; if (this.getNullCheckboxState(this.numAttribute)) { range.push({ operatorOne: NumRangeOperators.gte, valueOne: null, operatorTwo: NumRangeOperators.lte, - valueTwo: null + valueTwo: null, }); } const categories = this.vegaView.data('row_domain').map((row) => row[this.catAttribute.dataKey]); const filterDescs: IFilterDesc[] = []; - for (const cht of this.cohorts) { //every cohort + for (const cht of this.cohorts) { + // every cohort // NUM Filter - for (const cat of categories) { // every category + for (const cat of categories) { + // every category const filter: IAttributeFilter[] = []; // filter by numerical range and ... filter.push({ attr: this.numAttribute, - range + range, }); // ... filter by category filter.push({ attr: this.catAttribute, - range: {values: [String(cat)]} + range: { values: [String(cat)] }, }); // store filter with cohort filterDescs.push({ cohort: cht, - filter + filter, }); } } @@ -185,32 +190,37 @@ export class GroupedBoxplot extends MultiAttributeVisualization { const [minX, maxX] = this.vegaView.scale('x').domain(); const filterDescs: IFilterDesc[] = []; - for (const cht of this.cohorts) { //every cohort + for (const cht of this.cohorts) { + // every cohort // NUM Filter - for (const cat of categories) { // every category - for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { //every range + for (const cat of categories) { + // every category + for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { + // every range const filter: IAttributeFilter[] = []; // filter by numerical range and ... filter.push({ attr: this.numAttribute, - range: [this.getGeneralNumericalFilter( - ix >= 1 ? this.splitValuesX[ix - 1] : minX, - splitX, - NumRangeOperators.gte, - splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt) - ] + range: [ + this.getGeneralNumericalFilter( + ix >= 1 ? this.splitValuesX[ix - 1] : minX, + splitX, + NumRangeOperators.gte, + splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt, + ), + ], }); // ... filter by category filter.push({ attr: this.catAttribute, - range: {values: [String(cat)]} + range: { values: [String(cat)] }, }); // store filter with cohort filterDescs.push({ cohort: cht, - filter + filter, }); } if (this.getNullCheckboxState(this.numAttribute)) { @@ -219,10 +229,10 @@ export class GroupedBoxplot extends MultiAttributeVisualization { filter: [ { attr: this.numAttribute, - range: [{operatorOne: NumRangeOperators.gte, valueOne: null, operatorTwo: NumRangeOperators.lte, valueTwo: null}] + range: [{ operatorOne: NumRangeOperators.gte, valueOne: null, operatorTwo: NumRangeOperators.lte, valueTwo: null }], }, - {attr: this.catAttribute, range: {values: [String(cat)]}} - ] + { attr: this.catAttribute, range: { values: [String(cat)] } }, + ], }); } } @@ -231,7 +241,6 @@ export class GroupedBoxplot extends MultiAttributeVisualization { this.container.dispatchEvent(new SplitEvent(filterDescs)); } - getSpec(data: IdValuePair[]): VegaLiteSpec { this.catAttribute = this.attributes.find((attr) => ['categorical', 'string'].includes(attr.type)); this.numAttribute = this.attributes.find((attr) => attr.type === `number`); @@ -240,41 +249,43 @@ export class GroupedBoxplot extends MultiAttributeVisualization { throw new Error(`Boxplot requires attributes of type number and categorical`); } - const [yField, rowField] = groupByConfig.getSelected().label === 'Same Category' ? [DATA_LABEL, this.catAttribute.dataKey] : [this.catAttribute.dataKey, DATA_LABEL]; + const [yField, rowField] = + groupByConfig.getSelected().label === 'Same Category' ? [DATA_LABEL, this.catAttribute.dataKey] : [this.catAttribute.dataKey, DATA_LABEL]; const vegaSpec: VegaSpec = { $schema: `https://vega.github.io/schema/vega/v5.json`, background: `white`, - padding: {left: 5, top: 0, right: 5, bottom: 5}, + padding: { left: 5, top: 0, right: 5, bottom: 5 }, data: [ - {name: `selected_store`}, + { name: `selected_store` }, { name: `source_0`, - values: data + values: data, }, - {name: BRUSH_DATA_NAME, values: this.brushData}, + { name: BRUSH_DATA_NAME, values: this.brushData }, { - name: `splitvalues_x`, values: this.splitValuesX, + name: `splitvalues_x`, + values: this.splitValuesX, on: [ { trigger: `draggedMark_x`, modify: `draggedMark_x`, - values: `dragTo_x` + values: `dragTo_x`, }, { trigger: `addMark_x`, - insert: `addMark_x` + insert: `addMark_x`, }, { trigger: `remMark_x`, - remove: `remMark_x` - } - ] + remove: `remMark_x`, + }, + ], }, { name: `row_domain`, source: `source_0`, - transform: [{type: `aggregate`, groupby: [rowField]}] + transform: [{ type: `aggregate`, groupby: [rowField] }], }, { name: `data_2`, @@ -285,9 +296,9 @@ export class GroupedBoxplot extends MultiAttributeVisualization { as: [`lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], ops: [`q1`, `q3`], fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], - groupby: [yField, rowField] - } - ] + groupby: [yField, rowField], + }, + ], }, { name: `data_3`, @@ -295,13 +306,13 @@ export class GroupedBoxplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `(datum['${this.numAttribute.dataKey}'] < datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}'])) || (datum['${this.numAttribute.dataKey}'] > datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` + expr: `(datum['${this.numAttribute.dataKey}'] < datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}'])) || (datum['${this.numAttribute.dataKey}'] > datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))`, }, { type: `filter`, - expr: `isValid(datum['${this.numAttribute.dataKey}']) && isFinite(+datum['${this.numAttribute.dataKey}'])` - } - ] + expr: `isValid(datum['${this.numAttribute.dataKey}']) && isFinite(+datum['${this.numAttribute.dataKey}'])`, + }, + ], }, { name: `data_4`, @@ -309,21 +320,26 @@ export class GroupedBoxplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `(datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']) <= datum['${this.numAttribute.dataKey}']) && (datum['${this.numAttribute.dataKey}'] <= datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` + expr: `(datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']) <= datum['${this.numAttribute.dataKey}']) && (datum['${this.numAttribute.dataKey}'] <= datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))`, }, { type: `aggregate`, groupby: [yField, rowField], ops: [`min`, `max`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], + fields: [ + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `lower_box_${this.numAttribute.dataKey}`, + `upper_box_${this.numAttribute.dataKey}`, + ], as: [ `lower_whisker_${this.numAttribute.dataKey}`, `upper_whisker_${this.numAttribute.dataKey}`, `lower_box_${this.numAttribute.dataKey}`, - `upper_box_${this.numAttribute.dataKey}` - ] - } - ] + `upper_box_${this.numAttribute.dataKey}`, + ], + }, + ], }, { name: `data_5`, @@ -333,16 +349,22 @@ export class GroupedBoxplot extends MultiAttributeVisualization { type: `aggregate`, groupby: [yField, rowField], ops: [`q1`, `q3`, `median`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], + fields: [ + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + ], as: [ `lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`, `mid_box_${this.numAttribute.dataKey}`, `min_${this.numAttribute.dataKey}`, - `max_${this.numAttribute.dataKey}` - ] - } - ] + `max_${this.numAttribute.dataKey}`, + ], + }, + ], }, { name: `data_6`, @@ -350,9 +372,9 @@ export class GroupedBoxplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `isValid(datum['brush_start']) && isFinite(+datum['brush_start'])` - } - ] + expr: `isValid(datum['brush_start']) && isFinite(+datum['brush_start'])`, + }, + ], }, { name: `data_7`, @@ -360,37 +382,35 @@ export class GroupedBoxplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `isValid(datum['data']) && isFinite(+datum['data'])` - } - ] - } + expr: `isValid(datum['data']) && isFinite(+datum['data'])`, + }, + ], + }, ], signals: [ - {name: `child_width`, value: 520}, - {name: `y_step`, value: 20}, + { name: `child_width`, value: 520 }, + { name: `y_step`, value: 20 }, { name: `child_height`, - update: `bandspace(domain('y').length, 0, 0) * y_step` + update: `bandspace(domain('y').length, 0, 0) * y_step`, }, { name: `unit`, value: {}, - on: [ - {events: `mousemove`, update: `isTuple(group()) ? group() : unit`} - ] + on: [{ events: `mousemove`, update: `isTuple(group()) ? group() : unit` }], }, { name: `selected`, - update: `vlSelectionResolve('selected_store', 'union')` + update: `vlSelectionResolve('selected_store', 'union')`, }, { name: `dragTo_x`, on: [ { events: `[@grabber_x:mousedown, window:mouseup] > window:mousemove`, - update: `{data: invert('x',x())}` - } - ] + update: `{data: invert('x',x())}`, + }, + ], }, { name: `draggedMark_x`, @@ -400,14 +420,12 @@ export class GroupedBoxplot extends MultiAttributeVisualization { { markname: `grabber_x`, type: `mousedown`, - filter: [ - `!event.ctrlKey` - ] - } + filter: [`!event.ctrlKey`], + }, ], - update: `group().datum` - } - ] + update: `group().datum`, + }, + ], }, { name: `addMark_x`, @@ -417,15 +435,12 @@ export class GroupedBoxplot extends MultiAttributeVisualization { { source: `view`, type: `click`, - filter: [ - `event.ctrlKey`, - `item().mark.name !== 'grabber_x'` - ] - } + filter: [`event.ctrlKey`, `item().mark.name !== 'grabber_x'`], + }, ], - update: `{data: invert('x',x())}` - } - ] + update: `{data: invert('x',x())}`, + }, + ], }, { name: `remMark_x`, @@ -435,26 +450,26 @@ export class GroupedBoxplot extends MultiAttributeVisualization { { markname: `grabber_x`, type: `click`, - filter: `event.ctrlKey` + filter: `event.ctrlKey`, }, { markname: `splitrule_x`, type: `click`, - filter: `event.ctrlKey` - } + filter: `event.ctrlKey`, + }, ], - update: `group().datum` - } - ] - } + update: `group().datum`, + }, + ], + }, ], layout: { - padding: {row: -2, column: 20}, - offset: {rowTitle: 10}, + padding: { row: -2, column: 20 }, + offset: { rowTitle: 10 }, columns: 1, bounds: `full`, align: `all`, - titleBand: {row: 0} + titleBand: { row: 0 }, }, marks: [ { @@ -470,47 +485,53 @@ export class GroupedBoxplot extends MultiAttributeVisualization { font: `Roboto`, fontSize: 16, fontWeight: 500, - offset: 10 - } + offset: 10, + }, }, { name: `row_header`, type: `group`, role: `row-header`, - from: {data: `row_domain`}, - sort: {field: `datum['${rowField}']`, order: `ascending`}, - title: groupByConfig.getSelected().label === 'Same Cohort' ? null : { - text: { - signal: `isValid(parent['${this.catAttribute.dataKey}']) ? parent['${this.catAttribute.dataKey}'] : ''+parent['${this.catAttribute.dataKey}']` - }, - orient: `left`, - style: `guide-label`, - frame: `group`, - baseline: `middle`, - align: `left`, - angle: 0, - font: `Roboto`, - fontSize: 12, - limit: 150, - offset: 10 - }, - axes: groupByConfig.getSelected().label === 'Same Cohort' ? [ - { - scale: 'y', - orient: 'left', - grid: false, - domain: false, - ticks: false, - zindex: 0 - } - ] : [], - encode: {update: {height: {signal: `child_height`}}} + from: { data: `row_domain` }, + sort: { field: `datum['${rowField}']`, order: `ascending` }, + title: + groupByConfig.getSelected().label === 'Same Cohort' + ? null + : { + text: { + signal: `isValid(parent['${this.catAttribute.dataKey}']) ? parent['${this.catAttribute.dataKey}'] : ''+parent['${this.catAttribute.dataKey}']`, + }, + orient: `left`, + style: `guide-label`, + frame: `group`, + baseline: `middle`, + align: `left`, + angle: 0, + font: `Roboto`, + fontSize: 12, + limit: 150, + offset: 10, + }, + axes: + groupByConfig.getSelected().label === 'Same Cohort' + ? [ + { + scale: 'y', + orient: 'left', + grid: false, + domain: false, + ticks: false, + zindex: 0, + }, + ] + : [], + encode: { update: { height: { signal: `child_height` } } }, }, { name: `column_header`, type: `group`, role: `column-header`, - encode: {update: {width: {signal: `child_width`}}}, + encode: { update: { width: { signal: `child_width` } } }, axes: [ { scale: `x`, @@ -518,19 +539,19 @@ export class GroupedBoxplot extends MultiAttributeVisualization { grid: false, title: this.numAttribute.label, labelFlush: true, - tickCount: {signal: `ceil(child_width/40)`}, - zindex: 0 - } - ] + tickCount: { signal: `ceil(child_width/40)` }, + zindex: 0, + }, + ], }, { name: `cell`, type: `group`, style: `cell`, from: { - facet: {name: `facet`, data: `source_0`, groupby: [rowField]} + facet: { name: `facet`, data: `source_0`, groupby: [rowField] }, }, - sort: {field: [`datum['${this.catAttribute.dataKey}']`], order: [`ascending`]}, + sort: { field: [`datum['${this.catAttribute.dataKey}']`], order: [`ascending`] }, data: [ { source: `facet`, @@ -541,9 +562,9 @@ export class GroupedBoxplot extends MultiAttributeVisualization { as: [`lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], ops: [`q1`, `q3`], fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], - groupby: [yField, DATA_LABEL] - } - ] + groupby: [yField, DATA_LABEL], + }, + ], }, { name: `data_1`, @@ -551,13 +572,13 @@ export class GroupedBoxplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `(datum['${this.numAttribute.dataKey}'] < datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}'])) || (datum['${this.numAttribute.dataKey}'] > datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` + expr: `(datum['${this.numAttribute.dataKey}'] < datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}'])) || (datum['${this.numAttribute.dataKey}'] > datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))`, }, { type: `filter`, - expr: `isValid(datum['${this.numAttribute.dataKey}']) && isFinite(+datum['${this.numAttribute.dataKey}'])` - } - ] + expr: `isValid(datum['${this.numAttribute.dataKey}']) && isFinite(+datum['${this.numAttribute.dataKey}'])`, + }, + ], }, { name: `data_2`, @@ -565,21 +586,26 @@ export class GroupedBoxplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `(datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']) <= datum['${this.numAttribute.dataKey}']) && (datum['${this.numAttribute.dataKey}'] <= datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))` + expr: `(datum['lower_box_${this.numAttribute.dataKey}'] - 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']) <= datum['${this.numAttribute.dataKey}']) && (datum['${this.numAttribute.dataKey}'] <= datum['upper_box_${this.numAttribute.dataKey}'] + 1.5 * (datum['upper_box_${this.numAttribute.dataKey}'] - datum['lower_box_${this.numAttribute.dataKey}']))`, }, { type: `aggregate`, groupby: [yField, rowField], ops: [`min`, `max`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`], + fields: [ + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `lower_box_${this.numAttribute.dataKey}`, + `upper_box_${this.numAttribute.dataKey}`, + ], as: [ `lower_whisker_${this.numAttribute.dataKey}`, `upper_whisker_${this.numAttribute.dataKey}`, `lower_box_${this.numAttribute.dataKey}`, - `upper_box_${this.numAttribute.dataKey}` - ] - } - ] + `upper_box_${this.numAttribute.dataKey}`, + ], + }, + ], }, { source: `facet`, @@ -589,23 +615,29 @@ export class GroupedBoxplot extends MultiAttributeVisualization { type: `aggregate`, groupby: [yField, rowField], ops: [`q1`, `q3`, `median`, `min`, `max`], - fields: [`${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`, `${this.numAttribute.dataKey}`], + fields: [ + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + `${this.numAttribute.dataKey}`, + ], as: [ `lower_box_${this.numAttribute.dataKey}`, `upper_box_${this.numAttribute.dataKey}`, `mid_box_${this.numAttribute.dataKey}`, `min_${this.numAttribute.dataKey}`, - `max_${this.numAttribute.dataKey}` - ] - } - ] - } + `max_${this.numAttribute.dataKey}`, + ], + }, + ], + }, ], encode: { update: { - width: {signal: `child_width`}, - height: {signal: `child_height`} - } + width: { signal: `child_width` }, + height: { signal: `child_height` }, + }, }, signals: [ { @@ -613,10 +645,10 @@ export class GroupedBoxplot extends MultiAttributeVisualization { value: {}, on: [ { - events: [{source: `scope`, type: `mousemove`}], - update: `isTuple(facet) ? facet : group('cell').datum` - } - ] + events: [{ source: `scope`, type: `mousemove` }], + update: `isTuple(facet) ? facet : group('cell').datum`, + }, + ], }, { name: `selected_x`, @@ -626,12 +658,9 @@ export class GroupedBoxplot extends MultiAttributeVisualization { events: { source: `scope`, type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'`, - `event.item.mark.name !== 'grabber_x'` - ] + filter: [`!event.item || event.item.mark.name !== 'selected_brush'`, `event.item.mark.name !== 'grabber_x'`], }, - update: `[x(unit), x(unit)]` + update: `[x(unit), x(unit)]`, }, { events: { @@ -642,65 +671,62 @@ export class GroupedBoxplot extends MultiAttributeVisualization { { source: `scope`, type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'`, - `event.item.mark.name !== 'grabber_x'` - ] + filter: [`!event.item || event.item.mark.name !== 'selected_brush'`, `event.item.mark.name !== 'grabber_x'`], }, - {source: `window`, type: `mouseup`} - ] + { source: `window`, type: `mouseup` }, + ], }, - update: `[selected_x[0], clamp(x(unit), 0, child_width)]` + update: `[selected_x[0], clamp(x(unit), 0, child_width)]`, }, { - events: {signal: `selected_scale_trigger`}, - update: `[scale('x', selected_brush_start[0]), scale('x', selected_brush_start[1])]` + events: { signal: `selected_scale_trigger` }, + update: `[scale('x', selected_brush_start[0]), scale('x', selected_brush_start[1])]`, }, { - events: [{source: `view`, type: `dblclick`}], - update: `[0, 0]` + events: [{ source: `view`, type: `dblclick` }], + update: `[0, 0]`, }, { - events: {signal: `selected_translate_delta`}, - update: `clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, child_width)` + events: { signal: `selected_translate_delta` }, + update: `clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, child_width)`, }, { - events: {signal: `selected_zoom_delta`}, - update: `clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, child_width)` - } - ] + events: { signal: `selected_zoom_delta` }, + update: `clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, child_width)`, + }, + ], }, { name: `selected_brush_start`, on: [ { - events: {signal: `selected_x`}, - update: `selected_x[0] === selected_x[1] ? null : invert('x', selected_x)` - } - ] + events: { signal: `selected_x` }, + update: `selected_x[0] === selected_x[1] ? null : invert('x', selected_x)`, + }, + ], }, { name: `selected_scale_trigger`, value: {}, on: [ { - events: [{scale: `x`}], - update: `(!isArray(selected_brush_start) || (+invert('x', selected_x)[0] === +selected_brush_start[0] && +invert('x', selected_x)[1] === +selected_brush_start[1])) ? selected_scale_trigger : {}` - } - ] + events: [{ scale: `x` }], + update: `(!isArray(selected_brush_start) || (+invert('x', selected_x)[0] === +selected_brush_start[0] && +invert('x', selected_x)[1] === +selected_brush_start[1])) ? selected_scale_trigger : {}`, + }, + ], }, { name: `selected_tuple`, on: [ { - events: [{signal: `selected_brush_start`}], - update: `selected_brush_start ? {unit: 'child_layer_0' + '__facet_row_' + (facet['${rowField}']), fields: selected_tuple_fields, values: [selected_brush_start]} : null` - } - ] + events: [{ signal: `selected_brush_start` }], + update: `selected_brush_start ? {unit: 'child_layer_0' + '__facet_row_' + (facet['${rowField}']), fields: selected_tuple_fields, values: [selected_brush_start]} : null`, + }, + ], }, { name: `selected_tuple_fields`, - value: [{field: `brush_start`, channel: `x`, type: `R`}] + value: [{ field: `brush_start`, channel: `x`, type: `R` }], }, { name: `selected_translate_anchor`, @@ -711,12 +737,12 @@ export class GroupedBoxplot extends MultiAttributeVisualization { { source: `scope`, type: `mousedown`, - markname: `selected_brush` - } + markname: `selected_brush`, + }, ], - update: `{x: x(unit), y: y(unit), extent_x: slice(selected_x)}` - } - ] + update: `{x: x(unit), y: y(unit), extent_x: slice(selected_x)}`, + }, + ], }, { name: `selected_translate_delta`, @@ -732,15 +758,15 @@ export class GroupedBoxplot extends MultiAttributeVisualization { { source: `scope`, type: `mousedown`, - markname: `selected_brush` + markname: `selected_brush`, }, - {source: `window`, type: `mouseup`} - ] - } + { source: `window`, type: `mouseup` }, + ], + }, ], - update: `{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}` - } - ] + update: `{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}`, + }, + ], }, { name: `selected_zoom_anchor`, @@ -751,12 +777,12 @@ export class GroupedBoxplot extends MultiAttributeVisualization { source: `scope`, type: `wheel`, consume: true, - markname: `selected_brush` - } + markname: `selected_brush`, + }, ], - update: `{x: x(unit), y: y(unit)}` - } - ] + update: `{x: x(unit), y: y(unit)}`, + }, + ], }, { name: `selected_zoom_delta`, @@ -767,23 +793,23 @@ export class GroupedBoxplot extends MultiAttributeVisualization { source: `scope`, type: `wheel`, consume: true, - markname: `selected_brush` - } + markname: `selected_brush`, + }, ], force: true, - update: `pow(1.001, event.deltaY * pow(16, event.deltaMode))` - } - ] + update: `pow(1.001, event.deltaY * pow(16, event.deltaMode))`, + }, + ], }, { name: `selected_modify`, on: [ { - events: {signal: `selected_tuple`}, - update: `modify('selected_store', selected_tuple, true)` - } - ] - } + events: { signal: `selected_tuple` }, + update: `modify('selected_store', selected_tuple, true)`, + }, + ], + }, ], marks: [ { @@ -791,96 +817,96 @@ export class GroupedBoxplot extends MultiAttributeVisualization { type: `rect`, clip: true, encode: { - enter: {fill: {value: `#333`}, fillOpacity: {value: 0}}, + enter: { fill: { value: `#333` }, fillOpacity: { value: 0 } }, update: { x: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[0]` + signal: `selected_x[0]`, }, - {value: 0} + { value: 0 }, ], y: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - value: 0 + value: 0, }, - {value: 0} + { value: 0 }, ], x2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[1]` + signal: `selected_x[1]`, }, - {value: 0} + { value: 0 }, ], y2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - field: {group: `height`} + field: { group: `height` }, }, - {value: 0} - ] - } - } + { value: 0 }, + ], + }, + }, }, { name: `selected_brush_facethelper`, type: `rect`, style: [`rect`], interactive: true, - from: {data: `data_6`}, + from: { data: `data_6` }, encode: { update: { - opacity: {value: 0.125}, - fill: {value: `#333`}, + opacity: { value: 0.125 }, + fill: { value: `#333` }, description: { - signal: `'brush_start: ' + (format(datum['brush_start'], '')) + '; brush_end: ' + (format(datum['brush_end'], ''))` + signal: `'brush_start: ' + (format(datum['brush_start'], '')) + '; brush_end: ' + (format(datum['brush_end'], ''))`, }, x: [ { test: `!isValid(datum['brush_start']) || !isFinite(+datum['brush_start'])`, - value: 0 + value: 0, }, - {scale: `x`, field: `brush_start`} + { scale: `x`, field: `brush_start` }, ], x2: [ { test: `!isValid(datum['brush_end']) || !isFinite(+datum['brush_end'])`, - value: 0 + value: 0, }, - {scale: `x`, field: `brush_end`} + { scale: `x`, field: `brush_end` }, ], - y: {value: 0}, - y2: {field: {group: `height`}} - } - } + y: { value: 0 }, + y2: { field: { group: `height` } }, + }, + }, }, { name: `child_layer_1_layer_0_layer_0_marks`, type: `symbol`, style: [`point`, `boxplot-outliers`], interactive: false, - from: {data: `data_1`}, + from: { data: `data_1` }, encode: { update: { - opacity: {value: 0.7}, - fill: {value: `transparent`}, - stroke: {scale: `color`, field: DATA_LABEL}, - ariaRoleDescription: {value: `point`}, + opacity: { value: 0.7 }, + fill: { value: `transparent` }, + stroke: { scale: `color`, field: DATA_LABEL }, + ariaRoleDescription: { value: `point` }, description: { - signal: `'${this.catAttribute.label}: ' + (format(datum['${this.numAttribute.dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])` + signal: `'${this.catAttribute.label}: ' + (format(datum['${this.numAttribute.dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])`, }, x: [ { test: `!isValid(datum['${this.numAttribute.dataKey}']) || !isFinite(+datum['${this.numAttribute.dataKey}'])`, - value: 0 + value: 0, }, - {scale: `x`, field: `${this.numAttribute.dataKey}`} + { scale: `x`, field: `${this.numAttribute.dataKey}` }, ], - y: {scale: `y`, field: yField, band: 0.5} - } - } + y: { scale: `y`, field: yField, band: 0.5 }, + }, + }, }, { name: `child_layer_1_layer_0_layer_1_layer_0_marks`, @@ -888,18 +914,18 @@ export class GroupedBoxplot extends MultiAttributeVisualization { style: [`rule`, `boxplot-rule`], interactive: true, aria: false, - from: {data: `data_2`}, + from: { data: `data_2` }, encode: { update: { - stroke: {value: `black`}, + stroke: { value: `black` }, tooltip: { - signal: `{'Upper Whisker of ${this.numAttribute.dataKey}': format(datum['upper_whisker_${this.numAttribute.dataKey}'], ''), 'Lower Whisker of ${this.catAttribute.label}': format(datum['lower_whisker_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` + signal: `{'Upper Whisker of ${this.numAttribute.dataKey}': format(datum['upper_whisker_${this.numAttribute.dataKey}'], ''), 'Lower Whisker of ${this.catAttribute.label}': format(datum['lower_whisker_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}`, }, - x: {scale: `x`, field: `lower_whisker_${this.numAttribute.dataKey}`}, - x2: {scale: `x`, field: `lower_box_${this.numAttribute.dataKey}`}, - y: {scale: `y`, field: yField, band: 0.5} - } - } + x: { scale: `x`, field: `lower_whisker_${this.numAttribute.dataKey}` }, + x2: { scale: `x`, field: `lower_box_${this.numAttribute.dataKey}` }, + y: { scale: `y`, field: yField, band: 0.5 }, + }, + }, }, { name: `child_layer_1_layer_0_layer_1_layer_1_marks`, @@ -907,41 +933,41 @@ export class GroupedBoxplot extends MultiAttributeVisualization { style: [`rule`, `boxplot-rule`], interactive: true, aria: false, - from: {data: `data_2`}, + from: { data: `data_2` }, encode: { update: { - stroke: {value: `black`}, + stroke: { value: `black` }, tooltip: { - signal: `{'Upper Whisker of ${this.catAttribute.label}': format(datum['upper_whisker_${this.numAttribute.dataKey}'], ''), 'Lower Whisker of ${this.catAttribute.label}': format(datum['lower_whisker_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` + signal: `{'Upper Whisker of ${this.catAttribute.label}': format(datum['upper_whisker_${this.numAttribute.dataKey}'], ''), 'Lower Whisker of ${this.catAttribute.label}': format(datum['lower_whisker_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}`, }, - x: {scale: `x`, field: `upper_box_${this.numAttribute.dataKey}`}, - x2: {scale: `x`, field: `upper_whisker_${this.numAttribute.dataKey}`}, - y: {scale: `y`, field: yField, band: 0.5} - } - } + x: { scale: `x`, field: `upper_box_${this.numAttribute.dataKey}` }, + x2: { scale: `x`, field: `upper_whisker_${this.numAttribute.dataKey}` }, + y: { scale: `y`, field: yField, band: 0.5 }, + }, + }, }, { name: `child_layer_1_layer_1_layer_0_marks`, type: `rect`, style: [`bar`, `boxplot-box`], interactive: true, - from: {data: `data_3`}, + from: { data: `data_3` }, encode: { update: { - ariaRoleDescription: {value: `box`}, - fill: {scale: `color`, field: DATA_LABEL}, + ariaRoleDescription: { value: `box` }, + fill: { scale: `color`, field: DATA_LABEL }, tooltip: { - signal: `{'Max of ${this.catAttribute.label}': format(datum['max_${this.numAttribute.dataKey}'], ''), 'Q3 of ${this.catAttribute.label}': format(datum['upper_box_${this.numAttribute.dataKey}'], ''), 'Median of ${this.catAttribute.label}': format(datum['mid_box_${this.numAttribute.dataKey}'], ''), 'Q1 of ${this.catAttribute.label}': format(datum['lower_box_${this.numAttribute.dataKey}'], ''), 'Min of ${this.catAttribute.label}': format(datum['min_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` + signal: `{'Max of ${this.catAttribute.label}': format(datum['max_${this.numAttribute.dataKey}'], ''), 'Q3 of ${this.catAttribute.label}': format(datum['upper_box_${this.numAttribute.dataKey}'], ''), 'Median of ${this.catAttribute.label}': format(datum['mid_box_${this.numAttribute.dataKey}'], ''), 'Q1 of ${this.catAttribute.label}': format(datum['lower_box_${this.numAttribute.dataKey}'], ''), 'Min of ${this.catAttribute.label}': format(datum['min_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}`, }, description: { - signal: `'${this.catAttribute.label}: ' + (format(datum['lower_box_${this.numAttribute.dataKey}'], '')) + '; upper_box_${this.numAttribute.dataKey}: ' + (format(datum['upper_box_${this.numAttribute.dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']) + '; Max of ${this.catAttribute.label}: ' + (format(datum['max_${this.numAttribute.dataKey}'], '')) + '; Q3 of ${this.catAttribute.label}: ' + (format(datum['upper_box_${this.numAttribute.dataKey}'], '')) + '; Median of ${this.catAttribute.label}: ' + (format(datum['mid_box_${this.numAttribute.dataKey}'], '')) + '; Q1 of ${this.catAttribute.label}: ' + (format(datum['lower_box_${this.numAttribute.dataKey}'], '')) + '; Min of ${this.catAttribute.label}: ' + (format(datum['min_${this.numAttribute.dataKey}'], ''))` + signal: `'${this.catAttribute.label}: ' + (format(datum['lower_box_${this.numAttribute.dataKey}'], '')) + '; upper_box_${this.numAttribute.dataKey}: ' + (format(datum['upper_box_${this.numAttribute.dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']) + '; Max of ${this.catAttribute.label}: ' + (format(datum['max_${this.numAttribute.dataKey}'], '')) + '; Q3 of ${this.catAttribute.label}: ' + (format(datum['upper_box_${this.numAttribute.dataKey}'], '')) + '; Median of ${this.catAttribute.label}: ' + (format(datum['mid_box_${this.numAttribute.dataKey}'], '')) + '; Q1 of ${this.catAttribute.label}: ' + (format(datum['lower_box_${this.numAttribute.dataKey}'], '')) + '; Min of ${this.catAttribute.label}: ' + (format(datum['min_${this.numAttribute.dataKey}'], ''))`, }, - x: {scale: `x`, field: `lower_box_${this.numAttribute.dataKey}`}, - x2: {scale: `x`, field: `upper_box_${this.numAttribute.dataKey}`}, - yc: {scale: `y`, field: yField, band: 0.5}, - height: {value: 14} - } - } + x: { scale: `x`, field: `lower_box_${this.numAttribute.dataKey}` }, + x2: { scale: `x`, field: `upper_box_${this.numAttribute.dataKey}` }, + yc: { scale: `y`, field: yField, band: 0.5 }, + height: { value: 14 }, + }, + }, }, { name: `child_layer_1_layer_1_layer_1_marks`, @@ -949,76 +975,71 @@ export class GroupedBoxplot extends MultiAttributeVisualization { style: [`tick`, `boxplot-median`], interactive: true, aria: false, - from: {data: `data_3`}, + from: { data: `data_3` }, encode: { update: { - opacity: {value: 0.7}, - fill: {value: `black`}, + opacity: { value: 0.7 }, + fill: { value: `black` }, tooltip: { - signal: `{'Max of ${this.catAttribute.label}': format(datum['max_${this.numAttribute.dataKey}'], ''), 'Q3 of ${this.catAttribute.label}': format(datum['upper_box_${this.numAttribute.dataKey}'], ''), 'Median of ${this.catAttribute.label}': format(datum['mid_box_${this.numAttribute.dataKey}'], ''), 'Q1 of ${this.catAttribute.label}': format(datum['lower_box_${this.numAttribute.dataKey}'], ''), 'Min of ${this.catAttribute.label}': format(datum['min_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` + signal: `{'Max of ${this.catAttribute.label}': format(datum['max_${this.numAttribute.dataKey}'], ''), 'Q3 of ${this.catAttribute.label}': format(datum['upper_box_${this.numAttribute.dataKey}'], ''), 'Median of ${this.catAttribute.label}': format(datum['mid_box_${this.numAttribute.dataKey}'], ''), 'Q1 of ${this.catAttribute.label}': format(datum['lower_box_${this.numAttribute.dataKey}'], ''), 'Min of ${this.catAttribute.label}': format(datum['min_${this.numAttribute.dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}`, }, - xc: {scale: `x`, field: `mid_box_${this.numAttribute.dataKey}`}, - yc: {scale: `y`, field: yField, band: 0.5}, - height: {value: 14}, - width: {value: 1} - } - } + xc: { scale: `x`, field: `mid_box_${this.numAttribute.dataKey}` }, + yc: { scale: `y`, field: yField, band: 0.5 }, + height: { value: 14 }, + width: { value: 1 }, + }, + }, }, { name: `splitmarks_x`, type: `group`, from: { - data: `data_7` + data: `data_7`, }, encode: { enter: { height: { field: { - group: `height` - } - } + group: `height`, + }, + }, }, update: { x: [ { test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - value: 0 + value: 0, }, { scale: `x`, - field: `data` - } - ] - } + field: `data`, + }, + ], + }, }, marks: [ { name: `splitrule_x`, type: `rule`, - style: [ - `rule` - ], + style: [`rule`], encode: { update: { strokeDash: { - value: [ - 3, - 2 - ] + value: [3, 2], }, stroke: { - value: `black` + value: `black`, }, y: { - value: 0 + value: 0, }, y2: { field: { - group: `height` - } - } - } - } + group: `height`, + }, + }, + }, + }, }, { type: `path`, @@ -1026,33 +1047,33 @@ export class GroupedBoxplot extends MultiAttributeVisualization { encode: { enter: { x: { - offset: 1 + offset: 1, }, y: { field: { - group: `height` + group: `height`, }, - mult: 0.5, //half the height of the facet - offset: -7.5 //half the height of the svg grabber + mult: 0.5, // half the height of the facet + offset: -7.5, // half the height of the svg grabber }, fill: { - value: `#fff` + value: `#fff`, }, stroke: { - value: `#666` + value: `#666`, }, cursor: { - value: `ew-resize` - } + value: `ew-resize`, + }, }, update: { path: { - signal: `'M 0.5,14.85 A 6,2.583 0 0 0 6.5,12.267 V 3.083 A 6,2.583 0 0 0 0.5,0.5 Z M 2.5,11.406 V 3.944 m 2,7.462 V 3.944'` - } - } - } - } - ] + signal: `'M 0.5,14.85 A 6,2.583 0 0 0 6.5,12.267 V 3.083 A 6,2.583 0 0 0 0.5,0.5 Z M 2.5,11.406 V 3.944 m 2,7.462 V 3.944'`, + }, + }, + }, + }, + ], }, { name: `selected_brush`, @@ -1060,67 +1081,61 @@ export class GroupedBoxplot extends MultiAttributeVisualization { clip: true, encode: { enter: { - cursor: {value: `pointer`}, - fill: {value: `transparent`} + cursor: { value: `pointer` }, + fill: { value: `transparent` }, }, update: { x: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[0]` + signal: `selected_x[0]`, }, - {value: 0} + { value: 0 }, ], y: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - value: 0 + value: 0, }, - {value: 0} + { value: 0 }, ], x2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - signal: `selected_x[1]` + signal: `selected_x[1]`, }, - {value: 0} + { value: 0 }, ], y2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'child_layer_0' + '__facet_row_' + (facet['${rowField}'])`, - field: {group: `height`} + field: { group: `height` }, }, - {value: 0} - ], - stroke: [ - {test: `selected_x[0] !== selected_x[1]`, value: `white`}, - {value: null} + { value: 0 }, ], - strokeOpacity: [ - {test: `selected_x[0] !== selected_x[1]`, value: 0}, - {value: null} - ] - } - } - } + stroke: [{ test: `selected_x[0] !== selected_x[1]`, value: `white` }, { value: null }], + strokeOpacity: [{ test: `selected_x[0] !== selected_x[1]`, value: 0 }, { value: null }], + }, + }, + }, ], axes: [ { scale: `x`, orient: `top`, gridScale: `y`, - grid: true, - tickCount: {signal: `ceil(child_width/40)`}, + grid: false, + tickCount: { signal: `ceil(child_width/40)` }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 - } - ] - } + zindex: 0, + }, + ], + }, ], scales: [ { @@ -1128,47 +1143,47 @@ export class GroupedBoxplot extends MultiAttributeVisualization { type: `linear`, domain: { fields: [ - {data: `data_6`, field: `brush_start`}, - {data: `data_6`, field: `brush_end`}, - {data: `data_3`, field: `${this.numAttribute.dataKey}`}, - {data: `data_4`, field: `lower_whisker_${this.numAttribute.dataKey}`}, - {data: `data_4`, field: `lower_box_${this.numAttribute.dataKey}`}, - {data: `data_4`, field: `upper_box_${this.numAttribute.dataKey}`}, - {data: `data_4`, field: `upper_whisker_${this.numAttribute.dataKey}`}, - {data: `data_5`, field: `lower_box_${this.numAttribute.dataKey}`}, - {data: `data_5`, field: `upper_box_${this.numAttribute.dataKey}`}, - {data: `data_5`, field: `mid_box_${this.numAttribute.dataKey}`}, - {data: `data_7`, field: `data`} - ] + { data: `data_6`, field: `brush_start` }, + { data: `data_6`, field: `brush_end` }, + { data: `data_3`, field: `${this.numAttribute.dataKey}` }, + { data: `data_4`, field: `lower_whisker_${this.numAttribute.dataKey}` }, + { data: `data_4`, field: `lower_box_${this.numAttribute.dataKey}` }, + { data: `data_4`, field: `upper_box_${this.numAttribute.dataKey}` }, + { data: `data_4`, field: `upper_whisker_${this.numAttribute.dataKey}` }, + { data: `data_5`, field: `lower_box_${this.numAttribute.dataKey}` }, + { data: `data_5`, field: `upper_box_${this.numAttribute.dataKey}` }, + { data: `data_5`, field: `mid_box_${this.numAttribute.dataKey}` }, + { data: `data_7`, field: `data` }, + ], }, - range: [0, {signal: `child_width`}], + range: [0, { signal: `child_width` }], clamp: true, nice: false, - zero: false + zero: false, }, { name: `y`, type: `band`, domain: { fields: [ - {data: `data_3`, field: yField}, - {data: `data_4`, field: yField}, - {data: `data_5`, field: yField} - ] + { data: `data_3`, field: yField }, + { data: `data_4`, field: yField }, + { data: `data_5`, field: yField }, + ], }, - range: {step: {signal: `y_step`}}, + range: { step: { signal: `y_step` } }, paddingInner: 0, - paddingOuter: 0 + paddingOuter: 0, }, { name: `color`, type: `ordinal`, - domain: {data: 'data_5', field: DATA_LABEL}, - range: `category` - } + domain: { data: 'data_5', field: DATA_LABEL }, + range: `category`, + }, ], config: { - range: {category: this.colorPalette}, + range: { category: this.colorPalette }, axis: { titleFontSize: 16, titleFontWeight: 500, @@ -1178,7 +1193,7 @@ export class GroupedBoxplot extends MultiAttributeVisualization { labelFont: `Roboto`, labelOverlap: `parity`, labelSeparation: 5, - labelBound: true + labelBound: true, }, legend: { titleFontSize: 16, @@ -1187,10 +1202,10 @@ export class GroupedBoxplot extends MultiAttributeVisualization { labelFontSize: 12, labelLimit: 150, labelFont: `Roboto`, - labelOverlap: `parity` + labelOverlap: `parity`, }, - style: {cell: {cursor: `text`}} - } + style: { cell: { cursor: `text` } }, + }, }; return vegaSpec as unknown as VegaLiteSpec; diff --git a/src/Taskview/visualizations/GroupedHistogram.ts b/src/Taskview/visualizations/GroupedHistogram.ts index 329f6bc..6bdfec8 100644 --- a/src/Taskview/visualizations/GroupedHistogram.ts +++ b/src/Taskview/visualizations/GroupedHistogram.ts @@ -1,17 +1,17 @@ -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {Field} from 'vega-lite/build/src/channeldef'; -import {TopLevelUnitSpec} from 'vega-lite/build/src/spec/unit'; -import {getCohortLabel} from '../../Cohort'; -import {ICohort} from '../../CohortInterfaces'; -import {colors} from '../../colors'; -import {IdValuePair} from '../../data/Attribute'; -import {log} from '../../util'; -import {AVegaVisualization, FACETED_CHARTS_WIDTH} from './AVegaVisualization'; -import {groupByConfig} from './config/GroupConfig'; -import {dataConfig} from './config/ScaleConfig'; -import {sortByConfig, sortOrderConfig} from './config/SortConfig'; -import {DATA_LABEL} from './constants'; -import {VegaHistogram} from './Histogram'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { Field } from 'vega-lite/build/src/channeldef'; +import { TopLevelUnitSpec } from 'vega-lite/build/src/spec/unit'; +import { getCohortLabel } from '../../Cohort'; +import { ICohort } from '../../CohortInterfaces'; +import { colors } from '../../colors'; +import { IdValuePair } from '../../data/Attribute'; +import { log } from '../../util'; +import { AVegaVisualization, FACETED_CHARTS_WIDTH } from './AVegaVisualization'; +import { groupByConfig } from './config/GroupConfig'; +import { dataConfig } from './config/ScaleConfig'; +import { sortByConfig, sortOrderConfig } from './config/SortConfig'; +import { DATA_LABEL } from './constants'; +import { VegaHistogram } from './Histogram'; export class VegaGroupedHistogram extends VegaHistogram { static readonly COUNT = 'Count'; @@ -22,9 +22,9 @@ export class VegaGroupedHistogram extends VegaHistogram { super(vegaLiteOptions); this.config = [ - {icon: '', label: 'Group', groups: [groupByConfig]}, - {icon: '', label: 'Data', groups: [/*scaleConfig,*/ dataConfig]}, - {icon: '', label: 'Sort', groups: [sortOrderConfig, sortByConfig]} + { icon: '', label: 'Group', groups: [groupByConfig] }, + { icon: '', label: 'Data', groups: [/* scaleConfig, */ dataConfig] }, + { icon: '', label: 'Sort', groups: [sortOrderConfig, sortByConfig] }, ]; } @@ -41,25 +41,43 @@ export class VegaGroupedHistogram extends VegaHistogram { const grpHistSpec: Partial = { width: FACETED_CHARTS_WIDTH, - transform: [{ // count items for each category of each cohort - aggregate: [{op: 'count', as: VegaGroupedHistogram.COUNT}], - groupby: [this.field, DATA_LABEL] - }, - ...groupByConfig.getSelected().label === 'Same Cohort' ? [] : [{ - //impute zero for cohort+category combinations with no data - impute: VegaGroupedHistogram.COUNT, value: 0, key: yField, groupby: [rowField] - }], { // count items of each cohort - joinaggregate: [{op: 'sum', field: VegaGroupedHistogram.COUNT, as: 'GroupCount'}], - groupby: [DATA_LABEL] - }, { // items of a cohort's category divided by all items of the cohort -> rel frequency - calculate: `datum.${VegaGroupedHistogram.COUNT}/datum.GroupCount`, as: 'PercentOfCohort' - }, { // count items of each category (used for sorting) - joinaggregate: [{op: 'sum', field: VegaGroupedHistogram.COUNT, as: 'CategoryItemSum'}], - groupby: [DATA_LABEL] - }, { //count percentages of each category (used for sorting) - joinaggregate: [{op: 'sum', field: 'PercentOfCohort', as: 'CategoryPercentSum'}], - groupby: [DATA_LABEL] - } + transform: [ + { + // count items for each category of each cohort + aggregate: [{ op: 'count', as: VegaGroupedHistogram.COUNT }], + groupby: [this.field, DATA_LABEL], + }, + ...(groupByConfig.getSelected().label === 'Same Cohort' + ? [] + : [ + { + // impute zero for cohort+category combinations with no data + impute: VegaGroupedHistogram.COUNT, + value: 0, + key: yField, + groupby: [rowField], + }, + ]), + { + // count items of each cohort + joinaggregate: [{ op: 'sum', field: VegaGroupedHistogram.COUNT, as: 'GroupCount' }], + groupby: [DATA_LABEL], + }, + { + // items of a cohort's category divided by all items of the cohort -> rel frequency + calculate: `datum.${VegaGroupedHistogram.COUNT}/datum.GroupCount`, + as: 'PercentOfCohort', + }, + { + // count items of each category (used for sorting) + joinaggregate: [{ op: 'sum', field: VegaGroupedHistogram.COUNT, as: 'CategoryItemSum' }], + groupby: [DATA_LABEL], + }, + { + // count percentages of each category (used for sorting) + joinaggregate: [{ op: 'sum', field: 'PercentOfCohort', as: 'CategoryPercentSum' }], + groupby: [DATA_LABEL], + }, ], encoding: { row: { @@ -71,43 +89,49 @@ export class VegaGroupedHistogram extends VegaHistogram { labelAlign: 'left', labels: rowField !== DATA_LABEL, title: this.attribute.label, // We will set a descriptive title for the whole plot - titleAnchor: 'end' + titleAnchor: 'end', }, - sort: groupByConfig.getSelected().label === 'Same Cohort' ? null : - sortByConfig.getSelected().label.includes('Name') ? sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending' : { - field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', - op: sortByConfig.getSelected().label.includes('Average') ? 'average' : - sortByConfig.getSelected().label.includes('Spread') ? 'stdev' : 'max', - order: sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending' - } + sort: + groupByConfig.getSelected().label === 'Same Cohort' + ? null + : sortByConfig.getSelected().label.includes('Name') + ? (sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending') + : { + field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', + op: sortByConfig.getSelected().label.includes('Average') ? 'average' : sortByConfig.getSelected().label.includes('Spread') ? 'stdev' : 'max', + order: sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending', + }, }, x: { field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', title: dataConfig.getSelected().label === 'Absolute Counts' ? 'Count within Cohort' : 'Share within Cohort', type: 'quantitative', axis: { - ...dataConfig.getSelected().label === 'Absolute Counts' ? {} : ({format: '.1~%'}), + ...(dataConfig.getSelected().label === 'Absolute Counts' ? {} : { format: '.1~%' }), orient: 'top', - grid: false // no vertical lines (indicating the ticks on the axis) - } + grid: false, // no vertical lines (indicating the ticks on the axis) + }, }, y: { field: yField, type: 'nominal', - axis: rowField === DATA_LABEL ? {'title': null, ticks: false, domain: false} : null, // hide cohort names - sort: groupByConfig.getSelected().label === 'Same Category' ? null : - sortByConfig.getSelected().label.includes('Name') ? sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending' : { - field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', - op: sortByConfig.getSelected().label.includes('Average') ? 'average' : - sortByConfig.getSelected().label.includes('Spread') ? 'stdev' : 'max', - order: sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending' - } + axis: rowField === DATA_LABEL ? { title: null, ticks: false, domain: false } : null, // hide cohort names + sort: + groupByConfig.getSelected().label === 'Same Category' + ? null + : sortByConfig.getSelected().label.includes('Name') + ? (sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending') + : { + field: dataConfig.getSelected().label === 'Absolute Counts' ? VegaGroupedHistogram.COUNT : 'PercentOfCohort', + op: sortByConfig.getSelected().label.includes('Average') ? 'average' : sortByConfig.getSelected().label.includes('Spread') ? 'stdev' : 'max', + order: sortOrderConfig.getSelected().label.toLowerCase() as 'ascending' | 'descending', + }, }, color: { field: DATA_LABEL, type: 'nominal', sort: null, - legend: null // use custom legend + legend: null, // use custom legend }, stroke: { field: DATA_LABEL, // same color as fill, except for hover @@ -117,33 +141,34 @@ export class VegaGroupedHistogram extends VegaHistogram { { param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, empty: false, - value: colors.darkBorder - } - ] + value: colors.darkBorder, + }, + ], }, opacity: { - condition: [ //order is important, first match is used + condition: [ + // order is important, first match is used { param: AVegaVisualization.SELECTION_SIGNAL_NAME, - value: 1 + value: 1, }, { param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, empty: false, - value: 0.8 // not fully opaque --> you will notice a change when selection the bar - } + value: 0.8, // not fully opaque --> you will notice a change when selection the bar + }, ], - value: 0.3 + value: 0.3, }, tooltip: [ - {field: this.field}, - {field: DATA_LABEL}, - {field: VegaGroupedHistogram.COUNT}, - {field: 'PercentOfCohort', title: this.cohorts.length === 1 ? 'Share' : 'Share per Cohort', format: '.1~%'} - ] + { field: this.field }, + { field: DATA_LABEL }, + { field: VegaGroupedHistogram.COUNT }, + { field: 'PercentOfCohort', title: this.cohorts.length === 1 ? 'Share' : 'Share per Cohort', format: '.1~%' }, + ], }, - resolve: groupByConfig.getSelected().label === 'Same Category' ? {} : {scale: {y: 'independent'}}, - view: {stroke: colors.lightBorder}// border color between sub-charts + resolve: groupByConfig.getSelected().label === 'Same Category' ? {} : { scale: { y: 'independent' } }, + view: { stroke: colors.lightBorder }, // border color between sub-charts }; const vegaLiteSpec = Object.assign(histSpec, grpHistSpec) as VegaLiteSpec; @@ -154,8 +179,8 @@ export class VegaGroupedHistogram extends VegaHistogram { * From == To for categorical data, e.g. FROM: male, TO: male * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) */ - getSelectedData(): {cohort: ICohort, from: string | number, to: string | number}[] { - let filters: {cohort: ICohort, from: string | number, to: string | number}[] = []; + getSelectedData(): { cohort: ICohort; from: string | number; to: string | number }[] { + let filters: { cohort: ICohort; from: string | number; to: string | number }[] = []; let vegaData = []; try { @@ -176,12 +201,12 @@ export class VegaGroupedHistogram extends VegaHistogram { filters = filteredVegaData.map((dataItem) => ({ cohort: this.cohorts.find((cht) => getCohortLabel(cht) === dataItem[DATA_LABEL]), from: dataItem[this.field], - to: dataItem[this.field] + to: dataItem[this.field], })); } else { - //select all - const rowDomain = this.vegaView.data('row_domain'); //default name - this.cohorts.forEach((cohort) => filters.push(...rowDomain.map((datum) => ({from: datum[this.field], to: datum[this.field], cohort})))); + // select all + const rowDomain = this.vegaView.data('row_domain'); // default name + this.cohorts.forEach((cohort) => filters.push(...rowDomain.map((datum) => ({ from: datum[this.field], to: datum[this.field], cohort })))); } log.debug('filters', filters); diff --git a/src/Taskview/visualizations/Histogram.ts b/src/Taskview/visualizations/Histogram.ts index 0402218..df22def 100644 --- a/src/Taskview/visualizations/Histogram.ts +++ b/src/Taskview/visualizations/Histogram.ts @@ -1,10 +1,10 @@ -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {ICohort} from '../../CohortInterfaces'; -import {IdValuePair} from '../../data/Attribute'; -import {colors} from '../../colors'; -import {log} from '../../util'; -import {AVegaVisualization, SingleAttributeVisualization} from './AVegaVisualization'; -import {DATA_LABEL} from './constants'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { ICohort } from '../../CohortInterfaces'; +import { IdValuePair } from '../../data/Attribute'; +import { colors } from '../../colors'; +import { log } from '../../util'; +import { AVegaVisualization, SingleAttributeVisualization } from './AVegaVisualization'; +import { DATA_LABEL } from './constants'; export class VegaHistogram extends SingleAttributeVisualization { static readonly NAME = 'Histogram'; @@ -22,12 +22,13 @@ export class VegaHistogram extends SingleAttributeVisualization { this.sort = 'ascending'; } - const vegaLiteSpecPart: Partial = { // Specific to histogram + const vegaLiteSpecPart: Partial = { + // Specific to histogram mark: { type: 'bar', tooltip: true, cursor: 'pointer', - height: 15 + height: 15, }, encoding: { [this.type === 'quantitative' ? 'x' : 'y']: { @@ -36,20 +37,20 @@ export class VegaHistogram extends SingleAttributeVisualization { type: this.type, sort: this.sort, title: this.attribute.label, - scale: {clamp: true} + scale: { clamp: true }, }, [this.type === 'quantitative' ? 'y' : 'x']: { aggregate: 'count', type: 'quantitative', axis: { - orient: this.type === 'quantitative' ? 'left' : 'top' + orient: this.type === 'quantitative' ? 'left' : 'top', }, - title: 'Count' + title: 'Count', }, color: { field: DATA_LABEL, type: 'nominal', - legend: null // use custom legend + legend: null, // use custom legend }, stroke: { field: DATA_LABEL, // same color as fill, except for hover @@ -58,27 +59,27 @@ export class VegaHistogram extends SingleAttributeVisualization { { param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, empty: false, - value: colors.darkBorder - } - ] + value: colors.darkBorder, + }, + ], }, opacity: { condition: [ { param: AVegaVisualization.SELECTION_SIGNAL_NAME, - value: 1 + value: 1, }, { param: AVegaVisualization.HIGHLIGHT_SIGNAL_NAME, empty: false, - value: 0.8 // not fully opaque --> you will notice a change when selection the bar - } + value: 0.8, // not fully opaque --> you will notice a change when selection the bar + }, ], - value: 0.3 - } - } + value: 0.3, + }, + }, }; - const histSpec: VegaLiteSpec = Object.assign(super.getSpec(data), vegaLiteSpecPart) as VegaLiteSpec; //the combination gives a full spec + const histSpec: VegaLiteSpec = Object.assign(super.getSpec(data), vegaLiteSpecPart) as VegaLiteSpec; // the combination gives a full spec this.addHoverSelection(histSpec); @@ -95,34 +96,34 @@ export class VegaHistogram extends SingleAttributeVisualization { * From == To for categorical data, e.g. FROM: male, TO: male * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) */ - getSelectedData(): {cohort: ICohort, from: string | number, to: string | number}[] { - const filters: {cohort: ICohort, from: string | number, to: string | number}[] = []; + getSelectedData(): { cohort: ICohort; from: string | number; to: string | number }[] { + const filters: { cohort: ICohort; from: string | number; to: string | number }[] = []; if (this.type === 'quantitative') { - if(!this.hideVisualization) { + if (!this.hideVisualization) { const selections = this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME); let attrSelection = selections[this.field]; if (!attrSelection || attrSelection.length !== 2) { attrSelection = this.vegaView.scale('x').domain(); } this.cohorts.forEach((cohort) => { - filters.push({from: attrSelection[0], to: attrSelection[1], cohort}); + filters.push({ from: attrSelection[0], to: attrSelection[1], cohort }); const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if(nullFilter) { + if (nullFilter) { filters.push(nullFilter); } }); } else { this.cohorts.forEach((cohort) => { const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); - if(nullFilter) { + if (nullFilter) { filters.push(nullFilter); } }); } } else { const dataStore = this.sort === '-x' || this.sort === 'x' ? AVegaVisualization.DATA_STORE_1 : AVegaVisualization.DATA_STORE_0; // sorting by frequency adds one more transformation, i.e. data array -> data_1 - const vegaData = this.vegaView.data(dataStore); //default name + const vegaData = this.vegaView.data(dataStore); // default name log.debug('vegaData', vegaData); const selectionData: any[] = this.vegaView.data(AVegaVisualization.SELECTION_STORE); @@ -134,10 +135,10 @@ export class VegaHistogram extends SingleAttributeVisualization { // if ordinal or nominal, we can get the selected bins by the name of field const selectedBins = filteredVegaData.map((dataItem) => dataItem[this.field]); - this.cohorts.forEach((cohort) => filters.push(...selectedBins.map((bin) => ({from: bin, to: bin, cohort})))); + this.cohorts.forEach((cohort) => filters.push(...selectedBins.map((bin) => ({ from: bin, to: bin, cohort })))); } else { - //select all - this.cohorts.forEach((cohort) => filters.push(...vegaData.map((datum) => ({from: datum[this.field], to: datum[this.field], cohort})))); + // select all + this.cohorts.forEach((cohort) => filters.push(...vegaData.map((datum) => ({ from: datum[this.field], to: datum[this.field], cohort })))); } } diff --git a/src/Taskview/visualizations/IVisualization.ts b/src/Taskview/visualizations/IVisualization.ts index 477ace5..0394c51 100644 --- a/src/Taskview/visualizations/IVisualization.ts +++ b/src/Taskview/visualizations/IVisualization.ts @@ -1,10 +1,10 @@ -import {ICohort} from '../../CohortInterfaces'; -import {IAttribute} from '../../data/Attribute'; +import { ICohort } from '../../CohortInterfaces'; +import { IAttribute } from '../../data/Attribute'; export interface IVisualization { destroy(); hasSelectedData(): boolean; - getSelectedData(): {from: string | number, to: string | number, cohort: ICohort}[]; + getSelectedData(): { from: string | number; to: string | number; cohort: ICohort }[]; show(container: HTMLDivElement, attributes: IAttribute[], cohorts: ICohort[]): void; filter(): void; split(): void; diff --git a/src/Taskview/visualizations/KaplanMeierPlot.ts b/src/Taskview/visualizations/KaplanMeierPlot.ts index 03414c1..e10edf3 100644 --- a/src/Taskview/visualizations/KaplanMeierPlot.ts +++ b/src/Taskview/visualizations/KaplanMeierPlot.ts @@ -17,7 +17,9 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { // ATTENTION! with arquero, you can't use variables for identifiers (e.g., data[CALCULATED_ERROR]) static readonly SURVIVAL = 'survival'; // After applying the transform + static readonly TIME = 'days'; // After applying the transform + static readonly ERROR = 'error_95'; // After applying the transform protected readonly type = 'quantitative'; @@ -29,8 +31,8 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { icon: ``, label: 'Confidence Intervals', - groups: [confidenceToggleGroup] - } + groups: [confidenceToggleGroup], + }, ]; } @@ -42,29 +44,34 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { } log.debug('Also get data for ', missingAttrId); - const missingAttr = new ServerColumnAttribute(missingAttrId, this.attribute.view, this.attribute.database, {type: 'number', label: missingAttrId, column: missingAttrId}); + const missingAttr = new ServerColumnAttribute(missingAttrId, this.attribute.view, this.attribute.database, { + type: 'number', + label: missingAttrId, + column: missingAttrId, + }); attributes.push(missingAttr); if (missingAttrId === 'days_to_death') { this.attribute = missingAttr; } - const dataPromises = this.cohorts - .map((cht) => { - const promise = new Promise(async (resolve, reject) => { - const chtDataPromises = attributes.map((attr) => attr.getData(cht.dbId)); - try { - const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort - const mergedChtData = chtData[0].map((_, itemIndex) => chtData.reduce((mergedItem, attribute, i) => Object.assign(mergedItem, attribute[itemIndex]), {[DATA_LABEL]: getCohortLabel(cht)})); - resolve(mergedChtData); - } catch (e) { - reject(e); - } - }); - return promise; + const dataPromises = this.cohorts.map((cht) => { + const promise = new Promise(async (resolve, reject) => { + const chtDataPromises = attributes.map((attr) => attr.getData(cht.dbId)); + try { + const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort + const mergedChtData = chtData[0].map((_, itemIndex) => + chtData.reduce((mergedItem, attribute, i) => Object.assign(mergedItem, attribute[itemIndex]), { [DATA_LABEL]: getCohortLabel(cht) }), + ); + resolve(mergedChtData); + } catch (e) { + reject(e); + } }); + return promise; + }); - return Promise.all(dataPromises) as Promise<(IdValuePair & {Cohort: string;})[][]>; + return Promise.all(dataPromises) as Promise<(IdValuePair & { Cohort: string })[][]>; } getSpec(data: IdValuePair[]): VegaLiteSpec { @@ -75,18 +82,18 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { this.field = KaplanMeierPlot.TIME; const vegaSpec: VegaSpec = { - '$schema': 'https://vega.github.io/schema/vega/v5.json', - autosize: {type: 'fit-x', contains: 'padding'}, + $schema: 'https://vega.github.io/schema/vega/v5.json', + autosize: { type: 'fit-x', contains: 'padding' }, background: 'white', - padding: {left: 5, top: 0, right: 5, bottom: 5}, + padding: { left: 5, top: 0, right: 5, bottom: 5 }, height: 300, style: 'cell', - encode: {update: {cursor: {value: 'text'}}}, + encode: { update: { cursor: { value: 'text' } } }, data: [ - {name: 'selected_store'}, + { name: 'selected_store' }, { name: 'source_0', - values: data + values: data, }, { name: 'splitvalues', @@ -95,35 +102,33 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { trigger: 'draggedMark', modify: 'draggedMark', - values: 'dragTo' + values: 'dragTo', }, { trigger: 'addMark', - insert: 'addMark' + insert: 'addMark', }, { trigger: 'remMark', - remove: 'remMark' - } - ] + remove: 'remMark', + }, + ], }, { name: 'data_0', source: 'source_0', - transform: [ - {type: 'formula', expr: 'toNumber(datum[\'' + KaplanMeierPlot.TIME + '\'])', as: KaplanMeierPlot.TIME} - ] + transform: [{ type: 'formula', expr: `toNumber(datum['${KaplanMeierPlot.TIME}'])`, as: KaplanMeierPlot.TIME }], }, { name: 'data_1', source: 'data_0', transform: [ - {type: 'filter', expr: 'datum[\'last_followups\']>0'}, + { type: 'filter', expr: "datum['last_followups']>0" }, { type: 'filter', - expr: 'isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\']) && isValid(datum[\'' + KaplanMeierPlot.SURVIVAL + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.SURVIVAL + '\'])' - } - ] + expr: `isValid(datum['${KaplanMeierPlot.TIME}']) && isFinite(+datum['${KaplanMeierPlot.TIME}']) && isValid(datum['${KaplanMeierPlot.SURVIVAL}']) && isFinite(+datum['${KaplanMeierPlot.SURVIVAL}'])`, + }, + ], }, { name: 'data_2', @@ -131,16 +136,16 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { transform: [ { type: 'formula', - expr: 'datum[\'' + KaplanMeierPlot.SURVIVAL + '\'] + datum[\'' + KaplanMeierPlot.ERROR + '\']', - as: 'upper_' + KaplanMeierPlot.SURVIVAL + '' + expr: `datum['${KaplanMeierPlot.SURVIVAL}'] + datum['${KaplanMeierPlot.ERROR}']`, + as: `upper_${KaplanMeierPlot.SURVIVAL}`, }, { type: 'formula', - expr: 'datum[\'' + KaplanMeierPlot.SURVIVAL + '\'] - datum[\'' + KaplanMeierPlot.ERROR + '\']', - as: 'lower_' + KaplanMeierPlot.SURVIVAL + '' - } - ] - } + expr: `datum['${KaplanMeierPlot.SURVIVAL}'] - datum['${KaplanMeierPlot.ERROR}']`, + as: `lower_${KaplanMeierPlot.SURVIVAL}`, + }, + ], + }, ], signals: [ { @@ -149,18 +154,18 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { on: [ { update: 'isFinite(containerSize()[0]) ? containerSize()[0] : 200', - events: 'window:resize' - } - ] + events: 'window:resize', + }, + ], }, { name: 'dragTo', on: [ { events: '[@right_grabber:mousedown, window:mouseup] > window:mousemove', - update: '{x: invert(\'x\',x())}' - } - ] + update: "{x: invert('x',x())}", + }, + ], }, { name: 'draggedMark', @@ -170,14 +175,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { markname: 'right_grabber', type: 'mousedown', - filter: [ - '!event.ctrlKey' - ] - } + filter: ['!event.ctrlKey'], + }, ], - update: 'group().datum' - } - ] + update: 'group().datum', + }, + ], }, { name: 'addMark', @@ -187,15 +190,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { source: 'view', type: 'click', - filter: [ - 'event.ctrlKey', - 'item().mark.name === \'root\'' - ] - } + filter: ['event.ctrlKey', "item().mark.name === 'root'"], + }, ], - update: '{x: invert(\'x\',x())}' - } - ] + update: "{x: invert('x',x())}", + }, + ], }, { name: 'remMark', @@ -205,17 +205,17 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { markname: 'right_grabber', type: 'click', - filter: 'event.ctrlKey' + filter: 'event.ctrlKey', }, { markname: 'splitrule', type: 'click', - filter: 'event.ctrlKey' - } + filter: 'event.ctrlKey', + }, ], - update: 'group().datum' - } - ] + update: 'group().datum', + }, + ], }, { name: 'unit', @@ -223,13 +223,13 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { on: [ { events: 'mousemove', - update: 'isTuple(group()) ? group() : unit' - } - ] + update: 'isTuple(group()) ? group() : unit', + }, + ], }, { name: 'selected', - update: 'vlSelectionResolve(\'selected_store\', \'union\')' + update: "vlSelectionResolve('selected_store', 'union')", }, { name: 'selected_x', @@ -239,12 +239,9 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { events: { source: 'view', type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] + filter: ["!event.item || event.item.mark.name !== 'selected_brush'", "event.item.mark.name !== 'right_grabber'"], }, - update: '[x(unit), x(unit)]' + update: '[x(unit), x(unit)]', }, { events: { @@ -255,62 +252,58 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { source: 'scope', type: 'mousedown', - filter: [ - '!event.item || event.item.mark.name !== \'selected_brush\'', - 'event.item.mark.name !== \'right_grabber\'' - ] + filter: ["!event.item || event.item.mark.name !== 'selected_brush'", "event.item.mark.name !== 'right_grabber'"], }, { source: 'window', - type: 'mouseup' - } - ] + type: 'mouseup', + }, + ], }, - update: '[selected_x[0], clamp(x(unit), 0, width)]' + update: '[selected_x[0], clamp(x(unit), 0, width)]', }, { events: { - signal: 'selected_scale_trigger' + signal: 'selected_scale_trigger', }, - update: '[scale(\'x\', selected_' + KaplanMeierPlot.TIME + '[0]), scale(\'x\', selected_' + KaplanMeierPlot.TIME + '[1])]' + update: `[scale('x', selected_${KaplanMeierPlot.TIME}[0]), scale('x', selected_${KaplanMeierPlot.TIME}[1])]`, }, { events: [ { source: 'view', type: 'dblclick', - filter: [ - 'event.item.mark.name !== \'right_grabber\'' - ] - } + filter: ["event.item.mark.name !== 'right_grabber'"], + }, ], - update: '[0, 0]' + update: '[0, 0]', }, { events: { - signal: 'selected_translate_delta' + signal: 'selected_translate_delta', }, - update: 'clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)' + update: + 'clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)', }, { events: { - signal: 'selected_zoom_delta' + signal: 'selected_zoom_delta', }, - update: 'clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)' - } - ] + update: 'clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)', + }, + ], }, { - name: 'selected_' + KaplanMeierPlot.TIME, + name: `selected_${KaplanMeierPlot.TIME}`, value: this.getBrushRange(), on: [ { events: { - signal: 'selected_x' + signal: 'selected_x', }, - update: 'selected_x[0] === selected_x[1] ? null : invert(\'x\', selected_x)' - } - ] + update: "selected_x[0] === selected_x[1] ? null : invert('x', selected_x)", + }, + ], }, { name: 'selected_scale_trigger', @@ -319,12 +312,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { events: [ { - scale: 'x' - } + scale: 'x', + }, ], - update: '(!isArray(selected_' + KaplanMeierPlot.TIME + ') || (+invert(\'x\', selected_x)[0] === +selected_' + KaplanMeierPlot.TIME + '[0] && +invert(\'x\', selected_x)[1] === +selected_' + KaplanMeierPlot.TIME + '[1])) ? selected_scale_trigger : {}' - } - ] + update: `(!isArray(selected_${KaplanMeierPlot.TIME}) || (+invert('x', selected_x)[0] === +selected_${KaplanMeierPlot.TIME}[0] && +invert('x', selected_x)[1] === +selected_${KaplanMeierPlot.TIME}[1])) ? selected_scale_trigger : {}`, + }, + ], }, { name: 'selected_tuple', @@ -332,12 +325,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { events: [ { - signal: 'selected_' + KaplanMeierPlot.TIME - } + signal: `selected_${KaplanMeierPlot.TIME}`, + }, ], - update: 'selected_' + KaplanMeierPlot.TIME + ' ? {unit: \'layer_0\', fields: selected_tuple_fields, values: [selected_' + KaplanMeierPlot.TIME + ']} : null' - } - ] + update: `selected_${KaplanMeierPlot.TIME} ? {unit: 'layer_0', fields: selected_tuple_fields, values: [selected_${KaplanMeierPlot.TIME}]} : null`, + }, + ], }, { name: 'selected_tuple_fields', @@ -345,9 +338,9 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { field: KaplanMeierPlot.TIME, channel: 'x', - type: 'R' - } - ] + type: 'R', + }, + ], }, { name: 'selected_translate_anchor', @@ -358,12 +351,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { source: 'scope', type: 'mousedown', - markname: 'selected_brush' - } + markname: 'selected_brush', + }, ], - update: '{x: x(unit), y: y(unit), extent_x: slice(selected_x)}' - } - ] + update: '{x: x(unit), y: y(unit), extent_x: slice(selected_x)}', + }, + ], }, { name: 'selected_translate_delta', @@ -379,18 +372,18 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { { source: 'scope', type: 'mousedown', - markname: 'selected_brush' + markname: 'selected_brush', }, { source: 'window', - type: 'mouseup' - } - ] - } + type: 'mouseup', + }, + ], + }, ], - update: '{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}' - } - ] + update: '{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}', + }, + ], }, { name: 'selected_zoom_anchor', @@ -401,12 +394,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { source: 'scope', type: 'wheel', consume: true, - markname: 'selected_brush' - } + markname: 'selected_brush', + }, ], - update: '{x: x(unit), y: y(unit)}' - } - ] + update: '{x: x(unit), y: y(unit)}', + }, + ], }, { name: 'selected_zoom_delta', @@ -417,113 +410,116 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { source: 'scope', type: 'wheel', consume: true, - markname: 'selected_brush' - } + markname: 'selected_brush', + }, ], force: true, - update: 'pow(1.001, event.deltaY * pow(16, event.deltaMode))' - } - ] + update: 'pow(1.001, event.deltaY * pow(16, event.deltaMode))', + }, + ], }, { name: 'selected_modify', on: [ { events: { - signal: 'selected_tuple' + signal: 'selected_tuple', }, - update: 'modify(\'selected_store\', selected_tuple, true)' - } - ] - } + update: "modify('selected_store', selected_tuple, true)", + }, + ], + }, ], marks: [ - ...confidenceToggleGroup.getSelected().label === confidenceNone.label ? [] : [ - { - name: 'layer_1_layer_0_pathgroup', - type: 'group', - from: { - facet: { - name: 'faceted_path_layer_1_layer_0_main', - data: 'data_2', - groupby: [DATA_LABEL] - } - }, - encode: { - update: { - width: {field: {group: 'width'}}, - height: {field: {group: 'height'}} - } - }, - marks: [ + ...(confidenceToggleGroup.getSelected().label === confidenceNone.label + ? [] + : ([ { - name: 'layer_1_layer_0_marks', - type: 'area', - style: ['area', 'errorband-band'], - sort: {field: 'datum[\'' + KaplanMeierPlot.TIME + '\']'}, - interactive: true, - from: {data: 'faceted_path_layer_1_layer_0_main'}, + name: 'layer_1_layer_0_pathgroup', + type: 'group', + from: { + facet: { + name: 'faceted_path_layer_1_layer_0_main', + data: 'data_2', + groupby: [DATA_LABEL], + }, + }, encode: { update: { - ariaRoleDescription: {value: 'errorband'}, - opacity: {value: 0.3}, - interpolate: {value: 'step-after'}, - orient: {value: 'vertical'}, - fill: {scale: 'color', field: DATA_LABEL}, - tooltip: { - signal: '{\'' + KaplanMeierPlot.SURVIVAL + '\': format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'\'), \'' + KaplanMeierPlot.SURVIVAL + ' + ' + KaplanMeierPlot.ERROR + '\': format(datum[\'upper_' + KaplanMeierPlot.SURVIVAL + '\'], \'\'), \'' + KaplanMeierPlot.SURVIVAL + ' - ' + KaplanMeierPlot.ERROR + '\': format(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'], \'\'), \'' + KaplanMeierPlot.TIME + '\': format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\'), \'' + DATA_LABEL + '\': isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\']}' - }, - description: { - signal: '\'lower_' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; upper_' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'upper_' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; ' + KaplanMeierPlot.TIME + ': \' + (format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\')) + \'; Cohort: \' + (isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\']) + \'; ' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; ' + KaplanMeierPlot.SURVIVAL + ' + ' + KaplanMeierPlot.ERROR + ': \' + (format(datum[\'upper_' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; ' + KaplanMeierPlot.SURVIVAL + ' - ' + KaplanMeierPlot.ERROR + ': \' + (format(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'], \'\'))' + width: { field: { group: 'width' } }, + height: { field: { group: 'height' } }, + }, + }, + marks: [ + { + name: 'layer_1_layer_0_marks', + type: 'area', + style: ['area', 'errorband-band'], + sort: { field: `datum['${KaplanMeierPlot.TIME}']` }, + interactive: true, + from: { data: 'faceted_path_layer_1_layer_0_main' }, + encode: { + update: { + ariaRoleDescription: { value: 'errorband' }, + opacity: { value: 0.3 }, + interpolate: { value: 'step-after' }, + orient: { value: 'vertical' }, + fill: { scale: 'color', field: DATA_LABEL }, + tooltip: { + signal: `{'${KaplanMeierPlot.SURVIVAL}': format(datum['${KaplanMeierPlot.SURVIVAL}'], ''), '${KaplanMeierPlot.SURVIVAL} + ${KaplanMeierPlot.ERROR}': format(datum['upper_${KaplanMeierPlot.SURVIVAL}'], ''), '${KaplanMeierPlot.SURVIVAL} - ${KaplanMeierPlot.ERROR}': format(datum['lower_${KaplanMeierPlot.SURVIVAL}'], ''), '${KaplanMeierPlot.TIME}': format(datum['${KaplanMeierPlot.TIME}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}`, + }, + description: { + signal: `'lower_${KaplanMeierPlot.SURVIVAL}: ' + (format(datum['lower_${KaplanMeierPlot.SURVIVAL}'], '')) + '; upper_${KaplanMeierPlot.SURVIVAL}: ' + (format(datum['upper_${KaplanMeierPlot.SURVIVAL}'], '')) + '; ${KaplanMeierPlot.TIME}: ' + (format(datum['${KaplanMeierPlot.TIME}'], '')) + '; Cohort: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']) + '; ${KaplanMeierPlot.SURVIVAL}: ' + (format(datum['${KaplanMeierPlot.SURVIVAL}'], '')) + '; ${KaplanMeierPlot.SURVIVAL} + ${KaplanMeierPlot.ERROR}: ' + (format(datum['upper_${KaplanMeierPlot.SURVIVAL}'], '')) + '; ${KaplanMeierPlot.SURVIVAL} - ${KaplanMeierPlot.ERROR}: ' + (format(datum['lower_${KaplanMeierPlot.SURVIVAL}'], ''))`, + }, + x: { scale: 'x', field: KaplanMeierPlot.TIME }, + y: { scale: 'y', field: `lower_${KaplanMeierPlot.SURVIVAL}` }, + y2: { scale: 'y', field: `upper_${KaplanMeierPlot.SURVIVAL}` }, + defined: { + signal: `isValid(datum['${KaplanMeierPlot.TIME}']) && isFinite(+datum['${KaplanMeierPlot.TIME}']) && isValid(datum['lower_${KaplanMeierPlot.SURVIVAL}']) && isFinite(+datum['lower_${KaplanMeierPlot.SURVIVAL}'])`, + }, + }, }, - x: {scale: 'x', field: KaplanMeierPlot.TIME}, - y: {scale: 'y', field: 'lower_' + KaplanMeierPlot.SURVIVAL + ''}, - y2: {scale: 'y', field: 'upper_' + KaplanMeierPlot.SURVIVAL + ''}, - defined: { - signal: 'isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\']) && isValid(datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\']) && isFinite(+datum[\'lower_' + KaplanMeierPlot.SURVIVAL + '\'])' - } - } - } - } - ] - }] as any[], + }, + ], + }, + ] as any[])), { name: 'selected_brush_bg', type: 'rect', clip: true, encode: { - enter: {fill: {value: '#333'}, fillOpacity: {value: 0.125}}, + enter: { fill: { value: '#333' }, fillOpacity: { value: 0.125 } }, update: { x: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[0]', }, - {value: 0} + { value: 0 }, ], y: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + value: 0, }, - {value: 0} + { value: 0 }, ], x2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[1]', }, - {value: 0} + { value: 0 }, ], y2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: {group: 'height'} + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + field: { group: 'height' }, }, - {value: 0} - ] - } - } + { value: 0 }, + ], + }, + }, }, { name: 'layer_0_pathgroup', @@ -532,85 +528,85 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { facet: { name: 'faceted_path_layer_0_main', data: 'data_0', - groupby: [DATA_LABEL] - } + groupby: [DATA_LABEL], + }, }, encode: { update: { - width: {field: {group: 'width'}}, - height: {field: {group: 'height'}} - } + width: { field: { group: 'width' } }, + height: { field: { group: 'height' } }, + }, }, marks: [ { name: 'layer_0_marks', type: 'line', style: ['line'], - sort: {field: 'datum[\'' + KaplanMeierPlot.TIME + '\']'}, + sort: { field: `datum['${KaplanMeierPlot.TIME}']` }, interactive: true, - from: {data: 'faceted_path_layer_0_main'}, + from: { data: 'faceted_path_layer_0_main' }, encode: { update: { - interpolate: {value: 'step-after'}, - cursor: {value: 'text'}, - stroke: {scale: 'color', field: DATA_LABEL}, + interpolate: { value: 'step-after' }, + cursor: { value: 'text' }, + stroke: { scale: 'color', field: DATA_LABEL }, description: { - signal: '\'Time in Days: \' + (format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\')) + \'; Survival Probability: \' + (format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'.1~%\')) + \'; Cohort: \' + (isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\'])' + signal: `'Time in Days: ' + (format(datum['${KaplanMeierPlot.TIME}'], '')) + '; Survival Probability: ' + (format(datum['${KaplanMeierPlot.SURVIVAL}'], '.1~%')) + '; Cohort: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])`, }, - x: {scale: 'x', field: KaplanMeierPlot.TIME}, - y: {scale: 'y', field: KaplanMeierPlot.SURVIVAL}, + x: { scale: 'x', field: KaplanMeierPlot.TIME }, + y: { scale: 'y', field: KaplanMeierPlot.SURVIVAL }, defined: { - signal: 'isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\']) && isValid(datum[\'' + KaplanMeierPlot.SURVIVAL + '\']) && isFinite(+datum[\'' + KaplanMeierPlot.SURVIVAL + '\'])' - } - } - } - } - ] + signal: `isValid(datum['${KaplanMeierPlot.TIME}']) && isFinite(+datum['${KaplanMeierPlot.TIME}']) && isValid(datum['${KaplanMeierPlot.SURVIVAL}']) && isFinite(+datum['${KaplanMeierPlot.SURVIVAL}'])`, + }, + }, + }, + }, + ], }, { name: 'layer_2_marks', type: 'rect', style: ['tick'], interactive: false, - from: {data: 'data_1'}, + from: { data: 'data_1' }, encode: { update: { - opacity: {value: 0.6}, - fill: {scale: 'color', field: DATA_LABEL}, - ariaRoleDescription: {value: 'tick'}, + opacity: { value: 0.6 }, + fill: { scale: 'color', field: DATA_LABEL }, + ariaRoleDescription: { value: 'tick' }, description: { - signal: '\'' + KaplanMeierPlot.TIME + ': \' + (format(datum[\'' + KaplanMeierPlot.TIME + '\'], \'\')) + \'; ' + KaplanMeierPlot.SURVIVAL + ': \' + (format(datum[\'' + KaplanMeierPlot.SURVIVAL + '\'], \'\')) + \'; Cohort: \' + (isValid(datum[\'' + DATA_LABEL + '\']) ? datum[\'' + DATA_LABEL + '\'] : \'\'+datum[\'' + DATA_LABEL + '\'])' + signal: `'${KaplanMeierPlot.TIME}: ' + (format(datum['${KaplanMeierPlot.TIME}'], '')) + '; ${KaplanMeierPlot.SURVIVAL}: ' + (format(datum['${KaplanMeierPlot.SURVIVAL}'], '')) + '; Cohort: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])`, }, xc: [ { - test: '!isValid(datum[\'' + KaplanMeierPlot.TIME + '\']) || !isFinite(+datum[\'' + KaplanMeierPlot.TIME + '\'])', - value: 0 + test: `!isValid(datum['${KaplanMeierPlot.TIME}']) || !isFinite(+datum['${KaplanMeierPlot.TIME}'])`, + value: 0, }, - {scale: 'x', field: KaplanMeierPlot.TIME} + { scale: 'x', field: KaplanMeierPlot.TIME }, ], - yc: {scale: 'y', field: KaplanMeierPlot.SURVIVAL}, - height: {value: 15}, - width: {value: 1} - } - } + yc: { scale: 'y', field: KaplanMeierPlot.SURVIVAL }, + height: { value: 15 }, + width: { value: 1 }, + }, + }, }, { name: 'splitmarks', type: 'group', from: { - data: 'splitvalues' + data: 'splitvalues', }, encode: { - enter: {height: {field: {group: 'height'}}}, + enter: { height: { field: { group: 'height' } } }, update: { x: [ { - test: '!isValid(datum[\'x\']) || !isFinite(+datum[\'x\'])', - value: 0 + test: "!isValid(datum['x']) || !isFinite(+datum['x'])", + value: 0, }, - {scale: 'x', field: 'x'} - ] - } + { scale: 'x', field: 'x' }, + ], + }, }, marks: [ { @@ -619,31 +615,32 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { style: ['rule'], encode: { update: { - strokeDash: {value: [4, 6]}, - stroke: {value: 'black'}, - y: {value: 0}, - y2: {field: {group: 'height'}} - } - } + strokeDash: { value: [4, 6] }, + stroke: { value: 'black' }, + y: { value: 0 }, + y2: { field: { group: 'height' } }, + }, + }, }, { type: 'path', name: 'right_grabber', encode: { enter: { - y: {field: {group: 'height'}, mult: 0.5, offset: -50}, - fill: {value: '#fff'}, - stroke: {value: '#666'}, - cursor: {value: 'ew-resize'} + y: { field: { group: 'height' }, mult: 0.5, offset: -50 }, + fill: { value: '#fff' }, + stroke: { value: '#666' }, + cursor: { value: 'ew-resize' }, }, update: { path: { - signal: '\'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667\'' - } - } - } - } - ] + signal: + "'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667'", + }, + }, + }, + }, + ], }, { name: 'selected_brush', @@ -651,45 +648,42 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { clip: true, encode: { enter: { - cursor: {value: 'pointer'}, - fill: {value: 'transparent'} + cursor: { value: 'pointer' }, + fill: { value: 'transparent' }, }, update: { x: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[0]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[0]', }, - {value: 0} + { value: 0 }, ], y: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - value: 0 + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + value: 0, }, - {value: 0} + { value: 0 }, ], x2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - signal: 'selected_x[1]' + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + signal: 'selected_x[1]', }, - {value: 0} + { value: 0 }, ], y2: [ { - test: 'data(\'selected_store\').length && data(\'selected_store\')[0].unit === \'layer_0\'', - field: {group: 'height'} + test: "data('selected_store').length && data('selected_store')[0].unit === 'layer_0'", + field: { group: 'height' }, }, - {value: 0} + { value: 0 }, ], - stroke: [ - {test: 'selected_x[0] !== selected_x[1]', value: 'white'}, - {value: null} - ] - } - } - } + stroke: [{ test: 'selected_x[0] !== selected_x[1]', value: 'white' }, { value: null }], + }, + }, + }, ], scales: [ { @@ -697,59 +691,60 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { type: 'linear', domain: { fields: [ - {data: 'data_0', field: KaplanMeierPlot.TIME}, - {data: 'data_2', field: KaplanMeierPlot.TIME}, - {data: 'data_1', field: KaplanMeierPlot.TIME}] + { data: 'data_0', field: KaplanMeierPlot.TIME }, + { data: 'data_2', field: KaplanMeierPlot.TIME }, + { data: 'data_1', field: KaplanMeierPlot.TIME }, + ], }, - range: [0, {signal: 'width'}], + range: [0, { signal: 'width' }], domainMin: 0, // nice: true, - zero: false + zero: false, }, { name: 'y', type: 'linear', domain: [0, 1], - range: [{signal: 'height'}, 0], + range: [{ signal: 'height' }, 0], clamp: true, nice: true, - zero: true + zero: true, }, { name: 'color', type: 'ordinal', domain: this.cohorts.map((cht) => cht.label), - range: 'category' - } + range: 'category', + }, ], axes: [ { scale: 'x', orient: 'bottom', gridScale: 'y', - grid: true, - tickCount: {signal: 'ceil(width/40)'}, + grid: false, + tickCount: { signal: 'ceil(width/40)' }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 + zindex: 0, }, { scale: 'y', orient: 'left', gridScale: 'x', - grid: true, - tickCount: {signal: 'ceil(height/40)'}, + grid: false, + tickCount: { signal: 'ceil(height/40)' }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 + zindex: 0, }, { scale: 'x', @@ -757,8 +752,8 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { grid: false, title: 'Time in Days', labelFlush: true, - tickCount: {signal: 'ceil(width/40)'}, - zindex: 0 + tickCount: { signal: 'ceil(width/40)' }, + zindex: 0, }, { scale: 'y', @@ -767,12 +762,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { title: 'Survival Probability', format: '.1~%', labelBound: false, - tickCount: {signal: 'ceil(height/40)'}, - zindex: 0 - } + tickCount: { signal: 'ceil(height/40)' }, + zindex: 0, + }, ], config: { - range: {category: this.colorPalette}, + range: { category: this.colorPalette }, axis: { titleFontSize: 16, titleFontWeight: 500, @@ -782,7 +777,7 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { labelFont: 'Roboto', labelOverlap: 'parity', labelSeparation: 5, - labelBound: true + labelBound: true, }, legend: { titleFontSize: 16, @@ -791,12 +786,12 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { labelFontSize: 12, labelLimit: 150, labelFont: 'Roboto', - labelOverlap: 'parity' - } - } + labelOverlap: 'parity', + }, + }, }; - return vegaSpec as unknown as VegaLiteSpec; //little workaround because the multiple types supported by vegaEmbed are not recognized correctly + return vegaSpec as unknown as VegaLiteSpec; // little workaround because the multiple types supported by vegaEmbed are not recognized correctly } /** @@ -809,41 +804,46 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { const aqdata = from(data) // we could filter all items that have null for days to death/last followup first, but those will be removed by a later step // pre-processing: remove days to last follow for all patients where a death date is available (can only be before death) - .derive({days_to_last_followup: (d) => !op.match(/null/, (d as any).days_to_death, null) && !op.match(/null/, (d as any).days_to_last_followup, null) ? null : (d as any).days_to_last_followup}) + .derive({ + days_to_last_followup: (d) => + !op.match(/null/, (d as any).days_to_death, null) && !op.match(/null/, (d as any).days_to_last_followup, null) + ? null + : (d as any).days_to_last_followup, + }) // // Convert to long format (one row per sample, day, and event) - .fold(not('tissuename', DATA_LABEL) as ExprList, {as: ['event', KaplanMeierPlot.TIME]}) // transform from wide form into long form (one column with days, one column showing which event (death/last followup) - .filter((d) => !op.match(/null/, (d as any).days, null)) //drop missing data + .fold(not('tissuename', DATA_LABEL) as ExprList, { as: ['event', KaplanMeierPlot.TIME] }) // transform from wide form into long form (one column with days, one column showing which event (death/last followup) + .filter((d) => !op.match(/null/, (d as any).days, null)) // drop missing data // .groupby(DATA_LABEL, KaplanMeierPlot.TIME, 'event') // group by cohort and days to calc events (#deaths, #followups), group by event so that the events can be directly counted with ... .count() // sum up same events of each day per group // - .concat(table({Cohort: getCohortLabels(this.cohorts), days: [0, 0]})) //ensure to start at zero days + .concat(table({ Cohort: getCohortLabels(this.cohorts), days: [0, 0] })) // ensure to start at zero days // // convert back to wide format: one column for days, two columns for number of death followup events .groupby(DATA_LABEL, KaplanMeierPlot.TIME) .pivot('event', 'count') // // rename columns - .derive({deaths: (d) => (d as any).days_to_death || 0, last_followups: (d) => (d as any).days_to_last_followup || 0}) + .derive({ deaths: (d) => (d as any).days_to_death || 0, last_followups: (d) => (d as any).days_to_last_followup || 0 }) // // calculate risk - .groupby(DATA_LABEL).orderby(desc(KaplanMeierPlot.TIME) as OrderKeys) // sum up from behind to ease calculation - .derive({at_risk: rolling((d) => op.sum(d.deaths) + op.sum(d.last_followups))}) + .groupby(DATA_LABEL) + .orderby(desc(KaplanMeierPlot.TIME) as OrderKeys) // sum up from behind to ease calculation + .derive({ at_risk: rolling((d) => op.sum(d.deaths) + op.sum(d.last_followups)) }) // // Calculate Survival and error basis, based on https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/bs704_survival4.html - .groupby(DATA_LABEL).orderby(KaplanMeierPlot.TIME) + .groupby(DATA_LABEL) + .orderby(KaplanMeierPlot.TIME) .derive({ - [KaplanMeierPlot.SURVIVAL]: rolling( - (d) => op.product(1 - (d.deaths) / d.at_risk) - ), - error_sum: rolling((d) => op.sum((d.deaths / (d.at_risk * (d.at_risk - d.deaths)) as unknown as string))), // number type is inferred by the math operations, but sum wants a string + [KaplanMeierPlot.SURVIVAL]: rolling((d) => op.product(1 - d.deaths / d.at_risk)), + error_sum: rolling((d) => op.sum((d.deaths / (d.at_risk * (d.at_risk - d.deaths))) as unknown as string)), // number type is inferred by the math operations, but sum wants a string }) // // calculate actual error, has to be done in a sepeate step because it relies on values just calculated // "Greenwoods" Error based on https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_survival/bs704_survival4.html .derive({ - [KaplanMeierPlot.ERROR]: (d) => 1.96 * (d as any).survival * op.sqrt((d as any).error_sum), //1.96 = 95% interval + [KaplanMeierPlot.ERROR]: (d) => 1.96 * (d as any).survival * op.sqrt((d as any).error_sum), // 1.96 = 95% interval }); // not necessary for plotting: // .derive({ @@ -851,7 +851,7 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { // error_down: d => (d.survival_propability - d.error_95) < 0 ? 0 : (d.survival_propability - d.error_95) // }) - //aqdata.print({limit: 100}); // print to console + // aqdata.print({limit: 100}); // print to console return aqdata.objects() as IdValuePair[]; } @@ -859,8 +859,8 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { * From == To for categorical data, e.g. FROM: male, TO: male * From is inclusive (>=) and TO exclusive (<) for numerical data, e.g. FROM 50 TO 60 = [50,60) */ - getSelectedData(): {cohort: ICohort, from: string | number, to: string | number}[] { - const filters: {cohort: ICohort, from: string | number, to: string | number}[] = []; + getSelectedData(): { cohort: ICohort; from: string | number; to: string | number }[] { + const filters: { cohort: ICohort; from: string | number; to: string | number }[] = []; if (!this.hideVisualization) { const selections = this.vegaView.signal(AVegaVisualization.SELECTION_SIGNAL_NAME); let attrSelection = selections[KaplanMeierPlot.TIME]; // value == name applied through density transform @@ -868,7 +868,7 @@ export class KaplanMeierPlot extends SingleAttributeVisualization { attrSelection = this.vegaView.scale('x').domain(); } this.cohorts.forEach((cohort) => { - filters.push({from: attrSelection[0], to: attrSelection[1], cohort}); + filters.push({ from: attrSelection[0], to: attrSelection[1], cohort }); const nullFilter = this.getNullValueSelectedData(cohort, this.attribute); if (nullFilter) { diff --git a/src/Taskview/visualizations/MultiAttributeVisualization.ts b/src/Taskview/visualizations/MultiAttributeVisualization.ts index a3f2569..1053591 100644 --- a/src/Taskview/visualizations/MultiAttributeVisualization.ts +++ b/src/Taskview/visualizations/MultiAttributeVisualization.ts @@ -2,28 +2,31 @@ import * as aq from 'arquero'; import {format, select} from 'd3v7'; import tippy from 'tippy.js'; import vegaEmbed from 'vega-embed'; -import {TopLevelSpec as VegaLiteSpec} from 'vega-lite'; -import {Cohort, getCohortLabel} from '../../Cohort'; -import {ICohort} from '../../CohortInterfaces'; -import {IAttribute, IdValuePair} from '../../data/Attribute'; -import {log, selectLast} from '../../util'; -import {AVegaVisualization} from './AVegaVisualization'; -import {DATA_LABEL} from './constants'; +import { TopLevelSpec as VegaLiteSpec } from 'vega-lite'; +import { Cohort, getCohortLabel } from '../../Cohort'; +import { ICohort } from '../../CohortInterfaces'; +import { IAttribute, IdValuePair } from '../../data/Attribute'; +import { log, selectLast } from '../../util'; +import { AVegaVisualization } from './AVegaVisualization'; +import { DATA_LABEL } from './constants'; export abstract class MultiAttributeVisualization extends AVegaVisualization { /** * The displayed attribute */ protected attributes: IAttribute[]; + /** * Vega name of the displayed attribute, might be different to attribute.datakey due to transformation (e.g. density transform) */ protected fields: string[]; + protected colorPalette: string[]; + protected nullValueMap: Map>; async show(container: HTMLDivElement, attributes: IAttribute[], cohorts: Cohort[]) { - log.debug('show: ', {container, attributes, cohorts}); + log.debug('show: ', { container, attributes, cohorts }); if (attributes.length <= 1) { throw new Error('Number of attributes must be at least 2'); } else if (cohorts.length <= 0) { @@ -31,35 +34,37 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { } this.cohorts = cohorts; this.attributes = attributes; - //Create an array, with on entry per cohort, which contains an array with one entry per attribute, i.e. for 2 cohorts and 2 attributes (A1,A2) we get [[A1, A2], [A1, A2]] - const dataPromises = cohorts - .map((cht, chtIndex) => { - const promise = new Promise(async (resolve, reject) => { - const chtDataPromises = this.attributes.map((attr) => attr.getData(cht.dbId)); - try { - const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort - let joinedData = aq.from(chtData[0]); - for (let i = 1; i < chtData.length; i++) { - joinedData = joinedData.join_full(aq.from(chtData[i])); - } - const labelTable = aq.table({[DATA_LABEL]: [getCohortLabel(cht)]}); - joinedData = joinedData.join_left(labelTable, (data, label) => true); - resolve(joinedData.objects()); - } catch (e) { - reject(e); + // Create an array, with on entry per cohort, which contains an array with one entry per attribute, i.e. for 2 cohorts and 2 attributes (A1,A2) we get [[A1, A2], [A1, A2]] + const dataPromises = cohorts.map((cht, chtIndex) => { + const promise = new Promise(async (resolve, reject) => { + const chtDataPromises = this.attributes.map((attr) => attr.getData(cht.dbId)); + try { + const chtData = await Promise.all(chtDataPromises); // array with one entry per attribute, which contains an array with one value for every item in the cohort + let joinedData = aq.from(chtData[0]); + for (let i = 1; i < chtData.length; i++) { + joinedData = joinedData.join_full(aq.from(chtData[i])); } - }); - return promise; + const labelTable = aq.table({ [DATA_LABEL]: [getCohortLabel(cht)] }); + joinedData = joinedData.join_left(labelTable, (data, label) => true); + resolve(joinedData.objects()); + } catch (e) { + reject(e); + } }); + return promise; + }); const data = await Promise.all(dataPromises); this.container = container; - this.container.insertAdjacentHTML(`afterbegin`, ` + this.container.insertAdjacentHTML( + `afterbegin`, + `
- `); - this.chart = this.container.getElementsByTagName('div')[0]; //first-child was not the right type of object and vega-embed failed + `, + ); + this.chart = this.container.getElementsByTagName('div')[0]; // first-child was not the right type of object and vega-embed failed this.controls = this.container.querySelector('.controls .sticky'); const notZeroCohorts = this.cohorts.filter((a) => { const currSize = a.getRetrievedSize(); @@ -105,10 +110,11 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { } } - // may be overwritten (e.g. for tsne plot where the attribtues are different) protected addControls() { - this.controls.insertAdjacentHTML('afterbegin', ` + this.controls.insertAdjacentHTML( + 'afterbegin', + `
- `); - this.controls.querySelector('#split').insertAdjacentHTML(`beforeend`, ` + `, + ); + this.controls.querySelector('#split').insertAdjacentHTML( + `beforeend`, + `
@@ -221,11 +241,12 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization {
- `); + `, + ); this.addNullCheckbox(attrKey); - const that = this; //helper varible to access this instance in the d3 event handler function + const that = this; // helper varible to access this instance in the d3 event handler function const brushInputs = select(this.controls).selectAll(`input.interval[data-axis="${axis}"]`); brushInputs.on('change', function () { @@ -254,14 +275,15 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { nullValueTooltip += ` ${nullValues}
`; } const selector = `[data-attr="${attribute}"] .hint`; - tippy(this.controls.querySelectorAll(selector), {content: nullValueTooltip}); + tippy(this.controls.querySelectorAll(selector), { content: nullValueTooltip }); } protected splitValuesX = []; + protected splitValuesY = []; handleBinChangeEvent(event) { - this.vegaView.removeDataListener(`splitvalues_${event.dataset.axis}`, this.vegaSplitListener); //remove listener temporarily + this.vegaView.removeDataListener(`splitvalues_${event.dataset.axis}`, this.vegaSplitListener); // remove listener temporarily const binCount = parseFloat(event.value); const splitValCount = binCount - 1; const [min, max] = this.vegaView.scale(event.dataset.axis).domain(); @@ -271,16 +293,18 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { const binType = this.controls.querySelector(`#split select.binType[data-axis="${event.dataset.axis}"]`) as HTMLSelectElement; const splitValues = event.dataset.axis === 'x' ? this.splitValuesX : this.splitValuesY; - if (binType?.selectedIndex === 1) { // custom width + if (binType?.selectedIndex === 1) { + // custom width if (splitValues.length > splitValCount) { - splitValues.sort((a, b) => a - b); //sort em - splitValues.length = splitValCount; //drop largest split values + splitValues.sort((a, b) => a - b); // sort em + splitValues.length = splitValCount; // drop largest split values } else { while (splitValues.length < splitValCount) { splitValues.push(max); // add maximum until there are enough rulers } } - } else { // equal width + } else { + // equal width splitValues.length = 0; for (let i = 1; i < binCount; i++) { @@ -289,26 +313,29 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { } } - this.vegaView.data(`splitvalues_${event.dataset.axis}`, splitValues.slice()); //set a defensive copy - this.vegaView.runAsync().then((vegaView) => //defer adding signallistener until the new data is set internally - vegaView.addDataListener(`splitvalues_${event.dataset.axis}`, this.vegaSplitListener) //add listener again + this.vegaView.data(`splitvalues_${event.dataset.axis}`, splitValues.slice()); // set a defensive copy + this.vegaView.runAsync().then( + ( + vegaView, // defer adding signallistener until the new data is set internally + ) => vegaView.addDataListener(`splitvalues_${event.dataset.axis}`, this.vegaSplitListener), // add listener again ); } protected vegaBrushListener = (name, value) => this.handleVegaIntervalEvent(name, value); + protected vegaSplitListener = (name, value) => this.handleSplitDragEvent(name, value); protected axes: Array = ['x', 'y']; handleInputIntervalEvent(event) { for (const axis of this.axes) { - this.vegaView.removeSignalListener(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, this.vegaBrushListener); //remove listener temporarily + this.vegaView.removeSignalListener(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, this.vegaBrushListener); // remove listener temporarily const range = this.getInterval(axis); log.debug('range', range); const scaledMin = axis === 'x' ? 0 : this.vegaView.height(); const scaledMax = axis === 'x' ? this.vegaView.width() : 0; // y has zero in the top and maximum scren cooridinates at the bottom - const scaledRange = [scaledMin, scaledMax]; //use min and max as default for range + const scaledRange = [scaledMin, scaledMax]; // use min and max as default for range const scale = this.vegaView.scale(axis); // if one or both ranges are set, replace with values @@ -318,13 +345,13 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { if (range[1] !== undefined && !isNaN(range[1])) { scaledRange[1] = scale(range[1]); // get max value from input if (range[0] === range[1]) { - scaledRange[1] = scale(range[1]) + Math.pow(10, -10); // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) + scaledRange[1] = scale(range[1]) + 10 ** -10; // the 10^(-10) are independent of the attribute domain (i.e. values of 0 to 1 or in millions) because we add it after scaling (its a fraction of a pixel) } } log.info('scaledRange', scaledRange); this.vegaView.signal(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, scaledRange); - this.vegaView.addSignalListener(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, this.vegaBrushListener); //add listener again + this.vegaView.addSignalListener(`${AVegaVisualization.SELECTION_SIGNAL_NAME}_${axis}`, this.vegaBrushListener); // add listener again } this.vegaView.runAsync(); // update the chart @@ -333,7 +360,7 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { getInterval(axis: AxisType) { const range = [ parseFloat((select(this.controls).select(`input.minimum[data-axis="${axis}"]`).node() as HTMLInputElement).value), // get value, not the value attribute - parseFloat((select(this.controls).select(`input.maximum[data-axis="${axis}"]`).node() as HTMLInputElement).value) + parseFloat((select(this.controls).select(`input.maximum[data-axis="${axis}"]`).node() as HTMLInputElement).value), ]; if (range.some((rangeNum) => rangeNum === undefined || isNaN(rangeNum))) { @@ -362,28 +389,32 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { const lowerBound = attrValues[0]; const upperBound = attrValues[1]; const inputs = select(this.controls).selectAll(`input.interval[data-axis="${axis}"]`); - inputs.on('change', null); //remove listeners temporarily + inputs.on('change', null); // remove listeners temporarily const formatter = format('.4~f'); (select(this.controls).selectAll(`input.minimum[data-axis="${axis}"]`).node() as HTMLInputElement).value = formatter(lowerBound); (select(this.controls).selectAll(`input.maximum[data-axis="${axis}"]`).node() as HTMLInputElement).value = formatter(upperBound); - //add listener again: - const that = this; //helper varible to access this instance in the d3 event handler function + // add listener again: + const that = this; // helper varible to access this instance in the d3 event handler function inputs.on('change', function () { const d3Event = this; // because we use a function this is overwritten by d3, asssign to variable for clarity that.handleInputIntervalEvent.bind(that)(d3Event); // voodoo magic (👺) to set this back to the current instance }); } } else { - select(this.controls).selectAll(`input.minimum, input.maximum`).nodes().forEach((node) => (node as HTMLInputElement).value = ''); + select(this.controls) + .selectAll(`input.minimum, input.maximum`) + .nodes() + .forEach((node) => ((node as HTMLInputElement).value = '')); } } handleSplitDragEvent(name, value) { const axis = name.replace('splitvalues_', ''); // e.g., splitvalues_x -> x - const splitValues = this.vegaView.data(`splitvalues_${axis}`) + const splitValues = this.vegaView + .data(`splitvalues_${axis}`) .map((val) => val.data) .sort((a, b) => a - b); @@ -427,7 +458,7 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { select(chart).selectAll('*').remove(); chart.className = ''; } - const result = await vegaEmbed(chart, spec, {actions: false, renderer: 'svg'}); + const result = await vegaEmbed(chart, spec, { actions: false, renderer: 'svg' }); this.vegaLiteSpec = result.spec; this.vegaSpec = result.vgSpec; this.vegaView = result.view; @@ -438,10 +469,10 @@ export abstract class MultiAttributeVisualization extends AVegaVisualization { log.info('vega', this.vegaSpec); log.info('vegalite', this.vegaLiteSpec); - window.dispatchEvent(new Event('resize')); //update vega chart sizes in case the columns became narrower + window.dispatchEvent(new Event('resize')); // update vega chart sizes in case the columns became narrower } - getSelectedData(): {from: string | number; to: string | number; cohort: ICohort}[] { + getSelectedData(): { from: string | number; to: string | number; cohort: ICohort }[] { throw new Error('use getSelectedDatas for multi attribute'); } } diff --git a/src/Taskview/visualizations/Scatterplot.ts b/src/Taskview/visualizations/Scatterplot.ts index 35db688..7f74f7d 100644 --- a/src/Taskview/visualizations/Scatterplot.ts +++ b/src/Taskview/visualizations/Scatterplot.ts @@ -14,6 +14,7 @@ import {Field} from 'vega-lite/build/src/channeldef'; export class Scatterplot extends MultiAttributeVisualization { static readonly NAME: string = 'Scatterplot'; + protected checkAttributeType = false; constructor(vegaLiteOptions: Object = {}) { @@ -21,21 +22,18 @@ export class Scatterplot extends MultiAttributeVisualization { } getSpec(data: IdValuePair[]): VegaLiteSpec { - if ( - this.checkAttributeType && - this.attributes.some((attr) => attr.type !== `number`) - ) { + if (this.checkAttributeType && this.attributes.some((attr) => attr.type !== `number`)) { throw new Error(`Scatterplot requires attributes of type number`); } const vegaSpec: VegaSpec = { $schema: `https://vega.github.io/schema/vega/v5.json`, - autosize: {type: `fit`, contains: `padding`}, + autosize: { type: `fit`, contains: `padding` }, background: `white`, - padding: {left: 5, top: 5, right: 5, bottom: 5}, // top and right padding are necessary for split rulers + padding: { left: 5, top: 5, right: 5, bottom: 5 }, // top and right padding are necessary for split rulers height: 300, style: `cell`, - encode: {update: {cursor: {value: `crosshair`}}}, + encode: { update: { cursor: { value: `crosshair` } } }, data: [ { name: `selected_store`, @@ -43,16 +41,16 @@ export class Scatterplot extends MultiAttributeVisualization { { unit: `layer_0`, fields: [ - {field: `${this.attributes[0].dataKey}`, channel: `x`, type: `R`}, - {field: `${this.attributes[1].dataKey}`, channel: `y`, type: `R`} + { field: `${this.attributes[0].dataKey}`, channel: `x`, type: `R` }, + { field: `${this.attributes[1].dataKey}`, channel: `y`, type: `R` }, ], - values: [[], []] - } - ] + values: [[], []], + }, + ], }, { name: `source_0`, - values: data + values: data, }, { name: `splitvalues_x`, @@ -61,11 +59,11 @@ export class Scatterplot extends MultiAttributeVisualization { { trigger: `draggedMark_x`, modify: `draggedMark_x`, - values: `dragTo_x` + values: `dragTo_x`, }, - {trigger: `addMark_x`, insert: `addMark_x`}, - {trigger: `remMark_x`, remove: `remMark_x`} - ] + { trigger: `addMark_x`, insert: `addMark_x` }, + { trigger: `remMark_x`, remove: `remMark_x` }, + ], }, { name: `splitvalues_y`, @@ -74,10 +72,10 @@ export class Scatterplot extends MultiAttributeVisualization { { trigger: `draggedMark_y`, modify: `draggedMark_y`, - values: `dragTo_y` + values: `dragTo_y`, }, - {trigger: `remMark_y`, remove: `remMark_y`} - ] + { trigger: `remMark_y`, remove: `remMark_y` }, + ], }, { name: `data_0`, @@ -85,9 +83,9 @@ export class Scatterplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `isValid(datum['${this.attributes[0].dataKey}']) && isFinite(+datum['${this.attributes[0].dataKey}']) && isValid(datum['${this.attributes[1].dataKey}']) && isFinite(+datum['${this.attributes[1].dataKey}'])` - } - ] + expr: `isValid(datum['${this.attributes[0].dataKey}']) && isFinite(+datum['${this.attributes[0].dataKey}']) && isValid(datum['${this.attributes[1].dataKey}']) && isFinite(+datum['${this.attributes[1].dataKey}'])`, + }, + ], }, { name: `data_1`, @@ -95,9 +93,9 @@ export class Scatterplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `isValid(datum['data']) && isFinite(+datum['data'])` - } - ] + expr: `isValid(datum['data']) && isFinite(+datum['data'])`, + }, + ], }, { name: `data_2`, @@ -105,10 +103,10 @@ export class Scatterplot extends MultiAttributeVisualization { transform: [ { type: `filter`, - expr: `isValid(datum['data']) && isFinite(+datum['data'])` - } - ] - } + expr: `isValid(datum['data']) && isFinite(+datum['data'])`, + }, + ], + }, ], signals: [ { @@ -117,18 +115,18 @@ export class Scatterplot extends MultiAttributeVisualization { on: [ { update: `isFinite(containerSize()[0]) ? containerSize()[0] : 200`, - events: `window:resize` - } - ] + events: `window:resize`, + }, + ], }, { name: `dragTo_x`, on: [ { events: `[@grabber_x:mousedown, window:mouseup] > window:mousemove`, - update: `{data: invert('x',x())}` - } - ] + update: `{data: invert('x',x())}`, + }, + ], }, { name: `draggedMark_x`, @@ -138,12 +136,12 @@ export class Scatterplot extends MultiAttributeVisualization { { markname: `grabber_x`, type: `mousedown`, - filter: [`!event.ctrlKey`] - } + filter: [`!event.ctrlKey`], + }, ], - update: `group().datum` - } - ] + update: `group().datum`, + }, + ], }, { name: `addMark_x`, @@ -153,12 +151,12 @@ export class Scatterplot extends MultiAttributeVisualization { { source: `view`, type: `click`, - filter: [`event.ctrlKey`, `item().mark.name === 'root'`] - } + filter: [`event.ctrlKey`, `item().mark.name === 'root'`], + }, ], - update: `{data: invert('x',x())}` - } - ] + update: `{data: invert('x',x())}`, + }, + ], }, { name: `remMark_x`, @@ -168,26 +166,26 @@ export class Scatterplot extends MultiAttributeVisualization { { markname: `grabber_x`, type: `click`, - filter: `event.ctrlKey` + filter: `event.ctrlKey`, }, { markname: `splitrule_x`, type: `click`, - filter: `event.ctrlKey` - } + filter: `event.ctrlKey`, + }, ], - update: `group().datum` - } - ] + update: `group().datum`, + }, + ], }, { name: `dragTo_y`, on: [ { events: `[@grabber_y:mousedown, window:mouseup] > window:mousemove`, - update: `{data: invert('y',y())}` - } - ] + update: `{data: invert('y',y())}`, + }, + ], }, { name: `draggedMark_y`, @@ -197,12 +195,12 @@ export class Scatterplot extends MultiAttributeVisualization { { markname: `grabber_y`, type: `mousedown`, - filter: [`!event.ctrlKey`] - } + filter: [`!event.ctrlKey`], + }, ], - update: `group().datum` - } - ] + update: `group().datum`, + }, + ], }, { name: `remMark_y`, @@ -212,28 +210,26 @@ export class Scatterplot extends MultiAttributeVisualization { { markname: `grabber_y`, type: `click`, - filter: `event.ctrlKey` + filter: `event.ctrlKey`, }, { markname: `splitrule_y`, type: `click`, - filter: `event.ctrlKey` - } + filter: `event.ctrlKey`, + }, ], - update: `group().datum` - } - ] + update: `group().datum`, + }, + ], }, { name: `unit`, value: {}, - on: [ - {events: `mousemove`, update: `isTuple(group()) ? group() : unit`} - ] + on: [{ events: `mousemove`, update: `isTuple(group()) ? group() : unit` }], }, { name: `selected`, - update: `vlSelectionResolve('selected_store', 'union')` + update: `vlSelectionResolve('selected_store', 'union')`, }, { name: `selected_x`, @@ -246,10 +242,10 @@ export class Scatterplot extends MultiAttributeVisualization { filter: [ `!event.item || event.item.mark.name !== 'selected_brush'`, `event.item.mark.name !== 'grabber_x'`, - `event.item.mark.name !== 'grabber_y'` - ] + `event.item.mark.name !== 'grabber_y'`, + ], }, - update: `[x(unit), x(unit)]` + update: `[x(unit), x(unit)]`, }, { events: { @@ -263,41 +259,41 @@ export class Scatterplot extends MultiAttributeVisualization { filter: [ `!event.item || event.item.mark.name !== 'selected_brush'`, `event.item.mark.name !== 'grabber_x'`, - `event.item.mark.name !== 'grabber_y'` - ] + `event.item.mark.name !== 'grabber_y'`, + ], }, - {source: `window`, type: `mouseup`} - ] + { source: `window`, type: `mouseup` }, + ], }, - update: `[selected_x[0], clamp(x(unit), 0, width)]` + update: `[selected_x[0], clamp(x(unit), 0, width)]`, }, { - events: {signal: `selected_scale_trigger`}, - update: `[scale('x', selected_attr0[0]), scale('x', selected_attr0[1])]` + events: { signal: `selected_scale_trigger` }, + update: `[scale('x', selected_attr0[0]), scale('x', selected_attr0[1])]`, }, { - events: [{source: `view`, type: `dblclick`}], - update: `[0, 0]` + events: [{ source: `view`, type: `dblclick` }], + update: `[0, 0]`, }, { - events: {signal: `selected_translate_delta`}, - update: `clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)` + events: { signal: `selected_translate_delta` }, + update: `clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)`, }, { - events: {signal: `selected_zoom_delta`}, - update: `clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)` - } - ] + events: { signal: `selected_zoom_delta` }, + update: `clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)`, + }, + ], }, { name: `selected_attr0`, init: `[]`, on: [ { - events: {signal: `selected_x`}, - update: `selected_x[0] === selected_x[1] ? null : invert('x', selected_x)` - } - ] + events: { signal: `selected_x` }, + update: `selected_x[0] === selected_x[1] ? null : invert('x', selected_x)`, + }, + ], }, { name: `selected_y`, @@ -307,11 +303,9 @@ export class Scatterplot extends MultiAttributeVisualization { events: { source: `scope`, type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'` - ] + filter: [`!event.item || event.item.mark.name !== 'selected_brush'`], }, - update: `[y(unit), y(unit)]` + update: `[y(unit), y(unit)]`, }, { events: { @@ -322,69 +316,67 @@ export class Scatterplot extends MultiAttributeVisualization { { source: `scope`, type: `mousedown`, - filter: [ - `!event.item || event.item.mark.name !== 'selected_brush'` - ] + filter: [`!event.item || event.item.mark.name !== 'selected_brush'`], }, - {source: `window`, type: `mouseup`} - ] + { source: `window`, type: `mouseup` }, + ], }, - update: `[selected_y[0], clamp(y(unit), 0, height)]` + update: `[selected_y[0], clamp(y(unit), 0, height)]`, }, { - events: {signal: `selected_scale_trigger`}, - update: `[scale('y', selected_attr1[0]), scale('y', selected_attr1[1])]` + events: { signal: `selected_scale_trigger` }, + update: `[scale('y', selected_attr1[0]), scale('y', selected_attr1[1])]`, }, { - events: [{source: `view`, type: `dblclick`}], - update: `[0, 0]` + events: [{ source: `view`, type: `dblclick` }], + update: `[0, 0]`, }, { - events: {signal: `selected_translate_delta`}, - update: `clampRange(panLinear(selected_translate_anchor.extent_y, selected_translate_delta.y / span(selected_translate_anchor.extent_y)), 0, height)` + events: { signal: `selected_translate_delta` }, + update: `clampRange(panLinear(selected_translate_anchor.extent_y, selected_translate_delta.y / span(selected_translate_anchor.extent_y)), 0, height)`, }, { - events: {signal: `selected_zoom_delta`}, - update: `clampRange(zoomLinear(selected_y, selected_zoom_anchor.y, selected_zoom_delta), 0, height)` - } - ] + events: { signal: `selected_zoom_delta` }, + update: `clampRange(zoomLinear(selected_y, selected_zoom_anchor.y, selected_zoom_delta), 0, height)`, + }, + ], }, { name: `selected_attr1`, init: `[]`, on: [ { - events: {signal: `selected_y`}, - update: `selected_y[0] === selected_y[1] ? null : invert('y', selected_y)` - } - ] + events: { signal: `selected_y` }, + update: `selected_y[0] === selected_y[1] ? null : invert('y', selected_y)`, + }, + ], }, { name: `selected_scale_trigger`, value: {}, on: [ { - events: [{scale: `x`}, {scale: `y`}], - update: `(!isArray(selected_attr0) || (+invert('x', selected_x)[0] === +selected_attr0[0] && +invert('x', selected_x)[1] === +selected_attr0[1])) && (!isArray(selected_attr1) || (+invert('y', selected_y)[0] === +selected_attr1[0] && +invert('y', selected_y)[1] === +selected_attr1[1])) ? selected_scale_trigger : {}` - } - ] + events: [{ scale: `x` }, { scale: `y` }], + update: `(!isArray(selected_attr0) || (+invert('x', selected_x)[0] === +selected_attr0[0] && +invert('x', selected_x)[1] === +selected_attr0[1])) && (!isArray(selected_attr1) || (+invert('y', selected_y)[0] === +selected_attr1[0] && +invert('y', selected_y)[1] === +selected_attr1[1])) ? selected_scale_trigger : {}`, + }, + ], }, { name: `selected_tuple`, init: `{unit: 'layer_0', fields: selected_tuple_fields, values: [[], []]}`, on: [ { - events: [{signal: `selected_attr0 || selected_attr1`}], - update: `selected_attr0 && selected_attr1 ? {unit: 'layer_0', fields: selected_tuple_fields, values: [selected_attr0,selected_attr1]} : null` - } - ] + events: [{ signal: `selected_attr0 || selected_attr1` }], + update: `selected_attr0 && selected_attr1 ? {unit: 'layer_0', fields: selected_tuple_fields, values: [selected_attr0,selected_attr1]} : null`, + }, + ], }, { name: `selected_tuple_fields`, value: [ - {field: `${this.attributes[0].dataKey}`, channel: `x`, type: `R`}, - {field: `${this.attributes[1].dataKey}`, channel: `y`, type: `R`} - ] + { field: `${this.attributes[0].dataKey}`, channel: `x`, type: `R` }, + { field: `${this.attributes[1].dataKey}`, channel: `y`, type: `R` }, + ], }, { name: `selected_translate_anchor`, @@ -395,12 +387,12 @@ export class Scatterplot extends MultiAttributeVisualization { { source: `scope`, type: `mousedown`, - markname: `selected_brush` - } + markname: `selected_brush`, + }, ], - update: `{x: x(unit), y: y(unit), extent_x: slice(selected_x), extent_y: slice(selected_y)}` - } - ] + update: `{x: x(unit), y: y(unit), extent_x: slice(selected_x), extent_y: slice(selected_y)}`, + }, + ], }, { name: `selected_translate_delta`, @@ -416,15 +408,15 @@ export class Scatterplot extends MultiAttributeVisualization { { source: `scope`, type: `mousedown`, - markname: `selected_brush` + markname: `selected_brush`, }, - {source: `window`, type: `mouseup`} - ] - } + { source: `window`, type: `mouseup` }, + ], + }, ], - update: `{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}` - } - ] + update: `{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}`, + }, + ], }, { name: `selected_zoom_anchor`, @@ -435,12 +427,12 @@ export class Scatterplot extends MultiAttributeVisualization { source: `scope`, type: `wheel`, consume: true, - markname: `selected_brush` - } + markname: `selected_brush`, + }, ], - update: `{x: x(unit), y: y(unit)}` - } - ] + update: `{x: x(unit), y: y(unit)}`, + }, + ], }, { name: `selected_zoom_delta`, @@ -451,23 +443,23 @@ export class Scatterplot extends MultiAttributeVisualization { source: `scope`, type: `wheel`, consume: true, - markname: `selected_brush` - } + markname: `selected_brush`, + }, ], force: true, - update: `pow(1.001, event.deltaY * pow(16, event.deltaMode))` - } - ] + update: `pow(1.001, event.deltaY * pow(16, event.deltaMode))`, + }, + ], }, { name: `selected_modify`, on: [ { - events: {signal: `selected_tuple`}, - update: `modify('selected_store', selected_tuple, true)` - } - ] - } + events: { signal: `selected_tuple` }, + update: `modify('selected_store', selected_tuple, true)`, + }, + ], + }, ], marks: [ { @@ -475,91 +467,91 @@ export class Scatterplot extends MultiAttributeVisualization { type: `rect`, clip: true, encode: { - enter: {fill: {value: `#333`}, fillOpacity: {value: 0.125}}, + enter: { fill: { value: `#333` }, fillOpacity: { value: 0.125 } }, update: { x: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[0]` + signal: `selected_x[0]`, }, - {value: 0} + { value: 0 }, ], y: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[0]` + signal: `selected_y[0]`, }, - {value: 0} + { value: 0 }, ], x2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[1]` + signal: `selected_x[1]`, }, - {value: 0} + { value: 0 }, ], y2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[1]` + signal: `selected_y[1]`, }, - {value: 0} - ] - } - } + { value: 0 }, + ], + }, + }, }, { name: `layer_0_marks`, type: `symbol`, style: [`circle`], interactive: true, - from: {data: `data_0`}, + from: { data: `data_0` }, encode: { update: { - opacity: {value: 0.9}, - size: {value: 15}, - cursor: {value: `crosshair`}, + opacity: { value: 0.9 }, + size: { value: 15 }, + cursor: { value: `crosshair` }, tooltip: { - signal: `{'${this.attributes[0].label}': format(datum['${this.attributes[0].dataKey}'], ''), '${this.attributes[1].label}': format(datum['${this.attributes[1].dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}` + signal: `{'${this.attributes[0].label}': format(datum['${this.attributes[0].dataKey}'], ''), '${this.attributes[1].label}': format(datum['${this.attributes[1].dataKey}'], ''), '${DATA_LABEL}': isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}']}`, }, - fill: {scale: `color`, field: `${DATA_LABEL}`}, - ariaRoleDescription: {value: `circle`}, + fill: { scale: `color`, field: `${DATA_LABEL}` }, + ariaRoleDescription: { value: `circle` }, description: { - signal: `'${this.attributes[0].label}: ' + (format(datum['${this.attributes[0].dataKey}'], '')) + '; ${this.attributes[1].label}: ' + (format(datum['${this.attributes[1].dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])` + signal: `'${this.attributes[0].label}: ' + (format(datum['${this.attributes[0].dataKey}'], '')) + '; ${this.attributes[1].label}: ' + (format(datum['${this.attributes[1].dataKey}'], '')) + '; ${DATA_LABEL}: ' + (isValid(datum['${DATA_LABEL}']) ? datum['${DATA_LABEL}'] : ''+datum['${DATA_LABEL}'])`, }, x: [ { test: `!isValid(datum['${this.attributes[0].dataKey}']) || !isFinite(+datum['${this.attributes[0].dataKey}'])`, - value: 0 + value: 0, }, - {scale: `x`, field: `${this.attributes[0].dataKey}`} + { scale: `x`, field: `${this.attributes[0].dataKey}` }, ], y: [ { test: `!isValid(datum['${this.attributes[1].dataKey}']) || !isFinite(+datum['${this.attributes[1].dataKey}'])`, - field: {group: `height`} + field: { group: `height` }, }, - {scale: `y`, field: `${this.attributes[1].dataKey}`} + { scale: `y`, field: `${this.attributes[1].dataKey}` }, ], - shape: {value: `circle`} - } - } + shape: { value: `circle` }, + }, + }, }, { name: `splitmarks_x`, type: `group`, - from: {data: `data_1`}, + from: { data: `data_1` }, encode: { - enter: {height: {field: {group: `height`}}}, + enter: { height: { field: { group: `height` } } }, update: { x: [ { test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - value: 0 + value: 0, }, - {scale: `x`, field: `data`} - ] - } + { scale: `x`, field: `data` }, + ], + }, }, marks: [ { @@ -568,48 +560,48 @@ export class Scatterplot extends MultiAttributeVisualization { style: [`rule`], encode: { update: { - strokeDash: {value: [4, 6]}, - stroke: {value: `black`}, - y: {value: 0}, - y2: {field: {group: `height`}} - } - } + strokeDash: { value: [4, 6] }, + stroke: { value: `black` }, + y: { value: 0 }, + y2: { field: { group: `height` } }, + }, + }, }, { type: `path`, name: `grabber_x`, encode: { enter: { - y: {field: {group: `height`}, mult: 0.5, offset: -80}, - fill: {value: `#fff`}, - stroke: {value: `#666`}, - cursor: {value: `ew-resize`} + y: { field: { group: `height` }, mult: 0.5, offset: -80 }, + fill: { value: `#fff` }, + stroke: { value: `#666` }, + cursor: { value: `ew-resize` }, }, update: { path: { - signal: `'M0.5,33.333A6,6 0 0 1 6.5,39.333V60.666A6,6 0 0 1 0.5,66.666ZM2.5,41.333V58.666M4.5,41.333V58.666'` - } - } - } - } - ] + signal: `'M0.5,33.333A6,6 0 0 1 6.5,39.333V60.666A6,6 0 0 1 0.5,66.666ZM2.5,41.333V58.666M4.5,41.333V58.666'`, + }, + }, + }, + }, + ], }, { name: `splitmarks_y`, type: `group`, - from: {data: `data_2`}, + from: { data: `data_2` }, encode: { update: { - x: {field: {group: `width`}}, - x2: {value: 0}, + x: { field: { group: `width` } }, + x2: { value: 0 }, y: [ { test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - value: 0 + value: 0, }, - {scale: `y`, field: `data`} - ] - } + { scale: `y`, field: `data` }, + ], + }, }, marks: [ { @@ -618,48 +610,48 @@ export class Scatterplot extends MultiAttributeVisualization { style: [`rule`], encode: { update: { - strokeDash: {value: [4, 6]}, - stroke: {value: `black`}, + strokeDash: { value: [4, 6] }, + stroke: { value: `black` }, description: { - signal: `'data: ' + (format(datum['data'], ''))` + signal: `'data: ' + (format(datum['data'], ''))`, }, - x: {field: {group: `width`}}, - x2: {value: 0}, + x: { field: { group: `width` } }, + x2: { value: 0 }, y: [ { test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - field: {group: `height`} + field: { group: `height` }, }, - {scale: `y`, field: `data`} - ] - } - } + { scale: `y`, field: `data` }, + ], + }, + }, }, { type: `path`, name: `grabber_y`, encode: { enter: { - x: {field: {group: `width`}, mult: 0.5, offset: 15}, + x: { field: { group: `width` }, mult: 0.5, offset: 15 }, y: [ { test: `!isValid(datum['data']) || !isFinite(+datum['data'])`, - field: {group: `height`} + field: { group: `height` }, }, - {scale: `y`, field: `data`} + { scale: `y`, field: `data` }, ], - fill: {value: `#fff`}, - stroke: {value: `#666`}, - cursor: {value: `ns-resize`} + fill: { value: `#fff` }, + stroke: { value: `#666` }, + cursor: { value: `ns-resize` }, }, update: { path: { - signal: `'M33.333,0a6,6 0 0 0 -6,-6H6A6,6 0 0 0 0,0Zm-8,-2 H8M25.333,-4H8'` - } - } - } - } - ] + signal: `'M33.333,0a6,6 0 0 0 -6,-6H6A6,6 0 0 0 0,0Zm-8,-2 H8M25.333,-4H8'`, + }, + }, + }, + }, + ], }, { name: `selected_brush`, @@ -667,113 +659,113 @@ export class Scatterplot extends MultiAttributeVisualization { clip: true, encode: { enter: { - cursor: {value: `pointer`}, - fill: {value: `transparent`} + cursor: { value: `pointer` }, + fill: { value: `transparent` }, }, update: { x: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[0]` + signal: `selected_x[0]`, }, - {value: 0} + { value: 0 }, ], y: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[0]` + signal: `selected_y[0]`, }, - {value: 0} + { value: 0 }, ], x2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_x[1]` + signal: `selected_x[1]`, }, - {value: 0} + { value: 0 }, ], y2: [ { test: `data('selected_store').length && data('selected_store')[0].unit === 'layer_0'`, - signal: `selected_y[1]` + signal: `selected_y[1]`, }, - {value: 0} + { value: 0 }, ], stroke: [ { test: `selected_x[0] !== selected_x[1] && selected_y[0] !== selected_y[1]`, - value: `white` + value: `white`, }, - {value: null} - ] - } - } - } + { value: null }, + ], + }, + }, + }, ], scales: [ { name: `x`, - ... this.attributes[0].preferLog ? {type: 'log', base: 10} : {type: 'linear', zero: false}, + ...(this.attributes[0].preferLog ? { type: 'log', base: 10 } : { type: 'linear', zero: false }), domain: { fields: [ - {data: `data_0`, field: `${this.attributes[0].dataKey}`}, - {data: `data_1`, field: `data`} - ] + { data: `data_0`, field: `${this.attributes[0].dataKey}` }, + { data: `data_1`, field: `data` }, + ], }, - range: [0, {signal: `width`}], + range: [0, { signal: `width` }], clamp: true, nice: false, - zero: false + zero: false, }, { name: `y`, - ... this.attributes[1].preferLog ? {type: 'log', base: 10} : {type: 'linear', zero: false}, + ...(this.attributes[1].preferLog ? { type: 'log', base: 10 } : { type: 'linear', zero: false }), domain: { fields: [ - {data: `data_0`, field: `${this.attributes[1].dataKey}`}, - {data: `data_2`, field: `data`} - ] + { data: `data_0`, field: `${this.attributes[1].dataKey}` }, + { data: `data_2`, field: `data` }, + ], }, - range: [{signal: `height`}, 0], + range: [{ signal: `height` }, 0], clamp: true, nice: false, - zero: false + zero: false, }, { name: `color`, type: `ordinal`, - domain: {data: 'data_0', field: DATA_LABEL, sort: true}, - range: `category` - } + domain: { data: 'data_0', field: DATA_LABEL, sort: true }, + range: `category`, + }, ], axes: [ { scale: `x`, orient: `bottom`, gridScale: `y`, - grid: true, - tickCount: {signal: `ceil(width/40)`}, + grid: false, + tickCount: { signal: `ceil(width/40)` }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 + zindex: 0, }, { scale: `y`, orient: `left`, gridScale: `x`, - grid: true, - tickCount: {signal: `ceil(height/40)`}, + grid: false, + tickCount: { signal: `ceil(height/40)` }, domain: false, labels: false, aria: false, maxExtent: 0, minExtent: 0, ticks: false, - zindex: 0 + zindex: 0, }, { scale: `x`, @@ -781,20 +773,20 @@ export class Scatterplot extends MultiAttributeVisualization { grid: false, title: `${this.attributes[0].label}`, labelFlush: true, - tickCount: {signal: `ceil(width/40)`}, - zindex: 0 + tickCount: { signal: `ceil(width/40)` }, + zindex: 0, }, { scale: `y`, orient: `left`, grid: false, title: `${this.attributes[1].label}`, - tickCount: {signal: `ceil(height/40)`}, - zindex: 0 - } + tickCount: { signal: `ceil(height/40)` }, + zindex: 0, + }, ], config: { - range: {category: this.colorPalette}, + range: { category: this.colorPalette }, axis: { titleFontSize: 16, titleFontWeight: 500, @@ -804,7 +796,7 @@ export class Scatterplot extends MultiAttributeVisualization { labelFont: `Roboto`, labelOverlap: `parity`, labelSeparation: 5, - labelBound: true + labelBound: true, }, legend: { titleFontSize: 16, @@ -813,9 +805,9 @@ export class Scatterplot extends MultiAttributeVisualization { labelFontSize: 12, labelLimit: 150, labelFont: `Roboto`, - labelOverlap: `parity` - } - } + labelOverlap: `parity`, + }, + }, }; return vegaSpec as unknown as VegaLiteSpec; @@ -845,28 +837,30 @@ export class Scatterplot extends MultiAttributeVisualization { const filter = []; for (const [i, axis] of this.axes.entries()) { const interval = this.getInterval(axis); - const range = [{ - operatorOne: NumRangeOperators.gte, - valueOne: interval[0], - operatorTwo: NumRangeOperators.lte, - valueTwo: interval[1] - }]; + const range = [ + { + operatorOne: NumRangeOperators.gte, + valueOne: interval[0], + operatorTwo: NumRangeOperators.lte, + valueTwo: interval[1], + }, + ]; if (this.getNullCheckboxState(this.attributes[i])) { range.push({ operatorOne: NumRangeOperators.gte, valueOne: null, operatorTwo: NumRangeOperators.lte, - valueTwo: null + valueTwo: null, }); } filter.push({ attr: this.attributes[i], - range + range, }); } filterDescs.push({ cohort: cht, - filter + filter, }); } @@ -888,82 +882,102 @@ export class Scatterplot extends MultiAttributeVisualization { const desc = { cohort: cht, filter: [ - { //x + { + // x attr: this.attributes[0], - range: [this.getGeneralNumericalFilter( - ix >= 1 ? this.splitValuesX[ix - 1] : minX, - splitX, - NumRangeOperators.gte, - splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt) - ] + range: [ + this.getGeneralNumericalFilter( + ix >= 1 ? this.splitValuesX[ix - 1] : minX, + splitX, + NumRangeOperators.gte, + splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt, + ), + ], }, - { //y + { + // y attr: this.attributes[1], - range: [this.getGeneralNumericalFilter( - iy >= 1 ? this.splitValuesY[iy - 1] : minY, - splitY, - NumRangeOperators.gte, - splitY === maxY ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - } - ] + range: [ + this.getGeneralNumericalFilter( + iy >= 1 ? this.splitValuesY[iy - 1] : minY, + splitY, + NumRangeOperators.gte, + splitY === maxY ? NumRangeOperators.lte : NumRangeOperators.lt, + ), + ], + }, + ], }; filterDescs.push(desc); } } - if (this.getNullCheckboxState(this.attributes[0])) { //x = null + if (this.getNullCheckboxState(this.attributes[0])) { + // x = null for (const [iy, splitY] of [...this.splitValuesY, maxY].entries()) { filterDescs.push({ cohort: cht, filter: [ - { //x + { + // x attr: this.attributes[0], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] + range: [ + { + operatorOne: NumRangeOperators.gte, + valueOne: null, + operatorTwo: NumRangeOperators.lte, + valueTwo: null, + }, + ], }, - { //y + { + // y attr: this.attributes[1], - range: [this.getGeneralNumericalFilter( - iy >= 1 ? this.splitValuesY[iy - 1] : minY, - splitY, - NumRangeOperators.gte, - splitY === maxY ? NumRangeOperators.lte : NumRangeOperators.lt) - ] - } - ] + range: [ + this.getGeneralNumericalFilter( + iy >= 1 ? this.splitValuesY[iy - 1] : minY, + splitY, + NumRangeOperators.gte, + splitY === maxY ? NumRangeOperators.lte : NumRangeOperators.lt, + ), + ], + }, + ], }); } } - if (this.getNullCheckboxState(this.attributes[1])) { // y= null + if (this.getNullCheckboxState(this.attributes[1])) { + // y= null for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { filterDescs.push({ cohort: cht, filter: [ - { //x + { + // x attr: this.attributes[0], - range: [this.getGeneralNumericalFilter( - ix >= 1 ? this.splitValuesX[ix - 1] : minX, - splitX, - NumRangeOperators.gte, - splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt) - ] + range: [ + this.getGeneralNumericalFilter( + ix >= 1 ? this.splitValuesX[ix - 1] : minX, + splitX, + NumRangeOperators.gte, + splitX === maxX ? NumRangeOperators.lte : NumRangeOperators.lt, + ), + ], }, - { //y + { + // y attr: this.attributes[1], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] - } - ] + range: [ + { + operatorOne: NumRangeOperators.gte, + valueOne: null, + operatorTwo: NumRangeOperators.lte, + valueTwo: null, + }, + ], + }, + ], }); } } @@ -971,25 +985,31 @@ export class Scatterplot extends MultiAttributeVisualization { filterDescs.push({ cohort: cht, filter: [ - { //x + { + // x attr: this.attributes[0], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] + range: [ + { + operatorOne: NumRangeOperators.gte, + valueOne: null, + operatorTwo: NumRangeOperators.lte, + valueTwo: null, + }, + ], }, - { //y + { + // y attr: this.attributes[1], - range: [{ - operatorOne: NumRangeOperators.gte, - valueOne: null, - operatorTwo: NumRangeOperators.lte, - valueTwo: null - }] - } - ] + range: [ + { + operatorOne: NumRangeOperators.gte, + valueOne: null, + operatorTwo: NumRangeOperators.lte, + valueTwo: null, + }, + ], + }, + ], }); } } @@ -999,16 +1019,27 @@ export class Scatterplot extends MultiAttributeVisualization { export class TsneScatterplot extends Scatterplot { static readonly NAME = 't-SNE Scatterplot'; + public readonly ITERATIONS = 100; + iteration = 0; + progressBar: HTMLDivElement; + running: boolean; + playBtn: any; + inputData: number[][]; + tsne: any; + progressWrapper: any; + tsneClass: any; + projData: any[]; + originalAttributes: IAttribute[]; constructor(vegaLiteOptions: Object = {}) { @@ -1018,11 +1049,15 @@ export class TsneScatterplot extends Scatterplot { getSpec(data: IdValuePair[]): TopLevel> { const scatterSpec = super.getSpec(data) as TopLevel>; - (scatterSpec.layer[0].encoding.x as any).field = 'x_embed'; //cast to any because I couldnt find out the right type... + (scatterSpec.layer[0].encoding.x as any).field = 'x_embed'; // cast to any because I couldnt find out the right type... (scatterSpec.layer[0].encoding.y as any).field = 'y_embed'; - scatterSpec.layer[0].encoding.tooltip = this.originalAttributes.map((attr) => ({field: attr.dataKey, type: attr.type === 'number' ? 'ordinal' : 'nominal'})); + scatterSpec.layer[0].encoding.tooltip = this.originalAttributes.map((attr) => ({ + field: attr.dataKey, + type: attr.type === 'number' ? 'ordinal' : 'nominal', + })); return scatterSpec; } + async show(container: HTMLDivElement, attributes: IAttribute[], cohorts: Cohort[]) { super.show(container, attributes, cohorts); } @@ -1040,21 +1075,23 @@ export class TsneScatterplot extends Scatterplot { const opt = { epsilon: 10, // epsilon is learning rate (10 = default) perplexity: data.length ** 0.5, // roughly how many neighbors each point influences (30 = default) - dim: 2 // dimensionality of the embedding (2 = default) + dim: 2, // dimensionality of the embedding (2 = default) }; - const tsneWorker = new (require('worker-loader?name=tsne.worker.js!./dimreduce/tsne.worker'))(); this.tsneClass = Comlink.wrap(tsneWorker) as any; this.tsne = await new this.tsneClass(opt); this.tsne.initDataRaw(oneHotData); - this.originalAttributes = this.attributes; //backup for tooltip - this.attributes = ['x', 'y'].map((axis) => ({ - id: `${axis}_embed`, - label: axis, - type: 'number' as AttributeType - } as unknown as IAttribute)); // workaround to glory + this.originalAttributes = this.attributes; // backup for tooltip + this.attributes = ['x', 'y'].map( + (axis) => + ({ + id: `${axis}_embed`, + label: axis, + type: 'number' as AttributeType, + } as unknown as IAttribute), + ); // workaround to glory this.run(true); } @@ -1062,17 +1099,14 @@ export class TsneScatterplot extends Scatterplot { async embeddStep() { this.progressBar.classList.toggle('active', true); this.progressBar.classList.toggle('progress-bar-striped', true); - this.playBtn.select('i') - .classed('fa-circle-notch fa-spin', false) - .classed('fa-play-circle', false) - .classed('fa-pause-circle', true); + this.playBtn.select('i').classed('fa-circle-notch fa-spin', false).classed('fa-play-circle', false).classed('fa-pause-circle', true); await this.tsne.step(); // every time you call this, solution gets better this.iteration++; this.setProgress(this.iteration); if (this.iteration % 10 === 0 || this.iteration === this.ITERATIONS || !this.running) { - const projCoords = await this.tsne.getSolution() as Array>; + const projCoords = (await this.tsne.getSolution()) as Array>; super.showImpl(this.chart, this.embeddArrToJson(projCoords)).then(() => { if (this.iteration === this.ITERATIONS) { super.addControls(); @@ -1090,24 +1124,24 @@ export class TsneScatterplot extends Scatterplot { } else { this.progressBar.classList.toggle('active', false); this.progressBar.classList.toggle('progress-bar-striped', false); - this.playBtn.select('i') - .classed('fa-circle-notch fa-spin', false) - .classed('fa-play-circle', true) - .classed('fa-pause-circle', false); + this.playBtn.select('i').classed('fa-circle-notch fa-spin', false).classed('fa-play-circle', true).classed('fa-pause-circle', false); } } embeddArrToJson(projCoords: Array>): IdValuePair[] { - const projCoordsObjArr = projCoords.map((item, index) => Object.assign({ + const projCoordsObjArr = projCoords.map((item, index) => ({ x_embed: item[0] * 1000, y_embed: item[1] * 1000, - }, this.data[index])); + ...this.data[index], + })); this.projData = projCoordsObjArr; return projCoordsObjArr; } addProgressBar() { - this.container.insertAdjacentHTML('beforeend', ` + this.container.insertAdjacentHTML( + 'beforeend', + `
@@ -1118,7 +1152,8 @@ export class TsneScatterplot extends Scatterplot {
- `); + `, + ); this.progressWrapper = select(this.container).select('.progress-wrapper'); this.progressBar = select(this.container).select('.progress .progress-bar').node() as HTMLDivElement; this.playBtn = select(this.container).select('a.run'); @@ -1127,15 +1162,12 @@ export class TsneScatterplot extends Scatterplot { setProgress(iteration: number) { this.progressBar.textContent = `${iteration}/${this.ITERATIONS}`; - this.progressBar.style.width = `${100 * iteration / this.ITERATIONS}%`; + this.progressBar.style.width = `${(100 * iteration) / this.ITERATIONS}%`; } run(run: boolean) { this.running = run; - this.playBtn.select('i') - .classed('fa-circle-notch fa-spin', true) - .classed('fa-play-circle', false) - .classed('fa-pause-circle', false); + this.playBtn.select('i').classed('fa-circle-notch fa-spin', true).classed('fa-play-circle', false).classed('fa-pause-circle', false); if (run) { this.embeddStep(); @@ -1150,12 +1182,14 @@ export class TsneScatterplot extends Scatterplot { super.addIntervalControls(axis, axis); } - addNullCheckbox(attribute: string) { /** noop */} + addNullCheckbox(attribute: string) { + /** noop */ + } filter() { const intervals = { x: this.getInterval('x'), - y: this.getInterval('y') + y: this.getInterval('y'), }; const selectedItems = this.projData.filter((item) => { @@ -1170,17 +1204,18 @@ export class TsneScatterplot extends Scatterplot { for (const cohort of this.cohorts) { filterDescs.push({ cohort, - filter: [{ - attr: new ServerColumnAttribute(cohort.idColumn.column, cohort.view, cohort.database, cohort.idColumn), - range: {values: selectedItems.filter((item) => item.Cohort.indexOf(cohort.label) >= 0).map((item) => item[cohort.idColumn.column])} - }] + filter: [ + { + attr: new ServerColumnAttribute(cohort.idColumn.column, cohort.view, cohort.database, cohort.idColumn), + range: { values: selectedItems.filter((item) => item.Cohort.indexOf(cohort.label) >= 0).map((item) => item[cohort.idColumn.column]) }, + }, + ], }); } this.container.dispatchEvent(new FilterEvent(filterDescs)); } split() { - const filterDescs: IFilterDesc[] = []; for (const cohort of this.cohorts) { const chtItems = this.projData.filter((item) => item.Cohort.indexOf(cohort.label) >= 0); @@ -1190,28 +1225,30 @@ export class TsneScatterplot extends Scatterplot { for (const [ix, splitX] of [...this.splitValuesX, maxX].entries()) { for (const [iy, splitY] of [...this.splitValuesY, maxY].entries()) { - const chtSplitItems = chtItems.filter((item) => { - const x = item[`x_embed`]; - const selectedX = splitX === maxX ? - x >= (ix >= 1 ? this.splitValuesX[ix - 1] : minX) && x <= splitX : // splitX is maxX -> include max - x >= (ix >= 1 ? this.splitValuesX[ix - 1] : minX) && x < splitX; // splitX is something else - - const y = item[`y_embed`]; - const selectedY = splitY === maxY ? - y >= (iy >= 1 ? this.splitValuesY[iy - 1] : minY) && y <= splitY : - y >= (iy >= 1 ? this.splitValuesY[iy - 1] : minY) && y < splitY; + const x = item.x_embed; + const selectedX = + splitX === maxX + ? x >= (ix >= 1 ? this.splitValuesX[ix - 1] : minX) && x <= splitX // splitX is maxX -> include max + : x >= (ix >= 1 ? this.splitValuesX[ix - 1] : minX) && x < splitX; // splitX is something else + const y = item.y_embed; + const selectedY = + splitY === maxY + ? y >= (iy >= 1 ? this.splitValuesY[iy - 1] : minY) && y <= splitY + : y >= (iy >= 1 ? this.splitValuesY[iy - 1] : minY) && y < splitY; return selectedX && selectedY; }); filterDescs.push({ cohort, - filter: [{ - range: {values: chtSplitItems.map((item) => item[cohort.idColumn.column])}, - attr: new ServerColumnAttribute(cohort.idColumn.column, cohort.view, cohort.database, cohort.idColumn), - }] + filter: [ + { + range: { values: chtSplitItems.map((item) => item[cohort.idColumn.column]) }, + attr: new ServerColumnAttribute(cohort.idColumn.column, cohort.view, cohort.database, cohort.idColumn), + }, + ], }); } } diff --git a/src/Taskview/visualizations/config/ConfidenceConfig.ts b/src/Taskview/visualizations/config/ConfidenceConfig.ts index c0e1c89..2d5af7a 100644 --- a/src/Taskview/visualizations/config/ConfidenceConfig.ts +++ b/src/Taskview/visualizations/config/ConfidenceConfig.ts @@ -1,5 +1,4 @@ -import {OptionGroup, Option, VisConfig} from './VisConfig'; - +import { OptionGroup, Option, VisConfig } from './VisConfig'; const confidence95 = new Option('95% Confidence Intervals', true); export const confidenceNone = new Option('Hide Confidence Intervals'); diff --git a/src/Taskview/visualizations/config/CountCounfig.ts b/src/Taskview/visualizations/config/CountCounfig.ts index 9049fd9..185f1d1 100644 --- a/src/Taskview/visualizations/config/CountCounfig.ts +++ b/src/Taskview/visualizations/config/CountCounfig.ts @@ -1,5 +1,4 @@ -import {OptionGroup, Option, VisConfig} from './VisConfig'; - +import { OptionGroup, Option, VisConfig } from './VisConfig'; const probability = new Option('Estimated Probability', true); export const counts = new Option('Smoothed Counts'); diff --git a/src/Taskview/visualizations/config/GroupConfig.ts b/src/Taskview/visualizations/config/GroupConfig.ts index 2dbaaf2..bfa10e2 100644 --- a/src/Taskview/visualizations/config/GroupConfig.ts +++ b/src/Taskview/visualizations/config/GroupConfig.ts @@ -1,5 +1,4 @@ -import {OptionGroup, Option, VisConfig} from './VisConfig'; - +import { OptionGroup, Option, VisConfig } from './VisConfig'; const groupByCategory = new Option('Same Category', true); const groupByCohort = new Option('Same Cohort'); @@ -10,5 +9,5 @@ export const groupByConfig = new OptionGroup('', 'Group Bars of', [groupByCohort export const groupConfig: VisConfig = { icon: '', label: 'Group', - groups: [groupByConfig] + groups: [groupByConfig], }; diff --git a/src/Taskview/visualizations/config/ScaleConfig.ts b/src/Taskview/visualizations/config/ScaleConfig.ts index 9caf58e..8587e98 100644 --- a/src/Taskview/visualizations/config/ScaleConfig.ts +++ b/src/Taskview/visualizations/config/ScaleConfig.ts @@ -1,5 +1,4 @@ -import {OptionGroup, Option, VisConfig} from './VisConfig'; - +import { OptionGroup, Option, VisConfig } from './VisConfig'; const linearScale = new Option('Linear', true); const logScale = new Option('Logarithmic', false); @@ -14,5 +13,5 @@ export const dataConfig = new OptionGroup('', 'Show Data as', [absoluteData, rel export const dataScaleConfig: VisConfig = { icon: '', label: 'Data', - groups: [scaleConfig, dataConfig] + groups: [scaleConfig, dataConfig], }; diff --git a/src/Taskview/visualizations/config/SortConfig.ts b/src/Taskview/visualizations/config/SortConfig.ts index efdbf6e..c907005 100644 --- a/src/Taskview/visualizations/config/SortConfig.ts +++ b/src/Taskview/visualizations/config/SortConfig.ts @@ -1,5 +1,4 @@ -import {OptionGroup, Option, VisConfig} from './VisConfig'; - +import { OptionGroup, Option, VisConfig } from './VisConfig'; const sortRowsAscending = new Option('Ascending'); const sortRowsDescending = new Option('Descending', true); @@ -11,10 +10,15 @@ const sortRowsByAverage = new Option('Average'); const sortRowsByMaxium = new Option('Maximum', true); const sortRowsByVariance = new Option('Spread'); -export const sortByConfig = new OptionGroup('', 'Sort Categories by', [sortRowsByName, sortRowsByAverage, sortRowsByMaxium, sortRowsByVariance]); +export const sortByConfig = new OptionGroup('', 'Sort Categories by', [ + sortRowsByName, + sortRowsByAverage, + sortRowsByMaxium, + sortRowsByVariance, +]); export const sortConfig: VisConfig = { icon: '', label: 'Sort', - groups: [sortOrderConfig, sortByConfig] + groups: [sortOrderConfig, sortByConfig], }; diff --git a/src/Taskview/visualizations/config/VisConfig.ts b/src/Taskview/visualizations/config/VisConfig.ts index a211021..f272e5c 100644 --- a/src/Taskview/visualizations/config/VisConfig.ts +++ b/src/Taskview/visualizations/config/VisConfig.ts @@ -4,7 +4,7 @@ export class Option { public group: OptionGroup; - constructor(public label: string, public selected: boolean = false) { } + constructor(public label: string, public selected: boolean = false) {} } /** @@ -44,5 +44,5 @@ export class VisConfig { * @param label * @param groups */ - constructor(public icon: string, public label: string, public groups: OptionGroup[]) { } + constructor(public icon: string, public label: string, public groups: OptionGroup[]) {} } diff --git a/src/Taskview/visualizations/constants.ts b/src/Taskview/visualizations/constants.ts index ea42101..34e2eb1 100644 --- a/src/Taskview/visualizations/constants.ts +++ b/src/Taskview/visualizations/constants.ts @@ -1,6 +1,4 @@ - export const DATA_LABEL = 'Cohort'; export const BRUSH_DATA_NAME = 'BRUSH_DATA'; export const BRUSH_DATA_START = 'brush_start'; export const BRUSH_DATA_END = 'brush_end'; - diff --git a/src/Taskview/visualizations/dimreduce/OneHotEncoder.ts b/src/Taskview/visualizations/dimreduce/OneHotEncoder.ts index 1963f16..92f38d3 100644 --- a/src/Taskview/visualizations/dimreduce/OneHotEncoder.ts +++ b/src/Taskview/visualizations/dimreduce/OneHotEncoder.ts @@ -1,18 +1,15 @@ import * as logger from 'loglevel'; -logger.setDefaultLevel(logger.levels.INFO); - +logger.setDefaultLevel(logger.levels.INFO); // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 export class OneHotEncoder { - /** * * @param data the data to encode * @param dataKeys optional subset of the attributes present in the data to not encode labels */ encode(data: Array, attributes: Array) { - const hotData = []; if (data?.length ?? 0 > 0) { @@ -26,15 +23,19 @@ export class OneHotEncoder { } // loop over ... - for (const item of data) { // ...all items and ... + for (const item of data) { + // ...all items and ... let hotItem = []; - for (const attr of attributes) { // ... all attributes + for (const attr of attributes) { + // ... all attributes if (attr.type === 'categorical') { - //there is work to do... - hotItem = hotItem.concat(this.oneHotArray(this.getNumberOfAttributeCategories(attr.dataKey), this.getNumberForAttributeCategory(attr.dataKey, item[attr.dataKey]))); + // there is work to do... + hotItem = hotItem.concat( + this.oneHotArray(this.getNumberOfAttributeCategories(attr.dataKey), this.getNumberForAttributeCategory(attr.dataKey, item[attr.dataKey])), + ); } else if (attr.type === 'number') { - hotItem.push(item[attr.dataKey]); //just copy the numeric value + hotItem.push(item[attr.dataKey]); // just copy the numeric value } else { logger.warn(`skipping ${attr.type} value of ${attr.dataKey}`); } @@ -49,8 +50,8 @@ export class OneHotEncoder { categoryIndices: { [attribute: string]: { - [category: string]: number - } + [category: string]: number; + }; } = {}; /** @@ -60,11 +61,11 @@ export class OneHotEncoder { */ getNumberForAttributeCategory(attribute: string, category: string): number { if (!this.categoryIndices[attribute]) { - this.categoryIndices[attribute] = {[category]: 0}; // init attribute directly with the given category + this.categoryIndices[attribute] = { [category]: 0 }; // init attribute directly with the given category } if ((this.categoryIndices[attribute][category] ?? -1) < 0) { - this.categoryIndices[attribute][category] = Object.keys(this.categoryIndices[attribute]).length; //will be zero if there are non, 1 if there is alrady an entry and so on + this.categoryIndices[attribute][category] = Object.keys(this.categoryIndices[attribute]).length; // will be zero if there are non, 1 if there is alrady an entry and so on } return this.categoryIndices[attribute][category]; diff --git a/src/Taskview/visualizations/dimreduce/OneHotEncoder.worker.ts b/src/Taskview/visualizations/dimreduce/OneHotEncoder.worker.ts index 5b96df3..bb63870 100644 --- a/src/Taskview/visualizations/dimreduce/OneHotEncoder.worker.ts +++ b/src/Taskview/visualizations/dimreduce/OneHotEncoder.worker.ts @@ -1,4 +1,4 @@ import * as Comlink from 'comlink'; -import {OneHotEncoder} from './OneHotEncoder'; +import { OneHotEncoder } from './OneHotEncoder'; Comlink.expose(OneHotEncoder); diff --git a/src/Taskview/visualizations/dimreduce/tsne.worker.ts b/src/Taskview/visualizations/dimreduce/tsne.worker.ts index e318cbc..ccd0834 100644 --- a/src/Taskview/visualizations/dimreduce/tsne.worker.ts +++ b/src/Taskview/visualizations/dimreduce/tsne.worker.ts @@ -1,4 +1,4 @@ import * as Comlink from 'comlink'; -import {TSNE} from '@keckelt/tsne'; +import { TSNE } from '@keckelt/tsne'; Comlink.expose(TSNE); diff --git a/src/Tooltip.ts b/src/Tooltip.ts index 3524a5d..3604296 100644 --- a/src/Tooltip.ts +++ b/src/Tooltip.ts @@ -1,9 +1,9 @@ import tippy from 'tippy.js'; -import {taskview} from './cohortview'; -import {toAttribute} from './data/Attribute'; -import {SearchBar} from './Taskview/SearchBar'; +import { taskview } from './cohortview'; +import { toAttribute } from './data/Attribute'; +import { SearchBar } from './Taskview/SearchBar'; -export function createSearchBarTooltip(elemWithTooltip: HTMLDivElement, cssClassName: string, database: string, view: string, positionStart: boolean = true) { +export function createSearchBarTooltip(elemWithTooltip: HTMLDivElement, cssClassName: string, database: string, view: string, positionStart = true) { // start of tooltip content const divAddAttr = document.createElement('div'); divAddAttr.classList.add('tooltip-serachbar'); @@ -59,6 +59,6 @@ export function createSearchBarTooltip(elemWithTooltip: HTMLDivElement, cssClass hideOnClick: 'toggle', // the tooltip is closed when the element is clicked again arrow: true, // show tooltip arrow zIndex: 9000, // default z-index: 9999 (but the searchbar option container has z-index of 9001) - maxWidth: 'none', // default max. width is 350px + maxWidth: 'none', // default max. width is 350px }); } diff --git a/src/app.ts b/src/app.ts index e3abbaf..13ee8a6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,42 +1,60 @@ -import {select, Selection} from 'd3v7'; +import { select, Selection } from 'd3v7'; import SplitGrid from 'split-grid'; -import {AppContext, ATDPApplication, CLUEGraphManager, IDatabaseViewDesc, IObjectRef, IServerColumn, ITDPOptions, NotificationHandler, ObjectRefUtils, ProvenanceGraph, RestBaseUtils} from 'tdp_core'; -import {cellline, tissue} from 'tdp_publicdb'; -import {Instance as TippyInstance} from 'tippy.js'; -import {Cohort, createCohort, createCohortFromDB} from './Cohort'; -import {IElementProvJSON, IElementProvJSONCohort, ITaskParams} from './CohortInterfaces'; -import {cohortOverview, createCohortOverview, destroyOld, loadViewDescription, taskview} from './cohortview'; -import {PanelScoreAttribute} from './data/Attribute'; -import {OnboardingManager} from './OnboardingManager'; -import {CohortOverview} from './Overview'; -import {setDatasetAction} from './Provenance/General'; -import {getDBCohortData} from './rest'; -import {Task} from './Tasks'; -import Taskview, {InputCohort} from './Taskview/Taskview'; +import { + AppContext, + ATDPApplication, + CLUEGraphManager, + IDatabaseViewDesc, + IObjectRef, + IServerColumn, + ITDPOptions, + NotificationHandler, + ObjectRefUtils, + ProvenanceGraph, + RestBaseUtils, +} from 'tdp_core'; +import { cellline, tissue } from 'tdp_publicdb'; +import { Instance as TippyInstance } from 'tippy.js'; +import { Cohort, createCohort, createCohortFromDB } from './Cohort'; +import { IElementProvJSON, IElementProvJSONCohort, ITaskParams } from './CohortInterfaces'; +import { cohortOverview, createCohortOverview, destroyOld, loadViewDescription, taskview } from './cohortview'; +import { PanelScoreAttribute } from './data/Attribute'; +import { OnboardingManager } from './OnboardingManager'; +import { CohortOverview } from './Overview'; +import { setDatasetAction } from './Provenance/General'; +import { getDBCohortData } from './rest'; +import { Task } from './Tasks'; +import Taskview, { InputCohort } from './Taskview/Taskview'; import deleteModal from './templates/DeleteModal.html'; import welcomeHtml from './templates/Welcome.html'; // webpack imports html to variable -import {getAnimatedLoadingText, handleDataLoadError, log, removeFromArray} from './util'; -import {CohortSelectionEvent, COHORT_SELECTION_EVENT_TYPE, ConfirmTaskEvent, CONFIRM_TASK_EVENT_TYPE, PreviewConfirmEvent} from './utilCustomEvents'; -import {idCellline, idCovid19, idStudent, idTissue, IEntitySourceConfig} from './utilIdTypes'; -import {niceName} from './utilLabels'; - +import { getAnimatedLoadingText, handleDataLoadError, log, removeFromArray } from './util'; +import { CohortSelectionEvent, COHORT_SELECTION_EVENT_TYPE, ConfirmTaskEvent, CONFIRM_TASK_EVENT_TYPE, PreviewConfirmEvent } from './utilCustomEvents'; +import { idCellline, idCovid19, idStudent, idTissue, IEntitySourceConfig } from './utilIdTypes'; +import { niceName } from './utilLabels'; /** * The Cohort app that does the acutal stuff. */ export class CohortApp { - private readonly $node: Selection; + private $overview: HTMLDivElement; + private $detail: HTMLDivElement; + private restartSession: Selection; + public readonly name: string; + private dataset: IDatasetDesc = null; + private _cohortOverview: CohortOverview = null; + private _taskview: Taskview = null; + private rootCohort: Cohort = null; - private datasetEventID: number = 0; + private datasetEventID = 0; private datasetTip: TippyInstance; @@ -52,7 +70,7 @@ export class CohortApp { public readonly graph: ProvenanceGraph, public readonly graphManager: CLUEGraphManager, parent: HTMLElement, - public readonly options: ITDPOptions + public readonly options: ITDPOptions, ) { this.name = options.name; this.$node = select(parent).append('div').classed('cohort_app', true); @@ -83,10 +101,7 @@ export class CohortApp { for (const task of taskParams) { for (const cht of task.outputCohorts) { log.debug('app sets counter to', 1 + this.chtCounter); - (cht as Cohort).setLabels( - `#${this.chtCounter++} ` + (cht as Cohort).labelOne, - (cht as Cohort).labelTwo - ); + (cht as Cohort).setLabels(`#${this.chtCounter++} ${(cht as Cohort).labelOne}`, (cht as Cohort).labelTwo); } } @@ -94,14 +109,14 @@ export class CohortApp { this.$node.node().dispatchEvent(new PreviewConfirmEvent(taskParams, taskAttributes)); // get the new added task (the ones confirmed from the preview) const tasks: Task[] = cohortOverview.getLastAddedTasks(); - taskview.clearOutput(); //clear taskview output + taskview.clearOutput(); // clear taskview output - //set output as new input + // set output as new input let replace = true; for (const task of tasks) { for (const cht of task.children) { this.$node.node().dispatchEvent(new CohortSelectionEvent(cht as Cohort, replace)); - replace = false; //replace old selection with first cohort, then add the others + replace = false; // replace old selection with first cohort, then add the others if (this.firstOutput) { this.firstOutput = false; @@ -111,7 +126,6 @@ export class CohortApp { } } - /** * Load and initialize all necessary views * @returns {Promise} @@ -168,41 +182,62 @@ export class CohortApp { // find databases with idtypes (i.e. with data we can use in Coral) const dataSources = this.defineIdTypes(databases); // check if there are also predefined subsets of the data (panels/predefiend sets) - const dataSourcesAndPanels = await Promise.all(dataSources.map(async (d) => ({ - source: d, - panels: (d.idType === cellline.idType || d.idType === tissue.idType) ? await RestBaseUtils.getTDPData(d.dbConnectorName, `${d.base}_panel`) as IPanelDesc[] : [] - // check for idType, because for other data sources currently no panels exist, e.g. covid19 - // TODO: check if there are sets stored by the user (namedsets (private/public)) - // * const namedSets = await RestStorageUtils.listNamedSets(); - // * const namedSetOptions = await RestStorageUtils.listNamedSetsAsOptions(); - }))); - - const datasetGroup = btnGrp.selectAll('div.btn-group').data(dataSourcesAndPanels) //create a btngroup for each data source - .enter().append('div').classed('btn-group btn-group-sm', true); - - datasetGroup.append('button') + const dataSourcesAndPanels = await Promise.all( + dataSources.map(async (d) => ({ + source: d, + panels: + d.idType === cellline.idType || d.idType === tissue.idType + ? ((await RestBaseUtils.getTDPData(d.dbConnectorName, `${d.base}_panel`)) as IPanelDesc[]) + : [], + // check for idType, because for other data sources currently no panels exist, e.g. covid19 + // TODO: check if there are sets stored by the user (namedsets (private/public)) + // * const namedSets = await RestStorageUtils.listNamedSets(); + // * const namedSetOptions = await RestStorageUtils.listNamedSetsAsOptions(); + })), + ); + + const datasetGroup = btnGrp + .selectAll('div.btn-group') + .data(dataSourcesAndPanels) // create a btngroup for each data source + .enter() + .append('div') + .classed('btn-group btn-group-sm', true); + + datasetGroup + .append('button') .attr('type', 'button') .attr('class', 'db_btn btn btn-coral') .attr('data-db', (d) => d.source.dbConnectorName) .attr('data-dbview', (d) => d.source.viewName) - .html((d) => {return d.source.idType.toUpperCase();}) - .on('click', async (event, d) => { // click on button - const newDataset = this.dataset?.source?.idType === d.source.idType ? //same as current? - {source: null, rootCohort: null, chtOverviewElements: null} : // deselect - {source: d.source, rootCohort: null, chtOverviewElements: null}; // select + .html((d) => { + return d.source.idType.toUpperCase(); + }) + .on('click', async (event, d) => { + // click on button + const newDataset = + this.dataset?.source?.idType === d.source.idType // same as current? + ? { source: null, rootCohort: null, chtOverviewElements: null } // deselect + : { source: d.source, rootCohort: null, chtOverviewElements: null }; // select this.handleDatasetClick(newDataset); }); - datasetGroup.append('button') + datasetGroup + .append('button') .attr('type', 'button') .attr('class', 'db_btn btn btn-coral dropdown-toggle') .attr('data-bs-toggle', 'dropdown') - .append('span').classed('caret', true); + .append('span') + .classed('caret', true); const dropdown = datasetGroup.append('ul').classed('dropdown-menu', true); - dropdown.append('li').classed('dropdown-item', true).append('a').text('All') - .on('click', async (event, d) => { //click all - const newDataset = {source: d.source, rootCohort: null, chtOverviewElements: null}; + dropdown + .append('li') + .classed('dropdown-item', true) + .append('a') + .text('All') + .on('click', async (event, d) => { + // click all + const newDataset = { source: d.source, rootCohort: null, chtOverviewElements: null }; this.handleDatasetClick(newDataset); }); @@ -214,16 +249,22 @@ export class CohortApp { .selectAll('li.data-panel') .data((d) => d.panels) .enter() - .append('li').classed('data-panel', true).classed('dropdown-item', true) - .append('a').text((d) => d.id).attr('title', (d) => d.description) - .on('click', async function (event, d) { // click subset + .append('li') + .classed('data-panel', true) + .classed('dropdown-item', true) + .append('a') + .text((d) => d.id) + .attr('title', (d) => d.description) + .on('click', async function (event, d) { + // click subset // don't toggle data by checkging what is selected in dropdown - const dataSourcesAndPanels = select(this.parentNode.parentNode).datum() as {source: IEntitySourceConfig; panels: IPanelDesc[];}; // a -> parent = li -> parent = dropdown = ul - const newDataset = {source: dataSourcesAndPanels.source, panel: d, rootCohort: null, chtOverviewElements: null}; + const dataSourcesAndPanels = select(this.parentNode.parentNode).datum() as { source: IEntitySourceConfig; panels: IPanelDesc[] }; // a -> parent = li -> parent = dropdown = ul + const newDataset = { source: dataSourcesAndPanels.source, panel: d, rootCohort: null, chtOverviewElements: null }; that.handleDatasetClick.bind(that)(newDataset); }); - this.restartSession = btnGrp.append('button') + this.restartSession = btnGrp + .append('button') .attr('type', 'button') .attr('class', 'btn btn-coral btn-sm') .html(` New Session`) @@ -238,7 +279,8 @@ export class CohortApp { // clean up/destory the old parts of the application destroyOld(); // remove old overview -> otherwise loading information will be added next to the overview - if (newDataset.source) { // only add loading animation if new dataset is not null + if (newDataset.source) { + // only add loading animation if new dataset is not null const loading = select(this.$overview).append('div').html(getAnimatedLoadingText('initial cohort').outerHTML).attr('class', 'loading-inital-animation'); } else { this.datasetTip.show(); @@ -283,13 +325,11 @@ export class CohortApp { return idTypes; } - private _getOldCohortOverviewElements(): IElementProvJSON[] { if (this._cohortOverview === null) { return null; - } else { - return this._cohortOverview.getElementsAsJSON(); } + return this._cohortOverview.getElementsAsJSON(); } public getAppOverview(): CohortOverview { @@ -300,37 +340,40 @@ export class CohortApp { if (dataset.source === null) { this.rootCohort = null; return null; - } else { - const idTypeConfig = dataset.source; - const panel = dataset.panel; - - const viewDescription: IDatabaseViewDesc = await loadViewDescription(idTypeConfig.dbConnectorName, idTypeConfig.viewName); - log.debug('retrievedViewDesctiprion', viewDescription); - const idColumn: IServerColumn = viewDescription.columns.find((col) => col.label === 'id') || {column: 'id', label: 'id', type: 'string'}; - // create root cohort - let root: Cohort = await createCohort( - niceName(idTypeConfig.idType), 'All', true, -1, - idTypeConfig.dbConnector, idTypeConfig.dbConnectorName, idTypeConfig.schema, idTypeConfig.tableName, idTypeConfig.viewName, idTypeConfig.idType, idColumn, - {normal: {}, lt: {}, lte: {}, gt: {}, gte: {}} - ); - if (panel) { - const panelAttr = new PanelScoreAttribute( - panel.id, - idTypeConfig.viewName, - idTypeConfig.dbConnectorName, - 'categorical' - ); - - root = await panelAttr.filter(root, {values: ['true']}); - root.setLabels(idTypeConfig.idType, panel.id); - } - root.isInitial = true; // set cohort as root - // referenceCohort = reference; // save reference cohort - this.rootCohort = root; - const rootAsJSON = root.toProvenanceJSON(); - rootAsJSON.attrAndValues.isRoot = true; - return rootAsJSON; } + const idTypeConfig = dataset.source; + const { panel } = dataset; + + const viewDescription: IDatabaseViewDesc = await loadViewDescription(idTypeConfig.dbConnectorName, idTypeConfig.viewName); + log.debug('retrievedViewDesctiprion', viewDescription); + const idColumn: IServerColumn = viewDescription.columns.find((col) => col.label === 'id') || { column: 'id', label: 'id', type: 'string' }; + // create root cohort + let root: Cohort = await createCohort( + niceName(idTypeConfig.idType), + 'All', + true, + -1, + idTypeConfig.dbConnector, + idTypeConfig.dbConnectorName, + idTypeConfig.schema, + idTypeConfig.tableName, + idTypeConfig.viewName, + idTypeConfig.idType, + idColumn, + { normal: {}, lt: {}, lte: {}, gt: {}, gte: {} }, + ); + if (panel) { + const panelAttr = new PanelScoreAttribute(panel.id, idTypeConfig.viewName, idTypeConfig.dbConnectorName, 'categorical'); + + root = await panelAttr.filter(root, { values: ['true'] }); + root.setLabels(idTypeConfig.idType, panel.id); + } + root.isInitial = true; // set cohort as root + // referenceCohort = reference; // save reference cohort + this.rootCohort = root; + const rootAsJSON = root.toProvenanceJSON(); + rootAsJSON.attrAndValues.isRoot = true; + return rootAsJSON; } /** @@ -339,25 +382,25 @@ export class CohortApp { * @param view name of the view */ async setDataset(dataset: IDatasetDesc) { - select('#db_btnGrp').selectAll('button').classed('selected', false); //remove selected class from all buttons + select('#db_btnGrp').selectAll('button').classed('selected', false); // remove selected class from all buttons const currEventID = ++this.datasetEventID; // save current EventId that and incerease the gloabl one log.debug('setDataset parameters: ', dataset); CohortSelectionListener.reset(); if (dataset !== null && dataset.source) { - const source = dataset.source; + const { source } = dataset; if (source.dbConnectorName && source.viewName) { // check if current event is the last called event if (currEventID === this.datasetEventID) { this.dataset = dataset; // get current rootCohorts, doesn't have to be created again - let rootCohort = this.rootCohort; + let { rootCohort } = this; const datasetRootCohortId = dataset.rootCohort.id; // create new rootCohort if none is defined or is not matching the current configuration if (rootCohort === null || rootCohort.id !== datasetRootCohortId) { - const dbCohortInfo = await getDBCohortData({cohortIds: [Number(datasetRootCohortId)]}); + const dbCohortInfo = await getDBCohortData({ cohortIds: [Number(datasetRootCohortId)] }); const jsonCht = dataset.rootCohort; const provJSON = { idColumn: jsonCht.attrAndValues.idColumn, @@ -366,7 +409,7 @@ export class CohortApp { view: jsonCht.attrAndValues.view, database: jsonCht.attrAndValues.database, selected: jsonCht.attrAndValues.selected, - isRoot: true + isRoot: true, }; rootCohort = createCohortFromDB(dbCohortInfo[0], provJSON); this.rootCohort = rootCohort; @@ -374,7 +417,7 @@ export class CohortApp { this._showChangeLayoutOptions(true); this.restartSession.attr('hidden', null); // remove with null (not false) - select('#db_btnGrp').select(`button[data-db="${source.dbConnectorName}"][data-dbview="${source.viewName}"]`).classed('selected', true); //add selected class to current button + select('#db_btnGrp').select(`button[data-db="${source.dbConnectorName}"][data-dbview="${source.viewName}"]`).classed('selected', true); // add selected class to current button const views = await createCohortOverview(this.graph, this.ref, this.$overview, this.$detail, this.dataset.source, rootCohort); // get loading animation @@ -388,6 +431,13 @@ export class CohortApp { // get Old elements if (dataset.chtOverviewElements !== null) { await this._cohortOverview.generateOverviewProv(dataset.chtOverviewElements); + } else { + // there are no old elements, just the initial cohort. + // check if user is currently onboarding - otherwise directly click the cohort + const tooltip = OnboardingManager.tooltips.get('rootCohort'); + if (!tooltip?.props?.showOnCreate) { + CohortSelectionListener.get().handleSelectionEvent(new CohortSelectionEvent(rootCohort, true)); + } } } } @@ -450,15 +500,16 @@ export class CohortApp { draggerDots.append('rect').attr('x', '12').attr('y', '1').attr('height', '3').attr('width', '3'); // add functionality - SplitGrid( - { - rowGutters: [{ + SplitGrid({ + rowGutters: [ + { track: 2, - element: document.querySelector('#dragger') - }], - snapOffset: 30, - onDragEnd: () => window.dispatchEvent(new Event('resize')) //update responsive vega charts - }); + element: document.querySelector('#dragger'), + }, + ], + snapOffset: 30, + onDragEnd: () => window.dispatchEvent(new Event('resize')), // update responsive vega charts + }); // add buttons to switch const screenControls = container.select('.control-bar').append('div').attr('class', 'screen-controls hidden'); @@ -522,22 +573,19 @@ export class CohortApp { const size = document.body.getBoundingClientRect(); let tvHeightPropertyValue = this.$node.style('--tv-height-vh'); tvHeightPropertyValue = tvHeightPropertyValue.substring(0, tvHeightPropertyValue.length - 2); - const tvHeight = size.height * Number(tvHeightPropertyValue) / 100; + const tvHeight = (size.height * Number(tvHeightPropertyValue)) / 100; gridRowTemplate = `${entityBtnHeight} 1fr ${draggerHeight} ${tvHeight}px`; } this.$node.style('grid-template-rows', gridRowTemplate); } - } - /** * The app for this website, embeds our Cohort App */ export class App extends ATDPApplication { - - constructor(name: string, loginDialog: string, showCookieDisclaimer: boolean = true) { + constructor(name: string, loginDialog: string, showCookieDisclaimer = true) { super({ prefix: 'coral', name, @@ -545,7 +593,7 @@ export class App extends ATDPApplication { /** * Link to help and show help in `Coral at a Glance` page instead */ - showHelpLink: `${(window.location.href).split('app/')[0] + '#/help'}`, + showHelpLink: `${`${window.location.href.split('app/')[0]}#/help`}`, showCookieDisclaimer, /** * Show content in the `Coral at a Glance` page instead @@ -558,9 +606,9 @@ export class App extends ATDPApplication { clientConfig: { contact: { href: 'https://github.com/Caleydo/Coral/issues/', - label: 'report an issue' - } - } + label: 'report an issue', + }, + }, }); console.log('clientConfig', this.options.clientConfig); @@ -583,14 +631,15 @@ export class App extends ATDPApplication { log.debug('initSessionImpl. Is Graph empty?', app.graph.isEmpty); this.jumpToStoredOrLastState(); } - } - export class CohortSelectionListener { private static instance: CohortSelectionListener; + public taskview: Taskview; + selection: Cohort[] = []; + firstCohort = true; public static get() { @@ -600,7 +649,7 @@ export class CohortSelectionListener { static init(eventTarget: Node, app: CohortApp) { if (CohortSelectionListener.instance) { CohortSelectionListener.instance.eventTarget.removeEventListener(COHORT_SELECTION_EVENT_TYPE, CohortSelectionListener.instance.handleSelectionEvent); // remove listener - CohortSelectionListener.instance.selection.forEach((cht) => cht.selected = false); // deselect + CohortSelectionListener.instance.selection.forEach((cht) => (cht.selected = false)); // deselect delete CohortSelectionListener.instance; // destroy } CohortSelectionListener.instance = new CohortSelectionListener(eventTarget, app); @@ -614,54 +663,52 @@ export class CohortSelectionListener { } private constructor(private eventTarget: Node, private app: CohortApp) { - eventTarget.addEventListener(COHORT_SELECTION_EVENT_TYPE, (ev) => this.handleSelectionEvent(ev as CohortSelectionEvent)); //arrow function to keep "this" working in eventhandler + eventTarget.addEventListener(COHORT_SELECTION_EVENT_TYPE, (ev) => this.handleSelectionEvent(ev as CohortSelectionEvent)); // arrow function to keep "this" working in eventhandler } public handleSelectionEvent(ev: CohortSelectionEvent) { const clickedCht = ev.detail.cohort; - const replaceSelection = ev.detail.replaceSelection; + const { replaceSelection } = ev.detail; if (!clickedCht.representation.getRepresentation().classList.contains('preview')) { - // if true deselect all current selected cohorts if (replaceSelection) { - const toDeselect = this.selection.splice(0, this.selection.length); //clear array and get a copy with cohorts to deselect - toDeselect.forEach((cht) => cht.selected = false); //deselect all + const toDeselect = this.selection.splice(0, this.selection.length); // clear array and get a copy with cohorts to deselect + toDeselect.forEach((cht) => (cht.selected = false)); // deselect all } // Update selection array: if (this.selection.indexOf(clickedCht) > -1) { - //already selected --> remove + // already selected --> remove removeFromArray(this.selection, clickedCht); clickedCht.colorTaskView = null; clickedCht.selected = false; if ((clickedCht as InputCohort).outputCohorts !== undefined) { delete (clickedCht as InputCohort).outputCohorts; } - log.info('De-Selected "' + clickedCht.label + '"'); - + log.info(`De-Selected "${clickedCht.label}"`); } else { - if (this.firstCohort) { // this is the first cohort the user selected - this.app.setAppGridLayout('split'); //show bottom + if (this.firstCohort) { + // this is the first cohort the user selected + this.app.setAppGridLayout('split'); // show bottom this.firstCohort = false; } this.selection.push(clickedCht); clickedCht.colorTaskView = null; clickedCht.selected = true; - log.info('Selected "' + clickedCht.label + '"'); + log.info(`Selected "${clickedCht.label}"`); } // set selection in taskview this.taskview.setInputCohorts(this.selection); - this.selection.forEach((cht) => cht.selected = true); + this.selection.forEach((cht) => (cht.selected = true)); this.taskview.clearOutput(); // every selection change clears the output cohorts } } } - export interface IPanelDesc { id: string; description: string; diff --git a/src/base/extensions.ts b/src/base/extensions.ts index e3ab63f..8738bf7 100644 --- a/src/base/extensions.ts +++ b/src/base/extensions.ts @@ -1,5 +1,5 @@ -import {IStartMenuDatasetSectionDesc} from 'ordino'; -import {IDataSourceConfig} from '../common'; +import { IStartMenuDatasetSectionDesc } from 'ordino'; +import { IDataSourceConfig } from '../common'; interface IStartMenuDatasetSectionTab { /** diff --git a/src/cohortview.ts b/src/cohortview.ts index 9922b25..7b286d5 100644 --- a/src/cohortview.ts +++ b/src/cohortview.ts @@ -1,21 +1,26 @@ -import {IObjectRef, ProvenanceGraph} from 'tdp_core'; -import {IDatabaseViewDesc, RestBaseUtils} from 'tdp_core'; -import {CohortApp, CohortSelectionListener} from './app'; -import {Cohort} from './Cohort'; -import {OnboardingManager} from './OnboardingManager'; -import {CohortOverview} from './Overview/CohortOverview'; -import {RectangleLayout} from './Overview/OverviewLayout'; +import { IObjectRef, ProvenanceGraph, IDatabaseViewDesc, RestBaseUtils } from 'tdp_core'; +import { CohortApp, CohortSelectionListener } from './app'; +import { Cohort } from './Cohort'; +import { OnboardingManager } from './OnboardingManager'; +import { CohortOverview } from './Overview/CohortOverview'; +import { RectangleLayout } from './Overview/OverviewLayout'; import Taskview from './Taskview/Taskview'; -import {handleDataLoadError, log} from './util'; -import {IEntitySourceConfig} from './utilIdTypes'; - +import { handleDataLoadError, log } from './util'; +import { IEntitySourceConfig } from './utilIdTypes'; export let cohortOverview: CohortOverview; export let taskview: Taskview; let referenceCohort: Cohort; -export async function createCohortOverview(graph: ProvenanceGraph, ref: IObjectRef, container: HTMLDivElement, detailView: HTMLDivElement, idTypeConfig: IEntitySourceConfig, rootCohort: Cohort): Promise<{cohortOV: CohortOverview; taskV: Taskview;}> { +export async function createCohortOverview( + graph: ProvenanceGraph, + ref: IObjectRef, + container: HTMLDivElement, + detailView: HTMLDivElement, + idTypeConfig: IEntitySourceConfig, + rootCohort: Cohort, +): Promise<{ cohortOV: CohortOverview; taskV: Taskview }> { const viewDescription: IDatabaseViewDesc = await loadViewDescription(idTypeConfig.dbConnectorName, idTypeConfig.viewName); log.debug('retrievedViewDesctiprion', viewDescription); @@ -25,7 +30,6 @@ export async function createCohortOverview(graph: ProvenanceGraph, ref: IObjectR referenceCohort = rootCohort; // save reference cohort log.debug('cohortview - root: ', rootCohort); - // create Overview cohortOverview = new CohortOverview(container, graph, ref, new RectangleLayout(130, 50, 50, 50), rootCohort, viewDescription); // create Taskview @@ -38,11 +42,10 @@ export async function createCohortOverview(graph: ProvenanceGraph, ref: IObjectR OnboardingManager.addTip('rootCohort', rootCohort.representation.getRepresentation()); return { cohortOV: cohortOverview, - taskV: taskview + taskV: taskview, }; } - export function getRootCohort(): Cohort { return referenceCohort; } @@ -67,7 +70,6 @@ export function getTaskview(): Taskview { return taskview; } - export function updateOverview(overview: CohortOverview) { overview.generateOverview(); } diff --git a/src/colors.ts b/src/colors.ts index 218aab3..9f504a3 100644 --- a/src/colors.ts +++ b/src/colors.ts @@ -1,5 +1,3 @@ - - // equals colors in src/scss/abstracts/_variables.scss export const colors = { selectedColor: '#FFC340', @@ -16,5 +14,5 @@ export const colors = { lightBorder: '#d4d4d4', mediumBorder: '#AAA', - darkBorder: '#333' + darkBorder: '#333', }; diff --git a/src/common/GeneUtils.ts b/src/common/GeneUtils.ts index 0005fbe..b8f02aa 100644 --- a/src/common/GeneUtils.ts +++ b/src/common/GeneUtils.ts @@ -1,8 +1,6 @@ -import {Categories, SpeciesUtils} from 'tdp_gene'; -import {Select3Utils, ISelect3Item, IdTextPair} from 'tdp_core'; -import {gene, IDataSourceConfig, drug} from './config'; -import {RestBaseUtils} from 'tdp_core'; -import {ICommonDBConfig} from 'tdp_gene'; +import { Categories, SpeciesUtils, ICommonDBConfig } from 'tdp_publicdb'; +import { Select3Utils, ISelect3Item, IdTextPair, RestBaseUtils } from 'tdp_core'; +import { gene, IDataSourceConfig, drug } from './config'; interface IDrugData extends IdTextPair { target?: string; @@ -20,13 +18,13 @@ export class GeneUtils { * @param {number} pageSize Server-side pagination page size * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. */ - static searchGene(query: string, page: number, pageSize: number): Promise<{ more: boolean, items: Readonly[] }> { + static searchGene(query: string, page: number, pageSize: number): Promise<{ more: boolean; items: Readonly[] }> { return RestBaseUtils.getTDPLookup(gene.db, `${gene.base}_gene_items`, { column: 'symbol', species: SpeciesUtils.getSelectedSpecies(), query, page, - limit: pageSize + limit: pageSize, }); } @@ -55,7 +53,7 @@ export class GeneUtils { */ static formatGene(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp) { if (mode === 'result') { - //highlight match + // highlight match return `${item.text.replace(currentSearchQuery!, Select3Utils.highlightMatch)} ${item.id}`; } return item.text; @@ -63,13 +61,18 @@ export class GeneUtils { // Cellline and Tissue Select3 options methods - static search(config: IDataSourceConfig | ICommonDBConfig, query: string, page: number, pageSize: number): Promise<{ more: boolean, items: Readonly[] }> { + static search( + config: IDataSourceConfig | ICommonDBConfig, + query: string, + page: number, + pageSize: number, + ): Promise<{ more: boolean; items: Readonly[] }> { return RestBaseUtils.getTDPLookup(config.db, `${config.base}_items`, { column: config.entityName, species: SpeciesUtils.getSelectedSpecies(), query, page, - limit: pageSize + limit: pageSize, }); } @@ -83,7 +86,7 @@ export class GeneUtils { static format(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp) { if (mode === 'result' && currentSearchQuery) { - //highlight match + // highlight match return `${item.text.replace(currentSearchQuery!, Select3Utils.highlightMatch)}`; } return item.text; @@ -97,13 +100,13 @@ export class GeneUtils { * @param {number} pageSize Server-side pagination page size * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. */ - static searchDrug(query: string, page: number, pageSize: number): Promise<{more: boolean, items: Readonly[]}> { + static searchDrug(query: string, page: number, pageSize: number): Promise<{ more: boolean; items: Readonly[] }> { return RestBaseUtils.getTDPLookup(drug.db, `${drug.base}_drug_items`, { column: 'drugid', species: SpeciesUtils.getSelectedSpecies(), query, page, - limit: pageSize + limit: pageSize, }); } @@ -118,10 +121,12 @@ export class GeneUtils { */ static formatDrug(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp) { if (mode === 'result') { - //highlight match + // highlight match return `${item.id.replace(currentSearchQuery!, Select3Utils.highlightMatch)}
MoA: ${item.data.moa ? item.data.moa.replace(currentSearchQuery!, Select3Utils.highlightMatch) : item.data.moa}
- Target: ${item.data.target ? item.data.target.replace(currentSearchQuery!, Select3Utils.highlightMatch) : item.data.target}`; + Target: ${ + item.data.target ? item.data.target.replace(currentSearchQuery!, Select3Utils.highlightMatch) : item.data.target + }`; } return item.id; } @@ -147,12 +152,12 @@ export class GeneUtils { * @param {number} pageSize Server-side pagination page size * @returns {Promise<{more: boolean; items: Readonly[]}>} Select3 conformant data structure. */ - static searchDrugScreen(query: string, page: number, pageSize: number): Promise<{more: boolean, items: Readonly[]}> { - const rows= RestBaseUtils.getTDPLookup(drug.db, `drug_screen_items`, { + static searchDrugScreen(query: string, page: number, pageSize: number): Promise<{ more: boolean; items: Readonly[] }> { + const rows = RestBaseUtils.getTDPLookup(drug.db, `drug_screen_items`, { column: 'campaign', query, page, - limit: pageSize + limit: pageSize, }); return rows; } @@ -181,7 +186,7 @@ export class GeneUtils { */ static formatDrugScreen(item: ISelect3Item, node: HTMLElement, mode: 'result' | 'selection', currentSearchQuery?: RegExp) { if (mode === 'result') { - //highlight match + // highlight match return `${item.id.replace(currentSearchQuery!, Select3Utils.highlightMatch)} (${item.text})`; } return item.id; @@ -201,7 +206,7 @@ export class GeneUtils { // add other cases when needed default: - return GeneUtils.validate(dataSource, query); + return GeneUtils.validate(dataSource, query); } } } diff --git a/src/common/config.ts b/src/common/config.ts index b5713c7..f7d1581 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -2,11 +2,8 @@ * Created by sam on 06.03.2017. */ -import {Categories} from 'tdp_gene'; -import {IServerColumn} from 'tdp_core'; -import {ColumnDescUtils} from 'tdp_core'; -import {IAdditionalColumnDesc} from 'tdp_core'; - +import { Categories } from 'tdp_publicdb'; +import { IServerColumn, ColumnDescUtils, IAdditionalColumnDesc } from 'tdp_core'; /** * maximal number of rows in which just the subset if fetched instead of all @@ -14,477 +11,526 @@ import {IAdditionalColumnDesc} from 'tdp_core'; */ export const MAX_FILTER_SCORE_ROWS_BEFORE_ALL = 1000; - /** * Detailed information about the column type */ interface IDataSourceColumnInfo { - /** - * List of all string column names - */ - string?: string[]; - - /** - * List of all number column names - */ - number?: string[]; - - /** - * List of all categorical column names - */ - categorical?: string[]; + /** + * List of all string column names + */ + string?: string[]; + + /** + * List of all number column names + */ + number?: string[]; + + /** + * List of all categorical column names + */ + categorical?: string[]; } export interface IDataSourceConfig { - idType: string; - name: string; - db: string; - schema: string; - tableName: string; - entityName: string; - base: string; - - columns(find: (column: string) => IServerColumn): IAdditionalColumnDesc[]; - - /** - * Detailed information about the column type. - */ - columnInfo?: IDataSourceColumnInfo; - - [key: string]: any; + idType: string; + name: string; + db: string; + schema: string; + tableName: string; + entityName: string; + base: string; + + columns(find: (column: string) => IServerColumn): IAdditionalColumnDesc[]; + + /** + * Detailed information about the column type. + */ + columnInfo?: IDataSourceColumnInfo; + + [key: string]: any; } export const cellline: IDataSourceConfig = { - idType: 'Cellline', - name: 'Cell Line', - db: 'publicdb', - schema: 'cellline', - tableName: 'cellline', - entityName: 'celllinename', - dbViewSuffix: `_items`, - base: 'cellline', - columns: (find: (column: string) => IServerColumn) => { - return [ - ColumnDescUtils.stringCol('id', {label: 'Name'}), - //categoricalCol('species', desc.columns.species.categories, 'Species', true), - ColumnDescUtils.categoricalCol('tumortype', find('tumortype').categories, {label: 'Tumor Type'}), - ColumnDescUtils.categoricalCol('organ', find('organ').categories, {label: 'Organ'}), - ColumnDescUtils.categoricalCol('gender', find('gender').categories, {label: 'Gender'}), - ColumnDescUtils.categoricalCol('metastatic_site', find('metastatic_site').categories, {label: 'Metastatic Site', visible: false}), - ColumnDescUtils.categoricalCol('histology_type', find('histology_type').categories, {label: 'Histology Type', visible: false}), - ColumnDescUtils.categoricalCol('morphology', find('morphology').categories, {label: 'Morphology', visible: false}), - ColumnDescUtils.categoricalCol('growth_type', find('growth_type').categories, {label: 'Growth Type', visible: false}), - ColumnDescUtils.categoricalCol('age_at_surgery', find('age_at_surgery').categories, {label: 'Age at Surgery', visible: false}), - ColumnDescUtils.categoricalCol('microsatellite_stability_class', find('microsatellite_stability_class').categories, {label: 'Micro Satellite Instability (MSI) Status', visible: false}), - ColumnDescUtils.numberCol('microsatellite_stability_score', 0, find('microsatellite_stability_score').max, {label: 'Micro Satellite Instability (MSI) Score', visible: false}), - ColumnDescUtils.categoricalCol('hla_a_allele1', find('hla_a_allele1').categories, {label: 'Human Leukocyte Antigen (HLA) type allele 1', visible: false}), - ColumnDescUtils.categoricalCol('hla_a_allele2', find('hla_a_allele2').categories, {label: 'Human Leukocyte Antigen (HLA) type allele 2', visible: false}), - ColumnDescUtils.numberCol('mutational_fraction', 0, find('mutational_fraction').max, {label: 'Mutational Burden', visible: false}), - ]; - }, - columnInfo: { - string: ['id'], - number: ['microsatellite_stability_score', 'mutational_fraction'], - categorical: ['organ', 'gender', 'tumortype', 'metastatic_site', 'histology_type', 'morphology', 'growth_type', 'microsatellite_stability_class', 'hla_a_allele1', 'hla_a_allele2'] - } + idType: 'Cellline', + name: 'Cell Line', + db: 'publicdb', + schema: 'cellline', + tableName: 'cellline', + entityName: 'celllinename', + dbViewSuffix: `_items`, + base: 'cellline', + columns: (find: (column: string) => IServerColumn) => { + return [ + ColumnDescUtils.stringCol('id', { label: 'Name' }), + // categoricalCol('species', desc.columns.species.categories, 'Species', true), + ColumnDescUtils.categoricalCol('tumortype', find('tumortype').categories, { label: 'Tumor Type' }), + ColumnDescUtils.categoricalCol('organ', find('organ').categories, { label: 'Organ' }), + ColumnDescUtils.categoricalCol('gender', find('gender').categories, { label: 'Gender' }), + ColumnDescUtils.categoricalCol('metastatic_site', find('metastatic_site').categories, { label: 'Metastatic Site', visible: false }), + ColumnDescUtils.categoricalCol('histology_type', find('histology_type').categories, { label: 'Histology Type', visible: false }), + ColumnDescUtils.categoricalCol('morphology', find('morphology').categories, { label: 'Morphology', visible: false }), + ColumnDescUtils.categoricalCol('growth_type', find('growth_type').categories, { label: 'Growth Type', visible: false }), + ColumnDescUtils.categoricalCol('age_at_surgery', find('age_at_surgery').categories, { label: 'Age at Surgery', visible: false }), + ColumnDescUtils.categoricalCol('microsatellite_stability_class', find('microsatellite_stability_class').categories, { + label: 'Micro Satellite Instability (MSI) Status', + visible: false, + }), + ColumnDescUtils.numberCol('microsatellite_stability_score', 0, find('microsatellite_stability_score').max, { + label: 'Micro Satellite Instability (MSI) Score', + visible: false, + }), + ColumnDescUtils.categoricalCol('hla_a_allele1', find('hla_a_allele1').categories, { + label: 'Human Leukocyte Antigen (HLA) type allele 1', + visible: false, + }), + ColumnDescUtils.categoricalCol('hla_a_allele2', find('hla_a_allele2').categories, { + label: 'Human Leukocyte Antigen (HLA) type allele 2', + visible: false, + }), + ColumnDescUtils.numberCol('mutational_fraction', 0, find('mutational_fraction').max, { label: 'Mutational Burden', visible: false }), + ]; + }, + columnInfo: { + string: ['id'], + number: ['microsatellite_stability_score', 'mutational_fraction'], + categorical: [ + 'organ', + 'gender', + 'tumortype', + 'metastatic_site', + 'histology_type', + 'morphology', + 'growth_type', + 'microsatellite_stability_class', + 'hla_a_allele1', + 'hla_a_allele2', + ], + }, }; - export const tissue: IDataSourceConfig = { - idType: 'Tissue', - name: 'Tissue', - db: 'publicdb', - schema: 'tissue', - tableName: 'tissue', - entityName: 'tissuename', - dbViewSuffix: `_items`, - base: 'tissue', - columns: (find: (column: string) => IServerColumn) => { - return [ - ColumnDescUtils.stringCol('id', {label: 'Name'}), - //categoricalCol('species', desc.columns.species.categories, 'Species', true), - ColumnDescUtils.categoricalCol('tumortype', find('tumortype').categories, {label: 'Tumor Type'}), - ColumnDescUtils.categoricalCol('organ', find('organ').categories, {label: 'Organ'}), - ColumnDescUtils.categoricalCol('gender', find('gender').categories, {label: 'Gender'}), - ColumnDescUtils.stringCol('tumortype_adjacent', {label: 'Tumor Type adjacent', visible: false}), - ColumnDescUtils.categoricalCol('vendorname', find('vendorname').categories, {label: 'Vendor name', visible: false}), - ColumnDescUtils.categoricalCol('race', find('race').categories, {label: 'Race', visible: false}), - ColumnDescUtils.categoricalCol('ethnicity', find('ethnicity').categories, {label: 'Ethnicity', visible: false}), - ColumnDescUtils.numberCol('age', find('age').min, find('age').max, {label: 'Age', visible: false}), - ColumnDescUtils.numberCol('days_to_death', 0, find('days_to_death').max, {label: 'Days to death', visible: false}), - ColumnDescUtils.numberCol('days_to_last_followup', 0, find('days_to_last_followup').max, {label: 'Days to last follow up', visible: false}), - ColumnDescUtils.categoricalCol('vital_status', find('vital_status').categories, {label: 'Vital status', visible: false}), - ColumnDescUtils.numberCol('height', 0, find('height').max, {label: 'Height', visible: false}), - ColumnDescUtils.numberCol('weight', 0, find('weight').max, {label: 'Weight', visible: false}), - ColumnDescUtils.numberCol('bmi', 0, find('bmi').max, {label: 'Body Mass Index (BMI)', visible: false}), - ColumnDescUtils.categoricalCol('microsatellite_stability_class', find('microsatellite_stability_class').categories, {label: 'Micro Satellite Instability (MSI) Status', visible: false}), - ColumnDescUtils.numberCol('microsatellite_stability_score', 0, find('microsatellite_stability_score').max, {label: 'Micro Satellite Instability (MSI) Score', visible: false}), - ColumnDescUtils.categoricalCol('hla_a_allele1', find('hla_a_allele1').categories, {label: 'Human Leukocyte Antigen (HLA) type allele 1', visible: false}), - ColumnDescUtils.categoricalCol('hla_a_allele2', find('hla_a_allele2').categories, {label: 'Human Leukocyte Antigen (HLA) type allele 2', visible: false}), - ColumnDescUtils.numberCol('mutational_fraction', 0, find('mutational_fraction').max, {label: 'Mutational Burden', visible: false}), - ]; - }, - columnInfo: { - string: ['id', 'tumortype_adjacent'], - number: ['age', 'days_to_death', 'days_to_last_followup', 'height', 'weight', 'bmi', 'microsatellite_stability_score', 'mutational_fraction'], - categorical: ['organ', 'gender', 'tumortype', 'vendorname', 'race', 'ethnicity', 'vital_status', 'microsatellite_stability_class', 'hla_a_allele1', 'hla_a_allele2'] - } + idType: 'Tissue', + name: 'Tissue', + db: 'publicdb', + schema: 'tissue', + tableName: 'tissue', + entityName: 'tissuename', + dbViewSuffix: `_items`, + base: 'tissue', + columns: (find: (column: string) => IServerColumn) => { + return [ + ColumnDescUtils.stringCol('id', { label: 'Name' }), + // categoricalCol('species', desc.columns.species.categories, 'Species', true), + ColumnDescUtils.categoricalCol('tumortype', find('tumortype').categories, { label: 'Tumor Type' }), + ColumnDescUtils.categoricalCol('organ', find('organ').categories, { label: 'Organ' }), + ColumnDescUtils.categoricalCol('gender', find('gender').categories, { label: 'Gender' }), + ColumnDescUtils.stringCol('tumortype_adjacent', { label: 'Tumor Type adjacent', visible: false }), + ColumnDescUtils.categoricalCol('vendorname', find('vendorname').categories, { label: 'Vendor name', visible: false }), + ColumnDescUtils.categoricalCol('race', find('race').categories, { label: 'Race', visible: false }), + ColumnDescUtils.categoricalCol('ethnicity', find('ethnicity').categories, { label: 'Ethnicity', visible: false }), + ColumnDescUtils.numberCol('age', find('age').min, find('age').max, { label: 'Age', visible: false }), + ColumnDescUtils.numberCol('days_to_death', 0, find('days_to_death').max, { label: 'Days to death', visible: false }), + ColumnDescUtils.numberCol('days_to_last_followup', 0, find('days_to_last_followup').max, { label: 'Days to last follow up', visible: false }), + ColumnDescUtils.categoricalCol('vital_status', find('vital_status').categories, { label: 'Vital status', visible: false }), + ColumnDescUtils.numberCol('height', 0, find('height').max, { label: 'Height', visible: false }), + ColumnDescUtils.numberCol('weight', 0, find('weight').max, { label: 'Weight', visible: false }), + ColumnDescUtils.numberCol('bmi', 0, find('bmi').max, { label: 'Body Mass Index (BMI)', visible: false }), + ColumnDescUtils.categoricalCol('microsatellite_stability_class', find('microsatellite_stability_class').categories, { + label: 'Micro Satellite Instability (MSI) Status', + visible: false, + }), + ColumnDescUtils.numberCol('microsatellite_stability_score', 0, find('microsatellite_stability_score').max, { + label: 'Micro Satellite Instability (MSI) Score', + visible: false, + }), + ColumnDescUtils.categoricalCol('hla_a_allele1', find('hla_a_allele1').categories, { + label: 'Human Leukocyte Antigen (HLA) type allele 1', + visible: false, + }), + ColumnDescUtils.categoricalCol('hla_a_allele2', find('hla_a_allele2').categories, { + label: 'Human Leukocyte Antigen (HLA) type allele 2', + visible: false, + }), + ColumnDescUtils.numberCol('mutational_fraction', 0, find('mutational_fraction').max, { label: 'Mutational Burden', visible: false }), + ]; + }, + columnInfo: { + string: ['id', 'tumortype_adjacent'], + number: ['age', 'days_to_death', 'days_to_last_followup', 'height', 'weight', 'bmi', 'microsatellite_stability_score', 'mutational_fraction'], + categorical: [ + 'organ', + 'gender', + 'tumortype', + 'vendorname', + 'race', + 'ethnicity', + 'vital_status', + 'microsatellite_stability_class', + 'hla_a_allele1', + 'hla_a_allele2', + ], + }, }; function toChromosomes(categories: string[]) { - const order = new Map(); - for (let i = 1; i <= 22; ++i) { - order.set(String(i), i); + const order = new Map(); + for (let i = 1; i <= 22; ++i) { + order.set(String(i), i); + } + order.set('x', 23); + order.set('y', 24); + order.set('mt', 25); + + categories.sort((a, b) => { + const an = a.toLowerCase(); + const bn = b.toLowerCase(); + const ai = order.get(an); + const bi = order.get(bn); + if (ai === bi) { + return an.localeCompare(bn); } - order.set('x', 23); - order.set('y', 24); - order.set('mt', 25); - - categories.sort((a, b) => { - const an = a.toLowerCase(); - const bn = b.toLowerCase(); - const ai = order.get(an); - const bi = order.get(bn); - if (ai === bi) { - return an.localeCompare(bn); - } - if (ai == null) { - return 1; - } - if (bi == null) { - return -1; - } - return ai - bi; - }); - - return categories.map((d, i) => ({name: d, label: d, value: i})); + if (ai == null) { + return 1; + } + if (bi == null) { + return -1; + } + return ai - bi; + }); + + return categories.map((d, i) => ({ name: d, label: d, value: i })); } export const gene: IDataSourceConfig = { - idType: Categories.GENE_IDTYPE, - name: 'Gene', - db: 'publicdb', - schema: 'public', - tableName: 'gene', - entityName: 'ensg', - dbViewSuffix: `_gene_items`, - base: 'gene', - columns: (find: (column: string) => IServerColumn) => { - const maxRegion = Math.max(find('seqregionstart').max, find('seqregionend').max); - return [ - ColumnDescUtils.stringCol('symbol', {label: 'Symbol', width: 120}), - ColumnDescUtils.stringCol('id', {label: 'Ensembl'}), - ColumnDescUtils.stringCol('name', {label: 'Name'}), - ColumnDescUtils.categoricalCol('chromosome', toChromosomes(find('chromosome').categories), {label: 'Chromosome'}), - ColumnDescUtils.categoricalCol('biotype', find('biotype').categories, {label: 'Biotype'}), - ColumnDescUtils.categoricalCol('strand', [{label: 'reverse strand', name: String(-1)}, {label: 'forward strand', name: String(1)}], {label: 'Strand', visible: false}), - ColumnDescUtils.numberCol('seqregionstart', 0, maxRegion, {label: 'Seq Region Start', visible: false, extras: {renderer: 'default'}}), - ColumnDescUtils.numberCol('seqregionend', 0, maxRegion, {label: 'Seq Region End', visible: false, extras: {renderer: 'default'}}), - ]; - }, - columnInfo: { - string: ['id', 'symbol', 'name', 'chromosome', 'seqregionstart', 'seqregionend'], - number: [], - categorical: ['biotype', 'strand'] - } + idType: Categories.GENE_IDTYPE, + name: 'Gene', + db: 'publicdb', + schema: 'public', + tableName: 'gene', + entityName: 'ensg', + dbViewSuffix: `_gene_items`, + base: 'gene', + columns: (find: (column: string) => IServerColumn) => { + const maxRegion = Math.max(find('seqregionstart').max, find('seqregionend').max); + return [ + ColumnDescUtils.stringCol('symbol', { label: 'Symbol', width: 120 }), + ColumnDescUtils.stringCol('id', { label: 'Ensembl' }), + ColumnDescUtils.stringCol('name', { label: 'Name' }), + ColumnDescUtils.categoricalCol('chromosome', toChromosomes(find('chromosome').categories as string[]), { label: 'Chromosome' }), + ColumnDescUtils.categoricalCol('biotype', find('biotype').categories, { label: 'Biotype' }), + ColumnDescUtils.categoricalCol( + 'strand', + [ + { label: 'reverse strand', name: String(-1) }, + { label: 'forward strand', name: String(1) }, + ], + { label: 'Strand', visible: false }, + ), + ColumnDescUtils.numberCol('seqregionstart', 0, maxRegion, { label: 'Seq Region Start', visible: false, extras: { renderer: 'default' } }), + ColumnDescUtils.numberCol('seqregionend', 0, maxRegion, { label: 'Seq Region End', visible: false, extras: { renderer: 'default' } }), + ]; + }, + columnInfo: { + string: ['id', 'symbol', 'name', 'chromosome', 'seqregionstart', 'seqregionend'], + number: [], + categorical: ['biotype', 'strand'], + }, }; export const dataSources = [cellline, tissue]; export function chooseDataSource(desc: any): IDataSourceConfig { - if (typeof (desc) === 'object') { - if (desc.sampleType === 'Tissue' || desc.idtype === 'Tissue' || desc.idType === 'Tissue') { - return tissue; - } else if (desc.sampleType === 'Cellline' || desc.idtype === 'Cellline' || desc.idType === 'Cellline') { - return cellline; - } else { - return gene; - } + if (typeof desc === 'object') { + if (desc.sampleType === 'Tissue' || desc.idtype === 'Tissue' || desc.idType === 'Tissue') { + return tissue; } - - switch (desc) { - case cellline.name: - return cellline; - case tissue.name: - return tissue; - case gene.name: - return gene; + if (desc.sampleType === 'Cellline' || desc.idtype === 'Cellline' || desc.idType === 'Cellline') { + return cellline; } + return gene; + } + + switch (desc) { + case cellline.name: + return cellline; + case tissue.name: + return tissue; + case gene.name: + return gene; + } } export interface IDataTypeConfig { - id: string; - name: string; - tableName: string; - query: string; - dataSubtypes: IDataSubtypeConfig[]; + id: string; + name: string; + tableName: string; + query: string; + dataSubtypes: IDataSubtypeConfig[]; } /** * list of possible types */ export const dataSubtypes = { - number: 'number', - string: 'string', - cat: 'cat', - boxplot: 'boxplot' - + number: 'number', + string: 'string', + cat: 'cat', + boxplot: 'boxplot', }; export interface IDataSubtypeConfig { - id: string; - name: string; - type: string; - useForAggregation: string; - - //type: 'cat'; - categories?: {label: string, name: string, color: string}[]; - - //type: 'number'; - domain?: number[]; - missingValue?: number; - constantDomain?: boolean; + id: string; + name: string; + type: string; + useForAggregation: string; + + // type: 'cat'; + categories?: { label: string; name: string; color: string }[]; + + // type: 'number'; + domain?: number[]; + missingValue?: number; + constantDomain?: boolean; } export const expression: IDataTypeConfig = { - id: 'expression', - name: 'Expression', - tableName: 'expression', - query: 'expression_score', - dataSubtypes: [ - { - id: 'tpm', - name: 'Normalized Gene Expression (TPM Values)', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'tpm' - }, - { - id: 'counts', - name: 'Raw Counts', - type: dataSubtypes.number, - domain: [0, 10000], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'counts' - } - ] + id: 'expression', + name: 'Expression', + tableName: 'expression', + query: 'expression_score', + dataSubtypes: [ + { + id: 'tpm', + name: 'Normalized Gene Expression (TPM Values)', + type: dataSubtypes.number, + domain: [-3, 3], + missingValue: NaN, + constantDomain: true, + useForAggregation: 'tpm', + }, + { + id: 'counts', + name: 'Raw Counts', + type: dataSubtypes.number, + domain: [0, 10000], + missingValue: NaN, + constantDomain: true, + useForAggregation: 'counts', + }, + ], }; export const copyNumber: IDataTypeConfig = { - id: 'copy_number', - name: 'Copy Number', - tableName: 'copynumber', - query: 'copynumber_score', - dataSubtypes: [ - { - id: 'relativecopynumber', - name: 'Relative Copy Number', - type: dataSubtypes.number, - domain: [0, 15], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'relativecopynumber' - }, - { - id: 'totalabscopynumber', - name: 'Total Absolute Copy Number', - type: dataSubtypes.number, - domain: [0, 15], - missingValue: NaN, - constantDomain: true, - useForAggregation: 'totalabscopynumber' - }, - { - id: 'copynumberclass', - name: 'Copy Number Class', - type: dataSubtypes.cat, - categories: toLineUpCategories(Categories.copyNumberCat), - domain: [0, 100], - missingValue: Categories.unknownCopyNumberValue, - useForAggregation: 'copynumberclass' - } - ], + id: 'copy_number', + name: 'Copy Number', + tableName: 'copynumber', + query: 'copynumber_score', + dataSubtypes: [ + { + id: 'relativecopynumber', + name: 'Relative Copy Number', + type: dataSubtypes.number, + domain: [0, 15], + missingValue: NaN, + constantDomain: true, + useForAggregation: 'relativecopynumber', + }, + { + id: 'totalabscopynumber', + name: 'Total Absolute Copy Number', + type: dataSubtypes.number, + domain: [0, 15], + missingValue: NaN, + constantDomain: true, + useForAggregation: 'totalabscopynumber', + }, + { + id: 'copynumberclass', + name: 'Copy Number Class', + type: dataSubtypes.cat, + categories: toLineUpCategories(Categories.copyNumberCat), + domain: [0, 100], + missingValue: Categories.unknownCopyNumberValue, + useForAggregation: 'copynumberclass', + }, + ], }; export const mutation: IDataTypeConfig = { - id: 'mutation', - name: 'Mutation', - tableName: 'mutation', - query: 'alteration_mutation_frequency', - dataSubtypes: [ - //it is a cat by default but in the frequency case also a number? - { - id: 'aa_mutated', - name: 'AA Mutated', - type: dataSubtypes.cat, - categories: toLineUpCategories(Categories.mutationCat), - useForAggregation: 'aa_mutated', - domain: [0, 100], - missingValue: Categories.unknownMutationValue - }, - //just for single score: - { - id: 'aamutation', - name: 'AA Mutation', - type: dataSubtypes.string, - useForAggregation: '', - domain: [0, 100], - missingValue: NaN - }, - { - id: 'dna_mutated', - name: 'DNA Mutated', - type: dataSubtypes.cat, - categories: toLineUpCategories(Categories.mutationCat), - useForAggregation: 'dna_mutated', - domain: [0, 100], - missingValue: Categories.unknownMutationValue - }, - //just for single score: - { - id: 'dnamutation', - name: 'DNA Mutation', - type: dataSubtypes.string, - useForAggregation: '', - domain: [0, 100], - missingValue: NaN - }, - { - id: 'zygosity', - name: 'Zygosity', - type: dataSubtypes.number, - domain: [0, 15], - missingValue: NaN, - useForAggregation: 'zygosity' - } - ] + id: 'mutation', + name: 'Mutation', + tableName: 'mutation', + query: 'alteration_mutation_frequency', + dataSubtypes: [ + // it is a cat by default but in the frequency case also a number? + { + id: 'aa_mutated', + name: 'AA Mutated', + type: dataSubtypes.cat, + categories: toLineUpCategories(Categories.mutationCat), + useForAggregation: 'aa_mutated', + domain: [0, 100], + missingValue: Categories.unknownMutationValue, + }, + // just for single score: + { + id: 'aamutation', + name: 'AA Mutation', + type: dataSubtypes.string, + useForAggregation: '', + domain: [0, 100], + missingValue: NaN, + }, + { + id: 'dna_mutated', + name: 'DNA Mutated', + type: dataSubtypes.cat, + categories: toLineUpCategories(Categories.mutationCat), + useForAggregation: 'dna_mutated', + domain: [0, 100], + missingValue: Categories.unknownMutationValue, + }, + // just for single score: + { + id: 'dnamutation', + name: 'DNA Mutation', + type: dataSubtypes.string, + useForAggregation: '', + domain: [0, 100], + missingValue: NaN, + }, + { + id: 'zygosity', + name: 'Zygosity', + type: dataSubtypes.number, + domain: [0, 15], + missingValue: NaN, + useForAggregation: 'zygosity', + }, + ], }; export const depletion: IDataTypeConfig = { - id: 'depletion', - name: 'Depletion Screen ', - tableName: 'depletionscore', - query: 'depletion_score', - dataSubtypes: [ - { - id: 'rsa', - name: 'DRIVE RSA (ER McDonald III et al., Cell, 2017)', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'rsa' - }, - { - id: 'ataris', - name: 'DRIVE ATARiS (ER McDonald III et al., Cell, 2017)', - type: dataSubtypes.number, - domain: [0, 10000], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ataris' - }, - { - id: 'ceres', - name: 'Avana CERES (Robin M. Meyers et al., Nature Genetics, 2017)', - type: dataSubtypes.number, - domain: [0, 10000], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ceres' - } - ] + id: 'depletion', + name: 'Depletion Screen ', + tableName: 'depletionscore', + query: 'depletion_score', + dataSubtypes: [ + { + id: 'rsa', + name: 'DRIVE RSA (ER McDonald III et al., Cell, 2017)', + type: dataSubtypes.number, + domain: [-3, 3], + missingValue: NaN, + constantDomain: false, + useForAggregation: 'rsa', + }, + { + id: 'ataris', + name: 'DRIVE ATARiS (ER McDonald III et al., Cell, 2017)', + type: dataSubtypes.number, + domain: [0, 10000], + missingValue: NaN, + constantDomain: false, + useForAggregation: 'ataris', + }, + { + id: 'ceres', + name: 'Avana CERES (Robin M. Meyers et al., Nature Genetics, 2017)', + type: dataSubtypes.number, + domain: [0, 10000], + missingValue: NaN, + constantDomain: false, + useForAggregation: 'ceres', + }, + ], }; export const drugScreen: IDataTypeConfig = { - id: 'drug', - name: 'Drug Screen', - tableName: 'drugscore', - query: 'drug_score', - dataSubtypes: [ - { - id: 'actarea', - name: 'Activity Area', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'actarea' - }, - { - id: 'ic50', - name: 'IC50', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ic50' - }, - { - id: 'ec50', - name: 'EC50', - type: dataSubtypes.number, - domain: [-3, 3], - missingValue: NaN, - constantDomain: false, - useForAggregation: 'ec50' - } - ] + id: 'drug', + name: 'Drug Screen', + tableName: 'drugscore', + query: 'drug_score', + dataSubtypes: [ + { + id: 'actarea', + name: 'Activity Area', + type: dataSubtypes.number, + domain: [-3, 3], + missingValue: NaN, + constantDomain: false, + useForAggregation: 'actarea', + }, + { + id: 'ic50', + name: 'IC50', + type: dataSubtypes.number, + domain: [-3, 3], + missingValue: NaN, + constantDomain: false, + useForAggregation: 'ic50', + }, + { + id: 'ec50', + name: 'EC50', + type: dataSubtypes.number, + domain: [-3, 3], + missingValue: NaN, + constantDomain: false, + useForAggregation: 'ec50', + }, + ], }; export const drug: IDataSourceConfig = { - idType: 'Drug', - name: 'Drug', - db: 'publicdb', - schema: 'public', - tableName: 'tdp_drug', - entityName: 'drugid', - base: 'drug', - columns: () => [] + idType: 'Drug', + name: 'Drug', + db: 'publicdb', + schema: 'public', + tableName: 'tdp_drug', + entityName: 'drugid', + base: 'drug', + columns: () => [], }; - export const dataTypes: IDataTypeConfig[] = [expression, copyNumber, mutation]; -function toLineUpCategories(arr: {name: string, value: any, color: string}[]) { - return arr.map((a) => ({label: a.name, name: String(a.value), color: a.color})); +function toLineUpCategories(arr: { name: string; value: any; color: string }[]) { + return arr.map((a) => ({ label: a.name, name: String(a.value), color: a.color })); } /** * splits strings in the form of "DATA_TYPE-DATA_SUBTYPE" and returns the corresponding DATA_TYPE and DATA_SUBTYPE objects */ -export function splitTypes(toSplit: string): {dataType: IDataTypeConfig, dataSubType: IDataSubtypeConfig} { - console.assert(toSplit.includes('-'), 'The splitTypes method requires the string to contain a dash ("-")'); - const [type, subtype] = toSplit.split('-'); - return resolveDataTypes(type, subtype); +export function splitTypes(toSplit: string): { dataType: IDataTypeConfig; dataSubType: IDataSubtypeConfig } { + console.assert(toSplit.includes('-'), 'The splitTypes method requires the string to contain a dash ("-")'); + const [type, subtype] = toSplit.split('-'); + return resolveDataTypes(type, subtype); } export function resolveDataTypes(dataTypeId: string, dataSubTypeId: string) { - let dataType: IDataTypeConfig; - - switch (dataTypeId) { - case mutation.id: - dataType = mutation; - break; - case expression.id: - dataType = expression; - break; - case copyNumber.id: - dataType = copyNumber; - break; - case depletion.id: - dataType = depletion; - break; - case drugScreen.id: - dataType = drugScreen; - break; - } - const dataSubType = dataType.dataSubtypes.find((element) => element.id === dataSubTypeId); - return { - dataType, - dataSubType - }; + let dataType: IDataTypeConfig; + + switch (dataTypeId) { + case mutation.id: + dataType = mutation; + break; + case expression.id: + dataType = expression; + break; + case copyNumber.id: + dataType = copyNumber; + break; + case depletion.id: + dataType = depletion; + break; + case drugScreen.id: + dataType = drugScreen; + break; + } + const dataSubType = dataType.dataSubtypes.find((element) => element.id === dataSubTypeId); + return { + dataType, + dataSubType, + }; } diff --git a/src/common/forms.ts b/src/common/forms.ts index 7e5486c..2261ffa 100644 --- a/src/common/forms.ts +++ b/src/common/forms.ts @@ -2,650 +2,723 @@ * Created by sam on 06.03.2017. */ -import {SpeciesUtils} from 'tdp_gene'; -import {FormSubtype} from 'tdp_gene'; -import {FormElementType, IFormElement, IFormSelectOption} from 'tdp_core'; -import {ValueCache} from 'tdp_core'; -import {gene, IDataSourceConfig, tissue, cellline, dataSources, dataTypes, dataSubtypes, depletion, drugScreen} from './config'; -import {RestStorageUtils} from 'tdp_core'; -import {LineupUtils} from 'tdp_core'; -import {RestBaseUtils, IServerColumn} from 'tdp_core'; -import {GeneUtils} from './GeneUtils'; +import { SpeciesUtils, FormSubtype } from 'tdp_publicdb'; +import { FormElementType, IFormElement, IFormSelectOption, ValueCache, RestStorageUtils, LineupUtils, RestBaseUtils, IServerColumn } from 'tdp_core'; +import { gene, IDataSourceConfig, tissue, cellline, dataSources, dataTypes, dataSubtypes, depletion, drugScreen } from './config'; +import { GeneUtils } from './GeneUtils'; /** * List of ids for parameter form elements * Reuse this ids and activate the `useSession` option for form elements to have the same selectedIndex between different views */ export class ParameterFormIds { - static DATA_SOURCE = 'data_source'; - static GENE_SYMBOL = 'gene_symbol'; - static CELLLINE_NAME = 'cellline_name'; - static TISSUE_NAME = 'tissue_name'; - static DRUG_NAME = 'drug_name'; - static SCREEN_TYPE = 'screen_type'; - static DATA_SUBTYPE = 'data_subtype'; - static DATA_HIERARCHICAL_SUBTYPE = 'hierarchical_data_subtype'; - static COPYNUMBER_SUBTYPE = FormSubtype.FORM_COPYNUMBER_SUBTYPE_ID; - static EXPRESSION_SUBTYPE = FormSubtype.FORM_EXPRESSION_SUBTYPE_ID; - static AGGREGATION = 'aggregation'; - static COMPARISON_OPERATOR = 'comparison_operator'; - static COMPARISON_VALUE = 'comparison_value'; - static COMPARISON_CN = 'comparison_cn'; - static SCORE_FORCE_DATASET_SIZE = 'maxDirectFilterRows'; - static COLOR_CODING = 'form_color_coding'; + static DATA_SOURCE = 'data_source'; + + static GENE_SYMBOL = 'gene_symbol'; + + static CELLLINE_NAME = 'cellline_name'; + + static TISSUE_NAME = 'tissue_name'; + + static DRUG_NAME = 'drug_name'; + + static SCREEN_TYPE = 'screen_type'; + + static DATA_SUBTYPE = 'data_subtype'; + + static DATA_HIERARCHICAL_SUBTYPE = 'hierarchical_data_subtype'; + + static COPYNUMBER_SUBTYPE = FormSubtype.FORM_COPYNUMBER_SUBTYPE_ID; + + static EXPRESSION_SUBTYPE = FormSubtype.FORM_EXPRESSION_SUBTYPE_ID; + + static AGGREGATION = 'aggregation'; + + static COMPARISON_OPERATOR = 'comparison_operator'; + + static COMPARISON_VALUE = 'comparison_value'; + + static COMPARISON_CN = 'comparison_cn'; + + static SCORE_FORCE_DATASET_SIZE = 'maxDirectFilterRows'; + + static COLOR_CODING = 'form_color_coding'; } export const COMPARISON_OPERATORS = [ - {name: '< less than', value: '<', data: '<'}, - {name: '<= less equal', value: '<=', data: '<='}, - {name: 'not equal to', value: '<>', data: '<>'}, - {name: '>= greater equal', value: '>=', data: '>='}, - {name: '> greater than', value: '>', data: '>'} + { name: '< less than', value: '<', data: '<' }, + { name: '<= less equal', value: '<=', data: '<=' }, + { name: 'not equal to', value: '<>', data: '<>' }, + { name: '>= greater equal', value: '>=', data: '>=' }, + { name: '> greater than', value: '>', data: '>' }, ]; export const CATEGORICAL_AGGREGATION = [ - {name: 'Frequency', value: 'frequency', data: 'frequency'}, - {name: 'Count', value: 'count', data: 'count'} + { name: 'Frequency', value: 'frequency', data: 'frequency' }, + { name: 'Count', value: 'count', data: 'count' }, ]; export const NUMERIC_AGGREGATION = [ - {name: 'Average', value: 'avg', data: 'avg'}, - {name: 'Median', value: 'median', data: 'median'}, - {name: 'Min', value: 'min', data: 'min'}, - {name: 'Max', value: 'max', data: 'max'}, - {name: 'Frequency', value: 'frequency', data: 'frequency'}, - {name: 'Count', value: 'count', data: 'count'}, - {name: 'Boxplot', value: 'boxplot', data: 'boxplot'}, - {name: 'Raw Matrix', value: 'numbers', data: 'numbers'} + { name: 'Average', value: 'avg', data: 'avg' }, + { name: 'Median', value: 'median', data: 'median' }, + { name: 'Min', value: 'min', data: 'min' }, + { name: 'Max', value: 'max', data: 'max' }, + { name: 'Frequency', value: 'frequency', data: 'frequency' }, + { name: 'Count', value: 'count', data: 'count' }, + { name: 'Boxplot', value: 'boxplot', data: 'boxplot' }, + { name: 'Raw Matrix', value: 'numbers', data: 'numbers' }, ]; - function buildPredefinedNamedSets(ds: IDataSourceConfig) { - return RestBaseUtils.getTDPData<{id: string}>(ds.db, `${ds.base}_panel`).then((panels: {id: string}[]) => panels.map((p) => p.id)); + return RestBaseUtils.getTDPData<{ id: string }>(ds.db, `${ds.base}_panel`).then((panels: { id: string }[]) => panels.map((p) => p.id)); } export const FORM_GENE_NAME = { - type: FormElementType.SELECT3, - label: 'Gene Symbol', - id: ParameterFormIds.GENE_SYMBOL, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: GeneUtils.searchGene, - validate: GeneUtils.validateGene, - format: GeneUtils.formatGene - }, - useSession: true + type: FormElementType.SELECT3, + label: 'Gene Symbol', + id: ParameterFormIds.GENE_SYMBOL, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + optionsData: [], + search: GeneUtils.searchGene, + validate: GeneUtils.validateGene, + format: GeneUtils.formatGene, + }, + useSession: true, }; export const FORM_DRUG_NAME = { + type: FormElementType.SELECT3, + label: 'Drug Name', + id: ParameterFormIds.DRUG_NAME, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + optionsData: [], + search: GeneUtils.searchDrug, + validate: GeneUtils.validateDrug, + format: GeneUtils.formatDrug, + }, + useSession: true, +}; + +function generateNameLookup(d: IDataSourceConfig, field: string) { + return { type: FormElementType.SELECT3, - label: 'Drug Name', - id: ParameterFormIds.DRUG_NAME, + label: d.name, + id: field, attributes: { - style: 'width:100%' + style: 'width:100%', }, required: true, options: { - placeholder: 'Start typing...', - optionsData: [], - search: GeneUtils.searchDrug, - validate: GeneUtils.validateDrug, - format: GeneUtils.formatDrug + placeholder: 'Start typing...', + optionsData: [], + search: (query, page, pageSize) => GeneUtils.search(d, query, page, pageSize), + validate: (query) => GeneUtils.validate(d, query), + format: GeneUtils.format, + tokenSeparators: /[\r\n;,]+/gm, + defaultTokenSeparator: ';', }, - useSession: true -}; - -function generateNameLookup(d: IDataSourceConfig, field: string) { - return { - type: FormElementType.SELECT3, - label: d.name, - id: field, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: (query, page, pageSize) => GeneUtils.search(d, query, page, pageSize), - validate: (query) => GeneUtils.validate(d, query), - format: GeneUtils.format, - tokenSeparators: /[\r\n;,]+/mg, - defaultTokenSeparator: ';' - }, - useSession: true - }; + useSession: true, + }; } export const FORM_TISSUE_NAME = generateNameLookup(tissue, ParameterFormIds.TISSUE_NAME); export const FORM_CELLLINE_NAME = generateNameLookup(cellline, ParameterFormIds.CELLLINE_NAME); -//see also tdp_bi_bioinfodb/src/index.ts -> the session will be preset there +// see also tdp_bi_bioinfodb/src/index.ts -> the session will be preset there export const FORM_GENE_FILTER = { - type: FormElementType.MAP, - label: `Filter:`, - id: 'filter', - useSession: true, - options: { - sessionKeySuffix: `-${SpeciesUtils.getSelectedSpecies()}-gene`, - defaultSelection: false, - uniqueKeys: true, - badgeProvider: LineupUtils.previewFilterHint(gene.db, 'gene', () => ({filter_species: SpeciesUtils.getSelectedSpecies()})), - entries: [{ - name: 'Bio Type', - value: 'biotype', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_biotypes`, () => RestBaseUtils.getTDPData<{text: string}>(gene.db, 'gene_unique_all', { - column: 'biotype', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Strand', - value: 'strand', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_strands`, () => RestBaseUtils.getTDPData<{text: string | number}>(gene.db, `gene_unique_all`, { - column: 'strand', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => ({name: `${d.text === -1 ? 'reverse' : 'forward'} strand`, value: d.text})))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Chromosome', - value: 'chromosome', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_chromosome`, () => RestBaseUtils.getTDPData<{text: string | number}>(gene.db, `gene_unique_all`, { - column: 'chromosome', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text.toString()))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Predefined Named Sets', - value: 'panel_ensg', - type: FormElementType.SELECT2, - multiple: true, - optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_predefined_namedsets`, buildPredefinedNamedSets.bind(null, gene)), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'My Named Sets', - value: 'namedset4ensg', - type: FormElementType.SELECT2, - multiple: true, - optionsData: RestStorageUtils.listNamedSetsAsOptions.bind(null, gene.idType), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Gene Symbol', - value: 'ensg', - type: FormElementType.SELECT3, - multiple: true, - search: GeneUtils.searchGene, - validate: GeneUtils.validateGene, - format: GeneUtils.formatGene, - options: { - placeholder: 'Start typing...', - } - }] - } + type: FormElementType.MAP, + label: `Filter:`, + id: 'filter', + useSession: true, + options: { + sessionKeySuffix: `-${SpeciesUtils.getSelectedSpecies()}-gene`, + defaultSelection: false, + uniqueKeys: true, + badgeProvider: LineupUtils.previewFilterHint(gene.db, 'gene', () => ({ filter_species: SpeciesUtils.getSelectedSpecies() })), + entries: [ + { + name: 'Bio Type', + value: 'biotype', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_biotypes`, () => + RestBaseUtils.getTDPData<{ text: string }>(gene.db, 'gene_unique_all', { + column: 'biotype', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Strand', + value: 'strand', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_strands`, () => + RestBaseUtils.getTDPData<{ text: string | number }>(gene.db, `gene_unique_all`, { + column: 'strand', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => ({ name: `${d.text === -1 ? 'reverse' : 'forward'} strand`, value: d.text }))), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Chromosome', + value: 'chromosome', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${SpeciesUtils.getSelectedSpecies()}_gene_chromosome`, () => + RestBaseUtils.getTDPData<{ text: string | number }>(gene.db, `gene_unique_all`, { + column: 'chromosome', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text.toString())), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Predefined Named Sets', + value: 'panel_ensg', + type: FormElementType.SELECT2, + multiple: true, + optionsData: ValueCache.getInstance().cachedLazy( + `${SpeciesUtils.getSelectedSpecies()}_gene_predefined_namedsets`, + buildPredefinedNamedSets.bind(null, gene), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'My Named Sets', + value: 'namedset4ensg', + type: FormElementType.SELECT2, + multiple: true, + optionsData: RestStorageUtils.listNamedSetsAsOptions.bind(null, gene.idType), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Gene Symbol', + value: 'ensg', + type: FormElementType.SELECT3, + multiple: true, + search: GeneUtils.searchGene, + validate: GeneUtils.validateGene, + format: GeneUtils.formatGene, + options: { + placeholder: 'Start typing...', + }, + }, + ], + }, }; function generateTissueSpecificFilter(d: IDataSourceConfig) { - return [ - { - name: 'Tumor Type adjacent', - value: 'tumortype_adjacent', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_tumortype_adjacent`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'tumortype_adjacent', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Vendor name', - value: 'vendorname', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_vendorname`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'vendorname', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Race', - value: 'race', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_race`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'race', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Ethnicity', - value: 'ethnicity', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_ethnicity`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'ethnicity', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Vital status', - value: 'vital_status', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_vital_status`, () => RestBaseUtils.getTDPData<{text: string | boolean}>(d.db, `${d.base}_unique_all`, { - column: 'vital_status', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text === true ? 'true' : 'false'))), - options: { - placeholder: 'Start typing...', - } - } - ]; + return [ + { + name: 'Tumor Type adjacent', + value: 'tumortype_adjacent', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_tumortype_adjacent`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'tumortype_adjacent', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Vendor name', + value: 'vendorname', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_vendorname`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'vendorname', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Race', + value: 'race', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_race`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'race', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Ethnicity', + value: 'ethnicity', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_ethnicity`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'ethnicity', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Vital status', + value: 'vital_status', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_vital_status`, () => + RestBaseUtils.getTDPData<{ text: string | boolean }>(d.db, `${d.base}_unique_all`, { + column: 'vital_status', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => (d.text === true ? 'true' : 'false'))), + ), + options: { + placeholder: 'Start typing...', + }, + }, + ]; } function generateCelllineSpecificFilter(d: IDataSourceConfig) { - return [ - { - name: 'Age at Surgery', - value: 'age_at_surgery', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_age_at_surgery`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'age_at_surgery', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Growth Type', - value: 'growth_type', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_growth_type`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'growth_type', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Histology Type', - value: 'histology_type', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_histology_type`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'histology_type', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Metastatic Site', - value: 'metastatic_site', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_metastatic_site`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'metastatic_site', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Morphology', - value: 'morphology', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_morphology`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'morphology', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - } - ]; + return [ + { + name: 'Age at Surgery', + value: 'age_at_surgery', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_age_at_surgery`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'age_at_surgery', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Growth Type', + value: 'growth_type', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_growth_type`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'growth_type', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Histology Type', + value: 'histology_type', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_histology_type`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'histology_type', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Metastatic Site', + value: 'metastatic_site', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_metastatic_site`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'metastatic_site', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Morphology', + value: 'morphology', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_morphology`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'morphology', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + ]; } function generateFilter(d: IDataSourceConfig) { - let specificFilters = []; - if (d === tissue) { - specificFilters = generateTissueSpecificFilter(d); - } else if (d === cellline) { - specificFilters = generateCelllineSpecificFilter(d); - } - return { - type: FormElementType.MAP, - label: `Filter:`, - id: 'filter', - useSession: true, - options: { - sessionKeySuffix: `-${SpeciesUtils.getSelectedSpecies()}-${d.base}`, - badgeProvider: LineupUtils.previewFilterHint(d.db, d.base, () => ({filter_species: SpeciesUtils.getSelectedSpecies()})), - defaultSelection: false, - uniqueKeys: true, - entries: [{ - name: 'Tumor Type', - value: 'tumortype', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_tumortypes`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'tumortype', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Organ', - value: 'organ', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_organs`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'organ', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'Gender', - value: 'gender', - type: FormElementType.SELECT2, - multiple: true, - return: 'id', - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_gender`, () => RestBaseUtils.getTDPData<{text: string}>(d.db, `${d.base}_unique_all`, { - column: 'gender', - species: SpeciesUtils.getSelectedSpecies() - }).then((r) => r.map((d) => d.text))), - options: { - placeholder: 'Start typing...', - } - }, - ...specificFilters, - { - name: 'Predefined Named Sets', - value: 'panel_' + d.entityName, - type: FormElementType.SELECT2, - multiple: true, - optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_predefined_namedsets`, buildPredefinedNamedSets.bind(null, d)), - options: { - placeholder: 'Start typing...', - } - }, { - name: 'My Named Sets', - value: 'namedset4' + d.entityName, - type: FormElementType.SELECT2, - multiple: true, - optionsData: RestStorageUtils.listNamedSetsAsOptions.bind(null, d.idType), - options: { - placeholder: 'Start typing...', - } - }, { - name: d.name, - value: d.entityName, - type: FormElementType.SELECT3, - multiple: true, - search: (query, page, pageSize) => GeneUtils.search(d, query, page, pageSize), - validate: (query) => GeneUtils.validate(d, query), - format: GeneUtils.format, - tokenSeparators: /[\r\n;,]+/mg, - defaultTokenSeparator: ';', - placeholder: 'Start typing...', - }] - } - }; + let specificFilters = []; + if (d === tissue) { + specificFilters = generateTissueSpecificFilter(d); + } else if (d === cellline) { + specificFilters = generateCelllineSpecificFilter(d); + } + return { + type: FormElementType.MAP, + label: `Filter:`, + id: 'filter', + useSession: true, + options: { + sessionKeySuffix: `-${SpeciesUtils.getSelectedSpecies()}-${d.base}`, + badgeProvider: LineupUtils.previewFilterHint(d.db, d.base, () => ({ filter_species: SpeciesUtils.getSelectedSpecies() })), + defaultSelection: false, + uniqueKeys: true, + entries: [ + { + name: 'Tumor Type', + value: 'tumortype', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_tumortypes`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'tumortype', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Organ', + value: 'organ', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_organs`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'organ', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'Gender', + value: 'gender', + type: FormElementType.SELECT2, + multiple: true, + return: 'id', + optionsData: ValueCache.getInstance().cachedLazy(`${d.base}_${SpeciesUtils.getSelectedSpecies()}_gender`, () => + RestBaseUtils.getTDPData<{ text: string }>(d.db, `${d.base}_unique_all`, { + column: 'gender', + species: SpeciesUtils.getSelectedSpecies(), + }).then((r) => r.map((d) => d.text)), + ), + options: { + placeholder: 'Start typing...', + }, + }, + ...specificFilters, + { + name: 'Predefined Named Sets', + value: `panel_${d.entityName}`, + type: FormElementType.SELECT2, + multiple: true, + optionsData: ValueCache.getInstance().cachedLazy( + `${d.base}_${SpeciesUtils.getSelectedSpecies()}_predefined_namedsets`, + buildPredefinedNamedSets.bind(null, d), + ), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: 'My Named Sets', + value: `namedset4${d.entityName}`, + type: FormElementType.SELECT2, + multiple: true, + optionsData: RestStorageUtils.listNamedSetsAsOptions.bind(null, d.idType), + options: { + placeholder: 'Start typing...', + }, + }, + { + name: d.name, + value: d.entityName, + type: FormElementType.SELECT3, + multiple: true, + search: (query, page, pageSize) => GeneUtils.search(d, query, page, pageSize), + validate: (query) => GeneUtils.validate(d, query), + format: GeneUtils.format, + tokenSeparators: /[\r\n;,]+/gm, + defaultTokenSeparator: ';', + placeholder: 'Start typing...', + }, + ], + }, + }; } export const FORM_DATA_SOURCE = { - type: FormElementType.SELECT, - label: 'Data Source', - id: ParameterFormIds.DATA_SOURCE, - required: true, - options: { - optionsData: dataSources.map((ds) => { - return {name: ds.name, value: ds.name, data: ds}; - }) - }, - useSession: true + type: FormElementType.SELECT, + label: 'Data Source', + id: ParameterFormIds.DATA_SOURCE, + required: true, + options: { + optionsData: dataSources.map((ds) => { + return { name: ds.name, value: ds.name, data: ds }; + }), + }, + useSession: true, }; export const FORM_TISSUE_FILTER = generateFilter(tissue); export const FORM_CELLLINE_FILTER = generateFilter(cellline); export const FORM_TISSUE_OR_CELLLINE_FILTER = { - type: FormElementType.MAP, - label: `Filter:`, - id: 'filter', - useSession: true, - dependsOn: [ParameterFormIds.DATA_SOURCE], - options: { - sessionKeySuffix: '-choose', - defaultSelection: false, - uniqueKeys: true, - badgeProvider: (filter: any, dataSource: IFormElement) => { - const value = dataSource.value; - const data = value ? value.data : null; - if (data === tissue || data === tissue.name) { - return FORM_TISSUE_FILTER.options.badgeProvider(filter); - } else if (data === cellline || data === cellline.name) { - return FORM_CELLLINE_FILTER.options.badgeProvider(filter); - } - return ''; - }, - entries: (dataSource: IFormElement) => { - const value = dataSource.value; - const data = value ? value.data : null; - if (data === tissue || data === tissue.name) { - return FORM_TISSUE_FILTER.options.entries; - } else if (data === cellline || data === cellline.name) { - return FORM_CELLLINE_FILTER.options.entries; - } - return []; - } - } + type: FormElementType.MAP, + label: `Filter:`, + id: 'filter', + useSession: true, + dependsOn: [ParameterFormIds.DATA_SOURCE], + options: { + sessionKeySuffix: '-choose', + defaultSelection: false, + uniqueKeys: true, + badgeProvider: (filter: any, dataSource: IFormElement) => { + const { value } = dataSource; + const data = value ? value.data : null; + if (data === tissue || data === tissue.name) { + return FORM_TISSUE_FILTER.options.badgeProvider(filter); + } + if (data === cellline || data === cellline.name) { + return FORM_CELLLINE_FILTER.options.badgeProvider(filter); + } + return ''; + }, + entries: (dataSource: IFormElement) => { + const { value } = dataSource; + const data = value ? value.data : null; + if (data === tissue || data === tissue.name) { + return FORM_TISSUE_FILTER.options.entries; + } + if (data === cellline || data === cellline.name) { + return FORM_CELLLINE_FILTER.options.entries; + } + return []; + }, + }, }; export const FORM_COLOR_CODING = { - type: FormElementType.SELECT, - label: 'Color Coding', - id: ParameterFormIds.COLOR_CODING, - dependsOn: [ParameterFormIds.DATA_SOURCE], - options: { - optionsData: (depends) => { - const value = depends[0]; - const data = value ? value.data : null; - if (data === tissue || data === tissue.name) { - return addEmptyOption(selectCategoricalColumn(tissue)); - } else if (data === cellline || data === cellline.name) { - return addEmptyOption(selectCategoricalColumn(cellline)); - } - return []; - } + type: FormElementType.SELECT, + label: 'Color Coding', + id: ParameterFormIds.COLOR_CODING, + dependsOn: [ParameterFormIds.DATA_SOURCE], + options: { + optionsData: (depends) => { + const value = depends[0]; + const data = value ? value.data : null; + if (data === tissue || data === tissue.name) { + return addEmptyOption(selectCategoricalColumn(tissue)); + } + if (data === cellline || data === cellline.name) { + return addEmptyOption(selectCategoricalColumn(cellline)); + } + return []; }, - useSession: false + }, + useSession: false, }; function selectCategoricalColumn(ds: IDataSourceConfig) { - const dummy: IServerColumn = { - type: 'string', - column: '', - label: '', - categories: [], - min: 0, - max: 1 - }; - const cats = ds.columns(() => dummy).filter((d) => d.type === 'categorical'); - - return cats.map((c) => ({name: c.label, value: (c).column, data: (c).column})); + const dummy: IServerColumn = { + type: 'string', + column: '', + label: '', + categories: [], + min: 0, + max: 1, + }; + const cats = ds.columns(() => dummy).filter((d) => d.type === 'categorical'); + + return cats.map((c) => ({ name: c.label, value: (c).column, data: (c).column })); } function addEmptyOption(options: IFormSelectOption[]) { - return [{name: 'None', value: '', data: null}].concat(options); + return [{ name: 'None', value: '', data: null }].concat(options); } - export const FORM_DATA_HIERARCHICAL_SUBTYPE = { - type: FormElementType.SELECT2_MULTIPLE, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: dataTypes.map((ds) => { - return { - text: ds.name, - children: ds.dataSubtypes.map((dss) => ({ - id: `${ds.id}-${dss.id}`, - text: dss.name - })) - }; - }) - }, - useSession: true + type: FormElementType.SELECT2_MULTIPLE, + label: 'Data Type', + id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + data: dataTypes.map((ds) => { + return { + text: ds.name, + children: ds.dataSubtypes.map((dss) => ({ + id: `${ds.id}-${dss.id}`, + text: dss.name, + })), + }; + }), + }, + useSession: true, }; export const FORM_DATA_HIERARCHICAL_SUBTYPE_AGGREGATED_SELECTION = { - type: FormElementType.SELECT2, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: dataTypes.map((ds) => { - return { - text: ds.name, - //string types can't be aggregated - children: ds.dataSubtypes.filter((d) => d.type !== dataSubtypes.string).map((dss) => ({ - id: `${ds.id}-${dss.id}`, - text: dss.name - })) - }; - }) - }, - useSession: true + type: FormElementType.SELECT2, + label: 'Data Type', + id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + data: dataTypes.map((ds) => { + return { + text: ds.name, + // string types can't be aggregated + children: ds.dataSubtypes + .filter((d) => d.type !== dataSubtypes.string) + .map((dss) => ({ + id: `${ds.id}-${dss.id}`, + text: dss.name, + })), + }; + }), + }, + useSession: true, }; - export const FORM_DATA_HIERARCHICAL_SUBTYPE_DEPLETION = { - type: FormElementType.SELECT2_MULTIPLE, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: depletion.dataSubtypes.map((dss) => ({ - id: `${depletion.id}-${dss.id}`, - text: dss.name - })) - }, - useSession: true + type: FormElementType.SELECT2_MULTIPLE, + label: 'Data Type', + id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + data: depletion.dataSubtypes.map((dss) => ({ + id: `${depletion.id}-${dss.id}`, + text: dss.name, + })), + }, + useSession: true, }; export const FORM_DATA_HIERARCHICAL_SUBTYPE_AGGREGATED_SELECTION_DEPLETION = { - type: FormElementType.SELECT2, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: depletion.dataSubtypes.filter((d) => d.type !== dataSubtypes.string).map((dss) => ({ - id: `${depletion.id}-${dss.id}`, - text: dss.name - })) - }, - useSession: true + type: FormElementType.SELECT2, + label: 'Data Type', + id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + data: depletion.dataSubtypes + .filter((d) => d.type !== dataSubtypes.string) + .map((dss) => ({ + id: `${depletion.id}-${dss.id}`, + text: dss.name, + })), + }, + useSession: true, }; export const FORM_DATA_HIERARCHICAL_SUBTYPE_DRUG = { - type: FormElementType.SELECT2_MULTIPLE, - label: 'Data Type', - id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - data: drugScreen.dataSubtypes.map((subtype) => ({ - id: `${drugScreen.id}-${subtype.id}`, - text: subtype.name - })) - }, - useSession: true + type: FormElementType.SELECT2_MULTIPLE, + label: 'Data Type', + id: ParameterFormIds.DATA_HIERARCHICAL_SUBTYPE, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + data: drugScreen.dataSubtypes.map((subtype) => ({ + id: `${drugScreen.id}-${subtype.id}`, + text: subtype.name, + })), + }, + useSession: true, }; export const DRUG_SCREEN_SCORE_FORM_ELEMENT = { - type: FormElementType.SELECT3, - label: 'Drug Screen', - id: ParameterFormIds.SCREEN_TYPE, - attributes: { - style: 'width:100%' - }, - required: true, - options: { - placeholder: 'Start typing...', - optionsData: [], - search: GeneUtils.searchDrugScreen, - validate: GeneUtils.validateDrugScreen, - format: GeneUtils.formatDrugScreen - }, - useSession: true + type: FormElementType.SELECT3, + label: 'Drug Screen', + id: ParameterFormIds.SCREEN_TYPE, + attributes: { + style: 'width:100%', + }, + required: true, + options: { + placeholder: 'Start typing...', + optionsData: [], + search: GeneUtils.searchDrugScreen, + validate: GeneUtils.validateDrugScreen, + format: GeneUtils.formatDrugScreen, + }, + useSession: true, }; diff --git a/src/config/onboarding.ts b/src/config/onboarding.ts index e0d6828..b9493f8 100644 --- a/src/config/onboarding.ts +++ b/src/config/onboarding.ts @@ -1,4 +1,4 @@ -import {Props} from 'tippy.js'; +import { Props } from 'tippy.js'; // compare: // * Demo: https://atomiks.github.io/tippyjs/ @@ -9,12 +9,12 @@ export const CONFIG_ONBOARDING: ITippyConfig = { inertia: true, theme: 'light-border', delay: [500, null], - allowHTML: true + allowHTML: true, }, tooltips: { dataset: { placement: 'bottom', - content: 'Start by selecting a dataset for your analysis.' + content: 'Start by selecting a dataset for your analysis.', }, rootCohort: { placement: 'bottom-start', @@ -25,7 +25,7 @@ export const CONFIG_ONBOARDING: ITippyConfig = {

Click the cohort to select it for use.

`, - maxWidth: 250 + maxWidth: 250, }, input: { placement: 'top', @@ -125,14 +125,14 @@ export const CONFIG_ONBOARDING: ITippyConfig = {

Click a cohort to toggle its selection. To directly select only a single cohort, double-click it.

`, maxWidth: 250, - onHidden: (instance) => instance.destroy() // auto remove after first click + onHidden: (instance) => instance.destroy(), // auto remove after first click }, - } + }, }; interface ITippyConfig { defaultSettings: Partial; tooltips: { - [tipId: string]: Partial + [tipId: string]: Partial; }; } diff --git a/src/data/Attribute.ts b/src/data/Attribute.ts index 9c60482..bbdaad8 100644 --- a/src/data/Attribute.ts +++ b/src/data/Attribute.ts @@ -1,12 +1,37 @@ -import {IAllFilters, IServerColumn} from 'tdp_core'; -import {IDataSubtypeConfig, IDataTypeConfig, resolveDataTypes} from 'tdp_publicdb'; -import {Cohort, createCohortWithDepletionScoreFilter, createCohortWithEqualsFilter, createCohortWithGeneEqualsFilter, createCohortWithGeneNumFilter, createCohortWithNumFilter, createCohortWithPanelAnnotationFilter} from '../Cohort'; -import {ICohort} from '../CohortInterfaces'; -import {getCohortData, getCohortDepletionScore, getCohortGeneScore, getCohortHist, getCohortPanelAnnotation, getCohortSize, HistRouteType, ICohortDBDepletionScoreParams, ICohortDBGeneScoreParams, ICohortDBHistDataParms, ICohortDBHistPanelParms, ICohortDBHistScoreDepletionParms, ICohortDBHistScoreParms, ICohortDBPanelAnnotationParams, IEqualsList, INumRange} from '../rest'; -import {IOption, IScoreOption, IServerColumnOption, ISpecialOption, OptionType} from '../Taskview/SearchBar'; -import {deepCopy, getSessionStorageItem, IAttributeFilter, log, setSessionStorageItem} from '../util'; -import {easyLabelFromFilter, easyLabelFromFilterArray, niceName} from '../utilLabels'; -import {ISpecialAttribute} from './SpecialAttribute'; +import { IAllFilters, IServerColumn } from 'tdp_core'; +import { IDataSubtypeConfig, IDataTypeConfig, resolveDataTypes } from 'tdp_publicdb'; +import { + Cohort, + createCohortWithDepletionScoreFilter, + createCohortWithEqualsFilter, + createCohortWithGeneEqualsFilter, + createCohortWithGeneNumFilter, + createCohortWithNumFilter, + createCohortWithPanelAnnotationFilter, +} from '../Cohort'; +import { ICohort } from '../CohortInterfaces'; +import { + getCohortData, + getCohortDepletionScore, + getCohortGeneScore, + getCohortHist, + getCohortPanelAnnotation, + getCohortSize, + HistRouteType, + ICohortDBDepletionScoreParams, + ICohortDBGeneScoreParams, + ICohortDBHistDataParms, + ICohortDBHistPanelParms, + ICohortDBHistScoreDepletionParms, + ICohortDBHistScoreParms, + ICohortDBPanelAnnotationParams, + IEqualsList, + INumRange, +} from '../rest'; +import { IOption, IScoreOption, IServerColumnOption, ISpecialOption, OptionType } from '../Taskview/SearchBar'; +import { deepCopy, getSessionStorageItem, IAttributeFilter, log, setSessionStorageItem } from '../util'; +import { easyLabelFromFilter, easyLabelFromFilterArray, niceName } from '../utilLabels'; +import { ISpecialAttribute } from './SpecialAttribute'; export type AttributeType = 'categorical' | 'number' | 'string'; @@ -81,9 +106,12 @@ export interface IAttribute { getData(cohortDbId: number, filters?: IAllFilters): Promise; // IRow has _id but IScoreRow has not - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string, count: number}[]>; + getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]>; - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{bin: string, count: number}[]>; + getHistWithStorage( + histType: HistRouteType, + params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, + ): Promise<{ bin: string; count: number }[]>; getCount(cohortDbId: number, filters?: IAllFilters): Promise; @@ -92,46 +120,48 @@ export interface IAttribute { toJSON(); } - export abstract class Attribute implements IAttribute { - - public preferLog: boolean = false; + public preferLog = false; public min?: number; + public max?: number; + public categories?: string[]; + public label: string; + public dataKey: string; - constructor(public readonly id: string, - public readonly view: string, - public readonly database: string, - public readonly type: AttributeType) { - this.label = niceName(this.id); //default - this.dataKey = this.id; //identical by default + constructor(public readonly id: string, public readonly view: string, public readonly database: string, public readonly type: AttributeType) { + this.label = niceName(this.id); // default + this.dataKey = this.id; // identical by default // console.log('attribute Option: ', option); // console.log('attribute JSON: ', this.toJSON()); } async getData(cohortDbId: number, filters?: IAllFilters): Promise { - const rows = await getCohortData({cohortId: cohortDbId, attribute: this.id}); + const rows = await getCohortData({ cohortId: cohortDbId, attribute: this.id }); return rows; } - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string, count: number}[]> { + getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]> { const params: ICohortDBHistDataParms = { cohortId: dbId, - attribute: this.id + attribute: this.id, }; const type = this.type === 'number' ? HistRouteType.dataNum : HistRouteType.dataCat; return this.getHistWithStorage(type, params); } - async getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{bin: string, count: number}[]> { + async getHistWithStorage( + histType: HistRouteType, + params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, + ): Promise<{ bin: string; count: number }[]> { // define storagekey as cohort dbId and attribute label const storageKey = `${params.cohortId}#${this.label}`; - let histData: {bin: string, count: number}[] = getSessionStorageItem(storageKey); // get histogram from session storage + let histData: { bin: string; count: number }[] = getSessionStorageItem(storageKey); // get histogram from session storage // check if histogram was saved in sesison storage if (histData === null) { @@ -143,7 +173,7 @@ export abstract class Attribute implements IAttribute { } getCount(cohortDbId: number, filters?: IAllFilters) { - return getCohortSize({cohortId: cohortDbId}); + return getCohortSize({ cohortId: cohortDbId }); } abstract filter(cht: ICohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise; @@ -152,30 +182,26 @@ export abstract class Attribute implements IAttribute { } export class ServerColumnAttribute extends Attribute { + resolvedDataType: { dataType: IDataTypeConfig; dataSubType: IDataSubtypeConfig }; - resolvedDataType: {dataType: IDataTypeConfig; dataSubType: IDataSubtypeConfig;}; - - constructor(public readonly id: string, - public readonly view: string, - public readonly database: string, - readonly serverColumn: IServerColumn) { + constructor(public readonly id: string, public readonly view: string, public readonly database: string, readonly serverColumn: IServerColumn) { super(id, view, database, serverColumn.type); this.label = niceName(serverColumn.label); - this.categories = serverColumn.categories; + //this.categories = (serverColumn.categories as (Partial[])).map((c) => (c as ICategory).label ?? (c as ICategory).name ?? String(c)); + this.categories = serverColumn.categories as string[]; } async filter(cht: Cohort, filter: INumRange[] | IEqualsList, rangeLabel?: string): Promise { if (Array.isArray(filter)) { // TODO label // const label = rangeLabel ? rangeLabel : filter.map((a) => labelFromFilter(a, this)).join(' / '); - const label = rangeLabel ? rangeLabel : filter.map((a) => easyLabelFromFilter(a, this.label)).join(' / '); + const label = rangeLabel || filter.map((a) => easyLabelFromFilter(a, this.label)).join(' / '); return createCohortWithNumFilter(cht, niceName(this.id), label, this.id, filter); - } else { - // TODO label - // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); - const label = rangeLabel ? rangeLabel : easyLabelFromFilter(filter, this.label); - return createCohortWithEqualsFilter(cht, niceName(this.id), label, this.id, this.type === 'number' ? 'true' : 'false', filter.values); } + // TODO label + // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); + const label = rangeLabel || easyLabelFromFilter(filter, this.label); + return createCohortWithEqualsFilter(cht, niceName(this.id), label, this.id, this.type === 'number' ? 'true' : 'false', filter.values); } toJSON(): IAttributeJSON { @@ -185,25 +211,24 @@ export class ServerColumnAttribute extends Attribute { optionText: null, optionData: { serverColumn: this.serverColumn, - } + }, }; return { option, currentDB: this.database, - currentView: this.view + currentView: this.view, }; } - } - export class SpecialAttribute extends Attribute { - - constructor(public readonly id: string, + constructor( + public readonly id: string, public readonly view: string, public readonly database: string, public readonly spAttribute: ISpecialAttribute, - public readonly attrOption: string) { + public readonly attrOption: string, + ) { super(id, view, database, spAttribute.type); this.spAttribute.attributeOption = this.attrOption; @@ -215,17 +240,16 @@ export class SpecialAttribute extends Attribute { let rows = []; if (this.spAttribute.overrideGetData) { rows = await this.spAttribute.getData(cohortDbId); - } //else { + } // else { // rows = await super.getData(cohortDbId, filters); // } return rows; } - async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string, count: number}[]> { - + async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]> { if (this.spAttribute.overrideGetHist) { - return await this.spAttribute.getHist(dbId, filters, bins); + return this.spAttribute.getHist(dbId, filters, bins); } return null; } @@ -234,11 +258,11 @@ export class SpecialAttribute extends Attribute { if (this.spAttribute.overrideFilter) { // this.spAttribute.attributeOption = this.attrOption; // TODO label - //const label = rangeLabel ? rangeLabel : labelFromFilterArray(filter, this); + // const label = rangeLabel ? rangeLabel : labelFromFilterArray(filter, this); const filterLabel = easyLabelFromFilterArray(filter, this.label); - const label = rangeLabel ? rangeLabel : filterLabel; - return await this.spAttribute.filter(cht, filter, label); - } //else { + const label = rangeLabel || filterLabel; + return this.spAttribute.filter(cht, filter, label); + } // else { // rows = await super.filter(cht, filter); // } @@ -253,24 +277,18 @@ export class SpecialAttribute extends Attribute { optionData: { spAttribute: this.spAttribute, attrOprtion: this.attrOption, - } + }, }; return { option, currentDB: this.database, - currentView: this.view + currentView: this.view, }; } - } - export abstract class AScoreAttribute extends Attribute { - - constructor(public readonly id: string, - public readonly view: string, - public readonly database: string, - public readonly type: AttributeType) { + constructor(public readonly id: string, public readonly view: string, public readonly database: string, public readonly type: AttributeType) { super(id, view, database, type); } @@ -290,18 +308,19 @@ function getDepletionscreen(subTypeID: string): 'Avana' | 'Drive' { * TODO: Compare with SingleDepletionScore in tdp_publicdb/src/scores/SingleScore.ts */ export class GeneScoreAttribute extends AScoreAttribute { + resolvedDataType: { dataType: IDataTypeConfig; dataSubType: IDataSubtypeConfig }; - resolvedDataType: {dataType: IDataTypeConfig; dataSubType: IDataSubtypeConfig;}; - - constructor(public readonly id: string, + constructor( + public readonly id: string, public readonly gene: string, public readonly view: string, public readonly database: string, readonly scoreType: ScoreType, - readonly scoreSubType: IDataSubtypeConfig) { + readonly scoreSubType: IDataSubtypeConfig, + ) { super(id, view, database, subType2Type(scoreSubType.type)); - this.label = gene + ': ' + scoreSubType.name; + this.label = `${gene}: ${scoreSubType.name}`; this.preferLog = this.scoreType === 'expression'; @@ -328,7 +347,7 @@ export class GeneScoreAttribute extends AScoreAttribute { table: param.table, attribute: param.attribute, ensg: param.name, - depletionscreen: getDepletionscreen(this.scoreSubType.id) + depletionscreen: getDepletionscreen(this.scoreSubType.id), }; scores = await getCohortDepletionScore(params); } else { @@ -336,7 +355,7 @@ export class GeneScoreAttribute extends AScoreAttribute { cohortId: cohortDbId, table: param.table, attribute: param.attribute, - ensg: param.name + ensg: param.name, }; scores = await getCohortGeneScore('tissue', params); } @@ -344,7 +363,7 @@ export class GeneScoreAttribute extends AScoreAttribute { // rename score property to : // BUT:Id is the same for relative copy number, tpm, etc --> we need a suffix return scores.map((score) => { - const enhancedObj = Object.assign(score, {[this.dataKey]: score.score}); + const enhancedObj = Object.assign(score, { [this.dataKey]: score.score }); delete enhancedObj.score; // remove score as it was stored at dataKey return enhancedObj; }); @@ -355,19 +374,26 @@ export class GeneScoreAttribute extends AScoreAttribute { if (Array.isArray(filter)) { // TODO label // const label = rangeLabel ? rangeLabel : filter.map((a) => labelFromFilter(a, this)).join(' / '); - const label = rangeLabel ? rangeLabel : filter.map((a) => easyLabelFromFilter(a, this.label)).join(' / '); + const label = rangeLabel || filter.map((a) => easyLabelFromFilter(a, this.label)).join(' / '); if (this.scoreType === 'depletion') { const depletionscreen = getDepletionscreen(this.scoreSubType.id); return createCohortWithDepletionScoreFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, depletionscreen, filter); - } else { - return createCohortWithGeneNumFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, filter); } - } else { - // TODO label - // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); - const label = rangeLabel ? rangeLabel : easyLabelFromFilter(filter, this.label); - return createCohortWithGeneEqualsFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, this.type === 'number' ? 'true' : 'false', filter.values); + return createCohortWithGeneNumFilter(cht, niceName(this.label), label, param.table, param.attribute, param.name, filter); } + // TODO label + // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); + const label = rangeLabel || easyLabelFromFilter(filter, this.label); + return createCohortWithGeneEqualsFilter( + cht, + niceName(this.label), + label, + param.table, + param.attribute, + param.name, + this.type === 'number' ? 'true' : 'false', + filter.values, + ); } /** @@ -379,7 +405,7 @@ export class GeneScoreAttribute extends AScoreAttribute { attribute: this.resolvedDataType.dataSubType.id, name: this.id, species: 'human', - target: niceName(this.view) + target: niceName(this.view), }; } @@ -387,9 +413,9 @@ export class GeneScoreAttribute extends AScoreAttribute { * depletion views are a bit special */ getView() { - let scoreView = this.view + '_gene_single_score'; + let scoreView = `${this.view}_gene_single_score`; if (this.scoreType === 'depletion') { - scoreView = 'depletion_' + scoreView; // necessary prefix + scoreView = `depletion_${scoreView}`; // necessary prefix } return scoreView; } @@ -405,25 +431,25 @@ export class GeneScoreAttribute extends AScoreAttribute { filters.normal.depletionscreen = depletionscreen; } else { filters = { - normal: {depletionscreen}, + normal: { depletionscreen }, lt: {}, lte: {}, gt: {}, - gte: {} + gte: {}, }; } } return filters; } - async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string, count: number}[]> { + async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]> { const param = this.getParam(); let params: ICohortDBHistScoreParms = { cohortId: dbId, attribute: param.attribute, table: param.table, - ensg: param.name + ensg: param.name, }; let type = this.type === 'number' ? HistRouteType.geneScoreNum : HistRouteType.geneScoreCat; @@ -446,39 +472,38 @@ export class GeneScoreAttribute extends AScoreAttribute { optionText: this.gene, optionData: { type: this.scoreType, - subType: this.scoreSubType - } + subType: this.scoreSubType, + }, }; return { option, currentDB: this.database, - currentView: this.view + currentView: this.view, }; } } export class PanelScoreAttribute extends AScoreAttribute { - async getData(cohortDbId: number, filters?: IAllFilters): Promise { const params: ICohortDBPanelAnnotationParams = { cohortId: cohortDbId, - panel: this.id + panel: this.id, }; const scores = await getCohortPanelAnnotation('tissue', params); // rename score property to : // BUT:Id is the same for relative copy number, tpm, etc --> we need a suffix return scores.map((score) => { - const enhancedObj = Object.assign(score, {[this.dataKey]: score.score}); + const enhancedObj = Object.assign(score, { [this.dataKey]: score.score }); delete enhancedObj.score; // remove score as it was stored at dataKey return enhancedObj; }); } - async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string, count: number}[]> { + async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]> { const params: ICohortDBHistPanelParms = { cohortId: dbId, - panel: this.id + panel: this.id, }; const type = HistRouteType.panelAnnotation; @@ -491,8 +516,8 @@ export class PanelScoreAttribute extends AScoreAttribute { } else { // TODO label // const label = rangeLabel ? rangeLabel : labelFromFilter(filter, this); - const label = rangeLabel ? rangeLabel : easyLabelFromFilter(filter, this.label); - const stringValues = (filter.values as any[]).map((item: number | string) => item.toString()); //convert potential numbers to string + const label = rangeLabel || easyLabelFromFilter(filter, this.label); + const stringValues = (filter.values as any[]).map((item: number | string) => item.toString()); // convert potential numbers to string return createCohortWithPanelAnnotationFilter(cht, niceName(this.id), label, this.id, stringValues); } } @@ -506,12 +531,11 @@ export class PanelScoreAttribute extends AScoreAttribute { return { option, currentDB: this.database, - currentView: this.view + currentView: this.view, }; } } - export function toAttribute(option: IOption, currentDB, currentView): IAttribute { if (option.optionType === 'dbc') { if (option.optionData && (option as ISpecialOption).optionData.spAttribute) { @@ -519,24 +543,33 @@ export function toAttribute(option: IOption, currentDB, currentView): IAttribute // if (option.optionData.spA === 'treatment') { log.debug('create special Attribute: ', option.optionId); log.debug('special Attribute object: ', option.optionData.spAttribute); - return new SpecialAttribute(option.optionId, currentView, currentDB, (option as ISpecialOption).optionData.spAttribute, (option as ISpecialOption).optionData.attrOption); - } else { - // Create Attribute - return new ServerColumnAttribute(option.optionId, currentView, currentDB, (option as IServerColumnOption).optionData.serverColumn); - } - } else { - // Create ScoreAttribute - if (option.optionType === 'gene') { - return new GeneScoreAttribute(option.optionId, option.optionText, currentView, currentDB, (option as IScoreOption).optionData.type, (option as IScoreOption).optionData.subType); - } else if (option.optionType === 'panel') { - return new PanelScoreAttribute(option.optionId, currentView, currentDB, 'categorical'); + return new SpecialAttribute( + option.optionId, + currentView, + currentDB, + (option as ISpecialOption).optionData.spAttribute, + (option as ISpecialOption).optionData.attrOption, + ); } + // Create Attribute + return new ServerColumnAttribute(option.optionId, currentView, currentDB, (option as IServerColumnOption).optionData.serverColumn); + } + // Create ScoreAttribute + if (option.optionType === 'gene') { + return new GeneScoreAttribute( + option.optionId, + option.optionText, + currentView, + currentDB, + (option as IScoreOption).optionData.type, + (option as IScoreOption).optionData.subType, + ); + } + if (option.optionType === 'panel') { + return new PanelScoreAttribute(option.optionId, currentView, currentDB, 'categorical'); } } - - - function subType2Type(subType: string): AttributeType { // one of number, string, cat, boxplot switch (subType) { @@ -547,18 +580,19 @@ function subType2Type(subType: string): AttributeType { return 'categorical'; case 'boxplot': default: - throw new Error('No Support for type: ' + subType); + throw new Error(`No Support for type: ${subType}`); } } - - export async function multiFilter(baseCohort: Cohort, attributes: IAttribute[], filters: Array): Promise { if (attributes.length !== filters.length) { throw new Error(`Number of filters has to match the number of attribtues`); } - return multiAttributeFilter(baseCohort, attributes.map((attr, i) => ({attr, range: filters[i]}))); + return multiAttributeFilter( + baseCohort, + attributes.map((attr, i) => ({ attr, range: filters[i] })), + ); } export async function multiAttributeFilter(baseCohort: Cohort, filters: IAttributeFilter[]): Promise { diff --git a/src/data/SpecialAttribute.ts b/src/data/SpecialAttribute.ts index 313d48a..4d6233b 100644 --- a/src/data/SpecialAttribute.ts +++ b/src/data/SpecialAttribute.ts @@ -1,12 +1,20 @@ import _ from 'lodash'; -import {IAllFilters} from 'tdp_core'; -import {Cohort, createCohortWithTreatmentFilter} from '../Cohort'; -import {getRootCohort} from '../cohortview'; -import {getCohortData, HistRouteType, ICohortDBHistDataParms, ICohortDBHistPanelParms, ICohortDBHistScoreDepletionParms, ICohortDBHistScoreParms, IEqualsList, INumRange} from '../rest'; -import {deepCopy, getSessionStorageItem, log, setSessionStorageItem} from '../util'; -import {niceName} from '../utilLabels'; -import {AttributeType, IdValuePair} from './Attribute'; - +import { IAllFilters } from 'tdp_core'; +import { Cohort, createCohortWithTreatmentFilter } from '../Cohort'; +import { getRootCohort } from '../cohortview'; +import { + getCohortData, + HistRouteType, + ICohortDBHistDataParms, + ICohortDBHistPanelParms, + ICohortDBHistScoreDepletionParms, + ICohortDBHistScoreParms, + IEqualsList, + INumRange, +} from '../rest'; +import { deepCopy, getSessionStorageItem, log, setSessionStorageItem } from '../util'; +import { niceName } from '../utilLabels'; +import { AttributeType, IdValuePair } from './Attribute'; export interface ISpecialAttribute { readonly overrideSearchBarDetails: boolean; @@ -15,7 +23,6 @@ export interface ISpecialAttribute { readonly overrideGetCount: boolean; readonly overrideFilter: boolean; - /** * id database access the data */ @@ -27,7 +34,7 @@ export interface ISpecialAttribute { /** * Possible options the attribute could be formated */ - options: {id: string, name: string}[]; + options: { id: string; name: string }[]; /** * Option that is should be used to format the data @@ -38,29 +45,41 @@ export interface ISpecialAttribute { getData(cohortDbId: number, filters?: IAllFilters): Promise; // IRow has _id but IScoreRow has not - getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string, count: number}[]>; + getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]>; - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{bin: string, count: number}[]>; + getHistWithStorage( + histType: HistRouteType, + params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, + ): Promise<{ bin: string; count: number }[]>; getCount(cohortDbId: number, filters?: IAllFilters): Promise; filter(cht: Cohort, filter: INumRange[] | IEqualsList, label: string): Promise; - } export class SATreatment implements ISpecialAttribute { readonly overrideSearchBarDetails: boolean = true; + readonly overrideGetData: boolean = true; + readonly overrideGetHist: boolean = true; + readonly overrideGetCount: boolean = true; + readonly overrideFilter: boolean = true; - static ID: string = 'treatment'; + + static ID = 'treatment'; + type = 'string' as AttributeType; + readonly id: string; - options: {id: string; name: string;}[] = []; + options: { id: string; name: string }[] = []; + private _attributeOption: string; + private _dataKey: string; + private _label: string; constructor() { @@ -72,11 +91,12 @@ export class SATreatment implements ISpecialAttribute { public get attributeOption(): string { return this._attributeOption; } + public set attributeOption(value: string) { this._attributeOption = value; - this._dataKey = this.id + ':' + this._attributeOption; - const name = this.options.filter((opt) => opt.id === this._attributeOption)[0].name; - this._label = niceName(this.id + ':' + name); + this._dataKey = `${this.id}:${this._attributeOption}`; + const { name } = this.options.filter((opt) => opt.id === this._attributeOption)[0]; + this._label = niceName(`${this.id}:${name}`); } public get dataKey(): string { @@ -94,7 +114,6 @@ export class SATreatment implements ISpecialAttribute { // } async setupOptions() { - const storageKey = `treatment#maxRegimen`; let maxRegimen: number = getSessionStorageItem(storageKey); // get histogram from session storage @@ -102,7 +121,7 @@ export class SATreatment implements ISpecialAttribute { if (maxRegimen === null || getSessionStorageItem('treatment#categoriesHist') === null || getSessionStorageItem('treatment#categoriesBaseHist') === null) { let calcMaxRegimen = 0; const rootCohort = getRootCohort(); - const rows = await getCohortData({cohortId: rootCohort.dbId, attribute: this.id}); + const rows = await getCohortData({ cohortId: rootCohort.dbId, attribute: this.id }); // const maxRegimenNumbRows = Math.max(...rows.map((r) => r.treatment).map((t) => t.REGIMEN_NUMBER)); // const maxRegimenNumb = Math.max(...maxRegimenNumbRows); @@ -119,10 +138,10 @@ export class SATreatment implements ISpecialAttribute { // define the histograms // regNumb = 0 -> all regimens - const histCategories: {regNumb: number; categories: string[]}[] = []; - const histBaseCategories: {regNumb: number; categories: string[]}[] = []; + const histCategories: { regNumb: number; categories: string[] }[] = []; + const histBaseCategories: { regNumb: number; categories: string[] }[] = []; for (let i = 0; i <= maxRegimen; i++) { - const currHist = {regNumb: i, categories: []}; + const currHist = { regNumb: i, categories: [] }; histCategories.push(currHist); histBaseCategories.push(deepCopy(currHist)); } @@ -132,37 +151,37 @@ export class SATreatment implements ISpecialAttribute { if (row.treatment) { for (let i = 1; i <= maxRegimen; i++) { const currTreatment = row.treatment; - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === i)); + const currRegimen = currTreatment.filter((tr) => tr.REGIMEN_NUMBER === i); const currAgents: string[] = currRegimen.map((t) => t.AGENT); const newBaseValue = currAgents.length === 0 ? ['null'] : deepCopy(currAgents); const newValue = currAgents.length === 0 ? 'null' : this.combineAgentsIntoString(currAgents); // combine all agents - const currHist = histCategories.filter((elem) => (elem.regNumb === i))[0]; + const currHist = histCategories.filter((elem) => elem.regNumb === i)[0]; currHist.categories.push(newValue); - const currHistBase = histBaseCategories.filter((elem) => (elem.regNumb === i))[0]; + const currHistBase = histBaseCategories.filter((elem) => elem.regNumb === i)[0]; currHistBase.categories.push(...newBaseValue); } } // if there is no treatment (=null) for a row than that means ther is also no treatment for regimen number = 1 // add for both the null categorie - histCategories.filter((elem) => (elem.regNumb === 0))[0]?.categories.push('null'); - histCategories.filter((elem) => (elem.regNumb === 1))[0]?.categories.push('null'); - histBaseCategories.filter((elem) => (elem.regNumb === 0))[0]?.categories.push('null'); - histBaseCategories.filter((elem) => (elem.regNumb === 1))[0]?.categories.push('null'); + histCategories.filter((elem) => elem.regNumb === 0)[0]?.categories.push('null'); + histCategories.filter((elem) => elem.regNumb === 1)[0]?.categories.push('null'); + histBaseCategories.filter((elem) => elem.regNumb === 0)[0]?.categories.push('null'); + histBaseCategories.filter((elem) => elem.regNumb === 1)[0]?.categories.push('null'); }); // get all regimen hists - const histAllReg = histCategories.filter((elem) => (elem.regNumb === 0))[0]; - const histBaseAllReg = histBaseCategories.filter((elem) => (elem.regNumb === 0))[0]; + const histAllReg = histCategories.filter((elem) => elem.regNumb === 0)[0]; + const histBaseAllReg = histBaseCategories.filter((elem) => elem.regNumb === 0)[0]; // remove duplicate categories and define all regimen categories for (let i = 1; i <= maxRegimen; i++) { - const currHist = histCategories.filter((elem) => (elem.regNumb === i))[0]; + const currHist = histCategories.filter((elem) => elem.regNumb === i)[0]; currHist.categories = [...new Set(currHist.categories)].sort(); histAllReg.categories.push(...currHist.categories); - const currBaseHist = histBaseCategories.filter((elem) => (elem.regNumb === i))[0]; + const currBaseHist = histBaseCategories.filter((elem) => elem.regNumb === i)[0]; currBaseHist.categories = [...new Set(currBaseHist.categories)].sort(); histBaseAllReg.categories.push(...currBaseHist.categories); } @@ -172,30 +191,28 @@ export class SATreatment implements ISpecialAttribute { setSessionStorageItem('treatment#categoriesHist', histCategories); // save retrieved histogram to session storage setSessionStorageItem('treatment#categoriesBaseHist', histBaseCategories); // save retrieved histogram to session storage - } - const opts: {id: string; name: string;}[] = []; + const opts: { id: string; name: string }[] = []; // agent combination for all regimen - opts.push({id: 'treatment:all_agents', name: 'All Regimens'}); + opts.push({ id: 'treatment:all_agents', name: 'All Regimens' }); // agent combination per regimen for (let i = 1; i <= maxRegimen; i++) { - const currOpt = {id: `treatment:rg_${i}`, name: `Regimen ${i}`}; + const currOpt = { id: `treatment:rg_${i}`, name: `Regimen ${i}` }; opts.push(currOpt); } // agent combination for all regimen - opts.push({id: 'treatment:base:all_agents', name: 'All Regimens (Base)'}); + opts.push({ id: 'treatment:base:all_agents', name: 'All Regimens (Base)' }); // base combination per regimen for (let i = 1; i <= maxRegimen; i++) { - const currOpt = {id: `treatment:base:rg_${i}`, name: `Regimen ${i} (Base)`}; + const currOpt = { id: `treatment:base:rg_${i}`, name: `Regimen ${i} (Base)` }; opts.push(currOpt); } // log.debug('Treatment Options: ', opts); this.options = opts; - } combineAgentsIntoString(agents: string[]): string { @@ -207,7 +224,7 @@ export class SATreatment implements ISpecialAttribute { } async getData(cohortDbId: number, filters?: IAllFilters): Promise { - let rows = await getCohortData({cohortId: cohortDbId, attribute: this.id}); + let rows = await getCohortData({ cohortId: cohortDbId, attribute: this.id }); // log.debug('first row: ', JSON.stringify(rows[0])); const propTn = 'tissuename'; @@ -220,18 +237,19 @@ export class SATreatment implements ISpecialAttribute { const maxRegimen = Math.max(...currTreatment.map((t) => t.REGIMEN_NUMBER)); const agents = new Set(); for (let i = 1; i <= maxRegimen; i++) { - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === i)); + const currRegimen = currTreatment.filter((tr) => tr.REGIMEN_NUMBER === i); const currAgents: string[] = currRegimen.map((t) => t.AGENT); if (this.attributeOption === 'treatment:base:all_agents') { currAgents.reduce((set, agent) => set.add(agent), agents); - } else { // = treatment:all_agents + } else { + // = treatment:all_agents const newValue = currAgents.length === 0 ? null : this.combineAgentsIntoString(currAgents); // combine all agents agents.add(newValue); // add to set to remove possible duplicates } } - newRows.push(...Array.from(agents).map((agent) => ({[propTn]: row[propTn], treatment: agent}))); + newRows.push(...Array.from(agents).map((agent) => ({ [propTn]: row[propTn], treatment: agent }))); } else { - newRows.push({[propTn]: row[propTn], treatment: null}); // no treatment for item + newRows.push({ [propTn]: row[propTn], treatment: null }); // no treatment for item } }); rows = newRows; @@ -241,7 +259,7 @@ export class SATreatment implements ISpecialAttribute { rows.forEach((row) => { if (row.treatment) { const currTreatment = row.treatment; - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === rgNumb)); + const currRegimen = currTreatment.filter((tr) => tr.REGIMEN_NUMBER === rgNumb); const currAgents: string[] = currRegimen.map((t) => t.AGENT); const newValue = currAgents.length === 0 ? null : this.combineAgentsIntoString(currAgents); row.treatment = newValue; @@ -254,14 +272,15 @@ export class SATreatment implements ISpecialAttribute { rows.forEach((row) => { if (row.treatment) { const currTreatment = row.treatment; - const currRegimen = currTreatment.filter((tr) => (tr.REGIMEN_NUMBER === rgNumb)); - let currAgents: {treatment: string}[] = currRegimen.map((t) => {return {[propTn]: row[propTn], treatment: t.AGENT};}); - currAgents = currAgents.length === 0 ? [{treatment: null}] : currAgents; + const currRegimen = currTreatment.filter((tr) => tr.REGIMEN_NUMBER === rgNumb); + let currAgents: { treatment: string }[] = currRegimen.map((t) => { + return { [propTn]: row[propTn], treatment: t.AGENT }; + }); + currAgents = currAgents.length === 0 ? [{ treatment: null }] : currAgents; newRows.push(...currAgents); } else { - newRows.push({[propTn]: row[propTn], treatment: null}); + newRows.push({ [propTn]: row[propTn], treatment: null }); } - }); rows = newRows; // log.debug('Base Agents per regimen: ', rgNumb, rows); @@ -270,26 +289,24 @@ export class SATreatment implements ISpecialAttribute { rows = []; } - // rename treatment (=id) property to <_dataKey>: has to be done to differentiate between the options // otherwise having the same attribute with different options would not work rows.map((row) => { - const treatmentObj = Object.assign(row, {[this._dataKey]: row.treatment}); + const treatmentObj = Object.assign(row, { [this._dataKey]: row.treatment }); delete treatmentObj.treatment; // remove score as it was stored at dataKey return treatmentObj; }); // log.debug('first row: ', JSON.stringify(rows.slice(0, 4))); return rows; } - async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{bin: string; count: number;}[]> { + async getHist(dbId: number, filters?: IAllFilters, bins?: number): Promise<{ bin: string; count: number }[]> { // define storagekey as cohort dbId and attribute label const storageKey = `${dbId}#${this.id}#${this.attributeOption}`; - let histData: {bin: string, count: number}[] = getSessionStorageItem(storageKey); // get histogram from session storage + let histData: { bin: string; count: number }[] = getSessionStorageItem(storageKey); // get histogram from session storage // check if histogram was saved in sesison storage if (histData === null) { - const rows = await this.getData(dbId); const valTreatement = rows.map((elem) => elem[this._dataKey]); @@ -299,7 +316,7 @@ export class SATreatment implements ISpecialAttribute { let currHistCategories = []; if (this.attributeOption.includes('treatment:base')) { // base agents plot - const categoriesBaseHist: {regNumb: number; categories: string[]}[] = getSessionStorageItem('treatment#categoriesBaseHist'); + const categoriesBaseHist: { regNumb: number; categories: string[] }[] = getSessionStorageItem('treatment#categoriesBaseHist'); if (this.attributeOption.includes('all_agents')) { // all agents currHistCategories = categoriesBaseHist.filter((elem) => elem.regNumb === 0)[0].categories; @@ -311,7 +328,7 @@ export class SATreatment implements ISpecialAttribute { } } else { // agents (combination) plot - const categoriesHist: {regNumb: number; categories: string[]}[] = getSessionStorageItem('treatment#categoriesHist'); + const categoriesHist: { regNumb: number; categories: string[] }[] = getSessionStorageItem('treatment#categoriesHist'); if (this.attributeOption.includes('all_agents')) { // all agents currHistCategories = categoriesHist.filter((elem) => elem.regNumb === 0)[0].categories; @@ -324,7 +341,9 @@ export class SATreatment implements ISpecialAttribute { } // log.debug('all categories of dataset: ', currHistCategories); - histData = currHistCategories.map((cat) => {return {bin: cat, count: 0};}); + histData = currHistCategories.map((cat) => { + return { bin: cat, count: 0 }; + }); histData.forEach((elem) => { const name = elem.bin; const count = lodashCountBy[name]; @@ -334,18 +353,22 @@ export class SATreatment implements ISpecialAttribute { setSessionStorageItem(storageKey, histData); // save retrieved histogram to session storage } - return await histData; + return histData; } - getHistWithStorage(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms): Promise<{bin: string; count: number;}[]> { + getHistWithStorage( + histType: HistRouteType, + params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, + ): Promise<{ bin: string; count: number }[]> { throw new Error('Method not implemented.'); } getCount(cohortDbId: number, filters?: IAllFilters): Promise { throw new Error('Method not implemented.'); } + filter(cht: Cohort, filter: INumRange[] | IEqualsList, label: string): Promise { - log.debug('FILTER of special attribute: ', {cht, filter}); + log.debug('FILTER of special attribute: ', { cht, filter }); const optName = this.options.filter((o) => o.id === this.attributeOption)[0].name; const baseAgent = this.attributeOption.includes('base'); @@ -355,19 +378,24 @@ export class SATreatment implements ISpecialAttribute { if (this.attributeOption.includes('all_agents')) { // with all regimens return createCohortWithTreatmentFilter(cht, niceName(`${this.id}:${optName}`), label, baseAgent, agent, null); - } else if (this.attributeOption.includes(':rg_')) { + } + if (this.attributeOption.includes(':rg_')) { // only for one regimen const rgNumb = Number(this.attributeOption.slice(-1)); return createCohortWithTreatmentFilter(cht, niceName(`${this.id}:${optName}`), label, baseAgent, agent, rgNumb); } - } } - } - -const specAttributes: {id: string; getClass: Function}[] = [{id: SATreatment.ID, getClass: (): ISpecialAttribute => {return new SATreatment();}}]; +const specAttributes: { id: string; getClass: Function }[] = [ + { + id: SATreatment.ID, + getClass: (): ISpecialAttribute => { + return new SATreatment(); + }, + }, +]; export function checkSpecialAttribute(attributeId: string): ISpecialAttribute { let specialAttribute = null; diff --git a/src/index.ts b/src/index.ts index cc925cf..59e3491 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,4 +10,3 @@ export * from './cohortview'; export * from './rest'; export * from './util'; -export * from './utils'; diff --git a/src/phovea.ts b/src/phovea.ts index 9662350..c0f565f 100644 --- a/src/phovea.ts +++ b/src/phovea.ts @@ -3,21 +3,20 @@ * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license **************************************************************************** */ -import {IRegistry} from 'tdp_core'; +import { IRegistry } from 'tdp_core'; export default function (registry: IRegistry) { - // helper functions copied from tdp_core: // ------------------------------------------------------------------------------------------------------- function actionFunction(id: string, factory: string, loader: () => any, options?: {}) { - registry.push('actionFunction', id, loader, {factory, ...options}); + registry.push('actionFunction', id, loader, { factory, ...options }); } // id: id string for comporessor action // factory: name of the compressor functtion // matches: string that defines the actions that should be compressed '([function1_id]|[function2_id])' function actionCompressor(id: string, factory: string, matches: string, loader: () => any) { - registry.push('actionCompressor', id, loader, {factory, matches}); + registry.push('actionCompressor', id, loader, { factory, matches }); } // Cohort action functions: @@ -26,11 +25,12 @@ export default function (registry: IRegistry) { /** * Set the base data-set */ - actionFunction('chtSetDataset', 'setDatasetImpl', () => import('./Provenance/General'), { //setDatasetImpl = function that acutally sets the dataset + actionFunction('chtSetDataset', 'setDatasetImpl', () => import('./Provenance/General'), { + // setDatasetImpl = function that acutally sets the dataset analytics: { category: 'data', // this one is a data operation (other options are visual, selections, layout, and analysis) - action: 'setDatasetAction' // --> function to create an action in the prov tree - } + action: 'setDatasetAction', // --> function to create an action in the prov tree + }, }); // commented out due to errors in combination with Add/Remove Cohort actions @@ -39,20 +39,22 @@ export default function (registry: IRegistry) { /** * Add Cohorts */ - actionFunction('addCohorts', 'addOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), { // + actionFunction('addCohorts', 'addOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), { + // analytics: { category: 'data', // this one is a data operation (other options are visual, selections, layout, and analysis) - action: 'addOverviewCohortAction' // --> function to create an action in the prov tree - } + action: 'addOverviewCohortAction', // --> function to create an action in the prov tree + }, }); /** * Remove Cohorts */ - actionFunction('removeCohorts', 'removeOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), { // + actionFunction('removeCohorts', 'removeOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), { + // analytics: { category: 'data', // this one is a data operation (other options are visual, selections, layout, and analysis) - action: 'removeOverviewCohortAction' // --> function to create an action in the prov tree - } + action: 'removeOverviewCohortAction', // --> function to create an action in the prov tree + }, }); } diff --git a/phovea_registry.js b/src/phovea_registry.ts similarity index 78% rename from phovea_registry.js rename to src/phovea_registry.ts index ab2588e..9a11b28 100644 --- a/phovea_registry.js +++ b/src/phovea_registry.ts @@ -4,14 +4,14 @@ * Licensed under the new BSD license, available at http://caleydo.org/license **************************************************************************** */ -import {PluginRegistry} from 'tdp_core'; -import reg from './dist/phovea'; +import { PluginRegistry } from 'tdp_core'; +import reg from './phovea'; /** * build a registry by registering all phovea modules */ -//other modules -import 'tdp_core/phovea_registry.js'; +// other modules +import 'tdp_core/dist/phovea_registry'; -//self +// self PluginRegistry.getInstance().register('coral', reg); diff --git a/src/rest.ts b/src/rest.ts index e2b1554..d186ec6 100644 --- a/src/rest.ts +++ b/src/rest.ts @@ -1,6 +1,5 @@ -import {Ajax, AppContext} from 'tdp_core'; -import {IParams, IRow} from 'tdp_core'; -import {deepCopy, log} from './util'; +import { Ajax, AppContext, IParams, IRow } from 'tdp_core'; +import { deepCopy, log } from './util'; export interface ICohortDBParams extends IParams { name: string; @@ -59,7 +58,7 @@ export enum NumRangeOperators { lt = 'lt', lte = 'lte', gt = 'gt', - gte = 'gte' + gte = 'gte', } export interface INumRange { operatorOne: NumRangeOperators; @@ -180,7 +179,7 @@ enum CohortRoutes { dataUsePanelAnnotationFilter = 'dataUsePanelAnnotationFilter', sizeUsePanelAnnotationFilter = 'sizeUsePanelAnnotationFilter', hist = 'hist', - createUseTreatmentFilter = 'createUseTreatmentFilter' + createUseTreatmentFilter = 'createUseTreatmentFilter', } interface IDataBaseToDisplay { @@ -188,27 +187,27 @@ interface IDataBaseToDisplay { name: string; } -// copy from tdp_gene/src/constants.ts +// copy from tdp_publicdb/src/constants.ts // for 'Copy Number Class' // table: copynumber, attribtue: copynumberclass const mapCopyNumberCat: IDataBaseToDisplay[] = [ - {value: 2, name: 'Amplification'}, - {value: -2, name: 'Deep Deletion'}, - //{value: -1, name: 'Heterozygous deletion'}, - {value: 0, name: 'NORMAL'}, - //{value: 1, name: 'Low level amplification'}, - //{value: 2, name: 'High level amplification'}, - {value: 'null', name: 'Unknown'}, - {value: '!null', name: '!null'} + { value: 2, name: 'Amplification' }, + { value: -2, name: 'Deep Deletion' }, + // {value: -1, name: 'Heterozygous deletion'}, + { value: 0, name: 'NORMAL' }, + // {value: 1, name: 'Low level amplification'}, + // {value: 2, name: 'High level amplification'}, + { value: 'null', name: 'Unknown' }, + { value: '!null', name: '!null' }, ]; // for 'AA Mutated' and 'DNA Mutated' // table: mutation, attribute: aa_mutated / dna_mutated const mapMutationCat: IDataBaseToDisplay[] = [ - {value: 'true', name: 'Mutated'}, - {value: 'false', name: 'Non Mutated'}, - {value: 'null', name: 'Unknown'}, - {value: '!null', name: '!null'} + { value: 'true', name: 'Mutated' }, + { value: 'false', name: 'Non Mutated' }, + { value: 'null', name: 'Unknown' }, + { value: '!null', name: '!null' }, ]; /** @@ -229,12 +228,16 @@ enum DataMappingDirection { } // maps the database value to a display name -function mapDataBaseValueToDisplayName(mapObject: IDataBaseToDisplay[], valueLabel: string, values: {id: string | number, score: string | number}[]): {id: string | number, score: string | number}[] { +function mapDataBaseValueToDisplayName( + mapObject: IDataBaseToDisplay[], + valueLabel: string, + values: { id: string | number; score: string | number }[], +): { id: string | number; score: string | number }[] { for (const v of values) { - const vStr = v['' + valueLabel] === null ? 'null' : v['' + valueLabel].toString(); // convert values into string + const vStr = v[`${valueLabel}`] === null ? 'null' : v[`${valueLabel}`].toString(); // convert values into string const currVauleMap = mapObject.filter((a) => vStr === a.value.toString()); // get map object const currDisplay = currVauleMap[0].name; // get display name of map object - v['' + valueLabel] = currDisplay; // set the score value to the display name + v[`${valueLabel}`] = currDisplay; // set the score value to the display name } return values; } @@ -251,7 +254,7 @@ function mapDisplayNameToDataBaseValue(mapObject: IDataBaseToDisplay[], values: } // add the data mapping to the different attributes -function addDataValueMapping(table: string, attribute: string, values: any[], direction: DataMappingDirection, databaseValueLabel: string = 'score') { +function addDataValueMapping(table: string, attribute: string, values: any[], direction: DataMappingDirection, databaseValueLabel = 'score') { if (table === 'mutation' || table === 'copynumber') { if (attribute === 'aa_mutated' || attribute === 'dna_mutated') { log.debug('map either "AA_Mutated" or "DNA_Muatated" values: ', attribute); @@ -286,14 +289,14 @@ function addDataValueMapping(table: string, attribute: string, values: any[], di // const SCORE_ROUTES = 'geneScore' | 'celllineDepletionScore' | 'panelAnnotation'; // const HIST = 'hist' -function getCohortDataImpl(route: CohortRoutes, params: IParams = {}, assignIds: boolean = false) { +function getCohortDataImpl(route: CohortRoutes, params: IParams = {}, assignIds = false) { if (assignIds) { params._assignids = true; // assign globally ids on the server side } const url = `/cohortdb/db/${route}`; const encoded = Ajax.encodeParams(params); - if (encoded && (url.length + encoded.length > Ajax.MAX_URL_LENGTH)) { + if (encoded && url.length + encoded.length > Ajax.MAX_URL_LENGTH) { // use post instead return AppContext.getInstance().sendAPI(url, params, 'POST'); } @@ -301,7 +304,7 @@ function getCohortDataImpl(route: CohortRoutes, params: IParams = {}, assignIds: } // const CREATION_ROUTES = 'create' | 'createUseEqulasFilter' | 'createUseNumFilter' | 'createUseGeneNumFilter' | 'createUseDepletionScoreFilter' | 'createUsePanelAnnotationFilter'; -export function createDBCohort(params: ICohortDBParams, assignIds: boolean = false): Promise { +export function createDBCohort(params: ICohortDBParams, assignIds = false): Promise { return getCohortDataImpl(CohortRoutes.create, params, assignIds); } @@ -309,7 +312,7 @@ function convertEqualValues(values: Array | Array): string { return values.join(valueListDelimiter); } -export function createDBCohortWithEqualsFilter(params: ICohortDBWithEqualsFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithEqualsFilter(params: ICohortDBWithEqualsFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; newParams.values = convertEqualValues(params.values); return getCohortDataImpl(CohortRoutes.createUseEqulasFilter, newParams, assignIds); @@ -320,39 +323,38 @@ function convertNumRanges(ranges: INumRange[]): string { for (const r of ranges) { let limits = `${r.operatorOne}_${r.valueOne}`; if (r.operatorTwo && r.valueTwo) { - limits = limits + `%${r.operatorTwo}_${r.valueTwo}`; + limits += `%${r.operatorTwo}_${r.valueTwo}`; } - rangeString = rangeString + limits + ';'; + rangeString = `${rangeString + limits};`; } rangeString = rangeString.slice(0, -1); // remove the last ; return rangeString; } -export function createDBCohortWithNumFilter(params: ICohortDBWithNumFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithNumFilter(params: ICohortDBWithNumFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, name: params.name, attribute: params.attribute, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; return getCohortDataImpl(CohortRoutes.createUseNumFilter, newParams, assignIds); } - -export function createDBCohortWithGeneNumFilter(params: ICohortDBWithGeneNumFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithGeneNumFilter(params: ICohortDBWithGeneNumFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, name: params.name, table: params.table, attribute: params.attribute, ensg: params.ensg, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; return getCohortDataImpl(CohortRoutes.createUseGeneNumFilter, newParams, assignIds); } -export function createDBCohortWithGeneEqualsFilter(params: ICohortDBWithGeneEqualsFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithGeneEqualsFilter(params: ICohortDBWithGeneEqualsFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; let newValues = [].concat(newParams.values); // add data value mapping @@ -361,7 +363,7 @@ export function createDBCohortWithGeneEqualsFilter(params: ICohortDBWithGeneEqua return getCohortDataImpl(CohortRoutes.createUseGeneEqualsFilter, newParams, assignIds); } -export function createDBCohortWithDepletionScoreFilter(params: ICohortDBWithDepletionScoreFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithDepletionScoreFilter(params: ICohortDBWithDepletionScoreFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, name: params.name, @@ -369,18 +371,18 @@ export function createDBCohortWithDepletionScoreFilter(params: ICohortDBWithDepl attribute: params.attribute, ensg: params.ensg, depletionscreen: params.depletionscreen, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; return getCohortDataImpl(CohortRoutes.createUseDepletionScoreFilter, newParams, assignIds); } -export function createDBCohortWithPanelAnnotationFilter(params: ICohortDBWithPanelAnnotationFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithPanelAnnotationFilter(params: ICohortDBWithPanelAnnotationFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; newParams.values = convertEqualValues(params.values); return getCohortDataImpl(CohortRoutes.createUsePanelAnnotationFilter, newParams, assignIds); } -export function createDBCohortWithTreatmentFilter(params: ICohortDBWithTreatmentFilterParams, assignIds: boolean = false): Promise { +export function createDBCohortWithTreatmentFilter(params: ICohortDBWithTreatmentFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; if (newParams.agent === null) { delete newParams.agent; @@ -394,16 +396,15 @@ export function createDBCohortWithTreatmentFilter(params: ICohortDBWithTreatment return getCohortDataImpl(CohortRoutes.createUseTreatmentFilter, newParams, assignIds); } - // const ENTITY_ROUTES = 'size' | 'cohortData'; /** * returns the data a cohort represents */ -export function getCohortData(params: ICohortDBDataParams, assignIds: boolean = false): Promise { +export function getCohortData(params: ICohortDBDataParams, assignIds = false): Promise { return getCohortDataImpl(CohortRoutes.cohortData, params, assignIds); } -export async function getCohortSize(params: ICohortDBSizeParams, assignIds: boolean = false): Promise { +export async function getCohortSize(params: ICohortDBSizeParams, assignIds = false): Promise { const sizeResp = await getCohortDataImpl(CohortRoutes.size, params, assignIds); return Promise.resolve(Number(sizeResp[0].size)); } @@ -411,7 +412,7 @@ export async function getCohortSize(params: ICohortDBSizeParams, assignIds: bool /** * returns the saved cohort tuples in the DB */ -export function getDBCohortData(params: ICohortDBCohortDataParams, assignIds: boolean = false): Promise { +export function getDBCohortData(params: ICohortDBCohortDataParams, assignIds = false): Promise { const cohortIdsString = params.cohortIds.join(valueListDelimiter); delete params.cohortIds; const newParams = deepCopy(params) as IParams; @@ -423,12 +424,12 @@ export function getDBCohortData(params: ICohortDBCohortDataParams, assignIds: bo * updates the name of the cohort in the DB * @returns the updated cohort data from the DB */ -export function updateCohortName(params: ICohortDBUpdateName, assignIds: boolean = false): Promise { +export function updateCohortName(params: ICohortDBUpdateName, assignIds = false): Promise { return getCohortDataImpl(CohortRoutes.updateCohortName, params, assignIds); } // const CLONE_FILTER_ENTITY_ROUTES = 'sizeUseEqulasFilter' | 'dataUseEqulasFilter' | 'sizeUseNumFilter' | 'dataUseNumFilter'; -export async function sizeDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, assignIds: boolean = false): Promise { +export async function sizeDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, assignIds = false): Promise { const valueString = convertEqualValues(params.values); delete params.values; const newParams = deepCopy(params) as IParams; @@ -437,7 +438,7 @@ export async function sizeDBCohortWithEqualsFilter(params: ICohortEqualsFilterPa return Promise.resolve(Number(sizeResp[0].size)); } -export function dataDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, assignIds: boolean = false): Promise { +export function dataDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, assignIds = false): Promise { const valueString = convertEqualValues(params.values); delete params.values; const newParams = deepCopy(params) as IParams; @@ -445,51 +446,50 @@ export function dataDBCohortWithEqualsFilter(params: ICohortEqualsFilterParams, return getCohortDataImpl(CohortRoutes.dataUseEqulasFilter, newParams, assignIds); } -export async function sizeDBCohortWithNumFilter(params: ICohortNumFilterParams, assignIds: boolean = false): Promise { +export async function sizeDBCohortWithNumFilter(params: ICohortNumFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, attribute: params.attribute, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseNumFilter, newParams, assignIds); return Promise.resolve(Number(sizeResp[0].size)); } -export function dataDBCohortWithNumFilter(params: ICohortNumFilterParams, assignIds: boolean = false): Promise { +export function dataDBCohortWithNumFilter(params: ICohortNumFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, attribute: params.attribute, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; return getCohortDataImpl(CohortRoutes.dataUseNumFilter, newParams, assignIds); } - // const CLONE_FILTER_SCORE_ROUTES = 'sizeUseGeneNumFilter' | 'dataUseGeneNumFilter' | 'sizeUseGeneEqualsFilter' | 'dataUseGeneEqualsFilter' | 'sizeUseDepletionScoreFilter' | 'dataUseDepletionScoreFilter' | 'sizeUsePanelAnnotationFilter' | 'dataUsePanelAnnotationFilter'; -export async function sizeDBCohortGeneWithNumFilter(params: ICohortGeneNumFilterParams, assignIds: boolean = false): Promise { +export async function sizeDBCohortGeneWithNumFilter(params: ICohortGeneNumFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, table: params.table, attribute: params.attribute, ensg: params.ensg, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseGeneNumFilter, newParams, assignIds); return Promise.resolve(Number(sizeResp[0].size)); } -export function dataDBCohortGeneWithNumFilter(params: ICohortGeneNumFilterParams, assignIds: boolean = false): Promise { +export function dataDBCohortGeneWithNumFilter(params: ICohortGeneNumFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, table: params.table, attribute: params.attribute, ensg: params.ensg, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; return getCohortDataImpl(CohortRoutes.dataUseGeneNumFilter, newParams, assignIds); } -export async function sizeDBCohortGeneWithEqualsFilter(params: ICohortGeneEqualsFilterParams, assignIds: boolean = false): Promise { +export async function sizeDBCohortGeneWithEqualsFilter(params: ICohortGeneEqualsFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; newParams.values = convertEqualValues(params.values); @@ -497,73 +497,74 @@ export async function sizeDBCohortGeneWithEqualsFilter(params: ICohortGeneEquals return Promise.resolve(Number(sizeResp[0].size)); } -export function dataDBCohortGeneWithEqualsFilter(params: ICohortGeneEqualsFilterParams, assignIds: boolean = false): Promise { +export function dataDBCohortGeneWithEqualsFilter(params: ICohortGeneEqualsFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; newParams.values = convertEqualValues(params.values); return getCohortDataImpl(CohortRoutes.dataUseGeneEqualsFilter, newParams, assignIds); } -export async function sizeDBCohortDepletionScoreFilter(params: ICohortDepletionScoreFilterParams, assignIds: boolean = false): Promise { +export async function sizeDBCohortDepletionScoreFilter(params: ICohortDepletionScoreFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, table: params.table, attribute: params.attribute, ensg: params.ensg, depletionscreen: params.depletionscreen, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUseDepletionScoreFilter, newParams, assignIds); return Promise.resolve(Number(sizeResp[0].size)); } -export function dataDBCohortDepletionScoreFilter(params: ICohortDepletionScoreFilterParams, assignIds: boolean = false): Promise { +export function dataDBCohortDepletionScoreFilter(params: ICohortDepletionScoreFilterParams, assignIds = false): Promise { const newParams: IParams = { cohortId: params.cohortId, table: params.table, attribute: params.attribute, ensg: params.ensg, depletionscreen: params.depletionscreen, - ranges: convertNumRanges(params.ranges) + ranges: convertNumRanges(params.ranges), }; return getCohortDataImpl(CohortRoutes.dataUseDepletionScoreFilter, newParams, assignIds); } -export async function sizeDBCohortPanelAnnotationFilter(params: ICohortPanelAnnotationFilterParams, assignIds: boolean = false): Promise { +export async function sizeDBCohortPanelAnnotationFilter(params: ICohortPanelAnnotationFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; newParams.values = convertEqualValues(params.values); const sizeResp = await getCohortDataImpl(CohortRoutes.sizeUsePanelAnnotationFilter, newParams, assignIds); return Promise.resolve(Number(sizeResp[0].size)); } -export function dataDBCohortPanelAnnotationFilter(params: ICohortPanelAnnotationFilterParams, assignIds: boolean = false): Promise { +export function dataDBCohortPanelAnnotationFilter(params: ICohortPanelAnnotationFilterParams, assignIds = false): Promise { const newParams = deepCopy(params) as IParams; newParams.values = convertEqualValues(params.values); return getCohortDataImpl(CohortRoutes.dataUsePanelAnnotationFilter, newParams, assignIds); } - // const SCORE_ROUTES = 'geneScore' | 'celllineDepletionScore' | 'panelAnnotation'; -export async function getCohortGeneScore(idType: 'tissue' | 'cellline' | 'more', params: ICohortDBGeneScoreParams, assignIds: boolean = false): Promise { +export async function getCohortGeneScore(idType: 'tissue' | 'cellline' | 'more', params: ICohortDBGeneScoreParams, assignIds = false): Promise { if (idType === 'tissue' || idType === 'cellline') { let values = await getCohortDataImpl(CohortRoutes.geneScore, params, assignIds); // add data value mapping values = addDataValueMapping(params.table, params.attribute, values, DataMappingDirection.DB2Display); return values; - } else { - return null; } + return null; } -export function getCohortDepletionScore(params: ICohortDBDepletionScoreParams, assignIds: boolean = false): Promise { +export function getCohortDepletionScore(params: ICohortDBDepletionScoreParams, assignIds = false): Promise { return getCohortDataImpl(CohortRoutes.celllineDepletionScore, params, assignIds); } -export function getCohortPanelAnnotation(idType: 'tissue' | 'cellline' | 'gene' | 'more', params: ICohortDBPanelAnnotationParams, assignIds: boolean = false): Promise { +export function getCohortPanelAnnotation( + idType: 'tissue' | 'cellline' | 'gene' | 'more', + params: ICohortDBPanelAnnotationParams, + assignIds = false, +): Promise { if (idType === 'tissue' || idType === 'cellline' || idType === 'gene') { return getCohortDataImpl(CohortRoutes.panelAnnotation, params, assignIds); - } else { - return null; } + return null; } export enum HistRouteType { @@ -572,10 +573,9 @@ export enum HistRouteType { geneScoreCat = 'geneScoreCat', geneScoreNum = 'geneScoreNum', depletionScore = 'depletionScore', - panelAnnotation = 'panelAnnotation' + panelAnnotation = 'panelAnnotation', } - export interface ICohortDBHistDataParms extends IParams { cohortId: number; attribute: string; @@ -604,12 +604,22 @@ export interface ICohortDBHistPanelParms extends IParams { } // const HIST = 'hist' -export async function getCohortHist(histType: HistRouteType, params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, assignIds: boolean = false): Promise<{bin: string, count: number}[]> { +export async function getCohortHist( + histType: HistRouteType, + params: ICohortDBHistDataParms | ICohortDBHistScoreParms | ICohortDBHistScoreDepletionParms | ICohortDBHistPanelParms, + assignIds = false, +): Promise<{ bin: string; count: number }[]> { params.type = histType; let bins = await getCohortDataImpl(CohortRoutes.hist, params, assignIds); if (params.type === HistRouteType.geneScoreCat || params.type === HistRouteType.geneScoreNum) { // add data value mapping - bins = addDataValueMapping((params as ICohortDBHistScoreParms).table, (params as ICohortDBHistScoreParms).attribute, bins, DataMappingDirection.DB2Display, 'bin'); + bins = addDataValueMapping( + (params as ICohortDBHistScoreParms).table, + (params as ICohortDBHistScoreParms).attribute, + bins, + DataMappingDirection.DB2Display, + 'bin', + ); } return bins; } diff --git a/src/scss/components/_overview.scss b/src/scss/components/_overview.scss index 7675fd2..6190850 100644 --- a/src/scss/components/_overview.scss +++ b/src/scss/components/_overview.scss @@ -220,13 +220,13 @@ &::before{ - font-family: 'Font Awesome 5 Free'; + font-family: 'Font Awesome 6 Free'; content: '\f191'; font-size: 20px; } &.close-detail::before{ - font-family: 'Font Awesome 5 Free'; + font-family: 'Font Awesome 6 Free'; content: '\f152'; font-size: 20px; } diff --git a/src/scss/components/task/_filter.scss b/src/scss/components/task/_filter.scss index 4d43fa8..b9b1e99 100644 --- a/src/scss/components/task/_filter.scss +++ b/src/scss/components/task/_filter.scss @@ -1,5 +1,5 @@ @mixin right-caret { - font-family: "Font Awesome 5 Free"; + font-family: "Font Awesome 6 Free"; font-weight: 900; //only solid version of icon is free content: "\f0da\00a0"; } diff --git a/src/scss/components/task/_taskRectangle.scss b/src/scss/components/task/_taskRectangle.scss index 58ee332..d5aa3bd 100644 --- a/src/scss/components/task/_taskRectangle.scss +++ b/src/scss/components/task/_taskRectangle.scss @@ -19,7 +19,7 @@ div.rectTask { background-repeat: no-repeat; background-position: center; font-size: 25px; - font-family: 'Font Awesome 5 Free'; + font-family: 'Font Awesome 6 Free'; } .remove-task { diff --git a/src/util.ts b/src/util.ts index 0f2593a..d91529f 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,9 +1,9 @@ import {select, Selection} from 'd3v7'; import * as logger from 'loglevel'; -import {NotificationHandler} from 'tdp_core'; -import {ICohort} from './CohortInterfaces'; -import {IAttribute} from './data/Attribute'; -import {IEqualsList, INumRange} from './rest'; +import { NotificationHandler } from 'tdp_core'; +import { ICohort } from './CohortInterfaces'; +import { IAttribute } from './data/Attribute'; +import { IEqualsList, INumRange } from './rest'; logger.setDefaultLevel(logger.levels.INFO); export const log = logger; @@ -27,11 +27,13 @@ export const deepCopy = (target: T): T => { } if (target instanceof Array) { const cp = [] as any[]; - (target as any[]).forEach((v) => {cp.push(v);}); + (target as any[]).forEach((v) => { + cp.push(v); + }); return cp.map((n: any) => deepCopy(n)) as any; } if (typeof target === 'object' && target !== {}) { - const cp = {...(target as {[key: string]: any})} as {[key: string]: any}; + const cp = { ...(target as { [key: string]: any }) } as { [key: string]: any }; Object.keys(cp).forEach((k) => { cp[k] = deepCopy(cp[k]); }); @@ -40,7 +42,6 @@ export const deepCopy = (target: T): T => { return target; }; - export function handleDataLoadError(e): void { let msg = 'Data could not be loaded.'; if (e instanceof Error && e.message.toUpperCase() === 'UNAUTHORIZED') { @@ -59,9 +60,9 @@ export function handleDataSaveError(e): void { NotificationHandler.pushNotification('error', msg, 4000); } - export class ScrollLinker { isSyncingScrollA: boolean; + isSyncingScrollB: boolean; constructor(private divA: HTMLDivElement, private divB: HTMLDivElement, private enabled = true) { @@ -109,7 +110,7 @@ export class ScrollLinker { export function removeFromArray(array: Array, toRemove: T): boolean { const index = array.indexOf(toRemove); if (index > -1) { - array.splice(index, 1); //remove one element at + array.splice(index, 1); // remove one element at return true; } @@ -131,14 +132,12 @@ export function pushUnique(array: Array, toPush: T): boolean { return false; } - - export enum SortType { Default = 'default', Alpha_AZ = 'alpha_az', Alpha_ZA = 'alpha_za', Size_19 = 'size_19', - Size_91 = 'size_91' + Size_91 = 'size_91', } export interface IFilterDesc { @@ -169,27 +168,52 @@ export function getAnimatedLoadingBars(): HTMLDivElement { const numBars = 5; for (let i = 0; i < numBars; i++) { const spanBar = document.createElement('div'); - spanBar.style.setProperty('--n', '' + i); + spanBar.style.setProperty('--n', `${i}`); loadingContainer.appendChild(spanBar); } return loadingContainer; } - const category20 = [ - //Based on Category20: https://vega.github.io/vega/docs/schemes/#category20 - //Saturated - '#1f77b4', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', - //unsaturated - '#aec7e8', '#98df8a', '#ff9896', '#c5b0d5', '#c49c94', '#f7b6d2', '#c7c7c7', '#dbdb8d', + // Based on Category20: https://vega.github.io/vega/docs/schemes/#category20 + // Saturated + '#1f77b4', + '#2ca02c', + '#d62728', + '#9467bd', + '#8c564b', + '#e377c2', + '#7f7f7f', + '#bcbd22', + // unsaturated + '#aec7e8', + '#98df8a', + '#ff9896', + '#c5b0d5', + '#c49c94', + '#f7b6d2', + '#c7c7c7', + '#dbdb8d', ]; const tableau20 = [ - //Based on Tableau20: https://vega.github.io/vega/docs/schemes/#tableau20 - //Saturated - '#4c78a8', '#54a24b', '#e45756', '#79706e', '#d67195', '#b279a2', '#9e765f', - //unsaturated - '#9ecae9', '#88d27a', '#ff9d98', '#bab0ac', '#fcbfd2', '#d6a5c9', '#d8b5a5' + // Based on Tableau20: https://vega.github.io/vega/docs/schemes/#tableau20 + // Saturated + '#4c78a8', + '#54a24b', + '#e45756', + '#79706e', + '#d67195', + '#b279a2', + '#9e765f', + // unsaturated + '#9ecae9', + '#88d27a', + '#ff9d98', + '#bab0ac', + '#fcbfd2', + '#d6a5c9', + '#d8b5a5', ]; const pastel1 = [ @@ -211,7 +235,7 @@ const pastel2 = [ '#fdcdac' /* p2:orange */, '#cbd5e8' /* p2:blue */, '#f4cae4' /* p2:pink */, - '#e6f5c9' /* p2:light green*/, + '#e6f5c9' /* p2:light green */, '#fff2ae' /* p2:yellow */, '#f1e2cc' /* p2:brown */, '#cccccc' /* p2:grey */, @@ -250,14 +274,21 @@ const set3 = [ const combination = [ // combination of different set: set3, tableau20, pastel1 & 2 - '#80b1d3' /* set3:blue */, '#fb8072' /* set3:red */, - '#b3de69' /* set3:green */, '#bc80bd' /* set3:lila */, '#ffed6f' /* set3:yellow */, '#fcbfd2' /* t20:light pink */, '#d8b5a5' /* t20: light brown */, - '#e6f5c9' /* p2:light green*/, '#decbe4' /* p1:lila */, '#ffffb3' /* set3:light yellow */, '#fddaec' /* p1:pink */, '#f1e2cc' /* p2:brown */, + '#80b1d3' /* set3:blue */, + '#fb8072' /* set3:red */, + '#b3de69' /* set3:green */, + '#bc80bd' /* set3:lila */, + '#ffed6f' /* set3:yellow */, + '#fcbfd2' /* t20:light pink */, + '#d8b5a5' /* t20: light brown */, + '#e6f5c9' /* p2:light green */, + '#decbe4' /* p1:lila */, + '#ffffb3' /* set3:light yellow */, + '#fddaec' /* p1:pink */, + '#f1e2cc' /* p2:brown */, ]; - export class CohortColorSchema { - static readonly COLOR_SCHEME = set3; static get(index: number): string { @@ -284,15 +315,14 @@ export function selectLast(d3Elem: Selection= lower && value <= upper; } export function hasCookie(cookieID) { - return document.cookie.split(';') - .some((item) => item.trim().startsWith(`${cookieID}=`)); + return document.cookie.split(';').some((item) => item.trim().startsWith(`${cookieID}=`)); } export function createHTMLElementWithClasses(htmlElem: string, classes: string[]): HTMLElement { @@ -302,7 +332,6 @@ export function createHTMLElementWithClasses(htmlElem: string, classes: string[] } export class DebugTools { - /** * lets the execution pause for the given amount of milliseconds. * Use with await keyword. diff --git a/src/utilCustomEvents.ts b/src/utilCustomEvents.ts index c8eb7bd..3a29d3d 100644 --- a/src/utilCustomEvents.ts +++ b/src/utilCustomEvents.ts @@ -1,111 +1,94 @@ -import {Cohort} from './Cohort'; -import {ITaskParams} from './CohortInterfaces'; -import {IAttribute} from './data/Attribute'; -import {Task} from './Tasks'; -import {AColumn} from './Taskview/columns/AColumn'; -import {IFilterDesc, SortType} from './util'; +import { Cohort } from './Cohort'; +import { ITaskParams } from './CohortInterfaces'; +import { IAttribute } from './data/Attribute'; +import { Task } from './Tasks'; +import { AColumn } from './Taskview/columns/AColumn'; +import { IFilterDesc, SortType } from './util'; export const COHORT_REMOVE_EVENT_TYPE = 'cht:remove'; -export class CohortRemoveEvent extends CustomEvent<{cohort: Cohort}> { - +export class CohortRemoveEvent extends CustomEvent<{ cohort: Cohort }> { constructor(cohort: Cohort) { - super(COHORT_REMOVE_EVENT_TYPE, {detail: {cohort}, bubbles: true}); + super(COHORT_REMOVE_EVENT_TYPE, { detail: { cohort }, bubbles: true }); } } export const TASK_REMOVE_EVENT_TYPE = 'task:remove'; -export class TaskRemoveEvent extends CustomEvent<{task: Task}> { - +export class TaskRemoveEvent extends CustomEvent<{ task: Task }> { constructor(task: Task) { - super(TASK_REMOVE_EVENT_TYPE, {detail: {task}, bubbles: true}); + super(TASK_REMOVE_EVENT_TYPE, { detail: { task }, bubbles: true }); } } export const COHORT_SELECTION_EVENT_TYPE = 'cht:select'; -export class CohortSelectionEvent extends CustomEvent<{cohort: Cohort, replaceSelection: boolean}> { - +export class CohortSelectionEvent extends CustomEvent<{ cohort: Cohort; replaceSelection: boolean }> { constructor(cohort: Cohort, replaceSelection = false) { - super(COHORT_SELECTION_EVENT_TYPE, {detail: {cohort, replaceSelection}, bubbles: true}); + super(COHORT_SELECTION_EVENT_TYPE, { detail: { cohort, replaceSelection }, bubbles: true }); } } - export const COLUMN_CLOSE_EVENT_TYPE = 'cht:column:close'; -export class ColumnCloseEvent extends CustomEvent<{column: AColumn}> { - +export class ColumnCloseEvent extends CustomEvent<{ column: AColumn }> { constructor(column: AColumn) { - super(COLUMN_CLOSE_EVENT_TYPE, {detail: {column}, bubbles: true}); + super(COLUMN_CLOSE_EVENT_TYPE, { detail: { column }, bubbles: true }); } } export const COLUMN_SORT_EVENT_TYPE = 'cht:column:sort'; -export class ColumnSortEvent extends CustomEvent<{type: SortType, sortInputChts: boolean}> { - +export class ColumnSortEvent extends CustomEvent<{ type: SortType; sortInputChts: boolean }> { constructor(type: SortType, sortInputChts: boolean) { - super(COLUMN_SORT_EVENT_TYPE, {detail: {type, sortInputChts}, bubbles: true}); + super(COLUMN_SORT_EVENT_TYPE, { detail: { type, sortInputChts }, bubbles: true }); } } - export const CREATE_OUTPUT_COHORT_EVENT_TYPE = 'cht:create:output'; -export class CreateOutputCohortEvent extends CustomEvent<{cohort: Cohort, origin?: Cohort}> { - +export class CreateOutputCohortEvent extends CustomEvent<{ cohort: Cohort; origin?: Cohort }> { constructor(cohort: Cohort, originCohort?: Cohort) { - super(CREATE_OUTPUT_COHORT_EVENT_TYPE, {detail: {cohort, origin: originCohort}, bubbles: true}); + super(CREATE_OUTPUT_COHORT_EVENT_TYPE, { detail: { cohort, origin: originCohort }, bubbles: true }); } } - export const FILTER_EVENT_TYPE = 'cht:filter'; -export class FilterEvent extends CustomEvent<{desc: IFilterDesc[]}> { - +export class FilterEvent extends CustomEvent<{ desc: IFilterDesc[] }> { constructor(desc: IFilterDesc[]) { // Its actually the same as the SplitEvent // while note checked, // * the splitevent can contain the same cohort multiple times, e.g., twice when splitting into male and female, // * the filterevent should contain each cohort once, the filter inside the filterdesc describes what should be kept. - super(FILTER_EVENT_TYPE, {detail: {desc}, bubbles: true}); + super(FILTER_EVENT_TYPE, { detail: { desc }, bubbles: true }); } } export const SPLIT_EVENT_TYPE = 'cht:split'; -export class SplitEvent extends CustomEvent<{desc: IFilterDesc[]}> { - +export class SplitEvent extends CustomEvent<{ desc: IFilterDesc[] }> { constructor(desc: IFilterDesc[]) { - super(SPLIT_EVENT_TYPE, {detail: {desc}, bubbles: true}); + super(SPLIT_EVENT_TYPE, { detail: { desc }, bubbles: true }); } } - export const CONFIRM_OUTPUT_EVENT_TYPE = 'cht:output:confirm'; -export class ConfirmOutputEvent extends CustomEvent<{cohorts: Cohort[]}> { - +export class ConfirmOutputEvent extends CustomEvent<{ cohorts: Cohort[] }> { constructor(cohorts: Cohort[]) { - super(CONFIRM_OUTPUT_EVENT_TYPE, {detail: {cohorts}, bubbles: true}); + super(CONFIRM_OUTPUT_EVENT_TYPE, { detail: { cohorts }, bubbles: true }); } } - export const CONFIRM_TASK_EVENT_TYPE = 'cht:task:confirm'; -export class ConfirmTaskEvent extends CustomEvent<{params: ITaskParams[], attributes: IAttribute[]}> { - +export class ConfirmTaskEvent extends CustomEvent<{ params: ITaskParams[]; attributes: IAttribute[] }> { constructor(params: ITaskParams[], attributes: IAttribute[]) { - super(CONFIRM_TASK_EVENT_TYPE, {detail: {params, attributes}, bubbles: true}); + super(CONFIRM_TASK_EVENT_TYPE, { detail: { params, attributes }, bubbles: true }); } } export const OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE = 'cht:ov:preview:change'; -export class PreviewChangeEvent extends CustomEvent<{params: ITaskParams[], attributes: IAttribute[]}> { - +export class PreviewChangeEvent extends CustomEvent<{ params: ITaskParams[]; attributes: IAttribute[] }> { constructor(params: ITaskParams[], attributes: IAttribute[]) { - super(OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, {detail: {params, attributes}, bubbles: true}); + super(OVERVIEW_PREVIEW_CHANGE_EVENT_TYPE, { detail: { params, attributes }, bubbles: true }); } } export const OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE = 'cht:ov:preview:confirm'; -export class PreviewConfirmEvent extends CustomEvent<{params: ITaskParams[], attributes: IAttribute[]}> { - +export class PreviewConfirmEvent extends CustomEvent<{ params: ITaskParams[]; attributes: IAttribute[] }> { constructor(params: ITaskParams[], attributes: IAttribute[]) { - super(OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, {detail: {params, attributes}, bubbles: true}); + super(OVERVIEW_PREVIEW_CONFIRM_EVENT_TYPE, { detail: { params, attributes }, bubbles: true }); } } diff --git a/src/utilIdTypes.ts b/src/utilIdTypes.ts index bb2661e..069cfc8 100644 --- a/src/utilIdTypes.ts +++ b/src/utilIdTypes.ts @@ -1,5 +1,5 @@ -import {cellline, tissue} from 'tdp_publicdb'; -import {Cohort} from './Cohort'; +import { cellline, tissue } from 'tdp_publicdb'; +import { Cohort } from './Cohort'; export interface IEntitySourceConfig { idType: string; @@ -23,7 +23,7 @@ export const idTissue: IEntitySourceConfig = { viewName: tissue.tableName, tableName: 'tdp_tissue', entityName: tissue.entityName, - base: tissue.base + base: tissue.base, }; // cellline @@ -36,7 +36,7 @@ export const idCellline: IEntitySourceConfig = { viewName: cellline.tableName, tableName: 'tdp_cellline', entityName: cellline.entityName, - base: cellline.base + base: cellline.base, }; // student @@ -49,7 +49,7 @@ export const idStudent: IEntitySourceConfig = { viewName: 'studentdb_view', tableName: 'student_view_anonym', entityName: 'id', - base: 'student' + base: 'student', }; // corona / covid19 @@ -62,21 +62,24 @@ export const idCovid19: IEntitySourceConfig = { viewName: 'korea_view', tableName: 'korea', entityName: 'id', - base: 'covid19' + base: 'covid19', }; - export function getIdTypeFromCohort(cht: Cohort): IEntitySourceConfig { const entitiyTable = cht.table; if (entitiyTable === 'tdp_tissue') { return idTissue; - } else if (entitiyTable === 'tdp_tissue_2') { + } + if (entitiyTable === 'tdp_tissue_2') { return idTissue; - } else if (entitiyTable === 'tdp_cellline') { + } + if (entitiyTable === 'tdp_cellline') { return idCellline; - } else if (entitiyTable === 'student_view_anonym') { + } + if (entitiyTable === 'student_view_anonym') { return idStudent; - } else if (entitiyTable === 'korea') { + } + if (entitiyTable === 'korea') { return idCovid19; } diff --git a/src/utilLabels.ts b/src/utilLabels.ts index 52d573c..85229d2 100644 --- a/src/utilLabels.ts +++ b/src/utilLabels.ts @@ -2,7 +2,10 @@ import {format} from 'd3v7'; import {IEqualsList, INumRange, isEqualsList, isNumRangeFilter, NumRangeOperators} from './rest'; export function niceName(label: string): string { - return label.split('_').map((l) => l[0].toUpperCase() + l.slice(1)).join(' '); + return label + .split('_') + .map((l) => l[0].toUpperCase() + l.slice(1)) + .join(' '); } export function easyLabelFromFilterArray(filter: INumRange[] | IEqualsList, attrLabel: string = null): string { @@ -17,17 +20,17 @@ export function easyLabelFromFilterArray(filter: INumRange[] | IEqualsList, attr export function easyLabelFromFilter(filter: INumRange | IEqualsList, attrLabel: string = null): string { const formatter = format('.1~f'); - if (isNumRangeFilter(filter)) { //INumRange Type Guard 💂‍♂️ - if (filter.valueOne === 'null' || filter.valueTwo === 'null' - || filter.valueOne === null || filter.valueTwo === null) { + if (isNumRangeFilter(filter)) { + // INumRange Type Guard 💂‍♂️ + if (filter.valueOne === 'null' || filter.valueTwo === 'null' || filter.valueOne === null || filter.valueTwo === null) { return attrLabel === null ? `Missing Values` : `Missing ${attrLabel} Values`; - } else { - return `${formatter(filter.valueOne as number)} to ${formatter(filter.valueTwo as number)}`; } - } else if (isEqualsList(filter)) { + return `${formatter(filter.valueOne as number)} to ${formatter(filter.valueTwo as number)}`; + } + if (isEqualsList(filter)) { // for number of categories uncomment next line. // check if more than one category - //return filter.values.length > 1 ? `${filter.values.length} Categories` : niceName(`${filter.values[0]}`); + // return filter.values.length > 1 ? `${filter.values.length} Categories` : niceName(`${filter.values[0]}`); return labelForCategories(filter.values); } @@ -51,20 +54,20 @@ export function easyLabelFromFilter(filter: INumRange | IEqualsList, attrLabel: // TODO label // export function labelFromFilter(filter: INumRange | IEqualsList, attr: IAttribute): string { export function labelFromFilter(filter: INumRange | IEqualsList, attrLabel: string): string { - if (isNumRangeFilter(filter)) { //INumRange Type Guard 💂‍♂️ + if (isNumRangeFilter(filter)) { + // INumRange Type Guard 💂‍♂️ const opOne = filter.operatorOne.indexOf('=') === -1 ? ')' : ']'; const lowerOperator = filter.operatorOne === NumRangeOperators.gte ? '[' : '('; const upperOperator = filter.operatorTwo === NumRangeOperators.lte ? ']' : ')'; - if (filter.valueOne === 'null' || filter.valueTwo === 'null' - || filter.valueOne === null || filter.valueTwo === null) { + if (filter.valueOne === 'null' || filter.valueTwo === 'null' || filter.valueOne === null || filter.valueTwo === null) { // return `Missing ${attr.label} Values`; return `Missing ${attrLabel} Values`; - } else { - // return labelFromRanges(lowerOperator, filter.valueOne as number, filter.valueTwo as number, upperOperator, attr); - return labelFromRanges(lowerOperator, filter.valueOne as number, filter.valueTwo as number, upperOperator, attrLabel); } - } else if (isEqualsList(filter)) { + // return labelFromRanges(lowerOperator, filter.valueOne as number, filter.valueTwo as number, upperOperator, attr); + return labelFromRanges(lowerOperator, filter.valueOne as number, filter.valueTwo as number, upperOperator, attrLabel); + } + if (isEqualsList(filter)) { return labelForCategories(filter.values); } @@ -74,8 +77,8 @@ export function labelFromFilter(filter: INumRange | IEqualsList, attrLabel: stri // TODO label // export function labelFromRanges(lowerOperator: '(' | '[', lowerBound: number, upperBound: number, upperOperator: ')' | ']', attr: IAttribute): string { export function labelFromRanges(lowerOperator: '(' | '[', lowerBound: number, upperBound: number, upperOperator: ')' | ']', attrLabel: string): string { - //const attribute = attr && attr.label ? attr.label : 'x'; - const attribute = attrLabel ? attrLabel : 'x'; + // const attribute = attr && attr.label ? attr.label : 'x'; + const attribute = attrLabel || 'x'; const htmlLte = '≤'; const htmlLt = '<'; const htmlGte = '≥'; @@ -87,24 +90,22 @@ export function labelFromRanges(lowerOperator: '(' | '[', lowerBound: number, up // return `${attribute} ${up} ${formatter(upperBound as number)}`; const up = upperOperator === ')' ? htmlLt : htmlLte; return `${up} ${formatter(upperBound as number)}`; - - } else if (upperOperator === null) { + } + if (upperOperator === null) { // const low = lowerOperator === '(' ? htmlLt : htmlLte; // return `${formatter(lowerBound as number)} ${low} ${attribute}`; const low = lowerOperator === '(' ? htmlGt : htmlGte; return `${low} ${formatter(lowerBound as number)}`; - - } else if (formatter(lowerBound) === formatter(upperBound)) { + } + if (formatter(lowerBound) === formatter(upperBound)) { return `${formatter(lowerBound)}`; - - } else { - // const low = lowerOperator === '(' ? htmlLt : htmlLte; - // const up = upperOperator === ')' ? htmlLt : htmlLte; - // return `${formatter(lowerBound as number)} ${low} ${attribute} ${up} ${formatter(upperBound as number)}`; - const low = lowerOperator === '(' ? htmlGt : htmlGte; - const up = upperOperator === ')' ? htmlLt : htmlLte; - return ` ${low} ${formatter(lowerBound as number)} to ${up} ${formatter(upperBound as number)}`; } + // const low = lowerOperator === '(' ? htmlLt : htmlLte; + // const up = upperOperator === ')' ? htmlLt : htmlLte; + // return `${formatter(lowerBound as number)} ${low} ${attribute} ${up} ${formatter(upperBound as number)}`; + const low = lowerOperator === '(' ? htmlGt : htmlGte; + const up = upperOperator === ')' ? htmlLt : htmlLte; + return ` ${low} ${formatter(lowerBound as number)} to ${up} ${formatter(upperBound as number)}`; } export function labelForCategories(categories: Array): string { @@ -125,7 +126,7 @@ export function plural(word: string, amount?: number): string { if (amount !== undefined && amount === 1) { return word; } - const plural: {[key: string]: string} = { + const plural: { [key: string]: string } = { '(quiz)$': '$1zes', '^(ox)$': '$1en', '([m|l])ouse$': '$1ice', @@ -135,7 +136,7 @@ export function plural(word: string, amount?: number): string { '(hive)$': '$1s', '(?:([^f])fe|([lr])f)$': '$1$2ves', '(shea|lea|loa|thie)f$': '$1ves', - 'sis$': 'ses', + sis$: 'ses', '([ti])um$': '$1a', '(tomat|potat|ech|her|vet)o$': '$1oes', '(bu)s$': '$1ses', @@ -143,18 +144,18 @@ export function plural(word: string, amount?: number): string { '(octop)us$': '$1i', '(ax|test)is$': '$1es', '(us)$': '$1es', - '([^s]+)$': '$1s' + '([^s]+)$': '$1s', }; - const irregular: {[key: string]: string} = { - 'move': 'moves', - 'foot': 'feet', - 'goose': 'geese', - 'sex': 'sexes', - 'child': 'children', - 'man': 'men', - 'tooth': 'teeth', - 'person': 'people' + const irregular: { [key: string]: string } = { + move: 'moves', + foot: 'feet', + goose: 'geese', + sex: 'sexes', + child: 'children', + man: 'men', + tooth: 'teeth', + person: 'people', }; const uncountable: string[] = [ @@ -182,7 +183,7 @@ export function plural(word: string, amount?: number): string { 'sugar', 'tuna', 'you', - 'wood' + 'wood', ]; // save some time in the case that singular and plural are the same @@ -223,7 +224,7 @@ export function singular(word: string, amount?: number): string { if (amount !== undefined && amount !== 1) { return word; } - const singular: {[key: string]: string} = { + const singular: { [key: string]: string } = { '(quiz)zes$': '$1', '(matr)ices$': '$1ix', '(vert|ind)ices$': '$1ex', @@ -251,18 +252,18 @@ export function singular(word: string, amount?: number): string { '(h|bl)ouses$': '$1ouse', '(corpse)s$': '$1', '(us)es$': '$1', - 's$': '' + s$: '', }; - const irregular: {[key: string]: string} = { - 'move': 'moves', - 'foot': 'feet', - 'goose': 'geese', - 'sex': 'sexes', - 'child': 'children', - 'man': 'men', - 'tooth': 'teeth', - 'person': 'people' + const irregular: { [key: string]: string } = { + move: 'moves', + foot: 'feet', + goose: 'geese', + sex: 'sexes', + child: 'children', + man: 'men', + tooth: 'teeth', + person: 'people', }; const uncountable: string[] = [ @@ -290,7 +291,7 @@ export function singular(word: string, amount?: number): string { 'sugar', 'tuna', 'you', - 'wood' + 'wood', ]; // save some time in the case that singular and plural are the same diff --git a/src/utils/RouterScrollToTop.tsx b/src/utils/RouterScrollToTop.tsx deleted file mode 100644 index a698651..0000000 --- a/src/utils/RouterScrollToTop.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { useEffect } from 'react'; -import { useLocation } from 'react-router-dom'; - -/** - * Scroll the window up on every navigation - * @see https://reactrouter.com/web/guides/scroll-restoration - */ -export function RouterScrollToTop() { - const { pathname } = useLocation(); - - useEffect(() => { - window.scrollTo(0, 0); - }, [pathname]); - - return null; -} diff --git a/src/utils/index.ts b/src/utils/index.ts deleted file mode 100644 index 8ce3f7c..0000000 --- a/src/utils/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './RouterScrollToTop'; diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..d7d6dd4 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,10 @@ +{ + "extends": "visyn_scripts/config/tsconfig.eslint.template.json", + "include": [ + "src/**/*.ts", + "src/**/*.tsx", + "tsd.d.ts", + "tests/**/*.ts", + "tests/**/*.tsx", + ] +} diff --git a/tsconfig.json b/tsconfig.json index e5d0ea9..213cc4d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,7 @@ { + "extends": "visyn_scripts/config/tsconfig.template.json", "compilerOptions": { - "module": "ES2020", - "target": "ES2019", - "importHelpers": true, - "sourceMap": true, - "declaration": true, - "moduleResolution": "node", - "jsx": "react", - "allowJs": true, - "declarationDir": "dist", - "outDir": "dist", - "experimentalDecorators": true, - "noImplicitAny": false, - "skipLibCheck": true, - "esModuleInterop": false, - "resolveJsonModule": true, - "allowSyntheticDefaultImports": true, - "preserveWatchOutput":true, - "incremental": true, - "tsBuildInfoFile": "dist/tsBuildInfoFile" + "outDir": "./dist", }, "include": [ "src/**/*.ts", diff --git a/typedoc.js b/typedoc.js new file mode 100644 index 0000000..5be3a9b --- /dev/null +++ b/typedoc.js @@ -0,0 +1 @@ +module.exports = require('visyn_scripts/config/typedoc.template') diff --git a/workspace.scss b/workspace.scss new file mode 100644 index 0000000..e69de29