diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ebf0322 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# Editor configuration, see https://editorconfig.org +root = true + +[*.kt] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true +ij_kotlin_allow_trailing_comma = true +ij_kotlin_allow_trailing_comma_on_call_site = true +ij_kotlin_name_count_to_use_star_import = 2147483647 +ij_kotlin_name_count_to_use_star_import_for_members = 2147483647 + +[*.properties] +charset = utf-8 +end_of_line = lf +insert_final_newline = true diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..ab29faf --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,27 @@ +**PLEASE READ THIS** + +I acknowledge that: + +- I have updated to the latest version of the app +- I have updated all extensions +- If this is an issue with the app itself, that I should be opening an issue in the app repository +- I have searched the existing issues for duplicates + +**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT** + +--- + +## Device information +* App version: ? +* Android version: ? +* Device: ? + +## Steps to reproduce +1. First step +2. Second step + +## Issue/Request +? + +## Other details +Additional details and attachments. diff --git a/.github/ISSUE_TEMPLATE/01_report_issue.yml b/.github/ISSUE_TEMPLATE/01_report_issue.yml new file mode 100644 index 0000000..c37e141 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/01_report_issue.yml @@ -0,0 +1,85 @@ +name: 🐞 Issue report +description: Report a source issue in Tachiyomi +labels: [Bug] +body: + + - type: textarea + id: reproduce-steps + attributes: + label: Steps to reproduce + description: Provide an example of the issue. + placeholder: | + Example: + 1. First step + 2. Second step + 3. Issue here + validations: + required: true + + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + placeholder: | + Example: + "This should happen..." + validations: + required: true + + - type: textarea + id: actual-behavior + attributes: + label: Actual behavior + placeholder: | + Example: + "This happened instead..." + validations: + required: true + + - type: input + id: tachiyomi-version + attributes: + label: App version + description: | + You can find your app version in **More → About**. + placeholder: | + Example: "0.15.1" + validations: + required: true + + - type: input + id: android-version + attributes: + label: Android version + description: | + You can find this somewhere in your Android settings. + placeholder: | + Example: "Android 11" + validations: + required: true + + - type: textarea + id: other-details + attributes: + label: Other details + placeholder: | + Additional details and attachments. + + - type: checkboxes + id: acknowledgements + attributes: + label: Acknowledgements + description: Your issue will be closed if you haven't done these steps. + options: + - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. + required: true + - label: I have written a short but informative title. + required: true + - label: I have updated the app to the latest version. + required: true + - label: I have updated all installed extensions. + required: true + - label: If this is an issue with the app itself, I should be opening an issue in the app repository. + required: true + - label: I will fill out all of the requested information in this form. + required: true diff --git a/.github/ISSUE_TEMPLATE/02_request_feature.yml b/.github/ISSUE_TEMPLATE/02_request_feature.yml new file mode 100644 index 0000000..9877181 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/02_request_feature.yml @@ -0,0 +1,39 @@ +name: ⭐ Feature request +description: Suggest a feature to improve an existing source +labels: [Feature request] +body: + + - type: textarea + id: feature-description + attributes: + label: Describe your suggested feature + description: How can an existing extension be improved? + placeholder: | + Example: + "It should work like this..." + validations: + required: true + + - type: textarea + id: other-details + attributes: + label: Other details + placeholder: | + Additional details and attachments. + + - type: checkboxes + id: acknowledgements + attributes: + label: Acknowledgements + description: Your issue will be closed if you haven't done these steps. + options: + - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. + required: true + - label: I have written a short but informative title. + required: true + - label: If this is an issue with the app itself, I should be opening an issue in the app repository. + required: true + - label: I have updated the app to the latest version. + required: true + - label: I will fill out all of the requested information in this form. + required: true diff --git a/.github/ISSUE_TEMPLATE/03_request_meta.yml b/.github/ISSUE_TEMPLATE/03_request_meta.yml new file mode 100644 index 0000000..8a8e667 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/03_request_meta.yml @@ -0,0 +1,41 @@ +name: 🧠 Meta request +description: Suggest improvements to the project +labels: [Meta request] +body: + + - type: textarea + id: feature-description + attributes: + label: Describe why this should be added + description: How can the project be improved? + placeholder: | + Example: + "It should work like this..." + validations: + required: true + + - type: textarea + id: other-details + attributes: + label: Other details + placeholder: | + Additional details and attachments. + + - type: checkboxes + id: acknowledgements + attributes: + label: Acknowledgements + description: Your issue will be closed if you haven't done these steps. + options: + - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. + required: true + - label: I have written a short but informative title. + required: true + - label: If this is an issue with the app itself, I should be opening an issue in the app repository. + required: true + - label: I have updated the app to the latest version. + required: true + - label: I have updated all installed extensions. + required: true + - label: I will fill out all of the requested information in this form. + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..a79da87 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: ⚠️ Application issue + url: https://github.com/suwayomi/tachiyomi-extension/issues/new/choose + about: Issues and requests about the app itself should be opened in the app repository instead + - name: 🖥️ Suwayomi website + url: https://suwayomi.org/ + about: Guides, troubleshooting, and answers to common questions diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..0ac7f25 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,8 @@ +Checklist: + +- [ ] Updated `extVersionCode` value in `build.gradle` for individual extensions +- [ ] Referenced all related issues in the PR body (e.g. "Closes #xyz") +- [ ] Added the `isNsfw = true` flag in `build.gradle` when appropriate +- [ ] Have not changed source names +- [ ] Have explicitly kept the `id` if a source's name or language were changed +- [ ] Have tested the modifications by compiling and running the extension through Android Studio diff --git a/.github/readme-images/app-icon.png b/.github/readme-images/app-icon.png new file mode 100644 index 0000000..78804a1 Binary files /dev/null and b/.github/readme-images/app-icon.png differ diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..e5fd018 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,8 @@ +{ + "extends": [ + "config:base" + ], + "includePaths": [ + ".github/**" + ] +} diff --git a/.github/scripts/commit-repo.sh b/.github/scripts/commit-repo.sh new file mode 100755 index 0000000..f0c830d --- /dev/null +++ b/.github/scripts/commit-repo.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e + +rsync -a --delete --exclude .git --exclude .gitignore ../main/repo/ . +git config --global user.email "github-actions[bot]@users.noreply.github.com" +git config --global user.name "github-actions[bot]" +git status +if [ -n "$(git status --porcelain)" ]; then + git add . + git commit -m "Update extensions repo" + git push + + # Purge cached index on jsDelivr + curl https://purge.jsdelivr.net/gh/suwayomi/tachiyomi-extension@repo/index.min.json +else + echo "No changes to commit" +fi diff --git a/.github/scripts/create-repo.sh b/.github/scripts/create-repo.sh new file mode 100755 index 0000000..9ef6706 --- /dev/null +++ b/.github/scripts/create-repo.sh @@ -0,0 +1,62 @@ +#!/bin/bash +set -e + +TOOLS="$(ls -d ${ANDROID_HOME}/build-tools/* | tail -1)" + +mkdir -p repo/apk +mkdir -p repo/icon + +cp -f apk/* repo/apk + +cd repo + +APKS=( ../apk/*".apk" ) + +for APK in ${APKS[@]}; do + FILENAME=$(basename ${APK}) + BADGING="$(${TOOLS}/aapt dump --include-meta-data badging $APK)" + + PACKAGE=$(echo "$BADGING" | grep package:) + PKGNAME=$(echo $PACKAGE | grep -Po "package: name='\K[^']+") + VCODE=$(echo $PACKAGE | grep -Po "versionCode='\K[^']+") + VNAME=$(echo $PACKAGE | grep -Po "versionName='\K[^']+") + NSFW=$(echo $BADGING | grep -Po "tachiyomi.extension.nsfw' value='\K[^']+") + + APPLICATION=$(echo "$BADGING" | grep application:) + LABEL=$(echo $APPLICATION | grep -Po "label='\K[^']+") + + LANG=$(echo $APK | grep -Po "tachiyomi-\K[^\.]+") + + ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+") + unzip -p $APK $ICON > icon/${PKGNAME}.png + + SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json) + + # Fixes the language code without needing to update the packages. + SOURCE_LEN=$(echo $SOURCE_INFO | jq length) + + if [ $SOURCE_LEN = "1" ]; then + SOURCE_LANG=$(echo $SOURCE_INFO | jq -r '.[0].lang') + + if [ $SOURCE_LANG != $LANG ] && [ $SOURCE_LANG != "all" ] && [ $SOURCE_LANG != "other" ] && [ $LANG != "all" ] && [ $LANG != "other" ]; then + LANG=$SOURCE_LANG + fi + fi + + jq -n \ + --arg name "$LABEL" \ + --arg pkg "$PKGNAME" \ + --arg apk "$FILENAME" \ + --arg lang "$LANG" \ + --argjson code $VCODE \ + --arg version "$VNAME" \ + --argjson nsfw $NSFW \ + --argjson sources "$SOURCE_INFO" \ + '{name:$name, pkg:$pkg, apk:$apk, lang:$lang, code:$code, version:$version, nsfw:$nsfw, sources:$sources}' + +done | jq -sr '[.[]]' > index.json + +# Alternate minified copy +jq -c '.' < index.json > index.min.json + +cat index.json diff --git a/.github/scripts/move-apks.sh b/.github/scripts/move-apks.sh new file mode 100755 index 0000000..dc904f2 --- /dev/null +++ b/.github/scripts/move-apks.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -e +shopt -s globstar nullglob extglob + +# Get APKs from previous jobs' artifacts +cp -R ~/apk-artifacts/ $PWD +APKS=( **/*".apk" ) + +# Fail if too little extensions seem to have been built +if [ "${#APKS[@]}" -lt "1" ]; then + echo "Insufficient amount of APKs found. Please check the project configuration." + exit 1 +else + echo "Moving ${#APKS[@]} APKs" +fi + +DEST=$PWD/apk +rm -rf $DEST && mkdir -p $DEST + +for APK in ${APKS[@]}; do + BASENAME=$(basename $APK) + APKNAME="${BASENAME%%+(-release*)}.apk" + APKDEST="$DEST/$APKNAME" + + cp $APK $APKDEST +done diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml new file mode 100644 index 0000000..ee6fcdd --- /dev/null +++ b/.github/workflows/build_pull_request.yml @@ -0,0 +1,31 @@ +name: PR build check + +on: + pull_request: + paths-ignore: + - '**.md' + - '.github/workflows/issue_moderator.yml' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + build_individual: + name: Build individual modules + runs-on: ubuntu-latest + steps: + - name: Checkout PR + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: adopt + + - name: Build extensions + uses: gradle/gradle-build-action@v2 + with: + arguments: assembleDebug + cache-read-only: true diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml new file mode 100644 index 0000000..bc1b979 --- /dev/null +++ b/.github/workflows/build_push.yml @@ -0,0 +1,98 @@ +name: CI + +on: + push: + branches: + - main + paths-ignore: + - '**.md' + - '.github/workflows/issue_moderator.yml' + +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +env: + CI_CHUNK_SIZE: 65 + +jobs: + build_individual: + name: Build individual modules + runs-on: ubuntu-latest + steps: + - name: Checkout main branch + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: adopt + + - name: Prepare signing key + run: | + echo ${{ secrets.SIGNING_KEY }} | base64 -d > signingkey.jks + + - name: Build extensions (chunk ${{ matrix.chunk }}) + uses: gradle/gradle-build-action@v2 + env: + ALIAS: ${{ secrets.ALIAS }} + KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} + KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} + with: + arguments: assembleRelease + + - name: Upload APKs + uses: actions/upload-artifact@v4 + if: "github.repository == 'suwayomi/tachiyomi-extension'" + with: + name: "individual-apks" + path: "**/*.apk" + retention-days: 1 + + - name: Clean up CI files + run: rm signingkey.jks + + publish_repo: + name: Publish repo + needs: + - build_individual + if: "github.repository == 'suwayomi/tachiyomi-extension'" + runs-on: ubuntu-latest + steps: + - name: Download APK artifacts + uses: actions/download-artifact@v4 + with: + path: ~/apk-artifacts + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: adopt + + - name: Checkout main branch + uses: actions/checkout@v4 + with: + ref: main + path: main + + - name: Create repo artifacts + run: | + cd main + ./.github/scripts/move-apks.sh + INSPECTOR_LINK="$(curl -s "https://api.github.com/repos/tachiyomiorg/tachiyomi-extensions-inspector/releases/latest" | jq -r '.assets[0].browser_download_url')" + curl -L "$INSPECTOR_LINK" -o ./Inspector.jar + java -jar ./Inspector.jar "apk" "output.json" "tmp" + ./.github/scripts/create-repo.sh + + - name: Checkout repo branch + uses: actions/checkout@v4 + with: + ref: repo + path: repo + + - name: Deploy repo + run: | + cd repo + ../main/.github/scripts/commit-repo.sh diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml new file mode 100644 index 0000000..e300f06 --- /dev/null +++ b/.github/workflows/issue_moderator.yml @@ -0,0 +1,37 @@ +name: Issue moderator + +on: + issues: + types: [opened, edited, reopened] + issue_comment: + types: [created] + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Moderate issues + uses: tachiyomiorg/issue-moderator-action@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + duplicate-label: Duplicate + + auto-close-rules: | + [ + { + "type": "body", + "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*", + "message": "The acknowledgment section was not removed." + }, + { + "type": "body", + "regex": ".*\\* (App version|Android version|Device): \\?.*", + "message": "Requested information in the template was not filled out." + }, + { + "type": "title", + "regex": ".*(Source name|Short description).*", + "message": "You did not fill out the description in the title." + } + ] + auto-close-ignore-label: do-not-autoclose diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000..869c114 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,19 @@ +name: Lock threads + +on: + # Daily + schedule: + - cron: '0 0 * * *' + # Manual trigger + workflow_dispatch: + inputs: + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v5 + with: + github-token: ${{ github.token }} + issue-inactive-days: '2' + pr-inactive-days: '2' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84d274f --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +.gradle +/local.properties +/.idea/workspace.xml +.DS_Store +build/ +/captures +.idea/ +*.iml +repo/ +apk/ +gen +generated-src/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..c0001e9 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,126 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, caste, color, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community moderators are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community moderators have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community moderators responsible for enforcement at +the [Tachiyomi Discord server](https://discord.gg/tachiyomi). +All complaints will be reviewed and investigated promptly and fairly. + +All community moderators are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community moderators will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community moderators, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), +version 2.1, available at +[v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html). + +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). + +For answers to common questions about this code of conduct, see the FAQ at +[FAQ](https://www.contributor-covenant.org/faq). Translations are available +at [translations](https://www.contributor-covenant.org/translations). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..dc35842 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,606 @@ +# Contributing + +This guide have some instructions and tips on how to create a new Tachiyomi extension. Please **read it carefully** if you're a new contributor or don't have any experience on the required languages and knowledges. + +This guide is not definitive and it's being updated over time. If you find any issue on it, feel free to report it through a [Meta Issue](https://github.com/tachiyomiorg/extensions/issues/new?assignees=&labels=Meta+request&template=request_meta.yml) or fixing it directly by submitting a Pull Request. + +## Table of Contents + +1. [Prerequisites](#prerequisites) + 1. [Tools](#tools) + 2. [Cloning the repository](#cloning-the-repository) +2. [Getting help](#getting-help) +3. [Writing an extension](#writing-an-extension) + 1. [Setting up a new Gradle module](#setting-up-a-new-gradle-module) + 2. [Core dependencies](#core-dependencies) + 3. [Extension main class](#extension-main-class) + 4. [Extension call flow](#extension-call-flow) + 5. [Misc notes](#misc-notes) + 6. [Advanced extension features](#advanced-extension-features) +4. [Running](#running) +5. [Debugging](#debugging) + 1. [Android Debugger](#android-debugger) + 2. [Logs](#logs) + 3. [Inspecting network calls](#inspecting-network-calls) + 4. [Using external network inspecting tools](#using-external-network-inspecting-tools) +6. [Building](#building) +7. [Submitting the changes](#submitting-the-changes) + 1. [Pull Request checklist](#pull-request-checklist) + +## Prerequisites + +Before you start, please note that the ability to use following technologies is **required** and that existing contributors will not actively teach them to you. + +- Basic [Android development](https://developer.android.com/) +- [Kotlin](https://kotlinlang.org/) +- Web scraping + - [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) + - [CSS selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) + - [OkHttp](https://square.github.io/okhttp/) + - [JSoup](https://jsoup.org/) + +### Tools + +- [Android Studio](https://developer.android.com/studio) +- Emulator or phone with developer options enabled and a recent version of Tachiyomi installed +- [Icon Generator](https://as280093.github.io/AndroidAssetStudio/icons-launcher.html) + +### Cloning the repository + +Some alternative steps can be followed to ignore "repo" branch and skip unrelated sources, which will make it faster to pull, navigate and build. This will also reduce disk usage and network traffic. + +
Steps + +1. Make sure to delete "repo" branch in your fork. You may also want to disable Actions in the repo settings. + + **Also make sure you are using the latest version of Git as many commands used here are pretty new.** + +2. Do a partial clone. + ```bash + git clone --filter=blob:none --sparse + cd extensions/ + ``` +3. Configure sparse checkout. + + There are two modes of pattern matching. The default is cone (🔺) mode. + Cone mode enables significantly faster pattern matching for big monorepos + and the sparse index feature to make Git commands more responsive. + In this mode, you can only filter by file path, which is less flexible + and might require more work when the project structure changes. + + You can skip this code block to use legacy mode if you want easier filters. + It won't be much slower as the repo doesn't have that many files. + + To enable cone mode together with sparse index, follow these steps: + + ```bash + git sparse-checkout set --cone --sparse-index + # add project folders + git sparse-checkout add .run buildSrc core gradle lib + # add a single source + git sparse-checkout add src// + ``` + + To remove a source, open `.git/info/sparse-checkout` and delete the exact + lines you typed when adding it. Don't touch the other auto-generated lines + unless you fully understand how cone mode works, or you might break it. + + To use the legacy non-cone mode, follow these steps: + + ```bash + # enable sparse checkout + git sparse-checkout set --no-cone + # edit sparse checkout filter + vim .git/info/sparse-checkout + # alternatively, if you have VS Code installed + code .git/info/sparse-checkout + ``` + Here's an example: + ```bash + /* + !/src/* + # allow a single source + /src// + # or type the source name directly + + ``` + + Explanation: the rules are like `gitignore`. We first exclude all sources + while retaining project folders, then add the needed sources back manually. + +4. Configure remotes. + ```bash + # add upstream + git remote add upstream + # optionally disable push to upstream + git remote set-url --push upstream no_pushing + # ignore 'repo' branch of upstream + # option 1: use negative refspec + git config --add remote.upstream.fetch "^refs/heads/repo" + # option 2: fetch main only (ignore all other branches) + git config remote.upstream.fetch "+refs/heads/main:refs/remotes/upstream/main" + # update remotes + git remote update + # track main of upstream instead of fork + git branch main -u upstream/main + ``` +5. Useful configurations. (optional) + ```bash + # prune obsolete remote branches on fetch + git config remote.origin.prune true + # fast-forward only when pulling main branch + git config pull.ff only + # Add an alias to sync main branch without fetching useless blobs. + # If you run `git pull` to fast-forward in a blobless clone like this, + # all blobs (files) in the new commits are still fetched regardless of + # sparse rules, which makes the local repo accumulate unused files. + # Use `git sync-main` to avoid this. Be careful if you have changes + # on main branch, which is not a good practice. + git config alias.sync-main '!git switch main && git fetch upstream && git reset --keep FETCH_HEAD' + ``` +6. Later, if you change the sparse checkout filter, run `git sparse-checkout reapply`. + +Read more on +[Git's object model](https://github.blog/2020-12-17-commits-are-snapshots-not-diffs/), +[partial clone](https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/), +[sparse checkout](https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/), +[sparse index](https://github.blog/2021-11-10-make-your-monorepo-feel-small-with-gits-sparse-index/), +and [negative refspecs](https://github.blog/2020-10-19-git-2-29-released/#user-content-negative-refspecs). +
+ +## Getting help + +- Join [the Discord server](https://discord.gg/tachiyomi) for online help and to ask questions while developing your extension. When doing so, please ask it in the `#programming` channel. +- There are some features and tricks that are not explored in this document. Refer to existing extension code for examples. + +## Writing an extension + +The quickest way to get started is to copy an existing extension's folder structure and renaming it as needed. We also recommend reading through a few existing extensions' code before you start. + +### Setting up a new Gradle module + +Each extension should reside in `src//`. Use `all` as `` if your target source supports multiple languages or if it could support multiple sources. + +The `` used in the folder inside `src` should be the major `language` part. For example, if you will be creating a `pt-BR` source, use `` here as `pt` only. Inside the source class, use the full locale string instead. + +### Loading a subset of Gradle modules + +By default, all individual extensions are loaded for local development. +This may be inconvenient if you only need to work on one extension at a time. + +To adjust which modules are loaded, make adjustments to the `settings.gradle.kts` file as needed. + +#### Extension file structure + +The simplest extension structure looks like this: + +```console +$ tree src/// +src/// +├── AndroidManifest.xml +├── build.gradle +├── res +│   ├── mipmap-hdpi +│   │   └── ic_launcher.png +│   ├── mipmap-mdpi +│   │   └── ic_launcher.png +│   ├── mipmap-xhdpi +│   │   └── ic_launcher.png +│   ├── mipmap-xxhdpi +│   │   └── ic_launcher.png +│   ├── mipmap-xxxhdpi +│   │   └── ic_launcher.png +│   └── web_hi_res_512.png +└── src + └── eu + └── kanade + └── tachiyomi + └── extension + └── + └── + └── .kt + +13 directories, 9 files +``` + +#### AndroidManifest.xml +A minimal [Android manifest file](https://developer.android.com/guide/topics/manifest/manifest-intro) is needed for Android to recognize an extension when it's compiled into an APK file. You can also add intent filters inside this file (see [URL intent filter](#url-intent-filter) for more information). + +#### build.gradle +Make sure that your new extension's `build.gradle` file follows the following structure: + +```gradle +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' + +ext { + extName = '' + pkgNameSuffix = '.' + extClass = '.' + extVersionCode = 1 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" +``` + +| Field | Description | +| ----- | ----------- | +| `extName` | The name of the extension. | +| `pkgNameSuffix` | A unique suffix added to `eu.kanade.tachiyomi.extension`. The language and the site name should be enough. Remember your extension code implementation must be placed in this package. | +| `extClass` | Points to the class that implements `Source`. You can use a relative path starting with a dot (the package name is the base path). This is used to find and instantiate the source(s). | +| `extVersionCode` | The extension version code. This must be a positive integer and incremented with any change to the code. | +| `libVersion` | (Optional, defaults to `1.4`) The version of the [extensions library](https://github.com/tachiyomiorg/extensions-lib) used. | +| `isNsfw` | (Optional, defaults to `false`) Flag to indicate that a source contains NSFW content. | + +The extension's version name is generated automatically by concatenating `libVersion` and `extVersionCode`. With the example used above, the version would be `1.4.1`. + +### Core dependencies + +#### Extension API + +Extensions rely on [extensions-lib](https://github.com/tachiyomiorg/extensions-lib), which provides some interfaces and stubs from the [app](https://github.com/tachiyomiorg/tachiyomi) for compilation purposes. The actual implementations can be found [here](https://github.com/tachiyomiorg/tachiyomi/tree/main/app/src/main/java/eu/kanade/tachiyomi/source). Referencing the actual implementation will help with understanding extensions' call flow. + +#### DataImage library + +[`lib-dataimage`](https://github.com/tachiyomiorg/extensions/tree/main/lib/dataimage) is a library for handling [base 64 encoded image data](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) using an [OkHttp interceptor](https://square.github.io/okhttp/interceptors/). + +```gradle +dependencies { + implementation(project(':lib-dataimage')) +} +``` + +#### i18n library + +[`lib-i18n`](https://github.com/tachiyomiorg/extensions/tree/main/lib/i18n) is a library for handling internationalization in the sources. It allows loading `.properties` files with messages located under the `assets/i18n` folder of each extension, that can be used to translate strings under the source. + +```gradle +dependencies { + implementation(project(':lib-i18n')) +} +``` + +#### Additional dependencies + +If you find yourself needing additional functionality, you can add more dependencies to your `build.gradle` file. +Many of [the dependencies](https://github.com/tachiyomiorg/tachiyomi/blob/main/app/build.gradle.kts) from the main Tachiyomi app are exposed to extensions by default. + +> [!NOTE] +> Several dependencies are already exposed to all extensions via Gradle's version catalog. +> To view which are available check the `gradle/libs.versions.toml` file. + +Notice that we're using `compileOnly` instead of `implementation` if the app already contains it. You could use `implementation` instead for a new dependency, or you prefer not to rely on whatever the main app has at the expense of app size. + +> [!IMPORTANT] +> Using `compileOnly` restricts you to versions that must be compatible with those used in [the latest stable version of Tachiyomi](https://github.com/tachiyomiorg/tachiyomi/releases/latest). + +### Extension main class + +The class which is referenced and defined by `extClass` in `build.gradle`. This class should implement either `SourceFactory` or extend one of the `Source` implementations: `HttpSource` or `ParsedHttpSource`. + +| Class | Description | +| ----- | ----------- | +| `SourceFactory` | Used to expose multiple `Source`s. Use this in case of a source that supports multiple languages or mirrors of the same website. | +| `HttpSource` | For online source, where requests are made using HTTP. | +| `ParsedHttpSource` | Similar to `HttpSource`, but has methods useful for scraping pages. | + +#### Main class key variables + +| Field | Description | +| ----- | ----------- | +| `name` | Name displayed in the "Sources" tab in Tachiyomi. | +| `baseUrl` | Base URL of the source without any trailing slashes. | +| `lang` | An ISO 639-1 compliant language code (two letters in lower case in most cases, but can also include the country/dialect part by using a simple dash character). | +| `id` | Identifier of your source, automatically set in `HttpSource`. It should only be manually overriden if you need to copy an existing autogenerated ID. | + +### Extension call flow + +#### Popular Manga + +a.k.a. the Browse source entry point in the app (invoked by tapping on the source name). + +- The app calls `fetchPopularManga` which should return a `MangasPage` containing the first batch of found `SManga` entries. + - This method supports pagination. When user scrolls the manga list and more results must be fetched, the app calls it again with increasing `page` values (starting with `page=1`). This continues while `MangasPage.hasNextPage` is passed as `true` and `MangasPage.mangas` is not empty. +- To show the list properly, the app needs `url`, `title` and `thumbnail_url`. You **must** set them here. The rest of the fields could be filled later (refer to Manga Details below). + - You should set `thumbnail_url` if is available, if not, `getMangaDetails` will be **immediately** called (this will increase network calls heavily and should be avoided). + +#### Latest Manga + +a.k.a. the Latest source entry point in the app (invoked by tapping on the "Latest" button beside the source name). + +- Enabled if `supportsLatest` is `true` for a source +- Similar to popular manga, but should be fetching the latest entries from a source. + +#### Manga Search + +- When the user searches inside the app, `fetchSearchManga` will be called and the rest of the flow is similar to what happens with `fetchPopularManga`. + - If search functionality is not available, return `Observable.just(MangasPage(emptyList(), false))` +- `getFilterList` will be called to get all filters and filter types. + +##### Filters + +The search flow have support to filters that can be added to a `FilterList` inside the `getFilterList` method. When the user changes the filters' state, they will be passed to the `searchRequest`, and they can be iterated to create the request (by getting the `filter.state` value, where the type varies depending on the `Filter` used). You can check the filter types available [here](https://github.com/tachiyomiorg/tachiyomi/blob/main/source-api/src/commonMain/kotlin/eu/kanade/tachiyomi/source/model/Filter.kt) and in the table below. + +| Filter | State type | Description | +| ------ | ---------- | ----------- | +| `Filter.Header` | None | A simple header. Useful for separating sections in the list or showing any note or warning to the user. | +| `Filter.Separator` | None | A line separator. Useful for visual distinction between sections. | +| `Filter.Select` | `Int` | A select control, similar to HTML's ``. | +| `Filter.CheckBox` | `Boolean` | A checkbox control, similar to HTML's ``. The state is `true` if it's checked. | +| `Filter.TriState` | `Int` | A enhanced checkbox control that supports an excluding state. The state can be compared with `STATE_IGNORE`, `STATE_INCLUDE` and `STATE_EXCLUDE` constants of the class. | +| `Filter.Group` | `List` | A group of filters (preferentially of the same type). The state will be a `List` with all the states. | +| `Filter.Sort` | `Selection` | A control for sorting, with support for the ordering. The state indicates which item index is selected and if the sorting is `ascending`. | + +All control filters can have a default state set. It's usually recommended if the source have filters to make the initial state match the popular manga list, so when the user open the filter sheet, the state is equal and represents the current manga showing. + +The `Filter` classes can also be extended, so you can create new custom filters like the `UriPartFilter`: + +```kotlin +open class UriPartFilter(displayName: String, private val vals: Array>) : + Filter.Select(displayName, vals.map { it.first }.toTypedArray()) { + fun toUriPart() = vals[state].second +} +``` + +#### Manga Details + +- When user taps on a manga, `getMangaDetails` and `getChapterList` will be called and the results will be cached. + - A `SManga` entry is identified by it's `url`. +- `getMangaDetails` is called to update a manga's details from when it was initialized earlier. + - `SManga.initialized` tells the app if it should call `getMangaDetails`. If you are overriding `getMangaDetails`, make sure to pass it as `true`. + - `SManga.genre` is a string containing list of all genres separated with `", "`. + - `SManga.status` is an "enum" value. Refer to [the values in the `SManga` companion object](https://github.com/tachiyomiorg/extensions-lib/blob/main/library/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt#L24). + - During a backup, only `url` and `title` are stored. To restore the rest of the manga data, the app calls `getMangaDetails`, so all fields should be (re)filled in if possible. + - If a `SManga` is cached, `getMangaDetails` will be only called when the user does a manual update (Swipe-to-Refresh). +- `getChapterList` is called to display the chapter list. + - **The list should be sorted descending by the source order**. +- `getMangaUrl` is called when the user taps "Open in WebView". + - If the source uses an API to fetch the data, consider overriding this method to return the manga absolute URL in the website instead. + - It defaults to the URL provided to the request in `mangaDetailsRequest`. + +#### Chapter + +- After a chapter list for the manga is fetched and the app is going to cache the data, `prepareNewChapter` will be called. +- `SChapter.date_upload` is the [UNIX Epoch time](https://en.wikipedia.org/wiki/Unix_time) **expressed in milliseconds**. + - If you don't pass `SChapter.date_upload` and leave it zero, the app will use the default date instead, but it's recommended to always fill it if it's available. + - To get the time in milliseconds from a date string, you can use a `SimpleDateFormat` like in the example below. + + ```kotlin + private fun parseDate(dateStr: String): Long { + return runCatching { DATE_FORMATTER.parse(dateStr)?.time } + .getOrNull() ?: 0L + } + + companion object { + private val DATE_FORMATTER by lazy { + SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH) + } + } + ``` + + Make sure you make the `SimpleDateFormat` a class constant or variable so it doesn't get recreated for every chapter. If you need to parse or format dates in manga description, create another instance since `SimpleDateFormat` is not thread-safe. + - If the parsing have any problem, make sure to return `0L` so the app will use the default date instead. + - The app will overwrite dates of existing old chapters **UNLESS** `0L` is returned. + - The default date has [changed](https://github.com/tachiyomiorg/tachiyomi/pull/7197) in preview ≥ r4442 or stable > 0.13.4. + - In older versions, the default date is always the fetch date. + - In newer versions, this is the same if every (new) chapter has `0L` returned. + - However, if the source only provides the upload date of the latest chapter, you can now set it to the latest chapter and leave other chapters default. The app will automatically set it (instead of fetch date) to every new chapter and leave old chapters' dates untouched. +- `getChapterUrl` is called when the user taps "Open in WebView" in the reader. + - If the source uses an API to fetch the data, consider overriding this method to return the chapter absolute URL in the website instead. + - It defaults to the URL provided to the request in `pageListRequest`. + +#### Chapter Pages + +- When user opens a chapter, `getPageList` will be called and it will return a list of `Page`s. +- While a chapter is open in the reader or is being downloaded, `fetchImageUrl` will be called to get URLs for each page of the manga if the `Page.imageUrl` is empty. +- If the source provides all the `Page.imageUrl`'s directly, you can fill them and let the `Page.url` empty, so the app will skip the `fetchImageUrl` source and call directly `fetchImage`. +- The `Page.url` and `Page.imageUrl` attributes **should be set as an absolute URL**. +- Chapter pages numbers start from `0`. +- The list of `Page`s should be returned already sorted, the `index` field is ignored. + +### Misc notes + +- Sometimes you may find no use for some inherited methods. If so just override them and throw exceptions: `throw UnsupportedOperationException("Not used.")` +- You probably will find `getUrlWithoutDomain` useful when parsing the target source URLs. Keep in mind there's a current issue with spaces in the URL though, so if you use it, replace all spaces with URL encoded characters (like `%20`). +- If possible try to stick to the general workflow from `HttpSource`/`ParsedHttpSource`; breaking them may cause you more headache than necessary. +- By implementing `ConfigurableSource` you can add settings to your source, which is backed by [`SharedPreferences`](https://developer.android.com/reference/android/content/SharedPreferences). + +### Advanced Extension features + +#### URL intent filter + +Extensions can define URL intent filters by defining it inside a custom `AndroidManifest.xml` file. +(Example TBD.) + +To test if the URL intent filter is working as expected, you can try opening the website in a browser and navigating to the endpoint that was added as a filter or clicking a hyperlink. Alternatively, you can use the `adb` command below. + +```console +$ adb shell am start -d "" -a android.intent.action.VIEW +``` + +> [!CAUTION] +> The activity does not support any Kotlin Intrinsics specific methods or calls, +> and using them will causes crashes in the activity. Consider using Java's equivalent +> methods instead, such as using `String`'s `equals()` instead of using `==`. +> +> You can use Kotlin Intrinsics in the extension source class, this limitation only +> applies to the activity classes. + +#### Update strategy + +There is some cases where titles in a source will always only have the same chapter list (i.e. immutable), and don't need to be included in a global update of the app because of that, saving a lot of requests and preventing causing unnecessary damage to the source servers. To change the update strategy of a `SManga`, use the `update_strategy` field. You can find below a description of the current possible values. + +- `UpdateStrategy.ALWAYS_UPDATE`: Titles marked as always update will be included in the library update if they aren't excluded by additional restrictions. +- `UpdateStrategy.ONLY_FETCH_ONCE`: Titles marked as only fetch once will be automatically skipped during library updates. Useful for cases where the series is previously known to be finished and have only a single chapter, for example. + +If not set, it defaults to `ALWAYS_UPDATE`. + +#### Renaming existing sources + +There is some cases where existing sources changes their name on the website. To correctly reflect these changes in the extension, you need to explicity set the `id` to the same old value, otherwise it will get changed by the new `name` value and users will be forced to migrate back to the source. + +To get the current `id` value before the name change, you can search the source name in the [repository JSON file](https://github.com/tachiyomiorg/extensions/blob/repo/index.json) by looking into the `sources` attribute of the extension. When you have the `id` copied, you can override it in the source: + +```kotlin +override val id: Long = +``` + +Then the class name and the `name` attribute value can be changed. Also don't forget to update the extension name and class name in the individual Gradle file. + +> [!IMPORTANT] +> The package name **needs** to be the same (even if it has the old name), otherwise users will not receive the extension update when it gets published in the repository. + +The `id` also needs to be explicity set to the old value if you're changing the `lang` attribute. + +> [!NOTE] +> If the source has also changed their theme you can instead just change +> the `name` field in the source class and in the Gradle file. By doing so +> a new `id` will be generated and users will be forced to migrate. + +## Running + +To make local development more convenient, you can use the following run configuration to launch Tachiyomi directly at the Browse panel: + +![](https://i.imgur.com/STy0UFY.png) + +If you're running a Preview or debug build of Tachiyomi: + +``` +-W -S -n eu.kanade.tachiyomi.debug/eu.kanade.tachiyomi.ui.main.MainActivity -a eu.kanade.tachiyomi.SHOW_CATALOGUES +``` + +And for a release build of Tachiyomi: + +``` +-W -S -n eu.kanade.tachiyomi/eu.kanade.tachiyomi.ui.main.MainActivity -a eu.kanade.tachiyomi.SHOW_CATALOGUES +``` + +> [!IMPORTANT] +> If you're deploying to Android 11 or higher, enable the "Always install with package manager" option in the run configurations. Without this option enabled, you might face issues such as Android Studio running an older version of the extension without the modifications you might have done. + +## Debugging + +### Android Debugger + +You can leverage the Android Debugger to step through your extension while debugging. + +You *cannot* simply use Android Studio's `Debug 'module.name'` -> this will most likely result in an error while launching. + +Instead, once you've built and installed your extension on the target device, use `Attach Debugger to Android Process` to start debugging Tachiyomi. + +![](https://i.imgur.com/muhXyfu.png) + + +### Logs + +You can also elect to simply rely on logs printed from your extension, which +show up in the [`Logcat`](https://developer.android.com/studio/debug/am-logcat) panel of Android Studio. + +### Inspecting network calls + +One of the easiest way to inspect network issues (such as HTTP errors 404, 429, no chapter found etc.) is to use the [`Logcat`](https://developer.android.com/studio/debug/am-logcat) panel of Android Studio and filtering by the `OkHttpClient` tag. + +To be able to check the calls done by OkHttp, you need to enable verbose logging in the app, that is not enabled by default and is only included in the Preview versions of Tachiyomi. To enable it, go to More -> Settings -> Advanced -> Verbose logging. After enabling it, don't forget to restart the app. + +Inspecting the Logcat allows you to get a good look at the call flow and it's more than enough in most cases where issues occurs. However, alternatively, you can also use an external tool like `mitm-proxy`. For that, refer to the subsequent sections. + +On newer Android Studio versions, you can use its built-in Network Inspector inside the +App Inspection tool window. This feature provides a nice GUI to inspect the requests made in the app. + +To use it, follow the [official documentation](https://developer.android.com/studio/debug/network-profiler) and select Tachiyomi package name in the process list. + +### Using external network inspecting tools +If you want to take a deeper look into the network flow, such as taking a look into the request and response bodies, you can use an external tool like `mitm-proxy`. + +#### Setup your proxy server +We are going to use [mitm-proxy](https://mitmproxy.org/) but you can replace it with any other Web Debugger (i.e. Charles, Burp Suite, Fiddler etc). To install and execute, follow the commands bellow. + +```console +Install the tool. +$ sudo pip3 install mitmproxy +Execute the web interface and the proxy. +$ mitmweb +``` + +Alternatively, you can also use the Docker image: + +``` +$ docker run --rm -it -p 8080:8080 \ + -p 127.0.0.1:8081:8081 \ + --web-host 0.0.0.0 \ + mitmproxy/mitmproxy mitmweb +``` + +After installing and running, open your browser and navigate to http://127.0.0.1:8081. + +#### OkHttp proxy setup +Since most of the manga sources are going to use HTTPS, we need to disable SSL verification in order to use the web debugger. For that, add this code to inside your source class: + +```kotlin +package eu.kanade.tachiyomi.extension.en.mysource + +import android.annotation.SuppressLint +import eu.kanade.tachiyomi.source.online.HttpSource +import okhttp3.OkHttpClient +import java.net.InetSocketAddress +import java.net.Proxy +import java.security.SecureRandom +import java.security.cert.X509Certificate +import javax.net.ssl.SSLContext +import javax.net.ssl.TrustManager +import javax.net.ssl.X509TrustManager + +class MySource : HttpSource() { + private fun OkHttpClient.Builder.ignoreAllSSLErrors(): OkHttpClient.Builder { + val naiveTrustManager = @SuppressLint("CustomX509TrustManager") + object : X509TrustManager { + override fun getAcceptedIssuers(): Array = emptyArray() + override fun checkClientTrusted(certs: Array, authType: String) = Unit + override fun checkServerTrusted(certs: Array, authType: String) = Unit + } + + val insecureSocketFactory = SSLContext.getInstance("TLSv1.2").apply { + val trustAllCerts = arrayOf(naiveTrustManager) + init(null, trustAllCerts, SecureRandom()) + }.socketFactory + + sslSocketFactory(insecureSocketFactory, naiveTrustManager) + hostnameVerifier { _, _ -> true } + return this + } + + override val client: OkHttpClient = network.cloudflareClient.newBuilder() + .ignoreAllSSLErrors() + .proxy(Proxy(Proxy.Type.HTTP, InetSocketAddress("10.0.2.2", 8080))) + .build() +} +``` + +Note: `10.0.2.2` is usually the address of your loopback interface in the android emulator. If Tachiyomi tells you that it's unable to connect to 10.0.2.2:8080 you will likely need to change it (the same if you are using hardware device). + +If all went well, you should see all requests and responses made by the source in the web interface of `mitmweb`. + +## Building + +APKs can be created in Android Studio via `Build > Build Bundle(s) / APK(s) > Build APK(s)` or `Build > Generate Signed Bundle / APK`. + +## Submitting the changes + +When you feel confident about your changes, submit a new Pull Request so your code can be reviewed and merged if it's approved. We encourage following a [GitHub Standard Fork & Pull Request Workflow](https://gist.github.com/Chaser324/ce0505fbed06b947d962) and following the good practices of the workflow, such as not commiting directly to `main`: always create a new branch for your changes. + +If you are more comfortable about using Git GUI-based tools, you can refer to [this guide](https://learntodroid.com/how-to-use-git-and-github-in-android-studio/) about the Git integration inside Android Studio, specifically the "How to Contribute to an to Existing Git Repository in Android Studio" section of the guide. + +> [!IMPORTANT] +> Make sure you have generated the extension icon using the linked Icon Generator tool in the [Tools](#tools) section. The icon **must follow the pattern** adopted by all other extensions: a square with rounded corners. + +Please **do test your changes by compiling it through Android Studio** before submitting it. Obvious untested PRs will not be merged, such as ones created with the GitHub web interface. Also make sure to follow the PR checklist available in the PR body field when creating a new PR. As a reference, you can find it below. + +### Pull Request checklist + +- Update `extVersionCode` value in `build.gradle` for individual extensions +- Reference all related issues in the PR body (e.g. "Closes #xyz") +- Add the `isNsfw = true` flag in `build.gradle` when appropriate +- Explicitly kept the `id` if a source's name or language were changed +- Test the modifications by compiling and running the extension through Android Studio diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8f71f43 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..b7c197d --- /dev/null +++ b/README.md @@ -0,0 +1,52 @@ +| Build | Support Server | +|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------| +| [![CI](https://github.com/suwayomi/tachiyomi-extension/workflows/CI/badge.svg?event=push)](https://github.com/suwayomi/tachiyomi-extension/actions/workflows/build_push.yml) | [![Discord](https://img.shields.io/discord/598920799851905034.svg?label=discord&labelColor=7289da&color=2c2f33&style=flat)](https://discord.gg/DDZdqZWaHA) | + +# ![app icon](./.github/readme-images/app-icon.png)Suwayomi Extension +This repository contains the Suwayomi extension for [Tachiyomi](https://github.com/tachiyomiorg/tachiyomi) and variants. + +# Usage + +The Extension can be downloaded, installed, and uninstalled via the main Tachiyomi app and variants. They are installed and uninstalled like regular apps, in `.apk` format. + +## Downloads + +If you prefer to directly download the APK file, it is available directly in this GitHub repository in the [`repo` branch](https://github.com/suwayomi/tachiyomi-extension/tree/repo/apk). + +# Requests + +To request a new feature or bug fix, [create an issue](https://github.com/suwayomi/tachiyomi-extension/issues/new/choose). + +Note that requesting something does not imply that something will be added or fixed in a timely fashion or at all since the work is volunteer-based. + +If you would like to see a request fulfilled and have the necessary skills to do so, consider contributing! Issues are up-for-grabs for any developer if there is no assigned user already. + +# Contributing + +Contributions are welcome! + +Check out the repo's [issue backlog](https://github.com/suwayomi/tachiyomi-extension/issues) for source requests and bug reports. + +To get started with development, see [CONTRIBUTING.md](./CONTRIBUTING.md). + +It might also be good to read our [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md). + +## Credit + +Parts of tachiyomi-extensions were adopted into this codebase, also licensed under `Apache License Version 2.0` and `Copyright 2015 Javier Tomás`. + +You can obtain a copy of `Apache License Version 2.0` from http://www.apache.org/licenses/LICENSE-2.0 + +Changes to both codebases is licensed under `MPL v. 2.0` as the rest of this project. + +## License + + Copyright (C) Contributors to the Suwayomi project + + 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/. + +## Disclaimer + +The developer of this application does not have any affiliation with the content providers available. diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..b2e8c87 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,25 @@ +buildscript { + repositories { + mavenCentral() + google() + maven(url = "https://plugins.gradle.org/m2/") + } + dependencies { + classpath(libs.gradle.agp) + classpath(libs.gradle.kotlin) + classpath(libs.gradle.serialization) + classpath(libs.gradle.kotlinter) + } +} + +allprojects { + repositories { + mavenCentral() + google() + maven(url = "https://jitpack.io") + } +} + +tasks.register("clean") { + delete(rootProject.layout.buildDirectory.asFile.get()) +} diff --git a/buildSrc/.gitignore b/buildSrc/.gitignore new file mode 100644 index 0000000..67bcc2f --- /dev/null +++ b/buildSrc/.gitignore @@ -0,0 +1,2 @@ +.gradle/ +build/ diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts new file mode 100644 index 0000000..876c922 --- /dev/null +++ b/buildSrc/build.gradle.kts @@ -0,0 +1,7 @@ +plugins { + `kotlin-dsl` +} + +repositories { + mavenCentral() +} diff --git a/buildSrc/src/main/kotlin/AndroidConfig.kt b/buildSrc/src/main/kotlin/AndroidConfig.kt new file mode 100644 index 0000000..ac6d1d0 --- /dev/null +++ b/buildSrc/src/main/kotlin/AndroidConfig.kt @@ -0,0 +1,6 @@ +object AndroidConfig { + const val compileSdk = 34 + const val minSdk = 21 + @Suppress("UNUSED") + const val targetSdk = 34 +} diff --git a/common.gradle b/common.gradle new file mode 100644 index 0000000..a287167 --- /dev/null +++ b/common.gradle @@ -0,0 +1,93 @@ +apply plugin: 'org.jmailen.kotlinter' + +android { + compileSdkVersion AndroidConfig.compileSdk + + namespace "eu.kanade.tachiyomi.extension" + sourceSets { + main { + manifest.srcFile "AndroidManifest.xml" + java.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } + release { + manifest.srcFile "AndroidManifest.xml" + } + debug { + manifest.srcFile "AndroidManifest.xml" + } + } + + defaultConfig { + minSdkVersion AndroidConfig.minSdk + targetSdkVersion AndroidConfig.targetSdk + applicationIdSuffix pkgNameSuffix + versionCode extVersionCode + versionName project.ext.properties.getOrDefault("libVersion", "1.4") + ".$extVersionCode" + setProperty("archivesBaseName", "tachiyomi-$pkgNameSuffix-v$versionName") + manifestPlaceholders = [ + appName : "Tachiyomi: $extName", + extClass: extClass, + nsfw: project.ext.properties.getOrDefault("isNsfw", false) ? 1 : 0, + ] + } + + signingConfigs { + release { + storeFile rootProject.file("signingkey.jks") + storePassword System.getenv("KEY_STORE_PASSWORD") + keyAlias System.getenv("ALIAS") + keyPassword System.getenv("KEY_PASSWORD") + } + } + + buildTypes { + release { + signingConfig signingConfigs.release + minifyEnabled false + } + } + + dependenciesInfo { + includeInApk = false + } + + buildFeatures { + // Disable unused AGP features + aidl false + renderScript false + resValues false + shaders false + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_1_8.toString() + freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi" + } + + kotlinter { + experimentalRules = true + disabledRules = [ + "experimental:argument-list-wrapping", // Doesn't play well with Android Studio + "experimental:comment-wrapping", + ] + } +} + +repositories { + mavenCentral() +} + +dependencies { + implementation(project(":core")) + compileOnly(libs.bundles.common) +} + +preBuild.dependsOn(lintKotlin) +lintKotlin.dependsOn(formatKotlin) diff --git a/core/AndroidManifest.xml b/core/AndroidManifest.xml new file mode 100644 index 0000000..b56b3b9 --- /dev/null +++ b/core/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/core/build.gradle.kts b/core/build.gradle.kts new file mode 100644 index 0000000..e394894 --- /dev/null +++ b/core/build.gradle.kts @@ -0,0 +1,27 @@ +plugins { + id("com.android.library") +} + +android { + compileSdk = AndroidConfig.compileSdk + + defaultConfig { + minSdk = AndroidConfig.minSdk + } + + namespace = "eu.kanade.tachiyomi.extension" + + @Suppress("UnstableApiUsage") + sourceSets { + named("main") { + manifest.srcFile("AndroidManifest.xml") + res.setSrcDirs(listOf("res")) + } + } + + libraryVariants.all { + generateBuildConfigProvider?.configure { + enabled = false + } + } +} diff --git a/core/res/mipmap-hdpi/ic_launcher.png b/core/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..3e78412 Binary files /dev/null and b/core/res/mipmap-hdpi/ic_launcher.png differ diff --git a/core/res/mipmap-mdpi/ic_launcher.png b/core/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..88037fe Binary files /dev/null and b/core/res/mipmap-mdpi/ic_launcher.png differ diff --git a/core/res/mipmap-xhdpi/ic_launcher.png b/core/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..554324e Binary files /dev/null and b/core/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/core/res/mipmap-xxhdpi/ic_launcher.png b/core/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..99590ff Binary files /dev/null and b/core/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/core/res/mipmap-xxxhdpi/ic_launcher.png b/core/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..9ddcbc0 Binary files /dev/null and b/core/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..a30adac --- /dev/null +++ b/gradle.properties @@ -0,0 +1,23 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx6144m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +org.gradle.parallel=true +org.gradle.workers.max=5 + +org.gradle.caching=true + +# Enable AndroidX dependencies +android.useAndroidX=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..88100fa --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,28 @@ +[versions] +kotlin_version = "1.7.21" +coroutines_version = "1.6.4" +serialization_version = "1.4.0" + +[libraries] +gradle-agp = { module = "com.android.tools.build:gradle", version = "7.4.2" } +gradle-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin_version" } +gradle-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin_version" } +gradle-kotlinter = { module = "org.jmailen.gradle:kotlinter-gradle", version = "3.13.0" } + +tachiyomi-lib = { module = "com.github.tachiyomiorg:extensions-lib", version = "1.4.2" } + +kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin_version" } +kotlin-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "serialization_version" } +kotlin-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization_version" } + +coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines_version" } +coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines_version" } + +injekt-core = { module = "com.github.inorichi.injekt:injekt-core", version = "65b0440" } +rxjava = { module = "io.reactivex:rxjava", version = "1.3.8" } +jsoup = { module = "org.jsoup:jsoup", version = "1.15.1" } +okhttp = { module = "com.squareup.okhttp3:okhttp", version = "5.0.0-alpha.11" } +quickjs = { module = "app.cash.quickjs:quickjs-android", version = "0.9.2" } + +[bundles] +common = ["kotlin-stdlib", "coroutines-core", "coroutines-android", "injekt-core", "rxjava", "kotlin-protobuf", "kotlin-json", "jsoup", "okhttp", "tachiyomi-lib", "quickjs"] diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..943f0cb Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..ac72c34 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..65dcd68 --- /dev/null +++ b/gradlew @@ -0,0 +1,244 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..6689b85 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/ktlintCodeStyle.xml b/ktlintCodeStyle.xml new file mode 100644 index 0000000..e1422c7 --- /dev/null +++ b/ktlintCodeStyle.xml @@ -0,0 +1,136 @@ + + + + + + + + + +
+ + + + xmlns:android + + ^$ + + + +
+
+ + + + xmlns:.* + + ^$ + + + BY_NAME + +
+
+ + + + .*:id + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + .*:name + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + name + + ^$ + + + +
+
+ + + + style + + ^$ + + + +
+
+ + + + .* + + ^$ + + + BY_NAME + +
+
+ + + + .* + + http://schemas.android.com/apk/res/android + + + ANDROID_ATTRIBUTE_ORDER + +
+
+ + + + .* + + .* + + + BY_NAME + +
+
+
+
+ + +
\ No newline at end of file diff --git a/lib/cryptoaes/build.gradle.kts b/lib/cryptoaes/build.gradle.kts new file mode 100644 index 0000000..a9c8a57 --- /dev/null +++ b/lib/cryptoaes/build.gradle.kts @@ -0,0 +1,22 @@ +plugins { + id("com.android.library") + kotlin("android") +} + +android { + compileSdk = AndroidConfig.compileSdk + + defaultConfig { + minSdk = AndroidConfig.minSdk + } + + namespace = "eu.kanade.tachiyomi.lib.cryptoaes" +} + +repositories { + mavenCentral() +} + +dependencies { + compileOnly(libs.kotlin.stdlib) +} diff --git a/lib/cryptoaes/src/main/java/eu/kanade/tachiyomi/lib/cryptoaes/CryptoAES.kt b/lib/cryptoaes/src/main/java/eu/kanade/tachiyomi/lib/cryptoaes/CryptoAES.kt new file mode 100644 index 0000000..eeb4c20 --- /dev/null +++ b/lib/cryptoaes/src/main/java/eu/kanade/tachiyomi/lib/cryptoaes/CryptoAES.kt @@ -0,0 +1,133 @@ +package eu.kanade.tachiyomi.lib.cryptoaes +// Thanks to Vlad on Stackoverflow: https://stackoverflow.com/a/63701411 + +import android.util.Base64 +import java.security.MessageDigest +import java.util.Arrays +import javax.crypto.Cipher +import javax.crypto.spec.IvParameterSpec +import javax.crypto.spec.SecretKeySpec + +/** + * Conforming with CryptoJS AES method + */ +object CryptoAES { + + private const val KEY_SIZE = 256 + private const val IV_SIZE = 128 + private const val HASH_CIPHER = "AES/CBC/PKCS7PADDING" + private const val AES = "AES" + private const val KDF_DIGEST = "MD5" + + /** + * Decrypt using CryptoJS defaults compatible method. + * Uses KDF equivalent to OpenSSL's EVP_BytesToKey function + * + * http://stackoverflow.com/a/29152379/4405051 + * @param cipherText base64 encoded ciphertext + * @param password passphrase + */ + fun decrypt(cipherText: String, password: String): String { + return try { + val ctBytes = Base64.decode(cipherText, Base64.DEFAULT) + val saltBytes = Arrays.copyOfRange(ctBytes, 8, 16) + val cipherTextBytes = Arrays.copyOfRange(ctBytes, 16, ctBytes.size) + val md5: MessageDigest = MessageDigest.getInstance("MD5") + val keyAndIV = generateKeyAndIV(32, 16, 1, saltBytes, password.toByteArray(Charsets.UTF_8), md5) + decryptAES(cipherTextBytes, + keyAndIV?.get(0) ?: ByteArray(32), + keyAndIV?.get(1) ?: ByteArray(16)) + } catch (e: Exception) { + "" + } + } + + /** + * Decrypt using CryptoJS defaults compatible method. + * + * @param cipherText base64 encoded ciphertext + * @param keyBytes key as a bytearray + * @param ivBytes iv as a bytearray + */ + fun decrypt(cipherText: String, keyBytes: ByteArray, ivBytes: ByteArray): String { + return try { + val cipherTextBytes = Base64.decode(cipherText, Base64.DEFAULT) + decryptAES(cipherTextBytes, keyBytes, ivBytes) + } catch (e: Exception) { + "" + } + } + + /** + * Decrypt using CryptoJS defaults compatible method. + * + * @param cipherTextBytes encrypted text as a bytearray + * @param keyBytes key as a bytearray + * @param ivBytes iv as a bytearray + */ + private fun decryptAES(cipherTextBytes: ByteArray, keyBytes: ByteArray, ivBytes: ByteArray): String { + return try { + val cipher = Cipher.getInstance(HASH_CIPHER) + val keyS = SecretKeySpec(keyBytes, AES) + cipher.init(Cipher.DECRYPT_MODE, keyS, IvParameterSpec(ivBytes)) + cipher.doFinal(cipherTextBytes).toString(Charsets.UTF_8) + } catch (e: Exception) { + "" + } + } + + /** + * Generates a key and an initialization vector (IV) with the given salt and password. + * + * https://stackoverflow.com/a/41434590 + * This method is equivalent to OpenSSL's EVP_BytesToKey function + * (see https://github.com/openssl/openssl/blob/main/crypto/evp/evp_key.c). + * By default, OpenSSL uses a single iteration, MD5 as the algorithm and UTF-8 encoded password data. + * + * @param keyLength the length of the generated key (in bytes) + * @param ivLength the length of the generated IV (in bytes) + * @param iterations the number of digestion rounds + * @param salt the salt data (8 bytes of data or `null`) + * @param password the password data (optional) + * @param md the message digest algorithm to use + * @return an two-element array with the generated key and IV + */ + @Suppress("SameParameterValue") + private fun generateKeyAndIV(keyLength: Int, ivLength: Int, iterations: Int, salt: ByteArray, password: ByteArray, md: MessageDigest): Array? { + val digestLength = md.digestLength + val requiredLength = (keyLength + ivLength + digestLength - 1) / digestLength * digestLength + val generatedData = ByteArray(requiredLength) + var generatedLength = 0 + return try { + md.reset() + + // Repeat process until sufficient data has been generated + while (generatedLength < keyLength + ivLength) { + + // Digest data (last digest if available, password data, salt if available) + if (generatedLength > 0) md.update(generatedData, generatedLength - digestLength, digestLength) + md.update(password) + md.update(salt, 0, 8) + md.digest(generatedData, generatedLength, digestLength) + + // additional rounds + for (i in 1 until iterations) { + md.update(generatedData, generatedLength, digestLength) + md.digest(generatedData, generatedLength, digestLength) + } + generatedLength += digestLength + } + + // Copy key and IV into separate byte arrays + val result = arrayOfNulls(2) + result[0] = generatedData.copyOfRange(0, keyLength) + if (ivLength > 0) result[1] = generatedData.copyOfRange(keyLength, keyLength + ivLength) + result + } catch (e: Exception) { + throw e + } finally { + // Clean out temporary data + Arrays.fill(generatedData, 0.toByte()) + } + } +} diff --git a/lib/cryptoaes/src/main/java/eu/kanade/tachiyomi/lib/cryptoaes/Deobfuscator.kt b/lib/cryptoaes/src/main/java/eu/kanade/tachiyomi/lib/cryptoaes/Deobfuscator.kt new file mode 100644 index 0000000..70f1c42 --- /dev/null +++ b/lib/cryptoaes/src/main/java/eu/kanade/tachiyomi/lib/cryptoaes/Deobfuscator.kt @@ -0,0 +1,73 @@ +package eu.kanade.tachiyomi.lib.cryptoaes +/** + * Helper class to deobfuscate JavaScript strings encoded in JSFuck style. + * + * More info on JSFuck found [here](https://en.wikipedia.org/wiki/JSFuck). + * + * Currently only supports Numeric and decimal ('.') characters + */ +object Deobfuscator { + fun deobfuscateJsPassword(inputString: String): String { + var idx = 0 + val brackets = listOf('[', '(') + val evaluatedString = StringBuilder() + while (idx < inputString.length) { + val chr = inputString[idx] + if (chr !in brackets) { + idx++ + continue + } + val closingIndex = getMatchingBracketIndex(idx, inputString) + if (chr == '[') { + val digit = calculateDigit(inputString.substring(idx, closingIndex)) + evaluatedString.append(digit) + } else { + evaluatedString.append('.') + if (inputString.getOrNull(closingIndex + 1) == '[') { + val skippingIndex = getMatchingBracketIndex(closingIndex + 1, inputString) + idx = skippingIndex + 1 + continue + } + } + idx = closingIndex + 1 + } + return evaluatedString.toString() + } + + private fun getMatchingBracketIndex(openingIndex: Int, inputString: String): Int { + val openingBracket = inputString[openingIndex] + val closingBracket = when (openingBracket) { + '[' -> ']' + else -> ')' + } + var counter = 0 + for (idx in openingIndex until inputString.length) { + if (inputString[idx] == openingBracket) counter++ + if (inputString[idx] == closingBracket) counter-- + + if (counter == 0) return idx // found matching bracket + if (counter < 0) return -1 // unbalanced brackets + } + return -1 // matching bracket not found + } + + private fun calculateDigit(inputSubString: String): Char { + /* 0 == '+[]' + 1 == '+!+[]' + 2 == '!+[]+!+[]' + 3 == '!+[]+!+[]+!+[]' + ... + therefore '!+[]' count equals the digit + if count equals 0, check for '+[]' just to be sure + */ + val digit = "!\\+\\[]".toRegex().findAll(inputSubString).count() // matches '!+[]' + if (digit == 0) { + if ("\\+\\[]".toRegex().findAll(inputSubString).count() == 1) { // matches '+[]' + return '0' + } + } else if (digit in 1..9) { + return digit.digitToChar() + } + return '-' // Illegal digit + } +} diff --git a/lib/dataimage/build.gradle.kts b/lib/dataimage/build.gradle.kts new file mode 100644 index 0000000..eebbf78 --- /dev/null +++ b/lib/dataimage/build.gradle.kts @@ -0,0 +1,24 @@ +plugins { + id("com.android.library") + kotlin("android") +} + +android { + compileSdk = AndroidConfig.compileSdk + + defaultConfig { + minSdk = AndroidConfig.minSdk + } + + namespace = "eu.kanade.tachiyomi.lib.dataimage" +} + +repositories { + mavenCentral() +} + +dependencies { + compileOnly(libs.kotlin.stdlib) + compileOnly(libs.okhttp) + compileOnly(libs.jsoup) +} diff --git a/lib/dataimage/src/main/java/eu/kanade/tachiyomi/lib/dataimage/DataImageInterceptor.kt b/lib/dataimage/src/main/java/eu/kanade/tachiyomi/lib/dataimage/DataImageInterceptor.kt new file mode 100644 index 0000000..3599a89 --- /dev/null +++ b/lib/dataimage/src/main/java/eu/kanade/tachiyomi/lib/dataimage/DataImageInterceptor.kt @@ -0,0 +1,65 @@ +package eu.kanade.tachiyomi.lib.dataimage + +import android.util.Base64 +import okhttp3.Interceptor +import okhttp3.MediaType.Companion.toMediaTypeOrNull +import okhttp3.Protocol +import okhttp3.Response +import okhttp3.ResponseBody.Companion.toResponseBody +import org.jsoup.nodes.Element + +/** + * If a source provides images via a data:image string instead of a URL, use these functions and interceptor + */ + +/** + * Use if the attribute tag could have a data:image string or URL + * Transforms data:image in to a fake URL that OkHttp won't die on + */ +fun Element.dataImageAsUrl(attr: String): String { + return if (this.attr(attr).startsWith("data")) { + "https://127.0.0.1/?" + this.attr(attr).substringAfter(":") + } else { + this.attr("abs:$attr") + } +} + +/** + * Use if the attribute tag has a data:image string but real URLs are on a different attribute + */ +fun Element.dataImageAsUrlOrNull(attr: String): String? { + return if (this.attr(attr).startsWith("data")) { + "https://127.0.0.1/?" + this.attr(attr).substringAfter(":") + } else { + null + } +} + +/** + * Interceptor that detects the URLs we created with the above functions, base64 decodes the data if necessary, + * and builds a response with a valid image that Tachiyomi can display + */ +class DataImageInterceptor : Interceptor { + private val mediaTypePattern = Regex("""(^[^;,]*)[;,]""") + + override fun intercept(chain: Interceptor.Chain): Response { + val url = chain.request().url.toString() + return if (url.startsWith("https://127.0.0.1/?image")) { + val dataString = url.substringAfter("?") + val byteArray = if (dataString.contains("base64")) { + Base64.decode(dataString.substringAfter("base64,"), Base64.DEFAULT) + } else { + dataString.substringAfter(",").toByteArray() + } + val mediaType = mediaTypePattern.find(dataString)!!.value.toMediaTypeOrNull() + Response.Builder().body(byteArray.toResponseBody(mediaType)) + .request(chain.request()) + .protocol(Protocol.HTTP_1_0) + .code(200) + .message("") + .build() + } else { + chain.proceed(chain.request()) + } + } +} diff --git a/lib/i18n/build.gradle.kts b/lib/i18n/build.gradle.kts new file mode 100644 index 0000000..f21bb73 --- /dev/null +++ b/lib/i18n/build.gradle.kts @@ -0,0 +1,22 @@ +plugins { + id("com.android.library") + kotlin("android") +} + +android { + compileSdk = AndroidConfig.compileSdk + + defaultConfig { + minSdk = AndroidConfig.minSdk + } + + namespace = "eu.kanade.tachiyomi.lib.i18n" +} + +repositories { + mavenCentral() +} + +dependencies { + compileOnly(libs.kotlin.stdlib) +} diff --git a/lib/i18n/src/main/java/eu/kanade/tachiyomi/lib/i18n/Intl.kt b/lib/i18n/src/main/java/eu/kanade/tachiyomi/lib/i18n/Intl.kt new file mode 100644 index 0000000..cdb02f5 --- /dev/null +++ b/lib/i18n/src/main/java/eu/kanade/tachiyomi/lib/i18n/Intl.kt @@ -0,0 +1,93 @@ +package eu.kanade.tachiyomi.lib.i18n + +import org.jetbrains.annotations.PropertyKey +import java.io.InputStreamReader +import java.text.Collator +import java.util.Locale +import java.util.PropertyResourceBundle + +/** + * A simple wrapper to make internationalization easier to use in sources. + * + * Message files should be put in the `assets/i18n` folder, with the name + * `messages_{iso_639_1}.properties`, where `iso_639_1` should be using + * snake case and be in lowercase. + * + * To edit the strings, use the official JetBrain's + * [Resource Bundle Editor plugin](https://plugins.jetbrains.com/plugin/17035-resource-bundle-editor). + * + * Make sure to configure Android Studio to save Properties files as UTF-8 as well. + * You can refer to this [documentation](https://www.jetbrains.com/help/idea/properties-files.html#1cbc434e) + * on how to do so. + */ +class Intl( + language: String, + availableLanguages: Set, + private val baseLanguage: String, + private val classLoader: ClassLoader, + private val createMessageFileName: (String) -> String = { createDefaultMessageFileName(it) } +) { + + val chosenLanguage: String = when (language) { + in availableLanguages -> language + else -> baseLanguage + } + + private val locale: Locale = Locale.forLanguageTag(chosenLanguage) + + val collator: Collator = Collator.getInstance(locale) + + private val baseBundle: PropertyResourceBundle by lazy { createBundle(baseLanguage) } + + private val bundle: PropertyResourceBundle by lazy { + if (chosenLanguage == baseLanguage) baseBundle else createBundle(chosenLanguage) + } + + /** + * Returns the string from the message file. If the [key] is not present + * in the current language, the English value will be returned. If the [key] + * is also not present in English, the [key] surrounded by brackets will be returned. + */ + @Suppress("InvalidBundleOrProperty") + operator fun get(@PropertyKey(resourceBundle = "i18n.messages") key: String): String = when { + bundle.containsKey(key) -> bundle.getString(key) + baseBundle.containsKey(key) -> baseBundle.getString(key) + else -> "[$key]" + } + + /** + * Uses the string as a format string and returns a string obtained by + * substituting the specified arguments, using the instance locale. + */ + @Suppress("InvalidBundleOrProperty") + fun format(@PropertyKey(resourceBundle = "i18n.messages") key: String, vararg args: Any?) = + get(key).format(locale, *args) + + fun languageDisplayName(localeCode: String): String = + Locale.forLanguageTag(localeCode) + .getDisplayName(locale) + .replaceFirstChar { if (it.isLowerCase()) it.titlecase(locale) else it.toString() } + + /** + * Creates a [PropertyResourceBundle] instance from the language specified. + * The expected message file will be loaded from the `res/raw`. + * + * The [PropertyResourceBundle] is used directly instead of [java.util.ResourceBundle] + * because the later has issues with UTF-8 files in Java 8, which would need + * the message files to be saved in ISO-8859-1, making the file readability bad. + */ + private fun createBundle(lang: String): PropertyResourceBundle { + val fileName = createMessageFileName(lang) + val fileContent = classLoader.getResourceAsStream(fileName) + + return PropertyResourceBundle(InputStreamReader(fileContent, "UTF-8")) + } + + companion object { + fun createDefaultMessageFileName(lang: String): String { + val langSnakeCase = lang.replace("-", "_").lowercase() + + return "assets/i18n/messages_$langSnakeCase.properties" + } + } +} diff --git a/lib/randomua/build.gradle.kts b/lib/randomua/build.gradle.kts new file mode 100644 index 0000000..36ef0d6 --- /dev/null +++ b/lib/randomua/build.gradle.kts @@ -0,0 +1,23 @@ +plugins { + id("com.android.library") + kotlin("android") + id("kotlinx-serialization") +} + +android { + compileSdk = AndroidConfig.compileSdk + + defaultConfig { + minSdk = AndroidConfig.minSdk + } + + namespace = "eu.kanade.tachiyomi.lib.randomua" +} + +repositories { + mavenCentral() +} + +dependencies { + compileOnly(libs.bundles.common) +} diff --git a/lib/randomua/src/main/java/eu/kanade/tachiyomi/lib/randomua/RandomUserAgentInterceptor.kt b/lib/randomua/src/main/java/eu/kanade/tachiyomi/lib/randomua/RandomUserAgentInterceptor.kt new file mode 100644 index 0000000..0d36add --- /dev/null +++ b/lib/randomua/src/main/java/eu/kanade/tachiyomi/lib/randomua/RandomUserAgentInterceptor.kt @@ -0,0 +1,121 @@ +package eu.kanade.tachiyomi.lib.randomua + +import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.network.NetworkHelper +import kotlinx.serialization.Serializable +import kotlinx.serialization.decodeFromString +import kotlinx.serialization.json.Json +import okhttp3.Interceptor +import okhttp3.OkHttpClient +import okhttp3.Response +import uy.kohesive.injekt.injectLazy +import java.io.IOException + +private class RandomUserAgentInterceptor( + private val userAgentType: UserAgentType, + private val customUA: String?, + private val filterInclude: List, + private val filterExclude: List, +) : Interceptor { + + private var userAgent: String? = null + + private val json: Json by injectLazy() + + private val network: NetworkHelper by injectLazy() + + private val client = network.client + + override fun intercept(chain: Interceptor.Chain): Response { + try { + val originalRequest = chain.request() + + val newUserAgent = getUserAgent() + ?: return chain.proceed(originalRequest) + + val originalHeaders = originalRequest.headers + + val modifiedHeaders = originalHeaders.newBuilder() + .set("User-Agent", newUserAgent) + .build() + + return chain.proceed( + originalRequest.newBuilder() + .headers(modifiedHeaders) + .build() + ) + } catch (e: Exception) { + throw IOException(e.message) + } + } + + private fun getUserAgent(): String? { + if (userAgentType == UserAgentType.OFF) { + return customUA?.ifBlank { null } + } + + if (!userAgent.isNullOrEmpty()) return userAgent + + val uaResponse = client.newCall(GET(UA_DB_URL)).execute() + + if (!uaResponse.isSuccessful) { + uaResponse.close() + return null + } + + val userAgentList = uaResponse.use { json.decodeFromString(it.body.string()) } + + return when (userAgentType) { + UserAgentType.DESKTOP -> userAgentList.desktop + UserAgentType.MOBILE -> userAgentList.mobile + else -> error("Expected UserAgentType.DESKTOP or UserAgentType.MOBILE but got UserAgentType.${userAgentType.name} instead") + } + .filter { + filterInclude.isEmpty() || filterInclude.any { filter -> + it.contains(filter, ignoreCase = true) + } + } + .filterNot { + filterExclude.any { filter -> + it.contains(filter, ignoreCase = true) + } + } + .randomOrNull() + .also { userAgent = it } + } + + companion object { + private const val UA_DB_URL = "https://tachiyomiorg.github.io/user-agents/user-agents.json" + } +} + +/** + * Helper function to add a latest random user agent interceptor. + * The interceptor will added at the first position in the chain, + * so the CloudflareInterceptor in the app will be able to make usage of it. + * + * @param userAgentType User Agent type one of (DESKTOP, MOBILE, OFF) + * @param customUA Optional custom user agent used when userAgentType is OFF + * @param filterInclude Filter to only include User Agents containing these strings + * @param filterExclude Filter to exclude User Agents containing these strings + */ +fun OkHttpClient.Builder.setRandomUserAgent( + userAgentType: UserAgentType, + customUA: String? = null, + filterInclude: List = emptyList(), + filterExclude: List = emptyList(), +) = apply { + interceptors().add(0, RandomUserAgentInterceptor(userAgentType, customUA, filterInclude, filterExclude)) +} + +enum class UserAgentType { + MOBILE, + DESKTOP, + OFF +} + +@Serializable +private data class UserAgentList( + val desktop: List, + val mobile: List +) diff --git a/lib/randomua/src/main/java/eu/kanade/tachiyomi/lib/randomua/RandomUserAgentPreference.kt b/lib/randomua/src/main/java/eu/kanade/tachiyomi/lib/randomua/RandomUserAgentPreference.kt new file mode 100644 index 0000000..a92e67f --- /dev/null +++ b/lib/randomua/src/main/java/eu/kanade/tachiyomi/lib/randomua/RandomUserAgentPreference.kt @@ -0,0 +1,70 @@ +package eu.kanade.tachiyomi.lib.randomua + +import android.content.SharedPreferences +import android.widget.Toast +import androidx.preference.EditTextPreference +import androidx.preference.ListPreference +import androidx.preference.PreferenceScreen +import okhttp3.Headers + + + /** + * Helper function to return UserAgentType based on SharedPreference value + */ +fun SharedPreferences.getPrefUAType(): UserAgentType { + return when (getString(PREF_KEY_RANDOM_UA, "off")) { + "mobile" -> UserAgentType.MOBILE + "desktop" -> UserAgentType.DESKTOP + else -> UserAgentType.OFF + } +} + +/** + * Helper function to return custom UserAgent from SharedPreference + */ +fun SharedPreferences.getPrefCustomUA(): String? { + return getString(PREF_KEY_CUSTOM_UA, null) +} + +/** + * Helper function to add Random User-Agent settings to SharedPreference + * + * @param screen, PreferenceScreen from `setupPreferenceScreen` + */ +fun addRandomUAPreferenceToScreen( + screen: PreferenceScreen, +) { + ListPreference(screen.context).apply { + key = PREF_KEY_RANDOM_UA + title = TITLE_RANDOM_UA + entries = RANDOM_UA_ENTRIES + entryValues = RANDOM_UA_VALUES + summary = "%s" + setDefaultValue("off") + }.also(screen::addPreference) + + EditTextPreference(screen.context).apply { + key = PREF_KEY_CUSTOM_UA + title = TITLE_CUSTOM_UA + summary = CUSTOM_UA_SUMMARY + setOnPreferenceChangeListener { _, newValue -> + try { + Headers.Builder().add("User-Agent", newValue as String).build() + true + } catch (e: IllegalArgumentException) { + Toast.makeText(screen.context, "User Agent invalid:${e.message}", Toast.LENGTH_LONG).show() + false + } + } + }.also(screen::addPreference) +} + +const val TITLE_RANDOM_UA = "Random User-Agent (Requires Restart)" +const val PREF_KEY_RANDOM_UA = "pref_key_random_ua_" +val RANDOM_UA_ENTRIES = arrayOf("OFF", "Desktop", "Mobile") +val RANDOM_UA_VALUES = arrayOf("off", "desktop", "mobile") + +const val TITLE_CUSTOM_UA = "Custom User-Agent (Requires Restart)" +const val PREF_KEY_CUSTOM_UA = "pref_key_custom_ua_" +const val CUSTOM_UA_SUMMARY = "Leave blank to use application default user-agent (IGNORED if Random User-Agent is enabled)" + diff --git a/lib/synchrony/build.gradle.kts b/lib/synchrony/build.gradle.kts new file mode 100644 index 0000000..c178641 --- /dev/null +++ b/lib/synchrony/build.gradle.kts @@ -0,0 +1,22 @@ +plugins { + id("com.android.library") + kotlin("android") +} + +android { + compileSdk = AndroidConfig.compileSdk + + defaultConfig { + minSdk = AndroidConfig.minSdk + } + + namespace = "eu.kanade.tachiyomi.lib.synchrony" +} + +repositories { + mavenCentral() +} + +dependencies { + compileOnly(libs.bundles.common) +} diff --git a/lib/synchrony/src/main/assets/synchrony-v2.4.2.1.js b/lib/synchrony/src/main/assets/synchrony-v2.4.2.1.js new file mode 100644 index 0000000..fe44758 --- /dev/null +++ b/lib/synchrony/src/main/assets/synchrony-v2.4.2.1.js @@ -0,0 +1,289 @@ +var XX=Object.create;var xo=Object.defineProperty,KX=Object.defineProperties,QX=Object.getOwnPropertyDescriptor,ZX=Object.getOwnPropertyDescriptors,eK=Object.getOwnPropertyNames,g8=Object.getOwnPropertySymbols,tK=Object.getPrototypeOf,D8=Object.prototype.hasOwnProperty,rK=Object.prototype.propertyIsEnumerable;var y8=(i,s,u)=>s in i?xo(i,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):i[s]=u,ys=(i,s)=>{for(var u in s||(s={}))D8.call(s,u)&&y8(i,u,s[u]);if(g8)for(var u of g8(s))rK.call(s,u)&&y8(i,u,s[u]);return i},ry=(i,s)=>KX(i,ZX(s)),nK=i=>xo(i,"__esModule",{value:!0});var be=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),E8=(i,s)=>{for(var u in s)xo(i,u,{get:s[u],enumerable:!0})},iK=(i,s,u,c)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of eK(s))!D8.call(i,f)&&(u||f!=="default")&&xo(i,f,{get:()=>s[f],enumerable:!(c=QX(s,f))||c.enumerable});return i},kr=(i,s)=>iK(nK(xo(i!=null?XX(tK(i)):{},"default",!s&&i&&i.__esModule?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var rt=(i,s,u)=>new Promise((c,f)=>{var h=x=>{try{C(u.next(x))}catch(I){f(I)}},g=x=>{try{C(u.throw(x))}catch(I){f(I)}},C=x=>x.done?c(x.value):Promise.resolve(x.value).then(h,g);C((u=u.apply(i,s)).next())});var C8=be(b8=>{(function i(s){"use strict";var u,c,f,h,g,C;function x(J){var W={},$,G;for($ in J)J.hasOwnProperty($)&&(G=J[$],typeof G=="object"&&G!==null?W[$]=x(G):W[$]=G);return W}function I(J,W){var $,G,ce,se;for(G=J.length,ce=0;G;)$=G>>>1,se=ce+$,W(J[se])?G=$:(ce=se+1,G-=$+1);return ce}u={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",StaticBlock:"StaticBlock",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},f={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},h={},g={},C={},c={Break:h,Skip:g,Remove:C};function N(J,W){this.parent=J,this.key=W}N.prototype.replace=function(W){this.parent[this.key]=W},N.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function j(J,W,$,G){this.node=J,this.path=W,this.wrap=$,this.ref=G}function O(){}O.prototype.path=function(){var W,$,G,ce,se,he;function ie(K,ge){if(Array.isArray(ge))for(G=0,ce=ge.length;G=0;--$)if(J[$].node===W)return!0;return!1}O.prototype.traverse=function(W,$){var G,ce,se,he,ie,K,ge,Ie,Pe,Ne,we,Ze;for(this.__initialize(W,$),Ze={},G=this.__worklist,ce=this.__leavelist,G.push(new j(W,null,null,null)),ce.push(new j(null,null,null,null));G.length;){if(se=G.pop(),se===Ze){if(se=ce.pop(),K=this.__execute($.leave,se),this.__state===h||K===h)return;continue}if(se.node){if(K=this.__execute($.enter,se),this.__state===h||K===h)return;if(G.push(Ze),ce.push(se),this.__state===g||K===g)continue;if(he=se.node,ie=he.type||se.wrap,Ne=this.__keys[ie],!Ne)if(this.__fallback)Ne=this.__fallback(he);else throw new Error("Unknown node type "+ie+".");for(Ie=Ne.length;(Ie-=1)>=0;)if(ge=Ne[Ie],we=he[ge],!!we){if(Array.isArray(we)){for(Pe=we.length;(Pe-=1)>=0;)if(!!we[Pe]&&!Y(ce,we[Pe])){if(V(ie,Ne[Ie]))se=new j(we[Pe],[ge,Pe],"Property",null);else if(R(we[Pe]))se=new j(we[Pe],[ge,Pe],null,null);else continue;G.push(se)}}else if(R(we)){if(Y(ce,we))continue;G.push(new j(we,ge,null,null))}}}}},O.prototype.replace=function(W,$){var G,ce,se,he,ie,K,ge,Ie,Pe,Ne,we,Ze,vt;function le(Gt){var xr,ln,Le,Et;if(Gt.ref.remove()){for(ln=Gt.ref.key,Et=Gt.ref.parent,xr=G.length;xr--;)if(Le=G[xr],Le.ref&&Le.ref.parent===Et){if(Le.ref.key=0;)if(vt=Pe[ge],Ne=se[vt],!!Ne)if(Array.isArray(Ne)){for(Ie=Ne.length;(Ie-=1)>=0;)if(!!Ne[Ie]){if(V(he,Pe[ge]))K=new j(Ne[Ie],[vt,Ie],"Property",new N(Ne,Ie));else if(R(Ne[Ie]))K=new j(Ne[Ie],[vt,Ie],null,new N(Ne,Ie));else continue;G.push(K)}}else R(Ne)&&G.push(new j(Ne,vt,null,new N(se,vt)))}}return Ze.root};function Z(J,W){var $=new O;return $.traverse(J,W)}function ue(J,W){var $=new O;return $.replace(J,W)}function oe(J,W){var $;return $=I(W,function(ce){return ce.range[0]>J.range[0]}),J.extendedRange=[J.range[0],J.range[1]],$!==W.length&&(J.extendedRange[1]=W[$].range[0]),$-=1,$>=0&&(J.extendedRange[0]=W[$].range[1]),J}function fe(J,W,$){var G=[],ce,se,he,ie;if(!J.range)throw new Error("attachComments needs range information");if(!$.length){if(W.length){for(he=0,se=W.length;heK.range[0]));)ge.extendedRange[1]===K.range[0]?(K.leadingComments||(K.leadingComments=[]),K.leadingComments.push(ge),G.splice(ie,1)):ie+=1;if(ie===G.length)return c.Break;if(G[ie].extendedRange[0]>K.range[1])return c.Skip}}),ie=0,Z(J,{leave:function(K){for(var ge;ieK.range[1])return c.Skip}}),J}return s.Syntax=u,s.traverse=Z,s.replace=ue,s.attachComments=fe,s.VisitorKeys=f,s.VisitorOption=c,s.Controller=O,s.cloneEnvironment=function(){return i({})},s})(b8)});var v8=be((Ute,A8)=>{(function(){"use strict";function i(g){if(g==null)return!1;switch(g.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function s(g){if(g==null)return!1;switch(g.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function u(g){if(g==null)return!1;switch(g.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function c(g){return u(g)||g!=null&&g.type==="FunctionDeclaration"}function f(g){switch(g.type){case"IfStatement":return g.alternate!=null?g.alternate:g.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return g.body}return null}function h(g){var C;if(g.type!=="IfStatement"||g.alternate==null)return!1;C=g.consequent;do{if(C.type==="IfStatement"&&C.alternate==null)return!0;C=f(C)}while(C);return!1}A8.exports={isExpression:i,isStatement:u,isIterationStatement:s,isSourceElement:c,isProblematicIfStatement:h,trailingStatement:f}})()});var ny=be((Wte,x8)=>{(function(){"use strict";var i,s,u,c,f,h;s={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},i={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function g(Z){return 48<=Z&&Z<=57}function C(Z){return 48<=Z&&Z<=57||97<=Z&&Z<=102||65<=Z&&Z<=70}function x(Z){return Z>=48&&Z<=55}u=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function I(Z){return Z===32||Z===9||Z===11||Z===12||Z===160||Z>=5760&&u.indexOf(Z)>=0}function N(Z){return Z===10||Z===13||Z===8232||Z===8233}function j(Z){if(Z<=65535)return String.fromCharCode(Z);var ue=String.fromCharCode(Math.floor((Z-65536)/1024)+55296),oe=String.fromCharCode((Z-65536)%1024+56320);return ue+oe}for(c=new Array(128),h=0;h<128;++h)c[h]=h>=97&&h<=122||h>=65&&h<=90||h===36||h===95;for(f=new Array(128),h=0;h<128;++h)f[h]=h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===36||h===95;function O(Z){return Z<128?c[Z]:s.NonAsciiIdentifierStart.test(j(Z))}function R(Z){return Z<128?f[Z]:s.NonAsciiIdentifierPart.test(j(Z))}function V(Z){return Z<128?c[Z]:i.NonAsciiIdentifierStart.test(j(Z))}function Y(Z){return Z<128?f[Z]:i.NonAsciiIdentifierPart.test(j(Z))}x8.exports={isDecimalDigit:g,isHexDigit:C,isOctalDigit:x,isWhiteSpace:I,isLineTerminator:N,isIdentifierStartES5:O,isIdentifierPartES5:R,isIdentifierStartES6:V,isIdentifierPartES6:Y}})()});var F8=be((zte,S8)=>{(function(){"use strict";var i=ny();function s(O){switch(O){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function u(O,R){return!R&&O==="yield"?!1:c(O,R)}function c(O,R){if(R&&s(O))return!0;switch(O.length){case 2:return O==="if"||O==="in"||O==="do";case 3:return O==="var"||O==="for"||O==="new"||O==="try";case 4:return O==="this"||O==="else"||O==="case"||O==="void"||O==="with"||O==="enum";case 5:return O==="while"||O==="break"||O==="catch"||O==="throw"||O==="const"||O==="yield"||O==="class"||O==="super";case 6:return O==="return"||O==="typeof"||O==="delete"||O==="switch"||O==="export"||O==="import";case 7:return O==="default"||O==="finally"||O==="extends";case 8:return O==="function"||O==="continue"||O==="debugger";case 10:return O==="instanceof";default:return!1}}function f(O,R){return O==="null"||O==="true"||O==="false"||u(O,R)}function h(O,R){return O==="null"||O==="true"||O==="false"||c(O,R)}function g(O){return O==="eval"||O==="arguments"}function C(O){var R,V,Y;if(O.length===0||(Y=O.charCodeAt(0),!i.isIdentifierStartES5(Y)))return!1;for(R=1,V=O.length;R=V||(Z=O.charCodeAt(R),!(56320<=Z&&Z<=57343)))return!1;Y=x(Y,Z)}if(!ue(Y))return!1;ue=i.isIdentifierPartES6}return!0}function N(O,R){return C(O)&&!f(O,R)}function j(O,R){return I(O)&&!h(O,R)}S8.exports={isKeywordES5:u,isKeywordES6:c,isReservedWordES5:f,isReservedWordES6:h,isRestrictedWord:g,isIdentifierNameES5:C,isIdentifierNameES6:I,isIdentifierES5:N,isIdentifierES6:j}})()});var w8=be(Np=>{(function(){"use strict";Np.ast=v8(),Np.code=ny(),Np.keyword=F8()})()});var T8=be(iy=>{var B8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");iy.encode=function(i){if(0<=i&&i{var k8=T8(),sy=5,_8=1<>1;return s?-u:u}ay.encode=function(s){var u="",c,f=sK(s);do c=f&N8,f>>>=sy,f>0&&(c|=I8),u+=k8.encode(c);while(f>0);return u};ay.decode=function(s,u,c){var f=s.length,h=0,g=0,C,x;do{if(u>=f)throw new Error("Expected more digits in base 64 VLQ value.");if(x=k8.decode(s.charCodeAt(u++)),x===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));C=!!(x&I8),x&=N8,h=h+(x<{function uK(i,s,u){if(s in i)return i[s];if(arguments.length===3)return u;throw new Error('"'+s+'" is a required argument.')}rr.getArg=uK;var P8=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,oK=/^data:.+\,.+$/;function So(i){var s=i.match(P8);return s?{scheme:s[1],auth:s[2],host:s[3],port:s[4],path:s[5]}:null}rr.urlParse=So;function La(i){var s="";return i.scheme&&(s+=i.scheme+":"),s+="//",i.auth&&(s+=i.auth+"@"),i.host&&(s+=i.host),i.port&&(s+=":"+i.port),i.path&&(s+=i.path),s}rr.urlGenerate=La;function oy(i){var s=i,u=So(i);if(u){if(!u.path)return i;s=u.path}for(var c=rr.isAbsolute(s),f=s.split(/\/+/),h,g=0,C=f.length-1;C>=0;C--)h=f[C],h==="."?f.splice(C,1):h===".."?g++:g>0&&(h===""?(f.splice(C+1,g),g=0):(f.splice(C,2),g--));return s=f.join("/"),s===""&&(s=c?"/":"."),u?(u.path=s,La(u)):s}rr.normalize=oy;function O8(i,s){i===""&&(i="."),s===""&&(s=".");var u=So(s),c=So(i);if(c&&(i=c.path||"/"),u&&!u.scheme)return c&&(u.scheme=c.scheme),La(u);if(u||s.match(oK))return s;if(c&&!c.host&&!c.path)return c.host=s,La(c);var f=s.charAt(0)==="/"?s:oy(i.replace(/\/+$/,"")+"/"+s);return c?(c.path=f,La(c)):f}rr.join=O8;rr.isAbsolute=function(i){return i.charAt(0)==="/"||P8.test(i)};function cK(i,s){i===""&&(i="."),i=i.replace(/\/$/,"");for(var u=0;s.indexOf(i+"/")!==0;){var c=i.lastIndexOf("/");if(c<0||(i=i.slice(0,c),i.match(/^([^\/]+:\/)?\/*$/)))return s;++u}return Array(u+1).join("../")+s.substr(i.length+1)}rr.relative=cK;var L8=function(){var i=Object.create(null);return!("__proto__"in i)}();function M8(i){return i}function lK(i){return j8(i)?"$"+i:i}rr.toSetString=L8?M8:lK;function pK(i){return j8(i)?i.slice(1):i}rr.fromSetString=L8?M8:pK;function j8(i){if(!i)return!1;var s=i.length;if(s<9||i.charCodeAt(s-1)!==95||i.charCodeAt(s-2)!==95||i.charCodeAt(s-3)!==111||i.charCodeAt(s-4)!==116||i.charCodeAt(s-5)!==111||i.charCodeAt(s-6)!==114||i.charCodeAt(s-7)!==112||i.charCodeAt(s-8)!==95||i.charCodeAt(s-9)!==95)return!1;for(var u=s-10;u>=0;u--)if(i.charCodeAt(u)!==36)return!1;return!0}function fK(i,s,u){var c=Ma(i.source,s.source);return c!==0||(c=i.originalLine-s.originalLine,c!==0)||(c=i.originalColumn-s.originalColumn,c!==0||u)||(c=i.generatedColumn-s.generatedColumn,c!==0)||(c=i.generatedLine-s.generatedLine,c!==0)?c:Ma(i.name,s.name)}rr.compareByOriginalPositions=fK;function hK(i,s,u){var c=i.generatedLine-s.generatedLine;return c!==0||(c=i.generatedColumn-s.generatedColumn,c!==0||u)||(c=Ma(i.source,s.source),c!==0)||(c=i.originalLine-s.originalLine,c!==0)||(c=i.originalColumn-s.originalColumn,c!==0)?c:Ma(i.name,s.name)}rr.compareByGeneratedPositionsDeflated=hK;function Ma(i,s){return i===s?0:i===null?1:s===null?-1:i>s?1:-1}function dK(i,s){var u=i.generatedLine-s.generatedLine;return u!==0||(u=i.generatedColumn-s.generatedColumn,u!==0)||(u=Ma(i.source,s.source),u!==0)||(u=i.originalLine-s.originalLine,u!==0)||(u=i.originalColumn-s.originalColumn,u!==0)?u:Ma(i.name,s.name)}rr.compareByGeneratedPositionsInflated=dK;function mK(i){return JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}rr.parseSourceMapInput=mK;function gK(i,s,u){if(s=s||"",i&&(i[i.length-1]!=="/"&&s[0]!=="/"&&(i+="/"),s=i+s),u){var c=So(u);if(!c)throw new Error("sourceMapURL could not be parsed");if(c.path){var f=c.path.lastIndexOf("/");f>=0&&(c.path=c.path.substring(0,f+1))}s=O8(La(c),s)}return oy(s)}rr.computeSourceURL=gK});var py=be(R8=>{var cy=ja(),ly=Object.prototype.hasOwnProperty,Ds=typeof Map<"u";function Qn(){this._array=[],this._set=Ds?new Map:Object.create(null)}Qn.fromArray=function(s,u){for(var c=new Qn,f=0,h=s.length;f=0)return u}else{var c=cy.toSetString(s);if(ly.call(this._set,c))return this._set[c]}throw new Error('"'+s+'" is not in the set.')};Qn.prototype.at=function(s){if(s>=0&&s{var V8=ja();function yK(i,s){var u=i.generatedLine,c=s.generatedLine,f=i.generatedColumn,h=s.generatedColumn;return c>u||c==u&&h>=f||V8.compareByGeneratedPositionsInflated(i,s)<=0}function Ip(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ip.prototype.unsortedForEach=function(s,u){this._array.forEach(s,u)};Ip.prototype.add=function(s){yK(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))};Ip.prototype.toArray=function(){return this._sorted||(this._array.sort(V8.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};q8.MappingList=Ip});var fy=be(U8=>{var Fo=uy(),At=ja(),Pp=py().ArraySet,DK=G8().MappingList;function Yr(i){i||(i={}),this._file=At.getArg(i,"file",null),this._sourceRoot=At.getArg(i,"sourceRoot",null),this._skipValidation=At.getArg(i,"skipValidation",!1),this._sources=new Pp,this._names=new Pp,this._mappings=new DK,this._sourcesContents=null}Yr.prototype._version=3;Yr.fromSourceMap=function(s){var u=s.sourceRoot,c=new Yr({file:s.file,sourceRoot:u});return s.eachMapping(function(f){var h={generated:{line:f.generatedLine,column:f.generatedColumn}};f.source!=null&&(h.source=f.source,u!=null&&(h.source=At.relative(u,h.source)),h.original={line:f.originalLine,column:f.originalColumn},f.name!=null&&(h.name=f.name)),c.addMapping(h)}),s.sources.forEach(function(f){var h=f;u!==null&&(h=At.relative(u,f)),c._sources.has(h)||c._sources.add(h);var g=s.sourceContentFor(f);g!=null&&c.setSourceContent(f,g)}),c};Yr.prototype.addMapping=function(s){var u=At.getArg(s,"generated"),c=At.getArg(s,"original",null),f=At.getArg(s,"source",null),h=At.getArg(s,"name",null);this._skipValidation||this._validateMapping(u,c,f,h),f!=null&&(f=String(f),this._sources.has(f)||this._sources.add(f)),h!=null&&(h=String(h),this._names.has(h)||this._names.add(h)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:f,name:h})};Yr.prototype.setSourceContent=function(s,u){var c=s;this._sourceRoot!=null&&(c=At.relative(this._sourceRoot,c)),u!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[At.toSetString(c)]=u):this._sourcesContents&&(delete this._sourcesContents[At.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Yr.prototype.applySourceMap=function(s,u,c){var f=u;if(u==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);f=s.file}var h=this._sourceRoot;h!=null&&(f=At.relative(h,f));var g=new Pp,C=new Pp;this._mappings.unsortedForEach(function(x){if(x.source===f&&x.originalLine!=null){var I=s.originalPositionFor({line:x.originalLine,column:x.originalColumn});I.source!=null&&(x.source=I.source,c!=null&&(x.source=At.join(c,x.source)),h!=null&&(x.source=At.relative(h,x.source)),x.originalLine=I.line,x.originalColumn=I.column,I.name!=null&&(x.name=I.name))}var N=x.source;N!=null&&!g.has(N)&&g.add(N);var j=x.name;j!=null&&!C.has(j)&&C.add(j)},this),this._sources=g,this._names=C,s.sources.forEach(function(x){var I=s.sourceContentFor(x);I!=null&&(c!=null&&(x=At.join(c,x)),h!=null&&(x=At.relative(h,x)),this.setSourceContent(x,I))},this)};Yr.prototype._validateMapping=function(s,u,c,f){if(u&&typeof u.line!="number"&&typeof u.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!u&&!c&&!f)){if(s&&"line"in s&&"column"in s&&u&&"line"in u&&"column"in u&&s.line>0&&s.column>=0&&u.line>0&&u.column>=0&&c)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:c,original:u,name:f}))}};Yr.prototype._serializeMappings=function(){for(var s=0,u=1,c=0,f=0,h=0,g=0,C="",x,I,N,j,O=this._mappings.toArray(),R=0,V=O.length;R0){if(!At.compareByGeneratedPositionsInflated(I,O[R-1]))continue;x+=","}x+=Fo.encode(I.generatedColumn-s),s=I.generatedColumn,I.source!=null&&(j=this._sources.indexOf(I.source),x+=Fo.encode(j-g),g=j,x+=Fo.encode(I.originalLine-1-f),f=I.originalLine-1,x+=Fo.encode(I.originalColumn-c),c=I.originalColumn,I.name!=null&&(N=this._names.indexOf(I.name),x+=Fo.encode(N-h),h=N)),C+=x}return C};Yr.prototype._generateSourcesContent=function(s,u){return s.map(function(c){if(!this._sourcesContents)return null;u!=null&&(c=At.relative(u,c));var f=At.toSetString(c);return Object.prototype.hasOwnProperty.call(this._sourcesContents,f)?this._sourcesContents[f]:null},this)};Yr.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s};Yr.prototype.toString=function(){return JSON.stringify(this.toJSON())};U8.SourceMapGenerator=Yr});var W8=be(Es=>{Es.GREATEST_LOWER_BOUND=1;Es.LEAST_UPPER_BOUND=2;function hy(i,s,u,c,f,h){var g=Math.floor((s-i)/2)+i,C=f(u,c[g],!0);return C===0?g:C>0?s-g>1?hy(g,s,u,c,f,h):h==Es.LEAST_UPPER_BOUND?s1?hy(i,g,u,c,f,h):h==Es.LEAST_UPPER_BOUND?g:i<0?-1:i}Es.search=function(s,u,c,f){if(u.length===0)return-1;var h=hy(-1,u.length,s,u,c,f||Es.GREATEST_LOWER_BOUND);if(h<0)return-1;for(;h-1>=0&&c(u[h],u[h-1],!0)===0;)--h;return h}});var $8=be(z8=>{function dy(i,s,u){var c=i[s];i[s]=i[u],i[u]=c}function EK(i,s){return Math.round(i+Math.random()*(s-i))}function my(i,s,u,c){if(u{var De=ja(),gy=W8(),Ra=py().ArraySet,bK=uy(),wo=$8().quickSort;function nt(i,s){var u=i;return typeof i=="string"&&(u=De.parseSourceMapInput(i)),u.sections!=null?new bn(u,s):new Mt(u,s)}nt.fromSourceMap=function(i,s){return Mt.fromSourceMap(i,s)};nt.prototype._version=3;nt.prototype.__generatedMappings=null;Object.defineProperty(nt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});nt.prototype.__originalMappings=null;Object.defineProperty(nt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});nt.prototype._charIsMappingSeparator=function(s,u){var c=s.charAt(u);return c===";"||c===","};nt.prototype._parseMappings=function(s,u){throw new Error("Subclasses must implement _parseMappings")};nt.GENERATED_ORDER=1;nt.ORIGINAL_ORDER=2;nt.GREATEST_LOWER_BOUND=1;nt.LEAST_UPPER_BOUND=2;nt.prototype.eachMapping=function(s,u,c){var f=u||null,h=c||nt.GENERATED_ORDER,g;switch(h){case nt.GENERATED_ORDER:g=this._generatedMappings;break;case nt.ORIGINAL_ORDER:g=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var C=this.sourceRoot;g.map(function(x){var I=x.source===null?null:this._sources.at(x.source);return I=De.computeSourceURL(C,I,this._sourceMapURL),{source:I,generatedLine:x.generatedLine,generatedColumn:x.generatedColumn,originalLine:x.originalLine,originalColumn:x.originalColumn,name:x.name===null?null:this._names.at(x.name)}},this).forEach(s,f)};nt.prototype.allGeneratedPositionsFor=function(s){var u=De.getArg(s,"line"),c={source:De.getArg(s,"source"),originalLine:u,originalColumn:De.getArg(s,"column",0)};if(c.source=this._findSourceIndex(c.source),c.source<0)return[];var f=[],h=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",De.compareByOriginalPositions,gy.LEAST_UPPER_BOUND);if(h>=0){var g=this._originalMappings[h];if(s.column===void 0)for(var C=g.originalLine;g&&g.originalLine===C;)f.push({line:De.getArg(g,"generatedLine",null),column:De.getArg(g,"generatedColumn",null),lastColumn:De.getArg(g,"lastGeneratedColumn",null)}),g=this._originalMappings[++h];else for(var x=g.originalColumn;g&&g.originalLine===u&&g.originalColumn==x;)f.push({line:De.getArg(g,"generatedLine",null),column:De.getArg(g,"generatedColumn",null),lastColumn:De.getArg(g,"lastGeneratedColumn",null)}),g=this._originalMappings[++h]}return f};Op.SourceMapConsumer=nt;function Mt(i,s){var u=i;typeof i=="string"&&(u=De.parseSourceMapInput(i));var c=De.getArg(u,"version"),f=De.getArg(u,"sources"),h=De.getArg(u,"names",[]),g=De.getArg(u,"sourceRoot",null),C=De.getArg(u,"sourcesContent",null),x=De.getArg(u,"mappings"),I=De.getArg(u,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);g&&(g=De.normalize(g)),f=f.map(String).map(De.normalize).map(function(N){return g&&De.isAbsolute(g)&&De.isAbsolute(N)?De.relative(g,N):N}),this._names=Ra.fromArray(h.map(String),!0),this._sources=Ra.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(N){return De.computeSourceURL(g,N,s)}),this.sourceRoot=g,this.sourcesContent=C,this._mappings=x,this._sourceMapURL=s,this.file=I}Mt.prototype=Object.create(nt.prototype);Mt.prototype.consumer=nt;Mt.prototype._findSourceIndex=function(i){var s=i;if(this.sourceRoot!=null&&(s=De.relative(this.sourceRoot,s)),this._sources.has(s))return this._sources.indexOf(s);var u;for(u=0;u1&&(Y.source=C+ue[1],C+=ue[1],Y.originalLine=h+ue[2],h=Y.originalLine,Y.originalLine+=1,Y.originalColumn=g+ue[3],g=Y.originalColumn,ue.length>4&&(Y.name=x+ue[4],x+=ue[4])),V.push(Y),typeof Y.originalLine=="number"&&R.push(Y)}wo(V,De.compareByGeneratedPositionsDeflated),this.__generatedMappings=V,wo(R,De.compareByOriginalPositions),this.__originalMappings=R};Mt.prototype._findMapping=function(s,u,c,f,h,g){if(s[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+s[c]);if(s[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+s[f]);return gy.search(s,u,h,g)};Mt.prototype.computeColumnSpans=function(){for(var s=0;s=0){var f=this._generatedMappings[c];if(f.generatedLine===u.generatedLine){var h=De.getArg(f,"source",null);h!==null&&(h=this._sources.at(h),h=De.computeSourceURL(this.sourceRoot,h,this._sourceMapURL));var g=De.getArg(f,"name",null);return g!==null&&(g=this._names.at(g)),{source:h,line:De.getArg(f,"originalLine",null),column:De.getArg(f,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}};Mt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(s){return s==null}):!1};Mt.prototype.sourceContentFor=function(s,u){if(!this.sourcesContent)return null;var c=this._findSourceIndex(s);if(c>=0)return this.sourcesContent[c];var f=s;this.sourceRoot!=null&&(f=De.relative(this.sourceRoot,f));var h;if(this.sourceRoot!=null&&(h=De.urlParse(this.sourceRoot))){var g=f.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(g))return this.sourcesContent[this._sources.indexOf(g)];if((!h.path||h.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(u)return null;throw new Error('"'+f+'" is not in the SourceMap.')};Mt.prototype.generatedPositionFor=function(s){var u=De.getArg(s,"source");if(u=this._findSourceIndex(u),u<0)return{line:null,column:null,lastColumn:null};var c={source:u,originalLine:De.getArg(s,"line"),originalColumn:De.getArg(s,"column")},f=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",De.compareByOriginalPositions,De.getArg(s,"bias",nt.GREATEST_LOWER_BOUND));if(f>=0){var h=this._originalMappings[f];if(h.source===c.source)return{line:De.getArg(h,"generatedLine",null),column:De.getArg(h,"generatedColumn",null),lastColumn:De.getArg(h,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Op.BasicSourceMapConsumer=Mt;function bn(i,s){var u=i;typeof i=="string"&&(u=De.parseSourceMapInput(i));var c=De.getArg(u,"version"),f=De.getArg(u,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new Ra,this._names=new Ra;var h={line:-1,column:0};this._sections=f.map(function(g){if(g.url)throw new Error("Support for url field in sections not implemented.");var C=De.getArg(g,"offset"),x=De.getArg(C,"line"),I=De.getArg(C,"column");if(x{var CK=fy().SourceMapGenerator,Lp=ja(),AK=/(\r?\n)/,vK=10,Va="$$$isSourceNode$$$";function _r(i,s,u,c,f){this.children=[],this.sourceContents={},this.line=i??null,this.column=s??null,this.source=u??null,this.name=f??null,this[Va]=!0,c!=null&&this.add(c)}_r.fromStringWithSourceMap=function(s,u,c){var f=new _r,h=s.split(AK),g=0,C=function(){var O=V(),R=V()||"";return O+R;function V(){return g=0;u--)this.prepend(s[u]);else if(s[Va]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this};_r.prototype.walk=function(s){for(var u,c=0,f=this.children.length;c0){for(u=[],c=0;c{Mp.SourceMapGenerator=fy().SourceMapGenerator;Mp.SourceMapConsumer=J8().SourceMapConsumer;Mp.SourceNode=X8().SourceNode});var Q8=be((ire,xK)=>{xK.exports={name:"@javascript-obfuscator/escodegen",description:"`escodegen` fork for `javascript-obfuscator``",homepage:"http://github.com/estools/escodegen",main:"escodegen.js",files:["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],version:"2.3.0",engines:{node:">=6.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"},{name:"Timofey Kachalov",email:"sanex3339@yandex.ru",web:"https://github.com/sanex3339"}],repository:{type:"git",url:"http://github.com/estools/escodegen.git"},dependencies:{"@javascript-obfuscator/estraverse":"^5.3.0",esutils:"^2.0.2",esprima:"^4.0.1",optionator:"^0.8.1"},optionalDependencies:{"source-map":"~0.6.1"},devDependencies:{acorn:"^8.7.0",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^3.8.10","gulp-eslint":"^3.0.1","gulp-mocha":"^3.0.1",semver:"^5.1.0"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"}}});var yy=be(Zn=>{(function(){"use strict";var i,s,u,c,f,h,g,C,x,I,N,j,O,R,V,Y,Z,ue,oe,fe,J,W,$,G,ce,se;f=C8(),h=w8(),i=f.Syntax;function he(E){return ot.Expression.hasOwnProperty(E.type)}function ie(E){return ot.Statement.hasOwnProperty(E.type)}s={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,NullishCoalescing:3,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Exponentiation:13,Await:14,Unary:14,Postfix:15,OptionalChaining:16,Call:17,New:18,TaggedTemplate:19,Member:20,Primary:21},u={"??":s.NullishCoalescing,"||":s.LogicalOR,"&&":s.LogicalAND,"|":s.BitwiseOR,"^":s.BitwiseXOR,"&":s.BitwiseAND,"==":s.Equality,"!=":s.Equality,"===":s.Equality,"!==":s.Equality,is:s.Equality,isnt:s.Equality,"<":s.Relational,">":s.Relational,"<=":s.Relational,">=":s.Relational,in:s.Relational,instanceof:s.Relational,"<<":s.BitwiseSHIFT,">>":s.BitwiseSHIFT,">>>":s.BitwiseSHIFT,"+":s.Additive,"-":s.Additive,"*":s.Multiplicative,"%":s.Multiplicative,"/":s.Multiplicative,"**":s.Exponentiation};var K=1,ge=1<<1,Ie=1<<2,Pe=1<<3,Ne=1<<4,we=1<<5,Ze=ge|Ie,vt=K|ge,le=K|ge|Ie,Gt=K,xr=Ie,ln=K|Ie,Le=K,Et=K|we,Os=0,Ut=K|Ne,ic=K|Pe;function sc(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` +`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function Rn(E,B){var F="";for(B|=0;B>0;B>>>=1,E+=E)B&1&&(F+=E);return F}function au(E){return/[\r\n]/g.test(E)}function xt(E){var B=E.length;return B&&h.code.isLineTerminator(E.charCodeAt(B-1))}function ac(E,B){var F;for(F in B)B.hasOwnProperty(F)&&(E[F]=B[F]);return E}function Ls(E,B){var F,T;function L(z){return typeof z=="object"&&z instanceof Object&&!(z instanceof RegExp)}for(F in B)B.hasOwnProperty(F)&&(T=B[F],L(T)?L(E[F])?Ls(E[F],T):E[F]=Ls({},T):E[F]=T);return E}function uu(E){var B,F,T,L,z;if(E!==E)throw new Error("Numeric literal whose value is NaN");if(E<0||E===0&&1/E<0)throw new Error("Numeric literal whose value is negative");if(E===1/0)return x?"null":I?"1e400":"1e+400";if(B=""+E,!I||B.length<3)return B;for(F=B.indexOf("."),!x&&B.charCodeAt(0)===48&&F===1&&(F=0,B=B.slice(1)),T=B,B=B.replace("e+","e"),L=0,(z=T.indexOf("e"))>0&&(L=+T.slice(z+1),T=T.slice(0,z)),F>=0&&(L-=T.length-F-1,T=+(T.slice(0,F)+T.slice(F+1))+""),z=0;T.charCodeAt(T.length+z-1)===48;)--z;return z!==0&&(L-=z,T=T.slice(0,z)),L!==0&&(T+="e"+L),(T.length1e12&&Math.floor(E)===E&&(T="0x"+E.toString(16)).length255?"\\u"+"0000".slice(F.length)+F:E===0&&!h.code.isDecimalDigit(B)?"\\0":E===11?"\\x0B":"\\x"+"00".slice(F.length)+F)}function oc(E){if(E===92)return"\\\\";if(E===10)return"\\n";if(E===13)return"\\r";if(E===8232)return"\\u2028";if(E===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Yf(E){var B,F,T,L;for(L=j==="double"?'"':"'",B=0,F=E.length;B126))){B+=Jf(L,E.charCodeAt(F+1));continue}B+=String.fromCharCode(L)}if(re=!(j==="double"||j==="auto"&&X=0&&!h.code.isLineTerminator(E.charCodeAt(B));--B);return E.length-1-B}function _i(E,B){var F,T,L,z,X,re,me,je;for(F=E.split(/\r\n|[\r\n]/),re=Number.MAX_VALUE,T=1,L=F.length;TX&&(re=X)}for(typeof B<"u"?(me=g,F[1][re]==="*"&&(B+=" "),g=B):(re&1&&--re,me=g),T=1,L=F.length;T0){if(z=B,G){for(L=E.leadingComments[0],B=[],je=L.extendedRange,mt=L.range,oi=$.substring(je[0],mt[0]),mr=(oi.match(/\n/g)||[]).length,mr>0?(B.push(Rn(` +`,mr)),B.push(bt(Lr(L)))):(B.push(oi),B.push(Lr(L))),Sr=mt,F=1,T=E.leadingComments.length;F0?(B.push(Rn(` +`,mr)),B.push(bt(Lr(L)))):(B.push(oi),B.push(Lr(L)));else for(X=!xt(Oe(B).toString()),re=Rn(" ",Kf(Oe([g,B,C]).toString())),F=0,T=E.trailingComments.length;F")),E.expression?(B.push(V),F=this.generateExpression(E.body,s.Assignment,le),F.toString().charAt(0)==="{"&&(F=["(",F,")"]),B.push(F)):B.push(this.maybeBlock(E.body,ic)),B},ot.prototype.generateIterationForStatement=function(E,B,F){var T=["for"+(B.await?St()+"await":"")+V+"("],L=this;return lt(function(){B.left.type===i.VariableDeclaration?lt(function(){T.push(B.left.kind+St()),T.push(L.generateStatement(B.left.declarations[0],Os))}):T.push(L.generateExpression(B.left,s.Call,le)),T=xe(T,E),T=[xe(T,L.generateExpression(B.right,s.Assignment,le)),")"]}),T.push(this.maybeBlock(B.body,F)),T},ot.prototype.generatePropertyKey=function(E,B){var F=[];return B&&F.push("["),F.push(this.generateExpression(E,s.Assignment,le)),B&&F.push("]"),F},ot.prototype.generateAssignment=function(E,B,F,T,L){return s.Assignment2&&(T=$.substring(F[0]+1,F[1]-1),T[0]===` +`&&(L=["{"]),L.push(T)));var X,re,me,je;for(je=Le,B&Pe&&(je|=Ne),X=0,re=E.body.length;X0&&!E.body[X-1].trailingComments&&!E.body[X].leadingComments&&Vn(E.body[X-1].range[1],E.body[X].range[0],L)),X===re-1&&(je|=we),E.body[X].leadingComments&&G?me=z.generateStatement(E.body[X],je):me=bt(z.generateStatement(E.body[X],je)),L.push(me),xt(Oe(me).toString())||G&&X1?lt(me):me(),F.push(this.semicolon(B)),F},StaticBlock:function(E,B){return["static"+V,this.BlockStatement(E,B)]},ThrowStatement:function(E,B){return[xe("throw",this.generateExpression(E.argument,s.Sequence,le)),this.semicolon(B)]},TryStatement:function(E,B){var F,T,L,z;if(F=["try",this.maybeBlock(E.block,Le)],F=this.maybeBlockSuffix(E.block,F),E.handlers)for(T=0,L=E.handlers.length;T0?` +`:""],X=Ut,L=0;L0&&!E.body[L-1].trailingComments&&!E.body[L].leadingComments&&Vn(E.body[L-1].range[1],E.body[L].range[0],F)),T=bt(this.generateStatement(E.body[L],X)),F.push(T),L+10){for(T.push("("),z=0,X=L;z=2&&L.charCodeAt(0)===48)&&T.push(" ")),T.push(E.optional?"?.":"."),T.push(Lt(E.property))),it(T,s.Member,B)},MetaProperty:function(E,B,F){var T;return T=[],T.push(typeof E.meta=="string"?E.meta:Lt(E.meta)),T.push("."),T.push(typeof E.property=="string"?E.property:Lt(E.property)),it(T,s.Member,B)},UnaryExpression:function(E,B,F){var T,L,z,X,re;return L=this.generateExpression(E.argument,s.Unary,le),V===""?T=xe(E.operator,L):(T=[E.operator],E.operator.length>2?T=xe(T,L):(X=Oe(T).toString(),re=X.charCodeAt(X.length-1),z=L.toString().charCodeAt(0),((re===43||re===45)&&re===z||h.code.isIdentifierPartES5(re)&&h.code.isIdentifierPartES5(z))&&T.push(St()),T.push(L))),it(T,s.Unary,B)},YieldExpression:function(E,B,F){var T;return E.delegate?T="yield*":T="yield",E.argument&&(T=xe(T,this.generateExpression(E.argument,s.Yield,le))),it(T,s.Yield,B)},AwaitExpression:function(E,B,F){var T=xe(E.all?"await*":"await",this.generateExpression(E.argument,s.Await,le));return it(T,s.Await,B)},UpdateExpression:function(E,B,F){return E.prefix?it([E.operator,this.generateExpression(E.argument,s.Unary,le)],s.Unary,B):it([this.generateExpression(E.argument,s.Postfix,le),E.operator],s.Postfix,B)},FunctionExpression:function(E,B,F){var T=[ui(E,!0),"function"];return E.id?(T.push(Ii(E)||St()),T.push(Lt(E.id))):T.push(Ii(E)||V),T.push(this.generateFunctionBody(E)),T},ArrayPattern:function(E,B,F){return this.ArrayExpression(E,B,F,!0)},ArrayExpression:function(E,B,F,T){var L,z,X=this;return E.elements.length?(z=T?!1:E.elements.length>1,L=["[",z?R:""],lt(function(re){var me,je;for(me=0,je=E.elements.length;me1,lt(function(){z=X.generateExpression(E.properties[0],s.Sequence,le)}),!T&&!au(Oe(z).toString())?["{",V,z,V,"}"]:(lt(function(re){var me,je;if(L=["{",R,re,z],T)for(L.push(","+R),me=1,je=E.properties.length;me0||fe.moz.comprehensionExpressionStartsWithAssignment?T=xe(T,X):T.push(X)}),E.filter&&(T=xe(T,"if"+V),X=this.generateExpression(E.filter,s.Sequence,le),T=xe(T,["(",X,")"])),fe.moz.comprehensionExpressionStartsWithAssignment||(X=this.generateExpression(E.body,s.Assignment,le),T=xe(T,X)),T.push(E.type===i.GeneratorExpression?")":"]"),T},ComprehensionBlock:function(E,B,F){var T;return E.left.type===i.VariableDeclaration?T=[E.left.kind,St(),this.generateStatement(E.left.declarations[0],Os)]:T=this.generateExpression(E.left,s.Call,le),T=xe(T,E.of?"of":"in"),T=xe(T,this.generateExpression(E.right,s.Sequence,le)),["for"+V+"(",T,")"]},SpreadElement:function(E,B,F){return["...",this.generateExpression(E.argument,s.Assignment,le)]},TaggedTemplateExpression:function(E,B,F){var T=vt;F&ge||(T=Gt);var L=[this.generateExpression(E.tag,s.Call,T),this.generateExpression(E.quasi,s.Primary,xr)];return it(L,s.TaggedTemplate,B)},TemplateElement:function(E,B,F){return E.value.raw},TemplateLiteral:function(E,B,F){var T,L,z;for(T=["`"],L=0,z=E.quasis.length;L{"use strict";L5.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},u=Symbol("test"),c=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var f=42;s[u]=f;for(u in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var h=Object.getOwnPropertySymbols(s);if(h.length!==1||h[0]!==u||!Object.prototype.propertyIsEnumerable.call(s,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(s,u);if(g.value!==f||g.enumerable!==!0)return!1}return!0}});var Po=be((cre,M5)=>{"use strict";var nQ=Iy();M5.exports=function(){return nQ()&&!!Symbol.toStringTag}});var V5=be((lre,R5)=>{"use strict";var j5=typeof Symbol<"u"&&Symbol,iQ=Iy();R5.exports=function(){return typeof j5!="function"||typeof Symbol!="function"||typeof j5("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:iQ()}});var G5=be((pre,q5)=>{"use strict";var sQ="Function.prototype.bind called on incompatible ",Py=Array.prototype.slice,aQ=Object.prototype.toString,uQ="[object Function]";q5.exports=function(s){var u=this;if(typeof u!="function"||aQ.call(u)!==uQ)throw new TypeError(sQ+u);for(var c=Py.call(arguments,1),f,h=function(){if(this instanceof f){var N=u.apply(this,c.concat(Py.call(arguments)));return Object(N)===N?N:this}else return u.apply(s,c.concat(Py.call(arguments)))},g=Math.max(0,u.length-c.length),C=[],x=0;x{"use strict";var oQ=G5();U5.exports=Function.prototype.bind||oQ});var z5=be((hre,W5)=>{"use strict";var cQ=Xp();W5.exports=cQ.call(Function.call,Object.prototype.hasOwnProperty)});var Lo=be((dre,X5)=>{"use strict";var Ge,Ya=SyntaxError,Y5=Function,Ja=TypeError,Oy=function(i){try{return Y5('"use strict"; return ('+i+").constructor;")()}catch{}},vs=Object.getOwnPropertyDescriptor;if(vs)try{vs({},"")}catch{vs=null}var Ly=function(){throw new Ja},lQ=vs?function(){try{return arguments.callee,Ly}catch{try{return vs(arguments,"callee").get}catch{return Ly}}}():Ly,$a=V5()(),jn=Object.getPrototypeOf||function(i){return i.__proto__},Ha={},pQ=typeof Uint8Array>"u"?Ge:jn(Uint8Array),xs={"%AggregateError%":typeof AggregateError>"u"?Ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ge:ArrayBuffer,"%ArrayIteratorPrototype%":$a?jn([][Symbol.iterator]()):Ge,"%AsyncFromSyncIteratorPrototype%":Ge,"%AsyncFunction%":Ha,"%AsyncGenerator%":Ha,"%AsyncGeneratorFunction%":Ha,"%AsyncIteratorPrototype%":Ha,"%Atomics%":typeof Atomics>"u"?Ge:Atomics,"%BigInt%":typeof BigInt>"u"?Ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ge:FinalizationRegistry,"%Function%":Y5,"%GeneratorFunction%":Ha,"%Int8Array%":typeof Int8Array>"u"?Ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$a?jn(jn([][Symbol.iterator]())):Ge,"%JSON%":typeof JSON=="object"?JSON:Ge,"%Map%":typeof Map>"u"?Ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$a?Ge:jn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ge:Promise,"%Proxy%":typeof Proxy>"u"?Ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$a?Ge:jn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$a?jn(""[Symbol.iterator]()):Ge,"%Symbol%":$a?Symbol:Ge,"%SyntaxError%":Ya,"%ThrowTypeError%":lQ,"%TypedArray%":pQ,"%TypeError%":Ja,"%Uint8Array%":typeof Uint8Array>"u"?Ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ge:WeakSet};try{null.error}catch(i){$5=jn(jn(i)),xs["%Error.prototype%"]=$5}var $5,fQ=function i(s){var u;if(s==="%AsyncFunction%")u=Oy("async function () {}");else if(s==="%GeneratorFunction%")u=Oy("function* () {}");else if(s==="%AsyncGeneratorFunction%")u=Oy("async function* () {}");else if(s==="%AsyncGenerator%"){var c=i("%AsyncGeneratorFunction%");c&&(u=c.prototype)}else if(s==="%AsyncIteratorPrototype%"){var f=i("%AsyncGenerator%");f&&(u=jn(f.prototype))}return xs[s]=u,u},H5={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Oo=Xp(),Kp=z5(),hQ=Oo.call(Function.call,Array.prototype.concat),dQ=Oo.call(Function.apply,Array.prototype.splice),J5=Oo.call(Function.call,String.prototype.replace),Qp=Oo.call(Function.call,String.prototype.slice),mQ=Oo.call(Function.call,RegExp.prototype.exec),gQ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yQ=/\\(\\)?/g,DQ=function(s){var u=Qp(s,0,1),c=Qp(s,-1);if(u==="%"&&c!=="%")throw new Ya("invalid intrinsic syntax, expected closing `%`");if(c==="%"&&u!=="%")throw new Ya("invalid intrinsic syntax, expected opening `%`");var f=[];return J5(s,gQ,function(h,g,C,x){f[f.length]=C?J5(x,yQ,"$1"):g||h}),f},EQ=function(s,u){var c=s,f;if(Kp(H5,c)&&(f=H5[c],c="%"+f[0]+"%"),Kp(xs,c)){var h=xs[c];if(h===Ha&&(h=fQ(c)),typeof h>"u"&&!u)throw new Ja("intrinsic "+s+" exists, but is not available. Please file an issue!");return{alias:f,name:c,value:h}}throw new Ya("intrinsic "+s+" does not exist!")};X5.exports=function(s,u){if(typeof s!="string"||s.length===0)throw new Ja("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof u!="boolean")throw new Ja('"allowMissing" argument must be a boolean');if(mQ(/^%?[^%]*%?$/,s)===null)throw new Ya("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=DQ(s),f=c.length>0?c[0]:"",h=EQ("%"+f+"%",u),g=h.name,C=h.value,x=!1,I=h.alias;I&&(f=I[0],dQ(c,hQ([0,1],I)));for(var N=1,j=!0;N=c.length){var Y=vs(C,O);j=!!Y,j&&"get"in Y&&!("originalValue"in Y.get)?C=Y.get:C=C[O]}else j=Kp(C,O),C=C[O];j&&!x&&(xs[g]=C)}}return C}});var ef=be((mre,Zp)=>{"use strict";var My=Xp(),Xa=Lo(),Z5=Xa("%Function.prototype.apply%"),e6=Xa("%Function.prototype.call%"),t6=Xa("%Reflect.apply%",!0)||My.call(e6,Z5),K5=Xa("%Object.getOwnPropertyDescriptor%",!0),Ss=Xa("%Object.defineProperty%",!0),bQ=Xa("%Math.max%");if(Ss)try{Ss({},"a",{value:1})}catch{Ss=null}Zp.exports=function(s){var u=t6(My,e6,arguments);if(K5&&Ss){var c=K5(u,"length");c.configurable&&Ss(u,"length",{value:1+bQ(0,s.length-(arguments.length-1))})}return u};var Q5=function(){return t6(My,Z5,arguments)};Ss?Ss(Zp.exports,"apply",{value:Q5}):Zp.exports.apply=Q5});var tf=be((gre,i6)=>{"use strict";var r6=Lo(),n6=ef(),CQ=n6(r6("String.prototype.indexOf"));i6.exports=function(s,u){var c=r6(s,!!u);return typeof c=="function"&&CQ(s,".prototype.")>-1?n6(c):c}});var u6=be((yre,a6)=>{"use strict";var AQ=Po()(),vQ=tf(),jy=vQ("Object.prototype.toString"),rf=function(s){return AQ&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:jy(s)==="[object Arguments]"},s6=function(s){return rf(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&jy(s)!=="[object Array]"&&jy(s.callee)==="[object Function]"},xQ=function(){return rf(arguments)}();rf.isLegacyArguments=s6;a6.exports=xQ?rf:s6});var l6=be((Dre,c6)=>{"use strict";var SQ=Object.prototype.toString,FQ=Function.prototype.toString,wQ=/^\s*(?:function)?\*/,o6=Po()(),Ry=Object.getPrototypeOf,BQ=function(){if(!o6)return!1;try{return Function("return function*() {}")()}catch{}},Vy;c6.exports=function(s){if(typeof s!="function")return!1;if(wQ.test(FQ.call(s)))return!0;if(!o6){var u=SQ.call(s);return u==="[object GeneratorFunction]"}if(!Ry)return!1;if(typeof Vy>"u"){var c=BQ();Vy=c?Ry(c):!1}return Ry(s)===Vy}});var d6=be((Ere,h6)=>{"use strict";var f6=Function.prototype.toString,Ka=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Gy,nf;if(typeof Ka=="function"&&typeof Object.defineProperty=="function")try{Gy=Object.defineProperty({},"length",{get:function(){throw nf}}),nf={},Ka(function(){throw 42},null,Gy)}catch(i){i!==nf&&(Ka=null)}else Ka=null;var TQ=/^\s*class\b/,Uy=function(s){try{var u=f6.call(s);return TQ.test(u)}catch{return!1}},qy=function(s){try{return Uy(s)?!1:(f6.call(s),!0)}catch{return!1}},sf=Object.prototype.toString,kQ="[object Object]",_Q="[object Function]",NQ="[object GeneratorFunction]",IQ="[object HTMLAllCollection]",PQ="[object HTML document.all class]",OQ="[object HTMLCollection]",LQ=typeof Symbol=="function"&&!!Symbol.toStringTag,MQ=!(0 in[,]),Wy=function(){return!1};typeof document=="object"&&(p6=document.all,sf.call(p6)===sf.call(document.all)&&(Wy=function(s){if((MQ||!s)&&(typeof s>"u"||typeof s=="object"))try{var u=sf.call(s);return(u===IQ||u===PQ||u===OQ||u===kQ)&&s("")==null}catch{}return!1}));var p6;h6.exports=Ka?function(s){if(Wy(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{Ka(s,null,Gy)}catch(u){if(u!==nf)return!1}return!Uy(s)&&qy(s)}:function(s){if(Wy(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(LQ)return qy(s);if(Uy(s))return!1;var u=sf.call(s);return u!==_Q&&u!==NQ&&!/^\[object HTML/.test(u)?!1:qy(s)}});var zy=be((bre,g6)=>{"use strict";var jQ=d6(),RQ=Object.prototype.toString,m6=Object.prototype.hasOwnProperty,VQ=function(s,u,c){for(var f=0,h=s.length;f=3&&(f=c),RQ.call(s)==="[object Array]"?VQ(s,u,f):typeof s=="string"?qQ(s,u,f):GQ(s,u,f)};g6.exports=UQ});var Hy=be((Cre,y6)=>{"use strict";var $y=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],WQ=typeof globalThis>"u"?global:globalThis;y6.exports=function(){for(var s=[],u=0;u<$y.length;u++)typeof WQ[$y[u]]=="function"&&(s[s.length]=$y[u]);return s}});var Jy=be((Are,D6)=>{"use strict";var zQ=Lo(),af=zQ("%Object.getOwnPropertyDescriptor%",!0);if(af)try{af([],"length")}catch{af=null}D6.exports=af});var Ky=be((vre,v6)=>{"use strict";var E6=zy(),$Q=Hy(),Xy=tf(),HQ=Xy("Object.prototype.toString"),b6=Po()(),uf=Jy(),JQ=typeof globalThis>"u"?global:globalThis,C6=$Q(),YQ=Xy("Array.prototype.indexOf",!0)||function(s,u){for(var c=0;c-1}return uf?KQ(s):!1}});var k6=be((xre,T6)=>{"use strict";var S6=zy(),QQ=Hy(),F6=tf(),Qy=Jy(),ZQ=F6("Object.prototype.toString"),w6=Po()(),x6=typeof globalThis>"u"?global:globalThis,eZ=QQ(),tZ=F6("String.prototype.slice"),B6={},Zy=Object.getPrototypeOf;w6&&Qy&&Zy&&S6(eZ,function(i){if(typeof x6[i]=="function"){var s=new x6[i];if(Symbol.toStringTag in s){var u=Zy(s),c=Qy(u,Symbol.toStringTag);if(!c){var f=Zy(u);c=Qy(f,Symbol.toStringTag)}B6[i]=c.get}}});var rZ=function(s){var u=!1;return S6(B6,function(c,f){if(!u)try{var h=c.call(s);h===f&&(u=h)}catch{}}),u},nZ=Ky();T6.exports=function(s){return nZ(s)?!w6||!(Symbol.toStringTag in s)?tZ(ZQ(s),8,-1):rZ(s):!1}});var W6=be(Re=>{"use strict";var iZ=u6(),sZ=l6(),vn=k6(),_6=Ky();function Qa(i){return i.call.bind(i)}var N6=typeof BigInt<"u",I6=typeof Symbol<"u",en=Qa(Object.prototype.toString),aZ=Qa(Number.prototype.valueOf),uZ=Qa(String.prototype.valueOf),oZ=Qa(Boolean.prototype.valueOf);N6&&(P6=Qa(BigInt.prototype.valueOf));var P6;I6&&(O6=Qa(Symbol.prototype.valueOf));var O6;function jo(i,s){if(typeof i!="object")return!1;try{return s(i),!0}catch{return!1}}Re.isArgumentsObject=iZ;Re.isGeneratorFunction=sZ;Re.isTypedArray=_6;function cZ(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}Re.isPromise=cZ;function lZ(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):_6(i)||M6(i)}Re.isArrayBufferView=lZ;function pZ(i){return vn(i)==="Uint8Array"}Re.isUint8Array=pZ;function fZ(i){return vn(i)==="Uint8ClampedArray"}Re.isUint8ClampedArray=fZ;function hZ(i){return vn(i)==="Uint16Array"}Re.isUint16Array=hZ;function dZ(i){return vn(i)==="Uint32Array"}Re.isUint32Array=dZ;function mZ(i){return vn(i)==="Int8Array"}Re.isInt8Array=mZ;function gZ(i){return vn(i)==="Int16Array"}Re.isInt16Array=gZ;function yZ(i){return vn(i)==="Int32Array"}Re.isInt32Array=yZ;function DZ(i){return vn(i)==="Float32Array"}Re.isFloat32Array=DZ;function EZ(i){return vn(i)==="Float64Array"}Re.isFloat64Array=EZ;function bZ(i){return vn(i)==="BigInt64Array"}Re.isBigInt64Array=bZ;function CZ(i){return vn(i)==="BigUint64Array"}Re.isBigUint64Array=CZ;function of(i){return en(i)==="[object Map]"}of.working=typeof Map<"u"&&of(new Map);function AZ(i){return typeof Map>"u"?!1:of.working?of(i):i instanceof Map}Re.isMap=AZ;function cf(i){return en(i)==="[object Set]"}cf.working=typeof Set<"u"&&cf(new Set);function vZ(i){return typeof Set>"u"?!1:cf.working?cf(i):i instanceof Set}Re.isSet=vZ;function lf(i){return en(i)==="[object WeakMap]"}lf.working=typeof WeakMap<"u"&&lf(new WeakMap);function xZ(i){return typeof WeakMap>"u"?!1:lf.working?lf(i):i instanceof WeakMap}Re.isWeakMap=xZ;function t1(i){return en(i)==="[object WeakSet]"}t1.working=typeof WeakSet<"u"&&t1(new WeakSet);function SZ(i){return t1(i)}Re.isWeakSet=SZ;function pf(i){return en(i)==="[object ArrayBuffer]"}pf.working=typeof ArrayBuffer<"u"&&pf(new ArrayBuffer);function L6(i){return typeof ArrayBuffer>"u"?!1:pf.working?pf(i):i instanceof ArrayBuffer}Re.isArrayBuffer=L6;function ff(i){return en(i)==="[object DataView]"}ff.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ff(new DataView(new ArrayBuffer(1),0,1));function M6(i){return typeof DataView>"u"?!1:ff.working?ff(i):i instanceof DataView}Re.isDataView=M6;var e1=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Mo(i){return en(i)==="[object SharedArrayBuffer]"}function j6(i){return typeof e1>"u"?!1:(typeof Mo.working>"u"&&(Mo.working=Mo(new e1)),Mo.working?Mo(i):i instanceof e1)}Re.isSharedArrayBuffer=j6;function FZ(i){return en(i)==="[object AsyncFunction]"}Re.isAsyncFunction=FZ;function wZ(i){return en(i)==="[object Map Iterator]"}Re.isMapIterator=wZ;function BZ(i){return en(i)==="[object Set Iterator]"}Re.isSetIterator=BZ;function TZ(i){return en(i)==="[object Generator]"}Re.isGeneratorObject=TZ;function kZ(i){return en(i)==="[object WebAssembly.Module]"}Re.isWebAssemblyCompiledModule=kZ;function R6(i){return jo(i,aZ)}Re.isNumberObject=R6;function V6(i){return jo(i,uZ)}Re.isStringObject=V6;function q6(i){return jo(i,oZ)}Re.isBooleanObject=q6;function G6(i){return N6&&jo(i,P6)}Re.isBigIntObject=G6;function U6(i){return I6&&jo(i,O6)}Re.isSymbolObject=U6;function _Z(i){return R6(i)||V6(i)||q6(i)||G6(i)||U6(i)}Re.isBoxedPrimitive=_Z;function NZ(i){return typeof Uint8Array<"u"&&(L6(i)||j6(i))}Re.isAnyArrayBuffer=NZ;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(Re,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})});var $6=be((Fre,z6)=>{z6.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}});var H6=be((wre,r1)=>{typeof Object.create=="function"?r1.exports=function(s,u){u&&(s.super_=u,s.prototype=Object.create(u.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r1.exports=function(s,u){if(u){s.super_=u;var c=function(){};c.prototype=u.prototype,s.prototype=new c,s.prototype.constructor=s}}});var eu=be(Ve=>{var J6=Object.getOwnPropertyDescriptors||function(s){for(var u=Object.keys(s),c={},f=0;f=f)return C;switch(C){case"%s":return String(c[u++]);case"%d":return Number(c[u++]);case"%j":try{return JSON.stringify(c[u++])}catch{return"[Circular]"}default:return C}}),g=c[u];u"u")return function(){return Ve.deprecate(i,s).apply(this,arguments)};var u=!1;function c(){if(!u){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),u=!0}return i.apply(this,arguments)}return c};var hf={},PZ=/^$/;Ve.debuglog=function(i){if(i=i.toUpperCase(),!hf[i])if(PZ.test(i)){var s=process.pid;hf[i]=function(){var u=Ve.format.apply(Ve,arguments);console.error("%s %d: %s",i,s,u)}}else hf[i]=function(){};return hf[i]};function vi(i,s){var u={seen:[],stylize:LZ};return arguments.length>=3&&(u.depth=arguments[2]),arguments.length>=4&&(u.colors=arguments[3]),a1(s)?u.showHidden=s:s&&Ve._extend(u,s),ws(u.showHidden)&&(u.showHidden=!1),ws(u.depth)&&(u.depth=2),ws(u.colors)&&(u.colors=!1),ws(u.customInspect)&&(u.customInspect=!0),u.colors&&(u.stylize=OZ),mf(u,i,u.depth)}Ve.inspect=vi;vi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};vi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function OZ(i,s){var u=vi.styles[s];return u?"\x1B["+vi.colors[u][0]+"m"+i+"\x1B["+vi.colors[u][1]+"m":i}function LZ(i,s){return i}function MZ(i){var s={};return i.forEach(function(u,c){s[u]=!0}),s}function mf(i,s,u){if(i.customInspect&&s&&df(s.inspect)&&s.inspect!==Ve.inspect&&!(s.constructor&&s.constructor.prototype===s)){var c=s.inspect(u,i);return Df(c)||(c=mf(i,c,u)),c}var f=jZ(i,s);if(f)return f;var h=Object.keys(s),g=MZ(h);if(i.showHidden&&(h=Object.getOwnPropertyNames(s)),Vo(s)&&(h.indexOf("message")>=0||h.indexOf("description")>=0))return n1(s);if(h.length===0){if(df(s)){var C=s.name?": "+s.name:"";return i.stylize("[Function"+C+"]","special")}if(Ro(s))return i.stylize(RegExp.prototype.toString.call(s),"regexp");if(gf(s))return i.stylize(Date.prototype.toString.call(s),"date");if(Vo(s))return n1(s)}var x="",I=!1,N=["{","}"];if(Y6(s)&&(I=!0,N=["[","]"]),df(s)){var j=s.name?": "+s.name:"";x=" [Function"+j+"]"}if(Ro(s)&&(x=" "+RegExp.prototype.toString.call(s)),gf(s)&&(x=" "+Date.prototype.toUTCString.call(s)),Vo(s)&&(x=" "+n1(s)),h.length===0&&(!I||s.length==0))return N[0]+x+N[1];if(u<0)return Ro(s)?i.stylize(RegExp.prototype.toString.call(s),"regexp"):i.stylize("[Object]","special");i.seen.push(s);var O;return I?O=RZ(i,s,u,g,h):O=h.map(function(R){return s1(i,s,u,g,R,I)}),i.seen.pop(),VZ(O,x,N)}function jZ(i,s){if(ws(s))return i.stylize("undefined","undefined");if(Df(s)){var u="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(u,"string")}if(X6(s))return i.stylize(""+s,"number");if(a1(s))return i.stylize(""+s,"boolean");if(yf(s))return i.stylize("null","null")}function n1(i){return"["+Error.prototype.toString.call(i)+"]"}function RZ(i,s,u,c,f){for(var h=[],g=0,C=s.length;g-1&&(h?C=C.split(` +`).map(function(I){return" "+I}).join(` +`).slice(2):C=` +`+C.split(` +`).map(function(I){return" "+I}).join(` +`))):C=i.stylize("[Circular]","special")),ws(g)){if(h&&f.match(/^\d+$/))return C;g=JSON.stringify(""+f),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.slice(1,-1),g=i.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=i.stylize(g,"string"))}return g+": "+C}function VZ(i,s,u){var c=0,f=i.reduce(function(h,g){return c++,g.indexOf(` +`)>=0&&c++,h+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return f>60?u[0]+(s===""?"":s+` + `)+" "+i.join(`, + `)+" "+u[1]:u[0]+s+" "+i.join(", ")+" "+u[1]}Ve.types=W6();function Y6(i){return Array.isArray(i)}Ve.isArray=Y6;function a1(i){return typeof i=="boolean"}Ve.isBoolean=a1;function yf(i){return i===null}Ve.isNull=yf;function qZ(i){return i==null}Ve.isNullOrUndefined=qZ;function X6(i){return typeof i=="number"}Ve.isNumber=X6;function Df(i){return typeof i=="string"}Ve.isString=Df;function GZ(i){return typeof i=="symbol"}Ve.isSymbol=GZ;function ws(i){return i===void 0}Ve.isUndefined=ws;function Ro(i){return Za(i)&&u1(i)==="[object RegExp]"}Ve.isRegExp=Ro;Ve.types.isRegExp=Ro;function Za(i){return typeof i=="object"&&i!==null}Ve.isObject=Za;function gf(i){return Za(i)&&u1(i)==="[object Date]"}Ve.isDate=gf;Ve.types.isDate=gf;function Vo(i){return Za(i)&&(u1(i)==="[object Error]"||i instanceof Error)}Ve.isError=Vo;Ve.types.isNativeError=Vo;function df(i){return typeof i=="function"}Ve.isFunction=df;function UZ(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i>"u"}Ve.isPrimitive=UZ;Ve.isBuffer=$6();function u1(i){return Object.prototype.toString.call(i)}function i1(i){return i<10?"0"+i.toString(10):i.toString(10)}var WZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zZ(){var i=new Date,s=[i1(i.getHours()),i1(i.getMinutes()),i1(i.getSeconds())].join(":");return[i.getDate(),WZ[i.getMonth()],s].join(" ")}Ve.log=function(){console.log("%s - %s",zZ(),Ve.format.apply(Ve,arguments))};Ve.inherits=H6();Ve._extend=function(i,s){if(!s||!Za(s))return i;for(var u=Object.keys(s),c=u.length;c--;)i[u[c]]=s[u[c]];return i};function K6(i,s){return Object.prototype.hasOwnProperty.call(i,s)}var Fs=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ve.promisify=function(s){if(typeof s!="function")throw new TypeError('The "original" argument must be of type Function');if(Fs&&s[Fs]){var u=s[Fs];if(typeof u!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(u,Fs,{value:u,enumerable:!1,writable:!1,configurable:!0}),u}function u(){for(var c,f,h=new Promise(function(x,I){c=x,f=I}),g=[],C=0;C{"use strict";function tu(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(u){return typeof u}:tu=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},tu(i)}function JZ(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function YZ(i,s){return s&&(tu(s)==="object"||typeof s=="function")?s:XZ(i)}function XZ(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function c1(i){return c1=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},c1(i)}function KZ(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&l1(i,s)}function l1(i,s){return l1=Object.setPrototypeOf||function(c,f){return c.__proto__=f,c},l1(i,s)}var Z6={},ru,o1;function qo(i,s,u){u||(u=Error);function c(h,g,C){return typeof s=="string"?s:s(h,g,C)}var f=function(h){KZ(g,h);function g(C,x,I){var N;return JZ(this,g),N=YZ(this,c1(g).call(this,c(C,x,I))),N.code=i,N}return g}(u);Z6[i]=f}function Q6(i,s){if(Array.isArray(i)){var u=i.length;return i=i.map(function(c){return String(c)}),u>2?"one of ".concat(s," ").concat(i.slice(0,u-1).join(", "),", or ")+i[u-1]:u===2?"one of ".concat(s," ").concat(i[0]," or ").concat(i[1]):"of ".concat(s," ").concat(i[0])}else return"of ".concat(s," ").concat(String(i))}function QZ(i,s,u){return i.substr(!u||u<0?0:+u,s.length)===s}function ZZ(i,s,u){return(u===void 0||u>i.length)&&(u=i.length),i.substring(u-s.length,u)===s}function eee(i,s,u){return typeof u!="number"&&(u=0),u+s.length>i.length?!1:i.indexOf(s,u)!==-1}qo("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);qo("ERR_INVALID_ARG_TYPE",function(i,s,u){ru===void 0&&(ru=Bs()),ru(typeof i=="string","'name' must be a string");var c;typeof s=="string"&&QZ(s,"not ")?(c="must not be",s=s.replace(/^not /,"")):c="must be";var f;if(ZZ(i," argument"))f="The ".concat(i," ").concat(c," ").concat(Q6(s,"type"));else{var h=eee(i,".")?"property":"argument";f='The "'.concat(i,'" ').concat(h," ").concat(c," ").concat(Q6(s,"type"))}return f+=". Received type ".concat(tu(u)),f},TypeError);qo("ERR_INVALID_ARG_VALUE",function(i,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";o1===void 0&&(o1=eu());var c=o1.inspect(s);return c.length>128&&(c="".concat(c.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(u,". Received ").concat(c)},TypeError,RangeError);qo("ERR_INVALID_RETURN_VALUE",function(i,s,u){var c;return u&&u.constructor&&u.constructor.name?c="instance of ".concat(u.constructor.name):c="type ".concat(tu(u)),"Expected ".concat(i,' to be returned from the "').concat(s,'"')+" function but got ".concat(c,".")},TypeError);qo("ERR_MISSING_ARGS",function(){for(var i=arguments.length,s=new Array(i),u=0;u0,"At least one arg needs to be specified");var c="The ",f=s.length;switch(s=s.map(function(h){return'"'.concat(h,'"')}),f){case 1:c+="".concat(s[0]," argument");break;case 2:c+="".concat(s[0]," and ").concat(s[1]," arguments");break;default:c+=s.slice(0,f-1).join(", "),c+=", and ".concat(s[f-1]," arguments");break}return"".concat(c," must be specified")},TypeError);eB.exports.codes=Z6});var sB=be((kre,iB)=>{"use strict";function tee(i){for(var s=1;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ef(i,s,u){return aee()?Ef=Reflect.construct:Ef=function(f,h,g){var C=[null];C.push.apply(C,h);var x=Function.bind.apply(f,C),I=new x;return g&&zo(I,g.prototype),I},Ef.apply(null,arguments)}function uee(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function zo(i,s){return zo=Object.setPrototypeOf||function(c,f){return c.__proto__=f,c},zo(i,s)}function xi(i){return xi=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},xi(i)}function tn(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tn=function(u){return typeof u}:tn=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},tn(i)}var oee=eu(),d1=oee.inspect,cee=p1(),lee=cee.codes.ERR_INVALID_ARG_TYPE;function rB(i,s,u){return(u===void 0||u>i.length)&&(u=i.length),i.substring(u-s.length,u)===s}function pee(i,s){if(s=Math.floor(s),i.length==0||s==0)return"";var u=i.length*s;for(s=Math.floor(Math.log(s)/Math.log(2));s;)i+=i,s--;return i+=i.substring(0,u-i.length),i}var xn="",Go="",Uo="",Rt="",Ts={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},fee=10;function nB(i){var s=Object.keys(i),u=Object.create(Object.getPrototypeOf(i));return s.forEach(function(c){u[c]=i[c]}),Object.defineProperty(u,"message",{value:i.message}),u}function Wo(i){return d1(i,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function hee(i,s,u){var c="",f="",h=0,g="",C=!1,x=Wo(i),I=x.split(` +`),N=Wo(s).split(` +`),j=0,O="";if(u==="strictEqual"&&tn(i)==="object"&&tn(s)==="object"&&i!==null&&s!==null&&(u="strictEqualObject"),I.length===1&&N.length===1&&I[0]!==N[0]){var R=I[0].length+N[0].length;if(R<=fee){if((tn(i)!=="object"||i===null)&&(tn(s)!=="object"||s===null)&&(i!==0||s!==0))return"".concat(Ts[u],` + +`)+"".concat(I[0]," !== ").concat(N[0],` +`)}else if(u!=="strictEqualObject"){var V=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(R2&&(O=` + `.concat(pee(" ",j),"^"),j=0)}}}for(var Y=I[I.length-1],Z=N[N.length-1];Y===Z&&(j++<2?g=` + `.concat(Y).concat(g):c=Y,I.pop(),N.pop(),!(I.length===0||N.length===0));)Y=I[I.length-1],Z=N[N.length-1];var ue=Math.max(I.length,N.length);if(ue===0){var oe=x.split(` +`);if(oe.length>30)for(oe[26]="".concat(xn,"...").concat(Rt);oe.length>27;)oe.pop();return"".concat(Ts.notIdentical,` + +`).concat(oe.join(` +`),` +`)}j>3&&(g=` +`.concat(xn,"...").concat(Rt).concat(g),C=!0),c!==""&&(g=` + `.concat(c).concat(g),c="");var fe=0,J=Ts[u]+` +`.concat(Go,"+ actual").concat(Rt," ").concat(Uo,"- expected").concat(Rt),W=" ".concat(xn,"...").concat(Rt," Lines skipped");for(j=0;j1&&j>2&&($>4?(f+=` +`.concat(xn,"...").concat(Rt),C=!0):$>3&&(f+=` + `.concat(N[j-2]),fe++),f+=` + `.concat(N[j-1]),fe++),h=j,c+=` +`.concat(Uo,"-").concat(Rt," ").concat(N[j]),fe++;else if(N.length1&&j>2&&($>4?(f+=` +`.concat(xn,"...").concat(Rt),C=!0):$>3&&(f+=` + `.concat(I[j-2]),fe++),f+=` + `.concat(I[j-1]),fe++),h=j,f+=` +`.concat(Go,"+").concat(Rt," ").concat(I[j]),fe++;else{var G=N[j],ce=I[j],se=ce!==G&&(!rB(ce,",")||ce.slice(0,-1)!==G);se&&rB(G,",")&&G.slice(0,-1)===ce&&(se=!1,ce+=","),se?($>1&&j>2&&($>4?(f+=` +`.concat(xn,"...").concat(Rt),C=!0):$>3&&(f+=` + `.concat(I[j-2]),fe++),f+=` + `.concat(I[j-1]),fe++),h=j,f+=` +`.concat(Go,"+").concat(Rt," ").concat(ce),c+=` +`.concat(Uo,"-").concat(Rt," ").concat(G),fe+=2):(f+=c,c="",($===1||j===0)&&(f+=` + `.concat(ce),fe++))}if(fe>20&&j30)for(j[26]="".concat(xn,"...").concat(Rt);j.length>27;)j.pop();j.length===1?c=nu(this,xi(s).call(this,"".concat(N," ").concat(j[0]))):c=nu(this,xi(s).call(this,"".concat(N,` + +`).concat(j.join(` +`),` +`)))}else{var O=Wo(C),R="",V=Ts[h];h==="notDeepEqual"||h==="notEqual"?(O="".concat(Ts[h],` + +`).concat(O),O.length>1024&&(O="".concat(O.slice(0,1021),"..."))):(R="".concat(Wo(x)),O.length>512&&(O="".concat(O.slice(0,509),"...")),R.length>512&&(R="".concat(R.slice(0,509),"...")),h==="deepEqual"||h==="equal"?O="".concat(V,` + +`).concat(O,` + +should equal + +`):R=" ".concat(h," ").concat(R)),c=nu(this,xi(s).call(this,"".concat(O).concat(R)))}return Error.stackTraceLimit=I,c.generatedMessage=!f,Object.defineProperty(f1(c),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),c.code="ERR_ASSERTION",c.actual=C,c.expected=x,c.operator=h,Error.captureStackTrace&&Error.captureStackTrace(f1(c),g),c.stack,c.name="AssertionError",nu(c)}return iee(s,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d1.custom,value:function(c,f){return d1(this,tee({},f,{customInspect:!1,depth:0}))}}]),s}(h1(Error));iB.exports=dee});var oB=be((_re,uB)=>{"use strict";function aB(i,s){if(i==null)throw new TypeError("Cannot convert first argument to object");for(var u=Object(i),c=1;c{"use strict";var cB=Object.prototype.toString;lB.exports=function(s){var u=cB.call(s),c=u==="[object Arguments]";return c||(c=u!=="[object Array]"&&s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&cB.call(s.callee)==="[object Function]"),c}});var EB=be((Ire,DB)=>{"use strict";var yB;Object.keys||($o=Object.prototype.hasOwnProperty,g1=Object.prototype.toString,pB=m1(),y1=Object.prototype.propertyIsEnumerable,fB=!y1.call({toString:null},"toString"),hB=y1.call(function(){},"prototype"),Ho=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],bf=function(i){var s=i.constructor;return s&&s.prototype===i},dB={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},mB=function(){if(typeof window>"u")return!1;for(var i in window)try{if(!dB["$"+i]&&$o.call(window,i)&&window[i]!==null&&typeof window[i]=="object")try{bf(window[i])}catch{return!0}}catch{return!0}return!1}(),gB=function(i){if(typeof window>"u"||!mB)return bf(i);try{return bf(i)}catch{return!1}},yB=function(s){var u=s!==null&&typeof s=="object",c=g1.call(s)==="[object Function]",f=pB(s),h=u&&g1.call(s)==="[object String]",g=[];if(!u&&!c&&!f)throw new TypeError("Object.keys called on a non-object");var C=hB&&c;if(h&&s.length>0&&!$o.call(s,0))for(var x=0;x0)for(var I=0;I{"use strict";var gee=Array.prototype.slice,yee=m1(),bB=Object.keys,Cf=bB?function(s){return bB(s)}:EB(),CB=Object.keys;Cf.shim=function(){if(Object.keys){var s=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);s||(Object.keys=function(c){return yee(c)?CB(gee.call(c)):CB(c)})}else Object.keys=Cf;return Object.keys||Cf};AB.exports=Cf});var SB=be((Ore,xB)=>{"use strict";var Dee=Lo(),D1=Dee("%Object.defineProperty%",!0),E1=function(){if(D1)try{return D1({},"a",{value:1}),!0}catch{return!1}return!1};E1.hasArrayLengthDefineBug=function(){if(!E1())return null;try{return D1([],"length",{value:1}).length!==1}catch{return!0}};xB.exports=E1});var Jo=be((Lre,TB)=>{"use strict";var Eee=vB(),bee=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Cee=Object.prototype.toString,Aee=Array.prototype.concat,FB=Object.defineProperty,vee=function(i){return typeof i=="function"&&Cee.call(i)==="[object Function]"},xee=SB()(),wB=FB&&xee,See=function(i,s,u,c){if(s in i){if(c===!0){if(i[s]===u)return}else if(!vee(c)||!c())return}wB?FB(i,s,{configurable:!0,enumerable:!1,value:u,writable:!0}):i[s]=u},BB=function(i,s){var u=arguments.length>2?arguments[2]:{},c=Eee(s);bee&&(c=Aee.call(c,Object.getOwnPropertySymbols(s)));for(var f=0;f{"use strict";var kB=function(i){return i!==i};_B.exports=function(s,u){return s===0&&u===0?1/s===1/u:!!(s===u||kB(s)&&kB(u))}});var C1=be((jre,NB)=>{"use strict";var Fee=b1();NB.exports=function(){return typeof Object.is=="function"?Object.is:Fee}});var PB=be((Rre,IB)=>{"use strict";var wee=C1(),Bee=Jo();IB.exports=function(){var s=wee();return Bee(Object,{is:s},{is:function(){return Object.is!==s}}),s}});var A1=be((Vre,MB)=>{"use strict";var Tee=Jo(),kee=ef(),_ee=b1(),OB=C1(),Nee=PB(),LB=kee(OB(),Object);Tee(LB,{getPolyfill:OB,implementation:_ee,shim:Nee});MB.exports=LB});var v1=be((qre,jB)=>{"use strict";jB.exports=function(s){return s!==s}});var x1=be((Gre,RB)=>{"use strict";var Iee=v1();RB.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Iee}});var qB=be((Ure,VB)=>{"use strict";var Pee=Jo(),Oee=x1();VB.exports=function(){var s=Oee();return Pee(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}});var zB=be((Wre,WB)=>{"use strict";var Lee=ef(),Mee=Jo(),jee=v1(),GB=x1(),Ree=qB(),UB=Lee(GB(),Number);Mee(UB,{getPolyfill:GB,implementation:jee,shim:Ree});WB.exports=UB});var lT=be((zre,cT)=>{"use strict";function $B(i,s){return Gee(i)||qee(i,s)||Vee()}function Vee(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function qee(i,s){var u=[],c=!0,f=!1,h=void 0;try{for(var g=i[Symbol.iterator](),C;!(c=(C=g.next()).done)&&(u.push(C.value),!(s&&u.length===s));c=!0);}catch(x){f=!0,h=x}finally{try{!c&&g.return!=null&&g.return()}finally{if(f)throw h}}return u}function Gee(i){if(Array.isArray(i))return i}function Nr(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nr=function(u){return typeof u}:Nr=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Nr(i)}var Uee=/a/g.flags!==void 0,Bf=function(s){var u=[];return s.forEach(function(c){return u.push(c)}),u},HB=function(s){var u=[];return s.forEach(function(c,f){return u.push([f,c])}),u},iT=Object.is?Object.is:A1(),Ff=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},S1=Number.isNaN?Number.isNaN:zB();function w1(i){return i.call.bind(i)}var Xo=w1(Object.prototype.hasOwnProperty),wf=w1(Object.prototype.propertyIsEnumerable),JB=w1(Object.prototype.toString),hr=eu().types,Wee=hr.isAnyArrayBuffer,zee=hr.isArrayBufferView,YB=hr.isDate,Af=hr.isMap,XB=hr.isRegExp,vf=hr.isSet,$ee=hr.isNativeError,Hee=hr.isBoxedPrimitive,KB=hr.isNumberObject,QB=hr.isStringObject,ZB=hr.isBooleanObject,eT=hr.isBigIntObject,Jee=hr.isSymbolObject,Yee=hr.isFloat32Array,Xee=hr.isFloat64Array;function Kee(i){if(i.length===0||i.length>10)return!0;for(var s=0;s57)return!0}return i.length===10&&i>=Math.pow(2,32)}function xf(i){return Object.keys(i).filter(Kee).concat(Ff(i).filter(Object.prototype.propertyIsEnumerable.bind(i)))}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function sT(i,s){if(i===s)return 0;for(var u=i.length,c=s.length,f=0,h=Math.min(u,c);f{"use strict";function Si(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Si=function(u){return typeof u}:Si=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Si(i)}function fte(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}var hte=p1(),Qo=hte.codes,pT=Qo.ERR_AMBIGUOUS_ARGUMENT,Ko=Qo.ERR_INVALID_ARG_TYPE,dte=Qo.ERR_INVALID_ARG_VALUE,mte=Qo.ERR_INVALID_RETURN_VALUE,wi=Qo.ERR_MISSING_ARGS,ks=sB(),gte=eu(),yte=gte.inspect,mT=eu().types,Dte=mT.isPromise,T1=mT.isRegExp,Ete=Object.assign?Object.assign:oB().assign,gT=Object.is?Object.is:A1(),Fi,Tf;function Zo(){var i=lT();Fi=i.isDeepEqual,Tf=i.isDeepStrictEqual}var fT=!1,ut=FT.exports=k1,kf={};function Sn(i){throw i.message instanceof Error?i.message:new ks(i)}function yT(i,s,u,c,f){var h=arguments.length,g;if(h===0)g="Failed";else if(h===1)u=i,i=void 0;else{if(fT===!1){fT=!0;var C=process.emitWarning?process.emitWarning:console.warn.bind(console);C("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}h===2&&(c="!=")}if(u instanceof Error)throw u;var x={actual:i,expected:s,operator:c===void 0?"fail":c,stackStartFn:f||yT};u!==void 0&&(x.message=u);var I=new ks(x);throw g&&(I.message=g,I.generatedMessage=!0),I}ut.fail=yT;ut.AssertionError=ks;function DT(i,s,u,c){if(!u){var f=!1;if(s===0)f=!0,c="No value argument passed to `assert.ok()`";else if(c instanceof Error)throw c;var h=new ks({actual:u,expected:!0,message:c,operator:"==",stackStartFn:i});throw h.generatedMessage=f,h}}function k1(){for(var i=arguments.length,s=new Array(i),u=0;u1?u-1:0),f=1;f1?u-1:0),f=1;f1?u-1:0),f=1;f1?u-1:0),f=1;f{(function i(s){"use strict";var u,c,f,h,g,C;function x(J){var W={},$,G;for($ in J)J.hasOwnProperty($)&&(G=J[$],typeof G=="object"&&G!==null?W[$]=x(G):W[$]=G);return W}function I(J,W){var $,G,ce,se;for(G=J.length,ce=0;G;)$=G>>>1,se=ce+$,W(J[se])?G=$:(ce=se+1,G-=$+1);return ce}u={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},f={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},h={},g={},C={},c={Break:h,Skip:g,Remove:C};function N(J,W){this.parent=J,this.key=W}N.prototype.replace=function(W){this.parent[this.key]=W},N.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function j(J,W,$,G){this.node=J,this.path=W,this.wrap=$,this.ref=G}function O(){}O.prototype.path=function(){var W,$,G,ce,se,he;function ie(K,ge){if(Array.isArray(ge))for(G=0,ce=ge.length;G=0;--$)if(J[$].node===W)return!0;return!1}O.prototype.traverse=function(W,$){var G,ce,se,he,ie,K,ge,Ie,Pe,Ne,we,Ze;for(this.__initialize(W,$),Ze={},G=this.__worklist,ce=this.__leavelist,G.push(new j(W,null,null,null)),ce.push(new j(null,null,null,null));G.length;){if(se=G.pop(),se===Ze){if(se=ce.pop(),K=this.__execute($.leave,se),this.__state===h||K===h)return;continue}if(se.node){if(K=this.__execute($.enter,se),this.__state===h||K===h)return;if(G.push(Ze),ce.push(se),this.__state===g||K===g)continue;if(he=se.node,ie=he.type||se.wrap,Ne=this.__keys[ie],!Ne)if(this.__fallback)Ne=this.__fallback(he);else throw new Error("Unknown node type "+ie+".");for(Ie=Ne.length;(Ie-=1)>=0;)if(ge=Ne[Ie],we=he[ge],!!we){if(Array.isArray(we)){for(Pe=we.length;(Pe-=1)>=0;)if(!!we[Pe]&&!Y(ce,we[Pe])){if(V(ie,Ne[Ie]))se=new j(we[Pe],[ge,Pe],"Property",null);else if(R(we[Pe]))se=new j(we[Pe],[ge,Pe],null,null);else continue;G.push(se)}}else if(R(we)){if(Y(ce,we))continue;G.push(new j(we,ge,null,null))}}}}},O.prototype.replace=function(W,$){var G,ce,se,he,ie,K,ge,Ie,Pe,Ne,we,Ze,vt;function le(Gt){var xr,ln,Le,Et;if(Gt.ref.remove()){for(ln=Gt.ref.key,Et=Gt.ref.parent,xr=G.length;xr--;)if(Le=G[xr],Le.ref&&Le.ref.parent===Et){if(Le.ref.key=0;)if(vt=Pe[ge],Ne=se[vt],!!Ne)if(Array.isArray(Ne)){for(Ie=Ne.length;(Ie-=1)>=0;)if(!!Ne[Ie]){if(V(he,Pe[ge]))K=new j(Ne[Ie],[vt,Ie],"Property",new N(Ne,Ie));else if(R(Ne[Ie]))K=new j(Ne[Ie],[vt,Ie],null,new N(Ne,Ie));else continue;G.push(K)}}else R(Ne)&&G.push(new j(Ne,vt,null,new N(se,vt)))}}return Ze.root};function Z(J,W){var $=new O;return $.traverse(J,W)}function ue(J,W){var $=new O;return $.replace(J,W)}function oe(J,W){var $;return $=I(W,function(ce){return ce.range[0]>J.range[0]}),J.extendedRange=[J.range[0],J.range[1]],$!==W.length&&(J.extendedRange[1]=W[$].range[0]),$-=1,$>=0&&(J.extendedRange[0]=W[$].range[1]),J}function fe(J,W,$){var G=[],ce,se,he,ie;if(!J.range)throw new Error("attachComments needs range information");if(!$.length){if(W.length){for(he=0,se=W.length;heK.range[0]));)ge.extendedRange[1]===K.range[0]?(K.leadingComments||(K.leadingComments=[]),K.leadingComments.push(ge),G.splice(ie,1)):ie+=1;if(ie===G.length)return c.Break;if(G[ie].extendedRange[0]>K.range[1])return c.Skip}}),ie=0,Z(J,{leave:function(K){for(var ge;ieK.range[1])return c.Skip}}),J}return s.Syntax=u,s.traverse=Z,s.replace=ue,s.attachComments=fe,s.VisitorKeys=f,s.VisitorOption=c,s.Controller=O,s.cloneEnvironment=function(){return i({})},s})(wT)});var NT=be((ine,xte)=>{xte.exports={name:"esrecurse",description:"ECMAScript AST recursive visitor",homepage:"https://github.com/estools/esrecurse",main:"esrecurse.js",version:"4.3.0",engines:{node:">=4.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],repository:{type:"git",url:"https://github.com/estools/esrecurse.git"},dependencies:{estraverse:"^5.2.0"},devDependencies:{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1",chai:"^4.0.2",esprima:"^4.0.0",gulp:"^3.9.0","gulp-bump":"^2.7.0","gulp-eslint":"^4.0.0","gulp-filter":"^5.0.0","gulp-git":"^2.4.1","gulp-mocha":"^4.3.1","gulp-tag-version":"^1.2.1",jsdoc:"^3.3.0-alpha10",minimist:"^1.1.0"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},babel:{presets:["es2015"]}}});var G1=be(Pf=>{(function(){"use strict";var i=ec();function s(f){return f==null?!1:typeof f=="object"&&typeof f.type=="string"}function u(f,h){return(f===i.Syntax.ObjectExpression||f===i.Syntax.ObjectPattern)&&h==="properties"}function c(f,h){h=h||{},this.__visitor=f||this,this.__childVisitorKeys=h.childVisitorKeys?Object.assign({},i.VisitorKeys,h.childVisitorKeys):i.VisitorKeys,h.fallback==="iteration"?this.__fallback=Object.keys:typeof h.fallback=="function"&&(this.__fallback=h.fallback)}c.prototype.visitChildren=function(f){var h,g,C,x,I,N,j;if(f!=null){if(h=f.type||i.Syntax.Property,g=this.__childVisitorKeys[h],!g)if(this.__fallback)g=this.__fallback(f);else throw new Error("Unknown node type "+h+".");for(C=0,x=g.length;C{var ai=function(i){i==null&&(i=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,i.constructor==Array?this.init_by_array(i,i.length):this.init_seed(i)};ai.prototype.init_seed=function(i){for(this.mt[0]=i>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((i&4294901760)>>>16)*1812433253<<16)+(i&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};ai.prototype.init_by_array=function(i,s){var u,c,f;for(this.init_seed(19650218),u=1,c=0,f=this.N>s?this.N:s;f;f--){var h=this.mt[u-1]^this.mt[u-1]>>>30;this.mt[u]=(this.mt[u]^(((h&4294901760)>>>16)*1664525<<16)+(h&65535)*1664525)+i[c]+c,this.mt[u]>>>=0,u++,c++,u>=this.N&&(this.mt[0]=this.mt[this.N-1],u=1),c>=s&&(c=0)}for(f=this.N-1;f;f--){var h=this.mt[u-1]^this.mt[u-1]>>>30;this.mt[u]=(this.mt[u]^(((h&4294901760)>>>16)*1566083941<<16)+(h&65535)*1566083941)-u,this.mt[u]>>>=0,u++,u>=this.N&&(this.mt[0]=this.mt[this.N-1],u=1)}this.mt[0]=2147483648};ai.prototype.random_int=function(){var i,s=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var u;for(this.mti==this.N+1&&this.init_seed(5489),u=0;u>>1^s[i&1];for(;u>>1^s[i&1];i=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^i>>>1^s[i&1],this.mti=0}return i=this.mt[this.mti++],i^=i>>>11,i^=i<<7&2636928640,i^=i<<15&4022730752,i^=i>>>18,i>>>0};ai.prototype.random_int31=function(){return this.random_int()>>>1};ai.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};ai.prototype.random=function(){return this.random_int()*(1/4294967296)};ai.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};ai.prototype.random_long=function(){var i=this.random_int()>>>5,s=this.random_int()>>>6;return(i*67108864+s)*(1/9007199254740992)};XT.exports=ai});var nk=be((Y1,X1)=>{(function(i,s){typeof Y1=="object"&&typeof X1<"u"?X1.exports=s():typeof define=="function"&&define.amd?define(s):(i=typeof globalThis<"u"?globalThis:i||self).prettier=s()})(Y1,function(){"use strict";var i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u={version:"2.5.1"},c={},f={};(function(e){function t(){}function r(a,o,l,p,d){for(var m=0,y=o.length,D=0,b=0;mP.length?M:P}),v.value=a.join(S)}else v.value=a.join(l.slice(D,D+v.count));D+=v.count,v.added||(b+=v.count)}}var k=o[y-1];return y>1&&typeof k.value=="string"&&(k.added||k.removed)&&a.equals("",k.value)&&(o[y-2].value+=k.value,o.pop()),o}function n(a){return{newPos:a.newPos,components:a.components.slice(0)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(a,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=l.callback;typeof l=="function"&&(p=l,l={}),this.options=l;var d=this;function m(_){return p?(setTimeout(function(){p(void 0,_)},0),!0):_}a=this.castInput(a),o=this.castInput(o),a=this.removeEmpty(this.tokenize(a));var y=(o=this.removeEmpty(this.tokenize(o))).length,D=a.length,b=1,v=y+D,w=[{newPos:-1,components:[]}],S=this.extractCommon(w[0],o,a,0);if(w[0].newPos+1>=y&&S+1>=D)return m([{value:this.join(o),count:o.length}]);function k(){for(var _=-1*b;_<=b;_+=2){var M=void 0,U=w[_-1],q=w[_+1],H=(q?q.newPos:0)-_;U&&(w[_-1]=void 0);var Q=U&&U.newPos+1=y&&H+1>=D)return m(r(d,M.components,o,a,d.useLongestToken));w[_]=M}else w[_]=void 0}b++}if(p)(function _(){setTimeout(function(){if(b>v)return p();k()||_()},0)})();else for(;b<=v;){var P=k();if(P)return P}},pushComponent:function(a,o,l){var p=a[a.length-1];p&&p.added===o&&p.removed===l?a[a.length-1]={count:p.count+1,added:o,removed:l}:a.push({count:1,added:o,removed:l})},extractCommon:function(a,o,l,p){for(var d=o.length,m=l.length,y=a.newPos,D=y-p,b=0;y+10&&le[0]<4?1:+(le[0]+le[1])),!Gt&&it&&(!(le=it.match(/Edge\/(\d+)/))||le[1]>=74)&&(le=it.match(/Chrome\/(\d+)/))&&(Gt=+le[1]);var ui=Gt,Ii=ui,lc=K,pc=!!Object.getOwnPropertySymbols&&!lc(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ii&&Ii<41}),fc=pc&&!Symbol.sham&&typeof Symbol.iterator=="symbol",E=_i,B=Oe,F=Lr,T=fc,L=he.Object,z=T?function(e){return typeof e=="symbol"}:function(e){var t=E("Symbol");return B(t)&&F(t.prototype,L(e))},X=he.String,re=function(e){try{return X(e)}catch{return"Object"}},me=Oe,je=re,mt=he.TypeError,Sr=function(e){if(me(e))return e;throw mt(je(e)+" is not a function")},oi=Sr,Ms=function(e,t){var r=e[t];return r==null?void 0:oi(r)},js=Pe,mr=Oe,Qf=xe,ak=he.TypeError,Zf={exports:{}},Q1=he,uk=Object.defineProperty,e0=function(e,t){try{uk(Q1,e,{value:t,configurable:!0,writable:!0})}catch{Q1[e]=t}return t},ok=e0,Z1="__core-js_shared__",t0=he[Z1]||ok(Z1,{}),eD=t0;(Zf.exports=function(e,t){return eD[e]||(eD[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"});var ck=oc,lk=he.Object,hc=function(e){return lk(ck(e))},pk=hc,fk=Ut({}.hasOwnProperty),Pi=Object.hasOwn||function(e,t){return fk(pk(e),t)},hk=Ut,dk=0,mk=Math.random(),gk=hk(1 .toString),tD=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gk(++dk+mk,36)},yk=he,Dk=Zf.exports,rD=Pi,Ek=tD,nD=pc,iD=fc,cu=Dk("wks"),Oi=yk.Symbol,sD=Oi&&Oi.for,bk=iD?Oi:Oi&&Oi.withoutSetter||Ek,Li=function(e){if(!rD(cu,e)||!nD&&typeof cu[e]!="string"){var t="Symbol."+e;nD&&rD(Oi,e)?cu[e]=Oi[e]:cu[e]=iD&&sD?sD(t):bk(t)}return cu[e]},Ck=Pe,aD=xe,uD=z,Ak=Ms,vk=function(e,t){var r,n;if(t==="string"&&mr(r=e.toString)&&!Qf(n=js(r,e))||mr(r=e.valueOf)&&!Qf(n=js(r,e))||t!=="string"&&mr(r=e.toString)&&!Qf(n=js(r,e)))return n;throw ak("Can't convert object to primitive value")},xk=Li,Sk=he.TypeError,Fk=xk("toPrimitive"),wk=function(e,t){if(!aD(e)||uD(e))return e;var r,n=Ak(e,Fk);if(n){if(t===void 0&&(t="default"),r=Ck(n,e,t),!aD(r)||uD(r))return r;throw Sk("Can't convert object to primitive value")}return t===void 0&&(t="number"),vk(e,t)},Bk=z,r0=function(e){var t=wk(e,"string");return Bk(t)?t:t+""},oD=xe,n0=he.document,Tk=oD(n0)&&oD(n0.createElement),cD=function(e){return Tk?n0.createElement(e):{}},kk=cD,lD=!ge&&!K(function(){return Object.defineProperty(kk("div"),"a",{get:function(){return 7}}).a!=7}),_k=ge,Nk=Pe,Ik=Ne,Pk=xr,Ok=ki,Lk=r0,Mk=Pi,jk=lD,pD=Object.getOwnPropertyDescriptor;ie.f=_k?pD:function(e,t){if(e=Ok(e),t=Lk(t),jk)try{return pD(e,t)}catch{}if(Mk(e,t))return Pk(!Nk(Ik.f,e,t),e[t])};var Rs={},fD=he,Rk=xe,Vk=fD.String,qk=fD.TypeError,Mi=function(e){if(Rk(e))return e;throw qk(Vk(e)+" is not an object")},Gk=ge,Uk=lD,hD=Mi,Wk=r0,zk=he.TypeError,dD=Object.defineProperty;Rs.f=Gk?dD:function(e,t,r){if(hD(e),t=Wk(t),hD(r),Uk)try{return dD(e,t,r)}catch{}if("get"in r||"set"in r)throw zk("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var $k=Rs,Hk=xr,i0=ge?function(e,t,r){return $k.f(e,t,Hk(1,r))}:function(e,t,r){return e[t]=r,e},mD={exports:{}},Jk=Oe,s0=t0,Yk=Ut(Function.toString);Jk(s0.inspectSource)||(s0.inspectSource=function(e){return Yk(e)});var dc,lu,mc,a0=s0.inspectSource,Xk=Oe,Kk=a0,gD=he.WeakMap,Qk=Xk(gD)&&/native code/.test(Kk(gD)),Zk=Zf.exports,e9=tD,yD=Zk("keys"),DD=function(e){return yD[e]||(yD[e]=e9(e))},u0={},t9=Qk,ED=he,o0=Ut,r9=xe,n9=i0,c0=Pi,l0=t0,i9=DD,s9=u0,bD="Object already initialized",p0=ED.TypeError,a9=ED.WeakMap;if(t9||l0.state){var ji=l0.state||(l0.state=new a9),u9=o0(ji.get),CD=o0(ji.has),o9=o0(ji.set);dc=function(e,t){if(CD(ji,e))throw new p0(bD);return t.facade=e,o9(ji,e,t),t},lu=function(e){return u9(ji,e)||{}},mc=function(e){return CD(ji,e)}}else{var Vs=i9("state");s9[Vs]=!0,dc=function(e,t){if(c0(e,Vs))throw new p0(bD);return t.facade=e,n9(e,Vs,t),t},lu=function(e){return c0(e,Vs)?e[Vs]:{}},mc=function(e){return c0(e,Vs)}}var AD={set:dc,get:lu,has:mc,enforce:function(e){return mc(e)?lu(e):dc(e,{})},getterFor:function(e){return function(t){var r;if(!r9(t)||(r=lu(t)).type!==e)throw p0("Incompatible receiver, "+e+" required");return r}}},f0=ge,c9=Pi,vD=Function.prototype,l9=f0&&Object.getOwnPropertyDescriptor,h0=c9(vD,"name"),p9=h0&&function(){}.name==="something",f9=h0&&(!f0||f0&&l9(vD,"name").configurable),h9=he,xD=Oe,d9=Pi,SD=i0,m9=e0,g9=a0,y9=f9,D9=AD.get,E9=AD.enforce,b9=String(String).split("String");(mD.exports=function(e,t,r,n){var a,o=!!n&&!!n.unsafe,l=!!n&&!!n.enumerable,p=!!n&&!!n.noTargetGet,d=n&&n.name!==void 0?n.name:t;xD(r)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!d9(r,"name")||y9&&r.name!==d)&&SD(r,"name",d),(a=E9(r)).source||(a.source=b9.join(typeof d=="string"?d:""))),e!==h9?(o?!p&&e[t]&&(l=!0):delete e[t],l?e[t]=r:SD(e,t,r)):l?e[t]=r:m9(t,r)})(Function.prototype,"toString",function(){return xD(this)&&D9(this).source||g9(this)});var FD={},C9=Math.ceil,A9=Math.floor,d0=function(e){var t=+e;return t!=t||t===0?0:(t>0?A9:C9)(t)},v9=d0,x9=Math.max,S9=Math.min,F9=d0,w9=Math.min,B9=function(e){return e>0?w9(F9(e),9007199254740991):0},qs=function(e){return B9(e.length)},T9=ki,k9=function(e,t){var r=v9(e);return r<0?x9(r+t,0):S9(r,t)},_9=qs,wD=function(e){return function(t,r,n){var a,o=T9(t),l=_9(o),p=k9(n,l);if(e&&r!=r){for(;l>p;)if((a=o[p++])!=a)return!0}else for(;l>p;p++)if((e||p in o)&&o[p]===r)return e||p||0;return!e&&-1}},N9={includes:wD(!0),indexOf:wD(!1)},m0=Pi,I9=ki,P9=N9.indexOf,O9=u0,BD=Ut([].push),TD=function(e,t){var r,n=I9(e),a=0,o=[];for(r in n)!m0(O9,r)&&m0(n,r)&&BD(o,r);for(;t.length>a;)m0(n,r=t[a++])&&(~P9(o,r)||BD(o,r));return o},g0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],L9=TD,M9=g0.concat("length","prototype");FD.f=Object.getOwnPropertyNames||function(e){return L9(e,M9)};var kD={};kD.f=Object.getOwnPropertySymbols;var j9=_i,R9=FD,V9=kD,q9=Mi,G9=Ut([].concat),U9=j9("Reflect","ownKeys")||function(e){var t=R9.f(q9(e)),r=V9.f;return r?G9(t,r(e)):t},W9=Pi,z9=U9,$9=ie,H9=Rs,J9=K,Y9=Oe,X9=/#|\.prototype\./,pu=function(e,t){var r=Q9[K9(e)];return r==e_||r!=Z9&&(Y9(t)?J9(t):!!t)},K9=pu.normalize=function(e){return String(e).replace(X9,".").toLowerCase()},Q9=pu.data={},Z9=pu.NATIVE="N",e_=pu.POLYFILL="P",t_=pu,y0=he,r_=ie.f,n_=i0,i_=mD.exports,s_=e0,a_=function(e,t){for(var r=z9(t),n=H9.f,a=$9.f,o=0;o0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},D_=function(e,t,r,n){for(var a=t.length,o=r.length,l=0,p=0;l3)){if(k_)return!0;if(RD)return RD<603;var e,t,r,n,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)ci.push({k:t+n,v:r})}for(ci.sort(function(o,l){return l.v-o.v}),n=0;nLD(d)?1:-1}}(e)),r=a.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],o=0;function l(){var m={};for(a.push(m);o2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string"&&(t=(0,WD.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,a,o=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],p=t.hunks,d=r.compareLine||function(Dt,lr,kt,_t){return lr===_t},m=0,y=r.fuzzFactor||0,D=0,b=0;function v(Dt,lr){for(var kt=0;kt0?_t[0]:" ",_p=_t.length>0?_t.substr(1):_t;if(Oa===" "||Oa==="-"){if(!d(lr+1,o[lr],Oa,_p)&&++m>y)return!1;lr++}}return!0}for(var w=0;w0?Ee[0]:" ",pe=Ee.length>0?Ee.substr(1):Ee,Be=H.linedelimiters[te];if(ne===" ")Q++;else if(ne==="-")o.splice(Q,1),l.splice(Q,1);else if(ne==="+")o.splice(Q,0,pe),l.splice(Q,0,Be),Q++;else if(ne==="\\"){var Se=H.lines[te-1]?H.lines[te-1][0]:null;Se==="+"?n=!0:Se==="-"&&(a=!0)}}}if(n)for(;!o[o.length-1];)o.pop(),l.pop();else a&&(o.push(""),l.push(` +`));for(var st=0;ste.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?d(q.lines.slice(-l.context)):[],y-=b.length,D-=b.length)}(U=b).push.apply(U,A0(M.map(function(Se){return(_.added?"+":"-")+Se}))),_.added?w+=M.length:v+=M.length}else{if(y)if(M.length<=2*l.context&&P=p.length-2&&M.length<=l.context){var ne=/\n$/.test(r),pe=/\n$/.test(n),Be=M.length==0&&b.length>Ee.oldLines;!ne&&Be&&r.length>0&&b.splice(Ee.oldLines,0,"\\ No newline at end of file"),(ne||Be)&&pe||b.push("\\ No newline at end of file")}m.push(Ee),y=0,D=0,b=[]}v+=M.length,w+=M.length}},k=0;ke.length)return!1;for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r/g,">")).replace(/"/g,""")}function vc(e){return{type:"concat",parts:e}}function aE(e){return{type:"indent",contents:e}}function Ws(e,t){return{type:"align",contents:t,n:e}}function uE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}Object.defineProperty(T0,"__esModule",{value:!0}),T0.convertChangesToXML=function(e){for(var t=[],r=0;r"):n.removed&&t.push(""),t.push(W_(n.value)),n.added?t.push(""):n.removed&&t.push("")}return t.join("")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return r.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return n.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return n.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return a.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return a.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return l.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return p.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return p.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return d.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return m.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return m.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return y.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return D.merge}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return b.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return b.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return b.createPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return v.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return w.convertChangesToXML}});var t=function(S){return S&&S.__esModule?S:{default:S}}(f),r=g,n=x,a=Y,o=fe,l=$,p=Gs,d=fu,m=Ec,y=du,D=bc,b=Vi,v=B0,w=T0}(c);let k0={type:"break-parent"},oE={type:"line",hard:!0},cE={type:"line",hard:!0,literal:!0},z_=vc([oE,k0]),$_=vc([cE,k0]);var _0={concat:vc,join:function(e,t){let r=[];for(let n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:e,flatContents:t,groupId:r.groupId}},trim:{type:"trim"},indent:aE,indentIfBreak:function(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:Ws,addAlignmentToDoc:function(e,t,r){let n=e;if(t>0){for(let a=0;a0&&arguments[0]!==void 0?arguments[0]:{},t=["[\\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(t,e?void 0:"g")};var I0={exports:{}};let lE=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);I0.exports=lE,I0.exports.default=lE;let J_=e=>typeof e=="string"?e.replace(H_(),""):e,Y_=I0.exports,X_=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},pE=e=>{if(typeof e!="string"||e.length===0||(e=J_(e)).length===0)return 0;e=e.replace(X_()," ");let t=0;for(let r=0;r=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Y_(n)?2:1)}return t};N0.exports=pE,N0.exports.default=pE;var Mr=e=>e[e.length-1];function P0(e,t){if(e==null)return{};var r,n,a=function(l,p){if(l==null)return{};var d,m,y={},D=Object.keys(l);for(m=0;m=0||(y[d]=l[d]);return y}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function zs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var K_=au,fE=Array.isArray||function(e){return K_(e)=="Array"},Q_=Sr,hE=Ut(Ut.bind),dE=function(e,t){return Q_(e),t===void 0?e:hE?hE(e,t):function(){return e.apply(t,arguments)}},Z_=fE,eN=qs,tN=dE,rN=he.TypeError,mE=function(e,t,r,n,a,o,l,p){for(var d,m,y=a,D=0,b=!!l&&tN(l,p);D0&&Z_(d))m=eN(d),y=mE(e,t,d,m,y,o-1)-1;else{if(y>=9007199254740991)throw rN("Exceed the acceptable array length");e[y]=d}y++}D++}return y},gE=mE,nN=Ut,iN=K,yE=Oe,sN=D0,aN=a0,DE=function(){},uN=[],EE=_i("Reflect","construct"),O0=/^\s*(?:class|function)\b/,oN=nN(O0.exec),cN=!O0.exec(DE),mu=function(e){if(!yE(e))return!1;try{return EE(DE,uN,e),!0}catch{return!1}},lN=!EE||iN(function(){var e;return mu(mu.call)||!mu(Object)||!mu(function(){e=!0})||e})?function(e){if(!yE(e))return!1;switch(sN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cN||!!oN(O0,aN(e))}:mu,pN=he,bE=fE,fN=lN,hN=xe,dN=Li("species"),CE=pN.Array,mN=function(e){var t;return bE(e)&&(t=e.constructor,(fN(t)&&(t===CE||bE(t.prototype))||hN(t)&&(t=t[dN])===null)&&(t=void 0)),t===void 0?CE:t},AE=function(e,t){return new(mN(e))(t===0?0:t)},gN=gE,yN=Sr,DN=hc,EN=qs,bN=AE;gc({target:"Array",proto:!0},{flatMap:function(e){var t,r=DN(this),n=EN(r);return yN(e),(t=bN(r,0)).length=gN(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var vE={},CN=vE,AN=Li("iterator"),vN=Array.prototype,xN=D0,xE=Ms,SN=vE,FN=Li("iterator"),SE=function(e){if(e!=null)return xE(e,FN)||xE(e,"@@iterator")||SN[xN(e)]},wN=Pe,BN=Sr,TN=Mi,kN=re,_N=SE,NN=he.TypeError,IN=Pe,FE=Mi,PN=Ms,ON=dE,LN=Pe,MN=Mi,jN=re,RN=function(e){return e!==void 0&&(CN.Array===e||vN[AN]===e)},VN=qs,wE=Lr,qN=function(e,t){var r=arguments.length<2?_N(e):t;if(BN(r))return TN(wN(r,e));throw NN(kN(e)+" is not iterable")},GN=SE,BE=function(e,t,r){var n,a;FE(e);try{if(!(n=PN(e,"return"))){if(t==="throw")throw r;return r}n=IN(n,e)}catch(o){a=!0,n=o}if(t==="throw")throw r;if(a)throw n;return FE(n),r},UN=he.TypeError,xc=function(e,t){this.stopped=e,this.result=t},TE=xc.prototype,WN=r0,zN=Rs,$N=xr,HN=function(e,t,r){var n,a,o,l,p,d,m,y=r&&r.that,D=!(!r||!r.AS_ENTRIES),b=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),w=ON(t,y),S=function(P){return n&&BE(n,"normal",P),new xc(!0,P)},k=function(P){return D?(MN(P),v?w(P[0],P[1],S):w(P[0],P[1])):v?w(P,S):w(P)};if(b)n=e;else{if(!(a=GN(e)))throw UN(jN(e)+" is not iterable");if(RN(a)){for(o=0,l=VN(e);l>o;o++)if((p=k(e[o]))&&wE(TE,p))return p;return new xc(!1)}n=qN(e,a)}for(d=n.next;!(m=LN(d,n)).done;){try{p=k(m.value)}catch(P){BE(n,"throw",P)}if(typeof p=="object"&&p&&wE(TE,p))return p}return new xc(!1)},JN=function(e,t,r){var n=WN(t);n in e?zN.f(e,n,$N(0,r)):e[n]=r};gc({target:"Object",stat:!0},{fromEntries:function(e){var t={};return HN(e,function(r,n){JN(t,r,n)},{AS_ENTRIES:!0}),t}});var jr=jr!==void 0?jr:typeof self<"u"?self:typeof window<"u"?window:{};function kE(){throw new Error("setTimeout has not been defined")}function _E(){throw new Error("clearTimeout has not been defined")}var li=kE,pi=_E;function NE(e){if(li===setTimeout)return setTimeout(e,0);if((li===kE||!li)&&setTimeout)return li=setTimeout,setTimeout(e,0);try{return li(e,0)}catch{try{return li.call(null,e,0)}catch{return li.call(this,e,0)}}}typeof jr.setTimeout=="function"&&(li=setTimeout),typeof jr.clearTimeout=="function"&&(pi=clearTimeout);var Gi,qn=[],$s=!1,Sc=-1;function YN(){$s&&Gi&&($s=!1,Gi.length?qn=Gi.concat(qn):Sc=-1,qn.length&&IE())}function IE(){if(!$s){var e=NE(YN);$s=!0;for(var t=qn.length;t;){for(Gi=qn,qn=[];++Sc1)for(var r=1;r{},LE={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},L0={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=LE,n=OE,a=(t=e.exports={}).re=[],o=t.src=[],l=t.t={},p=0,d=(m,y,D)=>{let b=p++;n(b,y),l[m]=b,o[b]=y,a[b]=new RegExp(y,D?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","[0-9]+"),d("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),d("MAINVERSION","(".concat(o[l.NUMERICIDENTIFIER],")\\.")+"(".concat(o[l.NUMERICIDENTIFIER],")\\.")+"(".concat(o[l.NUMERICIDENTIFIER],")")),d("MAINVERSIONLOOSE","(".concat(o[l.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[l.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[l.NUMERICIDENTIFIERLOOSE],")")),d("PRERELEASEIDENTIFIER","(?:".concat(o[l.NUMERICIDENTIFIER],"|").concat(o[l.NONNUMERICIDENTIFIER],")")),d("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[l.NUMERICIDENTIFIERLOOSE],"|").concat(o[l.NONNUMERICIDENTIFIER],")")),d("PRERELEASE","(?:-(".concat(o[l.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[l.PRERELEASEIDENTIFIER],")*))")),d("PRERELEASELOOSE","(?:-?(".concat(o[l.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[l.PRERELEASEIDENTIFIERLOOSE],")*))")),d("BUILDIDENTIFIER","[0-9A-Za-z-]+"),d("BUILD","(?:\\+(".concat(o[l.BUILDIDENTIFIER],"(?:\\.").concat(o[l.BUILDIDENTIFIER],")*))")),d("FULLPLAIN","v?".concat(o[l.MAINVERSION]).concat(o[l.PRERELEASE],"?").concat(o[l.BUILD],"?")),d("FULL","^".concat(o[l.FULLPLAIN],"$")),d("LOOSEPLAIN","[v=\\s]*".concat(o[l.MAINVERSIONLOOSE]).concat(o[l.PRERELEASELOOSE],"?").concat(o[l.BUILD],"?")),d("LOOSE","^".concat(o[l.LOOSEPLAIN],"$")),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE","".concat(o[l.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),d("XRANGEIDENTIFIER","".concat(o[l.NUMERICIDENTIFIER],"|x|X|\\*")),d("XRANGEPLAIN","[v=\\s]*(".concat(o[l.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[l.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[l.XRANGEIDENTIFIER],")")+"(?:".concat(o[l.PRERELEASE],")?").concat(o[l.BUILD],"?")+")?)?"),d("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[l.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[l.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[l.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[l.PRERELEASELOOSE],")?").concat(o[l.BUILD],"?")+")?)?"),d("XRANGE","^".concat(o[l.GTLT],"\\s*").concat(o[l.XRANGEPLAIN],"$")),d("XRANGELOOSE","^".concat(o[l.GTLT],"\\s*").concat(o[l.XRANGEPLAINLOOSE],"$")),d("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),d("COERCERTL",o[l.COERCE],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM","(\\s*)".concat(o[l.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",d("TILDE","^".concat(o[l.LONETILDE]).concat(o[l.XRANGEPLAIN],"$")),d("TILDELOOSE","^".concat(o[l.LONETILDE]).concat(o[l.XRANGEPLAINLOOSE],"$")),d("LONECARET","(?:\\^)"),d("CARETTRIM","(\\s*)".concat(o[l.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",d("CARET","^".concat(o[l.LONECARET]).concat(o[l.XRANGEPLAIN],"$")),d("CARETLOOSE","^".concat(o[l.LONECARET]).concat(o[l.XRANGEPLAINLOOSE],"$")),d("COMPARATORLOOSE","^".concat(o[l.GTLT],"\\s*(").concat(o[l.LOOSEPLAIN],")$|^$")),d("COMPARATOR","^".concat(o[l.GTLT],"\\s*(").concat(o[l.FULLPLAIN],")$|^$")),d("COMPARATORTRIM","(\\s*)".concat(o[l.GTLT],"\\s*(").concat(o[l.LOOSEPLAIN],"|").concat(o[l.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE","^\\s*(".concat(o[l.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[l.XRANGEPLAIN],")")+"\\s*$"),d("HYPHENRANGELOOSE","^\\s*(".concat(o[l.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[l.XRANGEPLAINLOOSE],")")+"\\s*$"),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0.0.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})(L0,L0.exports);let a4=["includePrerelease","loose","rtl"];var u4=e=>e?typeof e!="object"?{loose:!0}:a4.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};let ME=/^[0-9]+$/,jE=(e,t)=>{let r=ME.test(e),n=ME.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:ejE(t,e)};let Fc=OE,{MAX_LENGTH:RE,MAX_SAFE_INTEGER:wc}=LE,{re:VE,t:qE}=L0.exports,c4=u4,{compareIdentifiers:gu}=o4;class pn{constructor(t,r){if(r=c4(r),t instanceof pn){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError("Invalid Version: ".concat(t));if(t.length>RE)throw new TypeError("version is longer than ".concat(RE," characters"));Fc("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?VE[qE.LOOSE]:VE[qE.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>wc||this.major<0)throw new TypeError("Invalid major version");if(this.minor>wc||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>wc||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}}let GE=pn;var M0=(e,t,r)=>new GE(e,r).compare(new GE(t,r));let l4=M0;var p4=(e,t,r)=>l4(e,t,r)<0;let f4=M0;var UE,WE,zE,$E,HE,JE,h4=(e,t,r)=>f4(e,t,r)>=0,j0={exports:{}};(function(e,t){function r(){for(var k=[],P=0;Ptypeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Gn,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:R0},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Gn,description:Js(zE||(zE=zs([` + Custom directory that contains prettier plugins in node_modules subdirectory. + Overrides default behavior when plugins are searched relatively to the location of Prettier. + Multiple values are accepted. + `]))),exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:R0},printWidth:{since:"0.0.0",category:Gn,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Wi,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Js($E||($E=zs([` + Format code ending at a given character offset (exclusive). + The range will extend forwards to the end of the selected statement. + This option cannot be used with --cursor-offset. + `]))),cliCategory:Bc},rangeStart:{since:"1.4.0",category:Wi,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Js(HE||(HE=zs([` + Format code starting at a given character offset. + The range will extend backwards to the start of the first line containing the selected statement. + This option cannot be used with --cursor-offset. + `]))),cliCategory:Bc},requirePragma:{since:"1.7.0",category:Wi,type:"boolean",default:!1,description:Js(JE||(JE=zs([` + Require either '@prettier' or '@format' to be present in the file's first docblock comment + in order for it to be formatted. + `]))),cliCategory:Tc},tabWidth:{type:"int",category:Gn,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Gn,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Gn,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},m4=["cliName","cliCategory","cliDescription"],V0={compare:M0,lt:p4,gte:h4},g4=(e,t)=>Object.entries(e).map(r=>{let[n,a]=r;return Object.assign({[t]:n},a)}),y4=u.version,D4=d4;function E4(e,t,r){let n=new Set(e.choices.map(a=>a.value));for(let a of t)if(a.parsers){for(let o of a.parsers)if(!n.has(o)){n.add(o);let l=r.find(d=>d.parsers&&d.parsers[o]),p=a.name;l&&l.name&&(p+=" (plugin: ".concat(l.name,")")),e.choices.push({value:o,description:p})}}}var q0={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=y4.split("-",1)[0],o=e.flatMap(y=>y.languages||[]).filter(p),l=g4(Object.assign({},...e.map(y=>{let{options:D}=y;return D}),D4),"name").filter(y=>p(y)&&d(y)).sort((y,D)=>y.name===D.name?0:y.name{y=Object.assign({},y),Array.isArray(y.default)&&(y.default=y.default.length===1?y.default[0].value:y.default.filter(p).sort((b,v)=>V0.compare(v.since,b.since))[0].value),Array.isArray(y.choices)&&(y.choices=y.choices.filter(b=>p(b)&&d(b)),y.name==="parser"&&E4(y,o,e));let D=Object.fromEntries(e.filter(b=>b.defaultOptions&&b.defaultOptions[y.name]!==void 0).map(b=>[b.name,b.defaultOptions[y.name]]));return Object.assign(Object.assign({},y),{},{pluginDefaults:D})});return{languages:o,options:l};function p(y){return t||!("since"in y)||y.since&&V0.gte(a,y.since)}function d(y){return r||!("deprecated"in y)||y.deprecated&&V0.lt(a,y.deprecated)}function m(y){return n?y:P0(y,m4)}}};let b4=N0.exports,YE=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},C4=Mr,{getSupportInfo:A4}=q0,v4=/[^\x20-\x7F]/;function yu(e){return(t,r,n)=>{let a=n&&n.backwards;if(r===!1)return!1;let{length:o}=t,l=r;for(;l>=0&&l2&&arguments[2]!==void 0?arguments[2]:{},n=zi(e,r.backwards?t-1:t,r),a=Ys(e,n,r);return n!==a}function ZE(e,t){let r=null,n=t;for(;n!==r;)r=n,n=XE(e,n),n=G0(e,n),n=zi(e,n);return n=U0(e,n),n=Ys(e,n),n!==!1&&QE(e,n)}function eb(e,t){let r=null,n=t;for(;n!==r;)r=n,n=zi(e,n),n=G0(e,n),n=U0(e,n),n=Ys(e,n);return n}function tb(e,t,r){return eb(e,r(t))}function rb(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=0;for(let a=r;a(e.match(o.regex)||[]).length?o:a),l}function ib(e,t,r){let n=t==='"'?"'":'"',a=e.replace(/\\(.)|(["'])/gs,(o,l,p)=>l===n?l:p===t?"\\"+p:p||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(l)?l:"\\"+l));return t+a+t}function W0(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(r){let n=r.type||r.kind||"(unknown type)",a=String(r.name||r.id&&(typeof r.id=="object"?r.id.name:r.id)||r.key&&(typeof r.key=="object"?r.key.name:r.key)||r.value&&(typeof r.value=="object"?"":String(r.value))||r.operator||"");return a.length>20&&(a=a.slice(0,19)+"\u2026"),n+(a?" "+a:"")}(e)}var ke={inferParserByLanguage:function(e,t){let{languages:r}=A4({plugins:t.plugins}),n=r.find(a=>{let{name:o}=a;return o.toLowerCase()===e})||r.find(a=>{let{aliases:o}=a;return Array.isArray(o)&&o.includes(e)})||r.find(a=>{let{extensions:o}=a;return Array.isArray(o)&&o.includes(".".concat(e))});return n&&n.parsers[0]},getStringWidth:function(e){return e?v4.test(e)?b4(e):e.length:0},getMaxContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(YE(t),")+"),"g"));return r===null?0:r.reduce((n,a)=>Math.max(n,a.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(YE(t),")+"),"g"));if(r===null)return 0;let n=new Map,a=0;for(let o of r){let l=o.length/t.length;n.set(l,!0),l>a&&(a=l)}for(let o=1;oe[e.length-2],getLast:C4,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:eb,getNextNonSpaceNonCommentCharacterIndex:tb,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(tb(e,t,r))},skip:yu,skipWhitespace:x4,skipSpaces:zi,skipToLineEnd:XE,skipEverythingButNewLine:KE,skipInlineComment:G0,skipTrailingComment:U0,skipNewline:Ys,isNextLineEmptyAfterIndex:ZE,isNextLineEmpty:function(e,t,r){return ZE(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=zi(e,n,{backwards:!0}),n=Ys(e,n,{backwards:!0}),n=zi(e,n,{backwards:!0}),n!==Ys(e,n,{backwards:!0})},hasNewline:QE,hasNewlineInRange:function(e,t,r){for(let n=t;n2&&arguments[2]!==void 0?arguments[2]:{};return zi(e,r.backwards?t-1:t,r)!==t},getAlignmentSize:rb,getIndentSize:function(e,t){let r=e.lastIndexOf(` +`);return r===-1?0:rb(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:nb,printString:function(e,t){let r=e.slice(1,-1);return ib(r,t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":nb(r,t.singleQuote?"'":'"').quote,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:ib,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,W0(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),W0(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,W0(e,t)},isFrontMatterNode:function(e){return e&&e.type==="front-matter"},getShebang:function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}},z0={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===` +`?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}},countEndOfLineChars:function(e,t){let r;if(t===` +`)r=/\n/g;else if(t==="\r")r=/\r/g;else{if(t!==`\r +`)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,` +`)}};let kc=Mr,{literalline:S4,join:F4}=_0,Xs=e=>Array.isArray(e)||e&&e.type==="concat",Ks=e=>{if(Array.isArray(e))return e;if(e.type!=="concat"&&e.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},sb={};function $0(e,t,r,n){let a=[e];for(;a.length>0;){let o=a.pop();if(o!==sb){if(r&&a.push(o,sb),!t||t(o)!==!1)if(Xs(o)||o.type==="fill"){let l=Ks(o);for(let p=l.length-1;p>=0;--p)a.push(l[p])}else if(o.type==="if-break")o.flatContents&&a.push(o.flatContents),o.breakContents&&a.push(o.breakContents);else if(o.type==="group"&&o.expandedStates)if(n)for(let l=o.expandedStates.length-1;l>=0;--l)a.push(o.expandedStates[l]);else a.push(o.contents);else o.contents&&a.push(o.contents)}else r(a.pop())}}function Du(e,t){let r=new Map;return n(e);function n(a){if(r.has(a))return r.get(a);let o=function(l){if(Array.isArray(l))return t(l.map(n));if(l.type==="concat"||l.type==="fill"){let p=l.parts.map(n);return t(Object.assign(Object.assign({},l),{},{parts:p}))}if(l.type==="if-break"){let p=l.breakContents&&n(l.breakContents),d=l.flatContents&&n(l.flatContents);return t(Object.assign(Object.assign({},l),{},{breakContents:p,flatContents:d}))}if(l.type==="group"&&l.expandedStates){let p=l.expandedStates.map(n),d=p[0];return t(Object.assign(Object.assign({},l),{},{contents:d,expandedStates:p}))}if(l.contents){let p=n(l.contents);return t(Object.assign(Object.assign({},l),{},{contents:p}))}return t(l)}(a);return r.set(a,o),o}}function H0(e,t,r){let n=r,a=!1;return $0(e,function(o){let l=t(o);if(l!==void 0&&(a=!0,n=l),a)return!1}),n}function w4(e){return!(e.type!=="group"||!e.break)||!(e.type!=="line"||!e.hard)||e.type==="break-parent"||void 0}function ab(e){if(e.length>0){let t=kc(e);t.expandedStates||t.break||(t.break="propagated")}return null}function B4(e){return e.type!=="line"||e.hard?e.type==="if-break"?e.flatContents||"":e:e.soft?"":" "}let T4=(e,t)=>e&&e.type==="line"&&e.hard&&t&&t.type==="break-parent";function Eu(e){if(!e)return e;if(Xs(e)||e.type==="fill"){let t=Ks(e);for(;t.length>1&&T4(...t.slice(-2));)t.length-=2;if(t.length>0){let r=Eu(kc(t));t[t.length-1]=r}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let t=Eu(e.contents);return Object.assign(Object.assign({},e),{},{contents:t})}case"if-break":{let t=Eu(e.breakContents),r=Eu(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:t,flatContents:r})}}return e}function ub(e){return Du(e,t=>function(r){switch(r.type){case"fill":if(r.parts.every(a=>a===""))return"";break;case"group":if(!(r.contents||r.id||r.break||r.expandedStates))return"";if(r.contents.type==="group"&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!r.contents)return"";break;case"if-break":if(!r.flatContents&&!r.breakContents)return""}if(!Xs(r))return r;let n=[];for(let a of Ks(r)){if(!a)continue;let[o,...l]=Xs(a)?Ks(a):[a];typeof o=="string"&&typeof kc(n)=="string"?n[n.length-1]+=o:n.push(o),n.push(...l)}return n.length===0?"":n.length===1?n[0]:Array.isArray(r)?n:Object.assign(Object.assign({},r),{},{parts:n})}(t))}function J0(e){let t=[],r=e.filter(Boolean);for(;r.length>0;){let n=r.shift();n&&(Xs(n)?r.unshift(...Ks(n)):t.length>0&&typeof kc(t)=="string"&&typeof n=="string"?t[t.length-1]+=n:t.push(n))}return t}function ob(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S4;return F4(t,e.split(` +`)).parts}function k4(e){if(e.type==="line")return!0}var Y0={isConcat:Xs,getDocParts:Ks,willBreak:function(e){return H0(e,w4,!1)},traverseDoc:$0,findInDoc:H0,mapDoc:Du,propagateBreaks:function(e){let t=new Set,r=[];$0(e,function(n){if(n.type==="break-parent"&&ab(r),n.type==="group"){if(r.push(n),t.has(n))return!1;t.add(n)}},function(n){n.type==="group"&&r.pop().break&&ab(r)},!0)},removeLines:function(e){return Du(e,B4)},stripTrailingHardline:function(e){return Eu(ub(e))},normalizeParts:J0,normalizeDoc:function(e){return Du(e,t=>Array.isArray(t)?J0(t):t.parts?Object.assign(Object.assign({},t),{},{parts:J0(t.parts)}):t)},cleanDoc:ub,replaceTextEndOfLine:ob,replaceEndOfLine:function(e){return Du(e,t=>typeof t=="string"&&t.includes(` +`)?ob(t):t)},canBreak:function(e){return H0(e,k4,!1)}};let{getStringWidth:cb,getLast:fi}=ke,{convertEndOfLineToChars:_4}=z0,{fill:N4,cursor:X0,indent:_c}=_0,{isConcat:lb,getDocParts:pb}=Y0,bu;function fb(e,t){return K0(e,{type:"indent"},t)}function hb(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?K0(e,{type:"dedent"},r):t?t.type==="root"?Object.assign(Object.assign({},e),{},{root:e}):K0(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function K0(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],a="",o=0,l=0,p=0;for(let v of n)switch(v.type){case"indent":y(),r.useTabs?d(1):m(r.tabWidth);break;case"stringAlign":y(),a+=v.n,o+=v.n.length;break;case"numberAlign":l+=1,p+=v.n;break;default:throw new Error("Unexpected type '".concat(v.type,"'"))}return D(),Object.assign(Object.assign({},e),{},{value:a,length:o,queue:n});function d(v){a+=" ".repeat(v),o+=r.tabWidth*v}function m(v){a+=" ".repeat(v),o+=v}function y(){r.useTabs?function(){l>0&&d(l),b()}():D()}function D(){p>0&&m(p),b()}function b(){l=0,p=0}}function Q0(e){if(e.length===0)return 0;let t=0;for(;e.length>0&&typeof fi(e)=="string"&&/^[\t ]*$/.test(fi(e));)t+=e.pop().length;if(e.length>0&&typeof fi(e)=="string"){let r=fi(e).replace(/[\t ]*$/,"");t+=fi(e).length-r.length,e[e.length-1]=r}return t}function Nc(e,t,r,n,a,o){let l=t.length,p=[e],d=[];for(;r>=0;){if(p.length===0){if(l===0)return!0;p.push(t[l-1]),l--;continue}let[m,y,D]=p.pop();if(typeof D=="string")d.push(D),r-=cb(D);else if(lb(D)){let b=pb(D);for(let v=b.length-1;v>=0;v--)p.push([m,y,b[v]])}else switch(D.type){case"indent":p.push([fb(m,n),y,D.contents]);break;case"align":p.push([hb(m,D.n,n),y,D.contents]);break;case"trim":r+=Q0(d);break;case"group":{if(o&&D.break)return!1;let b=D.break?1:y;p.push([m,b,D.expandedStates&&b===1?fi(D.expandedStates):D.contents]),D.id&&(bu[D.id]=b);break}case"fill":for(let b=D.parts.length-1;b>=0;b--)p.push([m,y,D.parts[b]]);break;case"if-break":case"indent-if-break":{let b=D.groupId?bu[D.groupId]:y;if(b===1){let v=D.type==="if-break"?D.breakContents:D.negate?D.contents:_c(D.contents);v&&p.push([m,y,v])}if(b===2){let v=D.type==="if-break"?D.flatContents:D.negate?_c(D.contents):D.contents;v&&p.push([m,y,v])}break}case"line":switch(y){case 2:if(!D.hard){D.soft||(d.push(" "),r-=1);break}return!0;case 1:return!0}break;case"line-suffix":a=!0;break;case"line-suffix-boundary":if(a)return!1;break;case"label":p.push([m,y,D.contents])}}return!1}var I4={printDocToString:function(e,t){bu={};let r=t.printWidth,n=_4(t.endOfLine),a=0,o=[[{value:"",length:0,queue:[]},1,e]],l=[],p=!1,d=[];for(;o.length>0;){let[y,D,b]=o.pop();if(typeof b=="string"){let v=n!==` +`?b.replace(/\n/g,n):b;l.push(v),a+=cb(v)}else if(lb(b)){let v=pb(b);for(let w=v.length-1;w>=0;w--)o.push([y,D,v[w]])}else switch(b.type){case"cursor":l.push(X0.placeholder);break;case"indent":o.push([fb(y,t),D,b.contents]);break;case"align":o.push([hb(y,b.n,t),D,b.contents]);break;case"trim":a-=Q0(l);break;case"group":switch(D){case 2:if(!p){o.push([y,b.break?1:2,b.contents]);break}case 1:{p=!1;let v=[y,2,b.contents],w=r-a,S=d.length>0;if(!b.break&&Nc(v,o,w,t,S))o.push(v);else if(b.expandedStates){let k=fi(b.expandedStates);if(b.break){o.push([y,1,k]);break}for(let P=1;P=b.expandedStates.length){o.push([y,1,k]);break}{let _=[y,2,b.expandedStates[P]];if(Nc(_,o,w,t,S)){o.push(_);break}}}}else o.push([y,1,b.contents]);break}}b.id&&(bu[b.id]=fi(o)[1]);break;case"fill":{let v=r-a,{parts:w}=b;if(w.length===0)break;let[S,k]=w,P=[y,2,S],_=[y,1,S],M=Nc(P,[],v,t,d.length>0,!0);if(w.length===1){M?o.push(P):o.push(_);break}let U=[y,2,k],q=[y,1,k];if(w.length===2){M?o.push(U,P):o.push(q,_);break}w.splice(0,2);let H=[y,D,N4(w)];Nc([y,2,[S,k,w[0]]],[],v,t,d.length>0,!0)?o.push(H,U,P):M?o.push(H,q,P):o.push(H,q,_);break}case"if-break":case"indent-if-break":{let v=b.groupId?bu[b.groupId]:D;if(v===1){let w=b.type==="if-break"?b.breakContents:b.negate?b.contents:_c(b.contents);w&&o.push([y,D,w])}if(v===2){let w=b.type==="if-break"?b.flatContents:b.negate?_c(b.contents):b.contents;w&&o.push([y,D,w])}break}case"line-suffix":d.push([y,D,b.contents]);break;case"line-suffix-boundary":d.length>0&&o.push([y,D,{type:"line",hard:!0}]);break;case"line":switch(D){case 2:if(!b.hard){b.soft||(l.push(" "),a+=1);break}p=!0;case 1:if(d.length>0){o.push([y,D,b],...d.reverse()),d=[];break}b.literal?y.root?(l.push(n,y.root.value),a=y.root.length):(l.push(n),a=0):(a-=Q0(l),l.push(n+y.value),a=y.length)}break;case"label":o.push([y,D,b.contents])}o.length===0&&d.length>0&&(o.push(...d.reverse()),d=[])}let m=l.indexOf(X0.placeholder);if(m!==-1){let y=l.indexOf(X0.placeholder,m+1),D=l.slice(0,m).join(""),b=l.slice(m+1,y).join("");return{formatted:D+b+l.slice(y+1).join(""),cursorNodeStart:D.length,cursorNodeText:b}}return{formatted:l.join("")}}};let{isConcat:Z0,getDocParts:db}=Y0;function Un(e){if(!e)return"";if(Z0(e)){let t=[];for(let r of db(e))if(Z0(r))t.push(...Un(r).parts);else{let n=Un(r);n!==""&&t.push(n)}return{type:"concat",parts:t}}return e.type==="if-break"?Object.assign(Object.assign({},e),{},{breakContents:Un(e.breakContents),flatContents:Un(e.flatContents)}):e.type==="group"?Object.assign(Object.assign({},e),{},{contents:Un(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(Un)}):e.type==="fill"?{type:"fill",parts:e.parts.map(Un)}:e.contents?Object.assign(Object.assign({},e),{},{contents:Un(e.contents)}):e}var P4={printDocToDebug:function(e){let t=Object.create(null),r=new Set;return function a(o,l,p){if(typeof o=="string")return JSON.stringify(o);if(Z0(o)){let d=db(o).map(a).filter(Boolean);return d.length===1?d[0]:"[".concat(d.join(", "),"]")}if(o.type==="line"){let d=Array.isArray(p)&&p[l+1]&&p[l+1].type==="break-parent";return o.literal?d?"literalline":"literallineWithoutBreakParent":o.hard?d?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type==="break-parent")return Array.isArray(p)&&p[l-1]&&p[l-1].type==="line"&&p[l-1].hard?void 0:"breakParent";if(o.type==="trim")return"trim";if(o.type==="indent")return"indent("+a(o.contents)+")";if(o.type==="align")return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+a(o.contents)+")":o.n<0?"dedent("+a(o.contents)+")":o.n.type==="root"?"markAsRoot("+a(o.contents)+")":"align("+JSON.stringify(o.n)+", "+a(o.contents)+")";if(o.type==="if-break")return"ifBreak("+a(o.breakContents)+(o.flatContents?", "+a(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+", { groupId: ".concat(n(o.groupId)," }"):"")+")";if(o.type==="indent-if-break"){let d=[];o.negate&&d.push("negate: true"),o.groupId&&d.push("groupId: ".concat(n(o.groupId)));let m=d.length>0?", { ".concat(d.join(", ")," }"):"";return"indentIfBreak(".concat(a(o.contents)).concat(m,")")}if(o.type==="group"){let d=[];o.break&&o.break!=="propagated"&&d.push("shouldBreak: true"),o.id&&d.push("id: ".concat(n(o.id)));let m=d.length>0?", { ".concat(d.join(", ")," }"):"";return o.expandedStates?"conditionalGroup([".concat(o.expandedStates.map(y=>a(y)).join(","),"]").concat(m,")"):"group(".concat(a(o.contents)).concat(m,")")}if(o.type==="fill")return"fill([".concat(o.parts.map(d=>a(d)).join(", "),"])");if(o.type==="line-suffix")return"lineSuffix("+a(o.contents)+")";if(o.type==="line-suffix-boundary")return"lineSuffixBoundary";if(o.type==="label")return"label(".concat(JSON.stringify(o.label),", ").concat(a(o.contents),")");throw new Error("Unknown doc type "+o.type)}(Un(e));function n(a){if(typeof a!="symbol")return JSON.stringify(String(a));if(a in t)return t[a];let o=String(a).slice(7,-1)||"symbol";for(let l=0;;l++){let p=o+(l>0?" #".concat(l):"");if(!r.has(p))return r.add(p),t[a]="Symbol.for(".concat(JSON.stringify(p),")")}}}},ve={builders:_0,printer:I4,utils:Y0,debug:P4},mb=s(Object.freeze({__proto__:null,default:{}}));function gb(e,t){for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];a==="."?e.splice(n,1):a===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var O4=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,eh=function(e){return O4.exec(e).slice(1)};function Ic(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t=n.charAt(0)==="/")}return e=gb(nh(e.split("/"),function(a){return!!a}),!t).join("/"),(t?"/":"")+e||"."}function th(e){var t=rh(e),r=M4(e,-1)==="/";return e=gb(nh(e.split("/"),function(n){return!!n}),!t).join("/"),e||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function rh(e){return e.charAt(0)==="/"}function yb(){var e=Array.prototype.slice.call(arguments,0);return th(nh(e,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function Db(e,t){function r(m){for(var y=0;y=0&&m[D]==="";D--);return y>D?[]:m.slice(y,D-y+1)}e=Ic(e).substr(1),t=Ic(t).substr(1);for(var n=r(e.split("/")),a=r(t.split("/")),o=Math.min(n.length,a.length),l=o,p=0;p>18&63]+Tn[a>>12&63]+Tn[a>>6&63]+Tn[63&a]);return o.join("")}function vb(e){var t;ih||Ab();for(var r=e.length,n=r%3,a="",o=[],l=16383,p=0,d=r-n;pd?d:p+l));return n===1?(t=e[r-1],a+=Tn[t>>2],a+=Tn[t<<4&63],a+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],a+=Tn[t>>10],a+=Tn[t>>4&63],a+=Tn[t<<2&63],a+="="),o.push(a),o.join("")}function Pc(e,t,r,n,a){var o,l,p=8*a-n-1,d=(1<>1,y=-7,D=r?a-1:0,b=r?-1:1,v=e[t+D];for(D+=b,o=v&(1<<-y)-1,v>>=-y,y+=p;y>0;o=256*o+e[t+D],D+=b,y-=8);for(l=o&(1<<-y)-1,o>>=-y,y+=n;y>0;l=256*l+e[t+D],D+=b,y-=8);if(o===0)o=1-m;else{if(o===d)return l?NaN:1/0*(v?-1:1);l+=Math.pow(2,n),o-=m}return(v?-1:1)*l*Math.pow(2,o-n)}function xb(e,t,r,n,a,o){var l,p,d,m=8*o-a-1,y=(1<>1,b=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,w=n?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(p=isNaN(t)?1:0,l=y):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),(t+=l+D>=1?b/d:b*Math.pow(2,1-D))*d>=2&&(l++,d/=2),l+D>=y?(p=0,l=y):l+D>=1?(p=(t*d-1)*Math.pow(2,a),l+=D):(p=t*Math.pow(2,D-1)*Math.pow(2,a),l=0));a>=8;e[r+v]=255&p,v+=w,p/=256,a-=8);for(l=l<0;e[r+v]=255&l,v+=w,l/=256,m-=8);e[r+v-w]|=128*S}var q4={}.toString,Sb=Array.isArray||function(e){return q4.call(e)=="[object Array]"};function sh(){return ee.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Wn(e,t){if(sh()=sh())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+sh().toString(16)+" bytes");return 0|e}function kn(e){return!(e==null||!e._isBuffer)}function Bb(e,t){if(kn(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Mc(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Mb(e).length;default:if(n)return Mc(e).length;t=(""+t).toLowerCase(),n=!0}}function G4(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return K4(this,t,r);case"utf8":case"utf-8":return Nb(this,t,r);case"ascii":return Y4(this,t,r);case"latin1":case"binary":return X4(this,t,r);case"base64":return J4(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q4(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function $i(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Tb(e,t,r,n,a){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if(typeof t=="string"&&(t=ee.from(t,n)),kn(t))return t.length===0?-1:kb(e,t,r,n,a);if(typeof t=="number")return t&=255,ee.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):kb(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function kb(e,t,r,n,a){var o,l=1,p=e.length,d=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(v,w){return l===1?v[w]:v.readUInt16BE(w*l)}if(a){var y=-1;for(o=r;op&&(r=p-d),o=r;o>=0;o--){for(var D=!0,b=0;ba&&(n=a):n=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var l=0;l>8,d=l%256,m.push(d),m.push(p);return m}(t,e.length-r),e,r,n)}function J4(e,t,r){return t===0&&r===e.length?vb(e):vb(e.slice(t,r))}function Nb(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a239?4:m>223?3:m>191?2:1;if(a+D<=r)switch(D){case 1:m<128&&(y=m);break;case 2:(192&(o=e[a+1]))==128&&(d=(31&m)<<6|63&o)>127&&(y=d);break;case 3:o=e[a+1],l=e[a+2],(192&o)==128&&(192&l)==128&&(d=(15&m)<<12|(63&o)<<6|63&l)>2047&&(d<55296||d>57343)&&(y=d);break;case 4:o=e[a+1],l=e[a+2],p=e[a+3],(192&o)==128&&(192&l)==128&&(192&p)==128&&(d=(15&m)<<18|(63&o)<<12|(63&l)<<6|63&p)>65535&&d<1114112&&(y=d)}y===null?(y=65533,D=1):y>65535&&(y-=65536,n.push(y>>>10&1023|55296),y=56320|1023&y),n.push(y),a+=D}return function(b){var v=b.length;if(v<=Ib)return String.fromCharCode.apply(String,b);for(var w="",S=0;S0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ee.prototype.compare=function(e,t,r,n,a){if(!kn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(a>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),p=Math.min(o,l),d=this.slice(n,a),m=e.slice(t,r),y=0;ya)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return U4(this,e,t,r);case"utf8":case"utf-8":return W4(this,e,t,r);case"ascii":return _b(this,e,t,r);case"latin1":case"binary":return z4(this,e,t,r);case"base64":return $4(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H4(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},ee.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ib=4096;function Y4(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;an)&&(r=n);for(var a="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function gr(e,t,r,n,a,o){if(!kn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function Oc(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-r,2);a>>8*(n?a:1-a)}function Lc(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-r,4);a>>8*(n?a:3-a)&255}function Pb(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ob(e,t,r,n,a){return a||Pb(e,0,r,4),xb(e,t,r,n,23,4),r+4}function Lb(e,t,r,n,a){return a||Pb(e,0,r,8),xb(e,t,r,n,52,8),r+8}ee.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(a*=256);)n+=this[e+--t]*a;return n},ee.prototype.readUInt8=function(e,t){return t||Ft(e,1,this.length),this[e]},ee.prototype.readUInt16LE=function(e,t){return t||Ft(e,2,this.length),this[e]|this[e+1]<<8},ee.prototype.readUInt16BE=function(e,t){return t||Ft(e,2,this.length),this[e]<<8|this[e+1]},ee.prototype.readUInt32LE=function(e,t){return t||Ft(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ee.prototype.readUInt32BE=function(e,t){return t||Ft(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ee.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*t)),n},ee.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=t,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},ee.prototype.readInt8=function(e,t){return t||Ft(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ee.prototype.readInt16LE=function(e,t){t||Ft(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ee.prototype.readInt16BE=function(e,t){t||Ft(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ee.prototype.readInt32LE=function(e,t){return t||Ft(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ee.prototype.readInt32BE=function(e,t){return t||Ft(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ee.prototype.readFloatLE=function(e,t){return t||Ft(e,4,this.length),Pc(this,e,!0,23,4)},ee.prototype.readFloatBE=function(e,t){return t||Ft(e,4,this.length),Pc(this,e,!1,23,4)},ee.prototype.readDoubleLE=function(e,t){return t||Ft(e,8,this.length),Pc(this,e,!0,52,8)},ee.prototype.readDoubleBE=function(e,t){return t||Ft(e,8,this.length),Pc(this,e,!1,52,8)},ee.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||gr(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+a]=e/o&255;return t+r},ee.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,1,255,0),ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ee.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,65535,0),ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oc(this,e,t,!0),t+2},ee.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,65535,0),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oc(this,e,t,!1),t+2},ee.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,4294967295,0),ee.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Lc(this,e,t,!0),t+4},ee.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,4294967295,0),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Lc(this,e,t,!1),t+4},ee.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);gr(this,e,t,r,a-1,-a)}var o=0,l=1,p=0;for(this[t]=255&e;++o>0)-p&255;return t+r},ee.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);gr(this,e,t,r,a-1,-a)}var o=r-1,l=1,p=0;for(this[t+o]=255&e;--o>=0&&(l*=256);)e<0&&p===0&&this[t+o+1]!==0&&(p=1),this[t+o]=(e/l>>0)-p&255;return t+r},ee.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,1,127,-128),ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ee.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,32767,-32768),ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oc(this,e,t,!0),t+2},ee.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,32767,-32768),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oc(this,e,t,!1),t+2},ee.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,2147483647,-2147483648),ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Lc(this,e,t,!0),t+4},ee.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Lc(this,e,t,!1),t+4},ee.prototype.writeFloatLE=function(e,t,r){return Ob(this,e,t,!0,r)},ee.prototype.writeFloatBE=function(e,t,r){return Ob(this,e,t,!1,r)},ee.prototype.writeDoubleLE=function(e,t,r){return Lb(this,e,t,!0,r)},ee.prototype.writeDoubleBE=function(e,t,r){return Lb(this,e,t,!1,r)},ee.prototype.copy=function(e,t,r,n){if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+r];else if(o<1e3||!ee.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(o=t;o55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(l+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Mb(e){return function(t){var r,n,a,o,l,p;ih||Ab();var d=t.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=t[d-2]==="="?2:t[d-1]==="="?1:0,p=new R4(3*d/4-l),a=l>0?d-4:d;var m=0;for(r=0,n=0;r>16&255,p[m++]=o>>8&255,p[m++]=255&o;return l===2?(o=Rr[t.charCodeAt(r)]<<2|Rr[t.charCodeAt(r+1)]>>4,p[m++]=255&o):l===1&&(o=Rr[t.charCodeAt(r)]<<10|Rr[t.charCodeAt(r+1)]<<4|Rr[t.charCodeAt(r+2)]>>2,p[m++]=o>>8&255,p[m++]=255&o),p}(function(t){if((t=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(t).replace(Z4,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function jc(e,t,r,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function Qs(e){return e!=null&&(!!e._isBuffer||jb(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&jb(t.slice(0,0))}(e))}function jb(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}let ch=mb;var tI=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd=typeof e=="number"?e:ch.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let r=-1;for(let n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){ch.closeSync(this.fd),this.fd=null}_extractLines(e){let t,r=[],n=0,a=0;for(;;){let l=e[n++];if(l===this.newLineCharacter)t=e.slice(a,n),r.push(t),a=n;else if(l===void 0)break}let o=e.slice(a,n);return o.length&&r.push(o),r}_readChunk(e){let t,r=0,n=[];do{let o=new ee(this.options.readChunk);t=ch.readSync(this.fd,o,0,this.options.readChunk,this.fdPosition),r+=t,this.fdPosition=this.fdPosition+t,n.push(o)}while(t&&this._searchInBuffer(n[n.length-1],this.options.newLineCharacter)===-1);let a=ee.concat(n);return t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qb(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)l.push(n.value)}catch(p){a={error:p}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return l}function Au(e){return this instanceof Au?(this.v=e,this):new Au(e)}var hi=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}lh(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return ph},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(n=Object.getOwnPropertySymbols(e);a=0;p--)(a=e[p])&&(l=(o<3?a(l):o>3?a(t,r,l):a(t,r))||l);return o>3&&l&&Object.defineProperty(t,r,l),l},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))(function(a,o){function l(m){try{d(n.next(m))}catch(y){o(y)}}function p(m){try{d(n.throw(m))}catch(y){o(y)}}function d(m){var y;m.done?a(m.value):(y=m.value,y instanceof r?y:new r(function(D){D(y)})).then(l,p)}d((n=n.apply(e,t||[])).next())})},__generator:function(e,t){var r,n,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function p(d){return function(m){return function(y){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(a=2&y[0]?n.return:y[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,y[1])).done)return a;switch(n=0,a&&(y=[2&y[0],a.value]),y[0]){case 0:case 1:a=y;break;case 4:return l.label++,{value:y[1],done:!1};case 5:l.label++,n=y[1],y=[0];continue;case 7:y=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!((a=a.length>0&&a[a.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!a||y[1]>a[0]&&y[1]1||p(D,b)})})}function p(D,b){try{(v=a[D](b)).value instanceof Au?Promise.resolve(v.value.v).then(d,m):y(o[0][2],v)}catch(w){y(o[0][3],w)}var v}function d(D){p("next",D)}function m(D){p("throw",D)}function y(D,b){D(b),o.shift(),o.length&&p(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,o){t[a]=e[a]?function(l){return(r=!r)?{value:Au(e[a](l)),done:a==="return"}:o?o(l):l}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Vb(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(l,p){(function(d,m,y,D){Promise.resolve(D).then(function(b){d({value:b,done:y})},m)})(l,p,(o=e[a](o)).done,o.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),Gb={},fh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return"[".concat(t.map(n=>e.apiDescriptor.value(n)).join(", "),"]");let r=Object.keys(t);return r.length===0?"{}":"{ ".concat(r.map(n=>"".concat(e.apiDescriptor.key(n),": ").concat(e.apiDescriptor.value(t[n]))).join(", ")," }")},pair:t=>{let{key:r,value:n}=t;return e.apiDescriptor.value({[r]:n})}}})(fh),function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(fh,e)}(Gb);var Ub={},Wb={},Rc={},Vc={exports:{}},aI=/[|\\{}()[\]^$+*?.]/g,uI=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(aI,"\\$&")},hh={exports:{}},dh={exports:{}},Hi={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]},zb={};for(var mh in Hi)Hi.hasOwnProperty(mh)&&(zb[Hi[mh]]=mh);var Ce=dh.exports={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"]}};for(var yr in Ce)if(Ce.hasOwnProperty(yr)){if(!("channels"in Ce[yr]))throw new Error("missing channels property: "+yr);if(!("labels"in Ce[yr]))throw new Error("missing channel labels property: "+yr);if(Ce[yr].labels.length!==Ce[yr].channels)throw new Error("channel and label counts mismatch: "+yr);var oI=Ce[yr].channels,cI=Ce[yr].labels;delete Ce[yr].channels,delete Ce[yr].labels,Object.defineProperty(Ce[yr],"channels",{value:oI}),Object.defineProperty(Ce[yr],"labels",{value:cI})}Ce.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,o=e[2]/255,l=Math.min(n,a,o),p=Math.max(n,a,o),d=p-l;return p===l?t=0:n===p?t=(a-o)/d:a===p?t=2+(o-n)/d:o===p&&(t=4+(n-a)/d),(t=Math.min(60*t,360))<0&&(t+=360),r=(l+p)/2,[t,100*(p===l?0:r<=.5?d/(p+l):d/(2-p-l)),100*r]},Ce.rgb.hsv=function(e){var t,r,n,a,o,l=e[0]/255,p=e[1]/255,d=e[2]/255,m=Math.max(l,p,d),y=m-Math.min(l,p,d),D=function(b){return(m-b)/6/y+.5};return y===0?a=o=0:(o=y/m,t=D(l),r=D(p),n=D(d),l===m?a=n-r:p===m?a=1/3+t-n:d===m&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*m]},Ce.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[Ce.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},Ce.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},Ce.rgb.keyword=function(e){var t=zb[e];if(t)return t;var r,n,a,o=1/0;for(var l in Hi)if(Hi.hasOwnProperty(l)){var p=Hi[l],d=(n=e,a=p,Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)+Math.pow(n[2]-a[2],2));d.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Ce.rgb.lab=function(e){var t=Ce.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},Ce.hsl.rgb=function(e){var t,r,n,a,o,l=e[0]/360,p=e[1]/100,d=e[2]/100;if(p===0)return[o=255*d,o,o];t=2*d-(r=d<.5?d*(1+p):d+p-d*p),a=[0,0,0];for(var m=0;m<3;m++)(n=l+1/3*-(m-1))<0&&n++,n>1&&n--,o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[m]=255*o;return a},Ce.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=o<=1?o:2-o,[t,100*(n===0?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},Ce.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),p=255*n*(1-r*o),d=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,d,l];case 1:return[p,n,l];case 2:return[l,n,d];case 3:return[l,p,n];case 4:return[d,l,n];case 5:return[n,l,p]}},Ce.hsv.hsl=function(e){var t,r,n,a=e[0],o=e[1]/100,l=e[2]/100,p=Math.max(l,.01);return n=(2-o)*l,r=o*p,[a,100*(r=(r/=(t=(2-o)*p)<=1?t:2-t)||0),100*(n/=2)]},Ce.hwb.rgb=function(e){var t,r,n,a,o,l,p,d=e[0]/360,m=e[1]/100,y=e[2]/100,D=m+y;switch(D>1&&(m/=D,y/=D),n=6*d-(t=Math.floor(6*d)),(1&t)!=0&&(n=1-n),a=m+n*((r=1-y)-m),t){default:case 6:case 0:o=r,l=a,p=m;break;case 1:o=a,l=r,p=m;break;case 2:o=m,l=r,p=a;break;case 3:o=m,l=a,p=r;break;case 4:o=a,l=m,p=r;break;case 5:o=r,l=m,p=a}return[255*o,255*l,255*p]},Ce.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},Ce.xyz.rgb=function(e){var t,r,n,a=e[0]/100,o=e[1]/100,l=e[2]/100;return r=-.9689*a+1.8758*o+.0415*l,n=.0557*a+-.204*o+1.057*l,t=(t=3.2406*a+-1.5372*o+-.4986*l)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},Ce.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},Ce.lab.xyz=function(e){var t,r,n,a=e[0];t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200;var o=Math.pow(r,3),l=Math.pow(t,3),p=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,n=p>.008856?p:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},Ce.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},Ce.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},Ce.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:Ce.rgb.hsv(e)[2];if((a=Math.round(a/50))===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return a===2&&(o+=60),o},Ce.hsv.ansi16=function(e){return Ce.rgb.ansi16(Ce.hsv.rgb(e),e[2])},Ce.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Ce.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Ce.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},Ce.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Ce.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Ce.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.max(Math.max(r,n),a),l=Math.min(Math.min(r,n),a),p=o-l;return t=p<=0?0:o===r?(n-a)/p%6:o===n?2+(a-r)/p:4+(r-n)/p+4,t/=6,[360*(t%=1),100*p,100*(p<1?l/(1-p):0)]},Ce.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},Ce.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ce.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];var a,o=[0,0,0],l=t%1*6,p=l%1,d=1-p;switch(Math.floor(l)){case 0:o[0]=1,o[1]=p,o[2]=0;break;case 1:o[0]=d,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=p;break;case 3:o[0]=0,o[1]=d,o[2]=1;break;case 4:o[0]=p,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=d}return a=(1-r)*n,[255*(r*o[0]+a),255*(r*o[1]+a),255*(r*o[2]+a)]},Ce.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Ce.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},Ce.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Ce.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ce.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ce.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ce.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ce.gray.hsl=Ce.gray.hsv=function(e){return[0,0,e[0]]},Ce.gray.hwb=function(e){return[0,100,e[0]]},Ce.gray.cmyk=function(e){return[0,0,0,e[0]]},Ce.gray.lab=function(e){return[e[0],0,0]},Ce.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Ce.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var qc=dh.exports;function lI(e){var t=function(){for(var m={},y=Object.keys(qc),D=y.length,b=0;b1&&(l=Array.prototype.slice.call(arguments));var p=a(l);if(typeof p=="object")for(var d=p.length,m=0;m1&&(l=Array.prototype.slice.call(arguments)),a(l))};return"conversion"in a&&(o.conversion=a.conversion),o}(n)})});var Gc,dI=Zs;function $b(){if(Gc===void 0){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,r[0]===258)Gc="BE";else{if(r[0]!==513)throw new Error("unable to figure out endianess");Gc="LE"}}return Gc}function Hb(){return jr.location!==void 0?jr.location.hostname:""}function Jb(){return[]}function Yb(){return 0}function Xb(){return Number.MAX_VALUE}function Kb(){return Number.MAX_VALUE}function Qb(){return[]}function Zb(){return"Browser"}function eC(){return jr.navigator!==void 0?jr.navigator.appVersion:""}function tC(){}function rC(){}function nC(){return"javascript"}function iC(){return"browser"}function yh(){return"/tmp"}(function(e){let t=dI,r=(o,l)=>function(){let p=o.apply(t,arguments);return"\x1B[".concat(p+l,"m")},n=(o,l)=>function(){let p=o.apply(t,arguments);return"\x1B[".concat(38+l,";5;").concat(p,"m")},a=(o,l)=>function(){let p=o.apply(t,arguments);return"\x1B[".concat(38+l,";2;").concat(p[0],";").concat(p[1],";").concat(p[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let o=new Map,l={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],gray:[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]}};l.color.grey=l.color.gray;for(let m of Object.keys(l)){let y=l[m];for(let D of Object.keys(y)){let b=y[D];l[D]={open:"\x1B[".concat(b[0],"m"),close:"\x1B[".concat(b[1],"m")},y[D]=l[D],o.set(b[0],b[1])}Object.defineProperty(l,m,{value:y,enumerable:!1}),Object.defineProperty(l,"codes",{value:o,enumerable:!1})}let p=m=>m,d=(m,y,D)=>[m,y,D];l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi={ansi:r(p,0)},l.color.ansi256={ansi256:n(p,0)},l.color.ansi16m={rgb:a(d,0)},l.bgColor.ansi={ansi:r(p,10)},l.bgColor.ansi256={ansi256:n(p,10)},l.bgColor.ansi16m={rgb:a(d,10)};for(let m of Object.keys(t)){if(typeof t[m]!="object")continue;let y=t[m];m==="ansi16"&&(m="ansi"),"ansi16"in y&&(l.color.ansi[m]=r(y.ansi16,0),l.bgColor.ansi[m]=r(y.ansi16,10)),"ansi256"in y&&(l.color.ansi256[m]=n(y.ansi256,0),l.bgColor.ansi256[m]=n(y.ansi256,10)),"rgb"in y&&(l.color.ansi16m[m]=a(y.rgb,0),l.bgColor.ansi16m[m]=a(y.rgb,10))}return l}})})(hh);var sC=yh,mI={EOL:` +`,arch:nC,platform:iC,tmpdir:sC,tmpDir:yh,networkInterfaces:tC,getNetworkInterfaces:rC,release:eC,type:Zb,cpus:Qb,totalmem:Kb,freemem:Xb,uptime:Yb,loadavg:Jb,hostname:Hb,endianness:$b},Uc=s(Object.freeze({__proto__:null,endianness:$b,hostname:Hb,loadavg:Jb,uptime:Yb,freemem:Xb,totalmem:Kb,cpus:Qb,type:Zb,release:eC,networkInterfaces:tC,getNetworkInterfaces:rC,arch:nC,platform:iC,tmpDir:yh,tmpdir:sC,EOL:` +`,default:mI}));let gI=Uc,fn=(e,t)=>{t=t||et.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n=8&&Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Wt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(a=>a in Wt)||Wt.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Wt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Wt.TEAMCITY_VERSION)?1:0;if(Wt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Wt){let a=parseInt((Wt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Wt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Wt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Wt.TERM)||"COLORTERM"in Wt?1:(Wt.TERM,n)}(e);return function(r){return r!==0&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}(t)}fn("no-color")||fn("no-colors")||fn("color=false")?ea=!1:(fn("color")||fn("colors")||fn("color=true")||fn("color=always"))&&(ea=!0),"FORCE_COLOR"in Wt&&(ea=Wt.FORCE_COLOR.length===0||parseInt(Wt.FORCE_COLOR,10)!==0);var yI={supportsColor:Dh,stdout:Dh(et.stdout),stderr:Dh(et.stderr)};let DI=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,aC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,EI=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bI=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,CI=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function uC(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):CI.get(e)||e}function AI(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n)if(isNaN(o)){if(!(a=o.match(EI)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(bI,(l,p,d)=>p?uC(p):d))}else r.push(Number(o));return r}function vI(e){aC.lastIndex=0;let t=[],r;for(;(r=aC.exec(e))!==null;){let n=r[1];if(r[2]){let a=AI(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function oC(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let a of Object.keys(r))if(Array.isArray(r[a])){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=r[a].length>0?n[a].apply(n,r[a]):n[a]}return n}var xI=(e,t)=>{let r=[],n=[],a=[];if(t.replace(DI,(o,l,p,d,m,y)=>{if(l)a.push(uC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:oC(e,r)(D)),r.push({inverse:p,styles:vI(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(oC(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};(function(e){let t=uI,r=hh.exports,n=yI.stdout,a=xI,o=et.platform==="win32"&&!(et.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],p=new Set(["gray"]),d=Object.create(null);function m(S,k){k=k||{};let P=n?n.level:0;S.level=k.level===void 0?P:k.level,S.enabled="enabled"in k?k.enabled:S.level>0}function y(S){if(!this||!(this instanceof y)||this.template){let k={};return m(k,S),k.template=function(){let P=[].slice.call(arguments);return w.apply(null,[k.template].concat(P))},Object.setPrototypeOf(k,y.prototype),Object.setPrototypeOf(k.template,k),k.template.constructor=y,k.template}m(this,S)}o&&(r.blue.open="\x1B[94m");for(let S of Object.keys(r))r[S].closeRe=new RegExp(t(r[S].close),"g"),d[S]={get(){let k=r[S];return b.call(this,this._styles?this._styles.concat(k):[k],this._empty,S)}};d.visible={get(){return b.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let S of Object.keys(r.color.ansi))p.has(S)||(d[S]={get(){let k=this.level;return function(){let P=r.color[l[k]][S].apply(null,arguments),_={open:P,close:r.color.close,closeRe:r.color.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let S of Object.keys(r.bgColor.ansi))p.has(S)||(d["bg"+S[0].toUpperCase()+S.slice(1)]={get(){let k=this.level;return function(){let P=r.bgColor[l[k]][S].apply(null,arguments),_={open:P,close:r.bgColor.close,closeRe:r.bgColor.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});let D=Object.defineProperties(()=>{},d);function b(S,k,P){let _=function(){return v.apply(_,arguments)};_._styles=S,_._empty=k;let M=this;return Object.defineProperty(_,"level",{enumerable:!0,get:()=>M.level,set(U){M.level=U}}),Object.defineProperty(_,"enabled",{enumerable:!0,get:()=>M.enabled,set(U){M.enabled=U}}),_.hasGrey=this.hasGrey||P==="gray"||P==="grey",_.__proto__=D,_}function v(){let S=arguments,k=S.length,P=String(arguments[0]);if(k===0)return"";if(k>1)for(let M=1;M{let{descriptor:n}=r,a=["".concat(cC.default.yellow(typeof e=="string"?n.key(e):n.pair(e))," is deprecated")];return t&&a.push("we now treat it as ".concat(cC.default.blue(typeof t=="string"?n.key(t):n.pair(t)))),a.join("; ")+"."},function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(Rc,e)}(Wb);var Eh={},bh={};Object.defineProperty(bh,"__esModule",{value:!0});let Ch=Vc.exports;bh.commonInvalidHandler=(e,t,r)=>["Invalid ".concat(Ch.default.red(r.descriptor.key(e))," value."),"Expected ".concat(Ch.default.blue(r.schemas[e].expected(r)),","),"but received ".concat(Ch.default.red(r.descriptor.value(t)),".")].join(" "),function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(bh,e)}(Eh);var lC={},Wc={},Ah=[],pC=[];Object.defineProperty(Wc,"__esModule",{value:!0});let fC=Vc.exports,SI=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,a=t.length;if(n===0)return a;if(a===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;if(n===0)return a;for(var o,l,p,d,m=0;ml?d>l?l+1:d:d>p?p+1:d;return l};Wc.levenUnknownHandler=(e,t,r)=>{let{descriptor:n,logger:a,schemas:o}=r,l=["Ignored unknown option ".concat(fC.default.yellow(n.pair({key:e,value:t})),".")],p=Object.keys(o).sort().find(d=>SI(e,d)<3);p&&l.push("Did you mean ".concat(fC.default.blue(n.key(p)),"?")),a.warn(l.join(" "))},function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(Wc,e)}(lC),function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hi;t.__exportStar(Wb,e),t.__exportStar(Eh,e),t.__exportStar(lC,e)}(Ub);var hC={},vh={},hn={};Object.defineProperty(hn,"__esModule",{value:!0});let FI=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function dC(e,t){let r=new e(t),n=Object.create(r);for(let a of FI)a in t&&(n[a]=wI(t[a],r,mC.prototype[a].length));return n}hn.createSchema=dC;class mC{constructor(t){this.name=t.name}static create(t){return dC(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}}function wI(e,t,r){return typeof e=="function"?function(){for(var n=arguments.length,a=new Array(n),o=0;oe}hn.Schema=mC,Object.defineProperty(vh,"__esModule",{value:!0});let BI=hn;class TI extends BI.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}}vh.AliasSchema=TI;var xh={};Object.defineProperty(xh,"__esModule",{value:!0});let kI=hn;class _I extends kI.Schema{expected(){return"anything"}validate(){return!0}}xh.AnySchema=_I;var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});let NI=hi,II=hn;class PI extends II.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,a=NI.__rest(t,["valueSchema","name"]);super(Object.assign({},a,{name:n})),this._valueSchema=r}expected(t){return"an array of ".concat(this._valueSchema.expected(t))}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let a of t){let o=r.normalizeValidateResult(this._valueSchema.validate(a,r),a);o!==!0&&n.push(o.value)}return n.length===0||{value:n}}deprecated(t,r){let n=[];for(let a of t){let o=r.normalizeDeprecatedResult(this._valueSchema.deprecated(a,r),a);o!==!1&&n.push(...o.map(l=>{let{value:p}=l;return{value:[p]}}))}return n}forward(t,r){let n=[];for(let a of t){let o=r.normalizeForwardResult(this._valueSchema.forward(a,r),a);n.push(...o.map(gC))}return n}redirect(t,r){let n=[],a=[];for(let o of t){let l=r.normalizeRedirectResult(this._valueSchema.redirect(o,r),o);"remain"in l&&n.push(l.remain),a.push(...l.redirect.map(gC))}return n.length===0?{redirect:a}:{redirect:a,remain:n}}overlap(t,r){return t.concat(r)}}function gC(e){let{from:t,to:r}=e;return{from:[t],to:r}}Sh.ArraySchema=PI;var Fh={};Object.defineProperty(Fh,"__esModule",{value:!0});let OI=hn;class LI extends OI.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}}Fh.BooleanSchema=LI;var wh={},zt={};function Bh(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function yC(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Bh(r,t)):[Bh(e,t)]}Object.defineProperty(zt,"__esModule",{value:!0}),zt.recordFromArray=function(e,t){let r=Object.create(null);for(let n of e){let a=n[t];if(r[a])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r[a]=n}return r},zt.mapFromArray=function(e,t){let r=new Map;for(let n of e){let a=n[t];if(r.has(a))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r.set(a,n)}return r},zt.createAutoChecklist=function(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}},zt.partition=function(e,t){let r=[],n=[];for(let a of e)t(a)?r.push(a):n.push(a);return[r,n]},zt.isInt=function(e){return e===Math.floor(e)},zt.comparePrimitive=function(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)},zt.normalizeDefaultResult=function(e){return e===void 0?{}:e},zt.normalizeValidateResult=function(e,t){return e===!0||(e===!1?{value:t}:e)},zt.normalizeDeprecatedResult=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e!==!1&&(e===!0?!!r||[{value:t}]:"value"in e?[e]:e.length!==0&&e)},zt.normalizeTransferResult=Bh,zt.normalizeForwardResult=yC,zt.normalizeRedirectResult=function(e,t){let r=yC(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}},Object.defineProperty(wh,"__esModule",{value:!0});let MI=hn,DC=zt;class jI extends MI.Schema{constructor(t){super(t),this._choices=DC.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected(t){let{descriptor:r}=t,n=Array.from(this._choices.keys()).map(l=>this._choices.get(l)).filter(l=>!l.deprecated).map(l=>l.value).sort(DC.comparePrimitive).map(r.value),a=n.slice(0,-2),o=n.slice(-2);return a.concat(o.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return!(!r||!r.deprecated)&&{value:t}}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}}wh.ChoiceSchema=jI;var Th={},zc={};Object.defineProperty(zc,"__esModule",{value:!0});let RI=hn;class VI extends RI.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}}zc.NumberSchema=VI,Object.defineProperty(Th,"__esModule",{value:!0});let qI=zt,GI=zc;class UI extends GI.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&qI.isInt(t)}}Th.IntegerSchema=UI;var kh={};Object.defineProperty(kh,"__esModule",{value:!0});let WI=hn;class zI extends WI.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}}kh.StringSchema=zI,function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hi;t.__exportStar(vh,e),t.__exportStar(xh,e),t.__exportStar(Sh,e),t.__exportStar(Fh,e),t.__exportStar(wh,e),t.__exportStar(Th,e),t.__exportStar(zc,e),t.__exportStar(kh,e)}(hC);var $c={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});let $I=fh,HI=Rc,JI=Eh,YI=Wc;ta.defaultDescriptor=$I.apiDescriptor,ta.defaultUnknownHandler=YI.levenUnknownHandler,ta.defaultInvalidHandler=JI.commonInvalidHandler,ta.defaultDeprecatedHandler=HI.commonDeprecatedHandler,Object.defineProperty($c,"__esModule",{value:!0});let Hc=ta,Fr=zt;$c.normalize=(e,t,r)=>new EC(t,r).normalize(e);class EC{constructor(t,r){let{logger:n=console,descriptor:a=Hc.defaultDescriptor,unknown:o=Hc.defaultUnknownHandler,invalid:l=Hc.defaultInvalidHandler,deprecated:p=Hc.defaultDeprecatedHandler}=r||{};this._utils={descriptor:a,logger:n||{warn:()=>{}},schemas:Fr.recordFromArray(t,"name"),normalizeDefaultResult:Fr.normalizeDefaultResult,normalizeDeprecatedResult:Fr.normalizeDeprecatedResult,normalizeForwardResult:Fr.normalizeForwardResult,normalizeRedirectResult:Fr.normalizeRedirectResult,normalizeValidateResult:Fr.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=l,this._deprecatedHandler=p,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Fr.createAutoChecklist()}normalize(t){let r={},n=[t],a=()=>{for(;n.length!==0;){let o=n.shift(),l=this._applyNormalization(o,r);n.push(...l)}};a();for(let o of Object.keys(this._utils.schemas)){let l=this._utils.schemas[o];if(!(o in r)){let p=Fr.normalizeDefaultResult(l.default(this._utils));"value"in p&&n.push({[o]:p.value})}}a();for(let o of Object.keys(this._utils.schemas)){let l=this._utils.schemas[o];o in r&&(r[o]=l.postprocess(r[o],this._utils))}return r}_applyNormalization(t,r){let n=[],[a,o]=Fr.partition(Object.keys(t),l=>l in this._utils.schemas);for(let l of a){let p=this._utils.schemas[l],d=p.preprocess(t[l],this._utils),m=Fr.normalizeValidateResult(p.validate(d,this._utils),d);if(m!==!0){let{value:v}=m,w=this._invalidHandler(l,v,this._utils);throw typeof w=="string"?new Error(w):w}let y=v=>{let{from:w,to:S}=v;n.push(typeof S=="string"?{[S]:w}:{[S.key]:S.value})},D=v=>{let{value:w,redirectTo:S}=v,k=Fr.normalizeDeprecatedResult(p.deprecated(w,this._utils),d,!0);if(k!==!1)if(k===!0)this._hasDeprecationWarned(l)||this._utils.logger.warn(this._deprecatedHandler(l,S,this._utils));else for(let{value:P}of k){let _={key:l,value:P};if(!this._hasDeprecationWarned(_)){let M=typeof S=="string"?{key:S,value:P}:S;this._utils.logger.warn(this._deprecatedHandler(_,M,this._utils))}}};Fr.normalizeForwardResult(p.forward(d,this._utils),d).forEach(y);let b=Fr.normalizeRedirectResult(p.redirect(d,this._utils),d);if(b.redirect.forEach(y),"remain"in b){let v=b.remain;r[l]=l in r?p.overlap(r[l],v,this._utils):v,D({value:v})}for(let{from:v,to:w}of b.redirect)D({value:v,redirectTo:w})}for(let l of o){let p=t[l],d=this._unknownHandler(l,p,this._utils);if(d)for(let m of Object.keys(d)){let y={[m]:d[m]};m in this._utils.schemas?n.push(y):Object.assign(r,y)}}return n}}$c.Normalizer=EC,function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hi;t.__exportStar(Gb,e),t.__exportStar(Ub,e),t.__exportStar(hC,e),t.__exportStar($c,e),t.__exportStar(hn,e)}(Rb);var _h={exports:{}};let Nh=[],bC=[],CC=(e,t)=>{if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let o,l,p,d,m=0;for(;ml?d>l?l+1:d:d>p?p+1:d;return l};_h.exports=CC,_h.exports.default=CC;var AC={exports:{}};let vu={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]},vC={};for(let e of Object.keys(vu))vC[vu[e]]=e;let Ae={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"]}};var xC=Ae;for(let e of Object.keys(Ae)){if(!("channels"in Ae[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ae[e]))throw new Error("missing channel labels property: "+e);if(Ae[e].labels.length!==Ae[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=Ae[e];delete Ae[e].channels,delete Ae[e].labels,Object.defineProperty(Ae[e],"channels",{value:t}),Object.defineProperty(Ae[e],"labels",{value:r})}Ae.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=o-a,p,d;o===a?p=0:t===o?p=(r-n)/l:r===o?p=2+(n-t)/l:n===o&&(p=4+(t-r)/l),p=Math.min(60*p,360),p<0&&(p+=360);let m=(a+o)/2;return d=o===a?0:m<=.5?l/(o+a):l/(2-o-a),[p,100*d,100*m]},Ae.rgb.hsv=function(e){let t,r,n,a,o,l=e[0]/255,p=e[1]/255,d=e[2]/255,m=Math.max(l,p,d),y=m-Math.min(l,p,d),D=function(b){return(m-b)/6/y+.5};return y===0?(a=0,o=0):(o=y/m,t=D(l),r=D(p),n=D(d),l===m?a=n-r:p===m?a=1/3+t-n:d===m&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*m]},Ae.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],a=Ae.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*o,100*n]},Ae.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},Ae.rgb.keyword=function(e){let t=vC[e];if(t)return t;let r,n=1/0;for(let l of Object.keys(vu)){let p=(o=vu[l],((a=e)[0]-o[0])**2+(a[1]-o[1])**2+(a[2]-o[2])**2);p.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Ae.rgb.lab=function(e){let t=Ae.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(r-n),200*(n-a)]},Ae.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a,o,l;if(r===0)return l=255*n,[l,l,l];a=n<.5?n*(1+r):n+r-n*r;let p=2*n-a,d=[0,0,0];for(let m=0;m<3;m++)o=t+1/3*-(m-1),o<0&&o++,o>1&&o--,l=6*o<1?p+6*(a-p)*o:2*o<1?a:3*o<2?p+(a-p)*(2/3-o)*6:p,d[m]=255*l;return d},Ae.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o,[t,100*(n===0?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},Ae.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),p=255*n*(1-r*o),d=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,d,l];case 1:return[p,n,l];case 2:return[l,n,d];case 3:return[l,p,n];case 4:return[d,l,n];case 5:return[n,l,p]}},Ae.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01),o,l;l=(2-r)*n;let p=(2-r)*a;return o=r*a,o/=p<=1?p:2-p,o=o||0,l/=2,[t,100*o,100*l]},Ae.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a=r+n,o;a>1&&(r/=a,n/=a);let l=Math.floor(6*t),p=1-n;o=6*t-l,(1&l)!=0&&(o=1-o);let d=r+o*(p-r),m,y,D;switch(l){default:case 6:case 0:m=p,y=d,D=r;break;case 1:m=d,y=p,D=r;break;case 2:m=r,y=p,D=d;break;case 3:m=r,y=d,D=p;break;case 4:m=d,y=r,D=p;break;case 5:m=p,y=r,D=d}return[255*m,255*y,255*D]},Ae.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},Ae.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a,o,l;return a=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},Ae.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},Ae.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;let a=r**3,o=t**3,l=n**3;return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},Ae.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],a;return a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360),[t,Math.sqrt(r*r+n*n),a]},Ae.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},Ae.rgb.ansi16=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,[r,n,a]=e,o=t===null?Ae.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let l=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(l+=60),l},Ae.hsv.ansi16=function(e){return Ae.rgb.ansi16(Ae.hsv.rgb(e),e[2])},Ae.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Ae.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Ae.ansi256.rgb=function(e){if(e>=232){let r=10*(e-232)+8;return[r,r,r]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Ae.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Ae.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Ae.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),l=a-o,p,d;return p=l<1?o/(1-l):0,d=l<=0?0:a===t?(r-n)/l%6:a===r?2+(n-t)/l:4+(t-r)/l,d/=6,d%=1,[360*d,100*l,100*p]},Ae.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},Ae.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ae.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];let a=[0,0,0],o=t%1*6,l=o%1,p=1-l,d=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=p,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=p,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=p}return d=(1-r)*n,[255*(r*a[0]+d),255*(r*a[1]+d),255*(r*a[2]+d)]},Ae.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Ae.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},Ae.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Ae.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ae.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ae.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ae.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ae.gray.hsl=function(e){return[0,0,e[0]]},Ae.gray.hsv=Ae.gray.hsl,Ae.gray.hwb=function(e){return[0,100,e[0]]},Ae.gray.cmyk=function(e){return[0,0,0,e[0]]},Ae.gray.lab=function(e){return[e[0],0,0]},Ae.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Ae.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};let Jc=xC;function XI(e){let t=function(){let n={},a=Object.keys(Jc);for(let o=a.length,l=0;l{ra[e]={},Object.defineProperty(ra[e],"channels",{value:Ih[e].channels}),Object.defineProperty(ra[e],"labels",{value:Ih[e].labels});let t=ZI(e);Object.keys(t).forEach(r=>{let n=t[r];ra[e][r]=function(a){let o=function(){for(var l=arguments.length,p=new Array(l),d=0;d1&&(p=m);let y=a(p);if(typeof y=="object")for(let D=y.length,b=0;b1&&(p=m),a(p))};return"conversion"in a&&(o.conversion=a.conversion),o}(n)})});var e7=ra;function SC(){return!1}function FC(){throw new Error("tty.ReadStream is not implemented")}function wC(){throw new Error("tty.ReadStream is not implemented")}(function(e){let t=(m,y)=>function(){let D=m(...arguments);return"\x1B[".concat(D+y,"m")},r=(m,y)=>function(){let D=m(...arguments);return"\x1B[".concat(38+y,";5;").concat(D,"m")},n=(m,y)=>function(){let D=m(...arguments);return"\x1B[".concat(38+y,";2;").concat(D[0],";").concat(D[1],";").concat(D[2],"m")},a=m=>m,o=(m,y,D)=>[m,y,D],l=(m,y,D)=>{Object.defineProperty(m,y,{get:()=>{let b=D();return Object.defineProperty(m,y,{value:b,enumerable:!0,configurable:!0}),b},enumerable:!0,configurable:!0})},p,d=(m,y,D,b)=>{p===void 0&&(p=e7);let v=b?10:0,w={};for(let[S,k]of Object.entries(p)){let P=S==="ansi16"?"ansi":S;S===y?w[P]=m(D,v):typeof k=="object"&&(w[P]=m(k[y],v))}return w};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let m=new Map,y={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]}};y.color.gray=y.color.blackBright,y.bgColor.bgGray=y.bgColor.bgBlackBright,y.color.grey=y.color.blackBright,y.bgColor.bgGrey=y.bgColor.bgBlackBright;for(let[D,b]of Object.entries(y)){for(let[v,w]of Object.entries(b))y[v]={open:"\x1B[".concat(w[0],"m"),close:"\x1B[".concat(w[1],"m")},b[v]=y[v],m.set(w[0],w[1]);Object.defineProperty(y,D,{value:b,enumerable:!1})}return Object.defineProperty(y,"codes",{value:m,enumerable:!1}),y.color.close="\x1B[39m",y.bgColor.close="\x1B[49m",l(y.color,"ansi",()=>d(t,"ansi16",a,!1)),l(y.color,"ansi256",()=>d(r,"ansi256",a,!1)),l(y.color,"ansi16m",()=>d(n,"rgb",o,!1)),l(y.bgColor,"ansi",()=>d(t,"ansi16",a,!0)),l(y.bgColor,"ansi256",()=>d(r,"ansi256",a,!0)),l(y.bgColor,"ansi16m",()=>d(n,"rgb",o,!0)),y}})})(AC);var t7={isatty:SC,ReadStream:FC,WriteStream:wC};let r7=Uc,BC=s(Object.freeze({__proto__:null,isatty:SC,ReadStream:FC,WriteStream:wC,default:t7})),Vr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et.argv,r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n=2,has16m:e>=3}}function Oh(e,t){if(na===0)return 0;if(Vr("color=16m")||Vr("color=full")||Vr("color=truecolor"))return 3;if(Vr("color=256"))return 2;if(e&&!t&&na===void 0)return 0;let r=na||0;if(wt.TERM==="dumb")return r;if(et.platform==="win32"){let n=r7.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in wt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in wt)||wt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in wt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(wt.TEAMCITY_VERSION)?1:0;if(wt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in wt){let n=parseInt((wt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(wt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(wt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(wt.TERM)||"COLORTERM"in wt?1:r}Vr("no-color")||Vr("no-colors")||Vr("color=false")||Vr("color=never")?na=0:(Vr("color")||Vr("colors")||Vr("color=true")||Vr("color=always"))&&(na=1),"FORCE_COLOR"in wt&&(na=wt.FORCE_COLOR==="true"?1:wt.FORCE_COLOR==="false"?0:wt.FORCE_COLOR.length===0?1:Math.min(parseInt(wt.FORCE_COLOR,10),3));var n7={supportsColor:function(e){return Ph(Oh(e,e&&e.isTTY))},stdout:Ph(Oh(!0,BC.isatty(1))),stderr:Ph(Oh(!0,BC.isatty(2)))},i7={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let a=t.length,o=0,l="";do l+=e.substr(o,n-o)+t+r,o=n+a,n=e.indexOf(t,o);while(n!==-1);return l+=e.substr(o),l},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let a=0,o="";do{let l=e[n-1]==="\r";o+=e.substr(a,(l?n-1:n)-a)+t+(l?`\r +`:` +`)+r,a=n+1,n=e.indexOf(` +`,a)}while(n!==-1);return o+=e.substr(a),o}};let s7=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,TC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a7=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,u7=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o7=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function kC(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o7.get(e)||e}function c7(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n){let l=Number(o);if(Number.isNaN(l)){if(!(a=o.match(a7)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(u7,(p,d,m)=>d?kC(d):m))}else r.push(l)}return r}function l7(e){TC.lastIndex=0;let t=[],r;for(;(r=TC.exec(e))!==null;){let n=r[1];if(r[2]){let a=c7(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function _C(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let[a,o]of Object.entries(r))if(Array.isArray(o)){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=o.length>0?n[a](...o):n[a]}return n}var p7=(e,t)=>{let r=[],n=[],a=[];if(t.replace(s7,(o,l,p,d,m,y)=>{if(l)a.push(kC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:_C(e,r)(D)),r.push({inverse:p,styles:l7(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(_C(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};let xu=AC.exports,{stdout:Lh,stderr:Mh}=n7,{stringReplaceAll:f7,stringEncaseCRLFWithFirstIndex:h7}=i7,{isArray:Yc}=Array,NC=["ansi","ansi","ansi256","ansi16m"],ia=Object.create(null);class d7{constructor(t){return IC(t)}}let IC=e=>{let t={};return function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.level&&!(Number.isInteger(n.level)&&n.level>=0&&n.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let a=Lh?Lh.level:0;r.level=n.level===void 0?a:n.level}(t,e),t.template=function(){for(var r=arguments.length,n=new Array(r),a=0;a{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=d7,t.template};function Xc(e){return IC(e)}for(let[e,t]of Object.entries(xu))ia[e]={get(){let r=Kc(this,jh(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};ia.visible={get(){let e=Kc(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};let PC=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of PC)ia[e]={get(){let{level:t}=this;return function(){let r=jh(xu.color[NC[t]][e](...arguments),xu.color.close,this._styler);return Kc(this,r,this._isEmpty)}}};for(let e of PC)ia["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(){let r=jh(xu.bgColor[NC[t]][e](...arguments),xu.bgColor.close,this._styler);return Kc(this,r,this._isEmpty)}}};let m7=Object.defineProperties(()=>{},Object.assign(Object.assign({},ia),{},{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),jh=(e,t,r)=>{let n,a;return r===void 0?(n=e,a=t):(n=r.openAll+e,a=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:a,parent:r}},Kc=(e,t,r)=>{let n=function(){for(var a=arguments.length,o=new Array(a),l=0;l{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:a}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=f7(t,r.close,r.open),r=r.parent;let o=t.indexOf(` +`);return o!==-1&&(t=h7(t,a,n,o)),n+t+a},Rh,LC=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne.length===1?"-".concat(e):"--".concat(e),value:e=>qr.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return r===!1?"--no-".concat(t):r===!0?Zc.key(t):r===""?"".concat(Zc.key(t)," without an argument"):"".concat(Zc.key(t),"=").concat(r)}};class b7 extends qr.ChoiceSchema{constructor(t){let{name:r,flags:n}=t;super({name:r,choices:n}),this._flags=[...n].sort()}preprocess(t,r){if(typeof t=="string"&&t.length>0&&!this._flags.includes(t)){let n=this._flags.find(a=>D7(a,t)<3);if(n)return r.logger.warn(["Unknown flag ".concat(MC.yellow(r.descriptor.value(t)),","),"did you mean ".concat(MC.blue(r.descriptor.value(n)),"?")].join(" ")),n}return t}expected(){return"a flag"}}let Vh;function jC(e,t){let{logger:r,isCLI:n=!1,passThrough:a=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a?Array.isArray(a)?(D,b)=>a.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,v)=>{let w=P0(v.schemas,y7);return qr.levenUnknownHandler(D,b,Object.assign(Object.assign({},v),{},{schemas:w}))},l=n?Zc:qr.apiDescriptor,p=C7(t,{isCLI:n}),d=new qr.Normalizer(p,{logger:r,unknown:o,descriptor:l}),m=r!==!1;m&&Vh&&(d._hasDeprecationWarned=Vh);let y=d.normalize(e);return m&&(Vh=d._hasDeprecationWarned),y}function C7(e,t){let{isCLI:r}=t,n=[];r&&n.push(qr.AnySchema.create({name:"_"}));for(let a of e)n.push(A7(a,{isCLI:r,optionInfos:e})),a.alias&&r&&n.push(qr.AliasSchema.create({name:a.alias,sourceName:a.name}));return n}function A7(e,t){let r,{isCLI:n,optionInfos:a}=t,o={name:e.name},l={};switch(e.type){case"int":r=qr.IntegerSchema,n&&(o.preprocess=p=>Number(p));break;case"string":case"path":r=qr.StringSchema;break;case"choice":r=qr.ChoiceSchema,o.choices=e.choices.map(p=>typeof p=="object"&&p.redirect?Object.assign(Object.assign({},p),{},{redirect:{to:{key:e.name,value:p.redirect}}}):p);break;case"boolean":r=qr.BooleanSchema;break;case"flag":r=b7,o.flags=a.flatMap(p=>[p.alias,p.description&&p.name,p.oppositeDescription&&"no-".concat(p.name)].filter(Boolean));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(p,d,m)=>e.exception(p)||d.validate(p,m):o.validate=(p,d,m)=>p===void 0||d.validate(p,m),e.redirect&&(l.redirect=p=>p?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(l.deprecated=!0),n&&!e.array){let p=o.preprocess||(d=>d);o.preprocess=(d,m,y)=>m.preprocess(p(Array.isArray(d)?E7(d):d),y)}return e.array?qr.ArraySchema.create(Object.assign(Object.assign(Object.assign({},n?{preprocess:p=>Array.isArray(p)?p:[p]}:{}),l),{},{valueSchema:r.create(o)})):r.create(Object.assign(Object.assign({},o),l))}var v7={normalizeApiOptions:function(e,t,r){return jC(e,t,r)},normalizeCliOptions:function(e,t,r){return jC(e,t,Object.assign({isCLI:!0},r))}};let{isNonEmptyArray:x7}=ke;function el(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(x7(n))return el(n[0])}return e.range?e.range[0]:e.start}function qh(e){return e.range?e.range[1]:e.end}function RC(e,t){return el(e)===el(t)}var $t={locStart:el,locEnd:qh,hasSameLocStart:RC,hasSameLoc:function(e,t){return RC(e,t)&&function(r,n){return qh(r)===qh(n)}(e,t)}},tl={},Su={},rl={};Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,rl.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var VC={},Fu={};Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.isIdentifierStart=UC,Fu.isIdentifierChar=WC,Fu.isIdentifierName=function(e){let t=!0;for(let r=0;re)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function UC(e){return e<65?e===36:e<=90||(e<97?e===95:e<=122||(e<=65535?e>=170&&S7.test(String.fromCharCode(e)):Uh(e,GC)))}function WC(e){return e<48?e===36:e<58||!(e<65)&&(e<=90||(e<97?e===95:e<=122||(e<=65535?e>=170&&F7.test(String.fromCharCode(e)):Uh(e,GC)||Uh(e,w7))))}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.isReservedWord=zC,Ji.isStrictReservedWord=$C,Ji.isStrictBindOnlyReservedWord=HC,Ji.isStrictBindReservedWord=function(e,t){return $C(e,t)||HC(e)},Ji.isKeyword=function(e){return k7.has(e)};let B7=["implements","interface","let","package","private","protected","public","static","yield"],T7=["eval","arguments"],k7=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),_7=new Set(B7),N7=new Set(T7);function zC(e,t){return t&&e==="await"||e==="enum"}function $C(e,t){return zC(e,t)||_7.has(e)}function HC(e){return N7.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}});var t=Fu,r=Ji})(VC);var JC={exports:{}},I7=/[|\\{}()[\]^$+*?.]/g,P7=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(I7,"\\$&")};let O7=Uc,dn=(e,t)=>{t=t||et.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n=8&&Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ht)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(a=>a in Ht)||Ht.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Ht)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ht.TEAMCITY_VERSION)?1:0;if(Ht.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ht){let a=parseInt((Ht.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ht.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ht.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ht.TERM)||"COLORTERM"in Ht?1:(Ht.TERM,n)}(e);return function(r){return r!==0&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}(t)}dn("no-color")||dn("no-colors")||dn("color=false")?sa=!1:(dn("color")||dn("colors")||dn("color=true")||dn("color=always"))&&(sa=!0),"FORCE_COLOR"in Ht&&(sa=Ht.FORCE_COLOR.length===0||parseInt(Ht.FORCE_COLOR,10)!==0);var L7={supportsColor:Wh,stdout:Wh(et.stdout),stderr:Wh(et.stderr)};let M7=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,YC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,j7=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,R7=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,V7=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function XC(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):V7.get(e)||e}function q7(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n)if(isNaN(o)){if(!(a=o.match(j7)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(R7,(l,p,d)=>p?XC(p):d))}else r.push(Number(o));return r}function G7(e){YC.lastIndex=0;let t=[],r;for(;(r=YC.exec(e))!==null;){let n=r[1];if(r[2]){let a=q7(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function KC(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let a of Object.keys(r))if(Array.isArray(r[a])){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=r[a].length>0?n[a].apply(n,r[a]):n[a]}return n}var U7=(e,t)=>{let r=[],n=[],a=[];if(t.replace(M7,(o,l,p,d,m,y)=>{if(l)a.push(XC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:KC(e,r)(D)),r.push({inverse:p,styles:G7(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(KC(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};(function(e){let t=P7,r=hh.exports,n=L7.stdout,a=U7,o=et.platform==="win32"&&!(et.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],p=new Set(["gray"]),d=Object.create(null);function m(S,k){k=k||{};let P=n?n.level:0;S.level=k.level===void 0?P:k.level,S.enabled="enabled"in k?k.enabled:S.level>0}function y(S){if(!this||!(this instanceof y)||this.template){let k={};return m(k,S),k.template=function(){let P=[].slice.call(arguments);return w.apply(null,[k.template].concat(P))},Object.setPrototypeOf(k,y.prototype),Object.setPrototypeOf(k.template,k),k.template.constructor=y,k.template}m(this,S)}o&&(r.blue.open="\x1B[94m");for(let S of Object.keys(r))r[S].closeRe=new RegExp(t(r[S].close),"g"),d[S]={get(){let k=r[S];return b.call(this,this._styles?this._styles.concat(k):[k],this._empty,S)}};d.visible={get(){return b.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let S of Object.keys(r.color.ansi))p.has(S)||(d[S]={get(){let k=this.level;return function(){let P=r.color[l[k]][S].apply(null,arguments),_={open:P,close:r.color.close,closeRe:r.color.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let S of Object.keys(r.bgColor.ansi))p.has(S)||(d["bg"+S[0].toUpperCase()+S.slice(1)]={get(){let k=this.level;return function(){let P=r.bgColor[l[k]][S].apply(null,arguments),_={open:P,close:r.bgColor.close,closeRe:r.bgColor.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});let D=Object.defineProperties(()=>{},d);function b(S,k,P){let _=function(){return v.apply(_,arguments)};_._styles=S,_._empty=k;let M=this;return Object.defineProperty(_,"level",{enumerable:!0,get:()=>M.level,set(U){M.level=U}}),Object.defineProperty(_,"enabled",{enumerable:!0,get:()=>M.enabled,set(U){M.enabled=U}}),_.hasGrey=this.hasGrey||P==="gray"||P==="grey",_.__proto__=D,_}function v(){let S=arguments,k=S.length,P=String(arguments[0]);if(k===0)return"";if(k>1)for(let M=1;M1&&arguments[1]!==void 0?arguments[1]:{};if(tA(t)){let r=rA(t);return J7(z7(r),e)}return e},Su.getChalk=rA,Su.shouldHighlight=tA;var QC=rl,ZC=VC,zh=JC.exports;let W7=new Set(["as","async","from","get","of","set"]);function z7(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}let $7=/\r\n|[\n\r\u2028\u2029]/,H7=/^[()[\]{}]$/,eA;{let e=/^[a-z][\w-]*$/i,t=function(r,n,a){if(r.type==="name"){if((0,ZC.isKeyword)(r.value)||(0,ZC.isStrictReservedWord)(r.value,!0)||W7.has(r.value))return"keyword";if(e.test(r.value)&&(a[n-1]==="<"||a.substr(n-2,2)=="o(l)).join(` +`):a}return r}function tA(e){return!!zh.supportsColor||e.forceColor}function rA(e){return e.forceColor?new zh.constructor({enabled:!0,level:1}):zh}Object.defineProperty(tl,"__esModule",{value:!0}),tl.codeFrameColumns=sA,tl.default=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!nA){nA=!0;let o="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";et.emitWarning?et.emitWarning(o,"DeprecationWarning"):(new Error(o).name="DeprecationWarning",console.warn(new Error(o)))}let a={start:{column:r=Math.max(r,0),line:t}};return sA(e,a,n)};var $h=Su;let nA=!1;function Y7(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}let iA=/\r\n|[\n\r\u2028\u2029]/;function X7(e,t,r){let n=Object.assign({column:0,line:-1},e.start),a=Object.assign({},n,e.end),{linesAbove:o=2,linesBelow:l=3}=r||{},p=n.line,d=n.column,m=a.line,y=a.column,D=Math.max(p-(o+1),0),b=Math.min(t.length,m+l);p===-1&&(D=0),m===-1&&(b=t.length);let v=m-p,w={};if(v)for(let S=0;S<=v;S++){let k=S+p;if(d)if(S===0){let P=t[k-1].length;w[k]=[d,P-d+1]}else if(S===v)w[k]=[0,y];else{let P=t[k-S].length;w[k]=[0,P]}else w[k]=!0}else w[p]=d===y?!d||[d,0]:[d,y-d];return{start:D,end:b,markerLines:w}}function sA(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(r.highlightCode||r.forceColor)&&(0,$h.shouldHighlight)(r),a=(0,$h.getChalk)(r),o=Y7(a),l=(S,k)=>n?S(k):k,p=e.split(iA),{start:d,end:m,markerLines:y}=X7(t,p,r),D=t.start&&typeof t.start.column=="number",b=String(m).length,w=(n?(0,$h.default)(e,r):e).split(iA,m).slice(d,m).map((S,k)=>{let P=d+1+k,_=" ".concat(P).slice(-b),M=" ".concat(_," |"),U=y[P],q=!y[P+1];if(U){let H="";if(Array.isArray(U)){let Q=S.slice(0,Math.max(U[0]-1,0)).replace(/[^\t]/g," "),te=U[1]||1;H=[` + `,l(o.gutter,M.replace(/\d/g," "))," ",Q,l(o.marker,"^").repeat(te)].join(""),q&&r.message&&(H+=" "+l(o.message,r.message))}return[l(o.marker,">"),l(o.gutter,M),S.length>0?" ".concat(S):"",H].join("")}return" ".concat(l(o.gutter,M)).concat(S.length>0?" ".concat(S):"")}).join(` +`);return r.message&&!D&&(w="".concat(" ".repeat(b+1)).concat(r.message,` +`).concat(w)),n?a.reset(w):w}let{ConfigError:K7}=Cu,Q7=$t,{locStart:Z7,locEnd:eP}=Q7,tP=Object.getOwnPropertyNames,rP=Object.getOwnPropertyDescriptor;function aA(e){let t={};for(let r of e.plugins)if(r.parsers)for(let n of tP(r.parsers))Object.defineProperty(t,n,rP(r.parsers,n));return t}function uA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:aA(e);if(typeof e.parser=="function")return{parse:e.parser,astFormat:"estree",locStart:Z7,locEnd:eP};if(typeof e.parser=="string"){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new K7(`Couldn't resolve parser "`.concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Hh={parse:function(e,t){let r=aA(t),n=Object.defineProperties({},Object.fromEntries(Object.keys(r).map(o=>[o,{enumerable:!0,get:()=>r[o].parse}]))),a=uA(t,r);try{return a.preprocess&&(e=a.preprocess(e,t)),{text:e,ast:a.parse(e,n,t)}}catch(o){let{loc:l}=o;if(l){let{codeFrameColumns:p}=tl;throw o.codeFrame=p(e,l,{highlightCode:!0}),o.message+=` +`+o.codeFrame,o}throw o.stack}},resolveParser:uA};let oA=mb,nP=j4,iP=tI,{UndefinedParserError:sP}=Cu,{getSupportInfo:cA}=q0,lA=v7,{resolveParser:aP}=Hh,Jh={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function uP(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find(n=>n.printers&&n.printers[t]);if(!r)throw new Error(`Couldn't find plugin for AST format "`.concat(t,'"'));return r}function pA(e,t){let r=nP.basename(e).toLowerCase(),n=cA({plugins:t}).languages.filter(o=>o.since!==null),a=n.find(o=>o.extensions&&o.extensions.some(l=>r.endsWith(l))||o.filenames&&o.filenames.some(l=>l.toLowerCase()===r));if(!a&&!r.includes(".")){let o=function(l){if(typeof l!="string")return"";let p;try{p=oA.openSync(l,"r")}catch{return""}try{let d=new iP(p).next().toString("utf8"),m=d.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(m)return m[1];let y=d.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return y?y[1]:""}catch{return""}finally{try{oA.closeSync(p)}catch{}}}(e);a=n.find(l=>l.interpreters&&l.interpreters.includes(o))}return a&&a.parsers[0]}var fA={normalize:function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e),n=cA({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=Object.assign(Object.assign({},Jh),Object.fromEntries(n.filter(m=>m.default!==void 0).map(m=>[m.name,m.default])));if(!r.parser)if(r.filepath){if(r.parser=pA(r.filepath,r.plugins),!r.parser)throw new sP("No parser could be inferred for file: ".concat(r.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";let o=aP(lA.normalizeApiOptions(r,[n.find(m=>m.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let l=uP(r);r.printer=l.printers[r.astFormat];let p=Object.fromEntries(n.filter(m=>m.pluginDefaults&&m.pluginDefaults[l.name]!==void 0).map(m=>[m.name,m.pluginDefaults[l.name]])),d=Object.assign(Object.assign({},a),p);for(let[m,y]of Object.entries(d))r[m]!==null&&r[m]!==void 0||(r[m]=y);return r.parser==="json"&&(r.trailingComma="none"),lA.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Jh)},t))},hiddenDefaults:Jh,inferParser:pA},oP=function e(t,r,n){if(Array.isArray(t))return t.map(p=>e(p,r,n)).filter(Boolean);if(!t||typeof t!="object")return t;let a=r.printer.massageAstNode,o;o=a&&a.ignoredProperties?a.ignoredProperties:new Set;let l={};for(let[p,d]of Object.entries(t))o.has(p)||typeof d=="function"||(l[p]=e(d,r,t));if(a){let p=a(t,l,n);if(p===null)return;if(p)return p}return l},cP=typeof Object.create=="function"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e};function Yi(e,t){var r={seen:[],stylize:pP};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),hA(t)?r.showHidden=t:t&&fP(r,t),aa(r.showHidden)&&(r.showHidden=!1),aa(r.depth)&&(r.depth=2),aa(r.colors)&&(r.colors=!1),aa(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=lP),nl(r,e,r.depth)}function lP(e,t){var r=Yi.styles[t];return r?"\x1B["+Yi.colors[r][0]+"m"+e+"\x1B["+Yi.colors[r][1]+"m":e}function pP(e,t){return e}function nl(e,t,r){if(e.customInspect&&t&&Bu(t.inspect)&&t.inspect!==Yi&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return mA(n)||(n=nl(e,n,r)),n}var a=function(v,w){if(aa(w))return v.stylize("undefined","undefined");if(mA(w)){var S="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return v.stylize(S,"string")}if(k=w,typeof k=="number")return v.stylize(""+w,"number");var k;if(hA(w))return v.stylize(""+w,"boolean");if(dA(w))return v.stylize("null","null")}(e,t);if(a)return a;var o=Object.keys(t),l=function(v){var w={};return v.forEach(function(S,k){w[S]=!0}),w}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),al(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Yh(t);if(o.length===0){if(Bu(t)){var p=t.name?": "+t.name:"";return e.stylize("[Function"+p+"]","special")}if(wu(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(sl(t))return e.stylize(Date.prototype.toString.call(t),"date");if(al(t))return Yh(t)}var d,m,y="",D=!1,b=["{","}"];return d=t,Array.isArray(d)&&(D=!0,b=["[","]"]),Bu(t)&&(y=" [Function"+(t.name?": "+t.name:"")+"]"),wu(t)&&(y=" "+RegExp.prototype.toString.call(t)),sl(t)&&(y=" "+Date.prototype.toUTCString.call(t)),al(t)&&(y=" "+Yh(t)),o.length!==0||D&&t.length!=0?r<0?wu(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),m=D?function(v,w,S,k,P){for(var _=[],M=0,U=w.length;M60?S[0]+(w===""?"":w+` + `)+" "+v.join(`, + `)+" "+S[1]:S[0]+w+" "+v.join(", ")+" "+S[1]}(m,y,b)):b[0]+y+b[1]}function Yh(e){return"["+Error.prototype.toString.call(e)+"]"}function Xh(e,t,r,n,a,o){var l,p,d;if((d=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?p=d.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):d.set&&(p=e.stylize("[Setter]","special")),yA(n,a)||(l="["+a+"]"),p||(e.seen.indexOf(d.value)<0?(p=dA(r)?nl(e,d.value,null):nl(e,d.value,r-1)).indexOf(` +`)>-1&&(p=o?p.split(` +`).map(function(m){return" "+m}).join(` +`).substr(2):` +`+p.split(` +`).map(function(m){return" "+m}).join(` +`)):p=e.stylize("[Circular]","special")),aa(l)){if(o&&a.match(/^\d+$/))return p;(l=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"))}return l+": "+p}function hA(e){return typeof e=="boolean"}function dA(e){return e===null}function mA(e){return typeof e=="string"}function aa(e){return e===void 0}function wu(e){return il(e)&&Kh(e)==="[object RegExp]"}function il(e){return typeof e=="object"&&e!==null}function sl(e){return il(e)&&Kh(e)==="[object Date]"}function al(e){return il(e)&&(Kh(e)==="[object Error]"||e instanceof Error)}function Bu(e){return typeof e=="function"}function gA(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0}function Kh(e){return Object.prototype.toString.call(e)}function fP(e,t){if(!t||!il(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function yA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function DA(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a=0){var l=n.indexOf(` +`,o+1);n=n.substring(l+1)}this.stack=n}}}function SA(e,t){return typeof e=="string"?e.length=0;b--)if(v[b]!==w[b])return!1;for(b=v.length-1;b>=0;b--)if(!ua(o[D=v[b]],l[D],p,d))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function wA(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function nd(e,t,r){ua(e,t,!1)&&ur(e,t,r,"notDeepEqual",nd)}function id(e,t,r){ua(e,t,!0)&&ur(e,t,r,"notDeepStrictEqual",id)}function sd(e,t,r){e!==t&&ur(e,t,r,"===",sd)}function ad(e,t,r){e===t&&ur(e,t,r,"!==",ad)}function BA(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return!Error.isPrototypeOf(t)&&t.call({},e)===!0}function TA(e,t,r,n){var a;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),a=function(p){var d;try{p()}catch(m){d=m}return d}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!a&&ur(a,r,"Missing expected exception"+n);var o=typeof n=="string",l=!e&&a&&!r;if((!e&&al(a)&&o&&BA(a,r)||l)&&ur(a,r,"Got unwanted exception"+n),e&&a&&r&&!BA(a,r)||!e&&a)throw a}function kA(e,t,r){TA(!0,e,t,r)}function _A(e,t,r){TA(!1,e,t,r)}function NA(e){if(e)throw e}ar.AssertionError=ul,cP(ul,Error),ar.fail=ur,ar.ok=Tu,ar.equal=Zh,ar.notEqual=ed,ar.deepEqual=td,ar.deepStrictEqual=rd,ar.notDeepEqual=nd,ar.notDeepStrictEqual=id,ar.strictEqual=sd,ar.notStrictEqual=ad,ar.throws=kA,ar.doesNotThrow=_A,ar.ifError=NA;var ku=s(Object.freeze({__proto__:null,default:ar,AssertionError:ul,fail:ur,ok:Tu,assert:Tu,equal:Zh,notEqual:ed,deepEqual:td,deepStrictEqual:rd,notDeepEqual:nd,notDeepStrictEqual:id,strictEqual:sd,notStrictEqual:ad,throws:kA,doesNotThrow:_A,ifError:NA}));let IA=ku,{builders:{line:mP,hardline:di,breakParent:gP,indent:yP,lineSuffix:PA,join:OA,cursor:ud}}=ve,{hasNewline:oa,skipNewline:DP,skipSpaces:EP,isPreviousLineEmpty:bP,addLeadingComment:_u,addDanglingComment:od,addTrailingComment:Nu}=ke,cd=new WeakMap;function ld(e,t,r){if(!e)return;let{printer:n,locStart:a,locEnd:o}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let p;for(p=r.length-1;p>=0&&!(a(r[p])<=a(e)&&o(r[p])<=o(e));--p);return void r.splice(p+1,0,e)}}else if(cd.has(e))return cd.get(e);let l=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||typeof e=="object"&&Object.entries(e).filter(p=>{let[d]=p;return d!=="enclosingNode"&&d!=="precedingNode"&&d!=="followingNode"&&d!=="tokens"&&d!=="comments"}).map(p=>{let[,d]=p;return d});if(l){r||(r=[],cd.set(e,r));for(let p of l)ld(p,t,r);return r}}function LA(e,t,r,n){let{locStart:a,locEnd:o}=r,l=a(t),p=o(t),d=ld(e,r),m,y,D=0,b=d.length;for(;D>1,w=d[v],S=a(w),k=o(w);if(S<=l&&p<=k)return LA(w,t,r,w);if(k<=l)m=w,D=v+1;else{if(!(p<=S))throw new Error("Comment location overlaps with node location");y=w,b=v}}if(n&&n.type==="TemplateLiteral"){let{quasis:v}=n,w=hd(v,t,r);m&&hd(v,m,r)!==w&&(m=null),y&&hd(v,y,r)!==w&&(y=null)}return{enclosingNode:n,precedingNode:m,followingNode:y}}let pd=()=>!1,MA=e=>!/[\S\n\u2028\u2029]/.test(e);function CP(e,t,r,n){let{comment:a,precedingNode:o}=r[n],{locStart:l,locEnd:p}=t,d=l(a);if(o)for(let m=n-1;m>=0;m--){let{comment:y,precedingNode:D}=r[m];if(D!==o||!MA(e.slice(p(y),d)))break;d=l(y)}return oa(e,d,{backwards:!0})}function AP(e,t,r,n){let{comment:a,followingNode:o}=r[n],{locStart:l,locEnd:p}=t,d=p(a);if(o)for(let m=n+1;m0;--d){let{comment:y,precedingNode:D,followingNode:b}=e[d-1];IA.strictEqual(D,a),IA.strictEqual(b,o);let v=t.slice(r.locEnd(y),m);if(!p.test(v))break;m=r.locStart(y)}for(let[y,{comment:D}]of e.entries())y1&&y.comments.sort((D,b)=>r.locStart(D)-r.locStart(b));e.length=0}function fd(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function hd(e,t,r){let n=r.locStart(t)-1;for(let a=1;a!r.has(d)));let o=n===t.cursorNode;if(a.length===0){let d=o?ud:"";return{leading:d,trailing:d}}let l=[],p=[];return e.each(()=>{let d=e.getValue();if(r&&r.has(d))return;let{leading:m,trailing:y}=d;m?l.push(function(D,b){let v=D.getValue(),w=[fd(D,b)],{printer:S,originalText:k,locStart:P,locEnd:_}=b;if(S.isBlockComment&&S.isBlockComment(v)){let U=oa(k,_(v))?oa(k,P(v),{backwards:!0})?di:mP:" ";w.push(U)}else w.push(di);let M=DP(k,EP(k,_(v)));return M!==!1&&oa(k,M)&&w.push(di),w}(e,t)):y&&p.push(function(D,b){let v=D.getValue(),w=fd(D,b),{printer:S,originalText:k,locStart:P}=b,_=S.isBlockComment&&S.isBlockComment(v);if(oa(k,P(v),{backwards:!0})){let U=bP(k,v,P);return PA([di,U?di:"",w])}let M=[" ",w];return _||(M=[PA(M),gP]),M}(e,t))},"comments"),o&&(l.unshift(ud),p.push(ud)),{leading:l,trailing:p}}var gt={attach:function(e,t,r,n){if(!Array.isArray(e))return;let a=[],{locStart:o,locEnd:l,printer:{handleComments:p={}}}=n,{avoidAstMutation:d,ownLine:m=pd,endOfLine:y=pd,remaining:D=pd}=p,b=e.map((v,w)=>Object.assign(Object.assign({},LA(t,v,n)),{},{comment:v,text:r,options:n,ast:t,isLastComment:e.length-1===w}));for(let[v,w]of b.entries()){let{comment:S,precedingNode:k,enclosingNode:P,followingNode:_,text:M,options:U,ast:q,isLastComment:H}=w;if(U.parser==="json"||U.parser==="json5"||U.parser==="__js_expression"||U.parser==="__vue_expression"){if(o(S)-o(q)<=0){_u(q,S);continue}if(l(S)-l(q)>=0){Nu(q,S);continue}}let Q;if(d?Q=[w]:(S.enclosingNode=P,S.precedingNode=k,S.followingNode=_,Q=[S,M,U,q,H]),CP(M,U,b,v))S.placement="ownLine",m(...Q)||(_?_u(_,S):k?Nu(k,S):od(P||q,S));else if(AP(M,U,b,v))S.placement="endOfLine",y(...Q)||(k?Nu(k,S):_?_u(_,S):od(P||q,S));else if(S.placement="remaining",!D(...Q))if(k&&_){let te=a.length;te>0&&a[te-1].followingNode!==_&&jA(a,M,U),a.push(w)}else k?Nu(k,S):_?_u(_,S):od(P||q,S)}if(jA(a,r,n),!d)for(let v of e)delete v.precedingNode,delete v.enclosingNode,delete v.followingNode},printComments:function(e,t,r,n){let{leading:a,trailing:o}=RA(e,r,n);return a||o?[a,t,o]:t},printCommentsSeparately:RA,printDanglingComments:function(e,t,r,n){let a=[],o=e.getValue();return o&&o.comments?(e.each(()=>{let l=e.getValue();l.leading||l.trailing||n&&!n(l)||a.push(fd(e,t))},"comments"),a.length===0?"":r?OA(di,a):yP([di,OA(di,a)])):""},getSortedChildNodes:ld,ensureAllCommentsPrinted:function(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}};let dd=Mr;function VA(e,t){let r=qA(e.stack,t);return r===-1?null:e.stack[r]}function qA(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var vP=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return dd(this.stack)}getNode(){return VA(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)}getParentNode(){return VA(this,(arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)+1)}call(e){let{stack:t}=this,{length:r}=t,n=dd(t);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l1&&arguments[1]!==void 0?arguments[1]:0,r=qA(this.stack,t+1),n=this.stack.splice(r+1),a=e(this);return this.stack.push(...n),a}each(e){let{stack:t}=this,{length:r}=t,n=dd(t);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l1?r-1:0),a=1;a{t[l]=e(o,l,p)},...n),t}try(e){let{stack:t}=this,r=[...t];try{return e()}finally{t.length=0,t.push(...r)}}match(){let e=this.stack.length-1,t=null,r=this.stack[e--];for(var n=arguments.length,a=new Array(n),o=0;ofunction(p,d,m,y){let{stripTrailingHardline:D=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},b=SP(Object.assign(Object.assign(Object.assign({},m),d),{},{parentParser:m.parser,originalText:p}),{passThrough:!0}),v=Hh.parse(p,b),{ast:w}=v;p=v.text;let S=w.comments;delete w.comments,GA.attach(S,w,p,b),b[Symbol.for("comments")]=S||[],b[Symbol.for("tokens")]=w.tokens||[];let k=y(w,b);return GA.ensureAllCommentsPrinted(S),D?typeof k=="string"?k.replace(/(?:\r?\n)*$/,""):xP(k):k}(a,o,r,n,l),r)}};let wP=vP,{builders:{hardline:BP,addAlignmentToDoc:TP},utils:{propagateBreaks:kP}}=ve,{printComments:_P}=gt,NP=FP;function UA(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:n}=t;n.preprocess&&(e=n.preprocess(e,t));let a=new Map,o=new wP(e),l=p();return r>0&&(l=TP([BP,l],r,t.tabWidth)),kP(l),l;function p(m,y){return m===void 0||m===o?d(y):Array.isArray(m)?o.call(()=>d(y),...m):o.call(()=>d(y),m)}function d(m){let y=o.getValue(),D=y&&typeof y=="object"&&m===void 0;if(D&&a.has(y))return a.get(y);let b=IP(o,t,p,m);return D&&a.set(y,b),b}}function IP(e,t,r,n){let a=e.getValue(),{printer:o}=t,l,p;if(o.hasPrettierIgnore&&o.hasPrettierIgnore(e))({doc:l,printedComments:p}=function(d,m){let{originalText:y,[Symbol.for("comments")]:D,locStart:b,locEnd:v}=m,w=b(d),S=v(d),k=new Set;for(let P of D)b(P)>=w&&v(P)<=S&&(P.printed=!0,k.add(P));return{doc:y.slice(w,S),printedComments:k}}(a,t));else{if(a)try{l=NP.printSubtree(e,r,t,UA)}catch(d){if(i.PRETTIER_DEBUG)throw d}l||(l=o.print(e,t,r,n))}return o.willPrintOwnComments&&o.willPrintOwnComments(e,t)||(l=_P(e,l,t,p)),l}var PP=UA;let OP=ku,LP=gt;function WA(e){let t=e.length-1;for(;;){let r=e[t];if(!r||r.type!=="Program"&&r.type!=="File")break;t--}return e.slice(0,t+1)}function ol(e,t,r,n){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,{locStart:l,locEnd:p}=r,d=l(e),m=p(e);if(!(t>m||tn);let p=e.slice(n,a).search(/\S/),d=p===-1;if(!d)for(n+=p;a>n&&!/\S/.test(e[a-1]);--a);let m=ol(r,n,t,(v,w)=>$A(t,v,w),[],"rangeStart"),y=d?m:ol(r,a,t,v=>$A(t,v),[],"rangeEnd");if(!m||!y)return{rangeStart:0,rangeEnd:0};let D,b;if((v=>{let{parser:w}=v;return w==="json"||w==="json5"||w==="json-stringify"})(t)){let v=function(w,S){let k=[w.node,...w.parentNodes],P=new Set([S.node,...S.parentNodes]);return k.find(_=>zA.has(_.type)&&P.has(_))}(m,y);D=v,b=v}else({startNode:D,endNode:b}=function(v,w,S){let{locStart:k,locEnd:P}=S,_=v.node,M=w.node;if(_===M)return{startNode:_,endNode:M};let U=k(v.node);for(let H of WA(w.parentNodes)){if(!(k(H)>=U))break;M=H}let q=P(w.node);for(let H of WA(v.parentNodes)){if(!(P(H)<=q))break;_=H}return{startNode:_,endNode:M}}(m,y,t));return{rangeStart:Math.min(o(D),o(b)),rangeEnd:Math.max(l(D),l(b))}},findNodeAtOffset:ol};let RP=c,{printer:{printDocToString:md},debug:{printDocToDebug:VP}}=ve,{getAlignmentSize:qP}=ke,{guessEndOfLine:GP,convertEndOfLineToChars:HA,countEndOfLineChars:JA,normalizeEndOfLine:UP}=z0,Iu=fA.normalize,WP=oP,YA=gt,Pu=Hh,gd=PP,XA=jP,KA=Symbol("cursor");function QA(e,t,r){let n=t.comments;return n&&(delete t.comments,YA.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function ZA(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:a}=Pu.parse(e,t);if(t.cursorOffset>=0){let d=XA.findNodeAtOffset(n,t.cursorOffset,t);d&&d.node&&(t.cursorNode=d.node)}let o=QA(a,n,t),l=gd(n,t,r),p=md(l,t);if(YA.ensureAllCommentsPrinted(o),r>0){let d=p.formatted.trim();p.cursorNodeStart!==void 0&&(p.cursorNodeStart-=p.formatted.indexOf(d)),p.formatted=d+HA(t.endOfLine)}if(t.cursorOffset>=0){let d,m,y,D,b;if(t.cursorNode&&p.cursorNodeText?(d=t.locStart(t.cursorNode),m=a.slice(d,t.locEnd(t.cursorNode)),y=t.cursorOffset-d,D=p.cursorNodeStart,b=p.cursorNodeText):(d=0,m=a,y=t.cursorOffset,D=0,b=p.formatted),m===b)return{formatted:p.formatted,cursorOffset:D+y,comments:o};let v=[...m];v.splice(y,0,KA);let w=[...b],S=RP.diffArrays(v,w),k=D;for(let P of S)if(P.removed){if(P.value.includes(KA))break}else k+=P.count;return{formatted:p.formatted,cursorOffset:k,comments:o}}return{formatted:p.formatted,cursorOffset:-1,comments:o}}function yd(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function ev(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a}=t;return r=yd(e,r,-1),n=yd(e,n,0),a=yd(e,a,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:a})}function tv(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o}=ev(e,t),l=e.charAt(0)==="\uFEFF";if(l&&(e=e.slice(1),r--,n--,a--),o==="auto"&&(o=GP(e)),e.includes("\r")){let p=d=>JA(e.slice(0,Math.max(d,0)),`\r +`);r-=p(r),n-=p(n),a-=p(a),e=UP(e)}return{hasBOM:l,text:e,options:ev(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o}))}}function rv(e,t){let r=Pu.resolveParser(t);return!r.hasPragma||r.hasPragma(e)}function nv(e,t){let r,{hasBOM:n,text:a,options:o}=tv(e,Iu(t));return o.rangeStart>=o.rangeEnd&&a!==""||o.requirePragma&&!rv(a,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEndy&&p.cursorOffset<=D?p.cursorOffset-y:-1,endOfLine:"lf"}),S),P=k.formatted.trimEnd(),{cursorOffset:_}=p;_>D?_+=P.length-b.length:k.cursorOffset>=0&&(_=k.cursorOffset+y);let M=m.slice(0,y)+P+m.slice(D);if(p.endOfLine!=="lf"){let U=HA(p.endOfLine);_>=0&&U===`\r +`&&(_+=JA(M.slice(0,_),` +`)),M=M.replace(/\n/g,U)}return{formatted:M,cursorOffset:_,comments:k.comments}}(a,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!rv(a,o)&&(a=o.printer.insertPragma(a)),r=ZA(a,o)),n&&(r.formatted="\uFEFF"+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}var zP={formatWithCursor:nv,parse(e,t,r){let{text:n,options:a}=tv(e,Iu(t)),o=Pu.parse(n,a);return r&&(o.ast=WP(o.ast,a)),o},formatAST(e,t){t=Iu(t);let r=gd(e,t);return md(r,t)},formatDoc:(e,t)=>nv(VP(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=Iu(t);let{ast:r,text:n}=Pu.parse(e,t);return QA(n,r,t),gd(r,t)},printDocToString:(e,t)=>md(e,Iu(t))};let{getMaxContinuousCount:$P,getStringWidth:HP,getAlignmentSize:JP,getIndentSize:YP,skip:XP,skipWhitespace:KP,skipSpaces:QP,skipNewline:ZP,skipToLineEnd:eO,skipEverythingButNewLine:tO,skipInlineComment:rO,skipTrailingComment:nO,hasNewline:iO,hasNewlineInRange:sO,hasSpaces:aO,isNextLineEmpty:uO,isNextLineEmptyAfterIndex:oO,isPreviousLineEmpty:cO,getNextNonSpaceNonCommentCharacterIndex:lO,makeString:pO,addLeadingComment:fO,addDanglingComment:hO,addTrailingComment:dO}=ke;var mO={getMaxContinuousCount:$P,getStringWidth:HP,getAlignmentSize:JP,getIndentSize:YP,skip:XP,skipWhitespace:KP,skipSpaces:QP,skipNewline:ZP,skipToLineEnd:eO,skipEverythingButNewLine:tO,skipInlineComment:rO,skipTrailingComment:nO,hasNewline:iO,hasNewlineInRange:sO,hasSpaces:aO,isNextLineEmpty:uO,isNextLineEmptyAfterIndex:oO,isPreviousLineEmpty:cO,getNextNonSpaceNonCommentCharacterIndex:lO,makeString:pO,addLeadingComment:fO,addDanglingComment:hO,addTrailingComment:dO};let gO=["languageId"];var Xi=function(e,t){let{languageId:r}=e,n=P0(e,gO);return Object.assign(Object.assign({linguistLanguageId:r},n),t(e))},cl={},iv={exports:{}};(function(){function e(r){if(r==null)return!1;switch(r.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(r){switch(r.type){case"IfStatement":return r.alternate!=null?r.alternate:r.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return r.body}return null}iv.exports={isExpression:function(r){if(r==null)return!1;switch(r.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(r){if(r==null)return!1;switch(r.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(r){return e(r)||r!=null&&r.type==="FunctionDeclaration"},isProblematicIfStatement:function(r){var n;if(r.type!=="IfStatement"||r.alternate==null)return!1;n=r.consequent;do{if(n.type==="IfStatement"&&n.alternate==null)return!0;n=t(n)}while(n);return!1},trailingStatement:t}})();var Dd={exports:{}};(function(){var e,t,r,n,a,o;function l(p){return p<=65535?String.fromCharCode(p):String.fromCharCode(Math.floor((p-65536)/1024)+55296)+String.fromCharCode((p-65536)%1024+56320)}for(t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;Dd.exports={isDecimalDigit:function(p){return 48<=p&&p<=57},isHexDigit:function(p){return 48<=p&&p<=57||97<=p&&p<=102||65<=p&&p<=70},isOctalDigit:function(p){return p>=48&&p<=55},isWhiteSpace:function(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&r.indexOf(p)>=0},isLineTerminator:function(p){return p===10||p===13||p===8232||p===8233},isIdentifierStartES5:function(p){return p<128?n[p]:t.NonAsciiIdentifierStart.test(l(p))},isIdentifierPartES5:function(p){return p<128?a[p]:t.NonAsciiIdentifierPart.test(l(p))},isIdentifierStartES6:function(p){return p<128?n[p]:e.NonAsciiIdentifierStart.test(l(p))},isIdentifierPartES6:function(p){return p<128?a[p]:e.NonAsciiIdentifierPart.test(l(p))}}})();var sv={exports:{}};(function(){var e=Dd.exports;function t(p,d){return!(!d&&p==="yield")&&r(p,d)}function r(p,d){if(d&&function(m){switch(m){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(p))return!0;switch(p.length){case 2:return p==="if"||p==="in"||p==="do";case 3:return p==="var"||p==="for"||p==="new"||p==="try";case 4:return p==="this"||p==="else"||p==="case"||p==="void"||p==="with"||p==="enum";case 5:return p==="while"||p==="break"||p==="catch"||p==="throw"||p==="const"||p==="yield"||p==="class"||p==="super";case 6:return p==="return"||p==="typeof"||p==="delete"||p==="switch"||p==="export"||p==="import";case 7:return p==="default"||p==="finally"||p==="extends";case 8:return p==="function"||p==="continue"||p==="debugger";case 10:return p==="instanceof";default:return!1}}function n(p,d){return p==="null"||p==="true"||p==="false"||t(p,d)}function a(p,d){return p==="null"||p==="true"||p==="false"||r(p,d)}function o(p){var d,m,y;if(p.length===0||(y=p.charCodeAt(0),!e.isIdentifierStartES5(y)))return!1;for(d=1,m=p.length;d=m||!(56320<=(D=p.charCodeAt(d))&&D<=57343))return!1;y=1024*(y-55296)+(D-56320)+65536}if(!b(y))return!1;b=e.isIdentifierPartES6}return!0}sv.exports={isKeywordES5:t,isKeywordES6:r,isReservedWordES5:n,isReservedWordES6:a,isRestrictedWord:function(p){return p==="eval"||p==="arguments"},isIdentifierNameES5:o,isIdentifierNameES6:l,isIdentifierES5:function(p,d){return o(p)&&!n(p,d)},isIdentifierES6:function(p,d){return l(p)&&!a(p,d)}}})(),cl.ast=iv.exports,cl.code=Dd.exports,cl.keyword=sv.exports;let yO=cl.keyword.isIdentifierNameES5,{getLast:av,hasNewline:uv,skipWhitespace:DO,isNonEmptyArray:Ed,isNextLineEmptyAfterIndex:EO,getStringWidth:bO}=ke,{locStart:ov,locEnd:bd,hasSameLocStart:cv}=$t,lv="(?:(?=.)\\s)",CO=new RegExp("^".concat(lv,"*:")),AO=new RegExp("^".concat(lv,"*::"));function Ou(e){return e.type==="Block"||e.type==="CommentBlock"||e.type==="MultiLine"}function pv(e){return e.type==="Line"||e.type==="CommentLine"||e.type==="SingleLine"||e.type==="HashbangComment"||e.type==="HTMLOpen"||e.type==="HTMLClose"}let vO=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function fv(e){return e&&vO.has(e.type)}function Cd(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Ad(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function Lu(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}function vd(e){return Ki(e)&&e.callee.type==="Identifier"&&(e.callee.name==="async"||e.callee.name==="inject"||e.callee.name==="fakeAsync")}function xd(e){return e.type==="JSXElement"||e.type==="JSXFragment"}function hv(e){return e.kind==="get"||e.kind==="set"}function dv(e){return hv(e)||cv(e,e.value)}let xO=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),SO=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),mv=/^(?:skip|[fx]?(?:it|describe|test))$/;function Ki(e){return e&&(e.type==="CallExpression"||e.type==="OptionalCallExpression")}function Qi(e){return e&&(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")}function gv(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function yv(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function Dv(e){return e.extra?e.extra.raw:e.raw}let Ev={"==":!0,"!=":!0,"===":!0,"!==":!0},ll={"*":!0,"/":!0,"%":!0},Sd={">>":!0,">>>":!0,"<<":!0},bv={};for(let[e,t]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(let r of t)bv[r]=e;function Fd(e){return bv[e]}let wd=new WeakMap;function Bd(e){if(wd.has(e))return wd.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),wd.set(e,t),t}let Td=new WeakMap;function Cv(e){if(Td.has(e))return Td.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),Td.set(e,t),t}function Av(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function kd(e){return e&&(e.prettierIgnore||ca(e,Gr.PrettierIgnore))}let Gr={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},vv=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,a)=>!(e&Gr.Leading&&!r.leading||e&Gr.Trailing&&!r.trailing||e&Gr.Dangling&&(r.leading||r.trailing)||e&Gr.Block&&!Ou(r)||e&Gr.Line&&!pv(r)||e&Gr.First&&n!==0||e&Gr.Last&&n!==a.length-1||e&Gr.PrettierIgnore&&!Av(r)||t&&!t(r))};function ca(e,t,r){if(!e||!Ed(e.comments))return!1;let n=vv(t,r);return!n||e.comments.some(n)}function xv(e,t,r){if(!e||!Array.isArray(e.comments))return[];let n=vv(t,r);return n?e.comments.filter(n):e.comments}function Sv(e){return Ki(e)||e.type==="NewExpression"||e.type==="ImportExpression"}var He={getFunctionParameters:Bd,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,a=o=>t(o,n++);r.this&&e.call(a,"this"),Array.isArray(r.parameters)?e.each(a,"parameters"):Array.isArray(r.params)&&e.each(a,"params"),r.rest&&e.call(a,"rest")},getCallArguments:Cv,iterateCallArgumentsPath:function(e,t){let r=e.getValue();r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;let t=Bd(e);return t.length>0&&av(t).type==="RestElement"},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){let t=e.getParentNode();return e.getName()==="declaration"&&fv(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return e==="+"?"+"+t:e==="-"?"-"+t:t},hasFlowAnnotationComment:function(e){return Ed(e)&&Ou(e[0])&&AO.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Ed(e.trailingComments)&&Ou(e.trailingComments[0])&&CO.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return xd(t)?kd(t):ca(t,Gr.Leading,r=>uv(e,bd(r)))},hasNakedLeftSide:function(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Ki(e)||Qi(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"},hasNode:function e(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t))return t.some(a=>e(a,r));let n=r(t);return typeof n=="boolean"?n:Object.values(t).some(a=>e(a,r))},hasIgnoreComment:function(e){return kd(e.getValue())},hasNodeIgnoreComment:kd,identity:function(e){return e},isBinaryish:function(e){return xO.has(e.type)},isBlockComment:Ou,isCallLikeExpression:Sv,isEnabledHackPipeline:function(e){return Boolean(e.__isUsingHackPipeline)},isLineComment:pv,isPrettierIgnoreComment:Av,isCallExpression:Ki,isMemberExpression:Qi,isExportDeclaration:fv,isFlowAnnotationComment:function(e,t){let r=ov(t),n=DO(e,bd(t));return n!==!1&&e.slice(r,r+2)==="/*"&&e.slice(n,n+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Lu(r)){if(t+=1,t>1)return!0}else if(Ki(r)){for(let n of r.arguments)if(Lu(n))return!0}return!1},isFunctionNotation:dv,isFunctionOrArrowExpression:Lu,isGetterOrSetter:hv,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))},isJsxNode:xd,isLiteral:function(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"},isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return Ki(t)&&Ki(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=o=>e(o,r+1),a=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return!(a&&bO(a)>5)&&(t.type==="Literal"||t.type==="BigIntLiteral"||t.type==="DecimalLiteral"||t.type==="BooleanLiteral"||t.type==="NullLiteral"||t.type==="NumericLiteral"||t.type==="RegExpLiteral"||t.type==="StringLiteral"||t.type==="Identifier"||t.type==="ThisExpression"||t.type==="Super"||t.type==="PrivateName"||t.type==="PrivateIdentifier"||t.type==="ArgumentPlaceholder"||t.type==="Import"||(t.type==="TemplateLiteral"?t.quasis.every(o=>!o.value.raw.includes(` +`))&&t.expressions.every(n):t.type==="ObjectExpression"?t.properties.every(o=>!o.computed&&(o.shorthand||o.value&&n(o.value))):t.type==="ArrayExpression"?t.elements.every(o=>o===null||n(o)):Sv(t)?(t.type==="ImportExpression"||e(t.callee,r))&&Cv(t).every(n):Qi(t)?e(t.object,r)&&e(t.property,r):t.type!=="UnaryExpression"||t.operator!=="!"&&t.operator!=="-"?t.type==="TSNonNullExpression"&&e(t.expression,r):e(t.argument,r)))},isMemberish:function(e){return Qi(e)||e.type==="BindExpression"&&Boolean(e.object)},isNumericLiteral:Cd,isSignedNumericLiteral:function(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Cd(e.argument)},isObjectProperty:function(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")},isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"||e.type==="TSMappedType"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||dv(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!SO.has(e.type))},isSimpleNumber:gv,isSimpleTemplateLiteral:function(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length!==0&&r.every(n=>{if(ca(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(Qi(n)){let a=n;for(;Qi(a);)if(a.property.type!=="Identifier"&&a.property.type!=="Literal"&&a.property.type!=="StringLiteral"&&a.property.type!=="NumericLiteral"||(a=a.object,ca(a)))return!1;return a.type==="Identifier"||a.type==="ThisExpression"}return!1})},isStringLiteral:Ad,isStringPropSafeToUnquote:function(e,t){return t.parser!=="json"&&Ad(e.key)&&Dv(e.key).slice(1,-1)===e.key.value&&(yO(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||gv(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))},isTemplateOnItsOwnLine:function(e,t){return(e.type==="TemplateLiteral"&&yv(e)||e.type==="TaggedTemplateExpression"&&yv(e.quasi))&&!uv(t,ov(e),{backwards:!0})},isTestCall:function e(t,r){if(t.type!=="CallExpression")return!1;if(t.arguments.length===1){if(vd(t)&&r&&e(r))return Lu(t.arguments[0]);if(function(n){return n.callee.type==="Identifier"&&/^(?:before|after)(?:Each|All)$/.test(n.callee.name)&&n.arguments.length===1}(t))return vd(t.arguments[0])}else if((t.arguments.length===2||t.arguments.length===3)&&(t.callee.type==="Identifier"&&mv.test(t.callee.name)||function(n){return Qi(n.callee)&&n.callee.object.type==="Identifier"&&n.callee.property.type==="Identifier"&&mv.test(n.callee.object.name)&&(n.callee.property.name==="only"||n.callee.property.name==="skip")}(t))&&(function(n){return n.type==="TemplateLiteral"}(t.arguments[0])||Ad(t.arguments[0])))return!(t.arguments[2]&&!Cd(t.arguments[2]))&&((t.arguments.length===2?Lu(t.arguments[1]):function(n){return n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"&&n.body.type==="BlockStatement"}(t.arguments[1])&&Bd(t.arguments[1]).length<=1)||vd(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!xd(r.expression))return!1;let n=t.getParentNode();return n.type==="Program"&&n.body.length===1},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!(e.type!=="TypeAnnotation"&&e.type!=="TSTypeAnnotation"||e.typeAnnotation.type!=="FunctionTypeAnnotation"||e.static||cv(e,e.typeAnnotation))},isNextLineEmpty:(e,t)=>{let{originalText:r}=t;return EO(r,bd(e))},needsHardlineAfterDanglingComment:function(e){if(!ca(e))return!1;let t=av(xv(e,Gr.Dangling));return t&&!Ou(t)},rawText:Dv,shouldPrintComma:function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")},isBitwiseOperator:function(e){return Boolean(Sd[e])||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,t){return Fd(t)===Fd(e)&&e!=="**"&&(!Ev[e]||!Ev[t])&&!(t==="%"&&ll[e]||e==="%"&&ll[t])&&(t===e||!ll[t]||!ll[e])&&(!Sd[e]||!Sd[t])},startsWithNoLookaheadToken:function e(t,r){switch((t=function(n){for(;n.left;)n=n.left;return n}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return t.tag.type!=="FunctionExpression"&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return t.callee.type!=="FunctionExpression"&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,r);default:return!1}},getPrecedence:Fd,hasComment:ca,getComments:xv,CommentCheckFlags:Gr};let FO=Mr,{getStringWidth:Fv,getIndentSize:wO}=ke,{builders:{join:wv,hardline:_d,softline:pl,group:Bv,indent:Nd,align:BO,lineSuffixBoundary:fl,addAlignmentToDoc:TO},printer:{printDocToString:Tv},utils:{mapDoc:kO}}=ve,{isBinaryish:_O,isJestEachTemplateLiteral:NO,isSimpleTemplateLiteral:IO,hasComment:kv,isMemberExpression:PO}=He;function _v(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var la={printTemplateLiteral:function(e,t,r){let n=e.getValue();if(n.type==="TemplateLiteral"&&NO(n,e.getParentNode())){let d=function(m,y,D){let b=m.getNode(),v=b.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(v.length>1||v.some(w=>w.length>0)){y.__inJestEach=!0;let w=m.map(D,"expressions");y.__inJestEach=!1;let S=[],k=w.map(q=>"${"+Tv(q,Object.assign(Object.assign({},y),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),P=[{hasLineBreak:!1,cells:[]}];for(let q=1;qq.cells.length)),M=Array.from({length:_}).fill(0),U=[{cells:v},...P.filter(q=>q.cells.length>0)];for(let{cells:q}of U.filter(H=>!H.hasLineBreak))for(let[H,Q]of q.entries())M[H]=Math.max(M[H],Fv(Q));return S.push(fl,"`",Nd([_d,wv(_d,U.map(q=>wv(" | ",q.cells.map((H,Q)=>q.hasLineBreak?H:H+" ".repeat(M[Q]-Fv(H))))))]),_d,"`"),S}}(e,r,t);if(d)return d}let a="expressions";n.type==="TSTemplateLiteralType"&&(a="types");let o=[],l=e.map(t,a),p=IO(n);return p&&(l=l.map(d=>Tv(d,Object.assign(Object.assign({},r),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),o.push(fl,"`"),e.each(d=>{let m=d.getName();if(o.push(t()),mfunction(n,a){let o=n.getValue(),l=a();return kv(o)&&(l=Bv([Nd([pl,l]),pl])),["${",l,fl,"}"]}(r,t),"expressions")},escapeTemplateCharacters:function(e,t){return kO(e,r=>typeof r=="string"?t?r.replace(/(\\*)`/g,"$1$1\\`"):_v(r):r)},uncookTemplateElementValue:_v};let{builders:{indent:OO,softline:Nv,literalline:LO,dedentToRoot:MO}}=ve,{escapeTemplateCharacters:jO}=la;var RO=function(e,t,r){let n=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(p,d)=>"\\".repeat(d.length/2)+"`"),a=function(p){let d=p.match(/^([^\S\n]*)\S/m);return d===null?"":d[1]}(n),o=a!=="";o&&(n=n.replace(new RegExp("^".concat(a),"gm"),""));let l=jO(r(n,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",o?OO([Nv,l]):[LO,MO(l)],Nv,"`"]};let{isNonEmptyArray:VO}=ke,{builders:{indent:qO,hardline:GO,softline:UO},utils:{mapDoc:WO,replaceEndOfLine:zO,cleanDoc:$O}}=ve,{printTemplateExpressions:HO}=la;var JO=function(e,t,r){let n=e.getValue(),a=n.quasis.map(l=>l.value.raw),o=0;return function(l,p,d){if(p.quasis.length===1&&!p.quasis[0].value.raw.trim())return"``";let m=function(y,D){if(!VO(D))return y;let b=0,v=WO($O(y),w=>typeof w=="string"&&w.includes("@prettier-placeholder")?w.split(/@prettier-placeholder-(\d+)-id/).map((S,k)=>k%2==0?zO(S):(b++,D[S])):w);return D.length===b?v:null}(l,d);if(!m)throw new Error("Couldn't insert all the expressions");return["`",qO([GO,m]),UO,"`"]}(r(a.reduce((l,p,d)=>d===0?p:l+"@prettier-placeholder-"+o+++"-id"+p,""),{parser:"scss"},{stripTrailingHardline:!0}),n,HO(e,t))};let{builders:{indent:YO,join:Iv,hardline:Mu}}=ve,{escapeTemplateCharacters:XO,printTemplateExpressions:KO}=la;function QO(e){let t=[],r=!1,n=e.map(a=>a.trim());for(let[a,o]of n.entries())o!==""&&(n[a-1]===""&&r?t.push([Mu,o]):t.push(o),r=!0);return t.length===0?null:Iv(Mu,t)}var ZO=function(e,t,r){let n=e.getValue(),a=n.quasis.length;if(a===1&&n.quasis[0].value.raw.trim()==="")return"``";let o=KO(e,t),l=[];for(let p=0;p2&&D[0].trim()===""&&D[1].trim()==="",S=b>2&&D[b-1].trim()===""&&D[b-2].trim()==="",k=D.every(_=>/^\s*(?:#[^\n\r]*)?$/.test(_));if(!m&&/#[^\n\r]*$/.test(D[b-1]))return null;let P=null;P=k?QO(D):r(y,{parser:"graphql"},{stripTrailingHardline:!0}),P?(P=XO(P,!1),!d&&w&&l.push(""),l.push(P),!m&&S&&l.push("")):d||m||!w||l.push(""),v&&l.push(v)}return["`",YO([Mu,Iv(Mu,l)]),Mu,"`"]};let{builders:{indent:Pv,line:eL,hardline:tL,group:hl},utils:{mapDoc:rL}}=ve,{printTemplateExpressions:nL,uncookTemplateElementValue:iL}=la,Id=0;var sL=function(e,t,r,n,a){let{parser:o}=a,l=e.getValue(),p=Id;Id=Id+1>>>0;let d=_=>"PRETTIER_HTML_PLACEHOLDER_".concat(_,"_").concat(p,"_IN_JS"),m=l.quasis.map((_,M,U)=>M===U.length-1?_.value.cooked:_.value.cooked+d(M)).join(""),y=nL(e,t);if(y.length===0&&m.trim().length===0)return"``";let D=new RegExp(d("(\\d+)"),"g"),b=0,v=r(m,{parser:o,__onHtmlRoot(_){b=_.children.length}},{stripTrailingHardline:!0}),w=rL(v,_=>{if(typeof _!="string")return _;let M=[],U=_.split(D);for(let q=0;q1?Pv(hl(w)):hl(w),k,"`"])};let{hasComment:aL,CommentCheckFlags:Ov,isObjectProperty:Lv}=He,uL=RO,oL=JO,cL=ZO,lL=sL;function pL(e){return function(t){let r=t.getValue(),n=t.getParentNode(),a=t.getParentNode(1);return a&&r.quasis&&n.type==="JSXExpressionContainer"&&a.type==="JSXElement"&&a.openingElement.name.name==="style"&&a.openingElement.attributes.some(o=>o.name.name==="jsx")||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="Identifier"&&n.tag.name==="css"||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="MemberExpression"&&n.tag.object.name==="css"&&(n.tag.property.name==="global"||n.tag.property.name==="resolve")}(e)||function(t){let r=t.getParentNode();if(!r||r.type!=="TaggedTemplateExpression")return!1;let n=r.tag.type==="ParenthesizedExpression"?r.tag.expression:r.tag;switch(n.type){case"MemberExpression":return dl(n.object)||jv(n);case"CallExpression":return dl(n.callee)||n.callee.type==="MemberExpression"&&(n.callee.object.type==="MemberExpression"&&(dl(n.callee.object.object)||jv(n.callee.object))||n.callee.object.type==="CallExpression"&&dl(n.callee.object.callee));case"Identifier":return n.name==="css";default:return!1}}(e)||function(t){let r=t.getParentNode(),n=t.getParentNode(1);return n&&r.type==="JSXExpressionContainer"&&n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="css"}(e)||function(t){return t.match(r=>r.type==="TemplateLiteral",(r,n)=>r.type==="ArrayExpression"&&n==="elements",(r,n)=>Lv(r)&&r.key.type==="Identifier"&&r.key.name==="styles"&&n==="value",...Mv)}(e)?"css":function(t){let r=t.getValue(),n=t.getParentNode();return Rv(r,"GraphQL")||n&&(n.type==="TaggedTemplateExpression"&&(n.tag.type==="MemberExpression"&&n.tag.object.name==="graphql"&&n.tag.property.name==="experimental"||n.tag.type==="Identifier"&&(n.tag.name==="gql"||n.tag.name==="graphql"))||n.type==="CallExpression"&&n.callee.type==="Identifier"&&n.callee.name==="graphql")}(e)?"graphql":function(t){return Rv(t.getValue(),"HTML")||t.match(r=>r.type==="TemplateLiteral",(r,n)=>r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&n==="quasi")}(e)?"html":function(t){return t.match(r=>r.type==="TemplateLiteral",(r,n)=>Lv(r)&&r.key.type==="Identifier"&&r.key.name==="template"&&n==="value",...Mv)}(e)?"angular":function(t){let r=t.getValue(),n=t.getParentNode();return n&&n.type==="TaggedTemplateExpression"&&r.quasis.length===1&&n.tag.type==="Identifier"&&(n.tag.name==="md"||n.tag.name==="markdown")}(e)?"markdown":void 0}let Mv=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function dl(e){return e.type==="Identifier"&&e.name==="styled"}function jv(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Rv(e,t){return aL(e,Ov.Block|Ov.Leading,r=>{let{value:n}=r;return n===" ".concat(t," ")})}var fL=function(e,t,r,n){let a=e.getValue();if(a.type!=="TemplateLiteral"||function(l){let{quasis:p}=l;return p.some(d=>{let{value:{cooked:m}}=d;return m===null})}(a))return;let o=pL(e);return o?o==="markdown"?uL(e,t,r):o==="css"?oL(e,t,r):o==="graphql"?cL(e,t,r):o==="html"||o==="angular"?lL(e,t,r,n,{parser:o}):void 0:void 0};let{isBlockComment:hL}=He,dL=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),pa=e=>{for(let t of e.quasis)delete t.value};function Vv(e,t,r){if(e.type==="Program"&&delete t.sourceType,e.type!=="BigIntLiteral"&&e.type!=="BigIntLiteralTypeAnnotation"||t.value&&(t.value=t.value.toLowerCase()),e.type!=="BigIntLiteral"&&e.type!=="Literal"||t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if(e.type!=="Property"&&e.type!=="ObjectProperty"&&e.type!=="MethodDefinition"&&e.type!=="ClassProperty"&&e.type!=="ClassMethod"&&e.type!=="PropertyDefinition"&&e.type!=="TSDeclareMethod"&&e.type!=="TSPropertySignature"&&e.type!=="ObjectTypeProperty"||typeof e.key!="object"||!e.key||e.key.type!=="Literal"&&e.key.type!=="NumericLiteral"&&e.key.type!=="StringLiteral"&&e.key.type!=="Identifier"||delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(a=>a.name.name==="jsx"))for(let{type:a,expression:o}of t.children)a==="JSXExpressionContainer"&&o.type==="TemplateLiteral"&&pa(o);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&pa(t.value.expression),e.type==="JSXAttribute"&&e.value&&e.value.type==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let a=e.expression.arguments[0].properties;for(let[o,l]of t.expression.arguments[0].properties.entries())switch(a[o].key.name){case"styles":l.value.type==="ArrayExpression"&&pa(l.value.elements[0]);break;case"template":l.value.type==="TemplateLiteral"&&pa(l.value)}}return e.type!=="TaggedTemplateExpression"||e.tag.type!=="MemberExpression"&&(e.tag.type!=="Identifier"||e.tag.name!=="gql"&&e.tag.name!=="graphql"&&e.tag.name!=="css"&&e.tag.name!=="md"&&e.tag.name!=="markdown"&&e.tag.name!=="html")&&e.tag.type!=="CallExpression"||pa(t.quasi),e.type==="TemplateLiteral"&&(e.leadingComments&&e.leadingComments.some(o=>hL(o)&&["GraphQL","HTML"].some(l=>o.value===" ".concat(l," ")))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&pa(t),e.type==="InterpreterDirective"&&(t.value=t.value.trimEnd()),e.type!=="TSIntersectionType"&&e.type!=="TSUnionType"||e.types.length!==1?void 0:t.types[0]}Vv.ignoredProperties=dL;var mL=Vv,Zi={},Pd={exports:{}};let qv=e=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(t.length===0)return;let r=t.filter(n=>n===`\r +`).length;return r>t.length-r?`\r +`:` +`};function Od(){let e=Uc;return Od=function(){return e},e}function Ld(){let e=function(t){return t&&t.__esModule?t:{default:t}}(Pd.exports);return Ld=function(){return e},e}Pd.exports=qv,Pd.exports.graceful=e=>typeof e=="string"&&qv(e)||` +`,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.extract=function(e){let t=e.match(Gv);return t?t[0].trimLeft():""},Zi.strip=function(e){let t=e.match(Gv);return t&&t[0]?e.substring(t[0].length):e},Zi.parse=function(e){return $v(e).pragmas},Zi.parseWithComments=$v,Zi.print=function(e){let{comments:t="",pragmas:r={}}=e,n=(0,Ld().default)(t)||Od().EOL,a=" *",o=Object.keys(r),l=o.map(d=>Hv(d,r[d])).reduce((d,m)=>d.concat(m),[]).map(d=>" * "+d+n).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(r[o[0]])){let d=r[o[0]];return"".concat("/**"," ").concat(Hv(o[0],d)[0]).concat(" */")}}let p=t.split(n).map(d=>"".concat(a," ").concat(d)).join(n)+n;return"/**"+n+(t?p:"")+(t&&o.length?a+n:"")+l+" */"};let gL=/\*\/$/,yL=/^\/\*\*/,Gv=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,DL=/(^|\s+)\/\/([^\r\n]*)/g,Uv=/^(\r?\n)+/,EL=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wv=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,bL=/(\r?\n|^) *\* ?/g,zv=[];function $v(e){let t=(0,Ld().default)(e)||Od().EOL;e=e.replace(yL,"").replace(gL,"").replace(bL,"$1");let r="";for(;r!==e;)r=e,e=e.replace(EL,"".concat(t,"$1 $2").concat(t));e=e.replace(Uv,"").trimRight();let n=Object.create(null),a=e.replace(Wv,"").replace(Uv,"").trimRight(),o;for(;o=Wv.exec(e);){let l=o[2].replace(DL,"");typeof n[o[1]]=="string"||Array.isArray(n[o[1]])?n[o[1]]=zv.concat(n[o[1]],l):n[o[1]]=l}return{comments:a,pragmas:n}}function Hv(e,t){return zv.concat(t).map(r=>"@".concat(e," ").concat(r).trim())}let{parseWithComments:CL,strip:AL,extract:vL,print:xL}=Zi,{getShebang:SL}=ke,{normalizeEndOfLine:FL}=z0;function Jv(e){let t=SL(e);t&&(e=e.slice(t.length+1));let r=vL(e),{pragmas:n,comments:a}=CL(r);return{shebang:t,text:e,pragmas:n,comments:a}}var Yv={hasPragma:function(e){let t=Object.keys(Jv(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:n,comments:a}=Jv(e),o=AL(r),l=xL({pragmas:Object.assign({format:""},n),comments:a.trimStart()});return(t?"".concat(t,` +`):"")+FL(l)+(o.startsWith(` +`)?` +`:` + +`)+o}};let{getLast:Xv,hasNewline:wL,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Md,getNextNonSpaceNonCommentCharacter:es,hasNewlineInRange:BL,addLeadingComment:Bt,addTrailingComment:Jt,addDanglingComment:zn,getNextNonSpaceNonCommentCharacterIndex:TL,isNonEmptyArray:jd}=ke,{isBlockComment:Kv,getFunctionParameters:ml,isPrettierIgnoreComment:Rd,isJsxNode:kL,hasFlowShorthandAnnotationComment:_L,hasFlowAnnotationComment:Qv,hasIgnoreComment:NL,isCallLikeExpression:IL,getCallArguments:PL,isCallExpression:Zv,isMemberExpression:OL,isObjectProperty:e2,getComments:t2,CommentCheckFlags:r2}=He,{locStart:n2,locEnd:Ur}=$t;function fa(e,t){let r=(e.body||e.properties).find(n=>{let{type:a}=n;return a!=="EmptyStatement"});r?Bt(r,t):zn(e,t)}function Vd(e,t){e.type==="BlockStatement"?fa(e,t):Bt(e,t)}function LL(e){let{comment:t,followingNode:r}=e;return!(!r||!f2(t))&&(Bt(r,t),!0)}function qd(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e;return!n||n.type!=="IfStatement"||!a?!1:es(o,t,Ur)===")"?(Jt(r,t),!0):r===n.consequent&&a===n.alternate?(r.type==="BlockStatement"?Jt(r,t):zn(n,t),!0):a.type==="BlockStatement"?(fa(a,t),!0):a.type==="IfStatement"?(Vd(a.consequent,t),!0):n.consequent===a&&(Bt(a,t),!0)}function Gd(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e;return!n||n.type!=="WhileStatement"||!a?!1:es(o,t,Ur)===")"?(Jt(r,t),!0):a.type==="BlockStatement"?(fa(a,t),!0):n.body===a&&(Bt(a,t),!0)}function i2(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a}=e;return!(!n||n.type!=="TryStatement"&&n.type!=="CatchClause"||!a)&&(n.type==="CatchClause"&&r?(Jt(r,t),!0):a.type==="BlockStatement"?(fa(a,t),!0):a.type==="TryStatement"?(Vd(a.finalizer,t),!0):a.type==="CatchClause"&&(Vd(a.body,t),!0))}function ML(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!OL(r)||!n||n.type!=="Identifier")&&(Bt(r,t),!0)}function jL(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e,l=r&&!BL(o,Ur(r),n2(t));return!(r&&l||!n||n.type!=="ConditionalExpression"&&n.type!=="TSConditionalType"||!a)&&(Bt(a,t),!0)}function RL(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!(!e2(n)||!n.shorthand||n.key!==r||n.value.type!=="AssignmentPattern")&&(Jt(n.value.left,t),!0)}function s2(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a}=e;if(n&&(n.type==="ClassDeclaration"||n.type==="ClassExpression"||n.type==="DeclareClass"||n.type==="DeclareInterface"||n.type==="InterfaceDeclaration"||n.type==="TSInterfaceDeclaration")){if(jd(n.decorators)&&(!a||a.type!=="Decorator"))return Jt(Xv(n.decorators),t),!0;if(n.body&&a===n.body)return fa(n.body,t),!0;if(a){for(let o of["implements","extends","mixins"])if(n[o]&&a===n[o][0])return!r||r!==n.id&&r!==n.typeParameters&&r!==n.superClass?zn(n,t,o):Jt(r,t),!0}}return!1}function a2(e){let{comment:t,precedingNode:r,enclosingNode:n,text:a}=e;return(n&&r&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&es(a,r,Ur)!==":"||!(!r||!n||r.type!=="Decorator"||n.type!=="ClassMethod"&&n.type!=="ClassProperty"&&n.type!=="PropertyDefinition"&&n.type!=="TSAbstractPropertyDefinition"&&n.type!=="TSAbstractMethodDefinition"&&n.type!=="TSDeclareMethod"&&n.type!=="MethodDefinition"))&&(Jt(r,t),!0)}function VL(e){let{comment:t,precedingNode:r,enclosingNode:n,text:a}=e;return es(a,t,Ur)==="("&&!(!r||!n||n.type!=="FunctionDeclaration"&&n.type!=="FunctionExpression"&&n.type!=="ClassMethod"&&n.type!=="MethodDefinition"&&n.type!=="ObjectMethod")&&(Jt(r,t),!0)}function qL(e){let{comment:t,enclosingNode:r,text:n}=e;if(!r||r.type!=="ArrowFunctionExpression")return!1;let a=TL(n,t,Ur);return a!==!1&&n.slice(a,a+2)==="=>"&&(zn(r,t),!0)}function GL(e){let{comment:t,enclosingNode:r,text:n}=e;return es(n,t,Ur)===")"&&(r&&(p2(r)&&ml(r).length===0||IL(r)&&PL(r).length===0)?(zn(r,t),!0):!(!r||r.type!=="MethodDefinition"&&r.type!=="TSAbstractMethodDefinition"||ml(r.value).length!==0)&&(zn(r.value,t),!0))}function u2(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&a&&a.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&p2(n)&&es(o,t,Ur)===")")return Jt(r,t),!0;if(n&&n.type==="FunctionDeclaration"&&a&&a.type==="BlockStatement"){let l=(()=>{let p=ml(n);if(p.length>0)return Md(o,Ur(Xv(p)));let d=Md(o,Ur(n.id));return d!==!1&&Md(o,d+1)})();if(n2(t)>l)return fa(a,t),!0}return!1}function o2(e){let{comment:t,enclosingNode:r}=e;return!(!r||r.type!=="ImportSpecifier")&&(Bt(r,t),!0)}function c2(e){let{comment:t,enclosingNode:r}=e;return!(!r||r.type!=="LabeledStatement")&&(Bt(r,t),!0)}function UL(e){let{comment:t,enclosingNode:r}=e;return!(!r||r.type!=="ContinueStatement"&&r.type!=="BreakStatement"||r.label)&&(Jt(r,t),!0)}function WL(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!(Zv(n)&&r&&n.callee===r&&n.arguments.length>0)&&(Bt(n.arguments[0],t),!0)}function zL(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a}=e;return!n||n.type!=="UnionTypeAnnotation"&&n.type!=="TSUnionType"?(a&&(a.type==="UnionTypeAnnotation"||a.type==="TSUnionType")&&Rd(t)&&(a.types[0].prettierIgnore=!0,t.unignore=!0),!1):(Rd(t)&&(a.prettierIgnore=!0,t.unignore=!0),!!r&&(Jt(r,t),!0))}function $L(e){let{comment:t,enclosingNode:r}=e;return!!e2(r)&&(Bt(r,t),!0)}function Ud(e){let{comment:t,enclosingNode:r,followingNode:n,ast:a,isLastComment:o}=e;return a&&a.body&&a.body.length===0?(o?zn(a,t):Bt(a,t),!0):r&&r.type==="Program"&&r.body.length===0&&!jd(r.directives)?(o?zn(r,t):Bt(r,t),!0):!(!n||n.type!=="Program"||n.body.length!==0||!r||r.type!=="ModuleExpression")&&(zn(n,t),!0)}function HL(e){let{comment:t,enclosingNode:r}=e;return!(!r||r.type!=="ForInStatement"&&r.type!=="ForOfStatement")&&(Bt(r,t),!0)}function JL(e){let{comment:t,precedingNode:r,enclosingNode:n,text:a}=e;return!!(r&&r.type==="ImportSpecifier"&&n&&n.type==="ImportDeclaration"&&wL(a,Ur(t)))&&(Jt(r,t),!0)}function YL(e){let{comment:t,enclosingNode:r}=e;return!(!r||r.type!=="AssignmentPattern")&&(Bt(r,t),!0)}function XL(e){let{comment:t,enclosingNode:r}=e;return!(!r||r.type!=="TypeAlias")&&(Bt(r,t),!0)}function KL(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!r||r.type!=="VariableDeclarator"&&r.type!=="AssignmentExpression"||!n||n.type!=="ObjectExpression"&&n.type!=="ArrayExpression"&&n.type!=="TemplateLiteral"&&n.type!=="TaggedTemplateExpression"&&!Kv(t))&&(Bt(n,t),!0)}function QL(e){let{comment:t,enclosingNode:r,followingNode:n,text:a}=e;return!(n||!r||r.type!=="TSMethodSignature"&&r.type!=="TSDeclareFunction"&&r.type!=="TSAbstractMethodDefinition"||es(a,t,Ur)!==";")&&(Jt(r,t),!0)}function l2(e){let{comment:t,enclosingNode:r,followingNode:n}=e;if(Rd(t)&&r&&r.type==="TSMappedType"&&n&&n.type==="TSTypeParameter"&&n.constraint)return r.prettierIgnore=!0,t.unignore=!0,!0}function ZL(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a}=e;return!(!n||n.type!=="TSMappedType")&&(a&&a.type==="TSTypeParameter"&&a.name?(Bt(a.name,t),!0):!(!r||r.type!=="TSTypeParameter"||!r.constraint)&&(Jt(r.constraint,t),!0))}function p2(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}function f2(e){return Kv(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}var h2={handleOwnLineComment:function(e){return[l2,u2,ML,qd,Gd,i2,s2,o2,HL,zL,Ud,JL,YL,a2,c2].some(t=>t(e))},handleEndOfLineComment:function(e){return[LL,u2,jL,o2,qd,Gd,i2,s2,c2,WL,$L,Ud,XL,KL].some(t=>t(e))},handleRemainingComment:function(e){return[l2,qd,Gd,RL,GL,a2,Ud,qL,VL,ZL,UL,QL].some(t=>t(e))},isTypeCastComment:f2,getCommentChildNodes:function(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&ml(e.value).length===0&&!e.value.returnType&&!jd(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){let t=e.getValue(),r=e.getParentNode();return(t&&(kL(t)||_L(t)||Zv(r)&&(n=>Qv(t2(n,r2.Leading))||Qv(t2(n,r2.Trailing)))(t))||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType"||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!NL(e)||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType")}};let eM=Mr,{getFunctionParameters:tM,getLeftSidePathName:rM,hasFlowShorthandAnnotationComment:nM,hasNakedLeftSide:iM,hasNode:d2,isBitwiseOperator:sM,startsWithNoLookaheadToken:m2,shouldFlatten:aM,getPrecedence:g2,isCallExpression:y2,isMemberExpression:uM,isObjectProperty:oM}=He;function Wd(e,t){let r=e.getParentNode();if(!r)return!1;let n=e.getName(),a=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(o){return o.type==="ObjectExpression"}(a)&&ju(e))return!0;if(function(o){return o.type==="BlockStatement"||o.type==="BreakStatement"||o.type==="ClassBody"||o.type==="ClassDeclaration"||o.type==="ClassMethod"||o.type==="ClassProperty"||o.type==="PropertyDefinition"||o.type==="ClassPrivateProperty"||o.type==="ContinueStatement"||o.type==="DebuggerStatement"||o.type==="DeclareClass"||o.type==="DeclareExportAllDeclaration"||o.type==="DeclareExportDeclaration"||o.type==="DeclareFunction"||o.type==="DeclareInterface"||o.type==="DeclareModule"||o.type==="DeclareModuleExports"||o.type==="DeclareVariable"||o.type==="DoWhileStatement"||o.type==="EnumDeclaration"||o.type==="ExportAllDeclaration"||o.type==="ExportDefaultDeclaration"||o.type==="ExportNamedDeclaration"||o.type==="ExpressionStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement"||o.type==="ForStatement"||o.type==="FunctionDeclaration"||o.type==="IfStatement"||o.type==="ImportDeclaration"||o.type==="InterfaceDeclaration"||o.type==="LabeledStatement"||o.type==="MethodDefinition"||o.type==="ReturnStatement"||o.type==="SwitchStatement"||o.type==="ThrowStatement"||o.type==="TryStatement"||o.type==="TSDeclareFunction"||o.type==="TSEnumDeclaration"||o.type==="TSImportEqualsDeclaration"||o.type==="TSInterfaceDeclaration"||o.type==="TSModuleDeclaration"||o.type==="TSNamespaceExportDeclaration"||o.type==="TypeAlias"||o.type==="VariableDeclaration"||o.type==="WhileStatement"||o.type==="WithStatement"}(a))return!1;if(t.parser!=="flow"&&nM(e.getValue()))return!0;if(a.type==="Identifier")return!!(a.extra&&a.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(a.name))||n==="left"&&a.name==="async"&&r.type==="ForOfStatement"&&!r.await;switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(a.type==="ArrowFunctionExpression"||a.type==="AssignmentExpression"||a.type==="AwaitExpression"||a.type==="BinaryExpression"||a.type==="ConditionalExpression"||a.type==="LogicalExpression"||a.type==="NewExpression"||a.type==="ObjectExpression"||a.type==="ParenthesizedExpression"||a.type==="SequenceExpression"||a.type==="TaggedTemplateExpression"||a.type==="UnaryExpression"||a.type==="UpdateExpression"||a.type==="YieldExpression"||a.type==="TSNonNullExpression"))return!0;break;case"ExportDefaultDeclaration":return D2(e,t)||a.type==="SequenceExpression";case"Decorator":if(n==="expression"){let o=!1,l=!1,p=a;for(;p;)switch(p.type){case"MemberExpression":l=!0,p=p.object;break;case"CallExpression":if(l||o)return t.parser!=="typescript";o=!0,p=p.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break;case"ExpressionStatement":if(m2(a,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&a.type!=="SequenceExpression"&&m2(a,!1))return!0}switch(a.type){case"UpdateExpression":if(r.type==="UnaryExpression")return a.prefix&&(a.operator==="++"&&r.operator==="+"||a.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return a.operator===r.operator&&(a.operator==="+"||a.operator==="-");case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||a.operator==="in"&&function(o){let l=0,p=o.getValue();for(;p;){let d=o.getParentNode(l++);if(d&&d.type==="ForStatement"&&d.init===p)return!0;p=d}return!1}(e))return!0;if(a.operator==="|>"&&a.extra&&a.extra.parenthesized){let o=e.getParentNode(1);if(o.type==="BinaryExpression"&&o.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"TSAsExpression":return a.type!=="TSAsExpression";case"ConditionalExpression":return a.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(a.type==="TSTypeAssertion"||a.type==="TSAsExpression");case"LogicalExpression":if(a.type==="LogicalExpression")return r.operator!==a.operator;case"BinaryExpression":{let{operator:o,type:l}=a;if(!o&&l!=="TSTypeAssertion")return!0;let p=g2(o),d=r.operator,m=g2(d);return m>p||n==="right"&&m===p||m===p&&!aM(d,o)||(m");default:return!1}case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((r.type==="TSUnionType"||r.type==="TSIntersectionType")&&r.types.length>1&&(!a.types||a.types.length>1))return!0;case"TSInferType":if(a.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&e.getParentNode(1).type.startsWith("TSJSDoc");case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation"||n==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation"||n==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let o=r.type==="NullableTypeAnnotation"?e.getParentNode(1):r;return o.type==="UnionTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="ArrayTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||o.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&tM(a).some(l=>l.typeAnnotation&&l.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&r.type==="IndexedAccessType";case"TypeofTypeAnnotation":return n==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof a.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){let o=e.getParentNode(1);return o.type==="Program"||o.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof a.value=="number";case"AssignmentExpression":{let o=e.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"||(n!=="key"||r.type!=="ClassProperty"&&r.type!=="PropertyDefinition"||!r.computed)&&(n!=="init"&&n!=="update"||r.type!=="ForStatement")&&(r.type==="ExpressionStatement"?a.left.type==="ObjectPattern":(n!=="key"||r.type!=="TSPropertySignature")&&r.type!=="AssignmentExpression"&&(r.type!=="SequenceExpression"||!o||o.type!=="ForStatement"||o.init!==r&&o.update!==r)&&(n!=="value"||r.type!=="Property"||!o||o.type!=="ObjectPattern"||!o.properties.includes(r))&&r.type!=="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"BinaryExpression":return r.operator!=="|>"||a.extra&&a.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":return r.type==="NewExpression"&&n==="callee";case"OptionalMemberExpression":case"OptionalCallExpression":{let o=e.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&o.type==="MemberExpression"&&o.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")){let o=a;for(;o;)switch(o.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":o=o.object;break;case"TaggedTemplateExpression":o=o.tag;break;case"TSNonNullExpression":o=o.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&uM(r);case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||r.type==="ObjectProperty"&&(!a.extra||!a.extra.parenthesized)||r.type==="ArrayExpression"||y2(r)&&r.arguments[n]===a||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&!y2(r)&&!oM(r)&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&function(o){return d2(o,l=>l.type==="ObjectTypeAnnotation"&&d2(l,p=>p.type==="FunctionTypeAnnotation"||void 0)||void 0)}(a)}return!1}function ju(e){let t=e.getValue(),r=e.getParentNode(),n=e.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===t&&r.arguments.length-1===n)return e.callParent(ju);break;case"ObjectProperty":if(n==="value"){let a=e.getParentNode(1);return eM(a.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(ju);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(ju);break;case"UnaryExpression":if(r.prefix)return e.callParent(ju)}return!1}function D2(e,t){let r=e.getValue(),n=e.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Wd(e,t):!(!iM(r)||n.type!=="ExportDefaultDeclaration"&&Wd(e,t))&&e.call(a=>D2(a,t),...rM(e,r))}var ha=Wd,E2=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};let{builders:{join:b2,line:C2,group:cM,softline:A2,indent:lM}}=ve;var pM={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,r){let n=e.getValue();if(t.__onHtmlBindingRoot&&e.getName()===null&&t.__onHtmlBindingRoot(n,t),n.type==="File")return t.__isVueForBindingLeft?e.call(a=>{let o=b2([",",C2],a.map(r,"params")),{params:l}=a.getValue();return l.length===1?o:["(",lM([A2,cM(o)]),A2,")"]},"program","body",0):t.__isVueBindings?e.call(a=>b2([",",C2],a.map(r,"params")),"program","body",0):void 0}};let{printComments:fM}=gt,{getLast:hM}=ke,{builders:{join:dM,line:v2,softline:gl,group:_n,indent:zd,align:mM,ifBreak:gM,indentIfBreak:yM},utils:{cleanDoc:DM,getDocParts:EM,isConcat:bM}}=ve,{hasLeadingOwnLineComment:CM,isBinaryish:x2,isJsxNode:S2,shouldFlatten:F2,hasComment:w2,CommentCheckFlags:B2,isCallExpression:T2,isMemberExpression:AM,isObjectProperty:vM,isEnabledHackPipeline:k2}=He,xM=0;function $d(e,t,r,n,a){let o=e.getValue();if(!x2(o))return[_n(t())];let l=[];F2(o.operator,o.left.operator)?l=e.call(S=>$d(S,t,r,!0,a),"left"):l.push(_n(t("left")));let p=yl(o),d=(o.operator==="|>"||o.type==="NGPipeExpression"||o.operator==="|"&&r.parser==="__vue_expression")&&!CM(r.originalText,o.right),m=o.type==="NGPipeExpression"?"|":o.operator,y=o.type==="NGPipeExpression"&&o.arguments.length>0?_n(zd([gl,": ",dM([gl,":",gM(" ")],e.map(t,"arguments").map(S=>mM(2,_n(S))))])):"",D;if(p)D=[m," ",t("right"),y];else{let S=k2(r)&&m==="|>"?e.call(k=>$d(k,t,r,!0,a),"right"):t("right");D=[d?v2:"",m,d?" ":v2,S,y]}let b=e.getParentNode(),v=w2(o.left,B2.Trailing|B2.Line),w=v||!(a&&o.type==="LogicalExpression")&&b.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;if(l.push(d?"":" ",w?_n(D,{shouldBreak:v}):D),n&&w2(o)){let S=DM(fM(e,l,r));return bM(S)||S.type==="fill"?EM(S):[S]}return l}function yl(e){return e.type==="LogicalExpression"&&(e.right.type==="ObjectExpression"&&e.right.properties.length>0||e.right.type==="ArrayExpression"&&e.right.elements.length>0||!!S2(e.right))}var Hd={printBinaryishExpression:function(e,t,r){let n=e.getValue(),a=e.getParentNode(),o=e.getParentNode(1),l=n!==a.body&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),p=k2(t)&&n.operator==="|>",d=$d(e,r,t,!1,l);if(l)return d;if(p)return _n(d);if(T2(a)&&a.callee===n||a.type==="UnaryExpression"||AM(a)&&!a.computed)return _n([zd([gl,...d]),gl]);let m=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&o.type==="JSXAttribute"||n.operator!=="|"&&a.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&t.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&o.type==="NGMicrosyntax"&&o.body.length===1)||n===a.body&&a.type==="ArrowFunctionExpression"||n!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&o.type!=="ReturnStatement"&&o.type!=="ThrowStatement"&&!T2(o)||a.type==="TemplateLiteral",y=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractPropertyDefinition"||a.type==="ClassPrivateProperty"||vM(a),D=x2(n.left)&&F2(n.operator,n.left.operator);if(m||yl(n)&&!D||!yl(n)&&y)return _n(d);if(d.length===0)return"";let b=S2(n.right),v=d.findIndex(M=>typeof M!="string"&&!Array.isArray(M)&&M.type==="group"),w=d.slice(0,v===-1?1:v+1),S=d.slice(w.length,b?-1:void 0),k=Symbol("logicalChain-"+ ++xM),P=_n([...w,zd(S)],{id:k});if(!b)return P;let _=hM(d);return _n([P,yM(_,{groupId:k})])},shouldInlineLogicalExpression:yl};let{builders:{join:SM,line:_2,group:FM}}=ve,{hasNode:wM,hasComment:BM,getComments:TM}=He,{printBinaryishExpression:kM}=Hd;function N2(e,t,r){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var _M={printAngular:function(e,t,r){let n=e.getValue();if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),BM(n.node)?" //"+TM(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return kM(e,t,r);case"NGChainedExpression":return FM(SM([";",_2],e.map(a=>function(o){return wM(o.getValue(),l=>{switch(l.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(a)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[n.prefix,": ",n.value.trim()];case"NGMicrosyntax":return e.map((a,o)=>[o===0?"":N2(a.getValue(),o,n)?" ":[";",_2],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let a=e.getName(),o=e.getParentNode(),l=N2(n,a,o)||(a===1&&(n.key.name==="then"||n.key.name==="else")||a===2&&n.key.name==="else"&&o.body[a-1].type==="NGMicrosyntaxKeyedExpression"&&o.body[a-1].key.name==="then")&&o.body[0].type==="NGMicrosyntaxExpression";return[r("key"),l?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Error("Unknown Angular node type: ".concat(JSON.stringify(n.type),"."))}}};let{printComments:I2,printDanglingComments:P2}=gt,{builders:{line:Dl,hardline:pt,softline:Yt,group:ts,indent:rs,conditionalGroup:NM,fill:IM,ifBreak:Jd,lineSuffixBoundary:O2,join:L2},utils:{willBreak:M2}}=ve,{getLast:Ru,getPreferredQuote:PM}=ke,{isJsxNode:El,rawText:Vu,isLiteral:bl,isCallExpression:j2,isStringLiteral:Yd,isBinaryish:OM,hasComment:Wr,CommentCheckFlags:ns,hasNodeIgnoreComment:LM}=He,MM=ha,{willPrintOwnComments:jM}=h2,Xd=e=>e===""||e===Dl||e===pt||e===Yt;function RM(e,t,r){let n=e.getValue();if(n.type==="JSXElement"&&function(_){if(_.children.length===0)return!0;if(_.children.length>1)return!1;let M=_.children[0];return bl(M)&&!qu(M)}(n))return[r("openingElement"),r("closingElement")];let a=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),o=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[a,...e.map(r,"children"),o];n.children=n.children.map(_=>function(M){return M.type==="JSXExpressionContainer"&&bl(M.expression)&&M.expression.value===" "&&!Wr(M.expression)}(_)?{type:"JSXText",value:" ",raw:" "}:_);let l=n.children.some(El),p=n.children.filter(_=>_.type==="JSXExpressionContainer").length>1,d=n.type==="JSXElement"&&n.openingElement.attributes.length>1,m=M2(a)||l||d||p,y=e.getParentNode().rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',b=y?" ":Jd([D,Yt]," "),v=function(_,M,U,q,H){let Q=[];return _.each((te,Ee,ne)=>{let pe=te.getValue();if(bl(pe)){let Be=Vu(pe);if(qu(pe)){let Se=Be.split(Cl);if(Se[0]===""){if(Q.push(""),Se.shift(),/\n/.test(Se[0])){let Dt=ne[Ee+1];Q.push(V2(H,Se[1],pe,Dt))}else Q.push(q);Se.shift()}let st;if(Ru(Se)===""&&(Se.pop(),st=Se.pop()),Se.length===0)return;for(let[Dt,lr]of Se.entries())Dt%2==1?Q.push(Dl):Q.push(lr);if(st!==void 0)if(/\n/.test(st)){let Dt=ne[Ee+1];Q.push(V2(H,Ru(Q),pe,Dt))}else Q.push(q);else{let Dt=ne[Ee+1];Q.push(R2(H,Ru(Q),pe,Dt))}}else/\n/.test(Be)?Be.match(/\n/g).length>1&&Q.push("",pt):Q.push("",q)}else{let Be=U();Q.push(Be);let Se=ne[Ee+1];if(Se&&qu(Se)){let st=GM(Vu(Se)).split(Cl)[0];Q.push(R2(H,st,pe,Se))}else Q.push(pt)}},"children"),Q}(e,0,r,b,n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt"),w=n.children.some(_=>qu(_));for(let _=v.length-2;_>=0;_--){let M=v[_]===""&&v[_+1]==="",U=v[_]===pt&&v[_+1]===""&&v[_+2]===pt,q=(v[_]===Yt||v[_]===pt)&&v[_+1]===""&&v[_+2]===b,H=v[_]===b&&v[_+1]===""&&(v[_+2]===Yt||v[_+2]===pt),Q=v[_]===b&&v[_+1]===""&&v[_+2]===b,te=v[_]===Yt&&v[_+1]===""&&v[_+2]===pt||v[_]===pt&&v[_+1]===""&&v[_+2]===Yt;U&&w||M||q||Q||te?v.splice(_,2):H&&v.splice(_+1,2)}for(;v.length>0&&Xd(Ru(v));)v.pop();for(;v.length>1&&Xd(v[0])&&Xd(v[1]);)v.shift(),v.shift();let S=[];for(let[_,M]of v.entries()){if(M===b){if(_===1&&v[_-1]===""){if(v.length===2){S.push(D);continue}S.push([D,pt]);continue}if(_===v.length-1){S.push(D);continue}if(v[_-1]===""&&v[_-2]===pt){S.push(D);continue}}S.push(M),M2(M)&&(m=!0)}let k=w?IM(S):ts(S,{shouldBreak:!0});if(y)return k;let P=ts([a,rs([pt,k]),pt,o]);return m?P:NM([ts([a,...v,o]),P])}function R2(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?t.length===1?Yt:pt:Yt}function V2(e,t,r,n){return e?pt:t.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?pt:Yt:pt}function VM(e,t,r){return function(n,a,o){let l=n.getParentNode();if(!l||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[l.type])return a;let p=n.match(void 0,m=>m.type==="ArrowFunctionExpression",j2,m=>m.type==="JSXExpressionContainer"),d=MM(n,o);return ts([d?"":Jd("("),rs([Yt,a]),Yt,d?"":Jd(")")],{shouldBreak:p})}(e,I2(e,RM(e,t,r),t),t)}function q2(e,t,r){let n=e.getValue();return["{",e.call(a=>{let o=["...",r()],l=a.getValue();return Wr(l)&&jM(a)?[rs([Yt,I2(a,o,t)]),Yt]:o},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}let Cl=new RegExp(`([ +\r ]+)`),qM=new RegExp(`[^ +\r ]`),GM=e=>e.replace(new RegExp("(?:^"+Cl.source+"|"+Cl.source+"$)"),"");function qu(e){return bl(e)&&(qM.test(Vu(e))||!/\n/.test(Vu(e)))}var UM={hasJsxIgnoreComment:function(e){let t=e.getValue(),r=e.getParentNode();if(!(r&&t&&El(t)&&El(r)))return!1;let n=null;for(let a=r.children.indexOf(t);a>0;a--){let o=r.children[a-1];if(o.type!=="JSXText"||qu(o)){n=o;break}}return n&&n.type==="JSXExpressionContainer"&&n.expression.type==="JSXEmptyExpression"&&LM(n.expression)},printJsx:function(e,t,r){let n=e.getValue();if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return function(a,o,l){let p=a.getValue(),d=[];if(d.push(l("name")),p.value){let m;if(Yd(p.value)){let y=Vu(p.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:D,quote:b,regex:v}=PM(y,o.jsxSingleQuote?"'":'"');y=y.replace(v,D),m=[b,y,b]}else m=l("value");d.push("=",m)}return d}(e,t,r);case"JSXIdentifier":return String(n.name);case"JSXNamespacedName":return L2(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return L2(".",[r("object"),r("property")]);case"JSXSpreadAttribute":return q2(e,t,r);case"JSXSpreadChild":return q2(e,t,r);case"JSXExpressionContainer":return function(a,o,l){let p=a.getValue(),d=a.getParentNode(0),m=p.expression.type==="JSXEmptyExpression"||!Wr(p.expression)&&(p.expression.type==="ArrayExpression"||p.expression.type==="ObjectExpression"||p.expression.type==="ArrowFunctionExpression"||j2(p.expression)||p.expression.type==="FunctionExpression"||p.expression.type==="TemplateLiteral"||p.expression.type==="TaggedTemplateExpression"||p.expression.type==="DoExpression"||El(d)&&(p.expression.type==="ConditionalExpression"||OM(p.expression)));return ts(m?["{",l("expression"),O2,"}"]:["{",rs([Yt,l("expression")]),Yt,O2,"}"])}(e,0,r);case"JSXFragment":case"JSXElement":return VM(e,t,r);case"JSXOpeningElement":return function(a,o,l){let p=a.getValue(),d=p.name&&Wr(p.name)||p.typeParameters&&Wr(p.typeParameters);if(p.selfClosing&&p.attributes.length===0&&!d)return["<",l("name"),l("typeParameters")," />"];if(p.attributes&&p.attributes.length===1&&p.attributes[0].value&&Yd(p.attributes[0].value)&&!p.attributes[0].value.value.includes(` +`)&&!d&&!Wr(p.attributes[0]))return ts(["<",l("name"),l("typeParameters")," ",...a.map(l,"attributes"),p.selfClosing?" />":">"]);let m=p.attributes.length>0&&Wr(Ru(p.attributes),ns.Trailing),y=p.attributes.length===0&&!d||(o.bracketSameLine||o.jsxBracketSameLine)&&(!d||p.attributes.length>0)&&!m,D=p.attributes&&p.attributes.some(b=>b.value&&Yd(b.value)&&b.value.value.includes(` +`));return ts(["<",l("name"),l("typeParameters"),rs(a.map(()=>[Dl,l()],"attributes")),p.selfClosing?Dl:y?">":Yt,p.selfClosing?"/>":y?"":">"],{shouldBreak:D})}(e,t,r);case"JSXClosingElement":return function(a,o,l){let p=a.getValue(),d=[];d.push(""),d}(e,0,r);case"JSXOpeningFragment":case"JSXClosingFragment":return function(a,o){let l=a.getValue(),p=Wr(l),d=Wr(l,ns.Line),m=l.type==="JSXOpeningFragment";return[m?"<":""]}(e,t);case"JSXEmptyExpression":return function(a,o){let l=a.getValue(),p=Wr(l,ns.Line);return[P2(a,o,!p),p?pt:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error("Unknown JSX node type: ".concat(JSON.stringify(n.type),"."))}}},WM=gE,zM=hc,$M=qs,HM=d0,JM=AE;gc({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=zM(this),r=$M(t),n=JM(t,0);return n.length=WM(n,t,t,r,0,e===void 0?1:HM(e)),n}});var Al,YM=TD,XM=g0,KM=Object.keys||function(e){return YM(e,XM)},QM=Rs,ZM=Mi,ej=ki,tj=KM,rj=ge?Object.defineProperties:function(e,t){ZM(e);for(var r,n=ej(t),a=tj(t),o=a.length,l=0;o>l;)QM.f(e,r=a[l++],n[r]);return e},nj=_i("document","documentElement"),ij=Mi,sj=rj,G2=g0,aj=u0,uj=nj,oj=cD,U2=DD("IE_PROTO"),Kd=function(){},W2=function(e){return"