From 7645dee2680a51e43aaa92d96174a11fc69b60f8 Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Tue, 10 Sep 2024 12:59:28 -0700 Subject: [PATCH 01/17] @next/upgrade package --- packages/next-upgrade/README.md | 31 + packages/next-upgrade/index.ts | 223 ++++++ packages/next-upgrade/package.json | 35 + packages/next-upgrade/tsconfig.json | 14 + packages/next-upgrade/version.json | 322 +++++++++ pnpm-lock.yaml | 1033 +++++++++++++++++++++++---- 6 files changed, 1535 insertions(+), 123 deletions(-) create mode 100644 packages/next-upgrade/README.md create mode 100644 packages/next-upgrade/index.ts create mode 100644 packages/next-upgrade/package.json create mode 100644 packages/next-upgrade/tsconfig.json create mode 100644 packages/next-upgrade/version.json diff --git a/packages/next-upgrade/README.md b/packages/next-upgrade/README.md new file mode 100644 index 0000000000000..18be8c925190a --- /dev/null +++ b/packages/next-upgrade/README.md @@ -0,0 +1,31 @@ +# @next/upgrade + +Upgrade Next.js apps to newer or beta versions with one command. + +# Build + +To build the package locally, go to `packages/next-upgrade` and run: + +```bash +pnpm build && pnpm link --global +``` + +In your Next.js app, add the following to your `package.json`: + +```json +"dependencies": { + "@next/upgrade": "path/to/local/next.js/packages/next-upgrade" +} +``` + +Finally, run: + +```bash +pnpm i +``` + +Now you can use the package! + +```bash +npx @next/upgrade +``` diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts new file mode 100644 index 0000000000000..e63cc186c09b6 --- /dev/null +++ b/packages/next-upgrade/index.ts @@ -0,0 +1,223 @@ +#!/usr/bin/env node + +import prompts from 'prompts' +import fs from 'fs' +import { execSync } from 'child_process' +import path from 'path' +import { compareVersions } from 'compare-versions' +import yaml from 'yaml' + +type VersionSpecifier = 'canary' | 'rc' | 'latest' +type PackageManager = 'pnpm' | 'npm' | 'yarn' + +interface Response { + version: VersionSpecifier +} + +async function run(): Promise { + let targetVersionSpecifier: VersionSpecifier + + let nextPackageJson: { [key: string]: any } = {} + try { + const resCanary = await fetch(`https://registry.npmjs.org/next/canary`) + nextPackageJson['canary'] = await resCanary.json() + + const resRc = await fetch(`https://registry.npmjs.org/next/rc`) + nextPackageJson['rc'] = await resRc.json() + + const resLatest = await fetch(`https://registry.npmjs.org/next/latest`) + nextPackageJson['latest'] = await resLatest.json() + } catch (error) { + console.error('Failed to fetch versions from npm registry.') + return + } + + let showRc = true + if (nextPackageJson['latest'].version && nextPackageJson['rc'].version) { + showRc = + compareVersions( + nextPackageJson['rc'].version, + nextPackageJson['latest'].version + ) === 1 + } + + const choices = [ + { + title: 'Canary', + value: 'canary', + description: `Experimental version with latest features (${nextPackageJson['canary'].version})`, + }, + ] + if (showRc) { + choices.push({ + title: 'Latest Release Candidate', + value: 'rc', + description: `Pre-release version for final testing (${nextPackageJson['rc'].version})`, + }) + } + choices.push({ + title: 'Latest Stable', + value: 'latest', + description: `Production-ready release (${nextPackageJson['latest'].version})`, + }) + + const shortcutVersion = process.argv[2]?.replace('@', '') + if (['canary', 'rc', 'latest'].includes(shortcutVersion)) { + // Shortcut + targetVersionSpecifier = shortcutVersion as VersionSpecifier + } else { + const initialVersionSpecifierIdx = await processCurrentVersion() + + const response: Response = await prompts({ + type: 'select', + name: 'version', + message: 'What Next.js version do you want to upgrade to?', + choices: choices, + initial: initialVersionSpecifierIdx, + }) + + if (!response.version) { + return + } + + targetVersionSpecifier = response.version + } + + // TODO(LichuAcu): support Turborepo + const appPackageJsonPath = path.resolve(process.cwd(), 'package.json') + let appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) + + const targetNextPackageJson = nextPackageJson[targetVersionSpecifier] + + if (targetNextPackageJson.version) { + if (compareVersions(targetNextPackageJson.version, '15.0.0-canary') >= 0) { + await suggestTurbopack(appPackageJson) + } + } + + fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) + + // TODO(LichuAcu): keep the original styling of the file + console.log('\nUpdating depencies...\n') + + let packageManager: PackageManager = getPackageManager(appPackageJson) + const dependencies = `react@${targetNextPackageJson.peerDependencies['react']} react-dom@${targetNextPackageJson.peerDependencies['react-dom']} next@${targetVersionSpecifier}` + + let updateCommand + switch (packageManager) { + case 'pnpm': + updateCommand = `pnpm update ${dependencies}` + break + case 'npm': + updateCommand = `npm install ${dependencies}` + break + case 'yarn': + updateCommand = `yarn add ${dependencies}` + break + default: + updateCommand = `pnpm install next@${targetVersionSpecifier}` + break + } + + execSync(updateCommand, { + stdio: 'inherit', + }) + + appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) + appPackageJson.dependencies['next'] = targetVersionSpecifier + fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) + + console.log( + '\nYour Next.js project has been upgraded successfully. Time to ship! 🚢' + ) +} + +/* + * Logs the current version and returns the index of the current version specifier + * in the array ['canary', 'rc', 'latest'] + */ +async function processCurrentVersion(): Promise { + // TODO(LichuAcu): support Turborepo + const appLockFilePath = path.resolve(process.cwd(), 'pnpm-lock.yaml') + if (fs.existsSync(appLockFilePath)) { + const appLockFileContent = fs.readFileSync(appLockFilePath, 'utf8') + const appLockFile = yaml.parse(appLockFileContent) + const appNextDependency = appLockFile.importers?.['.']?.dependencies?.next + + if (appNextDependency) { + if (appNextDependency.version) { + console.log( + `You are currently using Next.js ${appNextDependency.version.split('(')[0]}` + ) + } + if (appNextDependency.specifier) { + switch (appNextDependency.specifier) { + case 'canary': + return 0 + case 'rc': + return 1 + case 'latest': + return 2 + default: + return 0 + } + } + } + } + return 0 +} + +// TODO(LichuAcu): return the user's package manager +function getPackageManager(_packageJson: any): PackageManager { + return 'pnpm' +} + +/* + * Heuristics are used to determine whether to Turbopack is enabled or not and + * to determine how to update the dev script. + * + * 1. If the dev script contains `--turbo` option, we assume that Turbopack is + * already enabled. + * 2. If the dev script contains the string `next dev`, we replace it to + * `next dev --turbo`. + * 3. Otherwise, we ask the user to manually add `--turbo` to their dev command, + * showing the current dev command as the initial value. + */ +async function suggestTurbopack(packageJson: any): Promise { + const devScript = packageJson.scripts['dev'] + if (devScript.includes('--turbo')) return + + const responseTurbopack = await prompts({ + type: 'confirm', + name: 'enable', + message: + 'Turbopack is stable for development in this version. Do you want to enable it?', + initial: true, + }) + + // TODO(LichuAcu): handle ctrl-c + + if (!responseTurbopack.enable) { + return + } + + if (devScript.includes('next dev')) { + packageJson.scripts['dev'] = devScript.replace( + 'next dev', + 'next dev --turbo' + ) + return + } + + const responseCustomDevScript = await prompts({ + type: 'text', + name: 'customDevScript', + message: 'Please add `--turbo` to your dev command:', + initial: devScript, + }) + + packageJson.scripts['dev'] = + responseCustomDevScript.customDevScript || devScript +} + +run().catch(console.error) diff --git a/packages/next-upgrade/package.json b/packages/next-upgrade/package.json new file mode 100644 index 0000000000000..5f1e69a99fdc6 --- /dev/null +++ b/packages/next-upgrade/package.json @@ -0,0 +1,35 @@ +{ + "name": "@next/upgrade", + "version": "1.0.0", + "description": "Upgrade Next.js apps to newer or beta versions with one command", + "main": "dist/index.js", + "bin": { + "@next/upgrade": "./dist/index.js" + }, + "repository": { + "url": "vercel/next.js", + "directory": "packages/next-upgrade" + }, + "keywords": [ + "next", + "next.js" + ], + "author": "Next.js Team ", + "license": "MIT", + "dependencies": { + "compare-versions": "6.1.1", + "prompts": "^2.4.2", + "yaml": "2.5.1" + }, + "devDependencies": { + "@types/node": "^14.14.31", + "@types/prompts": "^2.0.14", + "typescript": "^4.3.5" + }, + "scripts": { + "build": "tsc", + "start": "node dist/index.js", + "dev": "tsc && node dist/index.js" + }, + "type": "module" +} diff --git a/packages/next-upgrade/tsconfig.json b/packages/next-upgrade/tsconfig.json new file mode 100644 index 0000000000000..1e9363cd129d6 --- /dev/null +++ b/packages/next-upgrade/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es2018", + "module": "esnext", + "moduleResolution": "node", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "outDir": "./dist" + }, + "include": ["index.ts"], + "exclude": ["node_modules"] +} diff --git a/packages/next-upgrade/version.json b/packages/next-upgrade/version.json new file mode 100644 index 0000000000000..fbd808b751711 --- /dev/null +++ b/packages/next-upgrade/version.json @@ -0,0 +1,322 @@ +{ + "name": "next", + "version": "15.0.0-canary.148", + "description": "The React Framework", + "main": "./dist/server/next.js", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/vercel/next.js.git" + }, + "bugs": { "url": "https://github.com/vercel/next.js/issues" }, + "homepage": "https://nextjs.org", + "types": "index.d.ts", + "bin": { "next": "dist/bin/next" }, + "scripts": { + "dev": "NEXT_SERVER_EVAL_SOURCE_MAPS=1 taskr", + "release": "taskr release", + "build": "pnpm release", + "prepublishOnly": "cd ../../ && turbo run build", + "types": "tsc --declaration --emitDeclarationOnly --stripInternal --declarationDir dist", + "typescript": "tsec --noEmit", + "ncc-compiled": "taskr ncc", + "start": "node server.js" + }, + "taskr": { + "requires": [ + "./taskfile-webpack.js", + "./taskfile-ncc.js", + "./taskfile-swc.js", + "./taskfile-watch.js" + ] + }, + "dependencies": { + "@next/env": "15.0.0-canary.148", + "@swc/counter": "0.1.3", + "@swc/helpers": "0.5.13", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "graceful-fs": "^4.2.11", + "postcss": "8.4.31", + "styled-jsx": "5.1.6" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "babel-plugin-react-compiler": "*", + "react": "19.0.0-rc-7771d3a7-20240827", + "react-dom": "19.0.0-rc-7771d3a7-20240827", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "babel-plugin-react-compiler": { "optional": true }, + "sass": { "optional": true }, + "@opentelemetry/api": { "optional": true }, + "@playwright/test": { "optional": true } + }, + "optionalDependencies": { + "sharp": "^0.33.5", + "@next/swc-darwin-arm64": "15.0.0-canary.148", + "@next/swc-darwin-x64": "15.0.0-canary.148", + "@next/swc-linux-arm64-gnu": "15.0.0-canary.148", + "@next/swc-linux-arm64-musl": "15.0.0-canary.148", + "@next/swc-linux-x64-gnu": "15.0.0-canary.148", + "@next/swc-linux-x64-musl": "15.0.0-canary.148", + "@next/swc-win32-arm64-msvc": "15.0.0-canary.148", + "@next/swc-win32-ia32-msvc": "15.0.0-canary.148", + "@next/swc-win32-x64-msvc": "15.0.0-canary.148" + }, + "devDependencies": { + "@ampproject/toolbox-optimizer": "2.8.3", + "@babel/code-frame": "7.22.5", + "@babel/core": "7.22.5", + "@babel/eslint-parser": "7.22.5", + "@babel/generator": "7.22.5", + "@babel/plugin-proposal-class-properties": "7.18.6", + "@babel/plugin-proposal-export-namespace-from": "7.18.9", + "@babel/plugin-proposal-numeric-separator": "7.18.6", + "@babel/plugin-proposal-object-rest-spread": "7.20.7", + "@babel/plugin-syntax-bigint": "7.8.3", + "@babel/plugin-syntax-dynamic-import": "7.8.3", + "@babel/plugin-syntax-import-attributes": "7.22.5", + "@babel/plugin-syntax-jsx": "7.22.5", + "@babel/plugin-transform-modules-commonjs": "7.22.5", + "@babel/plugin-transform-runtime": "7.22.5", + "@babel/preset-env": "7.22.5", + "@babel/preset-react": "7.22.5", + "@babel/preset-typescript": "7.22.5", + "@babel/runtime": "7.22.5", + "@babel/traverse": "7.22.5", + "@babel/types": "7.22.5", + "@capsizecss/metrics": "3.2.0", + "@edge-runtime/cookies": "5.0.0", + "@edge-runtime/ponyfill": "3.0.0", + "@edge-runtime/primitives": "5.0.0", + "@hapi/accept": "5.0.2", + "@jest/transform": "29.5.0", + "@jest/types": "29.5.0", + "@mswjs/interceptors": "0.23.0", + "@napi-rs/triples": "1.2.0", + "@next/font": "15.0.0-canary.148", + "@next/polyfill-module": "15.0.0-canary.148", + "@next/polyfill-nomodule": "15.0.0-canary.148", + "@next/react-refresh-utils": "15.0.0-canary.148", + "@next/swc": "15.0.0-canary.148", + "@opentelemetry/api": "1.6.0", + "@playwright/test": "1.41.2", + "@swc/core": "1.7.0-nightly-20240714.1", + "@swc/types": "0.1.7", + "@taskr/clear": "1.1.0", + "@taskr/esnext": "1.1.0", + "@types/amphtml-validator": "1.0.0", + "@types/babel__code-frame": "7.0.2", + "@types/babel__core": "7.1.12", + "@types/babel__generator": "7.6.2", + "@types/babel__template": "7.4.0", + "@types/babel__traverse": "7.11.0", + "@types/bytes": "3.1.1", + "@types/ci-info": "2.0.0", + "@types/compression": "0.0.36", + "@types/content-disposition": "0.5.4", + "@types/content-type": "1.1.3", + "@types/cookie": "0.3.3", + "@types/cross-spawn": "6.0.0", + "@types/debug": "4.1.5", + "@types/express-serve-static-core": "4.17.33", + "@types/fresh": "0.5.0", + "@types/glob": "7.1.1", + "@types/graceful-fs": "4.1.9", + "@types/jsonwebtoken": "9.0.0", + "@types/lodash": "4.14.198", + "@types/lodash.curry": "4.1.6", + "@types/lru-cache": "5.1.0", + "@types/path-to-regexp": "1.7.0", + "@types/picomatch": "2.3.3", + "@types/platform": "1.3.4", + "@types/react": "18.2.74", + "@types/react-dom": "18.2.23", + "@types/react-is": "18.2.4", + "@types/semver": "7.3.1", + "@types/send": "0.14.4", + "@types/shell-quote": "1.7.1", + "@types/tar": "6.1.5", + "@types/text-table": "0.2.1", + "@types/ua-parser-js": "0.7.36", + "@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5", + "@types/ws": "8.2.0", + "@vercel/ncc": "0.34.0", + "@vercel/nft": "0.27.1", + "@vercel/turbopack-ecmascript-runtime": "*", + "acorn": "8.11.3", + "amphtml-validator": "1.0.35", + "anser": "1.4.9", + "arg": "4.1.0", + "assert": "2.0.0", + "async-retry": "1.2.3", + "async-sema": "3.0.0", + "babel-plugin-transform-define": "2.0.0", + "babel-plugin-transform-react-remove-prop-types": "0.4.24", + "browserify-zlib": "0.2.0", + "browserslist": "4.22.2", + "buffer": "5.6.0", + "bytes": "3.1.1", + "ci-info": "github:watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540", + "cli-select": "1.1.2", + "client-only": "0.0.1", + "commander": "12.1.0", + "comment-json": "3.0.3", + "compression": "1.7.4", + "conf": "5.0.0", + "constants-browserify": "1.0.0", + "content-disposition": "0.5.3", + "content-type": "1.0.4", + "cookie": "0.4.1", + "cross-spawn": "7.0.3", + "crypto-browserify": "3.12.0", + "css.escape": "1.5.1", + "cssnano-preset-default": "5.2.14", + "data-uri-to-buffer": "3.0.1", + "debug": "4.1.1", + "devalue": "2.0.1", + "domain-browser": "4.19.0", + "edge-runtime": "3.0.0", + "events": "3.3.0", + "find-up": "4.1.0", + "fresh": "0.5.2", + "glob": "7.1.7", + "gzip-size": "5.1.1", + "http-proxy": "1.18.1", + "http-proxy-agent": "5.0.0", + "https-browserify": "1.0.0", + "https-proxy-agent": "5.0.1", + "icss-utils": "5.1.0", + "ignore-loader": "0.1.2", + "image-size": "1.1.1", + "is-docker": "2.0.0", + "is-wsl": "2.2.0", + "jest-worker": "27.5.1", + "json5": "2.2.3", + "jsonwebtoken": "9.0.0", + "loader-runner": "4.3.0", + "loader-utils2": "npm:loader-utils@2.0.0", + "loader-utils3": "npm:loader-utils@3.1.3", + "lodash.curry": "4.1.1", + "lru-cache": "5.1.1", + "mini-css-extract-plugin": "2.4.4", + "msw": "2.3.0", + "nanoid": "3.1.32", + "native-url": "0.3.4", + "neo-async": "2.6.1", + "node-html-parser": "5.3.3", + "ora": "4.0.4", + "os-browserify": "0.3.0", + "p-limit": "3.1.0", + "p-queue": "6.6.2", + "path-browserify": "1.0.1", + "path-to-regexp": "6.1.0", + "picomatch": "4.0.1", + "platform": "1.3.6", + "postcss-flexbugs-fixes": "5.0.2", + "postcss-modules-extract-imports": "3.0.0", + "postcss-modules-local-by-default": "4.0.4", + "postcss-modules-scope": "3.0.0", + "postcss-modules-values": "4.0.0", + "postcss-preset-env": "7.4.3", + "postcss-safe-parser": "6.0.0", + "postcss-scss": "4.0.3", + "postcss-value-parser": "4.2.0", + "process": "0.11.10", + "punycode": "2.1.1", + "querystring-es3": "0.2.1", + "raw-body": "2.4.1", + "react-refresh": "0.12.0", + "regenerator-runtime": "0.13.4", + "sass-loader": "12.6.0", + "schema-utils2": "npm:schema-utils@2.7.1", + "schema-utils3": "npm:schema-utils@3.0.0", + "semver": "7.3.2", + "send": "0.17.1", + "server-only": "0.0.1", + "setimmediate": "1.0.5", + "shell-quote": "1.7.3", + "source-map": "0.6.1", + "source-map-loader": "5.0.0", + "source-map08": "npm:source-map@0.8.0-beta.0", + "stacktrace-parser": "0.1.10", + "stream-browserify": "3.0.0", + "stream-http": "3.1.1", + "strict-event-emitter": "0.5.0", + "string-hash": "1.1.3", + "string_decoder": "1.3.0", + "strip-ansi": "6.0.0", + "superstruct": "1.0.3", + "tar": "6.1.15", + "taskr": "1.1.0", + "terser": "5.27.0", + "terser-webpack-plugin": "5.3.9", + "text-table": "0.2.0", + "timers-browserify": "2.0.12", + "tty-browserify": "0.0.1", + "ua-parser-js": "1.0.35", + "unistore": "3.4.1", + "util": "0.12.4", + "vm-browserify": "1.1.2", + "watchpack": "2.4.0", + "web-vitals": "4.2.1", + "webpack": "5.90.0", + "webpack-sources1": "npm:webpack-sources@1.4.3", + "webpack-sources3": "npm:webpack-sources@3.2.3", + "ws": "8.2.3", + "zod": "3.22.3" + }, + "keywords": [ + "react", + "framework", + "nextjs", + "web", + "server", + "node", + "front-end", + "backend", + "cli", + "vercel" + ], + "engines": { "node": ">=18.18.0" }, + "_id": "next@15.0.0-canary.148", + "readmeFilename": "README.md", + "gitHead": "c5961c432dc4dd10705265f3ba222347693ccc1b", + "_nodeVersion": "20.17.0", + "_npmVersion": "10.4.0", + "dist": { + "integrity": "sha512-I5A6TxucNacVzWObtTav+ZR86cSCxKB+JjeEYHPJZ3pWmmKPpdyyLHVnPdEIed53ugyEPPI7sNDGj5It3IatpQ==", + "shasum": "591bd71c19122b6bf0406351bd37a2ba70fe48ca", + "tarball": "https://registry.npmjs.org/next/-/next-15.0.0-canary.148.tgz", + "fileCount": 6428, + "unpackedSize": 95037797, + "attestations": { + "url": "https://registry.npmjs.org/-/npm/v1/attestations/next@15.0.0-canary.148", + "provenance": { "predicateType": "https://slsa.dev/provenance/v1" } + }, + "signatures": [ + { + "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", + "sig": "MEUCIFkXLB1vuypZLV9GlU6UvWaLRELovwcWbX4/bJeZjsm+AiEAzP1pnsm01IljKMws1fUOa4EH42rx5Mse66J2MJEm1Tc=" + } + ] + }, + "_npmUser": { + "name": "vercel-release-bot", + "email": "infra+release@vercel.com" + }, + "directories": {}, + "maintainers": [ + { "name": "rauchg", "email": "rauchg@gmail.com" }, + { "name": "timneutkens", "email": "timneutkens@icloud.com" }, + { "name": "vercel-release-bot", "email": "infra+release@vercel.com" } + ], + "_npmOperationalInternal": { + "host": "s3://npm-registry-packages", + "tmp": "tmp/next_15.0.0-canary.148_1725957521993_0.3949664083604878" + }, + "_hasShrinkwrap": false +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0b5af4a77b3a7..5e053ab2e2b0d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -857,7 +857,7 @@ importers: version: 0.5.13 babel-plugin-react-compiler: specifier: '*' - version: 0.0.0-experimental-2bc6fec-20240909 + version: 0.0.0-experimental-2bc6fec-20240910 busboy: specifier: 1.6.0 version: 1.6.0 @@ -1297,7 +1297,7 @@ importers: version: 2.4.4(webpack@5.90.0(@swc/core@1.7.0-nightly-20240714.1(@swc/helpers@0.5.13))) msw: specifier: 2.3.0 - version: 2.3.0(typescript@5.5.3) + version: 2.3.0(typescript@5.6.2) nanoid: specifier: 3.1.32 version: 3.1.32 @@ -1584,6 +1584,31 @@ importers: specifier: 6.0.3 version: 6.0.3 + packages/next-upgrade: + dependencies: + compare-versions: + specifier: 6.1.1 + version: 6.1.1 + pkg-pr-new: + specifier: 0.0.24 + version: 0.0.24 + prompts: + specifier: ^2.4.2 + version: 2.4.2 + yaml: + specifier: 2.5.1 + version: 2.5.1 + devDependencies: + '@types/node': + specifier: 20.12.3 + version: 20.12.3 + '@types/prompts': + specifier: ^2.0.14 + version: 2.4.2 + typescript: + specifier: ^4.3.5 + version: 4.8.2 + packages/react-refresh-utils: devDependencies: react-refresh: @@ -3530,8 +3555,8 @@ packages: resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} - '@humanwhocodes/object-schema@2.0.2': - resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} + '@humanwhocodes/object-schema@2.0.3': + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} deprecated: Use @eslint/object-schema instead '@humanwhocodes/retry@0.3.0': @@ -3832,6 +3857,10 @@ packages: '@jridgewell/trace-mapping@0.3.22': resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==} + '@jsdevtools/ez-spawn@3.0.4': + resolution: {integrity: sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==} + engines: {node: '>=10'} + '@lerna/add@4.0.0': resolution: {integrity: sha512-cpmAH1iS3k8JBxNvnMqrGTTjbY/ZAiKa1ChJzFevMYY3eeqbvhsBKnBcxjRXtdrJ6bd3dCQM+ZtK+0i682Fhng==} engines: {node: '>= 10.18.0'} @@ -4225,10 +4254,18 @@ packages: '@npmcli/run-script@1.8.3': resolution: {integrity: sha512-ELPGWAVU/xyU+A+H3pEPj0QOvYwLTX71RArXcClFzeiyJ/b/McsZ+d0QxpznvfFtZzxGN/gz/1cvlqICR4/suQ==} + '@octokit/action@6.1.0': + resolution: {integrity: sha512-lo+nHx8kAV86bxvOVOI3vFjX3gXPd/L7guAUbvs3pUvnR2KC+R7yjBkA1uACt4gYhs4LcWP3AXSGQzsbeN2XXw==} + engines: {node: '>= 18'} + '@octokit/app@14.0.0': resolution: {integrity: sha512-g/zDXttroZ9Se08shK0d0d/j0cgSA+h4WV7qGUevNEM0piNBkIlfb4Fm6bSwCNAZhNf72mBgERmYOoxicPkqdw==} engines: {node: '>= 18'} + '@octokit/auth-action@4.1.0': + resolution: {integrity: sha512-m+3t7K46IYyMk7Bl6/lF4Rv09GqDZjYmNg8IWycJ2Fa3YE3DE7vQcV6G2hUPmR9NDqenefNJwVtlisMjzymPiQ==} + engines: {node: '>= 18'} + '@octokit/auth-app@6.0.0': resolution: {integrity: sha512-OKct7Rukf3g9DjpzcpdacQsdmd6oPrJ7fZND22JkjzhDvfhttUOnmh+qPS4kHhaNNyTxqSThnfrUWvkqNLd1nw==} engines: {node: '>= 18'} @@ -4292,6 +4329,12 @@ packages: '@octokit/openapi-types@18.0.0': resolution: {integrity: sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==} + '@octokit/openapi-types@20.0.0': + resolution: {integrity: sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==} + + '@octokit/openapi-types@22.2.0': + resolution: {integrity: sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==} + '@octokit/openapi-types@4.0.2': resolution: {integrity: sha512-quqmeGTjcVks8YaatVGCpt7QpUTs2PK0D3mW5aEQqmFKOuIZ/CxwWrgnggPjqP3CNp6eALdQRgf0jUpcG8X1/Q==} @@ -4315,11 +4358,23 @@ packages: peerDependencies: '@octokit/core': '>=5' + '@octokit/plugin-paginate-rest@9.2.1': + resolution: {integrity: sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '5' + '@octokit/plugin-request-log@1.0.3': resolution: {integrity: sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==} peerDependencies: '@octokit/core': '>=3' + '@octokit/plugin-rest-endpoint-methods@10.4.1': + resolution: {integrity: sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '5' + '@octokit/plugin-rest-endpoint-methods@4.10.1': resolution: {integrity: sha512-YGMiEidTORzgUmYZu0eH4q2k8kgQSHQMuBOBYiKxUYs/nXea4q/Ze6tDzjcRAPmHNJYXrENs1bEMlcdGKT+8ug==} peerDependencies: @@ -4367,6 +4422,12 @@ packages: '@octokit/types@11.1.0': resolution: {integrity: sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==} + '@octokit/types@12.6.0': + resolution: {integrity: sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==} + + '@octokit/types@13.5.0': + resolution: {integrity: sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==} + '@octokit/types@6.8.3': resolution: {integrity: sha512-ZNAy8z77ewKZ5LCX0KaUm4tWdgloWQ6FWJCh06qgahq/MH13sQefIPKSo0dBdPU3bcioltyZUcC0k8oHHfjvnQ==} @@ -5588,8 +5649,8 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + ansi-regex@6.1.0: + resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} engines: {node: '>=12'} ansi-styles@2.2.1: @@ -5664,6 +5725,10 @@ packages: array-buffer-byte-length@1.0.0: resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} + array-buffer-byte-length@1.0.1: + resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} + engines: {node: '>= 0.4'} + array-differ@1.0.0: resolution: {integrity: sha512-LeZY+DZDRnvP7eMuQ6LHfCzUGxAAIViUBliK24P3hWXL6y4SortgR6Nim6xrkfSLlmH0+k+9NYNwVC2s53ZrYQ==} engines: {node: '>=0.10.0'} @@ -5693,6 +5758,10 @@ packages: resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} engines: {node: '>= 0.4'} + array-includes@3.1.8: + resolution: {integrity: sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==} + engines: {node: '>= 0.4'} + array-iterate@1.1.4: resolution: {integrity: sha512-sNRaPGh9nnmdC8Zf+pT3UqP8rnWj5Hf9wiFGsX3wUQ2yVSIhO2ShFwCoceIPpB41QF6i2OEmrHmCo36xronCVA==} @@ -5743,6 +5812,10 @@ packages: resolution: {integrity: sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==} engines: {node: '>= 0.4'} + arraybuffer.prototype.slice@1.0.3: + resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} + engines: {node: '>= 0.4'} + arrify@1.0.1: resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} engines: {node: '>=0.10.0'} @@ -5850,6 +5923,10 @@ packages: resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} engines: {node: '>= 0.4'} + available-typed-arrays@1.0.7: + resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} + engines: {node: '>= 0.4'} + aws-sign2@0.7.0: resolution: {integrity: sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==} @@ -5920,8 +5997,8 @@ packages: peerDependencies: '@babel/core': 7.22.5 - babel-plugin-react-compiler@0.0.0-experimental-2bc6fec-20240909: - resolution: {integrity: sha512-iBgf2ZUsw3vJRkuNaCHSQ+vAhzKiR77t+XZyejs6FDcpXVCnwtQJ+yoQbSTaUP9ktrv8gdRdvl8IcXWHRBUd4Q==} + babel-plugin-react-compiler@0.0.0-experimental-2bc6fec-20240910: + resolution: {integrity: sha512-ktoe5CVIGdUyos1SprZiobQtx4IdNFsoUKaKf58e6NOlycNBNkDr8V/j1lmqPfwIp/dxQYIZpV04xwzpfFqFKw==} babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: resolution: {integrity: sha512-0XN2gmpT55QtAz5n7d5g91y1AuO9tRhWBaLgCRyc4ExHrlr7+LfxW+YTb3mOwxngkkiggwM8HyYsaEK9MqhnlQ==} @@ -5961,6 +6038,9 @@ packages: balanced-match@1.0.0: resolution: {integrity: sha512-9Y0g0Q8rmSt+H33DfKv7FOc3v+iRI+o1lbzt8jGcIosYW37IIW/2XVYq5NPdmaD5NQ59Nk26Kl/vZbwW9Fr8vg==} + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + base64-js@0.0.8: resolution: {integrity: sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==} engines: {node: '>= 0.4'} @@ -5990,8 +6070,8 @@ packages: big.js@6.2.1: resolution: {integrity: sha512-bCtHMwL9LeDIozFn+oNhhFoq+yQ3BNdnsLSASUxLciOb1vgvpHsIO1dsENiGMgbb4SkP5TrzWzRiLddn8ahVOQ==} - binary-extensions@2.1.0: - resolution: {integrity: sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==} + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} bindings@1.5.0: @@ -6163,6 +6243,9 @@ packages: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} + call-me-maybe@1.0.2: + resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} + caller-callsite@2.0.0: resolution: {integrity: sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==} engines: {node: '>=4'} @@ -6388,10 +6471,6 @@ packages: resolution: {integrity: sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==} engines: {node: '>=4'} - cli-spinners@2.6.1: - resolution: {integrity: sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==} - engines: {node: '>=6'} - cli-spinners@2.9.2: resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} engines: {node: '>=6'} @@ -6574,6 +6653,9 @@ packages: compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + compare-versions@6.1.1: + resolution: {integrity: sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==} + component-emitter@1.3.0: resolution: {integrity: sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==} @@ -6603,6 +6685,9 @@ packages: resolution: {integrity: sha512-lRNyt+iRD4plYaOSVTxu1zPWpaH0EOxgFIR1l3mpC/DGZ7XzhoGFMKmbl54LAgXcSu6knqWgOwdINkqm58N85A==} engines: {node: '>=8'} + confbox@0.1.7: + resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} + config-chain@1.1.12: resolution: {integrity: sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==} @@ -7154,6 +7239,18 @@ packages: resolution: {integrity: sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==} engines: {node: '>=12'} + data-view-buffer@1.0.1: + resolution: {integrity: sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==} + engines: {node: '>= 0.4'} + + data-view-byte-length@1.0.1: + resolution: {integrity: sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==} + engines: {node: '>= 0.4'} + + data-view-byte-offset@1.0.0: + resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==} + engines: {node: '>= 0.4'} + dateformat@3.0.3: resolution: {integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==} @@ -7230,6 +7327,15 @@ packages: supports-color: optional: true + debug@4.3.7: + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + debuglog@1.0.1: resolution: {integrity: sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==} deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. @@ -7252,6 +7358,10 @@ packages: resolution: {integrity: sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==} engines: {node: '>=0.10'} + decode-uri-component@0.4.1: + resolution: {integrity: sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==} + engines: {node: '>=14.16'} + decompress-response@3.3.0: resolution: {integrity: sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==} engines: {node: '>=4'} @@ -7308,6 +7418,10 @@ packages: resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} engines: {node: '>= 0.4'} + define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} + engines: {node: '>= 0.4'} + define-property@0.2.5: resolution: {integrity: sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==} engines: {node: '>=0.10.0'} @@ -7680,6 +7794,10 @@ packages: resolution: {integrity: sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==} engines: {node: '>= 0.4'} + es-abstract@1.23.3: + resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} + engines: {node: '>= 0.4'} + es-define-property@1.0.0: resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} engines: {node: '>= 0.4'} @@ -7694,13 +7812,24 @@ packages: es-module-lexer@1.2.1: resolution: {integrity: sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==} + es-object-atoms@1.0.0: + resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} + engines: {node: '>= 0.4'} + es-set-tostringtag@2.0.1: resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} engines: {node: '>= 0.4'} + es-set-tostringtag@2.0.3: + resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==} + engines: {node: '>= 0.4'} + es-shim-unscopables@1.0.0: resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} + es-shim-unscopables@1.0.2: + resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} + es-to-primitive@1.2.1: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} @@ -8117,14 +8246,15 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fastq@1.15.0: - resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} + fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} fault@1.0.4: resolution: {integrity: sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==} faunadb@2.6.1: resolution: {integrity: sha512-n/aRPDqrE7Sor7qzNDvZHmM7nEw0wERZZPjXRx1sBS3+9mJAscFa4zOQMgbh+pTz8M3r6Djd3vxl11JLn3eSMA==} + deprecated: 'Fauna is decommissioning FQL v4. This driver is not compatible with FQL v10, the latest version. Fauna accounts created after August 21, 2024 must use FQL v10. Ensure you migrate existing projects to the official v10 driver by the v4 EOL date: https://github.com/fauna/fauna-js.' faye-websocket@0.11.3: resolution: {integrity: sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA==} @@ -8139,6 +8269,14 @@ packages: fbjs@3.0.2: resolution: {integrity: sha512-qv+boqYndjElAJHNN3NoM8XuwQZ1j2m3kEvTgdle8IDjr6oUbkEpvABWtj/rQl3vq4ew7dnElBxL4YJAwTVqQQ==} + fdir@6.3.0: + resolution: {integrity: sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + fflate@0.7.4: resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==} @@ -8192,6 +8330,10 @@ packages: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} + filter-obj@5.1.0: + resolution: {integrity: sha512-qWeTREPoT7I0bifpPUXtxkZJ1XJzxWtfoWWkdVGqa+eCr3SHW/Ocp89o8vLvbUuQnadybJpjOKu4V+RwO6sGng==} + engines: {node: '>=14.16'} + finalhandler@1.1.2: resolution: {integrity: sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==} engines: {node: '>= 0.8'} @@ -8239,8 +8381,8 @@ packages: resolution: {integrity: sha512-1vrC1UZIVhaT7owaElQoEseP81xqRt6tHQmxRJRojn0yI3JNXrdWCFsD+26xA1eQQCwodJuMsYJLzQSScgjHuQ==} engines: {node: ^8.13.0 || >=10.10.0} - flat-cache@3.0.4: - resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} + flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} flat-cache@4.0.1: @@ -8251,9 +8393,6 @@ packages: resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} hasBin: true - flatted@3.2.7: - resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} - flatted@3.3.1: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} @@ -8282,8 +8421,8 @@ packages: foreach@2.0.5: resolution: {integrity: sha512-ZBbtRiapkZYLsqoPyZOR+uPfto0GRMNQN1GwzZtZt7iZvPPbDDQV0JF5Hx4o/QFQ5c0vyuoZ98T8RSBbopzWtA==} - foreground-child@3.2.1: - resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} + foreground-child@3.3.0: + resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} engines: {node: '>=14'} forever-agent@0.6.1: @@ -8393,6 +8532,10 @@ packages: resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} engines: {node: '>= 0.4'} + function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} + engines: {node: '>= 0.4'} + functional-red-black-tree@1.0.1: resolution: {integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==} @@ -8468,6 +8611,10 @@ packages: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} + get-symbol-description@1.0.2: + resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} + engines: {node: '>= 0.4'} + get-tsconfig@4.2.0: resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==} @@ -8561,6 +8708,10 @@ packages: resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} deprecated: Glob versions prior to v9 are no longer supported + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported + global-dirs@2.1.0: resolution: {integrity: sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==} engines: {node: '>=8'} @@ -8581,6 +8732,10 @@ packages: resolution: {integrity: sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==} engines: {node: '>=8'} + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + globals@14.0.0: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} @@ -8589,6 +8744,10 @@ packages: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} + globalthis@1.0.4: + resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} + engines: {node: '>= 0.4'} + globalyzer@0.1.0: resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} @@ -8702,6 +8861,10 @@ packages: resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} engines: {node: '>= 0.4'} + has-proto@1.0.3: + resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} + engines: {node: '>= 0.4'} + has-symbol-support-x@1.4.2: resolution: {integrity: sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==} @@ -8720,6 +8883,10 @@ packages: resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==} engines: {node: '>= 0.4'} + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + has-unicode@2.0.1: resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==} @@ -8986,6 +9153,10 @@ packages: resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} engines: {node: '>= 4'} + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + image-size@1.1.1: resolution: {integrity: sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ==} engines: {node: '>=16.x'} @@ -8994,6 +9165,9 @@ packages: immutable@4.1.0: resolution: {integrity: sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==} + immutable@4.3.7: + resolution: {integrity: sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==} + import-cwd@3.0.0: resolution: {integrity: sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg==} engines: {node: '>=8'} @@ -9094,6 +9268,10 @@ packages: resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} engines: {node: '>= 0.4'} + internal-slot@1.0.7: + resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} + engines: {node: '>= 0.4'} + internmap@1.0.1: resolution: {integrity: sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==} @@ -9155,6 +9333,10 @@ packages: is-array-buffer@3.0.2: resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} + is-array-buffer@3.0.4: + resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} + engines: {node: '>= 0.4'} + is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -9165,15 +9347,15 @@ packages: resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==} engines: {node: '>= 0.4'} - is-bigint@1.0.1: - resolution: {integrity: sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg==} + is-bigint@1.0.4: + resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} is-binary-path@2.1.0: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - is-boolean-object@1.1.0: - resolution: {integrity: sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==} + is-boolean-object@1.1.2: + resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} is-buffer@1.1.6: @@ -9214,8 +9396,8 @@ packages: is-core-module@2.13.1: resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} - is-core-module@2.14.0: - resolution: {integrity: sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==} + is-core-module@2.15.1: + resolution: {integrity: sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==} engines: {node: '>= 0.4'} is-data-descriptor@0.1.4: @@ -9228,8 +9410,8 @@ packages: engines: {node: '>=0.10.0'} deprecated: Please upgrade to v1.0.1 - is-date-object@1.0.2: - resolution: {integrity: sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==} + is-data-view@1.0.1: + resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} engines: {node: '>= 0.4'} is-date-object@1.0.5: @@ -9356,6 +9538,10 @@ packages: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} engines: {node: '>= 0.4'} + is-negative-zero@2.0.3: + resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} + engines: {node: '>= 0.4'} + is-node-process@1.2.0: resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==} @@ -9363,8 +9549,8 @@ packages: resolution: {integrity: sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==} engines: {node: '>=8'} - is-number-object@1.0.4: - resolution: {integrity: sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==} + is-number-object@1.0.7: + resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} engines: {node: '>= 0.4'} is-number@3.0.0: @@ -9452,6 +9638,10 @@ packages: is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} + is-shared-array-buffer@1.0.3: + resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==} + engines: {node: '>= 0.4'} + is-ssh@1.3.1: resolution: {integrity: sha512-0eRIASHZt1E68/ixClI8bp2YK2wmBPVWEismTs6M+M099jKgrzl/3E976zIbImSIob48N2/XGe9y7ZiYdImSlg==} @@ -9475,8 +9665,8 @@ packages: resolution: {integrity: sha512-gi4iHK53LR2ujhLVVj+37Ykh9GLqYHX6JOVXbLAucaG/Cqw9xwdFOjDM2qeifLs1sF1npXXFvDu0r5HNgCMrzQ==} engines: {node: '>=4'} - is-symbol@1.0.3: - resolution: {integrity: sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==} + is-symbol@1.0.4: + resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} engines: {node: '>= 0.4'} is-text-path@1.0.1: @@ -9487,6 +9677,10 @@ packages: resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} engines: {node: '>= 0.4'} + is-typed-array@1.1.13: + resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} + engines: {node: '>= 0.4'} + is-typed-array@1.1.5: resolution: {integrity: sha512-S+GRDgJlR3PyEbsX/Fobd9cqpZBuvUS+8asRqYDMLCb2qMzt1oz5m5oxQCxOgUDxiWsOVNi4yaF+/uvdlHlYug==} engines: {node: '>= 0.4'} @@ -9551,6 +9745,10 @@ packages: resolution: {integrity: sha512-53h6XFniq77YdW+spoRrebh0mnmTxRPTlcuIArO57lmMdq4uBKFKaeTjnb92oYWrSn/LVL+LT+Hap2tFQj8V+w==} engines: {node: '>= 8.0.0'} + isbinaryfile@5.0.2: + resolution: {integrity: sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==} + engines: {node: '>= 18.0.0'} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -10661,6 +10859,10 @@ packages: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + miller-rabin@4.0.1: resolution: {integrity: sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==} hasBin: true @@ -10819,6 +11021,9 @@ packages: engines: {node: '>=10'} hasBin: true + mlly@1.7.1: + resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} + modify-values@1.0.1: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} @@ -10899,8 +11104,8 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - nanoid@3.3.6: - resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} + nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true @@ -11157,6 +11362,10 @@ packages: object-inspect@1.12.3: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} + object-inspect@1.13.2: + resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + engines: {node: '>= 0.4'} + object-is@1.0.2: resolution: {integrity: sha512-Epah+btZd5wrrfjkJZq1AOB9O6OxUQto45hzFd7lXGrpHPGE0W1k+426yrZV+k6NJOzLNNW/nVsmZdIWsAqoOQ==} engines: {node: '>= 0.4'} @@ -11176,6 +11385,10 @@ packages: resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} engines: {node: '>= 0.4'} + object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} + engines: {node: '>= 0.4'} + object.entries@1.1.6: resolution: {integrity: sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==} engines: {node: '>= 0.4'} @@ -11213,6 +11426,10 @@ packages: resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} engines: {node: '>= 0.4'} + object.values@1.2.0: + resolution: {integrity: sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==} + engines: {node: '>= 0.4'} + octokit@3.1.0: resolution: {integrity: sha512-dmIH5D+edpb4/ASd6ZGo6BiRR1g4ytu8lG4f+6XN/2AW+CSuTsT0nj1d6rv/HKgoflMQ1+rb3KlVWcvrmgQZhw==} engines: {node: '>= 18'} @@ -11403,6 +11620,9 @@ packages: resolution: {integrity: sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==} engines: {node: '>=8'} + package-manager-detector@0.1.2: + resolution: {integrity: sha512-iePyefLTOm2gEzbaZKSW+eBMjg+UYsQvUKxmvGXAQ987K16efBg10MxIjZs08iyX+DY2/owKY9DIdu193kX33w==} + pacote@11.2.6: resolution: {integrity: sha512-xCl++Hb3aBC7LaWMimbO4xUqZVsEbKDVc6KKDIIyAeBYrmMwY1yJC2nES/lsGd8sdQLUosgBxQyuVNncZ2Ru0w==} engines: {node: '>=10'} @@ -11573,6 +11793,9 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} + pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + pause-stream@0.0.11: resolution: {integrity: sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==} @@ -11592,6 +11815,9 @@ packages: picocolors@1.0.1: resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + picocolors@1.1.0: + resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} + picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} @@ -11600,6 +11826,10 @@ packages: resolution: {integrity: sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg==} engines: {node: '>=12'} + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + pidtree@0.3.0: resolution: {integrity: sha512-9CT4NFlDcosssyg8KVFltgokyKZIFjoBxw8CTGy+5F38Y1eQWrt8tRayiUOXE+zVKQnYu5BR8JjCtvK3BcnBhg==} engines: {node: '>=0.10'} @@ -11657,6 +11887,13 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} + pkg-pr-new@0.0.24: + resolution: {integrity: sha512-jzHuU0HLHEh3jNHQD7yZhxXM8CV8W+qdR0Ii5cxwm+t73kAvyZ9DkcDP4X1ZarX6DGnoibuuSOgWKYtQbjWsRQ==} + hasBin: true + + pkg-types@1.2.0: + resolution: {integrity: sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==} + pkg-up@3.1.0: resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} engines: {node: '>=8'} @@ -11697,6 +11934,10 @@ packages: resolution: {integrity: sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==} engines: {node: '>=0.10.0'} + possible-typed-array-names@1.0.0: + resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} + engines: {node: '>= 0.4'} + postcss-attribute-case-insensitive@5.0.0: resolution: {integrity: sha512-b4g9eagFGq9T5SWX4+USfVyjIb3liPnjhHHRMP7FMB2kFVpYyfEscV0wP3eaXhKlcHKUut8lt5BGoeylWA/dBQ==} peerDependencies: @@ -12509,6 +12750,10 @@ packages: resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} engines: {node: '>=6'} + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + pupa@2.1.1: resolution: {integrity: sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==} engines: {node: '>=8'} @@ -12545,6 +12790,14 @@ packages: resolution: {integrity: sha512-Z5oNq7qH0g96qBTx2jAvS0X71hKP4tETtSJKEl6BdihzYqh9QKiJQBMT7qIQuzxR9lxfiso+aXCFhZ+EcAoppQ==} engines: {node: '>=12'} + query-registry@3.0.1: + resolution: {integrity: sha512-M9RxRITi2mHMVPU5zysNjctUT8bAPx6ltEXo/ir9+qmiM47Y7f0Ir3+OxUO5OjYAWdicBQRew7RtHtqUXydqlg==} + engines: {node: '>=20'} + + query-string@9.1.0: + resolution: {integrity: sha512-t6dqMECpCkqfyv2FfwVS1xcB6lgXW/0XZSaKdsCNGYkqMO76AFiJEg4vINzoDKcZa6MS7JX+OHIjwh06K5vczw==} + engines: {node: '>=18'} + querystring-es3@0.2.1: resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==} engines: {node: '>=0.4.x'} @@ -12571,6 +12824,10 @@ packages: resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} engines: {node: '>=10'} + quick-lru@7.0.0: + resolution: {integrity: sha512-MX8gB7cVYTrYcFfAnfLlhRd0+Toyl8yX8uBx1MrX7K0jegiz9TumwOK27ldXrgDlHRdVi+MqU9Ssw6dr4BNreg==} + engines: {node: '>=18'} + quotation@1.1.3: resolution: {integrity: sha512-45gUgmX/RtQOQV1kwM06boP49OYXcKCPrYwdmAvs5YqkpiobhNKKwo524JM6Ma0ko3oN9tXNcWs9+ABq3Ry7YA==} @@ -12876,6 +13133,10 @@ packages: resolution: {integrity: sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==} engines: {node: '>= 0.4'} + regexp.prototype.flags@1.5.2: + resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + engines: {node: '>= 0.4'} + regexpp@3.1.0: resolution: {integrity: sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==} engines: {node: '>=8'} @@ -13205,6 +13466,10 @@ packages: resolution: {integrity: sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==} engines: {node: '>=0.4'} + safe-array-concat@1.1.2: + resolution: {integrity: sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==} + engines: {node: '>=0.4'} + safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} @@ -13220,6 +13485,10 @@ packages: safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} + safe-regex-test@1.0.3: + resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} + engines: {node: '>= 0.4'} + safe-regex@1.1.0: resolution: {integrity: sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==} @@ -13364,6 +13633,10 @@ packages: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} + set-function-name@2.0.2: + resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} + engines: {node: '>= 0.4'} + set-value@2.0.1: resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} engines: {node: '>=0.10.0'} @@ -13416,6 +13689,10 @@ packages: side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} + side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} + engines: {node: '>= 0.4'} + signal-exit@3.0.3: resolution: {integrity: sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==} @@ -13524,6 +13801,10 @@ packages: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + source-map-loader@5.0.0: resolution: {integrity: sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA==} engines: {node: '>= 18.12.0'} @@ -13597,6 +13878,10 @@ packages: spdx-license-ids@3.0.5: resolution: {integrity: sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==} + split-on-first@3.0.0: + resolution: {integrity: sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA==} + engines: {node: '>=12'} + split-string@3.1.0: resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==} engines: {node: '>=0.10.0'} @@ -13733,18 +14018,29 @@ packages: resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} engines: {node: '>= 0.4'} + string.prototype.trim@1.2.9: + resolution: {integrity: sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==} + engines: {node: '>= 0.4'} + string.prototype.trimend@1.0.5: resolution: {integrity: sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==} string.prototype.trimend@1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} + string.prototype.trimend@1.0.8: + resolution: {integrity: sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==} + string.prototype.trimstart@1.0.5: resolution: {integrity: sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==} string.prototype.trimstart@1.0.6: resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} + string.prototype.trimstart@1.0.8: + resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==} + engines: {node: '>= 0.4'} + string_decoder@0.10.31: resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} @@ -14113,6 +14409,10 @@ packages: resolution: {integrity: sha512-3GwPk8VhDFnUZ2TrgkhXJs6hcMAIIw4x/xkz+ayK6dGoQmp2nUwKzBXK0WnMsqkh6vfUhpqQicQF3rbshfyJkg==} engines: {node: '>=4'} + tinyglobby@0.2.6: + resolution: {integrity: sha512-NbBoFBpqfcgd1tCiO8Lkfdk+xrA7mlLR9zgvZcZWQQwU63XAfUePyd6wZBaU93Hqw347lHnwFzttAkemHzzz4g==} + engines: {node: '>=12.0.0'} + title-case@3.0.3: resolution: {integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==} @@ -14270,6 +14570,9 @@ packages: tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} + tslib@2.7.0: + resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} + tsutils@3.21.0: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} @@ -14385,17 +14688,33 @@ packages: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} engines: {node: '>= 0.4'} + typed-array-buffer@1.0.2: + resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} + engines: {node: '>= 0.4'} + typed-array-byte-length@1.0.0: resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} engines: {node: '>= 0.4'} + typed-array-byte-length@1.0.1: + resolution: {integrity: sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==} + engines: {node: '>= 0.4'} + typed-array-byte-offset@1.0.0: resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==} engines: {node: '>= 0.4'} + typed-array-byte-offset@1.0.2: + resolution: {integrity: sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==} + engines: {node: '>= 0.4'} + typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} + typed-array-length@1.0.6: + resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==} + engines: {node: '>= 0.4'} + typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} @@ -14418,12 +14737,20 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.6.2: + resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} + engines: {node: '>=14.17'} + hasBin: true + ua-parser-js@0.7.31: resolution: {integrity: sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==} ua-parser-js@1.0.35: resolution: {integrity: sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==} + ufo@1.5.4: + resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} + uglify-js@3.17.4: resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==} engines: {node: '>=0.8.0'} @@ -14450,6 +14777,10 @@ packages: resolution: {integrity: sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==} engines: {node: '>=14.0'} + undici@6.19.8: + resolution: {integrity: sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==} + engines: {node: '>=18.17'} + unfetch@4.2.0: resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} @@ -14651,6 +14982,10 @@ packages: url-join@4.0.1: resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} + url-join@5.0.0: + resolution: {integrity: sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + url-parse-lax@1.0.0: resolution: {integrity: sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==} engines: {node: '>=0.10.0'} @@ -14955,6 +15290,10 @@ packages: resolution: {integrity: sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==} engines: {node: '>= 0.4'} + which-typed-array@1.1.15: + resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} + engines: {node: '>= 0.4'} + which-typed-array@1.1.4: resolution: {integrity: sha512-49E0SpUe90cjpoc7BOJwyPHRqSAd12c10Qm2amdEZrJPCY2NDxaW01zHITrem+rnETY3dwrbH3UUrUwagfCYDA==} engines: {node: '>= 0.4'} @@ -15125,6 +15464,11 @@ packages: resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==} engines: {node: '>= 14'} + yaml@2.5.1: + resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} + engines: {node: '>= 14'} + hasBin: true + yargs-parser@15.0.0: resolution: {integrity: sha512-xLTUnCMc4JhxrPEPUYD5IBR1mWCK/aT6+RJ/K29JY2y1vD+FhtgKK0AXRWvI262q3QSffAQuTouFIKUuHX89wQ==} @@ -15166,6 +15510,10 @@ packages: yoga-wasm-web@0.3.3: resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==} + zod-package-json@1.0.3: + resolution: {integrity: sha512-Mb6GzuRyUEl8X+6V6xzHbd4XV0au/4gOYrYP+CAfHL32uPmGswES+v2YqonZiW1NZWVA3jkssCKSU2knonm/aQ==} + engines: {node: '>=20'} + zod-validation-error@2.1.0: resolution: {integrity: sha512-VJh93e2wb4c3tWtGgTa0OF/dTt/zoPCPzXq4V11ZjxmEAFaPi/Zss1xIZdEB5RD8GD00U0/iVXgqkF77RV7pdQ==} engines: {node: '>=18.0.0'} @@ -17074,7 +17422,7 @@ snapshots: '@emnapi/runtime@1.2.0': dependencies: - tslib: 2.6.3 + tslib: 2.7.0 optional: true '@emotion/babel-plugin@11.11.0': @@ -17160,7 +17508,7 @@ snapshots: '@eslint/config-array@0.17.0': dependencies: '@eslint/object-schema': 2.1.4 - debug: 4.3.5 + debug: 4.3.7 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -17182,10 +17530,10 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.5 + debug: 4.3.7 espree: 9.6.1 - globals: 13.19.0 - ignore: 5.3.1 + globals: 13.24.0 + ignore: 5.3.2 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -17196,10 +17544,10 @@ snapshots: '@eslint/eslintrc@3.1.0': dependencies: ajv: 6.12.6 - debug: 4.3.5 + debug: 4.3.7 espree: 10.1.0 globals: 14.0.0 - ignore: 5.3.1 + ignore: 5.3.2 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -17445,15 +17793,15 @@ snapshots: '@humanwhocodes/config-array@0.11.14': dependencies: - '@humanwhocodes/object-schema': 2.0.2 - debug: 4.3.5 + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.3.7 minimatch: 3.1.2 transitivePeerDependencies: - supports-color '@humanwhocodes/module-importer@1.0.1': {} - '@humanwhocodes/object-schema@2.0.2': {} + '@humanwhocodes/object-schema@2.0.3': {} '@humanwhocodes/retry@0.3.0': {} @@ -17908,6 +18256,13 @@ snapshots: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 + '@jsdevtools/ez-spawn@3.0.4': + dependencies: + call-me-maybe: 1.0.2 + cross-spawn: 7.0.3 + string-argv: 0.3.2 + type-detect: 4.0.8 + '@lerna/add@4.0.0': dependencies: '@lerna/bootstrap': 4.0.0 @@ -18544,7 +18899,7 @@ snapshots: '@nodelib/fs.walk@1.2.8': dependencies: '@nodelib/fs.scandir': 2.1.5 - fastq: 1.15.0 + fastq: 1.17.1 '@npmcli/ci-detect@1.3.0': {} @@ -18591,6 +18946,15 @@ snapshots: puka: 1.0.1 read-package-json-fast: 2.0.1 + '@octokit/action@6.1.0': + dependencies: + '@octokit/auth-action': 4.1.0 + '@octokit/core': 5.0.0 + '@octokit/plugin-paginate-rest': 9.2.1(@octokit/core@5.0.0) + '@octokit/plugin-rest-endpoint-methods': 10.4.1(@octokit/core@5.0.0) + '@octokit/types': 12.6.0 + undici: 6.19.8 + '@octokit/app@14.0.0': dependencies: '@octokit/auth-app': 6.0.0 @@ -18601,6 +18965,11 @@ snapshots: '@octokit/types': 11.1.0 '@octokit/webhooks': 12.0.3 + '@octokit/auth-action@4.1.0': + dependencies: + '@octokit/auth-token': 4.0.0 + '@octokit/types': 13.5.0 + '@octokit/auth-app@6.0.0': dependencies: '@octokit/auth-oauth-app': 7.0.0 @@ -18720,6 +19089,10 @@ snapshots: '@octokit/openapi-types@18.0.0': {} + '@octokit/openapi-types@20.0.0': {} + + '@octokit/openapi-types@22.2.0': {} + '@octokit/openapi-types@4.0.2': {} '@octokit/plugin-enterprise-rest@6.0.1': {} @@ -18738,10 +19111,20 @@ snapshots: '@octokit/core': 5.0.0 '@octokit/types': 11.1.0 + '@octokit/plugin-paginate-rest@9.2.1(@octokit/core@5.0.0)': + dependencies: + '@octokit/core': 5.0.0 + '@octokit/types': 12.6.0 + '@octokit/plugin-request-log@1.0.3(@octokit/core@3.2.5(encoding@0.1.13))': dependencies: '@octokit/core': 3.2.5(encoding@0.1.13) + '@octokit/plugin-rest-endpoint-methods@10.4.1(@octokit/core@5.0.0)': + dependencies: + '@octokit/core': 5.0.0 + '@octokit/types': 12.6.0 + '@octokit/plugin-rest-endpoint-methods@4.10.1(@octokit/core@3.2.5(encoding@0.1.13))': dependencies: '@octokit/core': 3.2.5(encoding@0.1.13) @@ -18826,6 +19209,14 @@ snapshots: dependencies: '@octokit/openapi-types': 18.0.0 + '@octokit/types@12.6.0': + dependencies: + '@octokit/openapi-types': 20.0.0 + + '@octokit/types@13.5.0': + dependencies: + '@octokit/openapi-types': 22.2.0 + '@octokit/types@6.8.3': dependencies: '@octokit/openapi-types': 4.0.2 @@ -19260,7 +19651,7 @@ snapshots: '@swc/helpers@0.5.13': dependencies: - tslib: 2.6.3 + tslib: 2.7.0 '@swc/types@0.1.7': dependencies: @@ -20205,7 +20596,7 @@ snapshots: ansi-regex@5.0.1: {} - ansi-regex@6.0.1: {} + ansi-regex@6.1.0: {} ansi-styles@2.2.1: {} @@ -20269,6 +20660,11 @@ snapshots: call-bind: 1.0.2 is-array-buffer: 3.0.2 + array-buffer-byte-length@1.0.1: + dependencies: + call-bind: 1.0.7 + is-array-buffer: 3.0.4 + array-differ@1.0.0: {} array-differ@3.0.0: {} @@ -20297,6 +20693,15 @@ snapshots: get-intrinsic: 1.2.1 is-string: 1.0.7 + array-includes@3.1.8: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.3 + es-object-atoms: 1.0.0 + get-intrinsic: 1.2.4 + is-string: 1.0.7 + array-iterate@1.1.4: {} array-union@1.0.2: @@ -20334,10 +20739,10 @@ snapshots: array.prototype.flat@1.3.2: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.22.1 - es-shim-unscopables: 1.0.0 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.3 + es-shim-unscopables: 1.0.2 array.prototype.flatmap@1.3.1: dependencies: @@ -20348,10 +20753,10 @@ snapshots: array.prototype.flatmap@1.3.2: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.22.1 - es-shim-unscopables: 1.0.0 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.3 + es-shim-unscopables: 1.0.2 array.prototype.tosorted@1.1.1: dependencies: @@ -20370,6 +20775,17 @@ snapshots: is-array-buffer: 3.0.2 is-shared-array-buffer: 1.0.2 + arraybuffer.prototype.slice@1.0.3: + dependencies: + array-buffer-byte-length: 1.0.1 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.3 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + is-array-buffer: 3.0.4 + is-shared-array-buffer: 1.0.3 + arrify@1.0.1: {} arrify@2.0.1: {} @@ -20464,6 +20880,10 @@ snapshots: available-typed-arrays@1.0.5: {} + available-typed-arrays@1.0.7: + dependencies: + possible-typed-array-names: 1.0.0 + aws-sign2@0.7.0: {} aws4@1.9.0: {} @@ -20568,7 +20988,7 @@ snapshots: transitivePeerDependencies: - supports-color - babel-plugin-react-compiler@0.0.0-experimental-2bc6fec-20240909: + babel-plugin-react-compiler@0.0.0-experimental-2bc6fec-20240910: dependencies: '@babel/generator': 7.2.0 '@babel/types': 7.22.5 @@ -20630,6 +21050,8 @@ snapshots: balanced-match@1.0.0: {} + balanced-match@1.0.2: {} + base64-js@0.0.8: {} base64-js@1.5.1: {} @@ -20658,7 +21080,7 @@ snapshots: big.js@6.2.1: {} - binary-extensions@2.1.0: {} + binary-extensions@2.3.0: {} bindings@1.5.0: dependencies: @@ -20708,12 +21130,12 @@ snapshots: brace-expansion@1.1.11: dependencies: - balanced-match: 1.0.0 + balanced-match: 1.0.2 concat-map: 0.0.1 brace-expansion@2.0.1: dependencies: - balanced-match: 1.0.0 + balanced-match: 1.0.2 braces@2.3.2: dependencies: @@ -20908,6 +21330,8 @@ snapshots: get-intrinsic: 1.2.4 set-function-length: 1.2.2 + call-me-maybe@1.0.2: {} + caller-callsite@2.0.0: dependencies: callsites: 2.0.0 @@ -21167,8 +21591,6 @@ snapshots: cli-spinners@1.3.1: {} - cli-spinners@2.6.1: {} - cli-spinners@2.9.2: {} cli-truncate@2.1.0: @@ -21331,6 +21753,8 @@ snapshots: array-ify: 1.0.0 dot-prop: 5.3.0 + compare-versions@6.1.1: {} + component-emitter@1.3.0: {} compressible@2.0.18: @@ -21384,6 +21808,8 @@ snapshots: pkg-up: 3.1.0 write-file-atomic: 3.0.3 + confbox@0.1.7: {} + config-chain@1.1.12: dependencies: ini: 1.3.8 @@ -22099,6 +22525,24 @@ snapshots: whatwg-mimetype: 3.0.0 whatwg-url: 11.0.0 + data-view-buffer@1.0.1: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + + data-view-byte-length@1.0.1: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + + data-view-byte-offset@1.0.0: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dateformat@3.0.3: {} dayjs@1.11.11: {} @@ -22169,6 +22613,10 @@ snapshots: dependencies: ms: 2.1.2 + debug@4.3.7: + dependencies: + ms: 2.1.3 + debuglog@1.0.1: {} decamelize-keys@1.1.0: @@ -22186,6 +22634,8 @@ snapshots: decode-uri-component@0.2.0: {} + decode-uri-component@0.4.1: {} + decompress-response@3.3.0: dependencies: mimic-response: 1.0.1 @@ -22232,6 +22682,12 @@ snapshots: has-property-descriptors: 1.0.0 object-keys: 1.1.1 + define-properties@1.2.1: + dependencies: + define-data-property: 1.1.4 + has-property-descriptors: 1.0.2 + object-keys: 1.1.1 + define-property@0.2.5: dependencies: is-descriptor: 0.1.6 @@ -22650,6 +23106,55 @@ snapshots: unbox-primitive: 1.0.2 which-typed-array: 1.1.11 + es-abstract@1.23.3: + dependencies: + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + data-view-buffer: 1.0.1 + data-view-byte-length: 1.0.1 + data-view-byte-offset: 1.0.0 + es-define-property: 1.0.0 + es-errors: 1.3.0 + es-object-atoms: 1.0.0 + es-set-tostringtag: 2.0.3 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 + globalthis: 1.0.4 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.2 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 + is-callable: 1.2.7 + is-data-view: 1.0.1 + is-negative-zero: 2.0.3 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.3 + is-string: 1.0.7 + is-typed-array: 1.1.13 + is-weakref: 1.0.2 + object-inspect: 1.13.2 + object-keys: 1.1.1 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.2 + safe-regex-test: 1.0.3 + string.prototype.trim: 1.2.9 + string.prototype.trimend: 1.0.8 + string.prototype.trimstart: 1.0.8 + typed-array-buffer: 1.0.2 + typed-array-byte-length: 1.0.1 + typed-array-byte-offset: 1.0.2 + typed-array-length: 1.0.6 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.15 + es-define-property@1.0.0: dependencies: get-intrinsic: 1.2.4 @@ -22675,21 +23180,35 @@ snapshots: es-module-lexer@1.2.1: {} + es-object-atoms@1.0.0: + dependencies: + es-errors: 1.3.0 + es-set-tostringtag@2.0.1: dependencies: get-intrinsic: 1.2.1 has: 1.0.3 has-tostringtag: 1.0.0 + es-set-tostringtag@2.0.3: + dependencies: + get-intrinsic: 1.2.4 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + es-shim-unscopables@1.0.0: dependencies: has: 1.0.3 + es-shim-unscopables@1.0.2: + dependencies: + hasown: 2.0.2 + es-to-primitive@1.2.1: dependencies: is-callable: 1.2.7 - is-date-object: 1.0.2 - is-symbol: 1.0.3 + is-date-object: 1.0.5 + is-symbol: 1.0.4 es5-ext@0.10.53: dependencies: @@ -22754,8 +23273,8 @@ snapshots: eslint-import-resolver-node@0.3.9: dependencies: debug: 3.2.7 - is-core-module: 2.13.0 - resolve: 1.22.4 + is-core-module: 2.15.1 + resolve: 1.22.8 transitivePeerDependencies: - supports-color @@ -23048,7 +23567,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.5 + debug: 4.3.7 escape-string-regexp: 4.0.0 eslint-scope: 8.0.2 eslint-visitor-keys: 4.0.0 @@ -23059,7 +23578,7 @@ snapshots: file-entry-cache: 8.0.0 find-up: 5.0.0 glob-parent: 6.0.2 - ignore: 5.3.1 + ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 @@ -23088,8 +23607,8 @@ snapshots: espree@9.6.1: dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) eslint-visitor-keys: 3.4.3 esprima@4.0.1: {} @@ -23373,13 +23892,13 @@ snapshots: '@nodelib/fs.walk': 1.2.8 glob-parent: 5.1.2 merge2: 1.4.1 - micromatch: 4.0.5 + micromatch: 4.0.8 fast-json-stable-stringify@2.1.0: {} fast-levenshtein@2.0.6: {} - fastq@1.15.0: + fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -23419,6 +23938,10 @@ snapshots: setimmediate: 1.0.5 ua-parser-js: 0.7.31 + fdir@6.3.0(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + fflate@0.7.4: {} figgy-pudding@3.5.1: {} @@ -23438,7 +23961,7 @@ snapshots: file-entry-cache@6.0.1: dependencies: - flat-cache: 3.0.4 + flat-cache: 3.2.0 file-entry-cache@8.0.0: dependencies: @@ -23469,6 +23992,8 @@ snapshots: dependencies: to-regex-range: 5.0.1 + filter-obj@5.1.0: {} + finalhandler@1.1.2: dependencies: debug: 2.6.9 @@ -23544,9 +24069,10 @@ snapshots: '@firebase/storage': 0.3.34(@firebase/app-types@0.6.1)(@firebase/app@0.6.4) '@firebase/util': 0.2.47 - flat-cache@3.0.4: + flat-cache@3.2.0: dependencies: - flatted: 3.2.7 + flatted: 3.3.1 + keyv: 4.5.4 rimraf: 3.0.2 flat-cache@4.0.1: @@ -23556,8 +24082,6 @@ snapshots: flat@5.0.2: {} - flatted@3.2.7: {} - flatted@3.3.1: {} flow-parser@0.131.0: {} @@ -23590,7 +24114,7 @@ snapshots: foreach@2.0.5: {} - foreground-child@3.2.1: + foreground-child@3.3.0: dependencies: cross-spawn: 7.0.3 signal-exit: 4.1.0 @@ -23703,6 +24227,13 @@ snapshots: es-abstract: 1.22.1 functions-have-names: 1.2.3 + function.prototype.name@1.1.6: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.3 + functions-have-names: 1.2.3 + functional-red-black-tree@1.0.1: {} functions-have-names@1.2.3: {} @@ -23739,7 +24270,7 @@ snapshots: dependencies: es-errors: 1.3.0 function-bind: 1.1.2 - has-proto: 1.0.1 + has-proto: 1.0.3 has-symbols: 1.0.3 hasown: 2.0.2 @@ -23778,6 +24309,12 @@ snapshots: call-bind: 1.0.2 get-intrinsic: 1.2.1 + get-symbol-description@1.0.2: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + get-tsconfig@4.2.0: {} get-value@2.0.6: {} @@ -23883,7 +24420,7 @@ snapshots: glob@10.4.5: dependencies: - foreground-child: 3.2.1 + foreground-child: 3.3.0 jackspeak: 3.4.3 minimatch: 9.0.5 minipass: 7.1.2 @@ -23917,6 +24454,15 @@ snapshots: once: 1.4.0 path-is-absolute: 1.0.1 + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + global-dirs@2.1.0: dependencies: ini: 1.3.7 @@ -23939,12 +24485,21 @@ snapshots: dependencies: type-fest: 0.20.2 + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + globals@14.0.0: {} globalthis@1.0.3: dependencies: define-properties: 1.2.0 + globalthis@1.0.4: + dependencies: + define-properties: 1.2.1 + gopd: 1.0.1 + globalyzer@0.1.0: {} globby@11.0.1: @@ -23961,7 +24516,7 @@ snapshots: array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.3.1 - ignore: 5.3.1 + ignore: 5.3.2 merge2: 1.4.1 slash: 3.0.0 @@ -23969,7 +24524,7 @@ snapshots: dependencies: dir-glob: 3.0.1 fast-glob: 3.3.1 - ignore: 5.3.1 + ignore: 5.3.2 merge2: 1.4.1 slash: 4.0.0 @@ -23986,7 +24541,7 @@ snapshots: gopd@1.0.1: dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.4 got@7.1.0: dependencies: @@ -24088,6 +24643,8 @@ snapshots: has-proto@1.0.1: {} + has-proto@1.0.3: {} + has-symbol-support-x@1.4.2: {} has-symbols@1.0.2: {} @@ -24102,6 +24659,10 @@ snapshots: dependencies: has-symbols: 1.0.3 + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.0.3 + has-unicode@2.0.1: {} has-value@0.3.1: @@ -24443,12 +25004,16 @@ snapshots: ignore@5.3.1: {} + ignore@5.3.2: {} + image-size@1.1.1: dependencies: queue: 6.0.2 immutable@4.1.0: {} + immutable@4.3.7: {} + import-cwd@3.0.0: dependencies: import-from: 3.0.0 @@ -24606,6 +25171,12 @@ snapshots: has: 1.0.3 side-channel: 1.0.4 + internal-slot@1.0.7: + dependencies: + es-errors: 1.3.0 + hasown: 2.0.2 + side-channel: 1.0.6 + internmap@1.0.1: {} internmap@2.0.3: {} @@ -24656,23 +25227,31 @@ snapshots: get-intrinsic: 1.2.1 is-typed-array: 1.1.12 + is-array-buffer@3.0.4: + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + is-arrayish@0.2.1: {} is-arrayish@0.3.2: {} is-async-function@2.0.0: dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 - is-bigint@1.0.1: {} + is-bigint@1.0.4: + dependencies: + has-bigints: 1.0.2 is-binary-path@2.1.0: dependencies: - binary-extensions: 2.1.0 + binary-extensions: 2.3.0 - is-boolean-object@1.1.0: + is-boolean-object@1.1.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.7 + has-tostringtag: 1.0.2 is-buffer@1.1.6: {} @@ -24715,7 +25294,7 @@ snapshots: dependencies: hasown: 2.0.0 - is-core-module@2.14.0: + is-core-module@2.15.1: dependencies: hasown: 2.0.2 @@ -24727,11 +25306,13 @@ snapshots: dependencies: kind-of: 6.0.3 - is-date-object@1.0.2: {} + is-data-view@1.0.1: + dependencies: + is-typed-array: 1.1.13 is-date-object@1.0.5: dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 is-decimal@1.0.3: {} @@ -24767,7 +25348,7 @@ snapshots: is-finalizationregistry@1.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.7 is-finite@1.0.2: dependencies: @@ -24791,7 +25372,7 @@ snapshots: is-generator-function@1.0.10: dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 is-generator-function@1.0.7: {} @@ -24829,11 +25410,15 @@ snapshots: is-negative-zero@2.0.2: {} + is-negative-zero@2.0.3: {} + is-node-process@1.2.0: {} is-npm@4.0.0: {} - is-number-object@1.0.4: {} + is-number-object@1.0.7: + dependencies: + has-tostringtag: 1.0.2 is-number@3.0.0: dependencies: @@ -24885,8 +25470,8 @@ snapshots: is-regex@1.1.4: dependencies: - call-bind: 1.0.2 - has-tostringtag: 1.0.0 + call-bind: 1.0.7 + has-tostringtag: 1.0.2 is-resolvable@1.1.0: {} @@ -24898,6 +25483,10 @@ snapshots: dependencies: call-bind: 1.0.2 + is-shared-array-buffer@1.0.3: + dependencies: + call-bind: 1.0.7 + is-ssh@1.3.1: dependencies: protocols: 1.4.7 @@ -24910,13 +25499,13 @@ snapshots: is-string@1.0.7: dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 is-svg@3.0.0: dependencies: html-comment-regex: 1.1.2 - is-symbol@1.0.3: + is-symbol@1.0.4: dependencies: has-symbols: 1.0.3 @@ -24928,6 +25517,10 @@ snapshots: dependencies: which-typed-array: 1.1.11 + is-typed-array@1.1.13: + dependencies: + which-typed-array: 1.1.15 + is-typed-array@1.1.5: dependencies: available-typed-arrays: 1.0.2 @@ -24948,7 +25541,7 @@ snapshots: is-weakref@1.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.7 is-weakset@2.0.2: dependencies: @@ -24979,6 +25572,8 @@ snapshots: isbinaryfile@4.0.8: {} + isbinaryfile@5.0.2: {} + isexe@2.0.0: {} isobject@2.1.0: @@ -25824,10 +26419,10 @@ snapshots: jsx-ast-utils@3.3.5: dependencies: - array-includes: 3.1.6 - array.prototype.flat: 1.3.1 - object.assign: 4.1.4 - object.values: 1.1.6 + array-includes: 3.1.8 + array.prototype.flat: 1.3.2 + object.assign: 4.1.5 + object.values: 1.2.0 junk@1.0.3: {} @@ -26891,6 +27486,11 @@ snapshots: braces: 3.0.2 picomatch: 2.3.1 + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + miller-rabin@4.0.1: dependencies: bn.js: 4.11.9 @@ -27030,6 +27630,13 @@ snapshots: mkdirp@3.0.1: {} + mlly@1.7.1: + dependencies: + acorn: 8.11.3 + pathe: 1.1.2 + pkg-types: 1.2.0 + ufo: 1.5.4 + modify-values@1.0.1: {} module-details-from-path@1.0.3: {} @@ -27059,7 +27666,7 @@ snapshots: int64-buffer: 0.1.10 isarray: 1.0.0 - msw@2.3.0(typescript@5.5.3): + msw@2.3.0(typescript@5.6.2): dependencies: '@bundled-es-modules/cookie': 2.0.0 '@bundled-es-modules/statuses': 1.0.1 @@ -27079,7 +27686,7 @@ snapshots: type-fest: 4.18.3 yargs: 17.7.2 optionalDependencies: - typescript: 5.5.3 + typescript: 5.6.2 multimatch@2.1.0: dependencies: @@ -27106,7 +27713,7 @@ snapshots: nanoid@3.1.32: {} - nanoid@3.3.6: {} + nanoid@3.3.7: {} nanomatch@1.2.13: dependencies: @@ -27408,6 +28015,8 @@ snapshots: object-inspect@1.12.3: {} + object-inspect@1.13.2: {} + object-is@1.0.2: {} object-keys@0.4.0: {} @@ -27425,6 +28034,13 @@ snapshots: has-symbols: 1.0.3 object-keys: 1.1.1 + object.assign@4.1.5: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + has-symbols: 1.0.3 + object-keys: 1.1.1 + object.entries@1.1.6: dependencies: call-bind: 1.0.2 @@ -27483,6 +28099,12 @@ snapshots: define-properties: 1.2.0 es-abstract: 1.22.1 + object.values@1.2.0: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-object-atoms: 1.0.0 + octokit@3.1.0: dependencies: '@octokit/app': 14.0.0 @@ -27572,7 +28194,7 @@ snapshots: dependencies: chalk: 3.0.0 cli-cursor: 3.1.0 - cli-spinners: 2.6.1 + cli-spinners: 2.9.2 is-interactive: 1.0.0 log-symbols: 3.0.0 mute-stream: 0.0.8 @@ -27691,6 +28313,8 @@ snapshots: registry-url: 5.1.0 semver: 6.3.1 + package-manager-detector@0.1.2: {} + pacote@11.2.6: dependencies: '@npmcli/git': 2.0.4 @@ -27899,6 +28523,8 @@ snapshots: path-type@4.0.0: {} + pathe@1.1.2: {} + pause-stream@0.0.11: dependencies: through: 2.3.8 @@ -27923,10 +28549,14 @@ snapshots: picocolors@1.0.1: {} + picocolors@1.1.0: {} + picomatch@2.3.1: {} picomatch@4.0.1: {} + picomatch@4.0.2: {} + pidtree@0.3.0: {} pidtree@0.6.0: {} @@ -27970,6 +28600,23 @@ snapshots: dependencies: find-up: 4.1.0 + pkg-pr-new@0.0.24: + dependencies: + '@jsdevtools/ez-spawn': 3.0.4 + '@octokit/action': 6.1.0 + ignore: 5.3.2 + isbinaryfile: 5.0.2 + package-manager-detector: 0.1.2 + pkg-types: 1.2.0 + query-registry: 3.0.1 + tinyglobby: 0.2.6 + + pkg-types@1.2.0: + dependencies: + confbox: 0.1.7 + mlly: 1.7.1 + pathe: 1.1.2 + pkg-up@3.1.0: dependencies: find-up: 3.0.0 @@ -28000,6 +28647,8 @@ snapshots: posix-character-classes@0.1.1: {} + possible-typed-array-names@1.0.0: {} + postcss-attribute-case-insensitive@5.0.0(postcss@8.4.31): dependencies: postcss: 8.4.31 @@ -28647,9 +29296,9 @@ snapshots: postcss@8.4.31: dependencies: - nanoid: 3.3.6 - picocolors: 1.0.0 - source-map-js: 1.0.2 + nanoid: 3.3.7 + picocolors: 1.1.0 + source-map-js: 1.2.1 pprof-format@2.0.7: {} @@ -28844,6 +29493,8 @@ snapshots: punycode@2.1.1: {} + punycode@2.3.1: {} + pupa@2.1.1: dependencies: escape-goat: 2.1.1 @@ -28877,6 +29528,21 @@ snapshots: transitivePeerDependencies: - encoding + query-registry@3.0.1: + dependencies: + query-string: 9.1.0 + quick-lru: 7.0.0 + url-join: 5.0.0 + validate-npm-package-name: 5.0.1 + zod: 3.23.8 + zod-package-json: 1.0.3 + + query-string@9.1.0: + dependencies: + decode-uri-component: 0.4.1 + filter-obj: 5.1.0 + split-on-first: 3.0.0 + querystring-es3@0.2.1: {} querystring@0.2.0: {} @@ -28893,6 +29559,8 @@ snapshots: quick-lru@5.1.1: {} + quick-lru@7.0.0: {} + quotation@1.1.3: {} random-seed@0.3.0: @@ -29277,6 +29945,13 @@ snapshots: define-properties: 1.2.0 functions-have-names: 1.2.3 + regexp.prototype.flags@1.5.2: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-errors: 1.3.0 + set-function-name: 2.0.2 + regexpp@3.1.0: {} regexpu-core@5.3.2: @@ -29518,7 +30193,7 @@ snapshots: resolve@1.22.8: dependencies: - is-core-module: 2.14.0 + is-core-module: 2.15.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -29602,7 +30277,7 @@ snapshots: rimraf@3.0.2: dependencies: - glob: 7.1.7 + glob: 7.2.3 rimraf@5.0.9: dependencies: @@ -29706,6 +30381,13 @@ snapshots: has-symbols: 1.0.3 isarray: 2.0.5 + safe-array-concat@1.1.2: + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + has-symbols: 1.0.3 + isarray: 2.0.5 + safe-buffer@5.1.2: {} safe-buffer@5.2.0: {} @@ -29720,6 +30402,12 @@ snapshots: get-intrinsic: 1.2.1 is-regex: 1.1.4 + safe-regex-test@1.0.3: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-regex: 1.1.4 + safe-regex@1.1.0: dependencies: ret: 0.1.15 @@ -29743,8 +30431,8 @@ snapshots: sass@1.77.8: dependencies: chokidar: 3.6.0 - immutable: 4.1.0 - source-map-js: 1.0.2 + immutable: 4.3.7 + source-map-js: 1.2.1 satori@0.10.9: dependencies: @@ -29874,6 +30562,13 @@ snapshots: gopd: 1.0.1 has-property-descriptors: 1.0.2 + set-function-name@2.0.2: + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.2 + set-value@2.0.1: dependencies: extend-shallow: 2.0.1 @@ -29949,6 +30644,13 @@ snapshots: get-intrinsic: 1.2.1 object-inspect: 1.12.2 + side-channel@1.0.6: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + object-inspect: 1.13.2 + signal-exit@3.0.3: {} signal-exit@3.0.7: {} @@ -30064,6 +30766,8 @@ snapshots: source-map-js@1.0.2: {} + source-map-js@1.2.1: {} + source-map-loader@5.0.0(webpack@5.90.0(@swc/core@1.7.0-nightly-20240714.1(@swc/helpers@0.5.13))): dependencies: iconv-lite: 0.6.3 @@ -30137,6 +30841,8 @@ snapshots: spdx-license-ids@3.0.5: {} + split-on-first@3.0.0: {} + split-string@3.1.0: dependencies: extend-shallow: 3.0.2 @@ -30310,6 +31016,13 @@ snapshots: define-properties: 1.2.0 es-abstract: 1.22.1 + string.prototype.trim@1.2.9: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.3 + es-object-atoms: 1.0.0 + string.prototype.trimend@1.0.5: dependencies: call-bind: 1.0.2 @@ -30322,6 +31035,12 @@ snapshots: define-properties: 1.2.0 es-abstract: 1.22.1 + string.prototype.trimend@1.0.8: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-object-atoms: 1.0.0 + string.prototype.trimstart@1.0.5: dependencies: call-bind: 1.0.2 @@ -30334,6 +31053,12 @@ snapshots: define-properties: 1.2.0 es-abstract: 1.22.1 + string.prototype.trimstart@1.0.8: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-object-atoms: 1.0.0 + string_decoder@0.10.31: {} string_decoder@1.1.1: @@ -30377,7 +31102,7 @@ snapshots: strip-ansi@7.1.0: dependencies: - ansi-regex: 6.0.1 + ansi-regex: 6.1.0 strip-bom@2.0.0: dependencies: @@ -30765,6 +31490,11 @@ snapshots: tinydate@1.2.0: {} + tinyglobby@0.2.6: + dependencies: + fdir: 6.3.0(picomatch@4.0.2) + picomatch: 4.0.2 + title-case@3.0.3: dependencies: tslib: 2.6.3 @@ -30901,6 +31631,8 @@ snapshots: tslib@2.6.3: {} + tslib@2.7.0: {} + tsutils@3.21.0(typescript@5.5.3): dependencies: tslib: 1.14.1 @@ -30986,6 +31718,12 @@ snapshots: get-intrinsic: 1.2.1 is-typed-array: 1.1.12 + typed-array-buffer@1.0.2: + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-typed-array: 1.1.13 + typed-array-byte-length@1.0.0: dependencies: call-bind: 1.0.2 @@ -30993,6 +31731,14 @@ snapshots: has-proto: 1.0.1 is-typed-array: 1.1.12 + typed-array-byte-length@1.0.1: + dependencies: + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + typed-array-byte-offset@1.0.0: dependencies: available-typed-arrays: 1.0.5 @@ -31001,12 +31747,30 @@ snapshots: has-proto: 1.0.1 is-typed-array: 1.1.12 + typed-array-byte-offset@1.0.2: + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + typed-array-length@1.0.4: dependencies: call-bind: 1.0.2 for-each: 0.3.3 is-typed-array: 1.1.12 + typed-array-length@1.0.6: + dependencies: + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + possible-typed-array-names: 1.0.0 + typedarray-to-buffer@3.1.5: dependencies: is-typedarray: 1.0.0 @@ -31025,10 +31789,15 @@ snapshots: typescript@5.5.3: {} + typescript@5.6.2: + optional: true + ua-parser-js@0.7.31: {} ua-parser-js@1.0.35: {} + ufo@1.5.4: {} + uglify-js@3.17.4: optional: true @@ -31040,7 +31809,7 @@ snapshots: unbox-primitive@1.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.7 has-bigints: 1.0.2 has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 @@ -31051,6 +31820,8 @@ snapshots: dependencies: '@fastify/busboy': 2.0.0 + undici@6.19.8: {} + unfetch@4.2.0: {} unherit@1.1.2: @@ -31301,12 +32072,14 @@ snapshots: uri-js@4.4.1: dependencies: - punycode: 2.1.1 + punycode: 2.3.1 urix@0.1.0: {} url-join@4.0.1: {} + url-join@5.0.0: {} + url-parse-lax@1.0.0: dependencies: prepend-http: 1.0.4 @@ -31685,11 +32458,11 @@ snapshots: which-boxed-primitive@1.0.2: dependencies: - is-bigint: 1.0.1 - is-boolean-object: 1.1.0 - is-number-object: 1.0.4 + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-number-object: 1.0.7 is-string: 1.0.7 - is-symbol: 1.0.3 + is-symbol: 1.0.4 which-builtin-type@1.1.3: dependencies: @@ -31723,6 +32496,14 @@ snapshots: gopd: 1.0.1 has-tostringtag: 1.0.0 + which-typed-array@1.1.15: + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-tostringtag: 1.0.2 + which-typed-array@1.1.4: dependencies: available-typed-arrays: 1.0.2 @@ -31869,6 +32650,8 @@ snapshots: yaml@2.3.4: {} + yaml@2.5.1: {} + yargs-parser@15.0.0: dependencies: camelcase: 5.3.1 @@ -31933,6 +32716,10 @@ snapshots: yoga-wasm-web@0.3.3: {} + zod-package-json@1.0.3: + dependencies: + zod: 3.23.8 + zod-validation-error@2.1.0(zod@3.23.8): dependencies: zod: 3.23.8 From e8e9bfbfd9d7a33b2280bf717e4f6a5d71d3c4cd Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Mon, 16 Sep 2024 16:03:12 -0700 Subject: [PATCH 02/17] Fixes small issues, adds support for custom Next.js versions, adds styling --- packages/next-upgrade/index.ts | 190 ++++++++++++---------- packages/next-upgrade/package.json | 1 + pnpm-lock.yaml | 252 +---------------------------- 3 files changed, 116 insertions(+), 327 deletions(-) diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index e63cc186c09b6..38118c8791cdc 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -6,102 +6,122 @@ import { execSync } from 'child_process' import path from 'path' import { compareVersions } from 'compare-versions' import yaml from 'yaml' +import chalk from 'chalk' -type VersionSpecifier = 'canary' | 'rc' | 'latest' +type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' +type CustomVersionSpecifier = string +type VersionSpecifier = StandardVersionSpecifier | CustomVersionSpecifier type PackageManager = 'pnpm' | 'npm' | 'yarn' interface Response { - version: VersionSpecifier + version: StandardVersionSpecifier } async function run(): Promise { - let targetVersionSpecifier: VersionSpecifier + let targetNextPackageJson + let targetVersionSpecifier: VersionSpecifier = '' - let nextPackageJson: { [key: string]: any } = {} - try { - const resCanary = await fetch(`https://registry.npmjs.org/next/canary`) - nextPackageJson['canary'] = await resCanary.json() + const shortcutVersion = process.argv[2]?.replace('@', '') + if (shortcutVersion) { + const res = await fetch( + `https://registry.npmjs.org/next/${shortcutVersion}` + ) + if (res.status === 200) { + targetNextPackageJson = await res.json() + targetVersionSpecifier = targetNextPackageJson.version + } else { + console.error( + `${chalk.yellow('Next.js ' + shortcutVersion)} does not exist. Check available versions at ${chalk.underline('https://www.npmjs.com/package/next?activeTab=versions')}, or choose one from below\n` + ) + } + } - const resRc = await fetch(`https://registry.npmjs.org/next/rc`) - nextPackageJson['rc'] = await resRc.json() + if (!targetNextPackageJson) { + let nextPackageJson: { [key: string]: any } = {} + try { + const resCanary = await fetch(`https://registry.npmjs.org/next/canary`) + nextPackageJson['canary'] = await resCanary.json() - const resLatest = await fetch(`https://registry.npmjs.org/next/latest`) - nextPackageJson['latest'] = await resLatest.json() - } catch (error) { - console.error('Failed to fetch versions from npm registry.') - return - } + const resRc = await fetch(`https://registry.npmjs.org/next/rc`) + nextPackageJson['rc'] = await resRc.json() - let showRc = true - if (nextPackageJson['latest'].version && nextPackageJson['rc'].version) { - showRc = - compareVersions( - nextPackageJson['rc'].version, - nextPackageJson['latest'].version - ) === 1 - } + const resLatest = await fetch(`https://registry.npmjs.org/next/latest`) + nextPackageJson['latest'] = await resLatest.json() + } catch (error) { + console.error('Failed to fetch versions from npm registry.') + return + } - const choices = [ - { - title: 'Canary', - value: 'canary', - description: `Experimental version with latest features (${nextPackageJson['canary'].version})`, - }, - ] - if (showRc) { - choices.push({ - title: 'Latest Release Candidate', - value: 'rc', - description: `Pre-release version for final testing (${nextPackageJson['rc'].version})`, - }) - } - choices.push({ - title: 'Latest Stable', - value: 'latest', - description: `Production-ready release (${nextPackageJson['latest'].version})`, - }) + let showRc = true + if (nextPackageJson['latest'].version && nextPackageJson['rc'].version) { + showRc = + compareVersions( + nextPackageJson['rc'].version, + nextPackageJson['latest'].version + ) === 1 + } - const shortcutVersion = process.argv[2]?.replace('@', '') - if (['canary', 'rc', 'latest'].includes(shortcutVersion)) { - // Shortcut - targetVersionSpecifier = shortcutVersion as VersionSpecifier - } else { - const initialVersionSpecifierIdx = await processCurrentVersion() - - const response: Response = await prompts({ - type: 'select', - name: 'version', - message: 'What Next.js version do you want to upgrade to?', - choices: choices, - initial: initialVersionSpecifierIdx, + const choices = [ + { + title: 'Canary', + value: 'canary', + description: `Experimental version with latest features (${nextPackageJson['canary'].version})`, + }, + ] + if (showRc) { + choices.push({ + title: 'Release Candidate', + value: 'rc', + description: `Pre-release version for final testing (${nextPackageJson['rc'].version})`, + }) + } + choices.push({ + title: 'Stable', + value: 'latest', + description: `Production-ready release (${nextPackageJson['latest'].version})`, }) - if (!response.version) { - return - } + const initialVersionSpecifierIdx = await processCurrentVersion(showRc) + + const response: Response = await prompts( + { + type: 'select', + name: 'version', + message: 'What Next.js version do you want to upgrade to?', + choices: choices, + initial: initialVersionSpecifierIdx, + }, + { onCancel: () => process.exit(0) } + ) + targetNextPackageJson = nextPackageJson[response.version] targetVersionSpecifier = response.version } - // TODO(LichuAcu): support Turborepo const appPackageJsonPath = path.resolve(process.cwd(), 'package.json') let appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) - const targetNextPackageJson = nextPackageJson[targetVersionSpecifier] - - if (targetNextPackageJson.version) { - if (compareVersions(targetNextPackageJson.version, '15.0.0-canary') >= 0) { - await suggestTurbopack(appPackageJson) - } + if ( + targetNextPackageJson.version && + compareVersions(targetNextPackageJson.version, '15.0.0-canary') >= 0 + ) { + await suggestTurbopack(appPackageJson) } fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) - // TODO(LichuAcu): keep the original styling of the file - console.log('\nUpdating depencies...\n') + console.log( + `Upgrading your project to ${chalk.blueBright('Next.js ' + targetVersionSpecifier)}...\n` + ) let packageManager: PackageManager = getPackageManager(appPackageJson) - const dependencies = `react@${targetNextPackageJson.peerDependencies['react']} react-dom@${targetNextPackageJson.peerDependencies['react-dom']} next@${targetVersionSpecifier}` + const dependencies = [ + `react@${targetNextPackageJson.peerDependencies['react']}`, + `@types/react@${targetNextPackageJson.devDependencies['@types/react']}`, + `react-dom@${targetNextPackageJson.peerDependencies['react-dom']}`, + `@types/react-dom@${targetNextPackageJson.devDependencies['@types/react-dom']}`, + `next@${targetNextPackageJson.version}`, + ].join(' ') let updateCommand switch (packageManager) { @@ -128,7 +148,7 @@ async function run(): Promise { fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) console.log( - '\nYour Next.js project has been upgraded successfully. Time to ship! 🚢' + `\n${chalk.green('✔')} Your Next.js project has been upgraded successfully. ${chalk.bold('Time to ship! 🚢')}` ) } @@ -136,8 +156,8 @@ async function run(): Promise { * Logs the current version and returns the index of the current version specifier * in the array ['canary', 'rc', 'latest'] */ -async function processCurrentVersion(): Promise { - // TODO(LichuAcu): support Turborepo +async function processCurrentVersion(showRc: boolean): Promise { + // TODO(LichuAcu): support other package managers const appLockFilePath = path.resolve(process.cwd(), 'pnpm-lock.yaml') if (fs.existsSync(appLockFilePath)) { const appLockFileContent = fs.readFileSync(appLockFilePath, 'utf8') @@ -147,7 +167,7 @@ async function processCurrentVersion(): Promise { if (appNextDependency) { if (appNextDependency.version) { console.log( - `You are currently using Next.js ${appNextDependency.version.split('(')[0]}` + `You are currently using ${chalk.blueBright('Next.js ' + appNextDependency.version.split('(')[0])}` ) } if (appNextDependency.specifier) { @@ -155,9 +175,9 @@ async function processCurrentVersion(): Promise { case 'canary': return 0 case 'rc': - return 1 + return 1 // If rc is not available, will default to the latest version case 'latest': - return 2 + return showRc ? 2 : 1 default: return 0 } @@ -187,16 +207,22 @@ async function suggestTurbopack(packageJson: any): Promise { const devScript = packageJson.scripts['dev'] if (devScript.includes('--turbo')) return - const responseTurbopack = await prompts({ - type: 'confirm', - name: 'enable', - message: - 'Turbopack is stable for development in this version. Do you want to enable it?', - initial: true, - }) + const responseTurbopack = await prompts( + { + type: 'confirm', + name: 'enable', + message: + 'Turbopack is stable for development in this version. Do you want to enable it?', + initial: true, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) // TODO(LichuAcu): handle ctrl-c - if (!responseTurbopack.enable) { return } diff --git a/packages/next-upgrade/package.json b/packages/next-upgrade/package.json index 5f1e69a99fdc6..80fa44df0ddf8 100644 --- a/packages/next-upgrade/package.json +++ b/packages/next-upgrade/package.json @@ -17,6 +17,7 @@ "author": "Next.js Team ", "license": "MIT", "dependencies": { + "chalk": "5.3.0", "compare-versions": "6.1.1", "prompts": "^2.4.2", "yaml": "2.5.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e053ab2e2b0d..2b0e8442060f3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -857,7 +857,7 @@ importers: version: 0.5.13 babel-plugin-react-compiler: specifier: '*' - version: 0.0.0-experimental-2bc6fec-20240910 + version: 0.0.0-experimental-23b8160-20240916 busboy: specifier: 1.6.0 version: 1.6.0 @@ -1586,12 +1586,12 @@ importers: packages/next-upgrade: dependencies: + chalk: + specifier: 5.3.0 + version: 5.3.0 compare-versions: specifier: 6.1.1 version: 6.1.1 - pkg-pr-new: - specifier: 0.0.24 - version: 0.0.24 prompts: specifier: ^2.4.2 version: 2.4.2 @@ -3857,10 +3857,6 @@ packages: '@jridgewell/trace-mapping@0.3.22': resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==} - '@jsdevtools/ez-spawn@3.0.4': - resolution: {integrity: sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==} - engines: {node: '>=10'} - '@lerna/add@4.0.0': resolution: {integrity: sha512-cpmAH1iS3k8JBxNvnMqrGTTjbY/ZAiKa1ChJzFevMYY3eeqbvhsBKnBcxjRXtdrJ6bd3dCQM+ZtK+0i682Fhng==} engines: {node: '>= 10.18.0'} @@ -4254,18 +4250,10 @@ packages: '@npmcli/run-script@1.8.3': resolution: {integrity: sha512-ELPGWAVU/xyU+A+H3pEPj0QOvYwLTX71RArXcClFzeiyJ/b/McsZ+d0QxpznvfFtZzxGN/gz/1cvlqICR4/suQ==} - '@octokit/action@6.1.0': - resolution: {integrity: sha512-lo+nHx8kAV86bxvOVOI3vFjX3gXPd/L7guAUbvs3pUvnR2KC+R7yjBkA1uACt4gYhs4LcWP3AXSGQzsbeN2XXw==} - engines: {node: '>= 18'} - '@octokit/app@14.0.0': resolution: {integrity: sha512-g/zDXttroZ9Se08shK0d0d/j0cgSA+h4WV7qGUevNEM0piNBkIlfb4Fm6bSwCNAZhNf72mBgERmYOoxicPkqdw==} engines: {node: '>= 18'} - '@octokit/auth-action@4.1.0': - resolution: {integrity: sha512-m+3t7K46IYyMk7Bl6/lF4Rv09GqDZjYmNg8IWycJ2Fa3YE3DE7vQcV6G2hUPmR9NDqenefNJwVtlisMjzymPiQ==} - engines: {node: '>= 18'} - '@octokit/auth-app@6.0.0': resolution: {integrity: sha512-OKct7Rukf3g9DjpzcpdacQsdmd6oPrJ7fZND22JkjzhDvfhttUOnmh+qPS4kHhaNNyTxqSThnfrUWvkqNLd1nw==} engines: {node: '>= 18'} @@ -4329,12 +4317,6 @@ packages: '@octokit/openapi-types@18.0.0': resolution: {integrity: sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==} - '@octokit/openapi-types@20.0.0': - resolution: {integrity: sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==} - - '@octokit/openapi-types@22.2.0': - resolution: {integrity: sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==} - '@octokit/openapi-types@4.0.2': resolution: {integrity: sha512-quqmeGTjcVks8YaatVGCpt7QpUTs2PK0D3mW5aEQqmFKOuIZ/CxwWrgnggPjqP3CNp6eALdQRgf0jUpcG8X1/Q==} @@ -4358,23 +4340,11 @@ packages: peerDependencies: '@octokit/core': '>=5' - '@octokit/plugin-paginate-rest@9.2.1': - resolution: {integrity: sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==} - engines: {node: '>= 18'} - peerDependencies: - '@octokit/core': '5' - '@octokit/plugin-request-log@1.0.3': resolution: {integrity: sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==} peerDependencies: '@octokit/core': '>=3' - '@octokit/plugin-rest-endpoint-methods@10.4.1': - resolution: {integrity: sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==} - engines: {node: '>= 18'} - peerDependencies: - '@octokit/core': '5' - '@octokit/plugin-rest-endpoint-methods@4.10.1': resolution: {integrity: sha512-YGMiEidTORzgUmYZu0eH4q2k8kgQSHQMuBOBYiKxUYs/nXea4q/Ze6tDzjcRAPmHNJYXrENs1bEMlcdGKT+8ug==} peerDependencies: @@ -4422,12 +4392,6 @@ packages: '@octokit/types@11.1.0': resolution: {integrity: sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==} - '@octokit/types@12.6.0': - resolution: {integrity: sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==} - - '@octokit/types@13.5.0': - resolution: {integrity: sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==} - '@octokit/types@6.8.3': resolution: {integrity: sha512-ZNAy8z77ewKZ5LCX0KaUm4tWdgloWQ6FWJCh06qgahq/MH13sQefIPKSo0dBdPU3bcioltyZUcC0k8oHHfjvnQ==} @@ -5997,8 +5961,8 @@ packages: peerDependencies: '@babel/core': 7.22.5 - babel-plugin-react-compiler@0.0.0-experimental-2bc6fec-20240910: - resolution: {integrity: sha512-ktoe5CVIGdUyos1SprZiobQtx4IdNFsoUKaKf58e6NOlycNBNkDr8V/j1lmqPfwIp/dxQYIZpV04xwzpfFqFKw==} + babel-plugin-react-compiler@0.0.0-experimental-23b8160-20240916: + resolution: {integrity: sha512-Ou/Jo2dxmTEYOsvsYzykhLMsDDcH+ol8zp5ZzudzQAEia08aqa7lzJf9CC0nh2paPmk1tv7uWlflZYB+PMzljw==} babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: resolution: {integrity: sha512-0XN2gmpT55QtAz5n7d5g91y1AuO9tRhWBaLgCRyc4ExHrlr7+LfxW+YTb3mOwxngkkiggwM8HyYsaEK9MqhnlQ==} @@ -6243,9 +6207,6 @@ packages: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} - call-me-maybe@1.0.2: - resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} - caller-callsite@2.0.0: resolution: {integrity: sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==} engines: {node: '>=4'} @@ -6685,9 +6646,6 @@ packages: resolution: {integrity: sha512-lRNyt+iRD4plYaOSVTxu1zPWpaH0EOxgFIR1l3mpC/DGZ7XzhoGFMKmbl54LAgXcSu6knqWgOwdINkqm58N85A==} engines: {node: '>=8'} - confbox@0.1.7: - resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} - config-chain@1.1.12: resolution: {integrity: sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==} @@ -7358,10 +7316,6 @@ packages: resolution: {integrity: sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==} engines: {node: '>=0.10'} - decode-uri-component@0.4.1: - resolution: {integrity: sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==} - engines: {node: '>=14.16'} - decompress-response@3.3.0: resolution: {integrity: sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==} engines: {node: '>=4'} @@ -8269,14 +8223,6 @@ packages: fbjs@3.0.2: resolution: {integrity: sha512-qv+boqYndjElAJHNN3NoM8XuwQZ1j2m3kEvTgdle8IDjr6oUbkEpvABWtj/rQl3vq4ew7dnElBxL4YJAwTVqQQ==} - fdir@6.3.0: - resolution: {integrity: sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ==} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fflate@0.7.4: resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==} @@ -8330,10 +8276,6 @@ packages: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} - filter-obj@5.1.0: - resolution: {integrity: sha512-qWeTREPoT7I0bifpPUXtxkZJ1XJzxWtfoWWkdVGqa+eCr3SHW/Ocp89o8vLvbUuQnadybJpjOKu4V+RwO6sGng==} - engines: {node: '>=14.16'} - finalhandler@1.1.2: resolution: {integrity: sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==} engines: {node: '>= 0.8'} @@ -9745,10 +9687,6 @@ packages: resolution: {integrity: sha512-53h6XFniq77YdW+spoRrebh0mnmTxRPTlcuIArO57lmMdq4uBKFKaeTjnb92oYWrSn/LVL+LT+Hap2tFQj8V+w==} engines: {node: '>= 8.0.0'} - isbinaryfile@5.0.2: - resolution: {integrity: sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==} - engines: {node: '>= 18.0.0'} - isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -11021,9 +10959,6 @@ packages: engines: {node: '>=10'} hasBin: true - mlly@1.7.1: - resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} - modify-values@1.0.1: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} @@ -11620,9 +11555,6 @@ packages: resolution: {integrity: sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==} engines: {node: '>=8'} - package-manager-detector@0.1.2: - resolution: {integrity: sha512-iePyefLTOm2gEzbaZKSW+eBMjg+UYsQvUKxmvGXAQ987K16efBg10MxIjZs08iyX+DY2/owKY9DIdu193kX33w==} - pacote@11.2.6: resolution: {integrity: sha512-xCl++Hb3aBC7LaWMimbO4xUqZVsEbKDVc6KKDIIyAeBYrmMwY1yJC2nES/lsGd8sdQLUosgBxQyuVNncZ2Ru0w==} engines: {node: '>=10'} @@ -11793,9 +11725,6 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} - pathe@1.1.2: - resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - pause-stream@0.0.11: resolution: {integrity: sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==} @@ -11826,10 +11755,6 @@ packages: resolution: {integrity: sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg==} engines: {node: '>=12'} - picomatch@4.0.2: - resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} - engines: {node: '>=12'} - pidtree@0.3.0: resolution: {integrity: sha512-9CT4NFlDcosssyg8KVFltgokyKZIFjoBxw8CTGy+5F38Y1eQWrt8tRayiUOXE+zVKQnYu5BR8JjCtvK3BcnBhg==} engines: {node: '>=0.10'} @@ -11887,13 +11812,6 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} - pkg-pr-new@0.0.24: - resolution: {integrity: sha512-jzHuU0HLHEh3jNHQD7yZhxXM8CV8W+qdR0Ii5cxwm+t73kAvyZ9DkcDP4X1ZarX6DGnoibuuSOgWKYtQbjWsRQ==} - hasBin: true - - pkg-types@1.2.0: - resolution: {integrity: sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==} - pkg-up@3.1.0: resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} engines: {node: '>=8'} @@ -12790,14 +12708,6 @@ packages: resolution: {integrity: sha512-Z5oNq7qH0g96qBTx2jAvS0X71hKP4tETtSJKEl6BdihzYqh9QKiJQBMT7qIQuzxR9lxfiso+aXCFhZ+EcAoppQ==} engines: {node: '>=12'} - query-registry@3.0.1: - resolution: {integrity: sha512-M9RxRITi2mHMVPU5zysNjctUT8bAPx6ltEXo/ir9+qmiM47Y7f0Ir3+OxUO5OjYAWdicBQRew7RtHtqUXydqlg==} - engines: {node: '>=20'} - - query-string@9.1.0: - resolution: {integrity: sha512-t6dqMECpCkqfyv2FfwVS1xcB6lgXW/0XZSaKdsCNGYkqMO76AFiJEg4vINzoDKcZa6MS7JX+OHIjwh06K5vczw==} - engines: {node: '>=18'} - querystring-es3@0.2.1: resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==} engines: {node: '>=0.4.x'} @@ -12824,10 +12734,6 @@ packages: resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} engines: {node: '>=10'} - quick-lru@7.0.0: - resolution: {integrity: sha512-MX8gB7cVYTrYcFfAnfLlhRd0+Toyl8yX8uBx1MrX7K0jegiz9TumwOK27ldXrgDlHRdVi+MqU9Ssw6dr4BNreg==} - engines: {node: '>=18'} - quotation@1.1.3: resolution: {integrity: sha512-45gUgmX/RtQOQV1kwM06boP49OYXcKCPrYwdmAvs5YqkpiobhNKKwo524JM6Ma0ko3oN9tXNcWs9+ABq3Ry7YA==} @@ -13878,10 +13784,6 @@ packages: spdx-license-ids@3.0.5: resolution: {integrity: sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==} - split-on-first@3.0.0: - resolution: {integrity: sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA==} - engines: {node: '>=12'} - split-string@3.1.0: resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==} engines: {node: '>=0.10.0'} @@ -14409,10 +14311,6 @@ packages: resolution: {integrity: sha512-3GwPk8VhDFnUZ2TrgkhXJs6hcMAIIw4x/xkz+ayK6dGoQmp2nUwKzBXK0WnMsqkh6vfUhpqQicQF3rbshfyJkg==} engines: {node: '>=4'} - tinyglobby@0.2.6: - resolution: {integrity: sha512-NbBoFBpqfcgd1tCiO8Lkfdk+xrA7mlLR9zgvZcZWQQwU63XAfUePyd6wZBaU93Hqw347lHnwFzttAkemHzzz4g==} - engines: {node: '>=12.0.0'} - title-case@3.0.3: resolution: {integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==} @@ -14748,9 +14646,6 @@ packages: ua-parser-js@1.0.35: resolution: {integrity: sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==} - ufo@1.5.4: - resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} - uglify-js@3.17.4: resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==} engines: {node: '>=0.8.0'} @@ -14777,10 +14672,6 @@ packages: resolution: {integrity: sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==} engines: {node: '>=14.0'} - undici@6.19.8: - resolution: {integrity: sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==} - engines: {node: '>=18.17'} - unfetch@4.2.0: resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} @@ -14982,10 +14873,6 @@ packages: url-join@4.0.1: resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} - url-join@5.0.0: - resolution: {integrity: sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - url-parse-lax@1.0.0: resolution: {integrity: sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==} engines: {node: '>=0.10.0'} @@ -15510,10 +15397,6 @@ packages: yoga-wasm-web@0.3.3: resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==} - zod-package-json@1.0.3: - resolution: {integrity: sha512-Mb6GzuRyUEl8X+6V6xzHbd4XV0au/4gOYrYP+CAfHL32uPmGswES+v2YqonZiW1NZWVA3jkssCKSU2knonm/aQ==} - engines: {node: '>=20'} - zod-validation-error@2.1.0: resolution: {integrity: sha512-VJh93e2wb4c3tWtGgTa0OF/dTt/zoPCPzXq4V11ZjxmEAFaPi/Zss1xIZdEB5RD8GD00U0/iVXgqkF77RV7pdQ==} engines: {node: '>=18.0.0'} @@ -18256,13 +18139,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 - '@jsdevtools/ez-spawn@3.0.4': - dependencies: - call-me-maybe: 1.0.2 - cross-spawn: 7.0.3 - string-argv: 0.3.2 - type-detect: 4.0.8 - '@lerna/add@4.0.0': dependencies: '@lerna/bootstrap': 4.0.0 @@ -18946,15 +18822,6 @@ snapshots: puka: 1.0.1 read-package-json-fast: 2.0.1 - '@octokit/action@6.1.0': - dependencies: - '@octokit/auth-action': 4.1.0 - '@octokit/core': 5.0.0 - '@octokit/plugin-paginate-rest': 9.2.1(@octokit/core@5.0.0) - '@octokit/plugin-rest-endpoint-methods': 10.4.1(@octokit/core@5.0.0) - '@octokit/types': 12.6.0 - undici: 6.19.8 - '@octokit/app@14.0.0': dependencies: '@octokit/auth-app': 6.0.0 @@ -18965,11 +18832,6 @@ snapshots: '@octokit/types': 11.1.0 '@octokit/webhooks': 12.0.3 - '@octokit/auth-action@4.1.0': - dependencies: - '@octokit/auth-token': 4.0.0 - '@octokit/types': 13.5.0 - '@octokit/auth-app@6.0.0': dependencies: '@octokit/auth-oauth-app': 7.0.0 @@ -19089,10 +18951,6 @@ snapshots: '@octokit/openapi-types@18.0.0': {} - '@octokit/openapi-types@20.0.0': {} - - '@octokit/openapi-types@22.2.0': {} - '@octokit/openapi-types@4.0.2': {} '@octokit/plugin-enterprise-rest@6.0.1': {} @@ -19111,20 +18969,10 @@ snapshots: '@octokit/core': 5.0.0 '@octokit/types': 11.1.0 - '@octokit/plugin-paginate-rest@9.2.1(@octokit/core@5.0.0)': - dependencies: - '@octokit/core': 5.0.0 - '@octokit/types': 12.6.0 - '@octokit/plugin-request-log@1.0.3(@octokit/core@3.2.5(encoding@0.1.13))': dependencies: '@octokit/core': 3.2.5(encoding@0.1.13) - '@octokit/plugin-rest-endpoint-methods@10.4.1(@octokit/core@5.0.0)': - dependencies: - '@octokit/core': 5.0.0 - '@octokit/types': 12.6.0 - '@octokit/plugin-rest-endpoint-methods@4.10.1(@octokit/core@3.2.5(encoding@0.1.13))': dependencies: '@octokit/core': 3.2.5(encoding@0.1.13) @@ -19209,14 +19057,6 @@ snapshots: dependencies: '@octokit/openapi-types': 18.0.0 - '@octokit/types@12.6.0': - dependencies: - '@octokit/openapi-types': 20.0.0 - - '@octokit/types@13.5.0': - dependencies: - '@octokit/openapi-types': 22.2.0 - '@octokit/types@6.8.3': dependencies: '@octokit/openapi-types': 4.0.2 @@ -20988,7 +20828,7 @@ snapshots: transitivePeerDependencies: - supports-color - babel-plugin-react-compiler@0.0.0-experimental-2bc6fec-20240910: + babel-plugin-react-compiler@0.0.0-experimental-23b8160-20240916: dependencies: '@babel/generator': 7.2.0 '@babel/types': 7.22.5 @@ -21330,8 +21170,6 @@ snapshots: get-intrinsic: 1.2.4 set-function-length: 1.2.2 - call-me-maybe@1.0.2: {} - caller-callsite@2.0.0: dependencies: callsites: 2.0.0 @@ -21808,8 +21646,6 @@ snapshots: pkg-up: 3.1.0 write-file-atomic: 3.0.3 - confbox@0.1.7: {} - config-chain@1.1.12: dependencies: ini: 1.3.8 @@ -22634,8 +22470,6 @@ snapshots: decode-uri-component@0.2.0: {} - decode-uri-component@0.4.1: {} - decompress-response@3.3.0: dependencies: mimic-response: 1.0.1 @@ -23938,10 +23772,6 @@ snapshots: setimmediate: 1.0.5 ua-parser-js: 0.7.31 - fdir@6.3.0(picomatch@4.0.2): - optionalDependencies: - picomatch: 4.0.2 - fflate@0.7.4: {} figgy-pudding@3.5.1: {} @@ -23992,8 +23822,6 @@ snapshots: dependencies: to-regex-range: 5.0.1 - filter-obj@5.1.0: {} - finalhandler@1.1.2: dependencies: debug: 2.6.9 @@ -25572,8 +25400,6 @@ snapshots: isbinaryfile@4.0.8: {} - isbinaryfile@5.0.2: {} - isexe@2.0.0: {} isobject@2.1.0: @@ -27630,13 +27456,6 @@ snapshots: mkdirp@3.0.1: {} - mlly@1.7.1: - dependencies: - acorn: 8.11.3 - pathe: 1.1.2 - pkg-types: 1.2.0 - ufo: 1.5.4 - modify-values@1.0.1: {} module-details-from-path@1.0.3: {} @@ -28313,8 +28132,6 @@ snapshots: registry-url: 5.1.0 semver: 6.3.1 - package-manager-detector@0.1.2: {} - pacote@11.2.6: dependencies: '@npmcli/git': 2.0.4 @@ -28523,8 +28340,6 @@ snapshots: path-type@4.0.0: {} - pathe@1.1.2: {} - pause-stream@0.0.11: dependencies: through: 2.3.8 @@ -28555,8 +28370,6 @@ snapshots: picomatch@4.0.1: {} - picomatch@4.0.2: {} - pidtree@0.3.0: {} pidtree@0.6.0: {} @@ -28600,23 +28413,6 @@ snapshots: dependencies: find-up: 4.1.0 - pkg-pr-new@0.0.24: - dependencies: - '@jsdevtools/ez-spawn': 3.0.4 - '@octokit/action': 6.1.0 - ignore: 5.3.2 - isbinaryfile: 5.0.2 - package-manager-detector: 0.1.2 - pkg-types: 1.2.0 - query-registry: 3.0.1 - tinyglobby: 0.2.6 - - pkg-types@1.2.0: - dependencies: - confbox: 0.1.7 - mlly: 1.7.1 - pathe: 1.1.2 - pkg-up@3.1.0: dependencies: find-up: 3.0.0 @@ -29528,21 +29324,6 @@ snapshots: transitivePeerDependencies: - encoding - query-registry@3.0.1: - dependencies: - query-string: 9.1.0 - quick-lru: 7.0.0 - url-join: 5.0.0 - validate-npm-package-name: 5.0.1 - zod: 3.23.8 - zod-package-json: 1.0.3 - - query-string@9.1.0: - dependencies: - decode-uri-component: 0.4.1 - filter-obj: 5.1.0 - split-on-first: 3.0.0 - querystring-es3@0.2.1: {} querystring@0.2.0: {} @@ -29559,8 +29340,6 @@ snapshots: quick-lru@5.1.1: {} - quick-lru@7.0.0: {} - quotation@1.1.3: {} random-seed@0.3.0: @@ -30841,8 +30620,6 @@ snapshots: spdx-license-ids@3.0.5: {} - split-on-first@3.0.0: {} - split-string@3.1.0: dependencies: extend-shallow: 3.0.2 @@ -31490,11 +31267,6 @@ snapshots: tinydate@1.2.0: {} - tinyglobby@0.2.6: - dependencies: - fdir: 6.3.0(picomatch@4.0.2) - picomatch: 4.0.2 - title-case@3.0.3: dependencies: tslib: 2.6.3 @@ -31796,8 +31568,6 @@ snapshots: ua-parser-js@1.0.35: {} - ufo@1.5.4: {} - uglify-js@3.17.4: optional: true @@ -31820,8 +31590,6 @@ snapshots: dependencies: '@fastify/busboy': 2.0.0 - undici@6.19.8: {} - unfetch@4.2.0: {} unherit@1.1.2: @@ -32078,8 +31846,6 @@ snapshots: url-join@4.0.1: {} - url-join@5.0.0: {} - url-parse-lax@1.0.0: dependencies: prepend-http: 1.0.4 @@ -32716,10 +32482,6 @@ snapshots: yoga-wasm-web@0.3.3: {} - zod-package-json@1.0.3: - dependencies: - zod: 3.23.8 - zod-validation-error@2.1.0(zod@3.23.8): dependencies: zod: 3.23.8 From f829cd11cf203b1e85c5afb146bc00e2edbbf5f0 Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Mon, 16 Sep 2024 17:16:05 -0700 Subject: [PATCH 03/17] Added support for multiple package managers and error handling when multiple or none are detected --- packages/next-upgrade/index.ts | 104 ++++++++-- packages/next-upgrade/package.json | 2 + packages/next-upgrade/version.json | 322 ----------------------------- pnpm-lock.yaml | 26 +++ 4 files changed, 112 insertions(+), 342 deletions(-) delete mode 100644 packages/next-upgrade/version.json diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index 38118c8791cdc..e98e14895c8e4 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -7,6 +7,7 @@ import path from 'path' import { compareVersions } from 'compare-versions' import yaml from 'yaml' import chalk from 'chalk' +import which from 'which' type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' type CustomVersionSpecifier = string @@ -110,35 +111,35 @@ async function run(): Promise { fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) - console.log( - `Upgrading your project to ${chalk.blueBright('Next.js ' + targetVersionSpecifier)}...\n` - ) - - let packageManager: PackageManager = getPackageManager(appPackageJson) - const dependencies = [ + const packageManager: PackageManager = await getPackageManager(appPackageJson) + const reactDependencies = [ `react@${targetNextPackageJson.peerDependencies['react']}`, `@types/react@${targetNextPackageJson.devDependencies['@types/react']}`, `react-dom@${targetNextPackageJson.peerDependencies['react-dom']}`, `@types/react-dom@${targetNextPackageJson.devDependencies['@types/react-dom']}`, - `next@${targetNextPackageJson.version}`, - ].join(' ') + ] + const nextDependency = `next@${targetNextPackageJson.version}` let updateCommand switch (packageManager) { case 'pnpm': - updateCommand = `pnpm update ${dependencies}` + updateCommand = `pnpm update ${reactDependencies.join(' ')} ${nextDependency}` break case 'npm': - updateCommand = `npm install ${dependencies}` + // npm will error out if all dependencies are updated at once because the new next + // version depends on the new react and react-dom versions we are installing + updateCommand = `npm install ${reactDependencies.join(' ')} && npm install ${nextDependency}` break case 'yarn': - updateCommand = `yarn add ${dependencies}` + updateCommand = `yarn add ${reactDependencies.join(' ')} ${nextDependency}` break default: - updateCommand = `pnpm install next@${targetVersionSpecifier}` - break + throw new Error(`Unreachable code`) } + console.log( + `Upgrading your project to ${chalk.blueBright('Next.js ' + targetVersionSpecifier)}...\n` + ) execSync(updateCommand, { stdio: 'inherit', }) @@ -175,7 +176,7 @@ async function processCurrentVersion(showRc: boolean): Promise { case 'canary': return 0 case 'rc': - return 1 // If rc is not available, will default to the latest version + return 1 // If rc is not available, will return the latest version's index case 'latest': return showRc ? 2 : 1 default: @@ -187,9 +188,74 @@ async function processCurrentVersion(showRc: boolean): Promise { return 0 } -// TODO(LichuAcu): return the user's package manager -function getPackageManager(_packageJson: any): PackageManager { - return 'pnpm' +async function getPackageManager(_packageJson: any): Promise { + const detectedPackageManagers: [PackageManager, string][] = [] + + for (const { lockFile, packageManager } of [ + { lockFile: 'pnpm-lock.yaml', packageManager: 'pnpm' }, + { lockFile: 'yarn.lock', packageManager: 'yarn' }, + { lockFile: 'package-lock.json', packageManager: 'npm' }, + ]) { + if (fs.existsSync(path.join(process.cwd(), lockFile))) { + detectedPackageManagers.push([packageManager as PackageManager, lockFile]) + } + } + + // Exactly one package manager detected + if (detectedPackageManagers.length === 1) { + return detectedPackageManagers[0][0] + } + + // Multiple package managers detected + if (detectedPackageManagers.length > 1) { + const responsePackageManager = await prompts( + { + type: 'select', + name: 'packageManager', + message: 'Multiple package managers detected. Which one are you using?', + choices: detectedPackageManagers.map((packageManager) => ({ + title: packageManager[0], + value: packageManager[0], + })), + initial: 0, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + console.log( + `${chalk.red('⚠️')} To avoid this next time, keep only one of ${detectedPackageManagers.map((packageManager) => chalk.underline(packageManager[1])).join(' or ')}\n` + ) + + return responsePackageManager.packageManager as PackageManager + } + + // No package manager detected + let choices = ['pnpm', 'yarn', 'npm'] + .filter((packageManager) => which.sync(packageManager, { nothrow: true })) + .map((packageManager) => ({ + title: packageManager, + value: packageManager, + })) + + const responsePackageManager = await prompts( + { + type: 'select', + name: 'packageManager', + message: 'No package manager detected. Which one are you using?', + choices: choices, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + return responsePackageManager.packageManager as PackageManager } /* @@ -211,8 +277,7 @@ async function suggestTurbopack(packageJson: any): Promise { { type: 'confirm', name: 'enable', - message: - 'Turbopack is stable for development in this version. Do you want to enable it?', + message: 'Turbopack is now the stable default for dev mode. Enable it?', initial: true, }, { @@ -222,7 +287,6 @@ async function suggestTurbopack(packageJson: any): Promise { } ) - // TODO(LichuAcu): handle ctrl-c if (!responseTurbopack.enable) { return } diff --git a/packages/next-upgrade/package.json b/packages/next-upgrade/package.json index 80fa44df0ddf8..d26698a2b84e0 100644 --- a/packages/next-upgrade/package.json +++ b/packages/next-upgrade/package.json @@ -20,11 +20,13 @@ "chalk": "5.3.0", "compare-versions": "6.1.1", "prompts": "^2.4.2", + "which": "4.0.0", "yaml": "2.5.1" }, "devDependencies": { "@types/node": "^14.14.31", "@types/prompts": "^2.0.14", + "@types/which": "3.0.4", "typescript": "^4.3.5" }, "scripts": { diff --git a/packages/next-upgrade/version.json b/packages/next-upgrade/version.json deleted file mode 100644 index fbd808b751711..0000000000000 --- a/packages/next-upgrade/version.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "name": "next", - "version": "15.0.0-canary.148", - "description": "The React Framework", - "main": "./dist/server/next.js", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/vercel/next.js.git" - }, - "bugs": { "url": "https://github.com/vercel/next.js/issues" }, - "homepage": "https://nextjs.org", - "types": "index.d.ts", - "bin": { "next": "dist/bin/next" }, - "scripts": { - "dev": "NEXT_SERVER_EVAL_SOURCE_MAPS=1 taskr", - "release": "taskr release", - "build": "pnpm release", - "prepublishOnly": "cd ../../ && turbo run build", - "types": "tsc --declaration --emitDeclarationOnly --stripInternal --declarationDir dist", - "typescript": "tsec --noEmit", - "ncc-compiled": "taskr ncc", - "start": "node server.js" - }, - "taskr": { - "requires": [ - "./taskfile-webpack.js", - "./taskfile-ncc.js", - "./taskfile-swc.js", - "./taskfile-watch.js" - ] - }, - "dependencies": { - "@next/env": "15.0.0-canary.148", - "@swc/counter": "0.1.3", - "@swc/helpers": "0.5.13", - "busboy": "1.6.0", - "caniuse-lite": "^1.0.30001579", - "graceful-fs": "^4.2.11", - "postcss": "8.4.31", - "styled-jsx": "5.1.6" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.1.0", - "@playwright/test": "^1.41.2", - "babel-plugin-react-compiler": "*", - "react": "19.0.0-rc-7771d3a7-20240827", - "react-dom": "19.0.0-rc-7771d3a7-20240827", - "sass": "^1.3.0" - }, - "peerDependenciesMeta": { - "babel-plugin-react-compiler": { "optional": true }, - "sass": { "optional": true }, - "@opentelemetry/api": { "optional": true }, - "@playwright/test": { "optional": true } - }, - "optionalDependencies": { - "sharp": "^0.33.5", - "@next/swc-darwin-arm64": "15.0.0-canary.148", - "@next/swc-darwin-x64": "15.0.0-canary.148", - "@next/swc-linux-arm64-gnu": "15.0.0-canary.148", - "@next/swc-linux-arm64-musl": "15.0.0-canary.148", - "@next/swc-linux-x64-gnu": "15.0.0-canary.148", - "@next/swc-linux-x64-musl": "15.0.0-canary.148", - "@next/swc-win32-arm64-msvc": "15.0.0-canary.148", - "@next/swc-win32-ia32-msvc": "15.0.0-canary.148", - "@next/swc-win32-x64-msvc": "15.0.0-canary.148" - }, - "devDependencies": { - "@ampproject/toolbox-optimizer": "2.8.3", - "@babel/code-frame": "7.22.5", - "@babel/core": "7.22.5", - "@babel/eslint-parser": "7.22.5", - "@babel/generator": "7.22.5", - "@babel/plugin-proposal-class-properties": "7.18.6", - "@babel/plugin-proposal-export-namespace-from": "7.18.9", - "@babel/plugin-proposal-numeric-separator": "7.18.6", - "@babel/plugin-proposal-object-rest-spread": "7.20.7", - "@babel/plugin-syntax-bigint": "7.8.3", - "@babel/plugin-syntax-dynamic-import": "7.8.3", - "@babel/plugin-syntax-import-attributes": "7.22.5", - "@babel/plugin-syntax-jsx": "7.22.5", - "@babel/plugin-transform-modules-commonjs": "7.22.5", - "@babel/plugin-transform-runtime": "7.22.5", - "@babel/preset-env": "7.22.5", - "@babel/preset-react": "7.22.5", - "@babel/preset-typescript": "7.22.5", - "@babel/runtime": "7.22.5", - "@babel/traverse": "7.22.5", - "@babel/types": "7.22.5", - "@capsizecss/metrics": "3.2.0", - "@edge-runtime/cookies": "5.0.0", - "@edge-runtime/ponyfill": "3.0.0", - "@edge-runtime/primitives": "5.0.0", - "@hapi/accept": "5.0.2", - "@jest/transform": "29.5.0", - "@jest/types": "29.5.0", - "@mswjs/interceptors": "0.23.0", - "@napi-rs/triples": "1.2.0", - "@next/font": "15.0.0-canary.148", - "@next/polyfill-module": "15.0.0-canary.148", - "@next/polyfill-nomodule": "15.0.0-canary.148", - "@next/react-refresh-utils": "15.0.0-canary.148", - "@next/swc": "15.0.0-canary.148", - "@opentelemetry/api": "1.6.0", - "@playwright/test": "1.41.2", - "@swc/core": "1.7.0-nightly-20240714.1", - "@swc/types": "0.1.7", - "@taskr/clear": "1.1.0", - "@taskr/esnext": "1.1.0", - "@types/amphtml-validator": "1.0.0", - "@types/babel__code-frame": "7.0.2", - "@types/babel__core": "7.1.12", - "@types/babel__generator": "7.6.2", - "@types/babel__template": "7.4.0", - "@types/babel__traverse": "7.11.0", - "@types/bytes": "3.1.1", - "@types/ci-info": "2.0.0", - "@types/compression": "0.0.36", - "@types/content-disposition": "0.5.4", - "@types/content-type": "1.1.3", - "@types/cookie": "0.3.3", - "@types/cross-spawn": "6.0.0", - "@types/debug": "4.1.5", - "@types/express-serve-static-core": "4.17.33", - "@types/fresh": "0.5.0", - "@types/glob": "7.1.1", - "@types/graceful-fs": "4.1.9", - "@types/jsonwebtoken": "9.0.0", - "@types/lodash": "4.14.198", - "@types/lodash.curry": "4.1.6", - "@types/lru-cache": "5.1.0", - "@types/path-to-regexp": "1.7.0", - "@types/picomatch": "2.3.3", - "@types/platform": "1.3.4", - "@types/react": "18.2.74", - "@types/react-dom": "18.2.23", - "@types/react-is": "18.2.4", - "@types/semver": "7.3.1", - "@types/send": "0.14.4", - "@types/shell-quote": "1.7.1", - "@types/tar": "6.1.5", - "@types/text-table": "0.2.1", - "@types/ua-parser-js": "0.7.36", - "@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5", - "@types/ws": "8.2.0", - "@vercel/ncc": "0.34.0", - "@vercel/nft": "0.27.1", - "@vercel/turbopack-ecmascript-runtime": "*", - "acorn": "8.11.3", - "amphtml-validator": "1.0.35", - "anser": "1.4.9", - "arg": "4.1.0", - "assert": "2.0.0", - "async-retry": "1.2.3", - "async-sema": "3.0.0", - "babel-plugin-transform-define": "2.0.0", - "babel-plugin-transform-react-remove-prop-types": "0.4.24", - "browserify-zlib": "0.2.0", - "browserslist": "4.22.2", - "buffer": "5.6.0", - "bytes": "3.1.1", - "ci-info": "github:watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540", - "cli-select": "1.1.2", - "client-only": "0.0.1", - "commander": "12.1.0", - "comment-json": "3.0.3", - "compression": "1.7.4", - "conf": "5.0.0", - "constants-browserify": "1.0.0", - "content-disposition": "0.5.3", - "content-type": "1.0.4", - "cookie": "0.4.1", - "cross-spawn": "7.0.3", - "crypto-browserify": "3.12.0", - "css.escape": "1.5.1", - "cssnano-preset-default": "5.2.14", - "data-uri-to-buffer": "3.0.1", - "debug": "4.1.1", - "devalue": "2.0.1", - "domain-browser": "4.19.0", - "edge-runtime": "3.0.0", - "events": "3.3.0", - "find-up": "4.1.0", - "fresh": "0.5.2", - "glob": "7.1.7", - "gzip-size": "5.1.1", - "http-proxy": "1.18.1", - "http-proxy-agent": "5.0.0", - "https-browserify": "1.0.0", - "https-proxy-agent": "5.0.1", - "icss-utils": "5.1.0", - "ignore-loader": "0.1.2", - "image-size": "1.1.1", - "is-docker": "2.0.0", - "is-wsl": "2.2.0", - "jest-worker": "27.5.1", - "json5": "2.2.3", - "jsonwebtoken": "9.0.0", - "loader-runner": "4.3.0", - "loader-utils2": "npm:loader-utils@2.0.0", - "loader-utils3": "npm:loader-utils@3.1.3", - "lodash.curry": "4.1.1", - "lru-cache": "5.1.1", - "mini-css-extract-plugin": "2.4.4", - "msw": "2.3.0", - "nanoid": "3.1.32", - "native-url": "0.3.4", - "neo-async": "2.6.1", - "node-html-parser": "5.3.3", - "ora": "4.0.4", - "os-browserify": "0.3.0", - "p-limit": "3.1.0", - "p-queue": "6.6.2", - "path-browserify": "1.0.1", - "path-to-regexp": "6.1.0", - "picomatch": "4.0.1", - "platform": "1.3.6", - "postcss-flexbugs-fixes": "5.0.2", - "postcss-modules-extract-imports": "3.0.0", - "postcss-modules-local-by-default": "4.0.4", - "postcss-modules-scope": "3.0.0", - "postcss-modules-values": "4.0.0", - "postcss-preset-env": "7.4.3", - "postcss-safe-parser": "6.0.0", - "postcss-scss": "4.0.3", - "postcss-value-parser": "4.2.0", - "process": "0.11.10", - "punycode": "2.1.1", - "querystring-es3": "0.2.1", - "raw-body": "2.4.1", - "react-refresh": "0.12.0", - "regenerator-runtime": "0.13.4", - "sass-loader": "12.6.0", - "schema-utils2": "npm:schema-utils@2.7.1", - "schema-utils3": "npm:schema-utils@3.0.0", - "semver": "7.3.2", - "send": "0.17.1", - "server-only": "0.0.1", - "setimmediate": "1.0.5", - "shell-quote": "1.7.3", - "source-map": "0.6.1", - "source-map-loader": "5.0.0", - "source-map08": "npm:source-map@0.8.0-beta.0", - "stacktrace-parser": "0.1.10", - "stream-browserify": "3.0.0", - "stream-http": "3.1.1", - "strict-event-emitter": "0.5.0", - "string-hash": "1.1.3", - "string_decoder": "1.3.0", - "strip-ansi": "6.0.0", - "superstruct": "1.0.3", - "tar": "6.1.15", - "taskr": "1.1.0", - "terser": "5.27.0", - "terser-webpack-plugin": "5.3.9", - "text-table": "0.2.0", - "timers-browserify": "2.0.12", - "tty-browserify": "0.0.1", - "ua-parser-js": "1.0.35", - "unistore": "3.4.1", - "util": "0.12.4", - "vm-browserify": "1.1.2", - "watchpack": "2.4.0", - "web-vitals": "4.2.1", - "webpack": "5.90.0", - "webpack-sources1": "npm:webpack-sources@1.4.3", - "webpack-sources3": "npm:webpack-sources@3.2.3", - "ws": "8.2.3", - "zod": "3.22.3" - }, - "keywords": [ - "react", - "framework", - "nextjs", - "web", - "server", - "node", - "front-end", - "backend", - "cli", - "vercel" - ], - "engines": { "node": ">=18.18.0" }, - "_id": "next@15.0.0-canary.148", - "readmeFilename": "README.md", - "gitHead": "c5961c432dc4dd10705265f3ba222347693ccc1b", - "_nodeVersion": "20.17.0", - "_npmVersion": "10.4.0", - "dist": { - "integrity": "sha512-I5A6TxucNacVzWObtTav+ZR86cSCxKB+JjeEYHPJZ3pWmmKPpdyyLHVnPdEIed53ugyEPPI7sNDGj5It3IatpQ==", - "shasum": "591bd71c19122b6bf0406351bd37a2ba70fe48ca", - "tarball": "https://registry.npmjs.org/next/-/next-15.0.0-canary.148.tgz", - "fileCount": 6428, - "unpackedSize": 95037797, - "attestations": { - "url": "https://registry.npmjs.org/-/npm/v1/attestations/next@15.0.0-canary.148", - "provenance": { "predicateType": "https://slsa.dev/provenance/v1" } - }, - "signatures": [ - { - "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", - "sig": "MEUCIFkXLB1vuypZLV9GlU6UvWaLRELovwcWbX4/bJeZjsm+AiEAzP1pnsm01IljKMws1fUOa4EH42rx5Mse66J2MJEm1Tc=" - } - ] - }, - "_npmUser": { - "name": "vercel-release-bot", - "email": "infra+release@vercel.com" - }, - "directories": {}, - "maintainers": [ - { "name": "rauchg", "email": "rauchg@gmail.com" }, - { "name": "timneutkens", "email": "timneutkens@icloud.com" }, - { "name": "vercel-release-bot", "email": "infra+release@vercel.com" } - ], - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/next_15.0.0-canary.148_1725957521993_0.3949664083604878" - }, - "_hasShrinkwrap": false -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b0e8442060f3..e8cce3ebbcc6f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1595,6 +1595,9 @@ importers: prompts: specifier: ^2.4.2 version: 2.4.2 + which: + specifier: 4.0.0 + version: 4.0.0 yaml: specifier: 2.5.1 version: 2.5.1 @@ -1605,6 +1608,9 @@ importers: '@types/prompts': specifier: ^2.0.14 version: 2.4.2 + '@types/which': + specifier: 3.0.4 + version: 3.0.4 typescript: specifier: ^4.3.5 version: 4.8.2 @@ -5237,6 +5243,9 @@ packages: '@types/webpack@5.28.5': resolution: {integrity: sha512-wR87cgvxj3p6D0Crt1r5avwqffqPXUkNlnQ1mjU93G7gCuFjufZR4I6j8cz5g1F1tTYpfOOFvly+cmIQwL9wvw==} + '@types/which@3.0.4': + resolution: {integrity: sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==} + '@types/wrap-ansi@3.0.0': resolution: {integrity: sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==} @@ -9690,6 +9699,10 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + isexe@3.1.1: + resolution: {integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==} + engines: {node: '>=16'} + isobject@2.1.0: resolution: {integrity: sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==} engines: {node: '>=0.10.0'} @@ -15194,6 +15207,11 @@ packages: engines: {node: '>= 8'} hasBin: true + which@4.0.0: + resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==} + engines: {node: ^16.13.0 || >=18.0.0} + hasBin: true + wide-align@1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} @@ -19966,6 +19984,8 @@ snapshots: - uglify-js - webpack-cli + '@types/which@3.0.4': {} + '@types/wrap-ansi@3.0.0': {} '@types/ws@8.2.0': @@ -25402,6 +25422,8 @@ snapshots: isexe@2.0.0: {} + isexe@3.1.1: {} + isobject@2.1.0: dependencies: isarray: 1.0.0 @@ -32288,6 +32310,10 @@ snapshots: dependencies: isexe: 2.0.0 + which@4.0.0: + dependencies: + isexe: 3.1.1 + wide-align@1.1.5: dependencies: string-width: 4.2.3 From 18c44666b5680b855e4b7529b16a70d4fd29097a Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Mon, 16 Sep 2024 17:32:31 -0700 Subject: [PATCH 04/17] Adds support for bun --- packages/next-upgrade/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index e98e14895c8e4..395dde819fb8f 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -12,7 +12,7 @@ import which from 'which' type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' type CustomVersionSpecifier = string type VersionSpecifier = StandardVersionSpecifier | CustomVersionSpecifier -type PackageManager = 'pnpm' | 'npm' | 'yarn' +type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun' interface Response { version: StandardVersionSpecifier @@ -133,6 +133,9 @@ async function run(): Promise { case 'yarn': updateCommand = `yarn add ${reactDependencies.join(' ')} ${nextDependency}` break + case 'bun': + updateCommand = `bun add ${reactDependencies.join(' ')} ${nextDependency}` + break default: throw new Error(`Unreachable code`) } @@ -195,6 +198,7 @@ async function getPackageManager(_packageJson: any): Promise { { lockFile: 'pnpm-lock.yaml', packageManager: 'pnpm' }, { lockFile: 'yarn.lock', packageManager: 'yarn' }, { lockFile: 'package-lock.json', packageManager: 'npm' }, + { lockFile: 'bun.lockb', packageManager: 'bun' }, ]) { if (fs.existsSync(path.join(process.cwd(), lockFile))) { detectedPackageManagers.push([packageManager as PackageManager, lockFile]) @@ -234,7 +238,7 @@ async function getPackageManager(_packageJson: any): Promise { } // No package manager detected - let choices = ['pnpm', 'yarn', 'npm'] + let choices = ['pnpm', 'yarn', 'npm', 'bun'] .filter((packageManager) => which.sync(packageManager, { nothrow: true })) .map((packageManager) => ({ title: packageManager, From 786a3cacf79f64b534f9419324fd0a71f8dcf890 Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Tue, 17 Sep 2024 09:57:34 -0700 Subject: [PATCH 05/17] Use require.resolve to find Next.js current version --- packages/next-upgrade/index.ts | 52 ++++++++++++++++------------------ 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index 395dde819fb8f..5f591e07a09dc 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -5,9 +5,9 @@ import fs from 'fs' import { execSync } from 'child_process' import path from 'path' import { compareVersions } from 'compare-versions' -import yaml from 'yaml' import chalk from 'chalk' import which from 'which' +import { createRequire } from 'node:module' type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' type CustomVersionSpecifier = string @@ -161,34 +161,30 @@ async function run(): Promise { * in the array ['canary', 'rc', 'latest'] */ async function processCurrentVersion(showRc: boolean): Promise { - // TODO(LichuAcu): support other package managers - const appLockFilePath = path.resolve(process.cwd(), 'pnpm-lock.yaml') - if (fs.existsSync(appLockFilePath)) { - const appLockFileContent = fs.readFileSync(appLockFilePath, 'utf8') - const appLockFile = yaml.parse(appLockFileContent) - const appNextDependency = appLockFile.importers?.['.']?.dependencies?.next - - if (appNextDependency) { - if (appNextDependency.version) { - console.log( - `You are currently using ${chalk.blueBright('Next.js ' + appNextDependency.version.split('(')[0])}` - ) - } - if (appNextDependency.specifier) { - switch (appNextDependency.specifier) { - case 'canary': - return 0 - case 'rc': - return 1 // If rc is not available, will return the latest version's index - case 'latest': - return showRc ? 2 : 1 - default: - return 0 - } - } - } + const require = createRequire(import.meta.url) + const installedNextPackageJsonDir = require.resolve('next/package.json', { + paths: [process.cwd()], + }) + const installedNextPackageJson = JSON.parse( + fs.readFileSync(installedNextPackageJsonDir, 'utf8') + ) + let installedNextVersion = installedNextPackageJson.version + + if (installedNextVersion == null) { + return 0 + } + + console.log( + `You are currently using ${chalk.blueBright('Next.js ' + installedNextVersion)}` + ) + + if (installedNextVersion.includes('canary')) { + return 0 + } + if (installedNextVersion.includes('rc')) { + return 1 // If rc is not available, will default to latest's index } - return 0 + return showRc ? 2 : 1 // "latest" is 1 or 2 depending on if rc is shown as an option } async function getPackageManager(_packageJson: any): Promise { From 40fecf7b80b69902b0d2b09fa23f445c54f16801 Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Tue, 17 Sep 2024 10:43:13 -0700 Subject: [PATCH 06/17] Detect monorepos and throw warning --- packages/next-upgrade/index.ts | 38 +++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index 5f591e07a09dc..0c3a1d5a1171d 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -19,6 +19,11 @@ interface Response { } async function run(): Promise { + const appPackageJsonPath = path.resolve(process.cwd(), 'package.json') + let appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) + + await detectWorkspace(appPackageJson) + let targetNextPackageJson let targetVersionSpecifier: VersionSpecifier = '' @@ -99,9 +104,6 @@ async function run(): Promise { targetVersionSpecifier = response.version } - const appPackageJsonPath = path.resolve(process.cwd(), 'package.json') - let appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) - if ( targetNextPackageJson.version && compareVersions(targetNextPackageJson.version, '15.0.0-canary') >= 0 @@ -141,7 +143,7 @@ async function run(): Promise { } console.log( - `Upgrading your project to ${chalk.blueBright('Next.js ' + targetVersionSpecifier)}...\n` + `Upgrading your project to ${chalk.blue('Next.js ' + targetVersionSpecifier)}...\n` ) execSync(updateCommand, { stdio: 'inherit', @@ -156,6 +158,32 @@ async function run(): Promise { ) } +async function detectWorkspace(appPackageJson: any): Promise { + let isWorkspace = + appPackageJson.workspaces || + fs.existsSync(path.resolve(process.cwd(), 'pnpm-workspace.yaml')) + + if (!isWorkspace) return + + console.log( + `${chalk.red('⚠️')} You seem to be in the root of a monorepo. ${chalk.blue('@next/upgrade')} should be run in a specific app directory within the monorepo.` + ) + + const response = await prompts( + { + type: 'confirm', + name: 'value', + message: 'Do you still want to continue?', + initial: false, + }, + { onCancel: () => process.exit(0) } + ) + + if (!response.value) { + process.exit(0) + } +} + /* * Logs the current version and returns the index of the current version specifier * in the array ['canary', 'rc', 'latest'] @@ -175,7 +203,7 @@ async function processCurrentVersion(showRc: boolean): Promise { } console.log( - `You are currently using ${chalk.blueBright('Next.js ' + installedNextVersion)}` + `You are currently using ${chalk.blue('Next.js ' + installedNextVersion)}` ) if (installedNextVersion.includes('canary')) { From d7f5b3f585082c1a56eb01b3c243cd6dfee4e974 Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Tue, 17 Sep 2024 11:54:19 -0700 Subject: [PATCH 07/17] Correctly find package manager in monorepos --- packages/next-upgrade/index.ts | 58 ++++++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index 0c3a1d5a1171d..686103a71e3e1 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -216,22 +216,52 @@ async function processCurrentVersion(showRc: boolean): Promise { } async function getPackageManager(_packageJson: any): Promise { - const detectedPackageManagers: [PackageManager, string][] = [] - - for (const { lockFile, packageManager } of [ - { lockFile: 'pnpm-lock.yaml', packageManager: 'pnpm' }, - { lockFile: 'yarn.lock', packageManager: 'yarn' }, - { lockFile: 'package-lock.json', packageManager: 'npm' }, - { lockFile: 'bun.lockb', packageManager: 'bun' }, - ]) { - if (fs.existsSync(path.join(process.cwd(), lockFile))) { - detectedPackageManagers.push([packageManager as PackageManager, lockFile]) + const packageManagers = { + pnpm: 'pnpm-lock.yaml', + yarn: 'yarn.lock', + npm: 'package-lock.json', + bun: 'bun.lockb', + } + + function findLockFile(dir: string): PackageManager[] { + const packageJsonPath = path.join(dir, 'package.json') + if (fs.existsSync(packageJsonPath)) { + let detectedPackageManagers: PackageManager[] = [] + let packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) + if (packageJson.packageManager) { + // corepack + let packageManagerName = packageJson.packageManager.split( + '@' + )[0] as PackageManager + if (packageManagerName in packageManagers) { + return [packageManagerName] + } + } + for (const [packageManager, lockFile] of Object.entries( + packageManagers + )) { + const lockFilePath = path.join(dir, lockFile) + if (fs.existsSync(lockFilePath)) { + detectedPackageManagers.push(packageManager as PackageManager) + } + } + if (detectedPackageManagers.length !== 0) { + return detectedPackageManagers + } + } + const parentDir = path.dirname(dir) + if (parentDir !== dir) { + return findLockFile(parentDir) } + return [] } + let realPath = fs.realpathSync(process.cwd()) + const detectedPackageManagers = findLockFile(realPath) + // Exactly one package manager detected if (detectedPackageManagers.length === 1) { - return detectedPackageManagers[0][0] + return detectedPackageManagers[0] } // Multiple package managers detected @@ -242,8 +272,8 @@ async function getPackageManager(_packageJson: any): Promise { name: 'packageManager', message: 'Multiple package managers detected. Which one are you using?', choices: detectedPackageManagers.map((packageManager) => ({ - title: packageManager[0], - value: packageManager[0], + title: packageManager, + value: packageManager, })), initial: 0, }, @@ -255,7 +285,7 @@ async function getPackageManager(_packageJson: any): Promise { ) console.log( - `${chalk.red('⚠️')} To avoid this next time, keep only one of ${detectedPackageManagers.map((packageManager) => chalk.underline(packageManager[1])).join(' or ')}\n` + `${chalk.red('⚠️')} To avoid this next time, keep only one of ${detectedPackageManagers.map((packageManager) => chalk.underline(packageManagers[packageManager])).join(' or ')}\n` ) return responsePackageManager.packageManager as PackageManager From d87a1efecce8e62aa79ff38a0d51ad3fba71a832 Mon Sep 17 00:00:00 2001 From: LichuAcu Date: Tue, 17 Sep 2024 15:11:40 -0700 Subject: [PATCH 08/17] Update README.md --- packages/next-upgrade/README.md | 40 +++++++++++++++++++++------------ packages/next-upgrade/index.ts | 11 ++++----- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/packages/next-upgrade/README.md b/packages/next-upgrade/README.md index 18be8c925190a..20079430dc7ba 100644 --- a/packages/next-upgrade/README.md +++ b/packages/next-upgrade/README.md @@ -2,30 +2,42 @@ Upgrade Next.js apps to newer or beta versions with one command. -# Build +```bash +npx @next/upgrade +``` + +## How to use it? + +Simply run `npx @next/upgrade` in your project and follow the few prompts. This will let you choose between the latest canary, release candidate or stable version of Next.js. -To build the package locally, go to `packages/next-upgrade` and run: +You can also pass a specific Next.js version as an argument: ```bash -pnpm build && pnpm link --global +npx @next/upgrade 15.0.0-canary.148 ``` -In your Next.js app, add the following to your `package.json`: +`@next/upgrade` supports `pnpm`, `npm`, `yarn` and `bun`, and is compatible with monorepos. -```json -"dependencies": { - "@next/upgrade": "path/to/local/next.js/packages/next-upgrade" -} -``` +## Why? -Finally, run: +Updating Next.js is not just merely running `pnpm update next` or its equivalent in your package manager of choice. It also involves updating `react`, `@types/react`, `react-dom`, `@types/react-dom`, and potentially other dependencies. + +We noticed that trying out new or beta versions of Next.js was not as smooth as it could be, so we created this small tool that makes it easier. + +## Contributing + +To build the package locally, clone the [@vercel/next repo](https://github.com/vercel/next.js/), navigate to `packages/next-upgrade` and run: ```bash -pnpm i +pnpm build ``` -Now you can use the package! +To test your local version of `@next/upgrade`, run `pnpm link --global` from the `@next/upgrade` directory and add the following to the `package.json` of your Next.js app: -```bash -npx @next/upgrade +```json +"dependencies": { + "@next/upgrade": "files:path/to/local/next.js/packages/next-upgrade" +} ``` + +Finally, run `pnpm i` and now you can use your local version of `@next/upgrade` with the standard `npx @next/upgrade` command. diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index 686103a71e3e1..fde92bf9bf1f8 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -149,10 +149,6 @@ async function run(): Promise { stdio: 'inherit', }) - appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) - appPackageJson.dependencies['next'] = targetVersionSpecifier - fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) - console.log( `\n${chalk.green('✔')} Your Next.js project has been upgraded successfully. ${chalk.bold('Time to ship! 🚢')}` ) @@ -223,7 +219,8 @@ async function getPackageManager(_packageJson: any): Promise { bun: 'bun.lockb', } - function findLockFile(dir: string): PackageManager[] { + // Recursively looks for either a package.json with a packageManager field or a lock file + function resolvePackageManagerUpwards(dir: string): PackageManager[] { const packageJsonPath = path.join(dir, 'package.json') if (fs.existsSync(packageJsonPath)) { let detectedPackageManagers: PackageManager[] = [] @@ -251,13 +248,13 @@ async function getPackageManager(_packageJson: any): Promise { } const parentDir = path.dirname(dir) if (parentDir !== dir) { - return findLockFile(parentDir) + return resolvePackageManagerUpwards(parentDir) } return [] } let realPath = fs.realpathSync(process.cwd()) - const detectedPackageManagers = findLockFile(realPath) + const detectedPackageManagers = resolvePackageManagerUpwards(realPath) // Exactly one package manager detected if (detectedPackageManagers.length === 1) { From e52067ceb1d0ae9f609446a89daaa66be06e2572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lichu=20acu=C3=B1a?= Date: Mon, 23 Sep 2024 11:58:41 -0700 Subject: [PATCH 09/17] Support codemods in @next/upgrade (#70270) Suggest using @next/codemods when available --- packages/next-upgrade/codemods.ts | 96 +++++++++++++++++++++++++ packages/next-upgrade/index.ts | 114 +++++++++++++++++++++++++----- 2 files changed, 194 insertions(+), 16 deletions(-) create mode 100644 packages/next-upgrade/codemods.ts diff --git a/packages/next-upgrade/codemods.ts b/packages/next-upgrade/codemods.ts new file mode 100644 index 0000000000000..d5fef8e63affe --- /dev/null +++ b/packages/next-upgrade/codemods.ts @@ -0,0 +1,96 @@ +type Codemod = { + title: string + value: string +} + +type VersionCodemods = { + version: string + codemods: Codemod[] +} + +export const availableCodemods: VersionCodemods[] = [ + { + version: '6', + codemods: [ + { + title: 'Use withRouter', + value: 'url-to-withrouter', + }, + ], + }, + { + version: '8', + codemods: [ + { + title: 'Transform AMP HOC into page config', + value: 'withamp-to-config', + }, + ], + }, + { + version: '9', + codemods: [ + { + title: 'Transform Anonymous Components into Named Components', + value: 'name-default-component', + }, + ], + }, + { + version: '10', + codemods: [ + { + title: 'Add React Import', + value: 'add-missing-react-import', + }, + ], + }, + { + version: '11', + codemods: [ + { + title: 'Migrate from CRA', + value: 'cra-to-next', + }, + ], + }, + { + version: '13.0', + codemods: [ + { + title: 'Remove Tags From Link Components', + value: 'new-link', + }, + { + title: 'Migrate to the New Image Component', + value: 'next-image-experimental', + }, + { + title: 'Rename Next Image Imports', + value: 'next-image-to-legacy-image', + }, + ], + }, + { + version: '13.2', + codemods: [ + { + title: 'Use Built-in Font', + value: 'built-in-next-font', + }, + ], + }, + { + version: '14.0', + codemods: [ + { + title: 'Migrate ImageResponse imports', + value: 'next-og-import', + }, + { + title: 'Use viewport export', + value: 'metadata-to-viewport-export', + }, + ], + }, +] diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts index fde92bf9bf1f8..361d130ae63c2 100644 --- a/packages/next-upgrade/index.ts +++ b/packages/next-upgrade/index.ts @@ -8,6 +8,7 @@ import { compareVersions } from 'compare-versions' import chalk from 'chalk' import which from 'which' import { createRequire } from 'node:module' +import { availableCodemods } from './codemods.js' type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' type CustomVersionSpecifier = string @@ -42,6 +43,8 @@ async function run(): Promise { } } + const installedNextVersion = await getInstalledNextVersion() + if (!targetNextPackageJson) { let nextPackageJson: { [key: string]: any } = {} try { @@ -87,7 +90,16 @@ async function run(): Promise { description: `Production-ready release (${nextPackageJson['latest'].version})`, }) - const initialVersionSpecifierIdx = await processCurrentVersion(showRc) + if (installedNextVersion) { + console.log( + `You are currently using ${chalk.blue('Next.js ' + installedNextVersion)}` + ) + } + + const initialVersionSpecifierIdx = await getVersionSpecifierIdx( + installedNextVersion, + showRc + ) const response: Response = await prompts( { @@ -104,9 +116,11 @@ async function run(): Promise { targetVersionSpecifier = response.version } + const targetNextVersion = targetNextPackageJson.version + if ( - targetNextPackageJson.version && - compareVersions(targetNextPackageJson.version, '15.0.0-canary') >= 0 + targetNextVersion && + compareVersions(targetNextVersion, '15.0.0-canary') >= 0 ) { await suggestTurbopack(appPackageJson) } @@ -114,13 +128,13 @@ async function run(): Promise { fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) const packageManager: PackageManager = await getPackageManager(appPackageJson) + const nextDependency = `next@${targetNextVersion}` const reactDependencies = [ `react@${targetNextPackageJson.peerDependencies['react']}`, `@types/react@${targetNextPackageJson.devDependencies['@types/react']}`, `react-dom@${targetNextPackageJson.peerDependencies['react-dom']}`, `@types/react-dom@${targetNextPackageJson.devDependencies['@types/react-dom']}`, ] - const nextDependency = `next@${targetNextPackageJson.version}` let updateCommand switch (packageManager) { @@ -149,6 +163,8 @@ async function run(): Promise { stdio: 'inherit', }) + await suggestCodemods(installedNextVersion, targetNextVersion) + console.log( `\n${chalk.green('✔')} Your Next.js project has been upgraded successfully. ${chalk.bold('Time to ship! 🚢')}` ) @@ -180,11 +196,7 @@ async function detectWorkspace(appPackageJson: any): Promise { } } -/* - * Logs the current version and returns the index of the current version specifier - * in the array ['canary', 'rc', 'latest'] - */ -async function processCurrentVersion(showRc: boolean): Promise { +async function getInstalledNextVersion(): Promise { const require = createRequire(import.meta.url) const installedNextPackageJsonDir = require.resolve('next/package.json', { paths: [process.cwd()], @@ -192,23 +204,29 @@ async function processCurrentVersion(showRc: boolean): Promise { const installedNextPackageJson = JSON.parse( fs.readFileSync(installedNextPackageJsonDir, 'utf8') ) - let installedNextVersion = installedNextPackageJson.version + return installedNextPackageJson.version +} + +/* + * Returns the index of the current version's specifier in the + * array ['canary', 'rc', 'latest'] or ['canary', 'latest'] + */ +async function getVersionSpecifierIdx( + installedNextVersion: string, + showRc: boolean +): Promise { if (installedNextVersion == null) { return 0 } - console.log( - `You are currently using ${chalk.blue('Next.js ' + installedNextVersion)}` - ) - if (installedNextVersion.includes('canary')) { return 0 } if (installedNextVersion.includes('rc')) { - return 1 // If rc is not available, will default to latest's index + return 1 } - return showRc ? 2 : 1 // "latest" is 1 or 2 depending on if rc is shown as an option + return showRc ? 2 : 1 } async function getPackageManager(_packageJson: any): Promise { @@ -365,4 +383,68 @@ async function suggestTurbopack(packageJson: any): Promise { responseCustomDevScript.customDevScript || devScript } +async function suggestCodemods( + initialNextVersion: string, + targetNextVersion: string +): Promise { + const initialVersionIndex = availableCodemods.findIndex( + (versionCodemods) => + compareVersions(versionCodemods.version, initialNextVersion) > 0 + ) + if (initialVersionIndex === -1) { + return + } + + let targetVersionIndex = availableCodemods.findIndex( + (versionCodemods) => + compareVersions(versionCodemods.version, targetNextVersion) > 0 + ) + if (targetVersionIndex === -1) { + targetVersionIndex = availableCodemods.length + } + + const relevantCodemods = availableCodemods + .slice(initialVersionIndex, targetVersionIndex) + .flatMap((versionCodemods) => versionCodemods.codemods) + + if (relevantCodemods.length === 0) { + return + } + + let codemodsString = `\nThe following ${chalk.blue('codemods')} are available for your upgrade:` + relevantCodemods.forEach((codemod) => { + codemodsString += `\n- ${codemod.title} ${chalk.gray(`(${codemod.value})`)}` + }) + codemodsString += '\n' + + console.log(codemodsString) + + const responseCodemods = await prompts( + { + type: 'confirm', + name: 'apply', + message: `Do you want to apply these codemods?`, + initial: true, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + if (!responseCodemods.apply) { + return + } + + for (const codemod of relevantCodemods) { + execSync( + `npx @next/codemod@latest ${codemod.value} ${process.cwd()} --force`, + { + stdio: 'inherit', + } + ) + } +} + run().catch(console.error) From 02d414252037eabba5e52d6dfab043a7f21a0113 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 16:00:52 +0900 Subject: [PATCH 10/17] chore: move next-upgrade to next-codemod --- packages/next-codemod/bin/cli.ts | 7 + packages/next-codemod/bin/upgrade.ts | 444 ++++++++++++++++++++++++++ packages/next-codemod/lib/codemods.ts | 96 ++++++ packages/next-codemod/package.json | 6 +- pnpm-lock.yaml | 4 +- 5 files changed, 554 insertions(+), 3 deletions(-) create mode 100644 packages/next-codemod/bin/upgrade.ts create mode 100644 packages/next-codemod/lib/codemods.ts diff --git a/packages/next-codemod/bin/cli.ts b/packages/next-codemod/bin/cli.ts index 7fc7f241ecf22..c93eb018fb61b 100644 --- a/packages/next-codemod/bin/cli.ts +++ b/packages/next-codemod/bin/cli.ts @@ -16,6 +16,7 @@ import execa from 'execa' import { yellow } from 'picocolors' import isGitClean from 'is-git-clean' import { installPackage, uninstallPackage } from '../lib/handle-package' +import { runUpgrade } from './upgrade' export const jscodeshiftExecutable = require.resolve('.bin/jscodeshift') export const transformerDirectory = path.join(__dirname, '../', 'transforms') @@ -210,6 +211,12 @@ export function run() { checkGitStatus(cli.flags.force) } + const isUpgrade = cli.input[0] === 'upgrade' || cli.input[0] === 'up' + + if (isUpgrade) { + return runUpgrade().catch(console.error) + } + if ( cli.input[0] && !TRANSFORMER_INQUIRER_CHOICES.find((x) => x.value === cli.input[0]) diff --git a/packages/next-codemod/bin/upgrade.ts b/packages/next-codemod/bin/upgrade.ts new file mode 100644 index 0000000000000..1da65dc8999cc --- /dev/null +++ b/packages/next-codemod/bin/upgrade.ts @@ -0,0 +1,444 @@ +import prompts from 'prompts' +import fs from 'fs' +import { execSync } from 'child_process' +import path from 'path' +import { compareVersions } from 'compare-versions' +import chalk from 'chalk' +import which from 'which' +import { availableCodemods } from '../lib/codemods.js' + +type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' +type CustomVersionSpecifier = string +type VersionSpecifier = StandardVersionSpecifier | CustomVersionSpecifier +type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun' + +interface Response { + version: StandardVersionSpecifier +} + +export async function runUpgrade(): Promise { + const appPackageJsonPath = path.resolve(process.cwd(), 'package.json') + let appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) + + await detectWorkspace(appPackageJson) + + let targetNextPackageJson + let targetVersionSpecifier: VersionSpecifier = '' + + const shortcutVersion = process.argv[2]?.replace('@', '') + if (shortcutVersion) { + const res = await fetch( + `https://registry.npmjs.org/next/${shortcutVersion}` + ) + if (res.status === 200) { + targetNextPackageJson = await res.json() + targetVersionSpecifier = targetNextPackageJson.version + } else { + console.error( + `${chalk.yellow('Next.js ' + shortcutVersion)} does not exist. Check available versions at ${chalk.underline('https://www.npmjs.com/package/next?activeTab=versions')}, or choose one from below\n` + ) + } + } + + const installedNextVersion = await getInstalledNextVersion() + + if (!targetNextPackageJson) { + let nextPackageJson: { [key: string]: any } = {} + try { + const resCanary = await fetch(`https://registry.npmjs.org/next/canary`) + nextPackageJson['canary'] = await resCanary.json() + + const resRc = await fetch(`https://registry.npmjs.org/next/rc`) + nextPackageJson['rc'] = await resRc.json() + + const resLatest = await fetch(`https://registry.npmjs.org/next/latest`) + nextPackageJson['latest'] = await resLatest.json() + } catch (error) { + console.error('Failed to fetch versions from npm registry.') + return + } + + let showRc = true + if (nextPackageJson['latest'].version && nextPackageJson['rc'].version) { + showRc = + compareVersions( + nextPackageJson['rc'].version, + nextPackageJson['latest'].version + ) === 1 + } + + const choices = [ + { + title: 'Canary', + value: 'canary', + description: `Experimental version with latest features (${nextPackageJson['canary'].version})`, + }, + ] + if (showRc) { + choices.push({ + title: 'Release Candidate', + value: 'rc', + description: `Pre-release version for final testing (${nextPackageJson['rc'].version})`, + }) + } + choices.push({ + title: 'Stable', + value: 'latest', + description: `Production-ready release (${nextPackageJson['latest'].version})`, + }) + + if (installedNextVersion) { + console.log( + `You are currently using ${chalk.blue('Next.js ' + installedNextVersion)}` + ) + } + + const initialVersionSpecifierIdx = await getVersionSpecifierIdx( + installedNextVersion, + showRc + ) + + const response: Response = await prompts( + { + type: 'select', + name: 'version', + message: 'What Next.js version do you want to upgrade to?', + choices: choices, + initial: initialVersionSpecifierIdx, + }, + { onCancel: () => process.exit(0) } + ) + + targetNextPackageJson = nextPackageJson[response.version] + targetVersionSpecifier = response.version + } + + const targetNextVersion = targetNextPackageJson.version + + if ( + targetNextVersion && + compareVersions(targetNextVersion, '15.0.0-canary') >= 0 + ) { + await suggestTurbopack(appPackageJson) + } + + fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) + + const packageManager: PackageManager = await getPackageManager(appPackageJson) + const nextDependency = `next@${targetNextVersion}` + const reactDependencies = [ + `react@${targetNextPackageJson.peerDependencies['react']}`, + `@types/react@${targetNextPackageJson.devDependencies['@types/react']}`, + `react-dom@${targetNextPackageJson.peerDependencies['react-dom']}`, + `@types/react-dom@${targetNextPackageJson.devDependencies['@types/react-dom']}`, + ] + + let updateCommand + switch (packageManager) { + case 'pnpm': + updateCommand = `pnpm update ${reactDependencies.join(' ')} ${nextDependency}` + break + case 'npm': + // npm will error out if all dependencies are updated at once because the new next + // version depends on the new react and react-dom versions we are installing + updateCommand = `npm install ${reactDependencies.join(' ')} && npm install ${nextDependency}` + break + case 'yarn': + updateCommand = `yarn add ${reactDependencies.join(' ')} ${nextDependency}` + break + case 'bun': + updateCommand = `bun add ${reactDependencies.join(' ')} ${nextDependency}` + break + default: + throw new Error(`Unreachable code`) + } + + console.log( + `Upgrading your project to ${chalk.blue('Next.js ' + targetVersionSpecifier)}...\n` + ) + execSync(updateCommand, { + stdio: 'inherit', + }) + + await suggestCodemods(installedNextVersion, targetNextVersion) + + console.log( + `\n${chalk.green('✔')} Your Next.js project has been upgraded successfully. ${chalk.bold('Time to ship! 🚢')}` + ) +} + +async function detectWorkspace(appPackageJson: any): Promise { + let isWorkspace = + appPackageJson.workspaces || + fs.existsSync(path.resolve(process.cwd(), 'pnpm-workspace.yaml')) + + if (!isWorkspace) return + + console.log( + `${chalk.red('⚠️')} You seem to be in the root of a monorepo. ${chalk.blue('@next/upgrade')} should be run in a specific app directory within the monorepo.` + ) + + const response = await prompts( + { + type: 'confirm', + name: 'value', + message: 'Do you still want to continue?', + initial: false, + }, + { onCancel: () => process.exit(0) } + ) + + if (!response.value) { + process.exit(0) + } +} + +async function getInstalledNextVersion(): Promise { + const installedNextPackageJsonDir = require.resolve('next/package.json', { + paths: [process.cwd()], + }) + const installedNextPackageJson = JSON.parse( + fs.readFileSync(installedNextPackageJsonDir, 'utf8') + ) + + return installedNextPackageJson.version +} + +/* + * Returns the index of the current version's specifier in the + * array ['canary', 'rc', 'latest'] or ['canary', 'latest'] + */ +async function getVersionSpecifierIdx( + installedNextVersion: string, + showRc: boolean +): Promise { + if (installedNextVersion == null) { + return 0 + } + + if (installedNextVersion.includes('canary')) { + return 0 + } + if (installedNextVersion.includes('rc')) { + return 1 + } + return showRc ? 2 : 1 +} + +async function getPackageManager(_packageJson: any): Promise { + const packageManagers = { + pnpm: 'pnpm-lock.yaml', + yarn: 'yarn.lock', + npm: 'package-lock.json', + bun: 'bun.lockb', + } + + // Recursively looks for either a package.json with a packageManager field or a lock file + function resolvePackageManagerUpwards(dir: string): PackageManager[] { + const packageJsonPath = path.join(dir, 'package.json') + if (fs.existsSync(packageJsonPath)) { + let detectedPackageManagers: PackageManager[] = [] + let packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) + if (packageJson.packageManager) { + // corepack + let packageManagerName = packageJson.packageManager.split( + '@' + )[0] as PackageManager + if (packageManagerName in packageManagers) { + return [packageManagerName] + } + } + for (const [packageManager, lockFile] of Object.entries( + packageManagers + )) { + const lockFilePath = path.join(dir, lockFile) + if (fs.existsSync(lockFilePath)) { + detectedPackageManagers.push(packageManager as PackageManager) + } + } + if (detectedPackageManagers.length !== 0) { + return detectedPackageManagers + } + } + const parentDir = path.dirname(dir) + if (parentDir !== dir) { + return resolvePackageManagerUpwards(parentDir) + } + return [] + } + + let realPath = fs.realpathSync(process.cwd()) + const detectedPackageManagers = resolvePackageManagerUpwards(realPath) + + // Exactly one package manager detected + if (detectedPackageManagers.length === 1) { + return detectedPackageManagers[0] + } + + // Multiple package managers detected + if (detectedPackageManagers.length > 1) { + const responsePackageManager = await prompts( + { + type: 'select', + name: 'packageManager', + message: 'Multiple package managers detected. Which one are you using?', + choices: detectedPackageManagers.map((packageManager) => ({ + title: packageManager, + value: packageManager, + })), + initial: 0, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + console.log( + `${chalk.red('⚠️')} To avoid this next time, keep only one of ${detectedPackageManagers.map((packageManager) => chalk.underline(packageManagers[packageManager])).join(' or ')}\n` + ) + + return responsePackageManager.packageManager as PackageManager + } + + // No package manager detected + let choices = ['pnpm', 'yarn', 'npm', 'bun'] + .filter((packageManager) => which.sync(packageManager, { nothrow: true })) + .map((packageManager) => ({ + title: packageManager, + value: packageManager, + })) + + const responsePackageManager = await prompts( + { + type: 'select', + name: 'packageManager', + message: 'No package manager detected. Which one are you using?', + choices: choices, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + return responsePackageManager.packageManager as PackageManager +} + +/* + * Heuristics are used to determine whether to Turbopack is enabled or not and + * to determine how to update the dev script. + * + * 1. If the dev script contains `--turbo` option, we assume that Turbopack is + * already enabled. + * 2. If the dev script contains the string `next dev`, we replace it to + * `next dev --turbo`. + * 3. Otherwise, we ask the user to manually add `--turbo` to their dev command, + * showing the current dev command as the initial value. + */ +async function suggestTurbopack(packageJson: any): Promise { + const devScript = packageJson.scripts['dev'] + if (devScript.includes('--turbo')) return + + const responseTurbopack = await prompts( + { + type: 'confirm', + name: 'enable', + message: 'Turbopack is now the stable default for dev mode. Enable it?', + initial: true, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + if (!responseTurbopack.enable) { + return + } + + if (devScript.includes('next dev')) { + packageJson.scripts['dev'] = devScript.replace( + 'next dev', + 'next dev --turbo' + ) + return + } + + const responseCustomDevScript = await prompts({ + type: 'text', + name: 'customDevScript', + message: 'Please add `--turbo` to your dev command:', + initial: devScript, + }) + + packageJson.scripts['dev'] = + responseCustomDevScript.customDevScript || devScript +} + +async function suggestCodemods( + initialNextVersion: string, + targetNextVersion: string +): Promise { + const initialVersionIndex = availableCodemods.findIndex( + (versionCodemods) => + compareVersions(versionCodemods.version, initialNextVersion) > 0 + ) + if (initialVersionIndex === -1) { + return + } + + let targetVersionIndex = availableCodemods.findIndex( + (versionCodemods) => + compareVersions(versionCodemods.version, targetNextVersion) > 0 + ) + if (targetVersionIndex === -1) { + targetVersionIndex = availableCodemods.length + } + + const relevantCodemods = availableCodemods + .slice(initialVersionIndex, targetVersionIndex) + .flatMap((versionCodemods) => versionCodemods.codemods) + + if (relevantCodemods.length === 0) { + return + } + + let codemodsString = `\nThe following ${chalk.blue('codemods')} are available for your upgrade:` + relevantCodemods.forEach((codemod) => { + codemodsString += `\n- ${codemod.title} ${chalk.gray(`(${codemod.value})`)}` + }) + codemodsString += '\n' + + console.log(codemodsString) + + const responseCodemods = await prompts( + { + type: 'confirm', + name: 'apply', + message: `Do you want to apply these codemods?`, + initial: true, + }, + { + onCancel: () => { + process.exit(0) + }, + } + ) + + if (!responseCodemods.apply) { + return + } + + for (const codemod of relevantCodemods) { + execSync( + `npx @next/codemod@latest ${codemod.value} ${process.cwd()} --force`, + { + stdio: 'inherit', + } + ) + } +} diff --git a/packages/next-codemod/lib/codemods.ts b/packages/next-codemod/lib/codemods.ts new file mode 100644 index 0000000000000..d5fef8e63affe --- /dev/null +++ b/packages/next-codemod/lib/codemods.ts @@ -0,0 +1,96 @@ +type Codemod = { + title: string + value: string +} + +type VersionCodemods = { + version: string + codemods: Codemod[] +} + +export const availableCodemods: VersionCodemods[] = [ + { + version: '6', + codemods: [ + { + title: 'Use withRouter', + value: 'url-to-withrouter', + }, + ], + }, + { + version: '8', + codemods: [ + { + title: 'Transform AMP HOC into page config', + value: 'withamp-to-config', + }, + ], + }, + { + version: '9', + codemods: [ + { + title: 'Transform Anonymous Components into Named Components', + value: 'name-default-component', + }, + ], + }, + { + version: '10', + codemods: [ + { + title: 'Add React Import', + value: 'add-missing-react-import', + }, + ], + }, + { + version: '11', + codemods: [ + { + title: 'Migrate from CRA', + value: 'cra-to-next', + }, + ], + }, + { + version: '13.0', + codemods: [ + { + title: 'Remove Tags From Link Components', + value: 'new-link', + }, + { + title: 'Migrate to the New Image Component', + value: 'next-image-experimental', + }, + { + title: 'Rename Next Image Imports', + value: 'next-image-to-legacy-image', + }, + ], + }, + { + version: '13.2', + codemods: [ + { + title: 'Use Built-in Font', + value: 'built-in-next-font', + }, + ], + }, + { + version: '14.0', + codemods: [ + { + title: 'Migrate ImageResponse imports', + value: 'next-og-import', + }, + { + title: 'Use viewport export', + value: 'metadata-to-viewport-export', + }, + ], + }, +] diff --git a/packages/next-codemod/package.json b/packages/next-codemod/package.json index e4ba972a44e0d..cb5488106d18e 100644 --- a/packages/next-codemod/package.json +++ b/packages/next-codemod/package.json @@ -8,14 +8,18 @@ "directory": "packages/next-codemod" }, "dependencies": { + "chalk": "4.1.2", "cheerio": "1.0.0-rc.9", + "compare-versions": "6.1.1", "execa": "4.0.3", "globby": "11.0.1", "inquirer": "7.3.3", "is-git-clean": "1.1.0", "jscodeshift": "17.0.0", "meow": "7.0.1", - "picocolors": "1.0.0" + "picocolors": "1.0.0", + "prompts": "2.4.2", + "which": "4.0.0" }, "files": [ "transforms/*.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 500f260cc1e83..b10bfe9a33b92 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1497,8 +1497,8 @@ importers: packages/next-codemod: dependencies: chalk: - specifier: 5.3.0 - version: 5.3.0 + specifier: 4.1.2 + version: 4.1.2 cheerio: specifier: 1.0.0-rc.9 version: 1.0.0-rc.9 From e8559e25eac409bd0276b6a8f4d4be0602322dcd Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 16:01:14 +0900 Subject: [PATCH 11/17] chore: delete next-upgrade --- packages/next-upgrade/README.md | 43 --- packages/next-upgrade/codemods.ts | 96 ------ packages/next-upgrade/index.ts | 450 ---------------------------- packages/next-upgrade/package.json | 38 --- packages/next-upgrade/tsconfig.json | 14 - 5 files changed, 641 deletions(-) delete mode 100644 packages/next-upgrade/README.md delete mode 100644 packages/next-upgrade/codemods.ts delete mode 100644 packages/next-upgrade/index.ts delete mode 100644 packages/next-upgrade/package.json delete mode 100644 packages/next-upgrade/tsconfig.json diff --git a/packages/next-upgrade/README.md b/packages/next-upgrade/README.md deleted file mode 100644 index 20079430dc7ba..0000000000000 --- a/packages/next-upgrade/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# @next/upgrade - -Upgrade Next.js apps to newer or beta versions with one command. - -```bash -npx @next/upgrade -``` - -## How to use it? - -Simply run `npx @next/upgrade` in your project and follow the few prompts. This will let you choose between the latest canary, release candidate or stable version of Next.js. - -You can also pass a specific Next.js version as an argument: - -```bash -npx @next/upgrade 15.0.0-canary.148 -``` - -`@next/upgrade` supports `pnpm`, `npm`, `yarn` and `bun`, and is compatible with monorepos. - -## Why? - -Updating Next.js is not just merely running `pnpm update next` or its equivalent in your package manager of choice. It also involves updating `react`, `@types/react`, `react-dom`, `@types/react-dom`, and potentially other dependencies. - -We noticed that trying out new or beta versions of Next.js was not as smooth as it could be, so we created this small tool that makes it easier. - -## Contributing - -To build the package locally, clone the [@vercel/next repo](https://github.com/vercel/next.js/), navigate to `packages/next-upgrade` and run: - -```bash -pnpm build -``` - -To test your local version of `@next/upgrade`, run `pnpm link --global` from the `@next/upgrade` directory and add the following to the `package.json` of your Next.js app: - -```json -"dependencies": { - "@next/upgrade": "files:path/to/local/next.js/packages/next-upgrade" -} -``` - -Finally, run `pnpm i` and now you can use your local version of `@next/upgrade` with the standard `npx @next/upgrade` command. diff --git a/packages/next-upgrade/codemods.ts b/packages/next-upgrade/codemods.ts deleted file mode 100644 index d5fef8e63affe..0000000000000 --- a/packages/next-upgrade/codemods.ts +++ /dev/null @@ -1,96 +0,0 @@ -type Codemod = { - title: string - value: string -} - -type VersionCodemods = { - version: string - codemods: Codemod[] -} - -export const availableCodemods: VersionCodemods[] = [ - { - version: '6', - codemods: [ - { - title: 'Use withRouter', - value: 'url-to-withrouter', - }, - ], - }, - { - version: '8', - codemods: [ - { - title: 'Transform AMP HOC into page config', - value: 'withamp-to-config', - }, - ], - }, - { - version: '9', - codemods: [ - { - title: 'Transform Anonymous Components into Named Components', - value: 'name-default-component', - }, - ], - }, - { - version: '10', - codemods: [ - { - title: 'Add React Import', - value: 'add-missing-react-import', - }, - ], - }, - { - version: '11', - codemods: [ - { - title: 'Migrate from CRA', - value: 'cra-to-next', - }, - ], - }, - { - version: '13.0', - codemods: [ - { - title: 'Remove Tags From Link Components', - value: 'new-link', - }, - { - title: 'Migrate to the New Image Component', - value: 'next-image-experimental', - }, - { - title: 'Rename Next Image Imports', - value: 'next-image-to-legacy-image', - }, - ], - }, - { - version: '13.2', - codemods: [ - { - title: 'Use Built-in Font', - value: 'built-in-next-font', - }, - ], - }, - { - version: '14.0', - codemods: [ - { - title: 'Migrate ImageResponse imports', - value: 'next-og-import', - }, - { - title: 'Use viewport export', - value: 'metadata-to-viewport-export', - }, - ], - }, -] diff --git a/packages/next-upgrade/index.ts b/packages/next-upgrade/index.ts deleted file mode 100644 index 361d130ae63c2..0000000000000 --- a/packages/next-upgrade/index.ts +++ /dev/null @@ -1,450 +0,0 @@ -#!/usr/bin/env node - -import prompts from 'prompts' -import fs from 'fs' -import { execSync } from 'child_process' -import path from 'path' -import { compareVersions } from 'compare-versions' -import chalk from 'chalk' -import which from 'which' -import { createRequire } from 'node:module' -import { availableCodemods } from './codemods.js' - -type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' -type CustomVersionSpecifier = string -type VersionSpecifier = StandardVersionSpecifier | CustomVersionSpecifier -type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun' - -interface Response { - version: StandardVersionSpecifier -} - -async function run(): Promise { - const appPackageJsonPath = path.resolve(process.cwd(), 'package.json') - let appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8')) - - await detectWorkspace(appPackageJson) - - let targetNextPackageJson - let targetVersionSpecifier: VersionSpecifier = '' - - const shortcutVersion = process.argv[2]?.replace('@', '') - if (shortcutVersion) { - const res = await fetch( - `https://registry.npmjs.org/next/${shortcutVersion}` - ) - if (res.status === 200) { - targetNextPackageJson = await res.json() - targetVersionSpecifier = targetNextPackageJson.version - } else { - console.error( - `${chalk.yellow('Next.js ' + shortcutVersion)} does not exist. Check available versions at ${chalk.underline('https://www.npmjs.com/package/next?activeTab=versions')}, or choose one from below\n` - ) - } - } - - const installedNextVersion = await getInstalledNextVersion() - - if (!targetNextPackageJson) { - let nextPackageJson: { [key: string]: any } = {} - try { - const resCanary = await fetch(`https://registry.npmjs.org/next/canary`) - nextPackageJson['canary'] = await resCanary.json() - - const resRc = await fetch(`https://registry.npmjs.org/next/rc`) - nextPackageJson['rc'] = await resRc.json() - - const resLatest = await fetch(`https://registry.npmjs.org/next/latest`) - nextPackageJson['latest'] = await resLatest.json() - } catch (error) { - console.error('Failed to fetch versions from npm registry.') - return - } - - let showRc = true - if (nextPackageJson['latest'].version && nextPackageJson['rc'].version) { - showRc = - compareVersions( - nextPackageJson['rc'].version, - nextPackageJson['latest'].version - ) === 1 - } - - const choices = [ - { - title: 'Canary', - value: 'canary', - description: `Experimental version with latest features (${nextPackageJson['canary'].version})`, - }, - ] - if (showRc) { - choices.push({ - title: 'Release Candidate', - value: 'rc', - description: `Pre-release version for final testing (${nextPackageJson['rc'].version})`, - }) - } - choices.push({ - title: 'Stable', - value: 'latest', - description: `Production-ready release (${nextPackageJson['latest'].version})`, - }) - - if (installedNextVersion) { - console.log( - `You are currently using ${chalk.blue('Next.js ' + installedNextVersion)}` - ) - } - - const initialVersionSpecifierIdx = await getVersionSpecifierIdx( - installedNextVersion, - showRc - ) - - const response: Response = await prompts( - { - type: 'select', - name: 'version', - message: 'What Next.js version do you want to upgrade to?', - choices: choices, - initial: initialVersionSpecifierIdx, - }, - { onCancel: () => process.exit(0) } - ) - - targetNextPackageJson = nextPackageJson[response.version] - targetVersionSpecifier = response.version - } - - const targetNextVersion = targetNextPackageJson.version - - if ( - targetNextVersion && - compareVersions(targetNextVersion, '15.0.0-canary') >= 0 - ) { - await suggestTurbopack(appPackageJson) - } - - fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) - - const packageManager: PackageManager = await getPackageManager(appPackageJson) - const nextDependency = `next@${targetNextVersion}` - const reactDependencies = [ - `react@${targetNextPackageJson.peerDependencies['react']}`, - `@types/react@${targetNextPackageJson.devDependencies['@types/react']}`, - `react-dom@${targetNextPackageJson.peerDependencies['react-dom']}`, - `@types/react-dom@${targetNextPackageJson.devDependencies['@types/react-dom']}`, - ] - - let updateCommand - switch (packageManager) { - case 'pnpm': - updateCommand = `pnpm update ${reactDependencies.join(' ')} ${nextDependency}` - break - case 'npm': - // npm will error out if all dependencies are updated at once because the new next - // version depends on the new react and react-dom versions we are installing - updateCommand = `npm install ${reactDependencies.join(' ')} && npm install ${nextDependency}` - break - case 'yarn': - updateCommand = `yarn add ${reactDependencies.join(' ')} ${nextDependency}` - break - case 'bun': - updateCommand = `bun add ${reactDependencies.join(' ')} ${nextDependency}` - break - default: - throw new Error(`Unreachable code`) - } - - console.log( - `Upgrading your project to ${chalk.blue('Next.js ' + targetVersionSpecifier)}...\n` - ) - execSync(updateCommand, { - stdio: 'inherit', - }) - - await suggestCodemods(installedNextVersion, targetNextVersion) - - console.log( - `\n${chalk.green('✔')} Your Next.js project has been upgraded successfully. ${chalk.bold('Time to ship! 🚢')}` - ) -} - -async function detectWorkspace(appPackageJson: any): Promise { - let isWorkspace = - appPackageJson.workspaces || - fs.existsSync(path.resolve(process.cwd(), 'pnpm-workspace.yaml')) - - if (!isWorkspace) return - - console.log( - `${chalk.red('⚠️')} You seem to be in the root of a monorepo. ${chalk.blue('@next/upgrade')} should be run in a specific app directory within the monorepo.` - ) - - const response = await prompts( - { - type: 'confirm', - name: 'value', - message: 'Do you still want to continue?', - initial: false, - }, - { onCancel: () => process.exit(0) } - ) - - if (!response.value) { - process.exit(0) - } -} - -async function getInstalledNextVersion(): Promise { - const require = createRequire(import.meta.url) - const installedNextPackageJsonDir = require.resolve('next/package.json', { - paths: [process.cwd()], - }) - const installedNextPackageJson = JSON.parse( - fs.readFileSync(installedNextPackageJsonDir, 'utf8') - ) - - return installedNextPackageJson.version -} - -/* - * Returns the index of the current version's specifier in the - * array ['canary', 'rc', 'latest'] or ['canary', 'latest'] - */ -async function getVersionSpecifierIdx( - installedNextVersion: string, - showRc: boolean -): Promise { - if (installedNextVersion == null) { - return 0 - } - - if (installedNextVersion.includes('canary')) { - return 0 - } - if (installedNextVersion.includes('rc')) { - return 1 - } - return showRc ? 2 : 1 -} - -async function getPackageManager(_packageJson: any): Promise { - const packageManagers = { - pnpm: 'pnpm-lock.yaml', - yarn: 'yarn.lock', - npm: 'package-lock.json', - bun: 'bun.lockb', - } - - // Recursively looks for either a package.json with a packageManager field or a lock file - function resolvePackageManagerUpwards(dir: string): PackageManager[] { - const packageJsonPath = path.join(dir, 'package.json') - if (fs.existsSync(packageJsonPath)) { - let detectedPackageManagers: PackageManager[] = [] - let packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) - if (packageJson.packageManager) { - // corepack - let packageManagerName = packageJson.packageManager.split( - '@' - )[0] as PackageManager - if (packageManagerName in packageManagers) { - return [packageManagerName] - } - } - for (const [packageManager, lockFile] of Object.entries( - packageManagers - )) { - const lockFilePath = path.join(dir, lockFile) - if (fs.existsSync(lockFilePath)) { - detectedPackageManagers.push(packageManager as PackageManager) - } - } - if (detectedPackageManagers.length !== 0) { - return detectedPackageManagers - } - } - const parentDir = path.dirname(dir) - if (parentDir !== dir) { - return resolvePackageManagerUpwards(parentDir) - } - return [] - } - - let realPath = fs.realpathSync(process.cwd()) - const detectedPackageManagers = resolvePackageManagerUpwards(realPath) - - // Exactly one package manager detected - if (detectedPackageManagers.length === 1) { - return detectedPackageManagers[0] - } - - // Multiple package managers detected - if (detectedPackageManagers.length > 1) { - const responsePackageManager = await prompts( - { - type: 'select', - name: 'packageManager', - message: 'Multiple package managers detected. Which one are you using?', - choices: detectedPackageManagers.map((packageManager) => ({ - title: packageManager, - value: packageManager, - })), - initial: 0, - }, - { - onCancel: () => { - process.exit(0) - }, - } - ) - - console.log( - `${chalk.red('⚠️')} To avoid this next time, keep only one of ${detectedPackageManagers.map((packageManager) => chalk.underline(packageManagers[packageManager])).join(' or ')}\n` - ) - - return responsePackageManager.packageManager as PackageManager - } - - // No package manager detected - let choices = ['pnpm', 'yarn', 'npm', 'bun'] - .filter((packageManager) => which.sync(packageManager, { nothrow: true })) - .map((packageManager) => ({ - title: packageManager, - value: packageManager, - })) - - const responsePackageManager = await prompts( - { - type: 'select', - name: 'packageManager', - message: 'No package manager detected. Which one are you using?', - choices: choices, - }, - { - onCancel: () => { - process.exit(0) - }, - } - ) - - return responsePackageManager.packageManager as PackageManager -} - -/* - * Heuristics are used to determine whether to Turbopack is enabled or not and - * to determine how to update the dev script. - * - * 1. If the dev script contains `--turbo` option, we assume that Turbopack is - * already enabled. - * 2. If the dev script contains the string `next dev`, we replace it to - * `next dev --turbo`. - * 3. Otherwise, we ask the user to manually add `--turbo` to their dev command, - * showing the current dev command as the initial value. - */ -async function suggestTurbopack(packageJson: any): Promise { - const devScript = packageJson.scripts['dev'] - if (devScript.includes('--turbo')) return - - const responseTurbopack = await prompts( - { - type: 'confirm', - name: 'enable', - message: 'Turbopack is now the stable default for dev mode. Enable it?', - initial: true, - }, - { - onCancel: () => { - process.exit(0) - }, - } - ) - - if (!responseTurbopack.enable) { - return - } - - if (devScript.includes('next dev')) { - packageJson.scripts['dev'] = devScript.replace( - 'next dev', - 'next dev --turbo' - ) - return - } - - const responseCustomDevScript = await prompts({ - type: 'text', - name: 'customDevScript', - message: 'Please add `--turbo` to your dev command:', - initial: devScript, - }) - - packageJson.scripts['dev'] = - responseCustomDevScript.customDevScript || devScript -} - -async function suggestCodemods( - initialNextVersion: string, - targetNextVersion: string -): Promise { - const initialVersionIndex = availableCodemods.findIndex( - (versionCodemods) => - compareVersions(versionCodemods.version, initialNextVersion) > 0 - ) - if (initialVersionIndex === -1) { - return - } - - let targetVersionIndex = availableCodemods.findIndex( - (versionCodemods) => - compareVersions(versionCodemods.version, targetNextVersion) > 0 - ) - if (targetVersionIndex === -1) { - targetVersionIndex = availableCodemods.length - } - - const relevantCodemods = availableCodemods - .slice(initialVersionIndex, targetVersionIndex) - .flatMap((versionCodemods) => versionCodemods.codemods) - - if (relevantCodemods.length === 0) { - return - } - - let codemodsString = `\nThe following ${chalk.blue('codemods')} are available for your upgrade:` - relevantCodemods.forEach((codemod) => { - codemodsString += `\n- ${codemod.title} ${chalk.gray(`(${codemod.value})`)}` - }) - codemodsString += '\n' - - console.log(codemodsString) - - const responseCodemods = await prompts( - { - type: 'confirm', - name: 'apply', - message: `Do you want to apply these codemods?`, - initial: true, - }, - { - onCancel: () => { - process.exit(0) - }, - } - ) - - if (!responseCodemods.apply) { - return - } - - for (const codemod of relevantCodemods) { - execSync( - `npx @next/codemod@latest ${codemod.value} ${process.cwd()} --force`, - { - stdio: 'inherit', - } - ) - } -} - -run().catch(console.error) diff --git a/packages/next-upgrade/package.json b/packages/next-upgrade/package.json deleted file mode 100644 index d26698a2b84e0..0000000000000 --- a/packages/next-upgrade/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@next/upgrade", - "version": "1.0.0", - "description": "Upgrade Next.js apps to newer or beta versions with one command", - "main": "dist/index.js", - "bin": { - "@next/upgrade": "./dist/index.js" - }, - "repository": { - "url": "vercel/next.js", - "directory": "packages/next-upgrade" - }, - "keywords": [ - "next", - "next.js" - ], - "author": "Next.js Team ", - "license": "MIT", - "dependencies": { - "chalk": "5.3.0", - "compare-versions": "6.1.1", - "prompts": "^2.4.2", - "which": "4.0.0", - "yaml": "2.5.1" - }, - "devDependencies": { - "@types/node": "^14.14.31", - "@types/prompts": "^2.0.14", - "@types/which": "3.0.4", - "typescript": "^4.3.5" - }, - "scripts": { - "build": "tsc", - "start": "node dist/index.js", - "dev": "tsc && node dist/index.js" - }, - "type": "module" -} diff --git a/packages/next-upgrade/tsconfig.json b/packages/next-upgrade/tsconfig.json deleted file mode 100644 index 1e9363cd129d6..0000000000000 --- a/packages/next-upgrade/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "target": "es2018", - "module": "esnext", - "moduleResolution": "node", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "outDir": "./dist" - }, - "include": ["index.ts"], - "exclude": ["node_modules"] -} From 29efc4dbfa0d50a259e28a260ed11ae62cf394c7 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 16:32:10 +0900 Subject: [PATCH 12/17] pnpm remove next upgrade --- pnpm-lock.yaml | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0720810b313d..514c7138bb33a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1593,37 +1593,6 @@ importers: specifier: 6.0.3 version: 6.0.3 - packages/next-upgrade: - dependencies: - chalk: - specifier: 5.3.0 - version: 5.3.0 - compare-versions: - specifier: 6.1.1 - version: 6.1.1 - prompts: - specifier: ^2.4.2 - version: 2.4.2 - which: - specifier: 4.0.0 - version: 4.0.0 - yaml: - specifier: 2.5.1 - version: 2.5.1 - devDependencies: - '@types/node': - specifier: 20.12.3 - version: 20.12.3 - '@types/prompts': - specifier: ^2.0.14 - version: 2.4.2 - '@types/which': - specifier: 3.0.4 - version: 3.0.4 - typescript: - specifier: ^4.3.5 - version: 4.8.2 - packages/react-refresh-utils: devDependencies: react-refresh: @@ -5284,9 +5253,6 @@ packages: '@types/webpack@5.28.5': resolution: {integrity: sha512-wR87cgvxj3p6D0Crt1r5avwqffqPXUkNlnQ1mjU93G7gCuFjufZR4I6j8cz5g1F1tTYpfOOFvly+cmIQwL9wvw==} - '@types/which@3.0.4': - resolution: {integrity: sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==} - '@types/wrap-ansi@3.0.0': resolution: {integrity: sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==} @@ -15140,11 +15106,6 @@ packages: resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==} engines: {node: '>= 14'} - yaml@2.5.1: - resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} - engines: {node: '>= 14'} - hasBin: true - yargs-parser@15.0.0: resolution: {integrity: sha512-xLTUnCMc4JhxrPEPUYD5IBR1mWCK/aT6+RJ/K29JY2y1vD+FhtgKK0AXRWvI262q3QSffAQuTouFIKUuHX89wQ==} @@ -19893,8 +19854,6 @@ snapshots: - uglify-js - webpack-cli - '@types/which@3.0.4': {} - '@types/wrap-ansi@3.0.0': {} '@types/ws@8.2.0': @@ -32010,8 +31969,6 @@ snapshots: yaml@2.3.4: {} - yaml@2.5.1: {} - yargs-parser@15.0.0: dependencies: camelcase: 5.3.1 From 535f119d70da96885716ee01b41a7b1ca4b3a4c3 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 17:10:11 +0900 Subject: [PATCH 13/17] run ncc compiled --- packages/next/src/compiled/debug/index.js | 2 +- packages/next/src/compiled/glob/glob.js | 2 +- packages/next/src/compiled/ora/index.js | 2 +- packages/next/src/compiled/postcss-safe-parser/safe-parse.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/next/src/compiled/debug/index.js b/packages/next/src/compiled/debug/index.js index 819ef0a8d9026..87dea6b31eab1 100644 --- a/packages/next/src/compiled/debug/index.js +++ b/packages/next/src/compiled/debug/index.js @@ -1 +1 @@ -(()=>{var e={237:(e,t,r)=>{t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(573)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},573:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(958);Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return t}o++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[o];t=n.call(r,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const c=r.log||createDebug.log;c.apply(r,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const s=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(237)}else{e.exports=r(354)}},354:(e,t,r)=>{const s=r(224);const n=r(837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=r(178);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const o=` ${n};1m${r} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1||s{var t=1e3;var r=t*60;var s=r*60;var n=s*24;var o=n*7;var c=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var i=(a[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return u*c;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*n;case"hours":case"hour":case"hrs":case"hr":case"h":return u*s;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=n){return Math.round(e/n)+"d"}if(o>=s){return Math.round(e/s)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=n){return plural(e,o,n,"day")}if(o>=s){return plural(e,o,s,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},178:(e,t,r)=>{"use strict";const s=r(37);const n=r(224);const o=r(914);const{env:c}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}function envForceColor(){if("FORCE_COLOR"in c){if(c.FORCE_COLOR==="true"){return 1}if(c.FORCE_COLOR==="false"){return 0}return c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,{streamIsTTY:t,sniffFlags:r=true}={}){const n=envForceColor();if(n!==undefined){a=n}const u=r?a:n;if(u===0){return 0}if(r){if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}}if(e&&!t&&u===undefined){return 0}const i=u||0;if(c.TERM==="dumb"){return i}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in c){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in c))||c.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in c){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0}if(c.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in c){const e=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(c.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)){return 1}if("COLORTERM"in c){return 1}return i}function getSupportLevel(e,t={}){const r=supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel({isTTY:n.isatty(1)}),stderr:getSupportLevel({isTTY:n.isatty(2)})}},37:e=>{"use strict";e.exports=require("os")},224:e=>{"use strict";e.exports=require("tty")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r](n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(792);module.exports=r})(); \ No newline at end of file +(()=>{var e={237:(e,t,r)=>{t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(573)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},573:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(958);Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return t}o++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[o];t=n.call(r,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const c=r.log||createDebug.log;c.apply(r,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const s=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(237)}else{e.exports=r(354)}},354:(e,t,r)=>{const s=r(224);const n=r(837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=r(793);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const o=` ${n};1m${r} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1||s{var t=1e3;var r=t*60;var s=r*60;var n=s*24;var o=n*7;var c=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var i=(a[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return u*c;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*n;case"hours":case"hour":case"hrs":case"hr":case"h":return u*s;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=n){return Math.round(e/n)+"d"}if(o>=s){return Math.round(e/s)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=n){return plural(e,o,n,"day")}if(o>=s){return plural(e,o,s,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},793:(e,t,r)=>{"use strict";const s=r(37);const n=r(224);const o=r(914);const{env:c}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in c){if(c.FORCE_COLOR==="true"){a=1}else if(c.FORCE_COLOR==="false"){a=0}else{a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(c.TERM==="dumb"){return r}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in c){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in c))||c.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in c){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0}if(c.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in c){const e=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(c.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)){return 1}if("COLORTERM"in c){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,n.isatty(1))),stderr:translateLevel(supportsColor(true,n.isatty(2)))}},37:e=>{"use strict";e.exports=require("os")},224:e=>{"use strict";e.exports=require("tty")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r](n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(792);module.exports=r})(); \ No newline at end of file diff --git a/packages/next/src/compiled/glob/glob.js b/packages/next/src/compiled/glob/glob.js index 53acc94b25eed..4c0401ef2d077 100644 --- a/packages/next/src/compiled/glob/glob.js +++ b/packages/next/src/compiled/glob/glob.js @@ -1 +1 @@ -(()=>{var t={442:t=>{"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,a,n,s,o;var c=r.indexOf(t);var h=r.indexOf(e,c+1);var l=c;if(c>=0&&h>0){i=[];n=r.length;while(l>=0&&!o){if(l==c){i.push(l);c=r.indexOf(t,l+1)}else if(i.length==1){o=[i.pop(),h]}else{a=i.pop();if(a=0?c:h}if(i.length){o=[n,s]}}return o}},800:(t,e,r)=>{var i=r(381);var a=r(442);t.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(t){return t.split(n).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=a("{","}",t);if(!r)return t.split(",");var i=r.pre;var n=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+n+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=a("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var h=s||c;var l=n.body.indexOf(",")>=0;if(!h&&!l){if(n.post.match(/,.*\}/)){t=n.pre+"{"+n.body+o+n.post;return expand(t)}return[t]}var u;if(h){u=n.body.split(/\.\./)}else{u=parseCommaParts(n.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=n.post.length?expand(n.post,false):[""];return p.map((function(t){return n.pre+u[0]+t}))}}}var v=n.pre;var p=n.post.length?expand(n.post,false):[""];var d;if(h){var m=numeric(u[0]);var b=numeric(u[1]);var g=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var _=lte;var w=b0){var O=new Array(x+1).join("0");if(S<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=i(u,(function(t){return expand(t,false)}))}for(var A=0;A{t.exports=function(t,r){var i=[];for(var a=0;a{t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(147);var a=i.realpath;var n=i.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(623);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return a(t,e,r)}if(typeof e==="function"){r=e;e=null}a(t,e,(function(i,a){if(newError(i)){c.realpath(t,e,r)}else{r(i,a)}}))}function realpathSync(t,e){if(o){return n(t,e)}try{return n(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=a;i.realpathSync=n}},623:(t,e,r)=>{var i=r(17);var a=process.platform==="win32";var n=r(147);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(s){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(a){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(a){var h=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var h=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,s={},o={};var l;var u;var p;var v;start();function start(){var e=h.exec(t);l=e[0].length;u=e[0];p=e[0];v="";if(a&&!o[p]){n.lstatSync(p);o[p]=true}}while(l=t.length){if(e)e[s]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(l[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return n.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){l[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!a){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],v)}}n.stat(v,(function(t){if(t)return r(t);n.readlink(v,(function(t,e){if(!a)o[s]=e;gotTarget(t,e)}))}))}function gotTarget(t,a,n){if(t)return r(t);var s=i.resolve(d,a);if(e)e[n]=s;gotResolvedLink(s)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},129:(t,e,r)=>{e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(17);var a=r(923);var n=r(230);var s=a.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new s(r,{dot:true})}return{matcher:new s(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var a=process.cwd();if(!ownProp(r,"cwd"))t.cwd=a;else{t.cwd=i.resolve(r.cwd);t.changedCwd=t.cwd!==a}t.root=r.root||i.resolve(t.cwd,"/");t.root=i.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=n(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;t.minimatch=new s(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,a=t.matches.length;i{t.exports=glob;var i=r(147);var a=r(981);var n=r(923);var s=n.Minimatch;var o=r(842);var c=r(361).EventEmitter;var h=r(17);var l=r(491);var u=r(230);var p=r(447);var v=r(129);var d=v.setopts;var m=v.ownProp;var b=r(143);var g=r(837);var y=v.childrenIgnored;var _=v.isIgnored;var w=r(852);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return p(t,e)}return new Glob(t,e,r)}glob.sync=p;var k=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var a=i.minimatch.set;if(!t)return false;if(a.length>1)return true;for(var n=0;nthis.maxLength)return e();if(!this.stat&&m(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!a||n==="DIR")return e(null,n);if(a&&n==="FILE")return e()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return e(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(a&&c==="FILE")return e();else return e(null,c,o)}}var h=this;var l=b("stat\0"+r,lstatcb_);if(l)i.lstat(r,l);function lstatcb_(a,n){if(n&&n.isSymbolicLink()){return i.stat(r,(function(i,a){if(i)h._stat2(t,r,null,n,e);else h._stat2(t,r,i,a,e)}))}else{h._stat2(t,r,a,n,e)}}};Glob.prototype._stat2=function(t,e,r,i,a){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return a()}var n=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return a(null,false,i);var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||s;if(n&&s==="FILE")return a();return a(null,s,i)}},447:(t,e,r)=>{t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(147);var a=r(981);var n=r(923);var s=n.Minimatch;var o=r(346).Glob;var c=r(837);var h=r(17);var l=r(491);var u=r(230);var p=r(129);var v=p.setopts;var d=p.ownProp;var m=p.childrenIgnored;var b=p.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);v(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;ithis.maxLength)return false;if(!this.stat&&d(this.cache,e)){var a=this.cache[e];if(Array.isArray(a))a="DIR";if(!r||a==="DIR")return a;if(r&&a==="FILE")return false}var n;var s=this.statCache[e];if(!s){var o;try{o=i.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(o&&o.isSymbolicLink()){try{s=i.statSync(e)}catch(t){s=o}}else{s=o}}this.statCache[e]=s;var a=true;if(s)a=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||a;if(r&&a==="FILE")return false;return a};GlobSync.prototype._mark=function(t){return p.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return p.makeAbs(this,t)}},143:(t,e,r)=>{var i=r(270);var a=Object.create(null);var n=r(852);t.exports=i(inflight);function inflight(t,e){if(a[t]){a[t].push(e);return null}else{a[t]=[e];return makeres(t)}}function makeres(t){return n((function RES(){var e=a[t];var r=e.length;var i=slice(arguments);try{for(var n=0;nr){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete a[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i{try{var i=r(837);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(782)}},782:t=>{if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},923:(t,e,r)=>{t.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return r(17)}catch(t){}}()||{sep:"/"};minimatch.sep=i.sep;var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var n=r(800);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce((function(t,e){t[e]=true;return t}),{})}var p=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(r,i,a){return minimatch(r,t,e)}}function ext(t,e){e=e||{};var r={};Object.keys(t).forEach((function(e){r[e]=t[e]}));Object.keys(e).forEach((function(t){r[t]=e[t]}));return r}minimatch.defaults=function(t){if(!t||typeof t!=="object"||!Object.keys(t).length){return minimatch}var e=minimatch;var r=function minimatch(r,i,a){return e(r,i,ext(t,a))};r.Minimatch=function Minimatch(r,i){return new e.Minimatch(r,ext(t,i))};r.Minimatch.defaults=function defaults(r){return e.defaults(ext(t,r)).Minimatch};r.filter=function filter(r,i){return e.filter(r,ext(t,i))};r.defaults=function defaults(r){return e.defaults(ext(t,r))};r.makeRe=function makeRe(r,i){return e.makeRe(r,ext(t,i))};r.braceExpand=function braceExpand(r,i){return e.braceExpand(r,ext(t,i))};r.match=function(r,i,a){return e.match(r,i,ext(t,a))};return r};Minimatch.defaults=function(t){return minimatch.defaults(t).Minimatch};function minimatch(t,e,r){assertValidPattern(e);if(!r)r={};if(!r.nocomment&&e.charAt(0)==="#"){return false}return new Minimatch(e,r).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}assertValidPattern(t);if(!e)e={};t=t.trim();if(!e.allowWindowsEscape&&i.sep!=="/"){t=t.split(i.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!e.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(e.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(t){return t.split(p)}));this.debug(this.pattern,r);r=r.map((function(t,e,r){return t.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(t){return t.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var r=this.options;var i=0;if(r.nonegate)return;for(var a=0,n=t.length;av){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var d={};function parse(t,e){assertValidPattern(t);var r=this.options;if(t==="**"){if(!r.noglobstar)return a;else t="*"}if(t==="")return"";var i="";var n=!!r.nocase;var h=false;var l=[];var p=[];var v;var m=false;var b=-1;var g=-1;var y=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(v){switch(v){case"*":i+=c;n=true;break;case"?":i+=o;n=true;break;default:i+="\\"+v;break}_.debug("clearStateChar %j %j",v,i);v=false}}for(var w=0,k=t.length,S;w-1;M--){var I=p[M];var R=i.slice(0,I.reStart);var C=i.slice(I.reStart,I.reEnd-8);var L=i.slice(I.reEnd-8,I.reEnd);var N=i.slice(I.reEnd);L+=N;var T=R.split("(").length-1;var P=N;for(w=0;w=0;s--){n=t[s];if(n)break}for(s=0;s>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof h==="string"){d=l===h;this.debug("string match",h,l,d)}else{d=l.match(h);this.debug("pattern match",h,l,d)}if(!d)return false}if(n===o&&s===c){return true}else if(n===o){return r}else if(s===c){return n===o-1&&t[n]===""}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},852:(t,e,r)=>{var i=r(270);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},230:t=>{"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var a=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||a)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},270:t=>{t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r{"use strict";t.exports=require("assert")},361:t=>{"use strict";t.exports=require("events")},147:t=>{"use strict";t.exports=require("fs")},17:t=>{"use strict";t.exports=require("path")},837:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var a=e[r]={exports:{}};var n=true;try{t[r](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete e[r]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(346);module.exports=r})(); \ No newline at end of file +(()=>{var t={218:t=>{"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,a,n,s,o;var c=r.indexOf(t);var h=r.indexOf(e,c+1);var l=c;if(c>=0&&h>0){if(t===e){return[c,h]}i=[];n=r.length;while(l>=0&&!o){if(l==c){i.push(l);c=r.indexOf(t,l+1)}else if(i.length==1){o=[i.pop(),h]}else{a=i.pop();if(a=0?c:h}if(i.length){o=[n,s]}}return o}},800:(t,e,r)=>{var i=r(381);var a=r(218);t.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(t){return t.split(n).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=a("{","}",t);if(!r)return t.split(",");var i=r.pre;var n=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+n+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=a("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var h=s||c;var l=n.body.indexOf(",")>=0;if(!h&&!l){if(n.post.match(/,.*\}/)){t=n.pre+"{"+n.body+o+n.post;return expand(t)}return[t]}var u;if(h){u=n.body.split(/\.\./)}else{u=parseCommaParts(n.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=n.post.length?expand(n.post,false):[""];return p.map((function(t){return n.pre+u[0]+t}))}}}var v=n.pre;var p=n.post.length?expand(n.post,false):[""];var d;if(h){var m=numeric(u[0]);var b=numeric(u[1]);var g=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var _=lte;var w=b0){var O=new Array(x+1).join("0");if(S<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=i(u,(function(t){return expand(t,false)}))}for(var A=0;A{t.exports=function(t,r){var i=[];for(var a=0;a{t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(147);var a=i.realpath;var n=i.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(623);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return a(t,e,r)}if(typeof e==="function"){r=e;e=null}a(t,e,(function(i,a){if(newError(i)){c.realpath(t,e,r)}else{r(i,a)}}))}function realpathSync(t,e){if(o){return n(t,e)}try{return n(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=a;i.realpathSync=n}},623:(t,e,r)=>{var i=r(17);var a=process.platform==="win32";var n=r(147);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(s){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(a){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(a){var h=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var h=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,s={},o={};var l;var u;var p;var v;start();function start(){var e=h.exec(t);l=e[0].length;u=e[0];p=e[0];v="";if(a&&!o[p]){n.lstatSync(p);o[p]=true}}while(l=t.length){if(e)e[s]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(l[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return n.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){l[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!a){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],v)}}n.stat(v,(function(t){if(t)return r(t);n.readlink(v,(function(t,e){if(!a)o[s]=e;gotTarget(t,e)}))}))}function gotTarget(t,a,n){if(t)return r(t);var s=i.resolve(d,a);if(e)e[n]=s;gotResolvedLink(s)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},129:(t,e,r)=>{e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(17);var a=r(923);var n=r(230);var s=a.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new s(r,{dot:true})}return{matcher:new s(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var a=process.cwd();if(!ownProp(r,"cwd"))t.cwd=a;else{t.cwd=i.resolve(r.cwd);t.changedCwd=t.cwd!==a}t.root=r.root||i.resolve(t.cwd,"/");t.root=i.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=n(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;t.minimatch=new s(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,a=t.matches.length;i{t.exports=glob;var i=r(147);var a=r(981);var n=r(923);var s=n.Minimatch;var o=r(842);var c=r(361).EventEmitter;var h=r(17);var l=r(491);var u=r(230);var p=r(447);var v=r(129);var d=v.setopts;var m=v.ownProp;var b=r(143);var g=r(837);var y=v.childrenIgnored;var _=v.isIgnored;var w=r(852);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return p(t,e)}return new Glob(t,e,r)}glob.sync=p;var k=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var a=i.minimatch.set;if(!t)return false;if(a.length>1)return true;for(var n=0;nthis.maxLength)return e();if(!this.stat&&m(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!a||n==="DIR")return e(null,n);if(a&&n==="FILE")return e()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return e(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(a&&c==="FILE")return e();else return e(null,c,o)}}var h=this;var l=b("stat\0"+r,lstatcb_);if(l)i.lstat(r,l);function lstatcb_(a,n){if(n&&n.isSymbolicLink()){return i.stat(r,(function(i,a){if(i)h._stat2(t,r,null,n,e);else h._stat2(t,r,i,a,e)}))}else{h._stat2(t,r,a,n,e)}}};Glob.prototype._stat2=function(t,e,r,i,a){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return a()}var n=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return a(null,false,i);var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||s;if(n&&s==="FILE")return a();return a(null,s,i)}},447:(t,e,r)=>{t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(147);var a=r(981);var n=r(923);var s=n.Minimatch;var o=r(346).Glob;var c=r(837);var h=r(17);var l=r(491);var u=r(230);var p=r(129);var v=p.setopts;var d=p.ownProp;var m=p.childrenIgnored;var b=p.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);v(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;ithis.maxLength)return false;if(!this.stat&&d(this.cache,e)){var a=this.cache[e];if(Array.isArray(a))a="DIR";if(!r||a==="DIR")return a;if(r&&a==="FILE")return false}var n;var s=this.statCache[e];if(!s){var o;try{o=i.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(o&&o.isSymbolicLink()){try{s=i.statSync(e)}catch(t){s=o}}else{s=o}}this.statCache[e]=s;var a=true;if(s)a=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||a;if(r&&a==="FILE")return false;return a};GlobSync.prototype._mark=function(t){return p.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return p.makeAbs(this,t)}},143:(t,e,r)=>{var i=r(270);var a=Object.create(null);var n=r(852);t.exports=i(inflight);function inflight(t,e){if(a[t]){a[t].push(e);return null}else{a[t]=[e];return makeres(t)}}function makeres(t){return n((function RES(){var e=a[t];var r=e.length;var i=slice(arguments);try{for(var n=0;nr){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete a[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i{try{var i=r(837);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(782)}},782:t=>{if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},923:(t,e,r)=>{t.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return r(17)}catch(t){}}()||{sep:"/"};minimatch.sep=i.sep;var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var n=r(800);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce((function(t,e){t[e]=true;return t}),{})}var p=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(r,i,a){return minimatch(r,t,e)}}function ext(t,e){e=e||{};var r={};Object.keys(t).forEach((function(e){r[e]=t[e]}));Object.keys(e).forEach((function(t){r[t]=e[t]}));return r}minimatch.defaults=function(t){if(!t||typeof t!=="object"||!Object.keys(t).length){return minimatch}var e=minimatch;var r=function minimatch(r,i,a){return e(r,i,ext(t,a))};r.Minimatch=function Minimatch(r,i){return new e.Minimatch(r,ext(t,i))};r.Minimatch.defaults=function defaults(r){return e.defaults(ext(t,r)).Minimatch};r.filter=function filter(r,i){return e.filter(r,ext(t,i))};r.defaults=function defaults(r){return e.defaults(ext(t,r))};r.makeRe=function makeRe(r,i){return e.makeRe(r,ext(t,i))};r.braceExpand=function braceExpand(r,i){return e.braceExpand(r,ext(t,i))};r.match=function(r,i,a){return e.match(r,i,ext(t,a))};return r};Minimatch.defaults=function(t){return minimatch.defaults(t).Minimatch};function minimatch(t,e,r){assertValidPattern(e);if(!r)r={};if(!r.nocomment&&e.charAt(0)==="#"){return false}return new Minimatch(e,r).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}assertValidPattern(t);if(!e)e={};t=t.trim();if(!e.allowWindowsEscape&&i.sep!=="/"){t=t.split(i.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!e.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(e.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(t){return t.split(p)}));this.debug(this.pattern,r);r=r.map((function(t,e,r){return t.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(t){return t.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var r=this.options;var i=0;if(r.nonegate)return;for(var a=0,n=t.length;av){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var d={};function parse(t,e){assertValidPattern(t);var r=this.options;if(t==="**"){if(!r.noglobstar)return a;else t="*"}if(t==="")return"";var i="";var n=!!r.nocase;var h=false;var l=[];var p=[];var v;var m=false;var b=-1;var g=-1;var y=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(v){switch(v){case"*":i+=c;n=true;break;case"?":i+=o;n=true;break;default:i+="\\"+v;break}_.debug("clearStateChar %j %j",v,i);v=false}}for(var w=0,k=t.length,S;w-1;M--){var I=p[M];var R=i.slice(0,I.reStart);var C=i.slice(I.reStart,I.reEnd-8);var L=i.slice(I.reEnd-8,I.reEnd);var N=i.slice(I.reEnd);L+=N;var T=R.split("(").length-1;var P=N;for(w=0;w=0;s--){n=t[s];if(n)break}for(s=0;s>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof h==="string"){d=l===h;this.debug("string match",h,l,d)}else{d=l.match(h);this.debug("pattern match",h,l,d)}if(!d)return false}if(n===o&&s===c){return true}else if(n===o){return r}else if(s===c){return n===o-1&&t[n]===""}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},852:(t,e,r)=>{var i=r(270);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},230:t=>{"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var a=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||a)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},270:t=>{t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r{"use strict";t.exports=require("assert")},361:t=>{"use strict";t.exports=require("events")},147:t=>{"use strict";t.exports=require("fs")},17:t=>{"use strict";t.exports=require("path")},837:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var a=e[r]={exports:{}};var n=true;try{t[r](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete e[r]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(346);module.exports=r})(); \ No newline at end of file diff --git a/packages/next/src/compiled/ora/index.js b/packages/next/src/compiled/ora/index.js index 1cb6c6d35b11d..2a9483c039a73 100644 --- a/packages/next/src/compiled/ora/index.js +++ b/packages/next/src/compiled/ora/index.js @@ -1 +1 @@ -(()=>{var e={535:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(54);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function assembleStyles(){const e=new Map;const t={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]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const s=n[r];t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},14:(e,t,r)=>{"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const wrapAnsi256=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const wrapAnsi16m=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];const setLazyProperty=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let n;const makeDynamicStyles=(e,t,s,o)=>{if(n===undefined){n=r(226)}const i=o?10:0;const a={};for(const[r,o]of Object.entries(n)){const n=r==="ansi16"?"ansi":r;if(r===t){a[n]=e(s,i)}else if(typeof o==="object"){a[n]=e(o[t],i)}}return a};function assembleStyles(){const e=new Map;const t={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]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,s]of Object.entries(n)){t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},148:(e,t,r)=>{"use strict";const n=r(379);const s=r(535);const o=r(220).stdout;const i=r(299);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const l=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const f=Object.create(null);function applyOptions(e,t){t=t||{};const r=o?o.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){s.blue.open=""}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");f[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}f.visible={get(){return build.call(this,this._styles||[],true,"visible")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(u.has(e)){continue}f[e]={get(){const t=this.level;return function(){const r=s.color[l[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);f[t]={get(){const t=this.level;return function(){const r=s.bgColor[l[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties((()=>{}),f);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=h;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){if(!isNaN(t)){r.push(Number(t))}else if(i=t.match(n)){r.push(i[2].replace(s,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const s=[];let o=[];r.replace(t,((t,r,i,a,l,u)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:i,styles:parseStyle(a)})}else if(l){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(u)}}));s.push(o.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},385:(e,t,r)=>{"use strict";const n=r(14);const{stdout:s,stderr:o}=r(793);const{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=r(218);const l=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level>3||t.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const r=s?s.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(n)){u[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...r){const s=createStyler(n.color[l[t]][e](...r),n.color.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...r){const s=createStyler(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}const h=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,r)=>{let n;let s;if(r===undefined){n=e;s=t}else{n=r.openAll+e;s=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:s,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));builder.__proto__=h;builder._generator=e;builder._styler=t;builder._isEmpty=r;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:n,closeAll:s}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=i(t,r.close,r.open);r=r.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,s,n,o)}return n+t+s};let p;const chalkTag=(e,...t)=>{const[n]=t;if(!Array.isArray(n)){return t.join(" ")}const s=t.slice(1);const o=[n.raw[0]];for(let e=1;e{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){r.push(o)}else if(i=t.match(n)){r.push(i[2].replace(s,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[];const s=[];let o=[];r.replace(t,((t,r,i,a,l,u)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:i,styles:parseStyle(a)})}else if(l){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(u)}}));s.push(o.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},218:e=>{"use strict";const stringReplaceAll=(e,t,r)=>{let n=e.indexOf(t);if(n===-1){return e}const s=t.length;let o=0;let i="";do{i+=e.substr(o,n-o)+t+r;o=n+s;n=e.indexOf(t,o)}while(n!==-1);i+=e.substr(o);return i};const stringEncaseCRLFWithFirstIndex=(e,t,r,n)=>{let s=0;let o="";do{const i=e[n-1]==="\r";o+=e.substr(s,(i?n-1:n)-s)+t+(i?"\r\n":"\n")+r;s=n+1;n=e.indexOf("\n",s)}while(n!==-1);o+=e.substr(s);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},581:(e,t,r)=>{"use strict";const n=r(154);let s=false;t.show=(e=process.stderr)=>{if(!e.isTTY){return}s=false;e.write("[?25h")};t.hide=(e=process.stderr)=>{if(!e.isTTY){return}n();s=true;e.write("[?25l")};t.toggle=(e,r)=>{if(e!==undefined){s=e}if(s){t.show(r)}else{t.hide(r)}}},494:(e,t,r)=>{"use strict";const n=Object.assign({},r(32));const s=Object.keys(n);Object.defineProperty(n,"random",{get(){const e=Math.floor(Math.random()*s.length);const t=s[e];return n[t]}});e.exports=n},578:e=>{var t=function(){"use strict";function clone(e,t,r,n){var s;if(typeof t==="object"){r=t.depth;n=t.prototype;s=t.filter;t=t.circular}var o=[];var i=[];var a=typeof Buffer!="undefined";if(typeof t=="undefined")t=true;if(typeof r=="undefined")r=Infinity;function _clone(e,r){if(e===null)return null;if(r==0)return e;var s;var l;if(typeof e!="object"){return e}if(clone.__isArray(e)){s=[]}else if(clone.__isRegExp(e)){s=new RegExp(e.source,__getRegExpFlags(e));if(e.lastIndex)s.lastIndex=e.lastIndex}else if(clone.__isDate(e)){s=new Date(e.getTime())}else if(a&&Buffer.isBuffer(e)){if(Buffer.allocUnsafe){s=Buffer.allocUnsafe(e.length)}else{s=new Buffer(e.length)}e.copy(s);return s}else{if(typeof n=="undefined"){l=Object.getPrototypeOf(e);s=Object.create(l)}else{s=Object.create(n);l=n}}if(t){var u=o.indexOf(e);if(u!=-1){return i[u]}o.push(e);i.push(s)}for(var f in e){var h;if(l){h=Object.getOwnPropertyDescriptor(l,f)}if(h&&h.set==null){continue}s[f]=_clone(e[f],r-1)}return s}return _clone(e,r)}clone.clonePrototype=function clonePrototype(e){if(e===null)return null;var c=function(){};c.prototype=e;return new c};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;function __isDate(e){return typeof e==="object"&&__objToStr(e)==="[object Date]"}clone.__isDate=__isDate;function __isArray(e){return typeof e==="object"&&__objToStr(e)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(e){return typeof e==="object"&&__objToStr(e)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(e){var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";return t}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&e.exports){e.exports=t}},117:(e,t,r)=>{var n=r(251);var s={};for(var o in n){if(n.hasOwnProperty(o)){s[n[o]]=o}}var i=e.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 a in i){if(i.hasOwnProperty(a)){if(!("channels"in i[a])){throw new Error("missing channels property: "+a)}if(!("labels"in i[a])){throw new Error("missing channel labels property: "+a)}if(i[a].labels.length!==i[a].channels){throw new Error("channel and label counts mismatch: "+a)}var l=i[a].channels;var u=i[a].labels;delete i[a].channels;delete i[a].labels;Object.defineProperty(i[a],"channels",{value:l});Object.defineProperty(i[a],"labels",{value:u})}}i.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.min(t,r,n);var o=Math.max(t,r,n);var i=o-s;var a;var l;var u;if(o===s){a=0}else if(t===o){a=(r-n)/i}else if(r===o){a=2+(n-t)/i}else if(n===o){a=4+(t-r)/i}a=Math.min(a*60,360);if(a<0){a+=360}u=(s+o)/2;if(o===s){l=0}else if(u<=.5){l=i/(o+s)}else{l=i/(2-o-s)}return[a,l*100,u*100]};i.rgb.hsv=function(e){var t;var r;var n;var s;var o;var i=e[0]/255;var a=e[1]/255;var l=e[2]/255;var u=Math.max(i,a,l);var f=u-Math.min(i,a,l);var diffc=function(e){return(u-e)/6/f+1/2};if(f===0){s=o=0}else{o=f/u;t=diffc(i);r=diffc(a);n=diffc(l);if(i===u){s=n-r}else if(a===u){s=1/3+t-n}else if(l===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,u*100]};i.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=i.rgb.hsl(e)[0];var o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,o*100,n*100]};i.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var o;var i;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;i=(1-n-a)/(1-a)||0;return[s*100,o*100,i*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}i.rgb.keyword=function(e){var t=s[e];if(t){return t}var r=Infinity;var o;for(var i in n){if(n.hasOwnProperty(i)){var a=n[i];var l=comparativeDistance(e,a);if(l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=t*.4124+r*.3576+n*.1805;var o=t*.2126+r*.7152+n*.0722;var i=t*.0193+r*.1192+n*.9505;return[s*100,o*100,i*100]};i.rgb.lab=function(e){var t=i.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var o;var a;var l;r/=95.047;n/=100;s/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;o=116*n-16;a=500*(r-n);l=200*(n-s);return[o,a,l]};i.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;var a;var l;if(r===0){l=n*255;return[l,l,l]}if(n<.5){o=n*(1+r)}else{o=n+r-n*r}s=2*n-o;a=[0,0,0];for(var u=0;u<3;u++){i=t+1/3*-(u-1);if(i<0){i++}if(i>1){i--}if(6*i<1){l=s+(o-s)*6*i}else if(2*i<1){l=o}else if(3*i<2){l=s+(o-s)*(2/3-i)*6}else{l=s}a[u]=l*255}return a};i.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var o=Math.max(n,.01);var i;var a;n*=2;r*=n<=1?n:2-n;s*=o<=1?o:2-o;a=(n+r)/2;i=n===0?2*s/(o+s):2*r/(n+r);return[t,i*100,a*100]};i.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var o=t-Math.floor(t);var i=255*n*(1-r);var a=255*n*(1-r*o);var l=255*n*(1-r*(1-o));n*=255;switch(s){case 0:return[n,l,i];case 1:return[a,n,i];case 2:return[i,n,l];case 3:return[i,a,n];case 4:return[l,i,n];case 5:return[n,i,a]}};i.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var o;var i;var a;a=(2-r)*n;o=(2-r)*s;i=r*s;i/=o<=1?o:2-o;i=i||0;a/=2;return[t,i*100,a*100]};i.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s=r+n;var o;var i;var a;var l;if(s>1){r/=s;n/=s}o=Math.floor(6*t);i=1-n;a=6*t-o;if((o&1)!==0){a=1-a}l=r+a*(i-r);var u;var f;var h;switch(o){default:case 6:case 0:u=i;f=l;h=r;break;case 1:u=l;f=i;h=r;break;case 2:u=r;f=i;h=l;break;case 3:u=r;f=l;h=i;break;case 4:u=l;f=r;h=i;break;case 5:u=i;f=r;h=l;break}return[u*255,f*255,h*255]};i.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var o;var i;var a;o=1-Math.min(1,t*(1-s)+s);i=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[o*255,i*255,a*255]};i.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;s=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;i=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};i.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*r-16;o=500*(t-r);i=200*(r-n);return[s,o,i]};i.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;o=(t+16)/116;s=r/500+o;i=o-n/200;var a=Math.pow(o,3);var l=Math.pow(s,3);var u=Math.pow(i,3);o=a>.008856?a:(o-16/116)/7.787;s=l>.008856?l:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};i.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;s=Math.atan2(n,r);o=s*360/2/Math.PI;if(o<0){o+=360}i=Math.sqrt(r*r+n*n);return[t,i,o]};i.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;i=n/360*2*Math.PI;s=r*Math.cos(i);o=r*Math.sin(i);return[t,s,o]};i.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===2){o+=60}return o};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};i.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var s=(t>>1&1)*r*255;var o=(t>>2&1)*r*255;return[n,s,o]};i.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var s=Math.floor((r=e%36)/6)/5*255;var o=r%6/5*255;return[n,s,o]};i.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};i.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];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var s=n>>16&255;var o=n>>8&255;var i=n&255;return[s,o,i]};i.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var o=Math.min(Math.min(t,r),n);var i=s-o;var a;var l;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){l=0}else if(s===t){l=(r-n)/i%6}else if(s===r){l=2+(n-t)/i}else{l=4+(t-r)/i+4}l/=6;l%=1;return[l*360,i*100,a*100]};i.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};i.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};i.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var s=[0,0,0];var o=t%1*6;var i=o%1;var a=1-i;var l=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}l=(1-r)*n;return[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};i.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};i.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};i.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};i.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var o=0;if(s<1){o=(n-s)/(1-s)}return[e[0],s*100,o*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]};i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};i.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},54:(e,t,r)=>{var n=r(117);var s=r(528);var o={};var i=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,s=0;s{var n=r(117);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s{const n=r(993);const s={};for(const e of Object.keys(n)){s[n[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:r}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:r})}o.rgb.hsl=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.min(t,r,n);const o=Math.max(t,r,n);const i=o-s;let a;let l;if(o===s){a=0}else if(t===o){a=(r-n)/i}else if(r===o){a=2+(n-t)/i}else if(n===o){a=4+(t-r)/i}a=Math.min(a*60,360);if(a<0){a+=360}const u=(s+o)/2;if(o===s){l=0}else if(u<=.5){l=i/(o+s)}else{l=i/(2-o-s)}return[a,l*100,u*100]};o.rgb.hsv=function(e){let t;let r;let n;let s;let o;const i=e[0]/255;const a=e[1]/255;const l=e[2]/255;const u=Math.max(i,a,l);const f=u-Math.min(i,a,l);const diffc=function(e){return(u-e)/6/f+1/2};if(f===0){s=0;o=0}else{o=f/u;t=diffc(i);r=diffc(a);n=diffc(l);if(i===u){s=n-r}else if(a===u){s=1/3+t-n}else if(l===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,u*100]};o.rgb.hwb=function(e){const t=e[0];const r=e[1];let n=e[2];const s=o.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,i*100,n*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.min(1-t,1-r,1-n);const o=(1-t-s)/(1-s)||0;const i=(1-r-s)/(1-s)||0;const a=(1-n-s)/(1-s)||0;return[o*100,i*100,a*100,s*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=s[e];if(t){return t}let r=Infinity;let o;for(const t of Object.keys(n)){const s=n[t];const i=comparativeDistance(e,s);if(i.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;const s=t*.4124+r*.3576+n*.1805;const o=t*.2126+r*.7152+n*.0722;const i=t*.0193+r*.1192+n*.9505;return[s*100,o*100,i*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0];let n=t[1];let s=t[2];r/=95.047;n/=100;s/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const i=116*n-16;const a=500*(r-n);const l=200*(n-s);return[i,a,l]};o.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;let s;let o;let i;if(r===0){i=n*255;return[i,i,i]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}const a=2*n-s;const l=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){i=a+(s-a)*6*o}else if(2*o<1){i=s}else if(3*o<2){i=a+(s-a)*(2/3-o)*6}else{i=a}l[e]=i*255}return l};o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100;let n=e[2]/100;let s=r;const o=Math.max(n,.01);n*=2;r*=n<=1?n:2-n;s*=o<=1?o:2-o;const i=(n+r)/2;const a=n===0?2*s/(o+s):2*r/(n+r);return[t,a*100,i*100]};o.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let n=e[2]/100;const s=Math.floor(t)%6;const o=t-Math.floor(t);const i=255*n*(1-r);const a=255*n*(1-r*o);const l=255*n*(1-r*(1-o));n*=255;switch(s){case 0:return[n,l,i];case 1:return[a,n,i];case 2:return[i,n,l];case 3:return[i,a,n];case 4:return[l,i,n];case 5:return[n,i,a]}};o.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const n=e[2]/100;const s=Math.max(n,.01);let o;let i;i=(2-r)*n;const a=(2-r)*s;o=r*s;o/=a<=1?a:2-a;o=o||0;i/=2;return[t,o*100,i*100]};o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100;let n=e[2]/100;const s=r+n;let o;if(s>1){r/=s;n/=s}const i=Math.floor(6*t);const a=1-n;o=6*t-i;if((i&1)!==0){o=1-o}const l=r+o*(a-r);let u;let f;let h;switch(i){default:case 6:case 0:u=a;f=l;h=r;break;case 1:u=l;f=a;h=r;break;case 2:u=r;f=a;h=l;break;case 3:u=r;f=l;h=a;break;case 4:u=l;f=r;h=a;break;case 5:u=a;f=r;h=l;break}return[u*255,f*255,h*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;const s=e[3]/100;const o=1-Math.min(1,t*(1-s)+s);const i=1-Math.min(1,r*(1-s)+s);const a=1-Math.min(1,n*(1-s)+s);return[o*255,i*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;let s;let o;let i;s=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;i=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};o.xyz.lab=function(e){let t=e[0];let r=e[1];let n=e[2];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;const s=116*r-16;const o=500*(t-r);const i=200*(r-n);return[s,o,i]};o.lab.xyz=function(e){const t=e[0];const r=e[1];const n=e[2];let s;let o;let i;o=(t+16)/116;s=r/500+o;i=o-n/200;const a=o**3;const l=s**3;const u=i**3;o=a>.008856?a:(o-16/116)/7.787;s=l>.008856?l:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};o.lab.lch=function(e){const t=e[0];const r=e[1];const n=e[2];let s;const o=Math.atan2(n,r);s=o*360/2/Math.PI;if(s<0){s+=360}const i=Math.sqrt(r*r+n*n);return[t,i,s]};o.lch.lab=function(e){const t=e[0];const r=e[1];const n=e[2];const s=n/360*2*Math.PI;const o=r*Math.cos(s);const i=r*Math.sin(s);return[t,o,i]};o.rgb.ansi16=function(e,t=null){const[r,n,s]=e;let i=t===null?o.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(s/255)<<2|Math.round(n/255)<<1|Math.round(r/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const r=e[1];const n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const r=(~~(e>50)+1)*.5;const n=(t&1)*r*255;const s=(t>>1&1)*r*255;const o=(t>>2&1)*r*255;return[n,s,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const r=Math.floor(e/36)/5*255;const n=Math.floor((t=e%36)/6)/5*255;const s=t%6/5*255;return[r,n,s]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let r=t[0];if(t[0].length===3){r=r.split("").map((e=>e+e)).join("")}const n=parseInt(r,16);const s=n>>16&255;const o=n>>8&255;const i=n&255;return[s,o,i]};o.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.max(Math.max(t,r),n);const o=Math.min(Math.min(t,r),n);const i=s-o;let a;let l;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){l=0}else if(s===t){l=(r-n)/i%6}else if(s===r){l=2+(n-t)/i}else{l=4+(t-r)/i}l/=6;l%=1;return[l*360,i*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=r<.5?2*t*r:2*t*(1-r);let s=0;if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};o.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=t*r;let s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};o.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}const s=[0,0,0];const o=t%1*6;const i=o%1;const a=1-i;let l=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}l=(1-r)*n;return[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);let s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};o.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const n=r*(1-t)+.5*t;let s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};o.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=1-r;const s=n-t;let o=0;if(s<1){o=(n-s)/(1-s)}return[e[0],s*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const r=(t<<16)+(t<<8)+t;const n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},226:(e,t,r)=>{const n=r(113);const s=r(971);const o={};const i=Object.keys(n);function wrapRaw(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}const n=e(t);if(typeof n==="object"){for(let e=n.length,t=0;t{o[e]={};Object.defineProperty(o[e],"channels",{value:n[e].channels});Object.defineProperty(o[e],"labels",{value:n[e].labels});const t=s(e);const r=Object.keys(t);r.forEach((r=>{const n=t[r];o[e][r]=wrapRounded(n);o[e][r].raw=wrapRaw(n)}))}));e.exports=o},971:(e,t,r)=>{const n=r(113);function buildGraph(){const e={};const t=Object.keys(n);for(let r=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},993:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},987:(e,t,r)=>{var n=r(578);e.exports=function(e,t){e=e||{};Object.keys(t).forEach((function(r){if(typeof e[r]==="undefined"){e[r]=n(t[r])}}));return e}},379:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},343:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1?true:n{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n{"use strict";e.exports=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))},663:(e,t,r)=>{"use strict";const n=r(148);const s=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const o={info:n.blue("ℹ"),success:n.green("✔"),warning:n.yellow("⚠"),error:n.red("✖")};const i={info:n.blue("i"),success:n.green("√"),warning:n.yellow("‼"),error:n.red("×")};e.exports=s?o:i},469:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports["default"]=mimicFn},502:(e,t,r)=>{var n=r(955);e.exports=MuteStream;function MuteStream(e){n.apply(this);e=e||{};this.writable=this.readable=true;this.muted=false;this.on("pipe",this._onpipe);this.replace=e.replace;this._prompt=e.prompt||null;this._hadControl=false}MuteStream.prototype=Object.create(n.prototype);Object.defineProperty(MuteStream.prototype,"constructor",{value:MuteStream,enumerable:false});MuteStream.prototype.mute=function(){this.muted=true};MuteStream.prototype.unmute=function(){this.muted=false};Object.defineProperty(MuteStream.prototype,"_onpipe",{value:onPipe,enumerable:false,writable:true,configurable:true});function onPipe(e){this._src=e}Object.defineProperty(MuteStream.prototype,"isTTY",{get:getIsTTY,set:setIsTTY,enumerable:true,configurable:true});function getIsTTY(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:false}function setIsTTY(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:true,writable:true,configurable:true})}Object.defineProperty(MuteStream.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:undefined},enumerable:true,configurable:true});Object.defineProperty(MuteStream.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:undefined},enumerable:true,configurable:true});MuteStream.prototype.pipe=function(e,t){this._dest=e;return n.prototype.pipe.call(this,e,t)};MuteStream.prototype.pause=function(){if(this._src)return this._src.pause()};MuteStream.prototype.resume=function(){if(this._src)return this._src.resume()};MuteStream.prototype.write=function(e){if(this.muted){if(!this.replace)return true;if(e.match(/^\u001b/)){if(e.indexOf(this._prompt)===0){e=e.substr(this._prompt.length);e=e.replace(/./g,this.replace);e=this._prompt+e}this._hadControl=true;return this.emit("data",e)}else{if(this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0){this._hadControl=false;this.emit("data",this._prompt);e=e.substr(this._prompt.length)}e=e.toString().replace(/./g,this.replace)}}this.emit("data",e)};MuteStream.prototype.end=function(e){if(this.muted){if(e&&this.replace){e=e.toString().replace(/./g,this.replace)}else{e=null}}if(e)this.emit("data",e);this.emit("end")};function proxy(e){return function(){var t=this._dest;var r=this._src;if(t&&t[e])t[e].apply(t,arguments);if(r&&r[e])r[e].apply(r,arguments)}}MuteStream.prototype.destroy=proxy("destroy");MuteStream.prototype.destroySoon=proxy("destroySoon");MuteStream.prototype.close=proxy("close")},430:(e,t,r)=>{"use strict";const n=r(469);const s=new WeakMap;const onetime=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let o=0;const i=e.displayName||e.name||"";const onetime=function(...n){s.set(onetime,++o);if(o===1){r=e.apply(this,n);e=null}else if(t.throw===true){throw new Error(`Function \`${i}\` can only be called once`)}return r};n(onetime,e);s.set(onetime,o);return onetime};e.exports=onetime;e.exports["default"]=onetime;e.exports.callCount=e=>{if(!s.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return s.get(e)}},327:(e,t,r)=>{"use strict";const n=r(521);const s=r(385);const o=r(581);const i=r(494);const a=r(663);const l=r(518);const u=r(457);const f=r(934);const h=r(502);const p=Symbol("text");const g=Symbol("prefixText");const d=3;class StdinDiscarder{constructor(){this.requests=0;this.mutedStream=new h;this.mutedStream.pipe(process.stdout);this.mutedStream.mute();const e=this;this.ourEmit=function(t,r,...n){const{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(t==="keypress"){return}if(t==="data"&&r.includes(d)){process.emit("SIGINT")}Reflect.apply(e.oldEmit,this,[t,r,...n])}else{Reflect.apply(process.stdin.emit,this,[t,r,...n])}}}start(){this.requests++;if(this.requests===1){this.realStart()}}stop(){if(this.requests<=0){throw new Error("`stop` called more times than `start`")}this.requests--;if(this.requests===0){this.realStop()}}realStart(){if(process.platform==="win32"){return}this.rl=n.createInterface({input:process.stdin,output:this.mutedStream});this.rl.on("SIGINT",(()=>{if(process.listenerCount("SIGINT")===0){process.emit("SIGINT")}else{this.rl.close();process.kill(process.pid,"SIGINT")}}))}realStop(){if(process.platform==="win32"){return}this.rl.close();this.rl=undefined}}const v=new StdinDiscarder;class Ora{constructor(e){if(typeof e==="string"){e={text:e}}this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e};this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=undefined;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:f({stream:this.stream});this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent;this.discardStdin=this.options.discardStdin;this.isDiscardingStdin=false}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=e}_updateInterval(e){if(e!==undefined){this.interval=e}}get spinner(){return this._spinner}set spinner(e){this.frameIndex=0;if(typeof e==="object"){if(e.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=e}else if(process.platform==="win32"){this._spinner=i.line}else if(e===undefined){this._spinner=i.dots}else if(i[e]){this._spinner=i[e]}else{throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}this._updateInterval(this._spinner.interval)}get text(){return this[p]}get prefixText(){return this[g]}get isSpinning(){return this.id!==undefined}updateLineCount(){const e=this.stream.columns||80;const t=typeof this[g]==="string"?this[g]+"-":"";this.lineCount=l(t+"--"+this[p]).split("\n").reduce(((t,r)=>t+Math.max(1,Math.ceil(u(r)/e))),0)}set text(e){this[p]=e;this.updateLineCount()}set prefixText(e){this[g]=e;this.updateLineCount()}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];if(this.color){t=s[this.color](t)}this.frameIndex=++this.frameIndex%e.length;const r=typeof this.prefixText==="string"&&this.prefixText!==""?this.prefixText+" ":"";const n=typeof this.text==="string"?" "+this.text:"";return r+t+n}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let e=0;e0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(e){if(e){this.text=e}if(!this.isEnabled){if(this.text){this.stream.write(`- ${this.text}\n`)}return this}if(this.isSpinning){return this}if(this.hideCursor){o.hide(this.stream)}if(this.discardStdin&&process.stdin.isTTY){this.isDiscardingStdin=true;v.start()}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=undefined;this.frameIndex=0;this.clear();if(this.hideCursor){o.show(this.stream)}if(this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin){v.stop();this.isDiscardingStdin=false}return this}succeed(e){return this.stopAndPersist({symbol:a.success,text:e})}fail(e){return this.stopAndPersist({symbol:a.error,text:e})}warn(e){return this.stopAndPersist({symbol:a.warning,text:e})}info(e){return this.stopAndPersist({symbol:a.info,text:e})}stopAndPersist(e={}){const t=e.prefixText||this.prefixText;const r=typeof t==="string"&&t!==""?t+" ":"";const n=e.text||this.text;const s=typeof n==="string"?" "+n:"";this.stop();this.stream.write(`${r}${e.symbol||" "}${s}\n`);return this}}const oraFactory=function(e){return new Ora(e)};e.exports=oraFactory;e.exports.promise=(e,t)=>{if(typeof e.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const r=new Ora(t);r.start();(async()=>{try{await e;r.succeed()}catch(e){r.fail()}})();return r}},154:(e,t,r)=>{"use strict";const n=r(430);const s=r(234);e.exports=n((()=>{s((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},234:(e,t,r)=>{var n=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(n)){e.exports=function(){return function(){}}}else{var s=r(491);var o=r(986);var i=/^win/i.test(n.platform);var a=r(361);if(typeof a!=="function"){a=a.EventEmitter}var l;if(n.__signal_exit_emitter__){l=n.__signal_exit_emitter__}else{l=n.__signal_exit_emitter__=new a;l.count=0;l.emitted={}}if(!l.infinite){l.setMaxListeners(Infinity);l.infinite=true}e.exports=function(e,t){if(!processOk(global.process)){return function(){}}s.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){g()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){l.removeListener(r,e);if(l.listeners("exit").length===0&&l.listeners("afterexit").length===0){u()}};l.on(r,e);return remove};var u=function unload(){if(!p||!processOk(global.process)){return}p=false;o.forEach((function(e){try{n.removeListener(e,h[e])}catch(e){}}));n.emit=b;n.reallyExit=d;l.count-=1};e.exports.unload=u;var f=function emit(e,t,r){if(l.emitted[e]){return}l.emitted[e]=true;l.emit(e,t,r)};var h={};o.forEach((function(e){h[e]=function listener(){if(!processOk(global.process)){return}var t=n.listeners(e);if(t.length===l.count){u();f("exit",null,e);f("afterexit",null,e);if(i&&e==="SIGHUP"){e="SIGINT"}n.kill(n.pid,e)}}}));e.exports.signals=function(){return o};var p=false;var g=function load(){if(p||!processOk(global.process)){return}p=true;l.count+=1;o=o.filter((function(e){try{n.on(e,h[e]);return true}catch(e){return false}}));n.emit=m;n.reallyExit=v};e.exports.load=g;var d=n.reallyExit;var v=function processReallyExit(e){if(!processOk(global.process)){return}n.exitCode=e||0;f("exit",n.exitCode,null);f("afterexit",n.exitCode,null);d.call(n,n.exitCode)};var b=n.emit;var m=function processEmit(e,t){if(e==="exit"&&processOk(global.process)){if(t!==undefined){n.exitCode=t}var r=b.apply(this,arguments);f("exit",n.exitCode,null);f("afterexit",n.exitCode,null);return r}else{return b.apply(this,arguments)}}}},986:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},220:(e,t,r)=>{"use strict";const n=r(37);const s=r(343);const o=process.env;let i;if(s("no-color")||s("no-colors")||s("color=false")){i=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},793:(e,t,r)=>{"use strict";const n=r(37);const s=r(224);const o=r(914);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},567:e=>{e.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},457:(e,t,r)=>{"use strict";var n=r(987);var s=r(567);var o={nul:0,control:0};e.exports=function wcwidth(e){return wcswidth(e,o)};e.exports.config=function(e){e=n(e||{},o);return function wcwidth(t){return wcswidth(t,e)}};function wcswidth(e,t){if(typeof e!=="string")return wcwidth(e,t);var r=0;for(var n=0;n=127&&e<160)return t.control;if(bisearch(e))return 0;return 1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function bisearch(e){var t=0;var r=s.length-1;var n;if(es[r][1])return false;while(r>=t){n=Math.floor((t+r)/2);if(e>s[n][1])t=n+1;else if(e{"use strict";e.exports=require("assert")},361:e=>{"use strict";e.exports=require("events")},518:e=>{"use strict";e.exports=require("next/dist/compiled/strip-ansi")},37:e=>{"use strict";e.exports=require("os")},521:e=>{"use strict";e.exports=require("readline")},955:e=>{"use strict";e.exports=require("stream")},224:e=>{"use strict";e.exports=require("tty")},32:e=>{"use strict";e.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var o=true;try{e[r](s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(327);module.exports=r})(); \ No newline at end of file +(()=>{var e={535:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(54);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function assembleStyles(){const e=new Map;const t={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]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const s=n[r];t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},14:(e,t,r)=>{"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const wrapAnsi256=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const wrapAnsi16m=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];const setLazyProperty=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let n;const makeDynamicStyles=(e,t,s,o)=>{if(n===undefined){n=r(226)}const i=o?10:0;const a={};for(const[r,o]of Object.entries(n)){const n=r==="ansi16"?"ansi":r;if(r===t){a[n]=e(s,i)}else if(typeof o==="object"){a[n]=e(o[t],i)}}return a};function assembleStyles(){const e=new Map;const t={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]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,s]of Object.entries(n)){t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},148:(e,t,r)=>{"use strict";const n=r(379);const s=r(535);const o=r(220).stdout;const i=r(299);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const l=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const f=Object.create(null);function applyOptions(e,t){t=t||{};const r=o?o.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){s.blue.open=""}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");f[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}f.visible={get(){return build.call(this,this._styles||[],true,"visible")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(u.has(e)){continue}f[e]={get(){const t=this.level;return function(){const r=s.color[l[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);f[t]={get(){const t=this.level;return function(){const r=s.bgColor[l[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties((()=>{}),f);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=h;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){if(!isNaN(t)){r.push(Number(t))}else if(i=t.match(n)){r.push(i[2].replace(s,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const s=[];let o=[];r.replace(t,((t,r,i,a,l,u)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:i,styles:parseStyle(a)})}else if(l){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(u)}}));s.push(o.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},385:(e,t,r)=>{"use strict";const n=r(14);const{stdout:s,stderr:o}=r(793);const{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=r(218);const l=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level>3||t.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const r=s?s.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(n)){u[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...r){const s=createStyler(n.color[l[t]][e](...r),n.color.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...r){const s=createStyler(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}const h=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,r)=>{let n;let s;if(r===undefined){n=e;s=t}else{n=r.openAll+e;s=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:s,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));builder.__proto__=h;builder._generator=e;builder._styler=t;builder._isEmpty=r;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:n,closeAll:s}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=i(t,r.close,r.open);r=r.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,s,n,o)}return n+t+s};let p;const chalkTag=(e,...t)=>{const[n]=t;if(!Array.isArray(n)){return t.join(" ")}const s=t.slice(1);const o=[n.raw[0]];for(let e=1;e{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){r.push(o)}else if(i=t.match(n)){r.push(i[2].replace(s,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[];const s=[];let o=[];r.replace(t,((t,r,i,a,l,u)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:i,styles:parseStyle(a)})}else if(l){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(u)}}));s.push(o.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},218:e=>{"use strict";const stringReplaceAll=(e,t,r)=>{let n=e.indexOf(t);if(n===-1){return e}const s=t.length;let o=0;let i="";do{i+=e.substr(o,n-o)+t+r;o=n+s;n=e.indexOf(t,o)}while(n!==-1);i+=e.substr(o);return i};const stringEncaseCRLFWithFirstIndex=(e,t,r,n)=>{let s=0;let o="";do{const i=e[n-1]==="\r";o+=e.substr(s,(i?n-1:n)-s)+t+(i?"\r\n":"\n")+r;s=n+1;n=e.indexOf("\n",s)}while(n!==-1);o+=e.substr(s);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},581:(e,t,r)=>{"use strict";const n=r(154);let s=false;t.show=(e=process.stderr)=>{if(!e.isTTY){return}s=false;e.write("[?25h")};t.hide=(e=process.stderr)=>{if(!e.isTTY){return}n();s=true;e.write("[?25l")};t.toggle=(e,r)=>{if(e!==undefined){s=e}if(s){t.show(r)}else{t.hide(r)}}},97:(e,t,r)=>{"use strict";const n=Object.assign({},r(432));const s=Object.keys(n);Object.defineProperty(n,"random",{get(){const e=Math.floor(Math.random()*s.length);const t=s[e];return n[t]}});e.exports=n},578:e=>{var t=function(){"use strict";function clone(e,t,r,n){var s;if(typeof t==="object"){r=t.depth;n=t.prototype;s=t.filter;t=t.circular}var o=[];var i=[];var a=typeof Buffer!="undefined";if(typeof t=="undefined")t=true;if(typeof r=="undefined")r=Infinity;function _clone(e,r){if(e===null)return null;if(r==0)return e;var s;var l;if(typeof e!="object"){return e}if(clone.__isArray(e)){s=[]}else if(clone.__isRegExp(e)){s=new RegExp(e.source,__getRegExpFlags(e));if(e.lastIndex)s.lastIndex=e.lastIndex}else if(clone.__isDate(e)){s=new Date(e.getTime())}else if(a&&Buffer.isBuffer(e)){if(Buffer.allocUnsafe){s=Buffer.allocUnsafe(e.length)}else{s=new Buffer(e.length)}e.copy(s);return s}else{if(typeof n=="undefined"){l=Object.getPrototypeOf(e);s=Object.create(l)}else{s=Object.create(n);l=n}}if(t){var u=o.indexOf(e);if(u!=-1){return i[u]}o.push(e);i.push(s)}for(var f in e){var h;if(l){h=Object.getOwnPropertyDescriptor(l,f)}if(h&&h.set==null){continue}s[f]=_clone(e[f],r-1)}return s}return _clone(e,r)}clone.clonePrototype=function clonePrototype(e){if(e===null)return null;var c=function(){};c.prototype=e;return new c};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;function __isDate(e){return typeof e==="object"&&__objToStr(e)==="[object Date]"}clone.__isDate=__isDate;function __isArray(e){return typeof e==="object"&&__objToStr(e)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(e){return typeof e==="object"&&__objToStr(e)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(e){var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";return t}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&e.exports){e.exports=t}},117:(e,t,r)=>{var n=r(251);var s={};for(var o in n){if(n.hasOwnProperty(o)){s[n[o]]=o}}var i=e.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 a in i){if(i.hasOwnProperty(a)){if(!("channels"in i[a])){throw new Error("missing channels property: "+a)}if(!("labels"in i[a])){throw new Error("missing channel labels property: "+a)}if(i[a].labels.length!==i[a].channels){throw new Error("channel and label counts mismatch: "+a)}var l=i[a].channels;var u=i[a].labels;delete i[a].channels;delete i[a].labels;Object.defineProperty(i[a],"channels",{value:l});Object.defineProperty(i[a],"labels",{value:u})}}i.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.min(t,r,n);var o=Math.max(t,r,n);var i=o-s;var a;var l;var u;if(o===s){a=0}else if(t===o){a=(r-n)/i}else if(r===o){a=2+(n-t)/i}else if(n===o){a=4+(t-r)/i}a=Math.min(a*60,360);if(a<0){a+=360}u=(s+o)/2;if(o===s){l=0}else if(u<=.5){l=i/(o+s)}else{l=i/(2-o-s)}return[a,l*100,u*100]};i.rgb.hsv=function(e){var t;var r;var n;var s;var o;var i=e[0]/255;var a=e[1]/255;var l=e[2]/255;var u=Math.max(i,a,l);var f=u-Math.min(i,a,l);var diffc=function(e){return(u-e)/6/f+1/2};if(f===0){s=o=0}else{o=f/u;t=diffc(i);r=diffc(a);n=diffc(l);if(i===u){s=n-r}else if(a===u){s=1/3+t-n}else if(l===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,u*100]};i.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=i.rgb.hsl(e)[0];var o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,o*100,n*100]};i.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var o;var i;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;i=(1-n-a)/(1-a)||0;return[s*100,o*100,i*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}i.rgb.keyword=function(e){var t=s[e];if(t){return t}var r=Infinity;var o;for(var i in n){if(n.hasOwnProperty(i)){var a=n[i];var l=comparativeDistance(e,a);if(l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=t*.4124+r*.3576+n*.1805;var o=t*.2126+r*.7152+n*.0722;var i=t*.0193+r*.1192+n*.9505;return[s*100,o*100,i*100]};i.rgb.lab=function(e){var t=i.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var o;var a;var l;r/=95.047;n/=100;s/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;o=116*n-16;a=500*(r-n);l=200*(n-s);return[o,a,l]};i.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;var a;var l;if(r===0){l=n*255;return[l,l,l]}if(n<.5){o=n*(1+r)}else{o=n+r-n*r}s=2*n-o;a=[0,0,0];for(var u=0;u<3;u++){i=t+1/3*-(u-1);if(i<0){i++}if(i>1){i--}if(6*i<1){l=s+(o-s)*6*i}else if(2*i<1){l=o}else if(3*i<2){l=s+(o-s)*(2/3-i)*6}else{l=s}a[u]=l*255}return a};i.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var o=Math.max(n,.01);var i;var a;n*=2;r*=n<=1?n:2-n;s*=o<=1?o:2-o;a=(n+r)/2;i=n===0?2*s/(o+s):2*r/(n+r);return[t,i*100,a*100]};i.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var o=t-Math.floor(t);var i=255*n*(1-r);var a=255*n*(1-r*o);var l=255*n*(1-r*(1-o));n*=255;switch(s){case 0:return[n,l,i];case 1:return[a,n,i];case 2:return[i,n,l];case 3:return[i,a,n];case 4:return[l,i,n];case 5:return[n,i,a]}};i.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var o;var i;var a;a=(2-r)*n;o=(2-r)*s;i=r*s;i/=o<=1?o:2-o;i=i||0;a/=2;return[t,i*100,a*100]};i.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s=r+n;var o;var i;var a;var l;if(s>1){r/=s;n/=s}o=Math.floor(6*t);i=1-n;a=6*t-o;if((o&1)!==0){a=1-a}l=r+a*(i-r);var u;var f;var h;switch(o){default:case 6:case 0:u=i;f=l;h=r;break;case 1:u=l;f=i;h=r;break;case 2:u=r;f=i;h=l;break;case 3:u=r;f=l;h=i;break;case 4:u=l;f=r;h=i;break;case 5:u=i;f=r;h=l;break}return[u*255,f*255,h*255]};i.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var o;var i;var a;o=1-Math.min(1,t*(1-s)+s);i=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[o*255,i*255,a*255]};i.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;s=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;i=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};i.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*r-16;o=500*(t-r);i=200*(r-n);return[s,o,i]};i.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;o=(t+16)/116;s=r/500+o;i=o-n/200;var a=Math.pow(o,3);var l=Math.pow(s,3);var u=Math.pow(i,3);o=a>.008856?a:(o-16/116)/7.787;s=l>.008856?l:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};i.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;s=Math.atan2(n,r);o=s*360/2/Math.PI;if(o<0){o+=360}i=Math.sqrt(r*r+n*n);return[t,i,o]};i.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;i=n/360*2*Math.PI;s=r*Math.cos(i);o=r*Math.sin(i);return[t,s,o]};i.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===2){o+=60}return o};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};i.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var s=(t>>1&1)*r*255;var o=(t>>2&1)*r*255;return[n,s,o]};i.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var s=Math.floor((r=e%36)/6)/5*255;var o=r%6/5*255;return[n,s,o]};i.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};i.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];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var s=n>>16&255;var o=n>>8&255;var i=n&255;return[s,o,i]};i.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var o=Math.min(Math.min(t,r),n);var i=s-o;var a;var l;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){l=0}else if(s===t){l=(r-n)/i%6}else if(s===r){l=2+(n-t)/i}else{l=4+(t-r)/i+4}l/=6;l%=1;return[l*360,i*100,a*100]};i.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};i.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};i.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var s=[0,0,0];var o=t%1*6;var i=o%1;var a=1-i;var l=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}l=(1-r)*n;return[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};i.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};i.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};i.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};i.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var o=0;if(s<1){o=(n-s)/(1-s)}return[e[0],s*100,o*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]};i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};i.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},54:(e,t,r)=>{var n=r(117);var s=r(528);var o={};var i=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,s=0;s{var n=r(117);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s{const n=r(993);const s={};for(const e of Object.keys(n)){s[n[e]]=e}const o={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"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:r}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:r})}o.rgb.hsl=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.min(t,r,n);const o=Math.max(t,r,n);const i=o-s;let a;let l;if(o===s){a=0}else if(t===o){a=(r-n)/i}else if(r===o){a=2+(n-t)/i}else if(n===o){a=4+(t-r)/i}a=Math.min(a*60,360);if(a<0){a+=360}const u=(s+o)/2;if(o===s){l=0}else if(u<=.5){l=i/(o+s)}else{l=i/(2-o-s)}return[a,l*100,u*100]};o.rgb.hsv=function(e){let t;let r;let n;let s;let o;const i=e[0]/255;const a=e[1]/255;const l=e[2]/255;const u=Math.max(i,a,l);const f=u-Math.min(i,a,l);const diffc=function(e){return(u-e)/6/f+1/2};if(f===0){s=0;o=0}else{o=f/u;t=diffc(i);r=diffc(a);n=diffc(l);if(i===u){s=n-r}else if(a===u){s=1/3+t-n}else if(l===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,u*100]};o.rgb.hwb=function(e){const t=e[0];const r=e[1];let n=e[2];const s=o.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,i*100,n*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.min(1-t,1-r,1-n);const o=(1-t-s)/(1-s)||0;const i=(1-r-s)/(1-s)||0;const a=(1-n-s)/(1-s)||0;return[o*100,i*100,a*100,s*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=s[e];if(t){return t}let r=Infinity;let o;for(const t of Object.keys(n)){const s=n[t];const i=comparativeDistance(e,s);if(i.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;const s=t*.4124+r*.3576+n*.1805;const o=t*.2126+r*.7152+n*.0722;const i=t*.0193+r*.1192+n*.9505;return[s*100,o*100,i*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0];let n=t[1];let s=t[2];r/=95.047;n/=100;s/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const i=116*n-16;const a=500*(r-n);const l=200*(n-s);return[i,a,l]};o.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;let s;let o;let i;if(r===0){i=n*255;return[i,i,i]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}const a=2*n-s;const l=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){i=a+(s-a)*6*o}else if(2*o<1){i=s}else if(3*o<2){i=a+(s-a)*(2/3-o)*6}else{i=a}l[e]=i*255}return l};o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100;let n=e[2]/100;let s=r;const o=Math.max(n,.01);n*=2;r*=n<=1?n:2-n;s*=o<=1?o:2-o;const i=(n+r)/2;const a=n===0?2*s/(o+s):2*r/(n+r);return[t,a*100,i*100]};o.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let n=e[2]/100;const s=Math.floor(t)%6;const o=t-Math.floor(t);const i=255*n*(1-r);const a=255*n*(1-r*o);const l=255*n*(1-r*(1-o));n*=255;switch(s){case 0:return[n,l,i];case 1:return[a,n,i];case 2:return[i,n,l];case 3:return[i,a,n];case 4:return[l,i,n];case 5:return[n,i,a]}};o.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const n=e[2]/100;const s=Math.max(n,.01);let o;let i;i=(2-r)*n;const a=(2-r)*s;o=r*s;o/=a<=1?a:2-a;o=o||0;i/=2;return[t,o*100,i*100]};o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100;let n=e[2]/100;const s=r+n;let o;if(s>1){r/=s;n/=s}const i=Math.floor(6*t);const a=1-n;o=6*t-i;if((i&1)!==0){o=1-o}const l=r+o*(a-r);let u;let f;let h;switch(i){default:case 6:case 0:u=a;f=l;h=r;break;case 1:u=l;f=a;h=r;break;case 2:u=r;f=a;h=l;break;case 3:u=r;f=l;h=a;break;case 4:u=l;f=r;h=a;break;case 5:u=a;f=r;h=l;break}return[u*255,f*255,h*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;const s=e[3]/100;const o=1-Math.min(1,t*(1-s)+s);const i=1-Math.min(1,r*(1-s)+s);const a=1-Math.min(1,n*(1-s)+s);return[o*255,i*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;let s;let o;let i;s=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;i=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};o.xyz.lab=function(e){let t=e[0];let r=e[1];let n=e[2];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;const s=116*r-16;const o=500*(t-r);const i=200*(r-n);return[s,o,i]};o.lab.xyz=function(e){const t=e[0];const r=e[1];const n=e[2];let s;let o;let i;o=(t+16)/116;s=r/500+o;i=o-n/200;const a=o**3;const l=s**3;const u=i**3;o=a>.008856?a:(o-16/116)/7.787;s=l>.008856?l:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};o.lab.lch=function(e){const t=e[0];const r=e[1];const n=e[2];let s;const o=Math.atan2(n,r);s=o*360/2/Math.PI;if(s<0){s+=360}const i=Math.sqrt(r*r+n*n);return[t,i,s]};o.lch.lab=function(e){const t=e[0];const r=e[1];const n=e[2];const s=n/360*2*Math.PI;const o=r*Math.cos(s);const i=r*Math.sin(s);return[t,o,i]};o.rgb.ansi16=function(e,t=null){const[r,n,s]=e;let i=t===null?o.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(s/255)<<2|Math.round(n/255)<<1|Math.round(r/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const r=e[1];const n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const r=(~~(e>50)+1)*.5;const n=(t&1)*r*255;const s=(t>>1&1)*r*255;const o=(t>>2&1)*r*255;return[n,s,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const r=Math.floor(e/36)/5*255;const n=Math.floor((t=e%36)/6)/5*255;const s=t%6/5*255;return[r,n,s]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let r=t[0];if(t[0].length===3){r=r.split("").map((e=>e+e)).join("")}const n=parseInt(r,16);const s=n>>16&255;const o=n>>8&255;const i=n&255;return[s,o,i]};o.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.max(Math.max(t,r),n);const o=Math.min(Math.min(t,r),n);const i=s-o;let a;let l;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){l=0}else if(s===t){l=(r-n)/i%6}else if(s===r){l=2+(n-t)/i}else{l=4+(t-r)/i}l/=6;l%=1;return[l*360,i*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=r<.5?2*t*r:2*t*(1-r);let s=0;if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};o.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=t*r;let s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};o.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}const s=[0,0,0];const o=t%1*6;const i=o%1;const a=1-i;let l=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}l=(1-r)*n;return[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);let s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};o.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const n=r*(1-t)+.5*t;let s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};o.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=1-r;const s=n-t;let o=0;if(s<1){o=(n-s)/(1-s)}return[e[0],s*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const r=(t<<16)+(t<<8)+t;const n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},226:(e,t,r)=>{const n=r(113);const s=r(971);const o={};const i=Object.keys(n);function wrapRaw(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}const n=e(t);if(typeof n==="object"){for(let e=n.length,t=0;t{o[e]={};Object.defineProperty(o[e],"channels",{value:n[e].channels});Object.defineProperty(o[e],"labels",{value:n[e].labels});const t=s(e);const r=Object.keys(t);r.forEach((r=>{const n=t[r];o[e][r]=wrapRounded(n);o[e][r].raw=wrapRaw(n)}))}));e.exports=o},971:(e,t,r)=>{const n=r(113);function buildGraph(){const e={};const t=Object.keys(n);for(let r=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},993:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},987:(e,t,r)=>{var n=r(578);e.exports=function(e,t){e=e||{};Object.keys(t).forEach((function(r){if(typeof e[r]==="undefined"){e[r]=n(t[r])}}));return e}},379:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},343:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1?true:n{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n{"use strict";e.exports=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))},663:(e,t,r)=>{"use strict";const n=r(148);const s=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const o={info:n.blue("ℹ"),success:n.green("✔"),warning:n.yellow("⚠"),error:n.red("✖")};const i={info:n.blue("i"),success:n.green("√"),warning:n.yellow("‼"),error:n.red("×")};e.exports=s?o:i},469:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports["default"]=mimicFn},502:(e,t,r)=>{var n=r(955);e.exports=MuteStream;function MuteStream(e){n.apply(this);e=e||{};this.writable=this.readable=true;this.muted=false;this.on("pipe",this._onpipe);this.replace=e.replace;this._prompt=e.prompt||null;this._hadControl=false}MuteStream.prototype=Object.create(n.prototype);Object.defineProperty(MuteStream.prototype,"constructor",{value:MuteStream,enumerable:false});MuteStream.prototype.mute=function(){this.muted=true};MuteStream.prototype.unmute=function(){this.muted=false};Object.defineProperty(MuteStream.prototype,"_onpipe",{value:onPipe,enumerable:false,writable:true,configurable:true});function onPipe(e){this._src=e}Object.defineProperty(MuteStream.prototype,"isTTY",{get:getIsTTY,set:setIsTTY,enumerable:true,configurable:true});function getIsTTY(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:false}function setIsTTY(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:true,writable:true,configurable:true})}Object.defineProperty(MuteStream.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:undefined},enumerable:true,configurable:true});Object.defineProperty(MuteStream.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:undefined},enumerable:true,configurable:true});MuteStream.prototype.pipe=function(e,t){this._dest=e;return n.prototype.pipe.call(this,e,t)};MuteStream.prototype.pause=function(){if(this._src)return this._src.pause()};MuteStream.prototype.resume=function(){if(this._src)return this._src.resume()};MuteStream.prototype.write=function(e){if(this.muted){if(!this.replace)return true;if(e.match(/^\u001b/)){if(e.indexOf(this._prompt)===0){e=e.substr(this._prompt.length);e=e.replace(/./g,this.replace);e=this._prompt+e}this._hadControl=true;return this.emit("data",e)}else{if(this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0){this._hadControl=false;this.emit("data",this._prompt);e=e.substr(this._prompt.length)}e=e.toString().replace(/./g,this.replace)}}this.emit("data",e)};MuteStream.prototype.end=function(e){if(this.muted){if(e&&this.replace){e=e.toString().replace(/./g,this.replace)}else{e=null}}if(e)this.emit("data",e);this.emit("end")};function proxy(e){return function(){var t=this._dest;var r=this._src;if(t&&t[e])t[e].apply(t,arguments);if(r&&r[e])r[e].apply(r,arguments)}}MuteStream.prototype.destroy=proxy("destroy");MuteStream.prototype.destroySoon=proxy("destroySoon");MuteStream.prototype.close=proxy("close")},430:(e,t,r)=>{"use strict";const n=r(469);const s=new WeakMap;const onetime=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let o=0;const i=e.displayName||e.name||"";const onetime=function(...n){s.set(onetime,++o);if(o===1){r=e.apply(this,n);e=null}else if(t.throw===true){throw new Error(`Function \`${i}\` can only be called once`)}return r};n(onetime,e);s.set(onetime,o);return onetime};e.exports=onetime;e.exports["default"]=onetime;e.exports.callCount=e=>{if(!s.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return s.get(e)}},327:(e,t,r)=>{"use strict";const n=r(521);const s=r(385);const o=r(581);const i=r(97);const a=r(663);const l=r(518);const u=r(457);const f=r(934);const h=r(502);const p=Symbol("text");const g=Symbol("prefixText");const d=3;class StdinDiscarder{constructor(){this.requests=0;this.mutedStream=new h;this.mutedStream.pipe(process.stdout);this.mutedStream.mute();const e=this;this.ourEmit=function(t,r,...n){const{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(t==="keypress"){return}if(t==="data"&&r.includes(d)){process.emit("SIGINT")}Reflect.apply(e.oldEmit,this,[t,r,...n])}else{Reflect.apply(process.stdin.emit,this,[t,r,...n])}}}start(){this.requests++;if(this.requests===1){this.realStart()}}stop(){if(this.requests<=0){throw new Error("`stop` called more times than `start`")}this.requests--;if(this.requests===0){this.realStop()}}realStart(){if(process.platform==="win32"){return}this.rl=n.createInterface({input:process.stdin,output:this.mutedStream});this.rl.on("SIGINT",(()=>{if(process.listenerCount("SIGINT")===0){process.emit("SIGINT")}else{this.rl.close();process.kill(process.pid,"SIGINT")}}))}realStop(){if(process.platform==="win32"){return}this.rl.close();this.rl=undefined}}const v=new StdinDiscarder;class Ora{constructor(e){if(typeof e==="string"){e={text:e}}this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e};this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=undefined;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:f({stream:this.stream});this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent;this.discardStdin=this.options.discardStdin;this.isDiscardingStdin=false}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=e}_updateInterval(e){if(e!==undefined){this.interval=e}}get spinner(){return this._spinner}set spinner(e){this.frameIndex=0;if(typeof e==="object"){if(e.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=e}else if(process.platform==="win32"){this._spinner=i.line}else if(e===undefined){this._spinner=i.dots}else if(i[e]){this._spinner=i[e]}else{throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}this._updateInterval(this._spinner.interval)}get text(){return this[p]}get prefixText(){return this[g]}get isSpinning(){return this.id!==undefined}updateLineCount(){const e=this.stream.columns||80;const t=typeof this[g]==="string"?this[g]+"-":"";this.lineCount=l(t+"--"+this[p]).split("\n").reduce(((t,r)=>t+Math.max(1,Math.ceil(u(r)/e))),0)}set text(e){this[p]=e;this.updateLineCount()}set prefixText(e){this[g]=e;this.updateLineCount()}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];if(this.color){t=s[this.color](t)}this.frameIndex=++this.frameIndex%e.length;const r=typeof this.prefixText==="string"&&this.prefixText!==""?this.prefixText+" ":"";const n=typeof this.text==="string"?" "+this.text:"";return r+t+n}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let e=0;e0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(e){if(e){this.text=e}if(!this.isEnabled){if(this.text){this.stream.write(`- ${this.text}\n`)}return this}if(this.isSpinning){return this}if(this.hideCursor){o.hide(this.stream)}if(this.discardStdin&&process.stdin.isTTY){this.isDiscardingStdin=true;v.start()}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=undefined;this.frameIndex=0;this.clear();if(this.hideCursor){o.show(this.stream)}if(this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin){v.stop();this.isDiscardingStdin=false}return this}succeed(e){return this.stopAndPersist({symbol:a.success,text:e})}fail(e){return this.stopAndPersist({symbol:a.error,text:e})}warn(e){return this.stopAndPersist({symbol:a.warning,text:e})}info(e){return this.stopAndPersist({symbol:a.info,text:e})}stopAndPersist(e={}){const t=e.prefixText||this.prefixText;const r=typeof t==="string"&&t!==""?t+" ":"";const n=e.text||this.text;const s=typeof n==="string"?" "+n:"";this.stop();this.stream.write(`${r}${e.symbol||" "}${s}\n`);return this}}const oraFactory=function(e){return new Ora(e)};e.exports=oraFactory;e.exports.promise=(e,t)=>{if(typeof e.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const r=new Ora(t);r.start();(async()=>{try{await e;r.succeed()}catch(e){r.fail()}})();return r}},154:(e,t,r)=>{"use strict";const n=r(430);const s=r(234);e.exports=n((()=>{s((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},234:(e,t,r)=>{var n=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(n)){e.exports=function(){return function(){}}}else{var s=r(491);var o=r(986);var i=/^win/i.test(n.platform);var a=r(361);if(typeof a!=="function"){a=a.EventEmitter}var l;if(n.__signal_exit_emitter__){l=n.__signal_exit_emitter__}else{l=n.__signal_exit_emitter__=new a;l.count=0;l.emitted={}}if(!l.infinite){l.setMaxListeners(Infinity);l.infinite=true}e.exports=function(e,t){if(!processOk(global.process)){return function(){}}s.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){g()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){l.removeListener(r,e);if(l.listeners("exit").length===0&&l.listeners("afterexit").length===0){u()}};l.on(r,e);return remove};var u=function unload(){if(!p||!processOk(global.process)){return}p=false;o.forEach((function(e){try{n.removeListener(e,h[e])}catch(e){}}));n.emit=b;n.reallyExit=d;l.count-=1};e.exports.unload=u;var f=function emit(e,t,r){if(l.emitted[e]){return}l.emitted[e]=true;l.emit(e,t,r)};var h={};o.forEach((function(e){h[e]=function listener(){if(!processOk(global.process)){return}var t=n.listeners(e);if(t.length===l.count){u();f("exit",null,e);f("afterexit",null,e);if(i&&e==="SIGHUP"){e="SIGINT"}n.kill(n.pid,e)}}}));e.exports.signals=function(){return o};var p=false;var g=function load(){if(p||!processOk(global.process)){return}p=true;l.count+=1;o=o.filter((function(e){try{n.on(e,h[e]);return true}catch(e){return false}}));n.emit=m;n.reallyExit=v};e.exports.load=g;var d=n.reallyExit;var v=function processReallyExit(e){if(!processOk(global.process)){return}n.exitCode=e||0;f("exit",n.exitCode,null);f("afterexit",n.exitCode,null);d.call(n,n.exitCode)};var b=n.emit;var m=function processEmit(e,t){if(e==="exit"&&processOk(global.process)){if(t!==undefined){n.exitCode=t}var r=b.apply(this,arguments);f("exit",n.exitCode,null);f("afterexit",n.exitCode,null);return r}else{return b.apply(this,arguments)}}}},986:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},220:(e,t,r)=>{"use strict";const n=r(37);const s=r(343);const o=process.env;let i;if(s("no-color")||s("no-colors")||s("color=false")){i=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},793:(e,t,r)=>{"use strict";const n=r(37);const s=r(224);const o=r(914);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},567:e=>{e.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},457:(e,t,r)=>{"use strict";var n=r(987);var s=r(567);var o={nul:0,control:0};e.exports=function wcwidth(e){return wcswidth(e,o)};e.exports.config=function(e){e=n(e||{},o);return function wcwidth(t){return wcswidth(t,e)}};function wcswidth(e,t){if(typeof e!=="string")return wcwidth(e,t);var r=0;for(var n=0;n=127&&e<160)return t.control;if(bisearch(e))return 0;return 1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function bisearch(e){var t=0;var r=s.length-1;var n;if(es[r][1])return false;while(r>=t){n=Math.floor((t+r)/2);if(e>s[n][1])t=n+1;else if(e{"use strict";e.exports=require("assert")},361:e=>{"use strict";e.exports=require("events")},518:e=>{"use strict";e.exports=require("next/dist/compiled/strip-ansi")},37:e=>{"use strict";e.exports=require("os")},521:e=>{"use strict";e.exports=require("readline")},955:e=>{"use strict";e.exports=require("stream")},224:e=>{"use strict";e.exports=require("tty")},432:e=>{"use strict";e.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var o=true;try{e[r](s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(327);module.exports=r})(); \ No newline at end of file diff --git a/packages/next/src/compiled/postcss-safe-parser/safe-parse.js b/packages/next/src/compiled/postcss-safe-parser/safe-parse.js index 7957c097b736b..852d3161c45b6 100644 --- a/packages/next/src/compiled/postcss-safe-parser/safe-parse.js +++ b/packages/next/src/compiled/postcss-safe-parser/safe-parse.js @@ -1 +1 @@ -(()=>{var e={306:(e,t,r)=>{let s=r(224);let i=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||s.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env);let formatter=(e,t,r=e)=>s=>{let i=""+s;let n=i.indexOf(t,e.length);return~n?e+replaceClose(i,t,r,n)+t:e+i+t};let replaceClose=(e,t,r,s)=>{let i=e.substring(0,s)+r;let n=e.substring(s+t.length);let o=n.indexOf(t);return~o?i+replaceClose(n,t,r,o):i+n};let createColors=(e=i)=>({isColorSupported:e,reset:e?e=>`${e}`:String,bold:e?formatter("","",""):String,dim:e?formatter("","",""):String,italic:e?formatter("",""):String,underline:e?formatter("",""):String,inverse:e?formatter("",""):String,hidden:e?formatter("",""):String,strikethrough:e?formatter("",""):String,black:e?formatter("",""):String,red:e?formatter("",""):String,green:e?formatter("",""):String,yellow:e?formatter("",""):String,blue:e?formatter("",""):String,magenta:e?formatter("",""):String,cyan:e?formatter("",""):String,white:e?formatter("",""):String,gray:e?formatter("",""):String,bgBlack:e?formatter("",""):String,bgRed:e?formatter("",""):String,bgGreen:e?formatter("",""):String,bgYellow:e?formatter("",""):String,bgBlue:e?formatter("",""):String,bgMagenta:e?formatter("",""):String,bgCyan:e?formatter("",""):String,bgWhite:e?formatter("",""):String});e.exports=createColors();e.exports.createColors=createColors},534:(e,t,r)=>{let{Input:s}=r(977);let i=r(702);e.exports=function safeParse(e,t){let r=new s(e,t);let n=new i(r);n.parse();return n.root}},702:(e,t,r)=>{let s=r(970);let i=r(865);let n=r(38);class SafeParser extends n{createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:true})}comment(e){let t=new i;this.init(t,e[2]);let r=this.input.fromOffset(e[3])||this.input.fromOffset(this.input.css.length-1);t.source.end={offset:e[3],line:r.line,column:r.col};let s=e[1].slice(2);if(s.slice(-2)==="*/")s=s.slice(0,-2);if(/^\s*$/.test(s)){t.text="";t.raws.left=s;t.raws.right=""}else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}decl(e){if(e.length>1&&e.some((e=>e[0]==="word"))){super.decl(e)}}unclosedBracket(){}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unexpectedClose(){this.current.raws.after+="}"}doubleColon(){}unnamedAtrule(e){e.name=""}precheckMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r,s;for(r=t-1;r>=0;r--){if(e[r][0]==="word")break}if(r===0)return;for(s=r-1;s>=0;s--){if(e[s][0]!=="space"){s+=1;break}}let i=e.slice(r);let n=e.slice(s,r);e.splice(s,e.length-s);this.spaces=n.map((e=>e[1])).join("");this.decl(i)}checkMissedSemicolon(){}endFile(){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.raws.after=""}}}e.exports=SafeParser},60:(e,t,r)=>{"use strict";let s=r(911);class AtRule extends s{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;AtRule.default=AtRule;s.registerAtRule(AtRule)},865:(e,t,r)=>{"use strict";let s=r(490);class Comment extends s{constructor(e){super(e);this.type="comment"}}e.exports=Comment;Comment.default=Comment},911:(e,t,r)=>{"use strict";let{isClean:s,my:i}=r(522);let n=r(258);let o=r(865);let l=r(490);let a,f,h,c;function cleanSource(e){return e.map((e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e}))}function markDirtyUp(e){e[s]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}class Container extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,s;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of s)this.proxyOf.nodes.splice(r+1,0,e);let i;for(let e in this.indexes){i=this.indexes[e];if(r{if(!e[i])Container.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[s])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((s=>{if(t.props&&!t.props.includes(s.prop))return;if(t.fast&&!s.value.includes(t.fast))return;s.value=s.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}if(s!==false&&t.walk){s=t.walk(e)}return s}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="atrule"&&r.name===e){return t(r,s)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="decl"&&r.prop===e){return t(r,s)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="rule"&&r.selector===e){return t(r,s)}}))}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}Container.registerParse=e=>{a=e};Container.registerRule=e=>{f=e};Container.registerAtRule=e=>{h=e};Container.registerRoot=e=>{c=e};e.exports=Container;Container.default=Container;Container.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,h.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,f.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,n.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,c.prototype)}e[i]=true;if(e.nodes){e.nodes.forEach((e=>{Container.rebuild(e)}))}}},430:(e,t,r)=>{"use strict";let s=r(306);let i=r(364);class CssSyntaxError extends Error{constructor(e,t,r,s,i,n){super(e);this.name="CssSyntaxError";this.reason=e;if(i){this.file=i}if(s){this.source=s}if(n){this.plugin=n}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=s.isColorSupported;if(i){if(e)t=i(t)}let r=t.split(/\r?\n/);let n=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let l=String(o).length;let a,f;if(e){let{bold:e,gray:t,red:r}=s.createColors(true);a=t=>e(r(t));f=e=>t(e)}else{a=f=e=>e}return r.slice(n,o).map(((e,t)=>{let r=n+1+t;let s=" "+(" "+r).slice(-l)+" | ";if(r===this.line){let t=f(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+f(s)+e+"\n "+t+a("^")}return" "+f(s)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError;CssSyntaxError.default=CssSyntaxError},258:(e,t,r)=>{"use strict";let s=r(490);class Declaration extends s{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration;Declaration.default=Declaration},726:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let s=[];let i="";let n=false;let o=0;let l=false;let a="";let f=false;for(let r of e){if(f){f=false}else if(r==="\\"){f=true}else if(l){if(r===a){l=false}}else if(r==='"'||r==="'"){l=true;a=r}else if(r==="("){o+=1}else if(r===")"){if(o>0)o-=1}else if(o===0){if(t.includes(r))n=true}if(n){if(i!=="")s.push(i.trim());i="";n=false}else{i+=r}}if(r||i!=="")s.push(i.trim());return s}};e.exports=t;t.default=t},490:(e,t,r)=>{"use strict";let{isClean:s,my:i}=r(522);let n=r(430);let o=r(943);let l=r(34);function cloneNode(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)){continue}if(s==="proxyCache")continue;let i=e[s];let n=typeof i;if(s==="parent"&&n==="object"){if(t)r[s]=t}else if(s==="source"){r[s]=i}else if(Array.isArray(i)){r[s]=i.map((e=>cloneNode(e,r)))}else{if(n==="object"&&i!==null)i=cloneNode(i);r[s]=i}}return r}class Node{constructor(e={}){this.raws={};this[s]=false;this[i]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){this.parent.insertAfter(this,e);return this}assign(e={}){for(let t in e){this[t]=e[t]}return this}before(e){this.parent.insertBefore(this,e);return this}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}clone(e={}){let t=cloneNode(this);for(let r in e){t[r]=e[r]}return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markDirty(){if(this[s]){this[s]=false;let e=this;while(e=e.parent){e[s]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index){r=this.positionInside(e.index,t)}else if(e.word){t=this.toString();let s=t.indexOf(e.word);if(s!==-1)r=this.positionInside(s,t)}return r}positionInside(e,t){let r=t||this.toString();let s=this.source.start.column;let i=this.source.start.line;for(let t=0;t{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof s==="object"&&s.toJSON){r[e]=s.toJSON(null,t)}else if(e==="source"){let n=t.get(s.input);if(n==null){n=i;t.set(s.input,i);i++}r[e]={end:s.end,inputId:n,start:s.start}}else{r[e]=s}}if(s){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=l){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}}e.exports=Node;Node.default=Node},38:(e,t,r)=>{"use strict";let s=r(258);let i=r(970);let n=r(865);let o=r(60);let l=r(991);let a=r(202);const f={empty:true,space:true};function findLastWithPosition(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let s=r[3]||r[2];if(s)return s}}class Parser{constructor(e){this.input=e;this.root=new l;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new o;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let s;let i;let n=false;let l=false;let a=[];let f=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){f.push(r==="("?")":"]")}else if(r==="{"&&f.length>0){f.push("}")}else if(r===f[f.length-1]){f.pop()}if(f.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){l=true;break}else if(r==="}"){if(a.length>0){i=a.length-1;s=a[i];while(s&&s[0]==="space"){s=a[--i]}if(s){t.source.end=this.getPosition(s[3]||s[2]);t.source.end.offset++}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){n=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(n){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(l){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let s;for(let i=t-1;i>=0;i--){s=e[i];if(s[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0;let r,s,i;for(let[n,o]of e.entries()){r=o;s=r[0];if(s==="("){t+=1}if(s===")"){t-=1}if(t===0&&s===":"){if(!i){this.doubleColon(r)}else if(i[0]==="word"&&i[1]==="progid"){continue}else{return n}}i=r}return false}comment(e){let t=new n;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let r=new s;this.init(r,e[0][2]);let i=e[e.length-1];if(i[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(i[3]||i[2]||findLastWithPosition(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let n;while(e.length){n=e.shift();if(n[0]===":"){r.raws.between+=n[1];break}else{if(n[0]==="word"&&/\w/.test(n[1])){this.unknownWord([n])}r.raws.between+=n[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let l;while(e.length){l=e[0][0];if(l!=="space"&&l!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){n=e[t];if(n[1].toLowerCase()==="!important"){r.important=true;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s;if(s!==" !important")r.raws.important=s;break}else if(n[1].toLowerCase()==="important"){let s=e.slice(0);let i="";for(let e=t;e>0;e--){let t=s[e][0];if(i.trim().indexOf("!")===0&&t!=="space"){break}i=s.pop()[1]+i}if(i.trim().indexOf("!")===0){r.important=true;r.raws.important=i;e=s}}if(n[0]!=="space"&&n[0]!=="comment"){break}}let a=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(a){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let s=false;let i=null;let n=[];let o=e[1].startsWith("--");let l=[];let a=e;while(a){r=a[0];l.push(a);if(r==="("||r==="["){if(!i)i=a;n.push(r==="("?")":"]")}else if(o&&s&&r==="{"){if(!i)i=a;n.push("}")}else if(n.length===0){if(r===";"){if(s){this.decl(l,o);return}else{break}}else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop());t=true;break}else if(r===":"){s=true}}else if(r===n[n.length-1]){n.pop();if(n.length===0)i=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(n.length>0)this.unclosedBracket(i);if(t&&s){if(!o){while(l.length){a=l[l.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(l.pop())}}this.decl(l,o)}else{this.unknownWord(l)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n;let o=r.length;let l="";let a=true;let h,c;for(let e=0;ee+t[1]),"");e.raws[t]={raw:s,value:l}}e[t]=l}rule(e){e.pop();let t=new a;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let s=t;s{"use strict";let s=r(911);let i,n;class Root extends s{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of s){e.raws.before=t.raws.before}}}return s}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new i(new n,this,e);return t.stringify()}}Root.registerLazyResult=e=>{i=e};Root.registerProcessor=e=>{n=e};e.exports=Root;Root.default=Root;s.registerRoot(Root)},202:(e,t,r)=>{"use strict";let s=r(911);let i=r(726);class Rule extends s{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=Rule;Rule.default=Rule;s.registerRule(Rule)},943:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(s){r+=" "}if(e.nodes){this.block(e,r+s)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let s=e.parent;let i=0;while(s&&s.type!=="root"){i+=1;s=s.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let s=0;s{i=e.raws[r];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=t[s];o.rawCache[s]=i;return i}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=Stringifier;Stringifier.default=Stringifier},34:(e,t,r)=>{"use strict";let s=r(943);function stringify(e,t){let r=new s(t);r.stringify(e)}e.exports=stringify;stringify.default=stringify},522:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},364:(e,t,r)=>{"use strict";let s=r(306);let i=r(970);let n;function registerInput(e){n=e}const o={";":s.yellow,":":s.yellow,"(":s.cyan,")":s.cyan,"[":s.yellow,"]":s.yellow,"{":s.yellow,"}":s.yellow,"at-word":s.cyan,brackets:s.cyan,call:s.cyan,class:s.yellow,comment:s.gray,hash:s.magenta,string:s.green};function getTokenType([e,t],r){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!r.endOfFile()){let e=r.nextToken();r.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=i(new n(e),{ignoreErrors:true});let r="";while(!t.endOfFile()){let e=t.nextToken();let s=o[getTokenType(e,t)];if(s){r+=e[1].split(/\r?\n/).map((e=>s(e))).join("\n")}else{r+=e[1]}}return r}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},970:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const s="\\".charCodeAt(0);const i="/".charCodeAt(0);const n="\n".charCodeAt(0);const o=" ".charCodeAt(0);const l="\f".charCodeAt(0);const a="\t".charCodeAt(0);const f="\r".charCodeAt(0);const h="[".charCodeAt(0);const c="]".charCodeAt(0);const u="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const w=";".charCodeAt(0);const g="*".charCodeAt(0);const y=":".charCodeAt(0);const b="@".charCodeAt(0);const x=/[\t\n\f\r "#'()/;[\\\]{}]/g;const k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const C=/.[\r\n"'(/\\]/;const S=/[\da-f]/i;e.exports=function tokenizer(e,O={}){let A=e.css.valueOf();let v=O.ignoreErrors;let R,P,E,_,z;let D,I,B,F,T;let N=A.length;let j=0;let M=[];let $=[];function position(){return j}function unclosed(t){throw e.error("Unclosed "+t,j)}function endOfFile(){return $.length===0&&j>=N}function nextToken(e){if($.length)return $.pop();if(j>=N)return;let O=e?e.ignoreUnclosed:false;R=A.charCodeAt(j);switch(R){case n:case o:case a:case f:case l:{P=j;do{P+=1;R=A.charCodeAt(P)}while(R===o||R===n||R===a||R===f||R===l);T=["space",A.slice(j,P)];j=P-1;break}case h:case c:case d:case m:case y:case w:case p:{let e=String.fromCharCode(R);T=[e,e,j];break}case u:{B=M.length?M.pop()[1]:"";F=A.charCodeAt(j+1);if(B==="url"&&F!==t&&F!==r&&F!==o&&F!==n&&F!==a&&F!==l&&F!==f){P=j;do{D=false;P=A.indexOf(")",P+1);if(P===-1){if(v||O){P=j;break}else{unclosed("bracket")}}I=P;while(A.charCodeAt(I-1)===s){I-=1;D=!D}}while(D);T=["brackets",A.slice(j,P+1),j,P];j=P}else{P=A.indexOf(")",j+1);_=A.slice(j,P+1);if(P===-1||C.test(_)){T=["(","(",j]}else{T=["brackets",_,j,P];j=P}}break}case t:case r:{E=R===t?"'":'"';P=j;do{D=false;P=A.indexOf(E,P+1);if(P===-1){if(v||O){P=j+1;break}else{unclosed("string")}}I=P;while(A.charCodeAt(I-1)===s){I-=1;D=!D}}while(D);T=["string",A.slice(j,P+1),j,P];j=P;break}case b:{x.lastIndex=j+1;x.test(A);if(x.lastIndex===0){P=A.length-1}else{P=x.lastIndex-2}T=["at-word",A.slice(j,P+1),j,P];j=P;break}case s:{P=j;z=true;while(A.charCodeAt(P+1)===s){P+=1;z=!z}R=A.charCodeAt(P+1);if(z&&R!==i&&R!==o&&R!==n&&R!==a&&R!==f&&R!==l){P+=1;if(S.test(A.charAt(P))){while(S.test(A.charAt(P+1))){P+=1}if(A.charCodeAt(P+1)===o){P+=1}}}T=["word",A.slice(j,P+1),j,P];j=P;break}default:{if(R===i&&A.charCodeAt(j+1)===g){P=A.indexOf("*/",j+2)+1;if(P===0){if(v||O){P=A.length}else{unclosed("comment")}}T=["comment",A.slice(j,P+1),j,P];j=P}else{k.lastIndex=j+1;k.test(A);if(k.lastIndex===0){P=A.length-1}else{P=k.lastIndex-2}T=["word",A.slice(j,P+1),j,P];M.push(T);j=P}break}}j++;return T}function back(e){$.push(e)}return{back:back,endOfFile:endOfFile,nextToken:nextToken,position:position}}},977:e=>{"use strict";e.exports=require("postcss")},224:e=>{"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var n=true;try{e[r](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(534);module.exports=r})(); \ No newline at end of file +(()=>{var e={448:(e,t,r)=>{let s=process.argv||[],i=process.env;let n=!("NO_COLOR"in i||s.includes("--no-color"))&&("FORCE_COLOR"in i||s.includes("--color")||process.platform==="win32"||require!=null&&r(224).isatty(1)&&i.TERM!=="dumb"||"CI"in i);let formatter=(e,t,r=e)=>s=>{let i=""+s;let n=i.indexOf(t,e.length);return~n?e+replaceClose(i,t,r,n)+t:e+i+t};let replaceClose=(e,t,r,s)=>{let i="";let n=0;do{i+=e.substring(n,s)+r;n=s+t.length;s=e.indexOf(t,n)}while(~s);return i+e.substring(n)};let createColors=(e=n)=>{let t=e?formatter:()=>String;return{isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),bgCyanBright:t("",""),bgWhiteBright:t("","")}};e.exports=createColors();e.exports.createColors=createColors},534:(e,t,r)=>{let{Input:s}=r(977);let i=r(702);e.exports=function safeParse(e,t){let r=new s(e,t);let n=new i(r);n.parse();return n.root}},702:(e,t,r)=>{let s=r(970);let i=r(865);let n=r(38);class SafeParser extends n{createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:true})}comment(e){let t=new i;this.init(t,e[2]);let r=this.input.fromOffset(e[3])||this.input.fromOffset(this.input.css.length-1);t.source.end={offset:e[3],line:r.line,column:r.col};let s=e[1].slice(2);if(s.slice(-2)==="*/")s=s.slice(0,-2);if(/^\s*$/.test(s)){t.text="";t.raws.left=s;t.raws.right=""}else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}decl(e){if(e.length>1&&e.some((e=>e[0]==="word"))){super.decl(e)}}unclosedBracket(){}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unexpectedClose(){this.current.raws.after+="}"}doubleColon(){}unnamedAtrule(e){e.name=""}precheckMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r,s;for(r=t-1;r>=0;r--){if(e[r][0]==="word")break}if(r===0)return;for(s=r-1;s>=0;s--){if(e[s][0]!=="space"){s+=1;break}}let i=e.slice(r);let n=e.slice(s,r);e.splice(s,e.length-s);this.spaces=n.map((e=>e[1])).join("");this.decl(i)}checkMissedSemicolon(){}endFile(){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.raws.after=""}}}e.exports=SafeParser},60:(e,t,r)=>{"use strict";let s=r(911);class AtRule extends s{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;AtRule.default=AtRule;s.registerAtRule(AtRule)},865:(e,t,r)=>{"use strict";let s=r(490);class Comment extends s{constructor(e){super(e);this.type="comment"}}e.exports=Comment;Comment.default=Comment},911:(e,t,r)=>{"use strict";let{isClean:s,my:i}=r(522);let n=r(258);let o=r(865);let l=r(490);let a,f,h,u;function cleanSource(e){return e.map((e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e}))}function markDirtyUp(e){e[s]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}class Container extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,s;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of s)this.proxyOf.nodes.splice(r+1,0,e);let i;for(let e in this.indexes){i=this.indexes[e];if(r{if(!e[i])Container.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[s])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((s=>{if(t.props&&!t.props.includes(s.prop))return;if(t.fast&&!s.value.includes(t.fast))return;s.value=s.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}if(s!==false&&t.walk){s=t.walk(e)}return s}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="atrule"&&r.name===e){return t(r,s)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="decl"&&r.prop===e){return t(r,s)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,s)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,s)}}))}return this.walk(((r,s)=>{if(r.type==="rule"&&r.selector===e){return t(r,s)}}))}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}Container.registerParse=e=>{a=e};Container.registerRule=e=>{f=e};Container.registerAtRule=e=>{h=e};Container.registerRoot=e=>{u=e};e.exports=Container;Container.default=Container;Container.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,h.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,f.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,n.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,u.prototype)}e[i]=true;if(e.nodes){e.nodes.forEach((e=>{Container.rebuild(e)}))}}},430:(e,t,r)=>{"use strict";let s=r(448);let i=r(364);class CssSyntaxError extends Error{constructor(e,t,r,s,i,n){super(e);this.name="CssSyntaxError";this.reason=e;if(i){this.file=i}if(s){this.source=s}if(n){this.plugin=n}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=s.isColorSupported;if(i){if(e)t=i(t)}let r=t.split(/\r?\n/);let n=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let l=String(o).length;let a,f;if(e){let{bold:e,gray:t,red:r}=s.createColors(true);a=t=>e(r(t));f=e=>t(e)}else{a=f=e=>e}return r.slice(n,o).map(((e,t)=>{let r=n+1+t;let s=" "+(" "+r).slice(-l)+" | ";if(r===this.line){let t=f(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+f(s)+e+"\n "+t+a("^")}return" "+f(s)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError;CssSyntaxError.default=CssSyntaxError},258:(e,t,r)=>{"use strict";let s=r(490);class Declaration extends s{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration;Declaration.default=Declaration},726:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let s=[];let i="";let n=false;let o=0;let l=false;let a="";let f=false;for(let r of e){if(f){f=false}else if(r==="\\"){f=true}else if(l){if(r===a){l=false}}else if(r==='"'||r==="'"){l=true;a=r}else if(r==="("){o+=1}else if(r===")"){if(o>0)o-=1}else if(o===0){if(t.includes(r))n=true}if(n){if(i!=="")s.push(i.trim());i="";n=false}else{i+=r}}if(r||i!=="")s.push(i.trim());return s}};e.exports=t;t.default=t},490:(e,t,r)=>{"use strict";let{isClean:s,my:i}=r(522);let n=r(430);let o=r(943);let l=r(34);function cloneNode(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)){continue}if(s==="proxyCache")continue;let i=e[s];let n=typeof i;if(s==="parent"&&n==="object"){if(t)r[s]=t}else if(s==="source"){r[s]=i}else if(Array.isArray(i)){r[s]=i.map((e=>cloneNode(e,r)))}else{if(n==="object"&&i!==null)i=cloneNode(i);r[s]=i}}return r}class Node{constructor(e={}){this.raws={};this[s]=false;this[i]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){this.parent.insertAfter(this,e);return this}assign(e={}){for(let t in e){this[t]=e[t]}return this}before(e){this.parent.insertBefore(this,e);return this}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}clone(e={}){let t=cloneNode(this);for(let r in e){t[r]=e[r]}return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markDirty(){if(this[s]){this[s]=false;let e=this;while(e=e.parent){e[s]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index){r=this.positionInside(e.index,t)}else if(e.word){t=this.toString();let s=t.indexOf(e.word);if(s!==-1)r=this.positionInside(s,t)}return r}positionInside(e,t){let r=t||this.toString();let s=this.source.start.column;let i=this.source.start.line;for(let t=0;t{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof s==="object"&&s.toJSON){r[e]=s.toJSON(null,t)}else if(e==="source"){let n=t.get(s.input);if(n==null){n=i;t.set(s.input,i);i++}r[e]={end:s.end,inputId:n,start:s.start}}else{r[e]=s}}if(s){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=l){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}}e.exports=Node;Node.default=Node},38:(e,t,r)=>{"use strict";let s=r(258);let i=r(970);let n=r(865);let o=r(60);let l=r(991);let a=r(202);const f={empty:true,space:true};function findLastWithPosition(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let s=r[3]||r[2];if(s)return s}}class Parser{constructor(e){this.input=e;this.root=new l;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new o;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let s;let i;let n=false;let l=false;let a=[];let f=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){f.push(r==="("?")":"]")}else if(r==="{"&&f.length>0){f.push("}")}else if(r===f[f.length-1]){f.pop()}if(f.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){l=true;break}else if(r==="}"){if(a.length>0){i=a.length-1;s=a[i];while(s&&s[0]==="space"){s=a[--i]}if(s){t.source.end=this.getPosition(s[3]||s[2]);t.source.end.offset++}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){n=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(n){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(l){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let s;for(let i=t-1;i>=0;i--){s=e[i];if(s[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0;let r,s,i;for(let[n,o]of e.entries()){r=o;s=r[0];if(s==="("){t+=1}if(s===")"){t-=1}if(t===0&&s===":"){if(!i){this.doubleColon(r)}else if(i[0]==="word"&&i[1]==="progid"){continue}else{return n}}i=r}return false}comment(e){let t=new n;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let r=new s;this.init(r,e[0][2]);let i=e[e.length-1];if(i[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(i[3]||i[2]||findLastWithPosition(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let n;while(e.length){n=e.shift();if(n[0]===":"){r.raws.between+=n[1];break}else{if(n[0]==="word"&&/\w/.test(n[1])){this.unknownWord([n])}r.raws.between+=n[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let l;while(e.length){l=e[0][0];if(l!=="space"&&l!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){n=e[t];if(n[1].toLowerCase()==="!important"){r.important=true;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s;if(s!==" !important")r.raws.important=s;break}else if(n[1].toLowerCase()==="important"){let s=e.slice(0);let i="";for(let e=t;e>0;e--){let t=s[e][0];if(i.trim().indexOf("!")===0&&t!=="space"){break}i=s.pop()[1]+i}if(i.trim().indexOf("!")===0){r.important=true;r.raws.important=i;e=s}}if(n[0]!=="space"&&n[0]!=="comment"){break}}let a=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(a){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let s=false;let i=null;let n=[];let o=e[1].startsWith("--");let l=[];let a=e;while(a){r=a[0];l.push(a);if(r==="("||r==="["){if(!i)i=a;n.push(r==="("?")":"]")}else if(o&&s&&r==="{"){if(!i)i=a;n.push("}")}else if(n.length===0){if(r===";"){if(s){this.decl(l,o);return}else{break}}else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop());t=true;break}else if(r===":"){s=true}}else if(r===n[n.length-1]){n.pop();if(n.length===0)i=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(n.length>0)this.unclosedBracket(i);if(t&&s){if(!o){while(l.length){a=l[l.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(l.pop())}}this.decl(l,o)}else{this.unknownWord(l)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n;let o=r.length;let l="";let a=true;let h,u;for(let e=0;ee+t[1]),"");e.raws[t]={raw:s,value:l}}e[t]=l}rule(e){e.pop();let t=new a;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let s=t;s{"use strict";let s=r(911);let i,n;class Root extends s{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of s){e.raws.before=t.raws.before}}}return s}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new i(new n,this,e);return t.stringify()}}Root.registerLazyResult=e=>{i=e};Root.registerProcessor=e=>{n=e};e.exports=Root;Root.default=Root;s.registerRoot(Root)},202:(e,t,r)=>{"use strict";let s=r(911);let i=r(726);class Rule extends s{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=Rule;Rule.default=Rule;s.registerRule(Rule)},943:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(s){r+=" "}if(e.nodes){this.block(e,r+s)}else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let s=e.parent;let i=0;while(s&&s.type!=="root"){i+=1;s=s.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let s=0;s{i=e.raws[r];if(typeof i!=="undefined")return false}))}}if(typeof i==="undefined")i=t[s];o.rawCache[s]=i;return i}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let s=e.raws[t];if(s&&s.value===r){return s.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=Stringifier;Stringifier.default=Stringifier},34:(e,t,r)=>{"use strict";let s=r(943);function stringify(e,t){let r=new s(t);r.stringify(e)}e.exports=stringify;stringify.default=stringify},522:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},364:(e,t,r)=>{"use strict";let s=r(448);let i=r(970);let n;function registerInput(e){n=e}const o={";":s.yellow,":":s.yellow,"(":s.cyan,")":s.cyan,"[":s.yellow,"]":s.yellow,"{":s.yellow,"}":s.yellow,"at-word":s.cyan,brackets:s.cyan,call:s.cyan,class:s.yellow,comment:s.gray,hash:s.magenta,string:s.green};function getTokenType([e,t],r){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!r.endOfFile()){let e=r.nextToken();r.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=i(new n(e),{ignoreErrors:true});let r="";while(!t.endOfFile()){let e=t.nextToken();let s=o[getTokenType(e,t)];if(s){r+=e[1].split(/\r?\n/).map((e=>s(e))).join("\n")}else{r+=e[1]}}return r}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},970:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const s="\\".charCodeAt(0);const i="/".charCodeAt(0);const n="\n".charCodeAt(0);const o=" ".charCodeAt(0);const l="\f".charCodeAt(0);const a="\t".charCodeAt(0);const f="\r".charCodeAt(0);const h="[".charCodeAt(0);const u="]".charCodeAt(0);const c="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const w=";".charCodeAt(0);const g="*".charCodeAt(0);const y=":".charCodeAt(0);const b="@".charCodeAt(0);const x=/[\t\n\f\r "#'()/;[\\\]{}]/g;const k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const C=/.[\r\n"'(/\\]/;const O=/[\da-f]/i;e.exports=function tokenizer(e,S={}){let A=e.css.valueOf();let R=S.ignoreErrors;let v,P,B,E,_;let z,D,I,F,T;let N=A.length;let j=0;let M=[];let $=[];function position(){return j}function unclosed(t){throw e.error("Unclosed "+t,j)}function endOfFile(){return $.length===0&&j>=N}function nextToken(e){if($.length)return $.pop();if(j>=N)return;let S=e?e.ignoreUnclosed:false;v=A.charCodeAt(j);switch(v){case n:case o:case a:case f:case l:{P=j;do{P+=1;v=A.charCodeAt(P)}while(v===o||v===n||v===a||v===f||v===l);T=["space",A.slice(j,P)];j=P-1;break}case h:case u:case d:case m:case y:case w:case p:{let e=String.fromCharCode(v);T=[e,e,j];break}case c:{I=M.length?M.pop()[1]:"";F=A.charCodeAt(j+1);if(I==="url"&&F!==t&&F!==r&&F!==o&&F!==n&&F!==a&&F!==l&&F!==f){P=j;do{z=false;P=A.indexOf(")",P+1);if(P===-1){if(R||S){P=j;break}else{unclosed("bracket")}}D=P;while(A.charCodeAt(D-1)===s){D-=1;z=!z}}while(z);T=["brackets",A.slice(j,P+1),j,P];j=P}else{P=A.indexOf(")",j+1);E=A.slice(j,P+1);if(P===-1||C.test(E)){T=["(","(",j]}else{T=["brackets",E,j,P];j=P}}break}case t:case r:{B=v===t?"'":'"';P=j;do{z=false;P=A.indexOf(B,P+1);if(P===-1){if(R||S){P=j+1;break}else{unclosed("string")}}D=P;while(A.charCodeAt(D-1)===s){D-=1;z=!z}}while(z);T=["string",A.slice(j,P+1),j,P];j=P;break}case b:{x.lastIndex=j+1;x.test(A);if(x.lastIndex===0){P=A.length-1}else{P=x.lastIndex-2}T=["at-word",A.slice(j,P+1),j,P];j=P;break}case s:{P=j;_=true;while(A.charCodeAt(P+1)===s){P+=1;_=!_}v=A.charCodeAt(P+1);if(_&&v!==i&&v!==o&&v!==n&&v!==a&&v!==f&&v!==l){P+=1;if(O.test(A.charAt(P))){while(O.test(A.charAt(P+1))){P+=1}if(A.charCodeAt(P+1)===o){P+=1}}}T=["word",A.slice(j,P+1),j,P];j=P;break}default:{if(v===i&&A.charCodeAt(j+1)===g){P=A.indexOf("*/",j+2)+1;if(P===0){if(R||S){P=A.length}else{unclosed("comment")}}T=["comment",A.slice(j,P+1),j,P];j=P}else{k.lastIndex=j+1;k.test(A);if(k.lastIndex===0){P=A.length-1}else{P=k.lastIndex-2}T=["word",A.slice(j,P+1),j,P];M.push(T);j=P}break}}j++;return T}function back(e){$.push(e)}return{back:back,endOfFile:endOfFile,nextToken:nextToken,position:position}}},977:e=>{"use strict";e.exports=require("postcss")},224:e=>{"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var n=true;try{e[r](i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(534);module.exports=r})(); \ No newline at end of file From fd8af81a6d6b9505b2d4e8cc82de4257d9ecff6b Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 18:08:37 +0900 Subject: [PATCH 14/17] chore: add v15 codemod --- packages/next-codemod/lib/codemods.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/next-codemod/lib/codemods.ts b/packages/next-codemod/lib/codemods.ts index d5fef8e63affe..e22dc96a89bf2 100644 --- a/packages/next-codemod/lib/codemods.ts +++ b/packages/next-codemod/lib/codemods.ts @@ -93,4 +93,17 @@ export const availableCodemods: VersionCodemods[] = [ }, ], }, + { + version: '15.0', + codemods: [ + { + title: 'Transforms usage of Next.js async Request APIs', + value: 'next-async-request-api', + }, + { + title: 'Migrate `geo` and `ip` properties on `NextRequest`', + value: 'next-request-geo-ip', + }, + ], + }, ] From 4101a7afa3dca87f626e1842523edd4dd2a2ebc1 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 18:08:52 +0900 Subject: [PATCH 15/17] avoid .js import --- packages/next-codemod/bin/upgrade.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-codemod/bin/upgrade.ts b/packages/next-codemod/bin/upgrade.ts index 1da65dc8999cc..a1126a2055297 100644 --- a/packages/next-codemod/bin/upgrade.ts +++ b/packages/next-codemod/bin/upgrade.ts @@ -5,7 +5,7 @@ import path from 'path' import { compareVersions } from 'compare-versions' import chalk from 'chalk' import which from 'which' -import { availableCodemods } from '../lib/codemods.js' +import { availableCodemods } from '../lib/codemods' type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' type CustomVersionSpecifier = string From 3dc23361710b5df4620739af1859fd34f6369c6c Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 18:28:47 +0900 Subject: [PATCH 16/17] update pkg manager, remove "which" --- packages/next-codemod/bin/upgrade.ts | 129 +------------------- packages/next-codemod/lib/handle-package.ts | 63 +++++++--- packages/next-codemod/package.json | 3 +- pnpm-lock.yaml | 51 +++----- 4 files changed, 69 insertions(+), 177 deletions(-) diff --git a/packages/next-codemod/bin/upgrade.ts b/packages/next-codemod/bin/upgrade.ts index a1126a2055297..c470fd8059d57 100644 --- a/packages/next-codemod/bin/upgrade.ts +++ b/packages/next-codemod/bin/upgrade.ts @@ -4,8 +4,8 @@ import { execSync } from 'child_process' import path from 'path' import { compareVersions } from 'compare-versions' import chalk from 'chalk' -import which from 'which' import { availableCodemods } from '../lib/codemods' +import { getPkgManager, installPackage } from '../lib/handle-package' type StandardVersionSpecifier = 'canary' | 'rc' | 'latest' type CustomVersionSpecifier = string @@ -124,7 +124,7 @@ export async function runUpgrade(): Promise { fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2)) - const packageManager: PackageManager = await getPackageManager(appPackageJson) + const packageManager: PackageManager = getPkgManager(process.cwd()) const nextDependency = `next@${targetNextVersion}` const reactDependencies = [ `react@${targetNextPackageJson.peerDependencies['react']}`, @@ -133,32 +133,11 @@ export async function runUpgrade(): Promise { `@types/react-dom@${targetNextPackageJson.devDependencies['@types/react-dom']}`, ] - let updateCommand - switch (packageManager) { - case 'pnpm': - updateCommand = `pnpm update ${reactDependencies.join(' ')} ${nextDependency}` - break - case 'npm': - // npm will error out if all dependencies are updated at once because the new next - // version depends on the new react and react-dom versions we are installing - updateCommand = `npm install ${reactDependencies.join(' ')} && npm install ${nextDependency}` - break - case 'yarn': - updateCommand = `yarn add ${reactDependencies.join(' ')} ${nextDependency}` - break - case 'bun': - updateCommand = `bun add ${reactDependencies.join(' ')} ${nextDependency}` - break - default: - throw new Error(`Unreachable code`) - } + installPackage([nextDependency, ...reactDependencies], packageManager) console.log( `Upgrading your project to ${chalk.blue('Next.js ' + targetVersionSpecifier)}...\n` ) - execSync(updateCommand, { - stdio: 'inherit', - }) await suggestCodemods(installedNextVersion, targetNextVersion) @@ -225,108 +204,6 @@ async function getVersionSpecifierIdx( return showRc ? 2 : 1 } -async function getPackageManager(_packageJson: any): Promise { - const packageManagers = { - pnpm: 'pnpm-lock.yaml', - yarn: 'yarn.lock', - npm: 'package-lock.json', - bun: 'bun.lockb', - } - - // Recursively looks for either a package.json with a packageManager field or a lock file - function resolvePackageManagerUpwards(dir: string): PackageManager[] { - const packageJsonPath = path.join(dir, 'package.json') - if (fs.existsSync(packageJsonPath)) { - let detectedPackageManagers: PackageManager[] = [] - let packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) - if (packageJson.packageManager) { - // corepack - let packageManagerName = packageJson.packageManager.split( - '@' - )[0] as PackageManager - if (packageManagerName in packageManagers) { - return [packageManagerName] - } - } - for (const [packageManager, lockFile] of Object.entries( - packageManagers - )) { - const lockFilePath = path.join(dir, lockFile) - if (fs.existsSync(lockFilePath)) { - detectedPackageManagers.push(packageManager as PackageManager) - } - } - if (detectedPackageManagers.length !== 0) { - return detectedPackageManagers - } - } - const parentDir = path.dirname(dir) - if (parentDir !== dir) { - return resolvePackageManagerUpwards(parentDir) - } - return [] - } - - let realPath = fs.realpathSync(process.cwd()) - const detectedPackageManagers = resolvePackageManagerUpwards(realPath) - - // Exactly one package manager detected - if (detectedPackageManagers.length === 1) { - return detectedPackageManagers[0] - } - - // Multiple package managers detected - if (detectedPackageManagers.length > 1) { - const responsePackageManager = await prompts( - { - type: 'select', - name: 'packageManager', - message: 'Multiple package managers detected. Which one are you using?', - choices: detectedPackageManagers.map((packageManager) => ({ - title: packageManager, - value: packageManager, - })), - initial: 0, - }, - { - onCancel: () => { - process.exit(0) - }, - } - ) - - console.log( - `${chalk.red('⚠️')} To avoid this next time, keep only one of ${detectedPackageManagers.map((packageManager) => chalk.underline(packageManagers[packageManager])).join(' or ')}\n` - ) - - return responsePackageManager.packageManager as PackageManager - } - - // No package manager detected - let choices = ['pnpm', 'yarn', 'npm', 'bun'] - .filter((packageManager) => which.sync(packageManager, { nothrow: true })) - .map((packageManager) => ({ - title: packageManager, - value: packageManager, - })) - - const responsePackageManager = await prompts( - { - type: 'select', - name: 'packageManager', - message: 'No package manager detected. Which one are you using?', - choices: choices, - }, - { - onCancel: () => { - process.exit(0) - }, - } - ) - - return responsePackageManager.packageManager as PackageManager -} - /* * Heuristics are used to determine whether to Turbopack is enabled or not and * to determine how to update the dev script. diff --git a/packages/next-codemod/lib/handle-package.ts b/packages/next-codemod/lib/handle-package.ts index cc60e06b25981..88c6486ae720b 100644 --- a/packages/next-codemod/lib/handle-package.ts +++ b/packages/next-codemod/lib/handle-package.ts @@ -2,22 +2,50 @@ import fs from 'fs' import path from 'path' import execa from 'execa' -export type PackageManager = 'npm' | 'pnpm' | 'yarn' - -function getPkgManager(baseDir: string): PackageManager { - for (const { lockFile, packageManager } of [ - { lockFile: 'yarn.lock', packageManager: 'yarn' }, - { lockFile: 'pnpm-lock.yaml', packageManager: 'pnpm' }, - { lockFile: 'package-lock.json', packageManager: 'npm' }, - ]) { - if (fs.existsSync(path.join(baseDir, lockFile))) { - return packageManager as PackageManager +export type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' + +export function getPkgManager(baseDir: string): PackageManager { + try { + for (const { lockFile, packageManager } of [ + { lockFile: 'yarn.lock', packageManager: 'yarn' }, + { lockFile: 'pnpm-lock.yaml', packageManager: 'pnpm' }, + { lockFile: 'package-lock.json', packageManager: 'npm' }, + { lockFile: 'bun.lockb', packageManager: 'bun' }, + ]) { + if (fs.existsSync(path.join(baseDir, lockFile))) { + return packageManager as PackageManager + } + } + const userAgent = process.env.npm_config_user_agent + if (userAgent) { + if (userAgent.startsWith('yarn')) { + return 'yarn' + } else if (userAgent.startsWith('pnpm')) { + return 'pnpm' + } } + try { + execa.sync('yarn --version', { stdio: 'ignore' }) + return 'yarn' + } catch { + try { + execa.sync('pnpm --version', { stdio: 'ignore' }) + return 'pnpm' + } catch { + execa.sync('bun --version', { stdio: 'ignore' }) + return 'bun' + } + } + } catch { + return 'npm' } } -export function uninstallPackage(packageToUninstall: string) { - const pkgManager = getPkgManager(process.cwd()) +export function uninstallPackage( + packageToUninstall: string, + pkgManager?: PackageManager +) { + pkgManager ??= getPkgManager(process.cwd()) if (!pkgManager) throw new Error('Failed to find package manager') let command = 'uninstall' @@ -28,10 +56,17 @@ export function uninstallPackage(packageToUninstall: string) { execa.sync(pkgManager, [command, packageToUninstall], { stdio: 'inherit' }) } -export function installPackage(packageToInstall: string) { - const pkgManager = getPkgManager(process.cwd()) +export function installPackage( + packageToInstall: string | string[], + pkgManager?: PackageManager +) { + pkgManager ??= getPkgManager(process.cwd()) if (!pkgManager) throw new Error('Failed to find package manager') + if (Array.isArray(packageToInstall)) { + packageToInstall = packageToInstall.join(' ') + } + try { execa.sync(pkgManager, ['add', packageToInstall], { stdio: 'inherit' }) } catch (error) { diff --git a/packages/next-codemod/package.json b/packages/next-codemod/package.json index 810a749a8738a..053ae363dbd53 100644 --- a/packages/next-codemod/package.json +++ b/packages/next-codemod/package.json @@ -18,8 +18,7 @@ "jscodeshift": "17.0.0", "meow": "7.0.1", "picocolors": "1.0.0", - "prompts": "2.4.2", - "which": "4.0.0" + "prompts": "2.4.2" }, "files": [ "transforms/*.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 514c7138bb33a..9475ef7039d7f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1529,9 +1529,6 @@ importers: prompts: specifier: 2.4.2 version: 2.4.2 - which: - specifier: 4.0.0 - version: 4.0.0 devDependencies: '@types/jscodeshift': specifier: 0.11.0 @@ -9558,10 +9555,6 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - isexe@3.1.1: - resolution: {integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==} - engines: {node: '>=16'} - isobject@3.0.1: resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==} engines: {node: '>=0.10.0'} @@ -14940,11 +14933,6 @@ packages: engines: {node: '>= 8'} hasBin: true - which@4.0.0: - resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==} - engines: {node: ^16.13.0 || >=18.0.0} - hasBin: true - wide-align@1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} @@ -15484,7 +15472,6 @@ snapshots: '@babel/helper-annotate-as-pure': 7.24.7 regexpu-core: 5.3.2 semver: 6.3.1 - optional: true '@babel/helper-define-polyfill-provider@0.4.0(@babel/core@7.22.5)': dependencies: @@ -15503,7 +15490,7 @@ snapshots: '@babel/core': 7.22.5 '@babel/helper-compilation-targets': 7.24.8 '@babel/helper-plugin-utils': 7.24.8 - debug: 4.1.1 + debug: 4.3.7 lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -15853,7 +15840,7 @@ snapshots: '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.22.5)': dependencies: @@ -15863,22 +15850,22 @@ snapshots: '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.19.0 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-flow@7.16.7(@babel/core@7.22.5)': dependencies: @@ -15920,12 +15907,12 @@ snapshots: '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.22.5)': dependencies: @@ -15940,7 +15927,7 @@ snapshots: '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.22.5)': dependencies: @@ -15950,17 +15937,17 @@ snapshots: '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.22.5)': dependencies: @@ -15970,12 +15957,12 @@ snapshots: '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.22.5)': dependencies: @@ -15990,8 +15977,8 @@ snapshots: '@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.22.5)': dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.22.1(@babel/core@7.22.5) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-create-regexp-features-plugin': 7.24.7(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-transform-arrow-functions@7.22.5(@babel/core@7.22.5)': dependencies: @@ -25112,8 +25099,6 @@ snapshots: isexe@2.0.0: {} - isexe@3.1.1: {} - isobject@3.0.1: {} isomorphic-fetch@2.2.1: @@ -31832,10 +31817,6 @@ snapshots: dependencies: isexe: 2.0.0 - which@4.0.0: - dependencies: - isexe: 3.1.1 - wide-align@1.1.5: dependencies: string-width: 4.2.3 From b956d9104bba22cb21395863c67381e72368b967 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 24 Sep 2024 18:51:16 +0900 Subject: [PATCH 17/17] ncc compiled --- .../next/src/compiled/babel-packages/packages-bundle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/next/src/compiled/babel-packages/packages-bundle.js b/packages/next/src/compiled/babel-packages/packages-bundle.js index 0382e1ba3488e..126b75d636b70 100644 --- a/packages/next/src/compiled/babel-packages/packages-bundle.js +++ b/packages/next/src/compiled/babel-packages/packages-bundle.js @@ -1,6 +1,6 @@ (()=>{var e={2569:(e,r,t)=>{"use strict";r.__esModule=true;r.presetEnvSilentDebugHeader=void 0;r.stringifyTargets=stringifyTargets;r.stringifyTargetsMultiline=stringifyTargetsMultiline;var s=t(8522);const a="#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets";r.presetEnvSilentDebugHeader=a;function stringifyTargetsMultiline(e){return JSON.stringify((0,s.prettifyTargets)(e),null,2)}function stringifyTargets(e){return JSON.stringify(e).replace(/,/g,", ").replace(/^\{"/,'{ "').replace(/"\}$/,'" }')}},6429:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=void 0;var s=_interopRequireWildcard(t(8304));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var r=new WeakMap;var t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache(r);if(t&&t.has(e)){return t.get(e)}var s={};var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;if(o&&(o.get||o.set)){Object.defineProperty(s,n,o)}else{s[n]=e[n]}}}s.default=e;if(t){t.set(e,s)}return s}const{types:a}=s.default||s;class ImportsCache{constructor(e){this._imports=new WeakMap;this._anonymousImports=new WeakMap;this._lastImports=new WeakMap;this._resolver=e}storeAnonymous(e,r,t){const s=this._normalizeKey(e,r);const n=this._ensure(this._anonymousImports,e,Set);if(n.has(s))return;const o=t(e.node.sourceType==="script",a.stringLiteral(this._resolver(r)));n.add(s);this._injectImport(e,o)}storeNamed(e,r,t,s){const n=this._normalizeKey(e,r,t);const o=this._ensure(this._imports,e,Map);if(!o.has(n)){const{node:i,name:l}=s(e.node.sourceType==="script",a.stringLiteral(this._resolver(r)),a.identifier(t));o.set(n,l);this._injectImport(e,i)}return a.identifier(o.get(n))}_injectImport(e,r){const t=this._lastImports.get(e);let s;if(t&&t.node&&t.parent===e.node&&t.container===e.node.body){s=t.insertAfter(r)}else{s=e.unshiftContainer("body",r)}const a=s[s.length-1];this._lastImports.set(e,a)}_ensure(e,r,t){let s=e.get(r);if(!s){s=new t;e.set(r,s)}return s}_normalizeKey(e,r,t=""){const{sourceType:s}=e.node;return`${t&&s}::${r}::${t}`}}r["default"]=ImportsCache},4992:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=definePolyfillProvider;var s=t(8863);var a=_interopRequireWildcard(t(8522));var n=t(3970);var o=_interopRequireDefault(t(6429));var i=t(2569);var l=t(9667);var c=_interopRequireWildcard(t(264));var d=_interopRequireWildcard(t(9275));var u=_interopRequireDefault(t(8926));const p=["method","targets","ignoreBrowserslistConfig","configPath","debug","shouldInjectPolyfill","absoluteImports"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var r=new WeakMap;var t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache(r);if(t&&t.has(e)){return t.get(e)}var s={};var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;if(o&&(o.get||o.set)){Object.defineProperty(s,n,o)}else{s[n]=e[n]}}}s.default=e;if(t){t.set(e,s)}return s}function _objectWithoutPropertiesLoose(e,r){if(e==null)return{};var t={};var s=Object.keys(e);var a,n;for(n=0;n=0)continue;t[a]=e[a]}return t}const f=a.default.default||a.default;function resolveOptions(e,r){const{method:t,targets:s,ignoreBrowserslistConfig:a,configPath:n,debug:o,shouldInjectPolyfill:i,absoluteImports:l}=e,c=_objectWithoutPropertiesLoose(e,p);if(isEmpty(e)){throw new Error(`This plugin requires options, for example:\n {\n "plugins": [\n ["", { method: "usage-pure" }]\n ]\n }\n\nSee more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`)}let d;if(t==="usage-global")d="usageGlobal";else if(t==="entry-global")d="entryGlobal";else if(t==="usage-pure")d="usagePure";else if(typeof t!=="string"){throw new Error(".method must be a string")}else{throw new Error(`.method must be one of "entry-global", "usage-global"`+` or "usage-pure" (received ${JSON.stringify(t)})`)}if(typeof i==="function"){if(e.include||e.exclude){throw new Error(`.include and .exclude are not supported when using the`+` .shouldInjectPolyfill function.`)}}else if(i!=null){throw new Error(`.shouldInjectPolyfill must be a function, or undefined`+` (received ${JSON.stringify(i)})`)}if(l!=null&&typeof l!=="boolean"&&typeof l!=="string"){throw new Error(`.absoluteImports must be a boolean, a string, or undefined`+` (received ${JSON.stringify(l)})`)}let u;if(s||n||a){const e=typeof s==="string"||Array.isArray(s)?{browsers:s}:s;u=f(e,{ignoreBrowserslistConfig:a,configPath:n})}else{u=r.targets()}return{method:t,methodName:d,targets:u,absoluteImports:l!=null?l:false,shouldInjectPolyfill:i,debug:!!o,providerOptions:c}}function instantiateProvider(e,r,t,s,i,c){const{method:p,methodName:f,targets:y,debug:g,shouldInjectPolyfill:h,providerOptions:b,absoluteImports:x}=resolveOptions(r,c);const v=(0,n.createUtilsGetter)(new o.default((e=>d.resolve(s,e,x))));let j,w;let E;let _;let S;const k=new Map;const C={babel:c,getUtils:v,method:r.method,targets:y,createMetaResolver:u.default,shouldInjectPolyfill(r){if(_===undefined){throw new Error(`Internal error in the ${e.name} provider: `+`shouldInjectPolyfill() can't be called during initialization.`)}if(!_.has(r)){console.warn(`Internal error in the ${D} provider: `+`unknown polyfill "${r}".`)}if(S&&!S(r))return false;let t=(0,a.isRequired)(r,y,{compatData:E,includes:j,excludes:w});if(h){t=h(r,t);if(typeof t!=="boolean"){throw new Error(`.shouldInjectPolyfill must return a boolean.`)}}return t},debug(e){var r,t;i().found=true;if(!g||!e)return;if(i().polyfills.has(D))return;i().polyfills.add(e);(t=(r=i()).polyfillsSupport)!=null?t:r.polyfillsSupport=E},assertDependency(e,r="*"){if(t===false)return;if(x){return}const a=r==="*"?e:`${e}@^${r}`;const n=t.all?false:mapGetOr(k,`${e} :: ${s}`,(()=>d.has(s,e)));if(!n){i().missingDeps.add(a)}}};const P=e(C,b,s);const D=P.name||e.name;if(typeof P[f]!=="function"){throw new Error(`The "${D}" provider doesn't support the "${p}" polyfilling method.`)}if(Array.isArray(P.polyfills)){_=new Set(P.polyfills);S=P.filterPolyfills}else if(P.polyfills){_=new Set(Object.keys(P.polyfills));E=P.polyfills;S=P.filterPolyfills}else{_=new Set}({include:j,exclude:w}=(0,l.validateIncludeExclude)(D,_,b.include||[],b.exclude||[]));return{debug:g,method:p,targets:y,provider:P,providerName:D,callProvider(e,r){const t=v(r);P[f](e,t,r)}}}function definePolyfillProvider(e){return(0,s.declare)(((r,t,s)=>{r.assertVersion(7);const{traverse:n}=r;let o;const u=(0,l.applyMissingDependenciesDefaults)(t,r);const{debug:p,method:f,targets:y,provider:g,providerName:h,callProvider:b}=instantiateProvider(e,t,u,s,(()=>o),r);const x=f==="entry-global"?c.entry:c.usage;const v=g.visitor?n.visitors.merge([x(b),g.visitor]):x(b);if(p&&p!==i.presetEnvSilentDebugHeader){console.log(`${h}: \`DEBUG\` option`);console.log(`\nUsing targets: ${(0,i.stringifyTargetsMultiline)(y)}`);console.log(`\nUsing polyfills with \`${f}\` method:`)}const{runtimeName:j}=g;return{name:"inject-polyfills",visitor:v,pre(e){var r;if(j){if(e.get("runtimeHelpersModuleName")&&e.get("runtimeHelpersModuleName")!==j){console.warn(`Two different polyfill providers`+` (${e.get("runtimeHelpersModuleProvider")}`+` and ${h}) are trying to define two`+` conflicting @babel/runtime alternatives:`+` ${e.get("runtimeHelpersModuleName")} and ${j}.`+` The second one will be ignored.`)}else{e.set("runtimeHelpersModuleName",j);e.set("runtimeHelpersModuleProvider",h)}}o={polyfills:new Set,polyfillsSupport:undefined,found:false,providers:new Set,missingDeps:new Set};(r=g.pre)==null?void 0:r.apply(this,arguments)},post(){var e;(e=g.post)==null?void 0:e.apply(this,arguments);if(u!==false){if(u.log==="per-file"){d.logMissing(o.missingDeps)}else{d.laterLogMissing(o.missingDeps)}}if(!p)return;if(this.filename)console.log(`\n[${this.filename}]`);if(o.polyfills.size===0){console.log(f==="entry-global"?o.found?`Based on your targets, the ${h} polyfill did not add any polyfill.`:`The entry point for the ${h} polyfill has not been found.`:`Based on your code and targets, the ${h} polyfill did not add any polyfill.`);return}if(f==="entry-global"){console.log(`The ${h} polyfill entry has been replaced with `+`the following polyfills:`)}else{console.log(`The ${h} polyfill added the following polyfills:`)}for(const e of o.polyfills){var r;if((r=o.polyfillsSupport)!=null&&r[e]){const r=(0,a.getInclusionReasons)(e,y,o.polyfillsSupport);const t=JSON.stringify(r).replace(/,/g,", ").replace(/^\{"/,'{ "').replace(/"\}$/,'" }');console.log(` ${e} ${t}`)}else{console.log(` ${e}`)}}}}}))}function mapGetOr(e,r,t){let s=e.get(r);if(s===undefined){s=t();e.set(r,s)}return s}function isEmpty(e){return Object.keys(e).length===0}},8926:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=createMetaResolver;var s=t(3970);const a=new Set(["global","globalThis","self","window"]);function createMetaResolver(e){const{static:r,instance:t,global:n}=e;return e=>{if(e.kind==="global"&&n&&(0,s.has)(n,e.name)){return{kind:"global",desc:n[e.name],name:e.name}}if(e.kind==="property"||e.kind==="in"){const{placement:o,object:i,key:l}=e;if(i&&o==="static"){if(n&&a.has(i)&&(0,s.has)(n,l)){return{kind:"global",desc:n[l],name:l}}if(r&&(0,s.has)(r,i)&&(0,s.has)(r[i],l)){return{kind:"static",desc:r[i][l],name:`${i}$${l}`}}}if(t&&(0,s.has)(t,l)){return{kind:"instance",desc:t[l],name:`${l}`}}}}}},9275:(e,r,t)=>{"use strict";r.__esModule=true;r.has=has;r.laterLogMissing=laterLogMissing;r.logMissing=logMissing;r.resolve=resolve;var s=_interopRequireDefault(t(1017));var a=_interopRequireDefault(t(3079));var n=_interopRequireDefault(t(5066));var o=t(8188);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=parseFloat(process.versions.node)>=8.9;function myResolve(e,r){if(i){return require.resolve(e,{paths:[r]}).replace(/\\/g,"/")}else{return n.default.sync(e,{basedir:r}).replace(/\\/g,"/")}}function resolve(e,r,t){if(t===false)return r;let a=e;if(typeof t==="string"){a=s.default.resolve(a,t)}try{return myResolve(r,a)}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t;throw Object.assign(new Error(`Failed to resolve "${r}" relative to "${e}"`),{code:"BABEL_POLYFILL_NOT_FOUND",polyfill:r,dirname:e})}}function has(e,r){try{myResolve(r,e);return true}catch(e){return false}}function logMissing(e){if(e.size===0)return;const r=Array.from(e).sort().join(" ");console.warn("\nSome polyfills have been added but are not present in your dependencies.\n"+"Please run one of the following commands:\n"+`\tnpm install --save ${r}\n`+`\tyarn add ${r}\n`);process.exitCode=1}let l=new Set;const c=(0,a.default)((()=>{logMissing(l);l=new Set}),100);function laterLogMissing(e){if(e.size===0)return;e.forEach((e=>l.add(e)));c()}},9667:(e,r,t)=>{"use strict";r.__esModule=true;r.applyMissingDependenciesDefaults=applyMissingDependenciesDefaults;r.validateIncludeExclude=validateIncludeExclude;var s=t(3970);function patternToRegExp(e){if(e instanceof RegExp)return e;try{return new RegExp(`^${e}$`)}catch(e){return null}}function buildUnusedError(e,r){if(!r.length)return"";return` - The following "${e}" patterns didn't match any polyfill:\n`+r.map((e=>` ${String(e)}\n`)).join("")}function buldDuplicatesError(e){if(!e.size)return"";return` - The following polyfills were matched both by "include" and "exclude" patterns:\n`+Array.from(e,(e=>` ${e}\n`)).join("")}function validateIncludeExclude(e,r,t,a){let n;const filter=e=>{const t=patternToRegExp(e);if(!t)return false;let s=false;for(const e of r){if(t.test(e)){s=true;n.add(e)}}return!s};const o=n=new Set;const i=Array.from(t).filter(filter);const l=n=new Set;const c=Array.from(a).filter(filter);const d=(0,s.intersection)(o,l);if(d.size>0||i.length>0||c.length>0){throw new Error(`Error while validating the "${e}" provider options:\n`+buildUnusedError("include",i)+buildUnusedError("exclude",c)+buldDuplicatesError(d))}return{include:o,exclude:l}}function applyMissingDependenciesDefaults(e,r){const{missingDependencies:t={}}=e;if(t===false)return false;const s=r.caller((e=>e==null?void 0:e.name));const{log:a="deferred",inject:n=(s==="rollup-plugin-babel"?"throw":"import"),all:o=false}=t;return{log:a,inject:n,all:o}}},3970:(e,r,t)=>{"use strict";r.__esModule=true;r.createUtilsGetter=createUtilsGetter;r.getImportSource=getImportSource;r.getRequireSource=getRequireSource;r.has=has;r.intersection=intersection;r.resolveKey=resolveKey;r.resolveSource=resolveSource;var s=_interopRequireWildcard(t(8304));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var r=new WeakMap;var t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache(r);if(t&&t.has(e)){return t.get(e)}var s={};var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;if(o&&(o.get||o.set)){Object.defineProperty(s,n,o)}else{s[n]=e[n]}}}s.default=e;if(t){t.set(e,s)}return s}const{types:a,template:n}=s.default||s;function intersection(e,r){const t=new Set;e.forEach((e=>r.has(e)&&t.add(e)));return t}function has(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function getType(e){return Object.prototype.toString.call(e).slice(8,-1)}function resolveId(e){if(e.isIdentifier()&&!e.scope.hasBinding(e.node.name,true)){return e.node.name}const{deopt:r}=e.evaluate();if(r&&r.isIdentifier()){return r.node.name}}function resolveKey(e,r=false){const{scope:t}=e;if(e.isStringLiteral())return e.node.value;const s=e.isIdentifier();if(s&&!(r||e.parent.computed)){return e.node.name}if(r&&e.isMemberExpression()&&e.get("object").isIdentifier({name:"Symbol"})&&!t.hasBinding("Symbol",true)){const r=resolveKey(e.get("property"),e.node.computed);if(r)return"Symbol."+r}if(!s||t.hasBinding(e.node.name,true)){const{value:r}=e.evaluate();if(typeof r==="string")return r}}function resolveSource(e){if(e.isMemberExpression()&&e.get("property").isIdentifier({name:"prototype"})){const r=resolveId(e.get("object"));if(r){return{id:r,placement:"prototype"}}return{id:null,placement:null}}const r=resolveId(e);if(r){return{id:r,placement:"static"}}const{value:t}=e.evaluate();if(t!==undefined){return{id:getType(t),placement:"prototype"}}else if(e.isRegExpLiteral()){return{id:"RegExp",placement:"prototype"}}else if(e.isFunction()){return{id:"Function",placement:"prototype"}}return{id:null,placement:null}}function getImportSource({node:e}){if(e.specifiers.length===0)return e.source.value}function getRequireSource({node:e}){if(!a.isExpressionStatement(e))return;const{expression:r}=e;if(a.isCallExpression(r)&&a.isIdentifier(r.callee)&&r.callee.name==="require"&&r.arguments.length===1&&a.isStringLiteral(r.arguments[0])){return r.arguments[0].value}}function hoist(e){e._blockHoist=3;return e}function createUtilsGetter(e){return r=>{const t=r.findParent((e=>e.isProgram()));return{injectGlobalImport(r){e.storeAnonymous(t,r,((e,r)=>e?n.statement.ast`require(${r})`:a.importDeclaration([],r)))},injectNamedImport(r,s,o=s){return e.storeNamed(t,r,s,((e,r,s)=>{const i=t.scope.generateUidIdentifier(o);return{node:e?hoist(n.statement.ast` var ${i} = require(${r}).${s} - `):a.importDeclaration([a.importSpecifier(i,s)],r),name:i.name}}))},injectDefaultImport(r,s=r){return e.storeNamed(t,r,"default",((e,r)=>{const o=t.scope.generateUidIdentifier(s);return{node:e?hoist(n.statement.ast`var ${o} = require(${r})`):a.importDeclaration([a.importDefaultSpecifier(o)],r),name:o.name}}))}}}}},1919:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=void 0;var s=t(3970);var _default=e=>({ImportDeclaration(r){const t=(0,s.getImportSource)(r);if(!t)return;e({kind:"import",source:t},r)},Program(r){r.get("body").forEach((r=>{const t=(0,s.getRequireSource)(r);if(!t)return;e({kind:"import",source:t},r)}))}});r["default"]=_default},264:(e,r,t)=>{"use strict";r.__esModule=true;r.usage=r.entry=void 0;var s=_interopRequireDefault(t(8850));r.usage=s.default;var a=_interopRequireDefault(t(1919));r.entry=a.default;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8850:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=void 0;var s=t(3970);var _default=e=>{function property(r,t,s,a){return e({kind:"property",object:r,key:t,placement:s},a)}return{ReferencedIdentifier(r){const{node:{name:t},scope:s}=r;if(s.getBindingIdentifier(t))return;e({kind:"global",name:t},r)},MemberExpression(e){const r=(0,s.resolveKey)(e.get("property"),e.node.computed);if(!r||r==="prototype")return;const t=e.get("object");if(t.isIdentifier()){const e=t.scope.getBinding(t.node.name);if(e&&e.path.isImportNamespaceSpecifier())return}const a=(0,s.resolveSource)(t);return property(a.id,r,a.placement,e)},ObjectPattern(e){const{parentPath:r,parent:t}=e;let a;if(r.isVariableDeclarator()){a=r.get("init")}else if(r.isAssignmentExpression()){a=r.get("right")}else if(r.isFunction()){const s=r.parentPath;if(s.isCallExpression()||s.isNewExpression()){if(s.node.callee===t){a=s.get("arguments")[e.key]}}}let n=null;let o=null;if(a)({id:n,placement:o}=(0,s.resolveSource)(a));for(const r of e.get("properties")){if(r.isObjectProperty()){const e=(0,s.resolveKey)(r.get("key"));if(e)property(n,e,o,r)}}},BinaryExpression(r){if(r.node.operator!=="in")return;const t=(0,s.resolveSource)(r.get("right"));const a=(0,s.resolveKey)(r.get("left"),true);if(!a)return;e({kind:"in",object:t.id,key:a,placement:t.placement},r)}}};r["default"]=_default},3975:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-async-generators",manipulateOptions(e,r){r.plugins.push("asyncGenerators")}}}));r["default"]=a},799:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6454);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-bigint",manipulateOptions(e,r){r.plugins.push("bigInt")}}}));r["default"]=a},3412:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-class-properties",manipulateOptions(e,r){r.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}}));r["default"]=a},5491:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-class-static-block",manipulateOptions(e,r){r.plugins.push("classStaticBlock")}}}));r["default"]=a},7802:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6454);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-dynamic-import",manipulateOptions(e,r){r.plugins.push("dynamicImport")}}}));r["default"]=a},301:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-export-namespace-from",manipulateOptions(e,r){r.plugins.push("exportNamespaceFrom")}}}));r["default"]=a},8845:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-import-meta",manipulateOptions(e,r){r.plugins.push("importMeta")}}}));r["default"]=a},915:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-json-strings",manipulateOptions(e,r){r.plugins.push("jsonStrings")}}}));r["default"]=a},647:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-logical-assignment-operators",manipulateOptions(e,r){r.plugins.push("logicalAssignment")}}}));r["default"]=a},7779:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-nullish-coalescing-operator",manipulateOptions(e,r){r.plugins.push("nullishCoalescingOperator")}}}));r["default"]=a},4100:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-numeric-separator",manipulateOptions(e,r){r.plugins.push("numericSeparator")}}}));r["default"]=a},3322:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-object-rest-spread",manipulateOptions(e,r){r.plugins.push("objectRestSpread")}}}));r["default"]=a},3720:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-optional-catch-binding",manipulateOptions(e,r){r.plugins.push("optionalCatchBinding")}}}));r["default"]=a},9430:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-optional-chaining",manipulateOptions(e,r){r.plugins.push("optionalChaining")}}}));r["default"]=a},6775:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-private-property-in-object",manipulateOptions(e,r){r.plugins.push("privateIn")}}}));r["default"]=a},1712:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-top-level-await",manipulateOptions(e,r){r.plugins.push("topLevelAwait")}}}));r["default"]=a},8256:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;const t={allowInsertArrow:false,specCompliant:false};var _default=({types:e})=>({name:"transform-async-arrows-in-class",visitor:{ArrowFunctionExpression(r){if(r.node.async&&r.findParent(e.isClassMethod)){r.arrowFunctionToExpression(t)}}}});r["default"]=_default;e.exports=r.default},4516:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;var _default=({types:e})=>{const isArrowParent=r=>r.parentKey==="params"&&r.parentPath&&e.isArrowFunctionExpression(r.parentPath);return{name:"transform-edge-default-parameters",visitor:{AssignmentPattern(e){const r=e.find(isArrowParent);if(r&&e.parent.shorthand){e.parent.shorthand=false;(e.parent.extra||{}).shorthand=false;e.scope.rename(e.parent.key.name)}}}}};r["default"]=_default;e.exports=r.default},3693:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;var _default=({types:e})=>({name:"transform-edge-function-name",visitor:{FunctionExpression:{exit(r){if(!r.node.id&&e.isIdentifier(r.parent.id)){const t=e.cloneNode(r.parent.id);const s=r.scope.getBinding(t.name);if(s==null?void 0:s.constantViolations.length){r.scope.rename(t.name)}r.node.id=t}}}}});r["default"]=_default;e.exports=r.default},3032:(e,r)=>{"use strict";r.__esModule=true;r["default"]=_default;function _default({types:e}){return{name:"transform-safari-block-shadowing",visitor:{VariableDeclarator(r){const t=r.parent.kind;if(t!=="let"&&t!=="const")return;const s=r.scope.block;if(e.isFunction(s)||e.isProgram(s))return;const a=e.getOuterBindingIdentifiers(r.node.id);for(const t of Object.keys(a)){let s=r.scope;if(!s.hasOwnBinding(t))continue;while(s=s.parent){if(s.hasOwnBinding(t)){r.scope.rename(t);break}if(e.isFunction(s.block)||e.isProgram(s.block)){break}}}}}}}e.exports=r.default},449:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;function handle(e){if(!e.isVariableDeclaration())return;const r=e.getFunctionParent();const{name:t}=e.node.declarations[0].id;if(r&&r.scope.hasOwnBinding(t)&&r.scope.getOwnBinding(t).kind==="param"){e.scope.rename(t)}}var _default=()=>({name:"transform-safari-for-shadowing",visitor:{ForXStatement(e){handle(e.get("left"))},ForStatement(e){handle(e.get("init"))}}});r["default"]=_default;e.exports=r.default},3057:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;var _default=({types:e})=>({name:"transform-tagged-template-caching",visitor:{TaggedTemplateExpression(r,t){let s=t.get("processed");if(!s){s=new WeakSet;t.set("processed",s)}if(s.has(r.node))return r.skip();const a=r.node.quasi.expressions;let n=t.get("identity");if(!n){n=r.scope.getProgramParent().generateDeclaredUidIdentifier("_");t.set("identity",n);const s=r.scope.getBinding(n.name);s.path.get("init").replaceWith(e.arrowFunctionExpression([e.identifier("t")],e.identifier("t")))}const o=e.taggedTemplateExpression(e.cloneNode(n),e.templateLiteral(r.node.quasi.quasis,a.map((()=>e.numericLiteral(0)))));s.add(o);const i=r.scope.getProgramParent().generateDeclaredUidIdentifier("t");r.scope.getBinding(i.name).path.parent.kind="let";const l=e.logicalExpression("||",i,e.assignmentExpression("=",e.cloneNode(i),o));const c=e.callExpression(r.node.tag,[l,...a]);r.replaceWith(c)}}});r["default"]=_default;e.exports=r.default},8684:function(e,r,t){e=t.nmd(e); + `):a.importDeclaration([a.importSpecifier(i,s)],r),name:i.name}}))},injectDefaultImport(r,s=r){return e.storeNamed(t,r,"default",((e,r)=>{const o=t.scope.generateUidIdentifier(s);return{node:e?hoist(n.statement.ast`var ${o} = require(${r})`):a.importDeclaration([a.importDefaultSpecifier(o)],r),name:o.name}}))}}}}},1919:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=void 0;var s=t(3970);var _default=e=>({ImportDeclaration(r){const t=(0,s.getImportSource)(r);if(!t)return;e({kind:"import",source:t},r)},Program(r){r.get("body").forEach((r=>{const t=(0,s.getRequireSource)(r);if(!t)return;e({kind:"import",source:t},r)}))}});r["default"]=_default},264:(e,r,t)=>{"use strict";r.__esModule=true;r.usage=r.entry=void 0;var s=_interopRequireDefault(t(8850));r.usage=s.default;var a=_interopRequireDefault(t(1919));r.entry=a.default;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8850:(e,r,t)=>{"use strict";r.__esModule=true;r["default"]=void 0;var s=t(3970);var _default=e=>{function property(r,t,s,a){return e({kind:"property",object:r,key:t,placement:s},a)}return{ReferencedIdentifier(r){const{node:{name:t},scope:s}=r;if(s.getBindingIdentifier(t))return;e({kind:"global",name:t},r)},MemberExpression(e){const r=(0,s.resolveKey)(e.get("property"),e.node.computed);if(!r||r==="prototype")return;const t=e.get("object");if(t.isIdentifier()){const e=t.scope.getBinding(t.node.name);if(e&&e.path.isImportNamespaceSpecifier())return}const a=(0,s.resolveSource)(t);return property(a.id,r,a.placement,e)},ObjectPattern(e){const{parentPath:r,parent:t}=e;let a;if(r.isVariableDeclarator()){a=r.get("init")}else if(r.isAssignmentExpression()){a=r.get("right")}else if(r.isFunction()){const s=r.parentPath;if(s.isCallExpression()||s.isNewExpression()){if(s.node.callee===t){a=s.get("arguments")[e.key]}}}let n=null;let o=null;if(a)({id:n,placement:o}=(0,s.resolveSource)(a));for(const r of e.get("properties")){if(r.isObjectProperty()){const e=(0,s.resolveKey)(r.get("key"));if(e)property(n,e,o,r)}}},BinaryExpression(r){if(r.node.operator!=="in")return;const t=(0,s.resolveSource)(r.get("right"));const a=(0,s.resolveKey)(r.get("left"),true);if(!a)return;e({kind:"in",object:t.id,key:a,placement:t.placement},r)}}};r["default"]=_default},3975:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-async-generators",manipulateOptions(e,r){r.plugins.push("asyncGenerators")}}}));r["default"]=a},799:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6454);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-bigint",manipulateOptions(e,r){r.plugins.push("bigInt")}}}));r["default"]=a},3412:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-class-properties",manipulateOptions(e,r){r.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}}));r["default"]=a},5491:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-class-static-block",manipulateOptions(e,r){r.plugins.push("classStaticBlock")}}}));r["default"]=a},7802:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-dynamic-import",manipulateOptions(e,r){r.plugins.push("dynamicImport")}}}));r["default"]=a},301:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-export-namespace-from",manipulateOptions(e,r){r.plugins.push("exportNamespaceFrom")}}}));r["default"]=a},8845:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-import-meta",manipulateOptions(e,r){r.plugins.push("importMeta")}}}));r["default"]=a},915:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-json-strings",manipulateOptions(e,r){r.plugins.push("jsonStrings")}}}));r["default"]=a},647:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-logical-assignment-operators",manipulateOptions(e,r){r.plugins.push("logicalAssignment")}}}));r["default"]=a},7779:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-nullish-coalescing-operator",manipulateOptions(e,r){r.plugins.push("nullishCoalescingOperator")}}}));r["default"]=a},4100:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-numeric-separator",manipulateOptions(e,r){r.plugins.push("numericSeparator")}}}));r["default"]=a},3322:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-object-rest-spread",manipulateOptions(e,r){r.plugins.push("objectRestSpread")}}}));r["default"]=a},3720:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-optional-catch-binding",manipulateOptions(e,r){r.plugins.push("optionalCatchBinding")}}}));r["default"]=a},9430:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-optional-chaining",manipulateOptions(e,r){r.plugins.push("optionalChaining")}}}));r["default"]=a},6775:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-private-property-in-object",manipulateOptions(e,r){r.plugins.push("privateIn")}}}));r["default"]=a},1712:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-top-level-await",manipulateOptions(e,r){r.plugins.push("topLevelAwait")}}}));r["default"]=a},8256:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;const t={allowInsertArrow:false,specCompliant:false};var _default=({types:e})=>({name:"transform-async-arrows-in-class",visitor:{ArrowFunctionExpression(r){if(r.node.async&&r.findParent(e.isClassMethod)){r.arrowFunctionToExpression(t)}}}});r["default"]=_default;e.exports=r.default},4516:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;var _default=({types:e})=>{const isArrowParent=r=>r.parentKey==="params"&&r.parentPath&&e.isArrowFunctionExpression(r.parentPath);return{name:"transform-edge-default-parameters",visitor:{AssignmentPattern(e){const r=e.find(isArrowParent);if(r&&e.parent.shorthand){e.parent.shorthand=false;(e.parent.extra||{}).shorthand=false;e.scope.rename(e.parent.key.name)}}}}};r["default"]=_default;e.exports=r.default},3693:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;var _default=({types:e})=>({name:"transform-edge-function-name",visitor:{FunctionExpression:{exit(r){if(!r.node.id&&e.isIdentifier(r.parent.id)){const t=e.cloneNode(r.parent.id);const s=r.scope.getBinding(t.name);if(s==null?void 0:s.constantViolations.length){r.scope.rename(t.name)}r.node.id=t}}}}});r["default"]=_default;e.exports=r.default},3032:(e,r)=>{"use strict";r.__esModule=true;r["default"]=_default;function _default({types:e}){return{name:"transform-safari-block-shadowing",visitor:{VariableDeclarator(r){const t=r.parent.kind;if(t!=="let"&&t!=="const")return;const s=r.scope.block;if(e.isFunction(s)||e.isProgram(s))return;const a=e.getOuterBindingIdentifiers(r.node.id);for(const t of Object.keys(a)){let s=r.scope;if(!s.hasOwnBinding(t))continue;while(s=s.parent){if(s.hasOwnBinding(t)){r.scope.rename(t);break}if(e.isFunction(s.block)||e.isProgram(s.block)){break}}}}}}}e.exports=r.default},449:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;function handle(e){if(!e.isVariableDeclaration())return;const r=e.getFunctionParent();const{name:t}=e.node.declarations[0].id;if(r&&r.scope.hasOwnBinding(t)&&r.scope.getOwnBinding(t).kind==="param"){e.scope.rename(t)}}var _default=()=>({name:"transform-safari-for-shadowing",visitor:{ForXStatement(e){handle(e.get("left"))},ForStatement(e){handle(e.get("init"))}}});r["default"]=_default;e.exports=r.default},3057:(e,r)=>{"use strict";r.__esModule=true;r["default"]=void 0;var _default=({types:e})=>({name:"transform-tagged-template-caching",visitor:{TaggedTemplateExpression(r,t){let s=t.get("processed");if(!s){s=new WeakSet;t.set("processed",s)}if(s.has(r.node))return r.skip();const a=r.node.quasi.expressions;let n=t.get("identity");if(!n){n=r.scope.getProgramParent().generateDeclaredUidIdentifier("_");t.set("identity",n);const s=r.scope.getBinding(n.name);s.path.get("init").replaceWith(e.arrowFunctionExpression([e.identifier("t")],e.identifier("t")))}const o=e.taggedTemplateExpression(e.cloneNode(n),e.templateLiteral(r.node.quasi.quasis,a.map((()=>e.numericLiteral(0)))));s.add(o);const i=r.scope.getProgramParent().generateDeclaredUidIdentifier("t");r.scope.getBinding(i.name).path.parent.kind="let";const l=e.logicalExpression("||",i,e.assignmentExpression("=",e.cloneNode(i),o));const c=e.callExpression(r.node.tag,[l,...a]);r.replaceWith(c)}}});r["default"]=_default;e.exports=r.default},8684:function(e,r,t){e=t.nmd(e); /*! * regjsgen 0.5.2 * Copyright 2014-2020 Benjamin Tan @@ -194,7 +194,7 @@ // writable is false by default value: ${i.name} }); - `,r)}function buildPrivateMethodDeclaration(e,r,t=false){const a=r.get(e.node.key.id.name);const{id:n,methodId:o,getId:i,setId:l,getterDeclared:c,setterDeclared:d,static:u}=a;const{params:p,body:f,generator:y,async:g}=e.node;const h=i&&!c&&p.length===0;const b=l&&!d&&p.length>0;let x=o;if(h){r.set(e.node.key.id.name,Object.assign({},a,{getterDeclared:true}));x=i}else if(b){r.set(e.node.key.id.name,Object.assign({},a,{setterDeclared:true}));x=l}else if(u&&!t){x=n}return inheritPropComments(s.types.functionDeclaration(s.types.cloneNode(x),p,f,y,g),e)}const g=s.traverse.visitors.merge([{ThisExpression(e,r){const t=e.findParent((e=>!(0,c.isTransparentExprWrapper)(e.node)));if(s.types.isUnaryExpression(t.node,{operator:"delete"})){e.parentPath.replaceWith(s.types.booleanLiteral(true));return}r.needsClassRef=true;e.replaceWith(s.types.cloneNode(r.classRef))},MetaProperty(e){const r=e.get("meta");const t=e.get("property");const{scope:s}=e;if(r.isIdentifier({name:"new"})&&t.isIdentifier({name:"target"})){e.replaceWith(s.buildUndefinedNode())}}},n.default]);const h={ReferencedIdentifier(e,r){if(e.scope.bindingIdentifierEquals(e.node.name,r.innerBinding)){r.needsClassRef=true;e.node.name=r.classRef.name}}};function replaceThisContext(e,r,t,n,o,i,l){var c;const d={classRef:r,needsClassRef:false,innerBinding:l};const u=new a.default({methodPath:e,constantSuper:i,file:n,refToPreserve:r,getSuperRef:t,getObjectRef(){d.needsClassRef=true;return s.types.isStaticBlock!=null&&s.types.isStaticBlock(e.node)||e.node.static?r:s.types.memberExpression(r,s.types.identifier("prototype"))}});u.replace();if(o||e.isProperty()){e.traverse(g,d)}if(l!=null&&(c=d.classRef)!=null&&c.name&&d.classRef.name!==(l==null?void 0:l.name)){e.traverse(h,d)}return d.needsClassRef}function isNameOrLength({key:e,computed:r}){if(e.type==="Identifier"){return!r&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,r){s.types.inheritLeadingComments(e,r.node);s.types.inheritInnerComments(e,r.node);return e}function buildFieldsInitNodes(e,r,t,a,n,o,i,l,c){let u=false;let p;const f=[];const y=[];const g=[];const h=s.types.isIdentifier(r)?()=>r:()=>{var e;(e=p)!=null?e:p=t[0].scope.generateUidIdentifierBasedOnNode(r);return p};for(const r of t){r.isClassProperty()&&d.assertFieldTransformed(r);const t=!(s.types.isStaticBlock!=null&&s.types.isStaticBlock(r.node))&&r.node.static;const p=!t;const b=r.isPrivate();const x=!b;const v=r.isProperty();const j=!v;const w=r.isStaticBlock==null?void 0:r.isStaticBlock();if(t||j&&b||w){const t=replaceThisContext(r,e,h,n,w,l,c);u=u||t}switch(true){case w:{const e=r.node.body;if(e.length===1&&s.types.isExpressionStatement(e[0])){f.push(inheritPropComments(e[0],r))}else{f.push(s.types.inheritsComments(s.template.statement.ast`(() => { ${e} })()`,r.node))}break}case t&&b&&v&&i:u=true;f.push(buildPrivateFieldInitLoose(s.types.cloneNode(e),r,a));break;case t&&b&&v&&!i:u=true;f.push(buildPrivateStaticFieldInitSpec(r,a));break;case t&&x&&v&&o:if(!isNameOrLength(r.node)){u=true;f.push(buildPublicFieldInitLoose(s.types.cloneNode(e),r));break}case t&&x&&v&&!o:u=true;f.push(buildPublicFieldInitSpec(s.types.cloneNode(e),r,n));break;case p&&b&&v&&i:y.push(buildPrivateFieldInitLoose(s.types.thisExpression(),r,a));break;case p&&b&&v&&!i:y.push(buildPrivateInstanceFieldInitSpec(s.types.thisExpression(),r,a,n));break;case p&&b&&j&&i:y.unshift(buildPrivateMethodInitLoose(s.types.thisExpression(),r,a));g.push(buildPrivateMethodDeclaration(r,a,i));break;case p&&b&&j&&!i:y.unshift(buildPrivateInstanceMethodInitSpec(s.types.thisExpression(),r,a,n));g.push(buildPrivateMethodDeclaration(r,a,i));break;case t&&b&&j&&!i:u=true;f.unshift(buildPrivateStaticFieldInitSpec(r,a));g.push(buildPrivateMethodDeclaration(r,a,i));break;case t&&b&&j&&i:u=true;f.unshift(buildPrivateStaticMethodInitLoose(s.types.cloneNode(e),r,n,a));g.push(buildPrivateMethodDeclaration(r,a,i));break;case p&&x&&v&&o:y.push(buildPublicFieldInitLoose(s.types.thisExpression(),r));break;case p&&x&&v&&!o:y.push(buildPublicFieldInitSpec(s.types.thisExpression(),r,n));break;default:throw new Error("Unreachable.")}}return{staticNodes:f.filter(Boolean),instanceNodes:y.filter(Boolean),pureStaticNodes:g.filter(Boolean),wrapClass(r){for(const e of t){e.node.leadingComments=null;e.remove()}if(p){r.scope.push({id:s.types.cloneNode(p)});r.set("superClass",s.types.assignmentExpression("=",p,r.node.superClass))}if(!u)return r;if(r.isClassExpression()){r.scope.push({id:e});r.replaceWith(s.types.assignmentExpression("=",s.types.cloneNode(e),r.node))}else if(!r.node.id){r.node.id=e}return r}}}},7953:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"FEATURES",{enumerable:true,get:function(){return d.FEATURES}});Object.defineProperty(r,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});r.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(r,"enableFeature",{enumerable:true,get:function(){return d.enableFeature}});Object.defineProperty(r,"injectInitialization",{enumerable:true,get:function(){return c.injectInitialization}});var s=t(8304);var a=t(7345);var n=t(7696);var o=t(7849);var i=t(2736);var l=t(7081);var c=t(4510);var d=t(2532);var u=t(3678);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:r,loose:t,manipulateOptions:f,api:y,inherits:g}){{var h;(h=y)!=null?h:y={assumption:()=>void 0}}const b=y.assumption("setPublicClassFields");const x=y.assumption("privateFieldsAsSymbols");const v=y.assumption("privateFieldsAsProperties");const j=y.assumption("constantSuper");const w=y.assumption("noDocumentAll");if(v&&x){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const E=v||x;if(t===true){const r=[];if(b!==undefined){r.push(`"setPublicClassFields"`)}if(v!==undefined){r.push(`"privateFieldsAsProperties"`)}if(x!==undefined){r.push(`"privateFieldsAsSymbols"`)}if(r.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${r.join(" and ")}`+` assumption${r.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:f,inherits:g,pre(e){(0,d.enableFeature)(e,r,t);{if(typeof e.get(p)==="number"){e.set(p,"7.22.1");return}}if(!e.get(p)||o.lt(e.get(p),"7.22.1")){e.set(p,"7.22.1")}},visitor:{Class(e,{file:t}){if(t.get(p)!=="7.22.1")return;if(!(0,d.shouldTransform)(e,t))return;if(e.isClassDeclaration())(0,u.assertFieldTransformed)(e);const n=(0,d.isLoose)(t,r);let o;const f=(0,l.hasDecorators)(e.node);const y=[];const g=[];const h=[];const _=new Set;const S=e.get("body");for(const e of S.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){h.push(e)}if(e.isPrivate()){const{name:r}=e.node.key.id;const t=`get ${r}`;const s=`set ${r}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(_.has(t)||_.has(r)&&!_.has(s)){throw e.buildCodeFrameError("Duplicate private field")}_.add(t).add(r)}else if(e.node.kind==="set"){if(_.has(s)||_.has(r)&&!_.has(t)){throw e.buildCodeFrameError("Duplicate private field")}_.add(s).add(r)}}else{if(_.has(r)&&!_.has(t)&&!_.has(s)||_.has(r)&&(_.has(t)||_.has(s))){throw e.buildCodeFrameError("Duplicate private field")}_.add(r)}}if(e.isClassMethod({kind:"constructor"})){o=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!f)return}const k=e.node.id;let C;if(!k||e.isClassExpression()){(0,a.default)(e);C=e.scope.generateUidIdentifier("class")}else{C=s.types.cloneNode(e.node.id)}const P=(0,i.buildPrivateNamesMap)(y);const D=(0,i.buildPrivateNamesNodes)(P,v!=null?v:n,x!=null?x:false,t);(0,i.transformPrivateNamesUsage)(C,e,P,{privateFieldsAsProperties:E!=null?E:n,noDocumentAll:w,innerBinding:k},t);let I,O,A,R,F;{if(f){O=R=I=[];({instanceNodes:A,wrapClass:F}=(0,l.buildDecoratedClass)(C,e,g,t))}else{I=(0,c.extractComputedKeys)(e,h,t);({staticNodes:O,pureStaticNodes:R,instanceNodes:A,wrapClass:F}=(0,i.buildFieldsInitNodes)(C,e.node.superClass,y,P,t,b!=null?b:n,E!=null?E:n,j!=null?j:n,k))}}if(A.length>0){(0,c.injectInitialization)(e,o,A,((e,r)=>{{if(f)return}for(const t of y){if(s.types.isStaticBlock!=null&&s.types.isStaticBlock(t.node)||t.node.static)continue;t.traverse(e,r)}}))}const M=F(e);M.insertBefore([...D,...I]);if(O.length>0){M.insertAfter(O)}if(R.length>0){M.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(R)}},ExportDefaultDeclaration(e,{file:r}){{if(r.get(p)!=="7.22.1")return;const t=e.get("declaration");if(t.isClassDeclaration()&&(0,l.hasDecorators)(t.node)){if(t.node.id){(0,n.default)(e)}else{t.node.type="ClassExpression"}}}}}}}},4510:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.extractComputedKeys=extractComputedKeys;r.injectInitialization=injectInitialization;var s=t(8304);var a=t(6982);const n=s.traverse.visitors.merge([{Super(e){const{node:r,parentPath:t}=e;if(t.isCallExpression({callee:r})){this.push(t)}}},a.default]);const o={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:r}){if(r.hasOwnBinding(e.node.name)){r.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,r){if(r.classBinding&&r.classBinding===e.scope.getBinding(e.node.name)){const t=r.file.addHelper("classNameTDZError");const a=s.types.callExpression(t,[s.types.stringLiteral(e.node.name)]);e.replaceWith(s.types.sequenceExpression([a,e.node]));e.skip()}}const i={ReferencedIdentifier:handleClassTDZ};function injectInitialization(e,r,t,a){if(!t.length)return;const i=!!e.node.superClass;if(!r){const t=s.types.classMethod("constructor",s.types.identifier("constructor"),[],s.types.blockStatement([]));if(i){t.params=[s.types.restElement(s.types.identifier("args"))];t.body.body.push(s.template.statement.ast`super(...args)`)}[r]=e.get("body").unshiftContainer("body",t)}if(a){a(o,{scope:r.scope})}if(i){const e=[];r.traverse(n,e);let a=true;for(const r of e){if(a){r.insertAfter(t);a=false}else{r.insertAfter(t.map((e=>s.types.cloneNode(e))))}}}else{r.get("body").unshiftContainer("body",t)}}function extractComputedKeys(e,r,t){const a=[];const n={classBinding:e.node.id&&e.scope.getBinding(e.node.id.name),file:t};for(const t of r){const r=t.get("key");if(r.isReferencedIdentifier()){handleClassTDZ(r,n)}else{r.traverse(i,n)}const o=t.node;if(!r.isConstantExpression()){const r=e.scope.generateUidIdentifierBasedOnNode(o.key);e.scope.push({id:r,kind:"let"});a.push(s.types.expressionStatement(s.types.assignmentExpression("=",s.types.cloneNode(r),o.key)));o.key=s.types.cloneNode(r)}}return a}},3678:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},9810:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FEATURES=void 0;r.enableFeature=enableFeature;r.featuresKey=void 0;r.hasFeature=hasFeature;r.runtimeKey=void 0;const t=Object.freeze({unicodeFlag:1<<0,dotAllFlag:1<<1,unicodePropertyEscape:1<<2,namedCaptureGroups:1<<3,unicodeSetsFlag_syntax:1<<4,unicodeSetsFlag:1<<5,duplicateNamedCaptureGroups:1<<6,modifiers:1<<7});r.FEATURES=t;const s="@babel/plugin-regexp-features/featuresKey";r.featuresKey=s;const a="@babel/plugin-regexp-features/runtimeKey";r.runtimeKey=a;function enableFeature(e,r){return e|r}function hasFeature(e,r){return!!(e&r)}},9626:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createRegExpFeaturePlugin=createRegExpFeaturePlugin;var s=t(8498);var a=t(8304);var n=t(7135);var o=t(7849);var i=t(9810);var l=t(8755);const c="@babel/plugin-regexp-features/version";function createRegExpFeaturePlugin({name:e,feature:r,options:t={},manipulateOptions:d=(()=>{})}){return{name:e,manipulateOptions:d,pre(){var e;const{file:s}=this;const a=(e=s.get(i.featuresKey))!=null?e:0;let n=(0,i.enableFeature)(a,i.FEATURES[r]);const{useUnicodeFlag:l,runtime:d}=t;if(l===false){n=(0,i.enableFeature)(n,i.FEATURES.unicodeFlag)}if(n!==a){s.set(i.featuresKey,n)}if(d!==undefined){if(s.has(i.runtimeKey)&&s.get(i.runtimeKey)!==d&&(0,i.hasFeature)(n,i.FEATURES.duplicateNamedCaptureGroups)){throw new Error(`The 'runtime' option must be the same for `+`'@babel/plugin-transform-named-capturing-groups-regex' and `+`'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`)}if(r==="namedCaptureGroups"){if(!d||!s.has(i.runtimeKey))s.set(i.runtimeKey,d)}else{s.set(i.runtimeKey,d)}}{if(typeof s.get(c)==="number"){s.set(c,"7.22.15");return}}if(!s.get(c)||o.lt(s.get(c),"7.22.15")){s.set(c,"7.22.15")}},visitor:{RegExpLiteral(e){var r,t;const{node:o}=e;const{file:c}=this;const d=c.get(i.featuresKey);const u=(r=c.get(i.runtimeKey))!=null?r:true;const p=(0,l.generateRegexpuOptions)(o.pattern,d);if((0,l.canSkipRegexpu)(o,p)){return}const f={__proto__:null};if(p.namedGroups==="transform"){p.onNamedGroup=(e,r)=>{const t=f[e];if(typeof t==="number"){f[e]=[t,r]}else if(Array.isArray(t)){t.push(r)}else{f[e]=r}}}let y;if(p.modifiers==="transform"){p.onNewFlags=e=>{y=e}}o.pattern=s(o.pattern,o.flags,p);if(p.namedGroups==="transform"&&Object.keys(f).length>0&&u&&!isRegExpTest(e)){const r=a.types.callExpression(this.addHelper("wrapRegExp"),[o,a.types.valueToNode(f)]);(0,n.default)(r);e.replaceWith(r)}o.flags=(0,l.transformFlags)(p,(t=y)!=null?t:o.flags)}}}}function isRegExpTest(e){return e.parentPath.isMemberExpression({object:e.node,computed:false})&&e.parentPath.get("property").isIdentifier({name:"test"})}},8755:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.canSkipRegexpu=canSkipRegexpu;r.generateRegexpuOptions=generateRegexpuOptions;r.transformFlags=transformFlags;var s=t(9810);function generateRegexpuOptions(e,r){const feat=(e,t="transform")=>(0,s.hasFeature)(r,s.FEATURES[e])?t:false;const featDuplicateNamedGroups=()=>{if(!feat("duplicateNamedCaptureGroups"))return false;const r=/\(\?<([^>]+)>/g;const t=new Set;for(let s;s=r.exec(e);t.add(s[1])){if(t.has(s[1]))return"transform"}return false};return{unicodeFlag:feat("unicodeFlag"),unicodeSetsFlag:feat("unicodeSetsFlag")||"parse",dotAllFlag:feat("dotAllFlag"),unicodePropertyEscapes:feat("unicodePropertyEscape"),namedGroups:feat("namedCaptureGroups")||featDuplicateNamedGroups(),onNamedGroup:()=>{},modifiers:feat("modifiers")}}function canSkipRegexpu(e,r){const{flags:t,pattern:s}=e;if(t.includes("v")){if(r.unicodeSetsFlag==="transform")return false}if(t.includes("u")){if(r.unicodeFlag==="transform")return false;if(r.unicodePropertyEscapes==="transform"&&/\\[pP]{/.test(s)){return false}}if(t.includes("s")){if(r.dotAllFlag==="transform")return false}if(r.namedGroups==="transform"&&/\(\?<(?![=!])/.test(s)){return false}if(r.modifiers==="transform"&&/\(\?[\w-]+:/.test(s)){return false}return true}function transformFlags(e,r){if(e.unicodeSetsFlag==="transform"){r=r.replace("v","u")}if(e.unicodeFlag==="transform"){r=r.replace("u","")}if(e.dotAllFlag==="transform"){r=r.replace("s","")}return r}},2161:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FEATURES=void 0;r.enableFeature=enableFeature;r.featuresKey=void 0;r.hasFeature=hasFeature;r.runtimeKey=void 0;const t=Object.freeze({unicodeFlag:1<<0,dotAllFlag:1<<1,unicodePropertyEscape:1<<2,namedCaptureGroups:1<<3,unicodeSetsFlag_syntax:1<<4,unicodeSetsFlag:1<<5,duplicateNamedCaptureGroups:1<<6,modifiers:1<<7});r.FEATURES=t;const s="@babel/plugin-regexp-features/featuresKey";r.featuresKey=s;const a="@babel/plugin-regexp-features/runtimeKey";r.runtimeKey=a;function enableFeature(e,r){return e|r}function hasFeature(e,r){return!!(e&r)}},176:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createRegExpFeaturePlugin=createRegExpFeaturePlugin;var s=t(8498);var a=t(8304);var n=t(7135);var o=t(7849);var i=t(2161);var l=t(4559);const c="@babel/plugin-regexp-features/version";function createRegExpFeaturePlugin({name:e,feature:r,options:t={},manipulateOptions:d=(()=>{})}){return{name:e,manipulateOptions:d,pre(){var e;const{file:s}=this;const a=(e=s.get(i.featuresKey))!=null?e:0;let n=(0,i.enableFeature)(a,i.FEATURES[r]);const{useUnicodeFlag:l,runtime:d}=t;if(l===false){n=(0,i.enableFeature)(n,i.FEATURES.unicodeFlag)}if(n!==a){s.set(i.featuresKey,n)}if(d!==undefined){if(s.has(i.runtimeKey)&&s.get(i.runtimeKey)!==d&&(0,i.hasFeature)(n,i.FEATURES.duplicateNamedCaptureGroups)){throw new Error(`The 'runtime' option must be the same for `+`'@babel/plugin-transform-named-capturing-groups-regex' and `+`'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`)}if(r==="namedCaptureGroups"){if(!d||!s.has(i.runtimeKey))s.set(i.runtimeKey,d)}else{s.set(i.runtimeKey,d)}}{if(typeof s.get(c)==="number"){s.set(c,"7.22.1");return}}if(!s.get(c)||o.lt(s.get(c),"7.22.1")){s.set(c,"7.22.1")}},visitor:{RegExpLiteral(e){var r,t;const{node:o}=e;const{file:c}=this;const d=c.get(i.featuresKey);const u=(r=c.get(i.runtimeKey))!=null?r:true;const p=(0,l.generateRegexpuOptions)(o.pattern,d);if((0,l.canSkipRegexpu)(o,p)){return}const f={__proto__:null};if(p.namedGroups==="transform"){p.onNamedGroup=(e,r)=>{const t=f[e];if(typeof t==="number"){f[e]=[t,r]}else if(Array.isArray(t)){t.push(r)}else{f[e]=r}}}let y;if(p.modifiers==="transform"){p.onNewFlags=e=>{y=e}}o.pattern=s(o.pattern,o.flags,p);if(p.namedGroups==="transform"&&Object.keys(f).length>0&&u&&!isRegExpTest(e)){const r=a.types.callExpression(this.addHelper("wrapRegExp"),[o,a.types.valueToNode(f)]);(0,n.default)(r);e.replaceWith(r)}o.flags=(0,l.transformFlags)(p,(t=y)!=null?t:o.flags)}}}}function isRegExpTest(e){return e.parentPath.isMemberExpression({object:e.node,computed:false})&&e.parentPath.get("property").isIdentifier({name:"test"})}},4559:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.canSkipRegexpu=canSkipRegexpu;r.generateRegexpuOptions=generateRegexpuOptions;r.transformFlags=transformFlags;var s=t(2161);function generateRegexpuOptions(e,r){const feat=(e,t="transform")=>(0,s.hasFeature)(r,s.FEATURES[e])?t:false;const featDuplicateNamedGroups=()=>{if(!feat("duplicateNamedCaptureGroups"))return false;const r=/\(\?<([^>]+)>/g;const t=new Set;for(let s;s=r.exec(e);t.add(s[1])){if(t.has(s[1]))return"transform"}return false};return{unicodeFlag:feat("unicodeFlag"),unicodeSetsFlag:feat("unicodeSetsFlag")||"parse",dotAllFlag:feat("dotAllFlag"),unicodePropertyEscapes:feat("unicodePropertyEscape"),namedGroups:feat("namedCaptureGroups")||featDuplicateNamedGroups(),onNamedGroup:()=>{},modifiers:feat("modifiers")}}function canSkipRegexpu(e,r){const{flags:t,pattern:s}=e;if(t.includes("v")){if(r.unicodeSetsFlag==="transform")return false}if(t.includes("u")){if(r.unicodeFlag==="transform")return false;if(r.unicodePropertyEscapes==="transform"&&/\\[pP]{/.test(s)){return false}}if(t.includes("s")){if(r.dotAllFlag==="transform")return false}if(r.namedGroups==="transform"&&/\(\?<(?![=!])/.test(s)){return false}if(r.modifiers==="transform"&&/\(\?[\w-]+:/.test(s)){return false}return true}function transformFlags(e,r){if(e.unicodeSetsFlag==="transform"){r=r.replace("v","u")}if(e.unicodeFlag==="transform"){r=r.replace("u","")}if(e.dotAllFlag==="transform"){r=r.replace("s","")}return r}},6982:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;r.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;{{{r.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}}}function requeueComputedKeyAndDecorators(e){const{context:r,node:t}=e;if(t.computed){r.maybeQueue(e.get("key"))}if(t.decorators){for(const t of e.get("decorators")){r.maybeQueue(t)}}}const t={FunctionParent(e){if(e.isArrowFunctionExpression()){return}else{e.skip();if(e.isMethod()){requeueComputedKeyAndDecorators(e)}}},Property(e){if(e.isObjectProperty()){return}e.skip();requeueComputedKeyAndDecorators(e)}};var s=t;r["default"]=s},8552:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;r.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;{r.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}function requeueComputedKeyAndDecorators(e){const{context:r,node:t}=e;if(t.computed){r.maybeQueue(e.get("key"))}if(t.decorators){for(const t of e.get("decorators")){r.maybeQueue(t)}}}const t={FunctionParent(e){if(e.isArrowFunctionExpression()){return}else{e.skip();if(e.isMethod()){requeueComputedKeyAndDecorators(e)}}},Property(e){if(e.isObjectProperty()){return}e.skip();requeueComputedKeyAndDecorators(e)}};var s=t;r["default"]=s},3336:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;r.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;{r.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}function requeueComputedKeyAndDecorators(e){const{context:r,node:t}=e;if(t.computed){r.maybeQueue(e.get("key"))}if(t.decorators){for(const t of e.get("decorators")){r.maybeQueue(t)}}}const t={FunctionParent(e){if(e.isArrowFunctionExpression()){return}else{e.skip();if(e.isMethod()){requeueComputedKeyAndDecorators(e)}}},Property(e){if(e.isObjectProperty()){return}e.skip();requeueComputedKeyAndDecorators(e)}};var s=r["default"]=t},7345:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;var s=t(789);var a=t(8622);const{NOT_LOCAL_BINDING:n,cloneNode:o,identifier:i,isAssignmentExpression:l,isAssignmentPattern:c,isFunction:d,isIdentifier:u,isLiteral:p,isNullLiteral:f,isObjectMethod:y,isObjectProperty:g,isRegExpLiteral:h,isRestElement:b,isTemplateLiteral:x,isVariableDeclarator:v,toBindingIdentifierName:j}=a;function getFunctionArity(e){const r=e.params.findIndex((e=>c(e)||b(e)));return r===-1?e.params.length:r}const w=s.default.statement(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const E=s.default.statement(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const _={"ReferencedIdentifier|BindingIdentifier"(e,r){if(e.node.name!==r.name)return;const t=e.scope.getBindingIdentifier(r.name);if(t!==r.outerDeclar)return;r.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(h(e)){return`_${e.pattern}_${e.flags}`}if(x(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,r,t,s){if(e.selfReference){if(s.hasBinding(t.name)&&!s.hasGlobal(t.name)){s.rename(t.name)}else{if(!d(r))return;let e=w;if(r.generator){e=E}const a=e({FUNCTION:r,FUNCTION_ID:t,FUNCTION_KEY:s.generateUidIdentifier(t.name)}).expression;const n=a.callee.body.body[0].params;for(let e=0,t=getFunctionArity(r);ec(e)||b(e)));return r===-1?e.params.length:r}const w=s.default.statement(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const E=s.default.statement(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const _={"ReferencedIdentifier|BindingIdentifier"(e,r){if(e.node.name!==r.name)return;const t=e.scope.getBindingIdentifier(r.name);if(t!==r.outerDeclar)return;r.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(h(e)){return`_${e.pattern}_${e.flags}`}if(x(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,r,t,s){if(e.selfReference){if(s.hasBinding(t.name)&&!s.hasGlobal(t.name)){s.rename(t.name)}else{if(!d(r))return;let e=w;if(r.generator){e=E}const a=e({FUNCTION:r,FUNCTION_ID:t,FUNCTION_KEY:s.generateUidIdentifier(t.name)}).expression;const n=a.callee.body.body[0].params;for(let e=0,t=getFunctionArity(r);ec(e)||b(e)));return r===-1?e.params.length:r}const w=s.default.statement(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const E=s.default.statement(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const _={"ReferencedIdentifier|BindingIdentifier"(e,r){if(e.node.name!==r.name)return;const t=e.scope.getBindingIdentifier(r.name);if(t!==r.outerDeclar)return;r.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(h(e)){return`_${e.pattern}_${e.flags}`}if(x(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,r,t,s){if(e.selfReference){if(s.hasBinding(t.name)&&!s.hasGlobal(t.name)){s.rename(t.name)}else{if(!d(r))return;let e=w;if(r.generator){e=E}const a=e({FUNCTION:r,FUNCTION_ID:t,FUNCTION_KEY:s.generateUidIdentifier(t.name)}).expression;const n=a.callee.body.body[0].params;for(let e=0,t=getFunctionArity(r);e{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(8622);function _interopNamespace(e){if(e&&e.__esModule)return e;var r=Object.create(null);if(e){Object.keys(e).forEach((function(t){if(t!=="default"){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:true,get:function(){return e[t]}})}}))}r["default"]=e;return Object.freeze(r)}var a=_interopNamespace(s);function willPathCastToBoolean(e){const r=e;const{node:t,parentPath:s}=r;if(s.isLogicalExpression()){const{operator:e,right:r}=s.node;if(e==="&&"||e==="||"||e==="??"&&t===r){return willPathCastToBoolean(s)}}if(s.isSequenceExpression()){const{expressions:e}=s.node;if(e[e.length-1]===t){return willPathCastToBoolean(s)}else{return true}}return s.isConditional({test:t})||s.isUnaryExpression({operator:"!"})||s.isLoop({test:t})}const{LOGICAL_OPERATORS:n,arrowFunctionExpression:o,assignmentExpression:i,binaryExpression:l,booleanLiteral:c,callExpression:d,cloneNode:u,conditionalExpression:p,identifier:f,isMemberExpression:y,isOptionalCallExpression:g,isOptionalMemberExpression:h,isUpdateExpression:b,logicalExpression:x,memberExpression:v,nullLiteral:j,optionalCallExpression:w,optionalMemberExpression:E,sequenceExpression:_,updateExpression:S}=a;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const r=this._map.get(e);const{value:t}=r;r.count--;if(r.count===0){return i("=",t,e)}return t}set(e,r,t){return this._map.set(e,{count:t,value:r})}}function toNonOptional(e,r){const{node:t}=e;if(h(t)){return v(r,t.property,t.computed)}if(e.isOptionalCallExpression()){const t=e.get("callee");if(e.node.optional&&t.isOptionalMemberExpression()){const s=t.node.object;const a=e.scope.maybeGenerateMemoised(s);t.get("object").replaceWith(i("=",a,s));return d(v(r,f("call")),[a,...e.node.arguments])}return d(r,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:r,container:t,listKey:s}=e;const a=r.node;if(s){if(t!==a[s]){return true}}else{if(t!==a)return true}e=r}return false}const k={memoise(){},handle(e,r){const{node:t,parent:s,parentPath:a,scope:v}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const n=e.find((({node:r,parent:t})=>{if(h(t)){return t.optional||t.object!==r}if(g(t)){return r!==e.node&&t.optional||t.callee!==r}return true}));if(v.path.isPattern()){n.replaceWith(d(o([],n.node),[]));return}const b=willPathCastToBoolean(n);const _=n.parentPath;if(_.isUpdateExpression({argument:t})||_.isAssignmentExpression({left:t})){throw e.buildCodeFrameError(`can't handle assignment`)}const S=_.isUnaryExpression({operator:"delete"});if(S&&n.isOptionalMemberExpression()&&n.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let k=e;for(;;){if(k.isOptionalMemberExpression()){if(k.node.optional)break;k=k.get("object");continue}else if(k.isOptionalCallExpression()){if(k.node.optional)break;k=k.get("callee");continue}throw new Error(`Internal error: unexpected ${k.node.type}`)}const C=k.isOptionalMemberExpression()?k.node.object:k.node.callee;const P=v.maybeGenerateMemoised(C);const D=P!=null?P:C;const I=a.isOptionalCallExpression({callee:t});const isOptionalCall=e=>I;const O=a.isCallExpression({callee:t});k.replaceWith(toNonOptional(k,D));if(isOptionalCall()){if(s.optional){a.replaceWith(this.optionalCall(e,s.arguments))}else{a.replaceWith(this.call(e,s.arguments))}}else if(O){e.replaceWith(this.boundGet(e))}else if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e))}else{e.replaceWith(this.get(e))}let A=e.node;for(let r=e;r!==n;){const e=r.parentPath;if(e===n&&isOptionalCall()&&s.optional){A=e.node;break}A=toNonOptional(e,A);r=e}let R;const F=n.parentPath;if(y(A)&&F.isOptionalCallExpression({callee:n.node,optional:true})){const{object:r}=A;R=e.scope.maybeGenerateMemoised(r);if(R){A.object=i("=",R,r)}}let M=n;if(S){M=F;A=F.node}const N=P?i("=",u(D),u(C)):u(D);if(b){let e;if(r){e=l("!=",N,j())}else{e=x("&&",l("!==",N,j()),l("!==",u(D),v.buildUndefinedNode()))}M.replaceWith(x("&&",e,A))}else{let e;if(r){e=l("==",N,j())}else{e=x("||",l("===",N,j()),l("===",u(D),v.buildUndefinedNode()))}M.replaceWith(p(e,S?c(true):v.buildUndefinedNode(),A))}if(R){const e=F.node;F.replaceWith(w(E(e.callee,f("call"),false,true),[u(R),...e.arguments],false))}return}if(b(s,{argument:t})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:r,prefix:n}=s;this.memoise(e,2);const o=v.generateUidIdentifierBasedOnNode(t);v.push({id:o});const l=[i("=",u(o),this.get(e))];if(n){l.push(S(r,u(o),n));const t=_(l);a.replaceWith(this.set(e,t));return}else{const s=v.generateUidIdentifierBasedOnNode(t);v.push({id:s});l.push(i("=",u(s),S(r,u(o),n)),u(o));const c=_(l);a.replaceWith(_([this.set(e,c),u(s)]));return}}if(a.isAssignmentExpression({left:t})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:r,right:t}=a.node;if(r==="="){a.replaceWith(this.set(e,t))}else{const s=r.slice(0,-1);if(n.includes(s)){this.memoise(e,1);a.replaceWith(x(s,this.get(e),this.set(e,t)))}else{this.memoise(e,2);a.replaceWith(this.set(e,l(s,this.get(e),t)))}}return}if(a.isCallExpression({callee:t})){a.replaceWith(this.call(e,a.node.arguments));return}if(a.isOptionalCallExpression({callee:t})){if(v.path.isPattern()){a.replaceWith(d(o([],a.node),[]));return}a.replaceWith(this.optionalCall(e,a.node.arguments));return}if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e));return}if(a.isForXStatement({left:t})||a.isObjectProperty({value:t})&&a.parentPath.isObjectPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isObjectProperty({value:s})&&a.parentPath.parentPath.isObjectPattern()||a.isArrayPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isArrayPattern()||a.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(a.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function memberExpressionToFunctions(e,r,t){e.traverse(r,Object.assign({},k,t,{memoiser:new AssignmentMemoiser}))}r["default"]=memberExpressionToFunctions},6265:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(8622);function _interopNamespace(e){if(e&&e.__esModule)return e;var r=Object.create(null);if(e){Object.keys(e).forEach((function(t){if(t!=="default"){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:true,get:function(){return e[t]}})}}))}r.default=e;return Object.freeze(r)}var a=_interopNamespace(s);function willPathCastToBoolean(e){const r=e;const{node:t,parentPath:s}=r;if(s.isLogicalExpression()){const{operator:e,right:r}=s.node;if(e==="&&"||e==="||"||e==="??"&&t===r){return willPathCastToBoolean(s)}}if(s.isSequenceExpression()){const{expressions:e}=s.node;if(e[e.length-1]===t){return willPathCastToBoolean(s)}else{return true}}return s.isConditional({test:t})||s.isUnaryExpression({operator:"!"})||s.isLoop({test:t})}const{LOGICAL_OPERATORS:n,arrowFunctionExpression:o,assignmentExpression:i,binaryExpression:l,booleanLiteral:c,callExpression:d,cloneNode:u,conditionalExpression:p,identifier:f,isMemberExpression:y,isOptionalCallExpression:g,isOptionalMemberExpression:h,isUpdateExpression:b,logicalExpression:x,memberExpression:v,nullLiteral:j,optionalCallExpression:w,optionalMemberExpression:E,sequenceExpression:_,updateExpression:S}=a;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const r=this._map.get(e);const{value:t}=r;r.count--;if(r.count===0){return i("=",t,e)}return t}set(e,r,t){return this._map.set(e,{count:t,value:r})}}function toNonOptional(e,r){const{node:t}=e;if(h(t)){return v(r,t.property,t.computed)}if(e.isOptionalCallExpression()){const t=e.get("callee");if(e.node.optional&&t.isOptionalMemberExpression()){const s=t.node.object;const a=e.scope.maybeGenerateMemoised(s);t.get("object").replaceWith(i("=",a,s));return d(v(r,f("call")),[a,...e.node.arguments])}return d(r,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:r,container:t,listKey:s}=e;const a=r.node;if(s){if(t!==a[s]){return true}}else{if(t!==a)return true}e=r}return false}const k={memoise(){},handle(e,r){const{node:t,parent:s,parentPath:a,scope:n}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const b=e.find((({node:r,parent:t})=>{if(h(t)){return t.optional||t.object!==r}if(g(t)){return r!==e.node&&t.optional||t.callee!==r}return true}));if(n.path.isPattern()){b.replaceWith(d(o([],b.node),[]));return}const v=willPathCastToBoolean(b);const _=b.parentPath;if(_.isUpdateExpression({argument:t})){throw e.buildCodeFrameError(`can't handle update expression`)}const S=_.isAssignmentExpression({left:b.node});const k=_.isUnaryExpression({operator:"delete"});if(k&&b.isOptionalMemberExpression()&&b.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const P=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=n.maybeGenerateMemoised(P);const I=D!=null?D:P;const O=a.isOptionalCallExpression({callee:t});const isOptionalCall=e=>O;const A=a.isCallExpression({callee:t});C.replaceWith(toNonOptional(C,I));if(isOptionalCall()){if(s.optional){a.replaceWith(this.optionalCall(e,s.arguments))}else{a.replaceWith(this.call(e,s.arguments))}}else if(A){e.replaceWith(this.boundGet(e))}else if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e))}else if(a.isAssignmentExpression()){handleAssignment(this,e,a)}else{e.replaceWith(this.get(e))}let R=e.node;for(let r=e;r!==b;){const e=r.parentPath;if(e===b&&isOptionalCall()&&s.optional){R=e.node;break}R=toNonOptional(e,R);r=e}let F;const M=b.parentPath;if(y(R)&&M.isOptionalCallExpression({callee:b.node,optional:true})){const{object:r}=R;F=e.scope.maybeGenerateMemoised(r);if(F){R.object=i("=",F,r)}}let N=b;if(k||S){N=M;R=M.node}const B=D?i("=",u(I),u(P)):u(I);if(v){let e;if(r){e=l("!=",B,j())}else{e=x("&&",l("!==",B,j()),l("!==",u(I),n.buildUndefinedNode()))}N.replaceWith(x("&&",e,R))}else{let e;if(r){e=l("==",B,j())}else{e=x("||",l("===",B,j()),l("===",u(I),n.buildUndefinedNode()))}N.replaceWith(p(e,k?c(true):n.buildUndefinedNode(),R))}if(F){const e=M.node;M.replaceWith(w(E(e.callee,f("call"),false,true),[u(F),...e.arguments],false))}return}if(b(s,{argument:t})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:r,prefix:o}=s;this.memoise(e,2);const l=n.generateUidIdentifierBasedOnNode(t);n.push({id:l});const c=[i("=",u(l),this.get(e))];if(o){c.push(S(r,u(l),o));const t=_(c);a.replaceWith(this.set(e,t));return}else{const s=n.generateUidIdentifierBasedOnNode(t);n.push({id:s});c.push(i("=",u(s),S(r,u(l),o)),u(l));const d=_(c);a.replaceWith(_([this.set(e,d),u(s)]));return}}if(a.isAssignmentExpression({left:t})){handleAssignment(this,e,a);return}if(a.isCallExpression({callee:t})){a.replaceWith(this.call(e,a.node.arguments));return}if(a.isOptionalCallExpression({callee:t})){if(n.path.isPattern()){a.replaceWith(d(o([],a.node),[]));return}a.replaceWith(this.optionalCall(e,a.node.arguments));return}if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e));return}if(a.isForXStatement({left:t})||a.isObjectProperty({value:t})&&a.parentPath.isObjectPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isObjectProperty({value:s})&&a.parentPath.parentPath.isObjectPattern()||a.isArrayPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isArrayPattern()||a.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(a.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,r,t){if(e.simpleSet){r.replaceWith(e.simpleSet(r));return}const{operator:s,right:a}=t.node;if(s==="="){t.replaceWith(e.set(r,a))}else{const o=s.slice(0,-1);if(n.includes(o)){e.memoise(r,1);t.replaceWith(x(o,e.get(r),e.set(r,a)))}else{e.memoise(r,2);t.replaceWith(e.set(r,l(o,e.get(r),a)))}}}function memberExpressionToFunctions(e,r,t){e.traverse(r,Object.assign({},k,t,{memoiser:new AssignmentMemoiser}))}r["default"]=memberExpressionToFunctions},4835:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(9491);var a=t(8622);const{callExpression:n,cloneNode:o,expressionStatement:i,identifier:l,importDeclaration:c,importDefaultSpecifier:d,importNamespaceSpecifier:u,importSpecifier:p,memberExpression:f,stringLiteral:y,variableDeclaration:g,variableDeclarator:h}=a;class ImportBuilder{constructor(e,r,t){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=r;this._hub=t;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],y(this._importedSource)));return this}require(){this._statements.push(i(n(l("require"),[y(this._importedSource)])));return this}namespace(e="namespace"){const r=this._scope.generateUidIdentifier(e);const t=this._statements[this._statements.length-1];s(t.type==="ImportDeclaration");s(t.specifiers.length===0);t.specifiers=[u(r)];this._resultName=o(r);return this}default(e){const r=this._scope.generateUidIdentifier(e);const t=this._statements[this._statements.length-1];s(t.type==="ImportDeclaration");s(t.specifiers.length===0);t.specifiers=[d(r)];this._resultName=o(r);return this}named(e,r){if(r==="default")return this.default(e);const t=this._scope.generateUidIdentifier(e);const a=this._statements[this._statements.length-1];s(a.type==="ImportDeclaration");s(a.specifiers.length===0);a.specifiers=[p(t,l(r))];this._resultName=o(t);return this}var(e){const r=this._scope.generateUidIdentifier(e);let t=this._statements[this._statements.length-1];if(t.type!=="ExpressionStatement"){s(this._resultName);t=i(this._resultName);this._statements.push(t)}this._statements[this._statements.length-1]=g("var",[h(r,t.expression)]);this._resultName=o(r);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const r=this._statements[this._statements.length-1];if(r.type==="ExpressionStatement"){r.expression=n(e,[r.expression])}else if(r.type==="VariableDeclaration"){s(r.declarations.length===1);r.declarations[0].init=n(e,[r.declarations[0].init])}else{s.fail("Unexpected type.")}return this}prop(e){const r=this._statements[this._statements.length-1];if(r.type==="ExpressionStatement"){r.expression=f(r.expression,l(e))}else if(r.type==="VariableDeclaration"){s(r.declarations.length===1);r.declarations[0].init=f(r.declarations[0].init,l(e))}else{s.fail("Unexpected type:"+r.type)}return this}read(e){this._resultName=f(this._resultName,l(e))}}r["default"]=ImportBuilder},8539:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(9491);var a=t(8622);var n=t(4835);var o=t(8089);const{numericLiteral:i,sequenceExpression:l}=a;class ImportInjector{constructor(e,r,t){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const s=e.find((e=>e.isProgram()));this._programPath=s;this._programScope=s.scope;this._hub=s.hub;this._defaultOpts=this._applyDefaults(r,t,true)}addDefault(e,r){return this.addNamed("default",e,r)}addNamed(e,r,t){s(typeof e==="string");return this._generateImport(this._applyDefaults(r,t),e)}addNamespace(e,r){return this._generateImport(this._applyDefaults(e,r),null)}addSideEffect(e,r){return this._generateImport(this._applyDefaults(e,r),void 0)}_applyDefaults(e,r,t=false){let a;if(typeof e==="string"){a=Object.assign({},this._defaultOpts,{importedSource:e},r)}else{s(!r,"Unexpected secondary arguments.");a=Object.assign({},this._defaultOpts,e)}if(!t&&r){if(r.nameHint!==undefined)a.nameHint=r.nameHint;if(r.blockHoist!==undefined)a.blockHoist=r.blockHoist}return a}_generateImport(e,r){const t=r==="default";const s=!!r&&!t;const a=r===null;const{importedSource:c,importedType:d,importedInterop:u,importingInterop:p,ensureLiveReference:f,ensureNoContext:y,nameHint:g,importPosition:h,blockHoist:b}=e;let x=g||r;const v=(0,o.default)(this._programPath);const j=v&&p==="node";const w=v&&p==="babel";if(h==="after"&&!v){throw new Error(`"importPosition": "after" is only supported in modules`)}const E=new n.default(c,this._programScope,this._hub);if(d==="es6"){if(!j&&!w){throw new Error("Cannot import an ES6 module from CommonJS")}E.import();if(a){E.namespace(g||c)}else if(t||s){E.named(x,r)}}else if(d!=="commonjs"){throw new Error(`Unexpected interopType "${d}"`)}else if(u==="babel"){if(j){x=x!=="default"?x:c;const e=`${c}$es6Default`;E.import();if(a){E.default(e).var(x||c).wildcardInterop()}else if(t){if(f){E.default(e).var(x||c).defaultInterop().read("default")}else{E.default(e).var(x).defaultInterop().prop(r)}}else if(s){E.default(e).read(r)}}else if(w){E.import();if(a){E.namespace(x||c)}else if(t||s){E.named(x,r)}}else{E.require();if(a){E.var(x||c).wildcardInterop()}else if((t||s)&&f){if(t){x=x!=="default"?x:c;E.var(x).read(r);E.defaultInterop()}else{E.var(c).read(r)}}else if(t){E.var(x).defaultInterop().prop(r)}else if(s){E.var(x).prop(r)}}}else if(u==="compiled"){if(j){E.import();if(a){E.default(x||c)}else if(t||s){E.default(c).read(x)}}else if(w){E.import();if(a){E.namespace(x||c)}else if(t||s){E.named(x,r)}}else{E.require();if(a){E.var(x||c)}else if(t||s){if(f){E.var(c).read(x)}else{E.prop(r).var(x)}}}}else if(u==="uncompiled"){if(t&&f){throw new Error("No live reference for commonjs default")}if(j){E.import();if(a){E.default(x||c)}else if(t){E.default(x)}else if(s){E.default(c).read(x)}}else if(w){E.import();if(a){E.default(x||c)}else if(t){E.default(x)}else if(s){E.named(x,r)}}else{E.require();if(a){E.var(x||c)}else if(t){E.var(x)}else if(s){if(f){E.var(c).read(x)}else{E.var(x).prop(r)}}}}else{throw new Error(`Unknown importedInterop "${u}".`)}const{statements:_,resultName:S}=E.done();this._insertStatements(_,h,b);if((t||s)&&y&&S.type!=="Identifier"){return l([i(0),S])}return S}_insertStatements(e,r="before",t=3){const s=this._programPath.get("body");if(r==="after"){for(let r=s.length-1;r>=0;r--){if(s[r].isImportDeclaration()){s[r].insertAfter(e);return}}}else{e.forEach((e=>{e._blockHoist=t}));const r=s.find((e=>{const r=e.node._blockHoist;return Number.isFinite(r)&&r<4}));if(r){r.insertBefore(e);return}}this._programPath.unshiftContainer("body",e)}}r["default"]=ImportInjector},3380:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"ImportInjector",{enumerable:true,get:function(){return s.default}});r.addDefault=addDefault;r.addNamed=addNamed;r.addNamespace=addNamespace;r.addSideEffect=addSideEffect;Object.defineProperty(r,"isModule",{enumerable:true,get:function(){return a.default}});var s=t(8539);var a=t(8089);function addDefault(e,r,t){return new s.default(e).addDefault(r,t)}function addNamed(e,r,t,a){return new s.default(e).addNamed(r,t,a)}function addNamespace(e,r,t){return new s.default(e).addNamespace(r,t)}function addSideEffect(e,r,t){return new s.default(e).addSideEffect(r,t)}},8089:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},3664:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.buildDynamicImport=buildDynamicImport;var s=t(8304);{r.getDynamicImportSource=function getDynamicImportSource(e){const[r]=e.arguments;return s.types.isStringLiteral(r)||s.types.isTemplateLiteral(r)?r:s.template.expression.ast`\`\${${r}}\``}}function buildDynamicImport(e,r,t,a){const n=s.types.isCallExpression(e)?e.arguments[0]:e.source;if(s.types.isStringLiteral(n)||s.types.isTemplateLiteral(n)&&n.quasis.length===0){if(r){return s.template.expression.ast` + `,r)}function buildPrivateMethodDeclaration(e,r,t=false){const a=r.get(e.node.key.id.name);const{id:n,methodId:o,getId:i,setId:l,getterDeclared:c,setterDeclared:d,static:u}=a;const{params:p,body:f,generator:y,async:g}=e.node;const h=i&&!c&&p.length===0;const b=l&&!d&&p.length>0;let x=o;if(h){r.set(e.node.key.id.name,Object.assign({},a,{getterDeclared:true}));x=i}else if(b){r.set(e.node.key.id.name,Object.assign({},a,{setterDeclared:true}));x=l}else if(u&&!t){x=n}return inheritPropComments(s.types.functionDeclaration(s.types.cloneNode(x),p,f,y,g),e)}const g=s.traverse.visitors.merge([{ThisExpression(e,r){const t=e.findParent((e=>!(0,c.isTransparentExprWrapper)(e.node)));if(s.types.isUnaryExpression(t.node,{operator:"delete"})){e.parentPath.replaceWith(s.types.booleanLiteral(true));return}r.needsClassRef=true;e.replaceWith(s.types.cloneNode(r.classRef))},MetaProperty(e){const r=e.get("meta");const t=e.get("property");const{scope:s}=e;if(r.isIdentifier({name:"new"})&&t.isIdentifier({name:"target"})){e.replaceWith(s.buildUndefinedNode())}}},n.default]);const h={ReferencedIdentifier(e,r){if(e.scope.bindingIdentifierEquals(e.node.name,r.innerBinding)){r.needsClassRef=true;e.node.name=r.classRef.name}}};function replaceThisContext(e,r,t,n,o,i,l){var c;const d={classRef:r,needsClassRef:false,innerBinding:l};const u=new a.default({methodPath:e,constantSuper:i,file:n,refToPreserve:r,getSuperRef:t,getObjectRef(){d.needsClassRef=true;return s.types.isStaticBlock!=null&&s.types.isStaticBlock(e.node)||e.node.static?r:s.types.memberExpression(r,s.types.identifier("prototype"))}});u.replace();if(o||e.isProperty()){e.traverse(g,d)}if(l!=null&&(c=d.classRef)!=null&&c.name&&d.classRef.name!==(l==null?void 0:l.name)){e.traverse(h,d)}return d.needsClassRef}function isNameOrLength({key:e,computed:r}){if(e.type==="Identifier"){return!r&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,r){s.types.inheritLeadingComments(e,r.node);s.types.inheritInnerComments(e,r.node);return e}function buildFieldsInitNodes(e,r,t,a,n,o,i,l,c){let u=false;let p;const f=[];const y=[];const g=[];const h=s.types.isIdentifier(r)?()=>r:()=>{var e;(e=p)!=null?e:p=t[0].scope.generateUidIdentifierBasedOnNode(r);return p};for(const r of t){r.isClassProperty()&&d.assertFieldTransformed(r);const t=!(s.types.isStaticBlock!=null&&s.types.isStaticBlock(r.node))&&r.node.static;const p=!t;const b=r.isPrivate();const x=!b;const v=r.isProperty();const j=!v;const w=r.isStaticBlock==null?void 0:r.isStaticBlock();if(t||j&&b||w){const t=replaceThisContext(r,e,h,n,w,l,c);u=u||t}switch(true){case w:{const e=r.node.body;if(e.length===1&&s.types.isExpressionStatement(e[0])){f.push(inheritPropComments(e[0],r))}else{f.push(s.types.inheritsComments(s.template.statement.ast`(() => { ${e} })()`,r.node))}break}case t&&b&&v&&i:u=true;f.push(buildPrivateFieldInitLoose(s.types.cloneNode(e),r,a));break;case t&&b&&v&&!i:u=true;f.push(buildPrivateStaticFieldInitSpec(r,a));break;case t&&x&&v&&o:if(!isNameOrLength(r.node)){u=true;f.push(buildPublicFieldInitLoose(s.types.cloneNode(e),r));break}case t&&x&&v&&!o:u=true;f.push(buildPublicFieldInitSpec(s.types.cloneNode(e),r,n));break;case p&&b&&v&&i:y.push(buildPrivateFieldInitLoose(s.types.thisExpression(),r,a));break;case p&&b&&v&&!i:y.push(buildPrivateInstanceFieldInitSpec(s.types.thisExpression(),r,a,n));break;case p&&b&&j&&i:y.unshift(buildPrivateMethodInitLoose(s.types.thisExpression(),r,a));g.push(buildPrivateMethodDeclaration(r,a,i));break;case p&&b&&j&&!i:y.unshift(buildPrivateInstanceMethodInitSpec(s.types.thisExpression(),r,a,n));g.push(buildPrivateMethodDeclaration(r,a,i));break;case t&&b&&j&&!i:u=true;f.unshift(buildPrivateStaticFieldInitSpec(r,a));g.push(buildPrivateMethodDeclaration(r,a,i));break;case t&&b&&j&&i:u=true;f.unshift(buildPrivateStaticMethodInitLoose(s.types.cloneNode(e),r,n,a));g.push(buildPrivateMethodDeclaration(r,a,i));break;case p&&x&&v&&o:y.push(buildPublicFieldInitLoose(s.types.thisExpression(),r));break;case p&&x&&v&&!o:y.push(buildPublicFieldInitSpec(s.types.thisExpression(),r,n));break;default:throw new Error("Unreachable.")}}return{staticNodes:f.filter(Boolean),instanceNodes:y.filter(Boolean),pureStaticNodes:g.filter(Boolean),wrapClass(r){for(const e of t){e.node.leadingComments=null;e.remove()}if(p){r.scope.push({id:s.types.cloneNode(p)});r.set("superClass",s.types.assignmentExpression("=",p,r.node.superClass))}if(!u)return r;if(r.isClassExpression()){r.scope.push({id:e});r.replaceWith(s.types.assignmentExpression("=",s.types.cloneNode(e),r.node))}else if(!r.node.id){r.node.id=e}return r}}}},7953:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"FEATURES",{enumerable:true,get:function(){return d.FEATURES}});Object.defineProperty(r,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});r.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(r,"enableFeature",{enumerable:true,get:function(){return d.enableFeature}});Object.defineProperty(r,"injectInitialization",{enumerable:true,get:function(){return c.injectInitialization}});var s=t(8304);var a=t(7345);var n=t(7696);var o=t(7849);var i=t(2736);var l=t(7081);var c=t(4510);var d=t(2532);var u=t(3678);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:r,loose:t,manipulateOptions:f,api:y,inherits:g}){{var h;(h=y)!=null?h:y={assumption:()=>void 0}}const b=y.assumption("setPublicClassFields");const x=y.assumption("privateFieldsAsSymbols");const v=y.assumption("privateFieldsAsProperties");const j=y.assumption("constantSuper");const w=y.assumption("noDocumentAll");if(v&&x){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const E=v||x;if(t===true){const r=[];if(b!==undefined){r.push(`"setPublicClassFields"`)}if(v!==undefined){r.push(`"privateFieldsAsProperties"`)}if(x!==undefined){r.push(`"privateFieldsAsSymbols"`)}if(r.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${r.join(" and ")}`+` assumption${r.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:f,inherits:g,pre(e){(0,d.enableFeature)(e,r,t);{if(typeof e.get(p)==="number"){e.set(p,"7.22.1");return}}if(!e.get(p)||o.lt(e.get(p),"7.22.1")){e.set(p,"7.22.1")}},visitor:{Class(e,{file:t}){if(t.get(p)!=="7.22.1")return;if(!(0,d.shouldTransform)(e,t))return;if(e.isClassDeclaration())(0,u.assertFieldTransformed)(e);const n=(0,d.isLoose)(t,r);let o;const f=(0,l.hasDecorators)(e.node);const y=[];const g=[];const h=[];const _=new Set;const S=e.get("body");for(const e of S.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){h.push(e)}if(e.isPrivate()){const{name:r}=e.node.key.id;const t=`get ${r}`;const s=`set ${r}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(_.has(t)||_.has(r)&&!_.has(s)){throw e.buildCodeFrameError("Duplicate private field")}_.add(t).add(r)}else if(e.node.kind==="set"){if(_.has(s)||_.has(r)&&!_.has(t)){throw e.buildCodeFrameError("Duplicate private field")}_.add(s).add(r)}}else{if(_.has(r)&&!_.has(t)&&!_.has(s)||_.has(r)&&(_.has(t)||_.has(s))){throw e.buildCodeFrameError("Duplicate private field")}_.add(r)}}if(e.isClassMethod({kind:"constructor"})){o=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!f)return}const k=e.node.id;let C;if(!k||e.isClassExpression()){(0,a.default)(e);C=e.scope.generateUidIdentifier("class")}else{C=s.types.cloneNode(e.node.id)}const P=(0,i.buildPrivateNamesMap)(y);const D=(0,i.buildPrivateNamesNodes)(P,v!=null?v:n,x!=null?x:false,t);(0,i.transformPrivateNamesUsage)(C,e,P,{privateFieldsAsProperties:E!=null?E:n,noDocumentAll:w,innerBinding:k},t);let I,O,A,R,F;{if(f){O=R=I=[];({instanceNodes:A,wrapClass:F}=(0,l.buildDecoratedClass)(C,e,g,t))}else{I=(0,c.extractComputedKeys)(e,h,t);({staticNodes:O,pureStaticNodes:R,instanceNodes:A,wrapClass:F}=(0,i.buildFieldsInitNodes)(C,e.node.superClass,y,P,t,b!=null?b:n,E!=null?E:n,j!=null?j:n,k))}}if(A.length>0){(0,c.injectInitialization)(e,o,A,((e,r)=>{{if(f)return}for(const t of y){if(s.types.isStaticBlock!=null&&s.types.isStaticBlock(t.node)||t.node.static)continue;t.traverse(e,r)}}))}const M=F(e);M.insertBefore([...D,...I]);if(O.length>0){M.insertAfter(O)}if(R.length>0){M.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(R)}},ExportDefaultDeclaration(e,{file:r}){{if(r.get(p)!=="7.22.1")return;const t=e.get("declaration");if(t.isClassDeclaration()&&(0,l.hasDecorators)(t.node)){if(t.node.id){(0,n.default)(e)}else{t.node.type="ClassExpression"}}}}}}}},4510:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.extractComputedKeys=extractComputedKeys;r.injectInitialization=injectInitialization;var s=t(8304);var a=t(6982);const n=s.traverse.visitors.merge([{Super(e){const{node:r,parentPath:t}=e;if(t.isCallExpression({callee:r})){this.push(t)}}},a.default]);const o={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:r}){if(r.hasOwnBinding(e.node.name)){r.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,r){if(r.classBinding&&r.classBinding===e.scope.getBinding(e.node.name)){const t=r.file.addHelper("classNameTDZError");const a=s.types.callExpression(t,[s.types.stringLiteral(e.node.name)]);e.replaceWith(s.types.sequenceExpression([a,e.node]));e.skip()}}const i={ReferencedIdentifier:handleClassTDZ};function injectInitialization(e,r,t,a){if(!t.length)return;const i=!!e.node.superClass;if(!r){const t=s.types.classMethod("constructor",s.types.identifier("constructor"),[],s.types.blockStatement([]));if(i){t.params=[s.types.restElement(s.types.identifier("args"))];t.body.body.push(s.template.statement.ast`super(...args)`)}[r]=e.get("body").unshiftContainer("body",t)}if(a){a(o,{scope:r.scope})}if(i){const e=[];r.traverse(n,e);let a=true;for(const r of e){if(a){r.insertAfter(t);a=false}else{r.insertAfter(t.map((e=>s.types.cloneNode(e))))}}}else{r.get("body").unshiftContainer("body",t)}}function extractComputedKeys(e,r,t){const a=[];const n={classBinding:e.node.id&&e.scope.getBinding(e.node.id.name),file:t};for(const t of r){const r=t.get("key");if(r.isReferencedIdentifier()){handleClassTDZ(r,n)}else{r.traverse(i,n)}const o=t.node;if(!r.isConstantExpression()){const r=e.scope.generateUidIdentifierBasedOnNode(o.key);e.scope.push({id:r,kind:"let"});a.push(s.types.expressionStatement(s.types.assignmentExpression("=",s.types.cloneNode(r),o.key)));o.key=s.types.cloneNode(r)}}return a}},3678:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},9810:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FEATURES=void 0;r.enableFeature=enableFeature;r.featuresKey=void 0;r.hasFeature=hasFeature;r.runtimeKey=void 0;const t=Object.freeze({unicodeFlag:1<<0,dotAllFlag:1<<1,unicodePropertyEscape:1<<2,namedCaptureGroups:1<<3,unicodeSetsFlag_syntax:1<<4,unicodeSetsFlag:1<<5,duplicateNamedCaptureGroups:1<<6,modifiers:1<<7});r.FEATURES=t;const s="@babel/plugin-regexp-features/featuresKey";r.featuresKey=s;const a="@babel/plugin-regexp-features/runtimeKey";r.runtimeKey=a;function enableFeature(e,r){return e|r}function hasFeature(e,r){return!!(e&r)}},9626:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createRegExpFeaturePlugin=createRegExpFeaturePlugin;var s=t(8498);var a=t(8304);var n=t(7135);var o=t(7849);var i=t(9810);var l=t(8755);const c="@babel/plugin-regexp-features/version";function createRegExpFeaturePlugin({name:e,feature:r,options:t={},manipulateOptions:d=(()=>{})}){return{name:e,manipulateOptions:d,pre(){var e;const{file:s}=this;const a=(e=s.get(i.featuresKey))!=null?e:0;let n=(0,i.enableFeature)(a,i.FEATURES[r]);const{useUnicodeFlag:l,runtime:d}=t;if(l===false){n=(0,i.enableFeature)(n,i.FEATURES.unicodeFlag)}if(n!==a){s.set(i.featuresKey,n)}if(d!==undefined){if(s.has(i.runtimeKey)&&s.get(i.runtimeKey)!==d&&(0,i.hasFeature)(n,i.FEATURES.duplicateNamedCaptureGroups)){throw new Error(`The 'runtime' option must be the same for `+`'@babel/plugin-transform-named-capturing-groups-regex' and `+`'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`)}if(r==="namedCaptureGroups"){if(!d||!s.has(i.runtimeKey))s.set(i.runtimeKey,d)}else{s.set(i.runtimeKey,d)}}{if(typeof s.get(c)==="number"){s.set(c,"7.22.15");return}}if(!s.get(c)||o.lt(s.get(c),"7.22.15")){s.set(c,"7.22.15")}},visitor:{RegExpLiteral(e){var r,t;const{node:o}=e;const{file:c}=this;const d=c.get(i.featuresKey);const u=(r=c.get(i.runtimeKey))!=null?r:true;const p=(0,l.generateRegexpuOptions)(o.pattern,d);if((0,l.canSkipRegexpu)(o,p)){return}const f={__proto__:null};if(p.namedGroups==="transform"){p.onNamedGroup=(e,r)=>{const t=f[e];if(typeof t==="number"){f[e]=[t,r]}else if(Array.isArray(t)){t.push(r)}else{f[e]=r}}}let y;if(p.modifiers==="transform"){p.onNewFlags=e=>{y=e}}o.pattern=s(o.pattern,o.flags,p);if(p.namedGroups==="transform"&&Object.keys(f).length>0&&u&&!isRegExpTest(e)){const r=a.types.callExpression(this.addHelper("wrapRegExp"),[o,a.types.valueToNode(f)]);(0,n.default)(r);e.replaceWith(r)}o.flags=(0,l.transformFlags)(p,(t=y)!=null?t:o.flags)}}}}function isRegExpTest(e){return e.parentPath.isMemberExpression({object:e.node,computed:false})&&e.parentPath.get("property").isIdentifier({name:"test"})}},8755:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.canSkipRegexpu=canSkipRegexpu;r.generateRegexpuOptions=generateRegexpuOptions;r.transformFlags=transformFlags;var s=t(9810);function generateRegexpuOptions(e,r){const feat=(e,t="transform")=>(0,s.hasFeature)(r,s.FEATURES[e])?t:false;const featDuplicateNamedGroups=()=>{if(!feat("duplicateNamedCaptureGroups"))return false;const r=/\(\?<([^>]+)>/g;const t=new Set;for(let s;s=r.exec(e);t.add(s[1])){if(t.has(s[1]))return"transform"}return false};return{unicodeFlag:feat("unicodeFlag"),unicodeSetsFlag:feat("unicodeSetsFlag")||"parse",dotAllFlag:feat("dotAllFlag"),unicodePropertyEscapes:feat("unicodePropertyEscape"),namedGroups:feat("namedCaptureGroups")||featDuplicateNamedGroups(),onNamedGroup:()=>{},modifiers:feat("modifiers")}}function canSkipRegexpu(e,r){const{flags:t,pattern:s}=e;if(t.includes("v")){if(r.unicodeSetsFlag==="transform")return false}if(t.includes("u")){if(r.unicodeFlag==="transform")return false;if(r.unicodePropertyEscapes==="transform"&&/\\[pP]{/.test(s)){return false}}if(t.includes("s")){if(r.dotAllFlag==="transform")return false}if(r.namedGroups==="transform"&&/\(\?<(?![=!])/.test(s)){return false}if(r.modifiers==="transform"&&/\(\?[\w-]+:/.test(s)){return false}return true}function transformFlags(e,r){if(e.unicodeSetsFlag==="transform"){r=r.replace("v","u")}if(e.unicodeFlag==="transform"){r=r.replace("u","")}if(e.dotAllFlag==="transform"){r=r.replace("s","")}return r}},27:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FEATURES=void 0;r.enableFeature=enableFeature;r.featuresKey=void 0;r.hasFeature=hasFeature;r.runtimeKey=void 0;const t=r.FEATURES=Object.freeze({unicodeFlag:1<<0,dotAllFlag:1<<1,unicodePropertyEscape:1<<2,namedCaptureGroups:1<<3,unicodeSetsFlag_syntax:1<<4,unicodeSetsFlag:1<<5,duplicateNamedCaptureGroups:1<<6,modifiers:1<<7});const s=r.featuresKey="@babel/plugin-regexp-features/featuresKey";const a=r.runtimeKey="@babel/plugin-regexp-features/runtimeKey";function enableFeature(e,r){return e|r}function hasFeature(e,r){return!!(e&r)}},2269:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createRegExpFeaturePlugin=createRegExpFeaturePlugin;var s=t(8498);var a=t(8304);var n=t(7135);var o=t(7849);var i=t(27);var l=t(2910);const c="@babel/plugin-regexp-features/version";function createRegExpFeaturePlugin({name:e,feature:r,options:t={},manipulateOptions:d=(()=>{})}){return{name:e,manipulateOptions:d,pre(){var e;const{file:s}=this;const a=(e=s.get(i.featuresKey))!=null?e:0;let n=(0,i.enableFeature)(a,i.FEATURES[r]);const{useUnicodeFlag:l,runtime:d}=t;if(l===false){n=(0,i.enableFeature)(n,i.FEATURES.unicodeFlag)}if(n!==a){s.set(i.featuresKey,n)}if(d!==undefined){if(s.has(i.runtimeKey)&&s.get(i.runtimeKey)!==d&&(0,i.hasFeature)(n,i.FEATURES.duplicateNamedCaptureGroups)){throw new Error(`The 'runtime' option must be the same for `+`'@babel/plugin-transform-named-capturing-groups-regex' and `+`'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`)}if(r==="namedCaptureGroups"){if(!d||!s.has(i.runtimeKey))s.set(i.runtimeKey,d)}else{s.set(i.runtimeKey,d)}}{if(typeof s.get(c)==="number"){s.set(c,"7.24.7");return}}if(!s.get(c)||o.lt(s.get(c),"7.24.7")){s.set(c,"7.24.7")}},visitor:{RegExpLiteral(e){var r,t;const{node:o}=e;const{file:c}=this;const d=c.get(i.featuresKey);const u=(r=c.get(i.runtimeKey))!=null?r:true;const p=(0,l.generateRegexpuOptions)(o.pattern,d);if((0,l.canSkipRegexpu)(o,p)){return}const f={__proto__:null};if(p.namedGroups==="transform"){p.onNamedGroup=(e,r)=>{const t=f[e];if(typeof t==="number"){f[e]=[t,r]}else if(Array.isArray(t)){t.push(r)}else{f[e]=r}}}let y;if(p.modifiers==="transform"){p.onNewFlags=e=>{y=e}}o.pattern=s(o.pattern,o.flags,p);if(p.namedGroups==="transform"&&Object.keys(f).length>0&&u&&!isRegExpTest(e)){const r=a.types.callExpression(this.addHelper("wrapRegExp"),[o,a.types.valueToNode(f)]);(0,n.default)(r);e.replaceWith(r)}o.flags=(0,l.transformFlags)(p,(t=y)!=null?t:o.flags)}}}}function isRegExpTest(e){return e.parentPath.isMemberExpression({object:e.node,computed:false})&&e.parentPath.get("property").isIdentifier({name:"test"})}},2910:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.canSkipRegexpu=canSkipRegexpu;r.generateRegexpuOptions=generateRegexpuOptions;r.transformFlags=transformFlags;var s=t(27);function generateRegexpuOptions(e,r){const feat=(e,t="transform")=>(0,s.hasFeature)(r,s.FEATURES[e])?t:false;const featDuplicateNamedGroups=()=>{if(!feat("duplicateNamedCaptureGroups"))return false;const r=/\(\?<([^>]+)>/g;const t=new Set;for(let s;s=r.exec(e);t.add(s[1])){if(t.has(s[1]))return"transform"}return false};return{unicodeFlag:feat("unicodeFlag"),unicodeSetsFlag:feat("unicodeSetsFlag")||"parse",dotAllFlag:feat("dotAllFlag"),unicodePropertyEscapes:feat("unicodePropertyEscape"),namedGroups:feat("namedCaptureGroups")||featDuplicateNamedGroups(),onNamedGroup:()=>{},modifiers:feat("modifiers")}}function canSkipRegexpu(e,r){const{flags:t,pattern:s}=e;if(t.includes("v")){if(r.unicodeSetsFlag==="transform")return false}if(t.includes("u")){if(r.unicodeFlag==="transform")return false;if(r.unicodePropertyEscapes==="transform"&&/\\[pP]{/.test(s)){return false}}if(t.includes("s")){if(r.dotAllFlag==="transform")return false}if(r.namedGroups==="transform"&&/\(\?<(?![=!])/.test(s)){return false}if(r.modifiers==="transform"&&/\(\?[\w-]+:/.test(s)){return false}return true}function transformFlags(e,r){if(e.unicodeSetsFlag==="transform"){r=r.replace("v","u")}if(e.unicodeFlag==="transform"){r=r.replace("u","")}if(e.dotAllFlag==="transform"){r=r.replace("s","")}return r}},6982:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;r.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;{{{r.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}}}function requeueComputedKeyAndDecorators(e){const{context:r,node:t}=e;if(t.computed){r.maybeQueue(e.get("key"))}if(t.decorators){for(const t of e.get("decorators")){r.maybeQueue(t)}}}const t={FunctionParent(e){if(e.isArrowFunctionExpression()){return}else{e.skip();if(e.isMethod()){requeueComputedKeyAndDecorators(e)}}},Property(e){if(e.isObjectProperty()){return}e.skip();requeueComputedKeyAndDecorators(e)}};var s=t;r["default"]=s},8552:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;r.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;{r.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}function requeueComputedKeyAndDecorators(e){const{context:r,node:t}=e;if(t.computed){r.maybeQueue(e.get("key"))}if(t.decorators){for(const t of e.get("decorators")){r.maybeQueue(t)}}}const t={FunctionParent(e){if(e.isArrowFunctionExpression()){return}else{e.skip();if(e.isMethod()){requeueComputedKeyAndDecorators(e)}}},Property(e){if(e.isObjectProperty()){return}e.skip();requeueComputedKeyAndDecorators(e)}};var s=t;r["default"]=s},3336:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;r.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;{r.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}function requeueComputedKeyAndDecorators(e){const{context:r,node:t}=e;if(t.computed){r.maybeQueue(e.get("key"))}if(t.decorators){for(const t of e.get("decorators")){r.maybeQueue(t)}}}const t={FunctionParent(e){if(e.isArrowFunctionExpression()){return}else{e.skip();if(e.isMethod()){requeueComputedKeyAndDecorators(e)}}},Property(e){if(e.isObjectProperty()){return}e.skip();requeueComputedKeyAndDecorators(e)}};var s=r["default"]=t},7345:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;var s=t(789);var a=t(8622);const{NOT_LOCAL_BINDING:n,cloneNode:o,identifier:i,isAssignmentExpression:l,isAssignmentPattern:c,isFunction:d,isIdentifier:u,isLiteral:p,isNullLiteral:f,isObjectMethod:y,isObjectProperty:g,isRegExpLiteral:h,isRestElement:b,isTemplateLiteral:x,isVariableDeclarator:v,toBindingIdentifierName:j}=a;function getFunctionArity(e){const r=e.params.findIndex((e=>c(e)||b(e)));return r===-1?e.params.length:r}const w=s.default.statement(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const E=s.default.statement(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const _={"ReferencedIdentifier|BindingIdentifier"(e,r){if(e.node.name!==r.name)return;const t=e.scope.getBindingIdentifier(r.name);if(t!==r.outerDeclar)return;r.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(h(e)){return`_${e.pattern}_${e.flags}`}if(x(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,r,t,s){if(e.selfReference){if(s.hasBinding(t.name)&&!s.hasGlobal(t.name)){s.rename(t.name)}else{if(!d(r))return;let e=w;if(r.generator){e=E}const a=e({FUNCTION:r,FUNCTION_ID:t,FUNCTION_KEY:s.generateUidIdentifier(t.name)}).expression;const n=a.callee.body.body[0].params;for(let e=0,t=getFunctionArity(r);ec(e)||b(e)));return r===-1?e.params.length:r}const w=s.default.statement(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const E=s.default.statement(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const _={"ReferencedIdentifier|BindingIdentifier"(e,r){if(e.node.name!==r.name)return;const t=e.scope.getBindingIdentifier(r.name);if(t!==r.outerDeclar)return;r.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(h(e)){return`_${e.pattern}_${e.flags}`}if(x(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,r,t,s){if(e.selfReference){if(s.hasBinding(t.name)&&!s.hasGlobal(t.name)){s.rename(t.name)}else{if(!d(r))return;let e=w;if(r.generator){e=E}const a=e({FUNCTION:r,FUNCTION_ID:t,FUNCTION_KEY:s.generateUidIdentifier(t.name)}).expression;const n=a.callee.body.body[0].params;for(let e=0,t=getFunctionArity(r);ec(e)||b(e)));return r===-1?e.params.length:r}const w=s.default.statement(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const E=s.default.statement(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const _={"ReferencedIdentifier|BindingIdentifier"(e,r){if(e.node.name!==r.name)return;const t=e.scope.getBindingIdentifier(r.name);if(t!==r.outerDeclar)return;r.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(h(e)){return`_${e.pattern}_${e.flags}`}if(x(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,r,t,s){if(e.selfReference){if(s.hasBinding(t.name)&&!s.hasGlobal(t.name)){s.rename(t.name)}else{if(!d(r))return;let e=w;if(r.generator){e=E}const a=e({FUNCTION:r,FUNCTION_ID:t,FUNCTION_KEY:s.generateUidIdentifier(t.name)}).expression;const n=a.callee.body.body[0].params;for(let e=0,t=getFunctionArity(r);e{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(8622);function _interopNamespace(e){if(e&&e.__esModule)return e;var r=Object.create(null);if(e){Object.keys(e).forEach((function(t){if(t!=="default"){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:true,get:function(){return e[t]}})}}))}r["default"]=e;return Object.freeze(r)}var a=_interopNamespace(s);function willPathCastToBoolean(e){const r=e;const{node:t,parentPath:s}=r;if(s.isLogicalExpression()){const{operator:e,right:r}=s.node;if(e==="&&"||e==="||"||e==="??"&&t===r){return willPathCastToBoolean(s)}}if(s.isSequenceExpression()){const{expressions:e}=s.node;if(e[e.length-1]===t){return willPathCastToBoolean(s)}else{return true}}return s.isConditional({test:t})||s.isUnaryExpression({operator:"!"})||s.isLoop({test:t})}const{LOGICAL_OPERATORS:n,arrowFunctionExpression:o,assignmentExpression:i,binaryExpression:l,booleanLiteral:c,callExpression:d,cloneNode:u,conditionalExpression:p,identifier:f,isMemberExpression:y,isOptionalCallExpression:g,isOptionalMemberExpression:h,isUpdateExpression:b,logicalExpression:x,memberExpression:v,nullLiteral:j,optionalCallExpression:w,optionalMemberExpression:E,sequenceExpression:_,updateExpression:S}=a;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const r=this._map.get(e);const{value:t}=r;r.count--;if(r.count===0){return i("=",t,e)}return t}set(e,r,t){return this._map.set(e,{count:t,value:r})}}function toNonOptional(e,r){const{node:t}=e;if(h(t)){return v(r,t.property,t.computed)}if(e.isOptionalCallExpression()){const t=e.get("callee");if(e.node.optional&&t.isOptionalMemberExpression()){const s=t.node.object;const a=e.scope.maybeGenerateMemoised(s);t.get("object").replaceWith(i("=",a,s));return d(v(r,f("call")),[a,...e.node.arguments])}return d(r,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:r,container:t,listKey:s}=e;const a=r.node;if(s){if(t!==a[s]){return true}}else{if(t!==a)return true}e=r}return false}const k={memoise(){},handle(e,r){const{node:t,parent:s,parentPath:a,scope:v}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const n=e.find((({node:r,parent:t})=>{if(h(t)){return t.optional||t.object!==r}if(g(t)){return r!==e.node&&t.optional||t.callee!==r}return true}));if(v.path.isPattern()){n.replaceWith(d(o([],n.node),[]));return}const b=willPathCastToBoolean(n);const _=n.parentPath;if(_.isUpdateExpression({argument:t})||_.isAssignmentExpression({left:t})){throw e.buildCodeFrameError(`can't handle assignment`)}const S=_.isUnaryExpression({operator:"delete"});if(S&&n.isOptionalMemberExpression()&&n.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let k=e;for(;;){if(k.isOptionalMemberExpression()){if(k.node.optional)break;k=k.get("object");continue}else if(k.isOptionalCallExpression()){if(k.node.optional)break;k=k.get("callee");continue}throw new Error(`Internal error: unexpected ${k.node.type}`)}const C=k.isOptionalMemberExpression()?k.node.object:k.node.callee;const P=v.maybeGenerateMemoised(C);const D=P!=null?P:C;const I=a.isOptionalCallExpression({callee:t});const isOptionalCall=e=>I;const O=a.isCallExpression({callee:t});k.replaceWith(toNonOptional(k,D));if(isOptionalCall()){if(s.optional){a.replaceWith(this.optionalCall(e,s.arguments))}else{a.replaceWith(this.call(e,s.arguments))}}else if(O){e.replaceWith(this.boundGet(e))}else if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e))}else{e.replaceWith(this.get(e))}let A=e.node;for(let r=e;r!==n;){const e=r.parentPath;if(e===n&&isOptionalCall()&&s.optional){A=e.node;break}A=toNonOptional(e,A);r=e}let R;const F=n.parentPath;if(y(A)&&F.isOptionalCallExpression({callee:n.node,optional:true})){const{object:r}=A;R=e.scope.maybeGenerateMemoised(r);if(R){A.object=i("=",R,r)}}let M=n;if(S){M=F;A=F.node}const N=P?i("=",u(D),u(C)):u(D);if(b){let e;if(r){e=l("!=",N,j())}else{e=x("&&",l("!==",N,j()),l("!==",u(D),v.buildUndefinedNode()))}M.replaceWith(x("&&",e,A))}else{let e;if(r){e=l("==",N,j())}else{e=x("||",l("===",N,j()),l("===",u(D),v.buildUndefinedNode()))}M.replaceWith(p(e,S?c(true):v.buildUndefinedNode(),A))}if(R){const e=F.node;F.replaceWith(w(E(e.callee,f("call"),false,true),[u(R),...e.arguments],false))}return}if(b(s,{argument:t})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:r,prefix:n}=s;this.memoise(e,2);const o=v.generateUidIdentifierBasedOnNode(t);v.push({id:o});const l=[i("=",u(o),this.get(e))];if(n){l.push(S(r,u(o),n));const t=_(l);a.replaceWith(this.set(e,t));return}else{const s=v.generateUidIdentifierBasedOnNode(t);v.push({id:s});l.push(i("=",u(s),S(r,u(o),n)),u(o));const c=_(l);a.replaceWith(_([this.set(e,c),u(s)]));return}}if(a.isAssignmentExpression({left:t})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:r,right:t}=a.node;if(r==="="){a.replaceWith(this.set(e,t))}else{const s=r.slice(0,-1);if(n.includes(s)){this.memoise(e,1);a.replaceWith(x(s,this.get(e),this.set(e,t)))}else{this.memoise(e,2);a.replaceWith(this.set(e,l(s,this.get(e),t)))}}return}if(a.isCallExpression({callee:t})){a.replaceWith(this.call(e,a.node.arguments));return}if(a.isOptionalCallExpression({callee:t})){if(v.path.isPattern()){a.replaceWith(d(o([],a.node),[]));return}a.replaceWith(this.optionalCall(e,a.node.arguments));return}if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e));return}if(a.isForXStatement({left:t})||a.isObjectProperty({value:t})&&a.parentPath.isObjectPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isObjectProperty({value:s})&&a.parentPath.parentPath.isObjectPattern()||a.isArrayPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isArrayPattern()||a.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(a.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function memberExpressionToFunctions(e,r,t){e.traverse(r,Object.assign({},k,t,{memoiser:new AssignmentMemoiser}))}r["default"]=memberExpressionToFunctions},6265:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(8622);function _interopNamespace(e){if(e&&e.__esModule)return e;var r=Object.create(null);if(e){Object.keys(e).forEach((function(t){if(t!=="default"){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:true,get:function(){return e[t]}})}}))}r.default=e;return Object.freeze(r)}var a=_interopNamespace(s);function willPathCastToBoolean(e){const r=e;const{node:t,parentPath:s}=r;if(s.isLogicalExpression()){const{operator:e,right:r}=s.node;if(e==="&&"||e==="||"||e==="??"&&t===r){return willPathCastToBoolean(s)}}if(s.isSequenceExpression()){const{expressions:e}=s.node;if(e[e.length-1]===t){return willPathCastToBoolean(s)}else{return true}}return s.isConditional({test:t})||s.isUnaryExpression({operator:"!"})||s.isLoop({test:t})}const{LOGICAL_OPERATORS:n,arrowFunctionExpression:o,assignmentExpression:i,binaryExpression:l,booleanLiteral:c,callExpression:d,cloneNode:u,conditionalExpression:p,identifier:f,isMemberExpression:y,isOptionalCallExpression:g,isOptionalMemberExpression:h,isUpdateExpression:b,logicalExpression:x,memberExpression:v,nullLiteral:j,optionalCallExpression:w,optionalMemberExpression:E,sequenceExpression:_,updateExpression:S}=a;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const r=this._map.get(e);const{value:t}=r;r.count--;if(r.count===0){return i("=",t,e)}return t}set(e,r,t){return this._map.set(e,{count:t,value:r})}}function toNonOptional(e,r){const{node:t}=e;if(h(t)){return v(r,t.property,t.computed)}if(e.isOptionalCallExpression()){const t=e.get("callee");if(e.node.optional&&t.isOptionalMemberExpression()){const s=t.node.object;const a=e.scope.maybeGenerateMemoised(s);t.get("object").replaceWith(i("=",a,s));return d(v(r,f("call")),[a,...e.node.arguments])}return d(r,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:r,container:t,listKey:s}=e;const a=r.node;if(s){if(t!==a[s]){return true}}else{if(t!==a)return true}e=r}return false}const k={memoise(){},handle(e,r){const{node:t,parent:s,parentPath:a,scope:n}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const b=e.find((({node:r,parent:t})=>{if(h(t)){return t.optional||t.object!==r}if(g(t)){return r!==e.node&&t.optional||t.callee!==r}return true}));if(n.path.isPattern()){b.replaceWith(d(o([],b.node),[]));return}const v=willPathCastToBoolean(b);const _=b.parentPath;if(_.isUpdateExpression({argument:t})){throw e.buildCodeFrameError(`can't handle update expression`)}const S=_.isAssignmentExpression({left:b.node});const k=_.isUnaryExpression({operator:"delete"});if(k&&b.isOptionalMemberExpression()&&b.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const P=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=n.maybeGenerateMemoised(P);const I=D!=null?D:P;const O=a.isOptionalCallExpression({callee:t});const isOptionalCall=e=>O;const A=a.isCallExpression({callee:t});C.replaceWith(toNonOptional(C,I));if(isOptionalCall()){if(s.optional){a.replaceWith(this.optionalCall(e,s.arguments))}else{a.replaceWith(this.call(e,s.arguments))}}else if(A){e.replaceWith(this.boundGet(e))}else if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e))}else if(a.isAssignmentExpression()){handleAssignment(this,e,a)}else{e.replaceWith(this.get(e))}let R=e.node;for(let r=e;r!==b;){const e=r.parentPath;if(e===b&&isOptionalCall()&&s.optional){R=e.node;break}R=toNonOptional(e,R);r=e}let F;const M=b.parentPath;if(y(R)&&M.isOptionalCallExpression({callee:b.node,optional:true})){const{object:r}=R;F=e.scope.maybeGenerateMemoised(r);if(F){R.object=i("=",F,r)}}let N=b;if(k||S){N=M;R=M.node}const B=D?i("=",u(I),u(P)):u(I);if(v){let e;if(r){e=l("!=",B,j())}else{e=x("&&",l("!==",B,j()),l("!==",u(I),n.buildUndefinedNode()))}N.replaceWith(x("&&",e,R))}else{let e;if(r){e=l("==",B,j())}else{e=x("||",l("===",B,j()),l("===",u(I),n.buildUndefinedNode()))}N.replaceWith(p(e,k?c(true):n.buildUndefinedNode(),R))}if(F){const e=M.node;M.replaceWith(w(E(e.callee,f("call"),false,true),[u(F),...e.arguments],false))}return}if(b(s,{argument:t})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:r,prefix:o}=s;this.memoise(e,2);const l=n.generateUidIdentifierBasedOnNode(t);n.push({id:l});const c=[i("=",u(l),this.get(e))];if(o){c.push(S(r,u(l),o));const t=_(c);a.replaceWith(this.set(e,t));return}else{const s=n.generateUidIdentifierBasedOnNode(t);n.push({id:s});c.push(i("=",u(s),S(r,u(l),o)),u(l));const d=_(c);a.replaceWith(_([this.set(e,d),u(s)]));return}}if(a.isAssignmentExpression({left:t})){handleAssignment(this,e,a);return}if(a.isCallExpression({callee:t})){a.replaceWith(this.call(e,a.node.arguments));return}if(a.isOptionalCallExpression({callee:t})){if(n.path.isPattern()){a.replaceWith(d(o([],a.node),[]));return}a.replaceWith(this.optionalCall(e,a.node.arguments));return}if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e));return}if(a.isForXStatement({left:t})||a.isObjectProperty({value:t})&&a.parentPath.isObjectPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isObjectProperty({value:s})&&a.parentPath.parentPath.isObjectPattern()||a.isArrayPattern()||a.isAssignmentPattern({left:t})&&a.parentPath.isArrayPattern()||a.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(a.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,r,t){if(e.simpleSet){r.replaceWith(e.simpleSet(r));return}const{operator:s,right:a}=t.node;if(s==="="){t.replaceWith(e.set(r,a))}else{const o=s.slice(0,-1);if(n.includes(o)){e.memoise(r,1);t.replaceWith(x(o,e.get(r),e.set(r,a)))}else{e.memoise(r,2);t.replaceWith(e.set(r,l(o,e.get(r),a)))}}}function memberExpressionToFunctions(e,r,t){e.traverse(r,Object.assign({},k,t,{memoiser:new AssignmentMemoiser}))}r["default"]=memberExpressionToFunctions},4835:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(9491);var a=t(8622);const{callExpression:n,cloneNode:o,expressionStatement:i,identifier:l,importDeclaration:c,importDefaultSpecifier:d,importNamespaceSpecifier:u,importSpecifier:p,memberExpression:f,stringLiteral:y,variableDeclaration:g,variableDeclarator:h}=a;class ImportBuilder{constructor(e,r,t){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=r;this._hub=t;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],y(this._importedSource)));return this}require(){this._statements.push(i(n(l("require"),[y(this._importedSource)])));return this}namespace(e="namespace"){const r=this._scope.generateUidIdentifier(e);const t=this._statements[this._statements.length-1];s(t.type==="ImportDeclaration");s(t.specifiers.length===0);t.specifiers=[u(r)];this._resultName=o(r);return this}default(e){const r=this._scope.generateUidIdentifier(e);const t=this._statements[this._statements.length-1];s(t.type==="ImportDeclaration");s(t.specifiers.length===0);t.specifiers=[d(r)];this._resultName=o(r);return this}named(e,r){if(r==="default")return this.default(e);const t=this._scope.generateUidIdentifier(e);const a=this._statements[this._statements.length-1];s(a.type==="ImportDeclaration");s(a.specifiers.length===0);a.specifiers=[p(t,l(r))];this._resultName=o(t);return this}var(e){const r=this._scope.generateUidIdentifier(e);let t=this._statements[this._statements.length-1];if(t.type!=="ExpressionStatement"){s(this._resultName);t=i(this._resultName);this._statements.push(t)}this._statements[this._statements.length-1]=g("var",[h(r,t.expression)]);this._resultName=o(r);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const r=this._statements[this._statements.length-1];if(r.type==="ExpressionStatement"){r.expression=n(e,[r.expression])}else if(r.type==="VariableDeclaration"){s(r.declarations.length===1);r.declarations[0].init=n(e,[r.declarations[0].init])}else{s.fail("Unexpected type.")}return this}prop(e){const r=this._statements[this._statements.length-1];if(r.type==="ExpressionStatement"){r.expression=f(r.expression,l(e))}else if(r.type==="VariableDeclaration"){s(r.declarations.length===1);r.declarations[0].init=f(r.declarations[0].init,l(e))}else{s.fail("Unexpected type:"+r.type)}return this}read(e){this._resultName=f(this._resultName,l(e))}}r["default"]=ImportBuilder},8539:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(9491);var a=t(8622);var n=t(4835);var o=t(8089);const{numericLiteral:i,sequenceExpression:l}=a;class ImportInjector{constructor(e,r,t){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const s=e.find((e=>e.isProgram()));this._programPath=s;this._programScope=s.scope;this._hub=s.hub;this._defaultOpts=this._applyDefaults(r,t,true)}addDefault(e,r){return this.addNamed("default",e,r)}addNamed(e,r,t){s(typeof e==="string");return this._generateImport(this._applyDefaults(r,t),e)}addNamespace(e,r){return this._generateImport(this._applyDefaults(e,r),null)}addSideEffect(e,r){return this._generateImport(this._applyDefaults(e,r),void 0)}_applyDefaults(e,r,t=false){let a;if(typeof e==="string"){a=Object.assign({},this._defaultOpts,{importedSource:e},r)}else{s(!r,"Unexpected secondary arguments.");a=Object.assign({},this._defaultOpts,e)}if(!t&&r){if(r.nameHint!==undefined)a.nameHint=r.nameHint;if(r.blockHoist!==undefined)a.blockHoist=r.blockHoist}return a}_generateImport(e,r){const t=r==="default";const s=!!r&&!t;const a=r===null;const{importedSource:c,importedType:d,importedInterop:u,importingInterop:p,ensureLiveReference:f,ensureNoContext:y,nameHint:g,importPosition:h,blockHoist:b}=e;let x=g||r;const v=(0,o.default)(this._programPath);const j=v&&p==="node";const w=v&&p==="babel";if(h==="after"&&!v){throw new Error(`"importPosition": "after" is only supported in modules`)}const E=new n.default(c,this._programScope,this._hub);if(d==="es6"){if(!j&&!w){throw new Error("Cannot import an ES6 module from CommonJS")}E.import();if(a){E.namespace(g||c)}else if(t||s){E.named(x,r)}}else if(d!=="commonjs"){throw new Error(`Unexpected interopType "${d}"`)}else if(u==="babel"){if(j){x=x!=="default"?x:c;const e=`${c}$es6Default`;E.import();if(a){E.default(e).var(x||c).wildcardInterop()}else if(t){if(f){E.default(e).var(x||c).defaultInterop().read("default")}else{E.default(e).var(x).defaultInterop().prop(r)}}else if(s){E.default(e).read(r)}}else if(w){E.import();if(a){E.namespace(x||c)}else if(t||s){E.named(x,r)}}else{E.require();if(a){E.var(x||c).wildcardInterop()}else if((t||s)&&f){if(t){x=x!=="default"?x:c;E.var(x).read(r);E.defaultInterop()}else{E.var(c).read(r)}}else if(t){E.var(x).defaultInterop().prop(r)}else if(s){E.var(x).prop(r)}}}else if(u==="compiled"){if(j){E.import();if(a){E.default(x||c)}else if(t||s){E.default(c).read(x)}}else if(w){E.import();if(a){E.namespace(x||c)}else if(t||s){E.named(x,r)}}else{E.require();if(a){E.var(x||c)}else if(t||s){if(f){E.var(c).read(x)}else{E.prop(r).var(x)}}}}else if(u==="uncompiled"){if(t&&f){throw new Error("No live reference for commonjs default")}if(j){E.import();if(a){E.default(x||c)}else if(t){E.default(x)}else if(s){E.default(c).read(x)}}else if(w){E.import();if(a){E.default(x||c)}else if(t){E.default(x)}else if(s){E.named(x,r)}}else{E.require();if(a){E.var(x||c)}else if(t){E.var(x)}else if(s){if(f){E.var(c).read(x)}else{E.var(x).prop(r)}}}}else{throw new Error(`Unknown importedInterop "${u}".`)}const{statements:_,resultName:S}=E.done();this._insertStatements(_,h,b);if((t||s)&&y&&S.type!=="Identifier"){return l([i(0),S])}return S}_insertStatements(e,r="before",t=3){const s=this._programPath.get("body");if(r==="after"){for(let r=s.length-1;r>=0;r--){if(s[r].isImportDeclaration()){s[r].insertAfter(e);return}}}else{e.forEach((e=>{e._blockHoist=t}));const r=s.find((e=>{const r=e.node._blockHoist;return Number.isFinite(r)&&r<4}));if(r){r.insertBefore(e);return}}this._programPath.unshiftContainer("body",e)}}r["default"]=ImportInjector},3380:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"ImportInjector",{enumerable:true,get:function(){return s.default}});r.addDefault=addDefault;r.addNamed=addNamed;r.addNamespace=addNamespace;r.addSideEffect=addSideEffect;Object.defineProperty(r,"isModule",{enumerable:true,get:function(){return a.default}});var s=t(8539);var a=t(8089);function addDefault(e,r,t){return new s.default(e).addDefault(r,t)}function addNamed(e,r,t,a){return new s.default(e).addNamed(r,t,a)}function addNamespace(e,r,t){return new s.default(e).addNamespace(r,t)}function addSideEffect(e,r,t){return new s.default(e).addSideEffect(r,t)}},8089:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},3664:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.buildDynamicImport=buildDynamicImport;var s=t(8304);{r.getDynamicImportSource=function getDynamicImportSource(e){const[r]=e.arguments;return s.types.isStringLiteral(r)||s.types.isTemplateLiteral(r)?r:s.template.expression.ast`\`\${${r}}\``}}function buildDynamicImport(e,r,t,a){const n=s.types.isCallExpression(e)?e.arguments[0]:e.source;if(s.types.isStringLiteral(n)||s.types.isTemplateLiteral(n)&&n.quasis.length===0){if(r){return s.template.expression.ast` Promise.resolve().then(() => ${a(n)}) `}else return a(n)}const o=s.types.isTemplateLiteral(n)?s.types.identifier("specifier"):s.types.templateLiteral([s.types.templateElement({raw:""}),s.types.templateElement({raw:""})],[s.types.identifier("specifier")]);if(r){return s.template.expression.ast` (specifier => @@ -266,7 +266,7 @@ function () { throw new ReferenceError("'delete super[expr]' is invalid"); }() `])}else{return o.template.expression.ast` function () { throw new ReferenceError("'delete super.prop' is invalid"); }() - `}}};const v=Object.assign({},x,{prop(e){const{property:r}=e.node;if(this.memoiser.has(r)){return d(this.memoiser.get(r))}return d(r)},get(e){const{isStatic:r,getSuperRef:t}=this;const{computed:s}=e.node;const a=this.prop(e);let n;if(r){var o;n=(o=t())!=null?o:p(u("Function"),u("prototype"))}else{var i;n=p((i=t())!=null?i:u("Object"),u("prototype"))}return p(n,a,s)},set(e,r){const{computed:t}=e.node;const s=this.prop(e);return i("=",p(g(),s,t),r)},destructureSet(e){const{computed:r}=e.node;const t=this.prop(e);return p(g(),t,r)},call(e,r){return(0,n.default)(this.get(e),g(),r,false)},optionalCall(e,r){return(0,n.default)(this.get(e),g(),r,true)}});class ReplaceSupers{constructor(e){var r;const t=e.methodPath;this.methodPath=t;this.isDerivedConstructor=t.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=t.isObjectMethod()||t.node.static||(t.isStaticBlock==null?void 0:t.isStaticBlock());this.isPrivateMethod=t.isPrivate()&&t.isMethod();this.file=e.file;this.constantSuper=(r=e.constantSuper)!=null?r:e.isLoose;this.opts=e}getObjectRef(){return d(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return d(this.opts.superRef);if(this.opts.getSuperRef){return d(this.opts.getSuperRef())}}replace(){const{methodPath:e}=this;if(this.opts.refToPreserve){e.traverse(b,{refName:this.opts.refToPreserve.name})}const r=this.constantSuper?v:x;h.shouldSkip=r=>{if(r.parentPath===e){if(r.parentKey==="decorators"||r.parentKey==="key"){return true}}};(0,a.default)(e,h,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:r.get},r))}}r["default"]=ReplaceSupers},6118:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=simplifyAccess;var s=t(8622);const{LOGICAL_OPERATORS:a,assignmentExpression:n,binaryExpression:o,cloneNode:i,identifier:l,logicalExpression:c,numericLiteral:d,sequenceExpression:u,unaryExpression:p}=s;const f={AssignmentExpression:{exit(e){const{scope:r,seen:t,bindingNames:s}=this;if(e.node.operator==="=")return;if(t.has(e.node))return;t.add(e.node);const l=e.get("left");if(!l.isIdentifier())return;const d=l.node.name;if(!s.has(d))return;if(r.getBinding(d)!==e.scope.getBinding(d)){return}const u=e.node.operator.slice(0,-1);if(a.includes(u)){e.replaceWith(c(u,e.node.left,n("=",i(e.node.left),e.node.right)))}else{e.node.right=o(u,i(e.node.left),e.node.right);e.node.operator="="}}}};{f.UpdateExpression={exit(e){if(!this.includeUpdateExpression)return;const{scope:r,bindingNames:t}=this;const s=e.get("argument");if(!s.isIdentifier())return;const a=s.node.name;if(!t.has(a))return;if(r.getBinding(a)!==e.scope.getBinding(a)){return}if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){const r=e.node.operator=="++"?"+=":"-=";e.replaceWith(n(r,s.node,d(1)))}else if(e.node.prefix){e.replaceWith(n("=",l(a),o(e.node.operator[0],p("+",s.node),d(1))))}else{const r=e.scope.generateUidIdentifierBasedOnNode(s.node,"old");const t=r.name;e.scope.push({id:r});const a=o(e.node.operator[0],l(t),d(1));e.replaceWith(u([n("=",l(t),p("+",s.node)),n("=",i(s.node),a),l(t)]))}}}}function simplifyAccess(e,r){{var t;e.traverse(f,{scope:e.scope,bindingNames:r,seen:new WeakSet,includeUpdateExpression:(t=arguments[2])!=null?t:true})}}},5385:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isTransparentExprWrapper=isTransparentExprWrapper;r.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;r.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=t(8622);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:o,isTSSatisfiesExpression:i,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||i(e)||l(e)||o(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},9769:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isTransparentExprWrapper=isTransparentExprWrapper;r.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;r.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=t(8622);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:o,isTSSatisfiesExpression:i,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||i(e)||l(e)||o(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},9382:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isTransparentExprWrapper=isTransparentExprWrapper;r.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;r.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=t(8622);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:o,isTSSatisfiesExpression:i,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||i(e)||l(e)||o(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},7696:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=splitExportDeclaration;var s=t(8622);const{cloneNode:a,exportNamedDeclaration:n,exportSpecifier:o,identifier:i,variableDeclaration:l,variableDeclarator:c}=s;function splitExportDeclaration(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(e.isExportDefaultDeclaration()){const r=e.get("declaration");const t=r.isFunctionDeclaration()||r.isClassDeclaration();const s=r.isScope()?r.scope.parent:r.scope;let d=r.node.id;let u=false;if(!d){u=true;d=s.generateUidIdentifier("default");if(t||r.isFunctionExpression()||r.isClassExpression()){r.node.id=a(d)}}const p=t?r.node:l("var",[c(a(d),r.node)]);const f=n(null,[o(a(d),i("default"))]);e.insertAfter(f);e.replaceWith(p);if(u){s.registerDeclaration(e)}return e}else if(e.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=e.get("declaration");const t=r.getOuterBindingIdentifiers();const s=Object.keys(t).map((e=>o(i(e),i(e))));const d=n(null,s);e.insertAfter(d);e.replaceWith(r.node);return e}},4097:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=splitExportDeclaration;var s=t(8622);const{cloneNode:a,exportNamedDeclaration:n,exportSpecifier:o,identifier:i,variableDeclaration:l,variableDeclarator:c}=s;function splitExportDeclaration(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(e.isExportDefaultDeclaration()){const r=e.get("declaration");const t=r.isFunctionDeclaration()||r.isClassDeclaration();const s=r.isFunctionExpression()||r.isClassExpression();const d=r.isScope()?r.scope.parent:r.scope;let u=r.node.id;let p=false;if(!u){p=true;u=d.generateUidIdentifier("default");if(t||s){r.node.id=a(u)}}else if(s&&d.hasBinding(u.name)){p=true;u=d.generateUidIdentifier(u.name)}const f=t?r.node:l("var",[c(a(u),r.node)]);const y=n(null,[o(a(u),i("default"))]);e.insertAfter(y);e.replaceWith(f);if(p){d.registerDeclaration(e)}return e}else if(e.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=e.get("declaration");const t=r.getOuterBindingIdentifiers();const s=Object.keys(t).map((e=>o(i(e),i(e))));const d=n(null,s);e.insertAfter(d);e.replaceWith(r.node);return e}},9053:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=splitExportDeclaration;var s=t(8622);const{cloneNode:a,exportNamedDeclaration:n,exportSpecifier:o,identifier:i,variableDeclaration:l,variableDeclarator:c}=s;function splitExportDeclaration(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(e.isExportDefaultDeclaration()){const r=e.get("declaration");const t=r.isFunctionDeclaration()||r.isClassDeclaration();const s=r.isFunctionExpression()||r.isClassExpression();const d=r.isScope()?r.scope.parent:r.scope;let u=r.node.id;let p=false;if(!u){p=true;u=d.generateUidIdentifier("default");if(t||s){r.node.id=a(u)}}else if(s&&d.hasBinding(u.name)){p=true;u=d.generateUidIdentifier(u.name)}const f=t?r.node:l("var",[c(a(u),r.node)]);const y=n(null,[o(a(u),i("default"))]);e.insertAfter(y);e.replaceWith(f);if(p){d.registerDeclaration(e)}return e}else if(e.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=e.get("declaration");const t=r.getOuterBindingIdentifiers();const s=Object.keys(t).map((e=>o(i(e),i(e))));const d=n(null,s);e.insertAfter(d);e.replaceWith(r.node);return e}},4387:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+t+"]");const n=new RegExp("["+t+s+"]");t=s=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,r){let t=65536;for(let s=0,a=r.length;se)return false;t+=r[s+1];if(t>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,i)}function isIdentifierName(e){let r=true;for(let t=0;t{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var s=t(4387);var a=t(4348)},4348:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const t={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(t.keyword);const a=new Set(t.strict);const n=new Set(t.strictBind);function isReservedWord(e,r){return r&&e==="await"||e==="enum"}function isStrictReservedWord(e,r){return isReservedWord(e,r)||a.has(e)}function isStrictBindOnlyReservedWord(e){return n.has(e)}function isStrictBindReservedWord(e,r){return isStrictReservedWord(e,r)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},2916:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+t+"]");const n=new RegExp("["+t+s+"]");t=s=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,r){let t=65536;for(let s=0,a=r.length;se)return false;t+=r[s+1];if(t>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,i)}function isIdentifierName(e){let r=true;for(let t=0;t{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var s=t(2916);var a=t(9676)},9676:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const t={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(t.keyword);const a=new Set(t.strict);const n=new Set(t.strictBind);function isReservedWord(e,r){return r&&e==="await"||e==="enum"}function isStrictReservedWord(e,r){return isReservedWord(e,r)||a.has(e)}function isStrictBindOnlyReservedWord(e){return n.has(e)}function isStrictBindReservedWord(e,r){return isStrictReservedWord(e,r)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},3530:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.findSuggestion=findSuggestion;const{min:t}=Math;function levenshtein(e,r){let s=[],a=[],n,o;const i=e.length,l=r.length;if(!i){return l}if(!l){return i}for(o=0;o<=l;o++){s[o]=o}for(n=1;n<=i;n++){for(a=[n],o=1;o<=l;o++){a[o]=e[n-1]===r[o-1]?s[o-1]:t(s[o-1],s[o],a[o-1])+1}s=a}return a[l]}function findSuggestion(e,r){const s=r.map((r=>levenshtein(r,e)));return r[s.indexOf(t(...s))]}},2445:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"OptionValidator",{enumerable:true,get:function(){return s.OptionValidator}});Object.defineProperty(r,"findSuggestion",{enumerable:true,get:function(){return a.findSuggestion}});var s=t(7657);var a=t(3530)},7657:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.OptionValidator=void 0;var s=t(3530);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,r){const t=Object.keys(r);for(const r of Object.keys(e)){if(!t.includes(r)){throw new Error(this.formatMessage(`'${r}' is not a valid top-level option.\n- Did you mean '${(0,s.findSuggestion)(r,t)}'?`))}}}validateBooleanOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="boolean",`'${e}' option must be a boolean.`)}return r}validateStringOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="string",`'${e}' option must be a string.`)}return r}invariant(e,r){if(!e){throw new Error(this.formatMessage(r))}}formatMessage(e){return`${this.descriptor}: ${e}`}}r.OptionValidator=OptionValidator},8112:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.findSuggestion=findSuggestion;const{min:t}=Math;function levenshtein(e,r){let s=[],a=[],n,o;const i=e.length,l=r.length;if(!i){return l}if(!l){return i}for(o=0;o<=l;o++){s[o]=o}for(n=1;n<=i;n++){for(a=[n],o=1;o<=l;o++){a[o]=e[n-1]===r[o-1]?s[o-1]:t(s[o-1],s[o],a[o-1])+1}s=a}return a[l]}function findSuggestion(e,r){const s=r.map((r=>levenshtein(r,e)));return r[s.indexOf(t(...s))]}},4716:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"OptionValidator",{enumerable:true,get:function(){return s.OptionValidator}});Object.defineProperty(r,"findSuggestion",{enumerable:true,get:function(){return a.findSuggestion}});var s=t(2729);var a=t(8112)},2729:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.OptionValidator=void 0;var s=t(8112);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,r){const t=Object.keys(r);for(const r of Object.keys(e)){if(!t.includes(r)){throw new Error(this.formatMessage(`'${r}' is not a valid top-level option.\n- Did you mean '${(0,s.findSuggestion)(r,t)}'?`))}}}validateBooleanOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="boolean",`'${e}' option must be a boolean.`)}return r}validateStringOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="string",`'${e}' option must be a string.`)}return r}invariant(e,r){if(!e){throw new Error(this.formatMessage(r))}}formatMessage(e){return`${this.descriptor}: ${e}`}}r.OptionValidator=OptionValidator},1340:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=wrapFunction;var s=t(2528);var a=t(789);var n=t(8622);const{blockStatement:o,callExpression:i,functionExpression:l,isAssignmentPattern:c,isFunctionDeclaration:d,isRestElement:u,returnStatement:p,isCallExpression:f}=n;const y=a.default.expression(`\n (function () {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })()\n`);const g=a.default.expression(`\n (function () {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })()\n`);const h=a.default.statements(`\n function NAME(PARAMS) { return REF.apply(this, arguments); }\n function REF() {\n REF = FUNCTION;\n return REF.apply(this, arguments);\n }\n`);function classOrObjectMethod(e,r){const t=e.node;const s=t.body;const a=l(null,[],o(s.body),true);s.body=[p(i(i(r,[a]),[]))];t.async=false;t.generator=false;e.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment()}function plainFunction(e,r,t,a){let n=e;let o;let l=null;const p=e.node.params;if(n.isArrowFunctionExpression()){{var b;n=(b=n.arrowFunctionToExpression({noNewArrows:t}))!=null?b:n}o=n.node}else{o=n.node}const x=d(o);let v=o;if(!f(o)){l=o.id;o.id=null;o.type="FunctionExpression";v=i(r,[o])}const j=[];for(const e of p){if(c(e)||u(e)){break}j.push(n.scope.generateUidIdentifier("x"))}const w={NAME:l||null,REF:n.scope.generateUidIdentifier(l?l.name:"ref"),FUNCTION:v,PARAMS:j};if(x){const e=h(w);n.replaceWith(e[0]);n.insertAfter(e[1])}else{let e;if(l){e=g(w)}else{e=y(w);const r=e.callee.body.body[1].argument;(0,s.default)({node:r,parent:n.parent,scope:n.scope});l=r.id}if(l||!a&&j.length){n.replaceWith(e)}else{n.replaceWith(v)}}}function wrapFunction(e,r,t=true,s=false){if(e.isMethod()){classOrObjectMethod(e,r)}else{plainFunction(e,r,t,s)}}},5771:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var s=t(8874);var a=t(5018);var n=_interopRequireWildcard(t(1437),true);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var s={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(s,n,o):s[n]=e[n]}return s.default=e,t&&t.set(e,s),s}const o=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,n.createColors)(false):n.default;const compose=(e,r)=>t=>e(r(t));const i=new Set(["as","async","from","get","of","set"]);function getDefs(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.gray,invalid:compose(compose(e.white,e.bgRed),e.bold)}}const l=/\r\n|[\n\r\u2028\u2029]/;const c=/^[()[\]{}]$/;let d;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(r,t,s){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||i.has(r.value)){return"keyword"}if(e.test(r.value)&&(s[t-1]==="<"||s.slice(t-2,t)==="r(e))).join("\n")}else{t+=a}}return t}function shouldHighlight(e){return o.isColorSupported||e.forceColor}let u=undefined;function getColors(e){if(e){var r;(r=u)!=null?r:u=(0,n.createColors)(true);return u}return o}function highlight(e,r={}){if(e!==""&&shouldHighlight(r)){const t=getDefs(getColors(r.forceColor));return highlightTokens(t,e)}else{return e}}{let e,s;r.getChalk=({forceColor:r})=>{var a;(a=e)!=null?a:e=t(6148);if(r){var n;(n=s)!=null?n:s=new e.constructor({enabled:true,level:1});return s}return e}}},3636:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(5389);function shouldTransform(e){const{node:r}=e;const t=r.id;if(!t)return false;const s=t.name;const a=e.scope.getOwnBinding(s);if(a===undefined){return false}if(a.kind!=="param"){return false}if(a.identifier===a.path.node){return false}return s}var a=s.declare((e=>{e.assertVersion("^7.16.0");return{name:"plugin-bugfix-safari-id-destructuring-collision-in-function-expression",visitor:{FunctionExpression(e){const r=shouldTransform(e);if(r){const{scope:t}=e;const s=t.generateUid(r);t.rename(r,s)}}}}}));r["default"]=a},3257:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(5389);var a=t(8220);var n=t(9769);var o=t(8304);function matchAffectedArguments(e){const r=e.findIndex((e=>o.types.isSpreadElement(e)));return r>=0&&r!==e.length-1}function shouldTransform(e){let r=e;const t=[];for(;;){if(r.isOptionalMemberExpression()){t.push(r.node);r=n.skipTransparentExprWrappers(r.get("object"))}else if(r.isOptionalCallExpression()){t.push(r.node);r=n.skipTransparentExprWrappers(r.get("callee"))}else{break}}for(let e=0;e{var r,t;e.assertVersion(7);const s=(r=e.assumption("noDocumentAll"))!=null?r:false;const n=(t=e.assumption("pureGetters"))!=null?t:false;return{name:"bugfix-v8-spread-parameters-in-optional-chaining",visitor:{"OptionalCallExpression|OptionalMemberExpression"(e){if(shouldTransform(e)){a.transform(e,{noDocumentAll:s,pureGetters:n})}}}}}));r["default"]=i},5806:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6770);var a=t(7953);var n=(0,s.declare)(((e,r)=>{e.assertVersion(7);return(0,a.createClassFeaturePlugin)({name:"proposal-class-properties",api:e,feature:a.FEATURES.fields,loose:r.loose,manipulateOptions(e,r){r.plugins.push("classProperties","classPrivateProperties")}})}));r["default"]=n},4578:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6770);var a=t(301);var n=t(8304);var o=(0,s.declare)((e=>{e.assertVersion(7);return{name:"proposal-export-namespace-from",inherits:a.default,visitor:{ExportNamedDeclaration(e){var r;const{node:t,scope:s}=e;const{specifiers:a}=t;const o=n.types.isExportDefaultSpecifier(a[0])?1:0;if(!n.types.isExportNamespaceSpecifier(a[o]))return;const i=[];if(o===1){i.push(n.types.exportNamedDeclaration(null,[a.shift()],t.source))}const l=a.shift();const{exported:c}=l;const d=s.generateUidIdentifier((r=c.name)!=null?r:c.value);i.push(n.types.importDeclaration([n.types.importNamespaceSpecifier(d)],n.types.cloneNode(t.source)),n.types.exportNamedDeclaration(null,[n.types.exportSpecifier(n.types.cloneNode(d),c)]));if(t.specifiers.length>=1){i.push(t)}const[u]=e.replaceWithMultiple(i);e.scope.registerDeclaration(u)}}}}));r["default"]=o},4206:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6770);var a=t(4100);function remover({node:e}){var r;const{extra:t}=e;if(t!=null&&(r=t.raw)!=null&&r.includes("_")){t.raw=t.raw.replace(/_/g,"")}}var n=(0,s.declare)((e=>{e.assertVersion(7);return{name:"proposal-numeric-separator",inherits:a.default,visitor:{NumericLiteral:remover,BigIntLiteral:remover}}}));r["default"]=n},9050:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(6770);var a=t(3322);var n=t(8304);var o=t(7255);var i=t(8522);var l=t(8626);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var c=_interopDefaultLegacy(l);const{isObjectProperty:d,isArrayPattern:u,isObjectPattern:p,isAssignmentPattern:f,isRestElement:y,isIdentifier:g}=n.types;function shouldStoreRHSInTemporaryVariable(e){if(u(e)){const r=e.elements.filter((e=>e!==null));if(r.length>1)return true;else return shouldStoreRHSInTemporaryVariable(r[0])}else if(p(e)){const{properties:r}=e;if(r.length>1)return true;else if(r.length===0)return false;else{const e=r[0];if(d(e)){return shouldStoreRHSInTemporaryVariable(e.value)}else{return shouldStoreRHSInTemporaryVariable(e)}}}else if(f(e)){return shouldStoreRHSInTemporaryVariable(e.left)}else if(y(e)){if(g(e.argument))return true;return shouldStoreRHSInTemporaryVariable(e.argument)}else{return false}}const{isAssignmentPattern:h,isObjectProperty:b}=n.types;{const e=n.types.identifier("a");const r=n.types.objectProperty(n.types.identifier("key"),e);const t=n.types.objectPattern([r]);var x=n.types.isReferenced(e,r,t)?1:0}var v=s.declare(((e,r)=>{var t,s,l,d;e.assertVersion(7);const u=e.targets();const p=!i.isRequired("es6.object.assign",u,{compatData:c["default"]});const{useBuiltIns:f=p,loose:y=false}=r;if(typeof y!=="boolean"){throw new Error(".loose must be a boolean, or undefined")}const g=(t=e.assumption("ignoreFunctionLength"))!=null?t:y;const v=(s=e.assumption("objectRestNoSymbols"))!=null?s:y;const j=(l=e.assumption("pureGetters"))!=null?l:y;const w=(d=e.assumption("setSpreadProperties"))!=null?d:y;function getExtendsHelper(e){return f?n.types.memberExpression(n.types.identifier("Object"),n.types.identifier("assign")):e.addHelper("extends")}function hasRestElement(e){let r=false;visitRestElements(e,(e=>{r=true;e.stop()}));return r}function hasObjectPatternRestElement(e){let r=false;visitRestElements(e,(e=>{if(e.parentPath.isObjectPattern()){r=true;e.stop()}}));return r}function visitRestElements(e,r){e.traverse({Expression(e){const{parent:r,key:t}=e;if(h(r)&&t==="right"||b(r)&&r.computed&&t==="key"){e.skip()}},RestElement:r})}function hasSpread(e){for(const r of e.properties){if(n.types.isSpreadElement(r)){return true}}return false}function extractNormalizedKeys(e){const r=e.properties;const t=[];let s=true;let a=false;for(const e of r){if(n.types.isIdentifier(e.key)&&!e.computed){t.push(n.types.stringLiteral(e.key.name))}else if(n.types.isTemplateLiteral(e.key)){t.push(n.types.cloneNode(e.key));a=true}else if(n.types.isLiteral(e.key)){t.push(n.types.stringLiteral(String(e.key.value)))}else{t.push(n.types.cloneNode(e.key));s=false}}return{keys:t,allLiteral:s,hasTemplateLiteral:a}}function replaceImpureComputedKeys(e,r){const t=[];for(const s of e){const e=s.get("key");if(s.node.computed&&!e.isPure()){const s=r.generateUidBasedOnNode(e.node);const a=n.types.variableDeclarator(n.types.identifier(s),e.node);t.push(a);e.replaceWith(n.types.identifier(s))}}return t}function removeUnusedExcludedKeys(e){const r=e.getOuterBindingIdentifierPaths();Object.keys(r).forEach((t=>{const s=r[t].parentPath;if(e.scope.getBinding(t).references>x||!s.isObjectProperty()){return}s.remove()}))}function createObjectRest(e,r,t){const s=e.get("properties");const a=s[s.length-1];n.types.assertRestElement(a.node);const o=n.types.cloneNode(a.node);a.remove();const i=replaceImpureComputedKeys(e.get("properties"),e.scope);const{keys:l,allLiteral:c,hasTemplateLiteral:d}=extractNormalizedKeys(e.node);if(l.length===0){return[i,o.argument,n.types.callExpression(getExtendsHelper(r),[n.types.objectExpression([]),n.types.sequenceExpression([n.types.callExpression(r.addHelper("objectDestructuringEmpty"),[n.types.cloneNode(t)]),n.types.cloneNode(t)])])]}let u;if(!c){u=n.types.callExpression(n.types.memberExpression(n.types.arrayExpression(l),n.types.identifier("map")),[r.addHelper("toPropertyKey")])}else{u=n.types.arrayExpression(l);if(!d&&!n.types.isProgram(e.scope.block)){const r=e.findParent((e=>e.isProgram()));const t=e.scope.generateUidIdentifier("excluded");r.scope.push({id:t,init:u,kind:"const"});u=n.types.cloneNode(t)}}return[i,o.argument,n.types.callExpression(r.addHelper(`objectWithoutProperties${v?"Loose":""}`),[n.types.cloneNode(t),u])]}function replaceRestElement(e,r,t){if(r.isAssignmentPattern()){replaceRestElement(e,r.get("left"),t);return}if(r.isArrayPattern()&&hasRestElement(r)){const s=r.get("elements");for(let r=0;re.skip(),"ReferencedIdentifier|BindingIdentifier":IdentifierHandler},e.scope)}}}if(!a){for(let s=0;se>=n-1||t.has(e);o.convertFunctionParams(e,g,shouldTransformParam,replaceRestElement)}},VariableDeclarator(e,r){if(!e.get("id").isObjectPattern()){return}let t=e;const s=e;visitRestElements(e.get("id"),(e=>{if(!e.parentPath.isObjectPattern()){return}if(shouldStoreRHSInTemporaryVariable(s.node.id)&&!n.types.isIdentifier(s.node.init)){const r=e.scope.generateUidIdentifierBasedOnNode(s.node.init,"ref");s.insertBefore(n.types.variableDeclarator(r,s.node.init));s.replaceWith(n.types.variableDeclarator(s.node.id,n.types.cloneNode(r)));return}let a=s.node.init;const o=[];let i;e.findParent((e=>{if(e.isObjectProperty()){o.unshift(e)}else if(e.isVariableDeclarator()){i=e.parentPath.node.kind;return true}}));const l=replaceImpureComputedKeys(o,e.scope);o.forEach((e=>{const{node:r}=e;a=n.types.memberExpression(a,n.types.cloneNode(r.key),r.computed||n.types.isLiteral(r.key))}));const c=e.findParent((e=>e.isObjectPattern()));const[d,u,p]=createObjectRest(c,r,a);if(j){removeUnusedExcludedKeys(c)}n.types.assertIdentifier(u);t.insertBefore(d);t.insertBefore(l);t=t.insertAfter(n.types.variableDeclarator(u,p))[0];e.scope.registerBinding(i,t);if(c.node.properties.length===0){c.findParent((e=>e.isObjectProperty()||e.isVariableDeclarator())).remove()}}))},ExportNamedDeclaration(e){const r=e.get("declaration");if(!r.isVariableDeclaration())return;const t=r.get("declarations").some((e=>hasObjectPatternRestElement(e.get("id"))));if(!t)return;const s=[];for(const r of Object.keys(e.getOuterBindingIdentifiers(true))){s.push(n.types.exportSpecifier(n.types.identifier(r),n.types.identifier(r)))}e.replaceWith(r.node);e.insertAfter(n.types.exportNamedDeclaration(null,s))},CatchClause(e){const r=e.get("param");replaceRestElement(e,r)},AssignmentExpression(e,r){const t=e.get("left");if(t.isObjectPattern()&&hasRestElement(t)){const s=[];const a=e.scope.generateUidBasedOnNode(e.node.right,"ref");s.push(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.identifier(a),e.node.right)]));const[o,i,l]=createObjectRest(t,r,n.types.identifier(a));if(o.length>0){s.push(n.types.variableDeclaration("var",o))}const c=n.types.cloneNode(e.node);c.right=n.types.identifier(a);s.push(n.types.expressionStatement(c));s.push(n.types.expressionStatement(n.types.assignmentExpression("=",i,l)));s.push(n.types.expressionStatement(n.types.identifier(a)));e.replaceWithMultiple(s)}},ForXStatement(e){const{node:r,scope:t}=e;const s=e.get("left");const a=r.left;if(!hasObjectPatternRestElement(s)){return}if(!n.types.isVariableDeclaration(a)){const s=t.generateUidIdentifier("ref");r.left=n.types.variableDeclaration("var",[n.types.variableDeclarator(s)]);e.ensureBlock();const o=e.node.body;if(o.body.length===0&&e.isCompletionRecord()){o.body.unshift(n.types.expressionStatement(t.buildUndefinedNode()))}o.body.unshift(n.types.expressionStatement(n.types.assignmentExpression("=",a,n.types.cloneNode(s))))}else{const s=a.declarations[0].id;const o=t.generateUidIdentifier("ref");r.left=n.types.variableDeclaration(a.kind,[n.types.variableDeclarator(o,null)]);e.ensureBlock();const i=r.body;i.body.unshift(n.types.variableDeclaration(r.left.kind,[n.types.variableDeclarator(s,n.types.cloneNode(o))]))}},ArrayPattern(e){const r=[];visitRestElements(e,(e=>{if(!e.parentPath.isObjectPattern()){return}const t=e.parentPath;const s=e.scope.generateUidIdentifier("ref");r.push(n.types.variableDeclarator(t.node,s));t.replaceWith(n.types.cloneNode(s));e.skip()}));if(r.length>0){const t=e.getStatementParent();const s=t.node;const a=s.type==="VariableDeclaration"?s.kind:"var";t.insertAfter(n.types.variableDeclaration(a,r))}},ObjectExpression(e,r){if(!hasSpread(e.node))return;let t;if(w){t=getExtendsHelper(r)}else{try{t=r.addHelper("objectSpread2")}catch(e){this.file.declarations["objectSpread2"]=null;t=r.addHelper("objectSpread")}}let s=null;let a=[];function make(){const e=a.length>0;const r=n.types.objectExpression(a);a=[];if(!s){s=n.types.callExpression(t,[r]);return}if(j){if(e){s.arguments.push(r)}return}s=n.types.callExpression(n.types.cloneNode(t),[s,...e?[n.types.objectExpression([]),r]:[]])}for(const r of e.node.properties){if(n.types.isSpreadElement(r)){make();s.arguments.push(r.argument)}else{a.push(r)}}if(a.length)make();e.replaceWith(s)}}}}));r["default"]=v},5579:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-import-assertions",manipulateOptions(e,r){r.plugins.push("importAssertions")}}}));r["default"]=a},4810:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)(((e,{deprecatedAssertSyntax:r})=>{e.assertVersion("^7.22.0");if(r!=null&&typeof r!=="boolean"){throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified.")}return{name:"syntax-import-attributes",manipulateOptions({parserOpts:e,generatorOpts:t}){var s;(s=t.importAttributesKeyword)!=null?s:t.importAttributesKeyword="with";e.plugins.push(["importAttributes",{deprecatedAssertSyntax:Boolean(r)}])}}}));r["default"]=a},6085:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-jsx",manipulateOptions(e,r){{if(r.plugins.some((e=>(Array.isArray(e)?e[0]:e)==="typescript"))){return}}r.plugins.push("jsx")}}}));r["default"]=a},6141:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);{var removePlugin=function(e,r){const t=[];e.forEach(((e,s)=>{const a=Array.isArray(e)?e[0]:e;if(a===r){t.unshift(s)}}));for(const r of t){e.splice(r,1)}}}var a=(0,s.declare)(((e,r)=>{e.assertVersion(7);const{disallowAmbiguousJSXLike:t,dts:s}=r;{var{isTSX:a}=r}return{name:"syntax-typescript",manipulateOptions(e,r){{const{plugins:e}=r;removePlugin(e,"flow");removePlugin(e,"jsx");e.push("objectRestSpread","classProperties");if(a){e.push("jsx")}}r.plugins.push(["typescript",{disallowAmbiguousJSXLike:t,dts:s}])}}}));r["default"]=a},6237:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(176);var a=t(5389);var n=(0,a.declare)((e=>{e.assertVersion(7);return(0,s.createRegExpFeaturePlugin)({name:"syntax-unicode-sets-regex",feature:"unicodeSetsFlag_syntax",manipulateOptions(e,r){r.plugins.push("regexpUnicodeSets")}})}));r["default"]=n},3628:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)(((e,r)=>{var t;e.assertVersion(7);const s=(t=e.assumption("noNewArrows"))!=null?t:!r.spec;return{name:"transform-arrow-functions",visitor:{ArrowFunctionExpression(e){if(!e.isArrowFunctionExpression())return;{e.arrowFunctionToExpression({allowInsertArrow:false,noNewArrows:s,specCompliant:!s})}}}}}));r["default"]=a},1971:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;var s=t(8304);const a=(0,s.template)(`\n async function wrapper() {\n var ITERATOR_ABRUPT_COMPLETION = false;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY;\n ITERATOR_ABRUPT_COMPLETION = !(STEP_KEY = await ITERATOR_KEY.next()).done;\n ITERATOR_ABRUPT_COMPLETION = false\n ) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (ITERATOR_ABRUPT_COMPLETION && ITERATOR_KEY.return != null) {\n await ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n`);function _default(e,{getAsyncIterator:r}){const{node:t,scope:n,parent:o}=e;const i=n.generateUidIdentifier("step");const l=s.types.memberExpression(i,s.types.identifier("value"));const c=t.left;let d;if(s.types.isIdentifier(c)||s.types.isPattern(c)||s.types.isMemberExpression(c)){d=s.types.expressionStatement(s.types.assignmentExpression("=",c,l))}else if(s.types.isVariableDeclaration(c)){d=s.types.variableDeclaration(c.kind,[s.types.variableDeclarator(c.declarations[0].id,l)])}let u=a({ITERATOR_HAD_ERROR_KEY:n.generateUidIdentifier("didIteratorError"),ITERATOR_ABRUPT_COMPLETION:n.generateUidIdentifier("iteratorAbruptCompletion"),ITERATOR_ERROR_KEY:n.generateUidIdentifier("iteratorError"),ITERATOR_KEY:n.generateUidIdentifier("iterator"),GET_ITERATOR:r,OBJECT:t.right,STEP_KEY:s.types.cloneNode(i)});u=u.body.body;const p=s.types.isLabeledStatement(o);const f=u[3].block.body;const y=f[0];if(p){f[0]=s.types.labeledStatement(o.label,y)}return{replaceParent:p,node:u,declar:d,loop:y}}},4766:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(322);var n=t(8304);var o=t(1971);var i=t(8552);var l=(0,s.declare)((e=>{e.assertVersion(7);const r=n.traverse.visitors.merge([{ArrowFunctionExpression(e){e.skip()},YieldExpression({node:e},r){if(!e.delegate)return;const t=n.types.callExpression(r.addHelper("asyncIterator"),[e.argument]);e.argument=n.types.callExpression(r.addHelper("asyncGeneratorDelegate"),[t,r.addHelper("awaitAsyncGenerator")])}},i.default]);const s=n.traverse.visitors.merge([{ArrowFunctionExpression(e){e.skip()},ForOfStatement(e,{file:r}){const{node:t}=e;if(!t.await)return;const s=(0,o.default)(e,{getAsyncIterator:r.addHelper("asyncIterator")});const{declar:a,loop:i}=s;const l=i.body;e.ensureBlock();if(a){l.body.push(a);if(e.node.body.body.length){l.body.push(n.types.blockStatement(e.node.body.body))}}else{l.body.push(...e.node.body.body)}n.types.inherits(i,t);n.types.inherits(i.body,t.body);const c=s.replaceParent?e.parentPath:e;c.replaceWithMultiple(s.node);c.scope.parent.crawl()}},i.default]);const l={Function(e,t){if(!e.node.async)return;e.traverse(s,t);if(!e.node.generator)return;e.traverse(r,t);(0,a.default)(e,{wrapAsync:t.addHelper("wrapAsyncGenerator"),wrapAwait:t.addHelper("awaitAsyncGenerator")})}};return{name:"transform-async-generator-functions",inherits:t(3975)["default"],visitor:{Program(e,r){e.traverse(l,r)}}}}));r["default"]=l},3055:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(322);var n=t(3380);var o=t(8304);var i=(0,s.declare)(((e,r)=>{var t,s;e.assertVersion(7);const{method:i,module:l}=r;const c=(t=e.assumption("noNewArrows"))!=null?t:true;const d=(s=e.assumption("ignoreFunctionLength"))!=null?s:false;if(i&&l){return{name:"transform-async-to-generator",visitor:{Function(e,r){if(!e.node.async||e.node.generator)return;let t=r.methodWrapper;if(t){t=o.types.cloneNode(t)}else{t=r.methodWrapper=(0,n.addNamed)(e,i,l)}(0,a.default)(e,{wrapAsync:t},c,d)}}}}return{name:"transform-async-to-generator",visitor:{Function(e,r){if(!e.node.async||e.node.generator)return;(0,a.default)(e,{wrapAsync:r.addHelper("asyncToGenerator")},c,d)}}}}));r["default"]=i},1242:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(8304);var n=(0,s.declare)((e=>{e.assertVersion(7);function transformStatementList(e){for(const r of e){if(!r.isFunctionDeclaration())continue;const e=r.node;const t=a.types.variableDeclaration("let",[a.types.variableDeclarator(e.id,a.types.toExpression(e))]);t._blockHoist=2;e.id=null;r.replaceWith(t)}}return{name:"transform-block-scoped-functions",visitor:{BlockStatement(e){const{node:r,parent:t}=e;if(a.types.isFunction(t,{body:r})||a.types.isExportDeclaration(t)){return}transformStatementList(e.get("body"))},SwitchCase(e){transformStatementList(e.get("consequent"))}}}}));r["default"]=n},4700:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.annexB33FunctionsVisitor=void 0;r.isVarScope=isVarScope;var s=t(8304);const a={VariableDeclaration(e){if(isStrict(e))return;if(e.node.kind!=="var")return;const r=e.scope.getFunctionParent()||e.scope.getProgramParent();r.path.traverse(n,{names:Object.keys(e.getBindingIdentifiers())})},BlockStatement(e){if(isStrict(e))return;if(s.types.isFunction(e.parent,{body:e.node}))return;transformStatementList(e.get("body"))},SwitchCase(e){if(isStrict(e))return;transformStatementList(e.get("consequent"))}};r.annexB33FunctionsVisitor=a;function transformStatementList(e){e:for(const r of e){if(!r.isFunctionDeclaration())continue;if(r.node.async||r.node.generator)return;const{scope:e}=r.parentPath;if(isVarScope(e))return;const{name:t}=r.node.id;let s=e;do{if(s.parent.hasOwnBinding(t))continue e;s=s.parent}while(!isVarScope(s));maybeTransformBlockScopedFunction(r)}}function maybeTransformBlockScopedFunction(e){const{node:r,parentPath:{scope:t}}=e;const{id:a}=r;t.removeOwnBinding(a.name);r.id=null;const n=s.types.variableDeclaration("var",[s.types.variableDeclarator(a,s.types.toExpression(r))]);n._blockHoist=2;const[o]=e.replaceWith(n);t.registerDeclaration(o)}const n={Scope(e,{names:r}){for(const t of r){const r=e.scope.getOwnBinding(t);if(r&&r.kind==="hoisted"){maybeTransformBlockScopedFunction(r.path)}}},"Expression|Declaration"(e){e.skip()}};function isVarScope(e){return e.path.isFunctionParent()||e.path.isProgram()}function isStrict(e){return!!e.find((({node:e})=>{var r;if(s.types.isProgram(e)){if(e.sourceType==="module")return true}else if(s.types.isClass(e)){return true}else if(!s.types.isBlockStatement(e)){return false}return(r=e.directives)==null?void 0:r.some((e=>e.value.value==="use strict"))}))}},6383:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(8304);var n=t(6713);var o=t(8643);var i=t(4700);var l=(0,s.declare)(((e,r)=>{e.assertVersion(7);const{throwIfClosureRequired:t=false,tdz:s=false}=r;if(typeof t!=="boolean"){throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`)}if(typeof s!=="boolean"){throw new Error(`.tdz must be a boolean, or undefined`)}return{name:"transform-block-scoping",visitor:a.traverse.visitors.merge([i.annexB33FunctionsVisitor,{Loop(e,r){const a=e.isForStatement();const o=a?e.get("init"):e.isForXStatement()?e.get("left"):null;let i=false;const markNeedsBodyWrap=()=>{if(t){throw e.buildCodeFrameError("Compiling let/const in this block would add a closure "+"(throwIfClosureRequired).")}i=true};const l=e.get("body");let c;if(l.isBlockStatement()){c=l.scope;const r=(0,n.getLoopBodyBindings)(e);for(const t of r){const{capturedInClosure:r}=(0,n.getUsageInBody)(t,e);if(r)markNeedsBodyWrap()}}const d=[];const u=new Map;if(o&&isBlockScoped(o.node)){const r=Object.keys(o.getBindingIdentifiers());const t=o.scope;for(let s of r){var p;if((p=c)!=null&&p.hasOwnBinding(s))continue;let r=t.getOwnBinding(s);if(!r){t.crawl();r=t.getOwnBinding(s)}const{usages:o,capturedInClosure:i,hasConstantViolations:l}=(0,n.getUsageInBody)(r,e);if(t.parent.hasBinding(s)||t.parent.hasGlobal(s)){const e=t.generateUid(s);t.rename(s,e);s=e}if(i){markNeedsBodyWrap();d.push(s)}if(a&&l){u.set(s,o)}}}if(i){const t=(0,n.wrapLoopBody)(e,d,u);if(o!=null&&o.isVariableDeclaration()){transformBlockScopedVariable(o,r,s)}t.get("declarations.0.init").unwrapFunctionEnvironment()}},VariableDeclaration(e,r){transformBlockScopedVariable(e,r,s)},ClassDeclaration(e){const{id:r}=e.node;if(!r)return;const{scope:t}=e.parentPath;if(!(0,i.isVarScope)(t)&&t.parent.hasBinding(r.name,{noUids:true})){e.scope.rename(r.name)}}}])}}));r["default"]=l;const c={Scope(e,{names:r}){for(const t of r){const r=e.scope.getOwnBinding(t);if(r&&r.kind==="hoisted"){e.scope.rename(t)}}},"Expression|Declaration"(e){e.skip()}};function transformBlockScopedVariable(e,r,t){if(!isBlockScoped(e.node))return;const s=(0,o.validateUsage)(e,r,t);e.node.kind="var";const i=Object.keys(e.getBindingIdentifiers());for(const r of i){const t=e.scope.getOwnBinding(r);if(!t)continue;t.kind="var"}if(isInLoop(e)&&!(0,n.isVarInLoopHead)(e)||s.length>0){for(const r of e.node.declarations){var l;(l=r.init)!=null?l:r.init=e.scope.buildUndefinedNode()}}const d=e.scope;const u=d.getFunctionParent()||d.getProgramParent();if(u!==d){for(const e of i){let r=e;if(d.parent.hasBinding(e,{noUids:true})||d.parent.hasGlobal(e)){r=d.generateUid(e);d.rename(e,r)}d.moveBindingTo(r,u)}}d.path.traverse(c,{names:i});for(const t of s){e.scope.push({id:a.types.identifier(t),init:r.addHelper("temporalUndefined")})}}function isLetOrConst(e){return e==="let"||e==="const"}function isInLoop(e){if(!e.parentPath)return false;if(e.parentPath.isLoop())return true;if(e.parentPath.isFunctionParent())return false;return isInLoop(e.parentPath)}function isBlockScoped(e){if(!a.types.isVariableDeclaration(e))return false;if(e[a.types.BLOCK_SCOPED_SYMBOL]){return true}if(!isLetOrConst(e.kind)&&e.kind!=="using"){return false}return true}},6713:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getLoopBodyBindings=getLoopBodyBindings;r.getUsageInBody=getUsageInBody;r.isVarInLoopHead=isVarInLoopHead;r.wrapLoopBody=wrapLoopBody;var s=t(8304);const a={"Expression|Declaration|Loop"(e){e.skip()},Scope(e,r){if(e.isFunctionParent())e.skip();const{bindings:t}=e.scope;for(const e of Object.keys(t)){const s=t[e];if(s.kind==="let"||s.kind==="const"||s.kind==="hoisted"){r.blockScoped.push(s)}}}};function getLoopBodyBindings(e){const r={blockScoped:[]};e.traverse(a,r);return r.blockScoped}function getUsageInBody(e,r){const t=new WeakSet;let s=false;const a=filterMap(e.constantViolations,(e=>{const{inBody:a,inClosure:n}=relativeLoopLocation(e,r);if(!a)return null;s||(s=n);const o=e.isUpdateExpression()?e.get("argument"):e.isAssignmentExpression()?e.get("left"):null;if(o)t.add(o.node);return o}));const n=filterMap(e.referencePaths,(e=>{if(t.has(e.node))return null;const{inBody:a,inClosure:n}=relativeLoopLocation(e,r);if(!a)return null;s||(s=n);return e}));return{capturedInClosure:s,hasConstantViolations:a.length>0,usages:n.concat(a)}}function relativeLoopLocation(e,r){const t=r.get("body");let s=false;for(let a=e;a;a=a.parentPath){if(a.isFunction()||a.isClass()||a.isMethod()){s=true}if(a===t){return{inBody:true,inClosure:s}}else if(a===r){return{inBody:false,inClosure:s}}}throw new Error("Internal Babel error: path is not in loop. Please report this as a bug.")}const n={Function(e){e.skip()},LabeledStatement:{enter({node:e},r){r.labelsStack.push(e.label.name)},exit({node:e},r){const t=r.labelsStack.pop();if(t!==e.label.name){throw new Error("Assertion failure. Please report this bug to Babel.")}}},Loop:{enter(e,r){r.labellessContinueTargets++;r.labellessBreakTargets++},exit(e,r){r.labellessContinueTargets--;r.labellessBreakTargets--}},SwitchStatement:{enter(e,r){r.labellessBreakTargets++},exit(e,r){r.labellessBreakTargets--}},"BreakStatement|ContinueStatement"(e,r){const{label:t}=e.node;if(t){if(r.labelsStack.includes(t.name))return}else if(e.isBreakStatement()?r.labellessBreakTargets>0:r.labellessContinueTargets>0){return}r.breaksContinues.push(e)},ReturnStatement(e,r){r.returns.push(e)},VariableDeclaration(e,r){if(e.parent===r.loopNode&&isVarInLoopHead(e))return;if(e.node.kind==="var")r.vars.push(e)}};function wrapLoopBody(e,r,t){const a=e.node;const o={breaksContinues:[],returns:[],labelsStack:[],labellessBreakTargets:0,labellessContinueTargets:0,vars:[],loopNode:a};e.traverse(n,o);const i=[];const l=[];const c=[];for(const[r,a]of t){i.push(s.types.identifier(r));const t=e.scope.generateUid(r);l.push(s.types.identifier(t));c.push(s.types.assignmentExpression("=",s.types.identifier(r),s.types.identifier(t)));for(const e of a)e.replaceWith(s.types.identifier(t))}for(const e of r){if(t.has(e))continue;i.push(s.types.identifier(e));l.push(s.types.identifier(e))}const d=e.scope.generateUid("loop");const u=s.types.functionExpression(null,l,s.types.toBlock(a.body));let p=s.types.callExpression(s.types.identifier(d),i);const f=e.findParent((e=>e.isFunction()));if(f){const{async:e,generator:r}=f.node;u.async=e;u.generator=r;if(r)p=s.types.yieldExpression(p,true);else if(e)p=s.types.awaitExpression(p)}const y=c.length>0?s.types.expressionStatement(s.types.sequenceExpression(c)):null;if(y)u.body.body.push(y);const[g]=e.insertBefore(s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.identifier(d),u)]));const h=[];const b=[];for(const e of o.vars){const r=[];for(const t of e.node.declarations){b.push(...Object.keys(s.types.getBindingIdentifiers(t.id)));if(t.init){r.push(s.types.assignmentExpression("=",t.id,t.init))}}if(r.length>0){let t=r.length===1?r[0]:s.types.sequenceExpression(r);if(!s.types.isForStatement(e.parent,{init:e.node})&&!s.types.isForXStatement(e.parent,{left:e.node})){t=s.types.expressionStatement(t)}e.replaceWith(t)}else{e.remove()}}if(b.length){g.pushContainer("declarations",b.map((e=>s.types.variableDeclarator(s.types.identifier(e)))))}const x=o.breaksContinues.length;const v=o.returns.length;if(x+v===0){h.push(s.types.expressionStatement(p))}else if(x===1&&v===0){for(const e of o.breaksContinues){const{node:r}=e;const{type:t,label:a}=r;let n=t==="BreakStatement"?"break":"continue";if(a)n+=" "+a.name;e.replaceWith(s.types.addComment(s.types.returnStatement(s.types.numericLiteral(1)),"trailing"," "+n,true));if(y)e.insertBefore(s.types.cloneNode(y));h.push(s.template.statement.ast` + `}}};const v=Object.assign({},x,{prop(e){const{property:r}=e.node;if(this.memoiser.has(r)){return d(this.memoiser.get(r))}return d(r)},get(e){const{isStatic:r,getSuperRef:t}=this;const{computed:s}=e.node;const a=this.prop(e);let n;if(r){var o;n=(o=t())!=null?o:p(u("Function"),u("prototype"))}else{var i;n=p((i=t())!=null?i:u("Object"),u("prototype"))}return p(n,a,s)},set(e,r){const{computed:t}=e.node;const s=this.prop(e);return i("=",p(g(),s,t),r)},destructureSet(e){const{computed:r}=e.node;const t=this.prop(e);return p(g(),t,r)},call(e,r){return(0,n.default)(this.get(e),g(),r,false)},optionalCall(e,r){return(0,n.default)(this.get(e),g(),r,true)}});class ReplaceSupers{constructor(e){var r;const t=e.methodPath;this.methodPath=t;this.isDerivedConstructor=t.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=t.isObjectMethod()||t.node.static||(t.isStaticBlock==null?void 0:t.isStaticBlock());this.isPrivateMethod=t.isPrivate()&&t.isMethod();this.file=e.file;this.constantSuper=(r=e.constantSuper)!=null?r:e.isLoose;this.opts=e}getObjectRef(){return d(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return d(this.opts.superRef);if(this.opts.getSuperRef){return d(this.opts.getSuperRef())}}replace(){const{methodPath:e}=this;if(this.opts.refToPreserve){e.traverse(b,{refName:this.opts.refToPreserve.name})}const r=this.constantSuper?v:x;h.shouldSkip=r=>{if(r.parentPath===e){if(r.parentKey==="decorators"||r.parentKey==="key"){return true}}};(0,a.default)(e,h,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:r.get},r))}}r["default"]=ReplaceSupers},6118:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=simplifyAccess;var s=t(8622);const{LOGICAL_OPERATORS:a,assignmentExpression:n,binaryExpression:o,cloneNode:i,identifier:l,logicalExpression:c,numericLiteral:d,sequenceExpression:u,unaryExpression:p}=s;const f={AssignmentExpression:{exit(e){const{scope:r,seen:t,bindingNames:s}=this;if(e.node.operator==="=")return;if(t.has(e.node))return;t.add(e.node);const l=e.get("left");if(!l.isIdentifier())return;const d=l.node.name;if(!s.has(d))return;if(r.getBinding(d)!==e.scope.getBinding(d)){return}const u=e.node.operator.slice(0,-1);if(a.includes(u)){e.replaceWith(c(u,e.node.left,n("=",i(e.node.left),e.node.right)))}else{e.node.right=o(u,i(e.node.left),e.node.right);e.node.operator="="}}}};{f.UpdateExpression={exit(e){if(!this.includeUpdateExpression)return;const{scope:r,bindingNames:t}=this;const s=e.get("argument");if(!s.isIdentifier())return;const a=s.node.name;if(!t.has(a))return;if(r.getBinding(a)!==e.scope.getBinding(a)){return}if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){const r=e.node.operator=="++"?"+=":"-=";e.replaceWith(n(r,s.node,d(1)))}else if(e.node.prefix){e.replaceWith(n("=",l(a),o(e.node.operator[0],p("+",s.node),d(1))))}else{const r=e.scope.generateUidIdentifierBasedOnNode(s.node,"old");const t=r.name;e.scope.push({id:r});const a=o(e.node.operator[0],l(t),d(1));e.replaceWith(u([n("=",l(t),p("+",s.node)),n("=",i(s.node),a),l(t)]))}}}}function simplifyAccess(e,r){{var t;e.traverse(f,{scope:e.scope,bindingNames:r,seen:new WeakSet,includeUpdateExpression:(t=arguments[2])!=null?t:true})}}},5385:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isTransparentExprWrapper=isTransparentExprWrapper;r.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;r.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=t(8622);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:o,isTSSatisfiesExpression:i,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||i(e)||l(e)||o(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},9769:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isTransparentExprWrapper=isTransparentExprWrapper;r.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;r.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=t(8622);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:o,isTSSatisfiesExpression:i,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||i(e)||l(e)||o(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},9382:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isTransparentExprWrapper=isTransparentExprWrapper;r.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;r.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=t(8622);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:o,isTSSatisfiesExpression:i,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||i(e)||l(e)||o(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},7696:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=splitExportDeclaration;var s=t(8622);const{cloneNode:a,exportNamedDeclaration:n,exportSpecifier:o,identifier:i,variableDeclaration:l,variableDeclarator:c}=s;function splitExportDeclaration(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(e.isExportDefaultDeclaration()){const r=e.get("declaration");const t=r.isFunctionDeclaration()||r.isClassDeclaration();const s=r.isScope()?r.scope.parent:r.scope;let d=r.node.id;let u=false;if(!d){u=true;d=s.generateUidIdentifier("default");if(t||r.isFunctionExpression()||r.isClassExpression()){r.node.id=a(d)}}const p=t?r.node:l("var",[c(a(d),r.node)]);const f=n(null,[o(a(d),i("default"))]);e.insertAfter(f);e.replaceWith(p);if(u){s.registerDeclaration(e)}return e}else if(e.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=e.get("declaration");const t=r.getOuterBindingIdentifiers();const s=Object.keys(t).map((e=>o(i(e),i(e))));const d=n(null,s);e.insertAfter(d);e.replaceWith(r.node);return e}},4097:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=splitExportDeclaration;var s=t(8622);const{cloneNode:a,exportNamedDeclaration:n,exportSpecifier:o,identifier:i,variableDeclaration:l,variableDeclarator:c}=s;function splitExportDeclaration(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(e.isExportDefaultDeclaration()){const r=e.get("declaration");const t=r.isFunctionDeclaration()||r.isClassDeclaration();const s=r.isFunctionExpression()||r.isClassExpression();const d=r.isScope()?r.scope.parent:r.scope;let u=r.node.id;let p=false;if(!u){p=true;u=d.generateUidIdentifier("default");if(t||s){r.node.id=a(u)}}else if(s&&d.hasBinding(u.name)){p=true;u=d.generateUidIdentifier(u.name)}const f=t?r.node:l("var",[c(a(u),r.node)]);const y=n(null,[o(a(u),i("default"))]);e.insertAfter(y);e.replaceWith(f);if(p){d.registerDeclaration(e)}return e}else if(e.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=e.get("declaration");const t=r.getOuterBindingIdentifiers();const s=Object.keys(t).map((e=>o(i(e),i(e))));const d=n(null,s);e.insertAfter(d);e.replaceWith(r.node);return e}},9053:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=splitExportDeclaration;var s=t(8622);const{cloneNode:a,exportNamedDeclaration:n,exportSpecifier:o,identifier:i,variableDeclaration:l,variableDeclarator:c}=s;function splitExportDeclaration(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(e.isExportDefaultDeclaration()){const r=e.get("declaration");const t=r.isFunctionDeclaration()||r.isClassDeclaration();const s=r.isFunctionExpression()||r.isClassExpression();const d=r.isScope()?r.scope.parent:r.scope;let u=r.node.id;let p=false;if(!u){p=true;u=d.generateUidIdentifier("default");if(t||s){r.node.id=a(u)}}else if(s&&d.hasBinding(u.name)){p=true;u=d.generateUidIdentifier(u.name)}const f=t?r.node:l("var",[c(a(u),r.node)]);const y=n(null,[o(a(u),i("default"))]);e.insertAfter(y);e.replaceWith(f);if(p){d.registerDeclaration(e)}return e}else if(e.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=e.get("declaration");const t=r.getOuterBindingIdentifiers();const s=Object.keys(t).map((e=>o(i(e),i(e))));const d=n(null,s);e.insertAfter(d);e.replaceWith(r.node);return e}},4387:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+t+"]");const n=new RegExp("["+t+s+"]");t=s=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,r){let t=65536;for(let s=0,a=r.length;se)return false;t+=r[s+1];if(t>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,i)}function isIdentifierName(e){let r=true;for(let t=0;t{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var s=t(4387);var a=t(4348)},4348:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const t={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(t.keyword);const a=new Set(t.strict);const n=new Set(t.strictBind);function isReservedWord(e,r){return r&&e==="await"||e==="enum"}function isStrictReservedWord(e,r){return isReservedWord(e,r)||a.has(e)}function isStrictBindOnlyReservedWord(e){return n.has(e)}function isStrictBindReservedWord(e,r){return isStrictReservedWord(e,r)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},2916:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+t+"]");const n=new RegExp("["+t+s+"]");t=s=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,r){let t=65536;for(let s=0,a=r.length;se)return false;t+=r[s+1];if(t>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,i)}function isIdentifierName(e){let r=true;for(let t=0;t{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var s=t(2916);var a=t(9676)},9676:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const t={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(t.keyword);const a=new Set(t.strict);const n=new Set(t.strictBind);function isReservedWord(e,r){return r&&e==="await"||e==="enum"}function isStrictReservedWord(e,r){return isReservedWord(e,r)||a.has(e)}function isStrictBindOnlyReservedWord(e){return n.has(e)}function isStrictBindReservedWord(e,r){return isStrictReservedWord(e,r)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},3530:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.findSuggestion=findSuggestion;const{min:t}=Math;function levenshtein(e,r){let s=[],a=[],n,o;const i=e.length,l=r.length;if(!i){return l}if(!l){return i}for(o=0;o<=l;o++){s[o]=o}for(n=1;n<=i;n++){for(a=[n],o=1;o<=l;o++){a[o]=e[n-1]===r[o-1]?s[o-1]:t(s[o-1],s[o],a[o-1])+1}s=a}return a[l]}function findSuggestion(e,r){const s=r.map((r=>levenshtein(r,e)));return r[s.indexOf(t(...s))]}},2445:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"OptionValidator",{enumerable:true,get:function(){return s.OptionValidator}});Object.defineProperty(r,"findSuggestion",{enumerable:true,get:function(){return a.findSuggestion}});var s=t(7657);var a=t(3530)},7657:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.OptionValidator=void 0;var s=t(3530);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,r){const t=Object.keys(r);for(const r of Object.keys(e)){if(!t.includes(r)){throw new Error(this.formatMessage(`'${r}' is not a valid top-level option.\n- Did you mean '${(0,s.findSuggestion)(r,t)}'?`))}}}validateBooleanOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="boolean",`'${e}' option must be a boolean.`)}return r}validateStringOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="string",`'${e}' option must be a string.`)}return r}invariant(e,r){if(!e){throw new Error(this.formatMessage(r))}}formatMessage(e){return`${this.descriptor}: ${e}`}}r.OptionValidator=OptionValidator},8112:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.findSuggestion=findSuggestion;const{min:t}=Math;function levenshtein(e,r){let s=[],a=[],n,o;const i=e.length,l=r.length;if(!i){return l}if(!l){return i}for(o=0;o<=l;o++){s[o]=o}for(n=1;n<=i;n++){for(a=[n],o=1;o<=l;o++){a[o]=e[n-1]===r[o-1]?s[o-1]:t(s[o-1],s[o],a[o-1])+1}s=a}return a[l]}function findSuggestion(e,r){const s=r.map((r=>levenshtein(r,e)));return r[s.indexOf(t(...s))]}},4716:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"OptionValidator",{enumerable:true,get:function(){return s.OptionValidator}});Object.defineProperty(r,"findSuggestion",{enumerable:true,get:function(){return a.findSuggestion}});var s=t(2729);var a=t(8112)},2729:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.OptionValidator=void 0;var s=t(8112);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,r){const t=Object.keys(r);for(const r of Object.keys(e)){if(!t.includes(r)){throw new Error(this.formatMessage(`'${r}' is not a valid top-level option.\n- Did you mean '${(0,s.findSuggestion)(r,t)}'?`))}}}validateBooleanOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="boolean",`'${e}' option must be a boolean.`)}return r}validateStringOption(e,r,t){if(r===undefined){return t}else{this.invariant(typeof r==="string",`'${e}' option must be a string.`)}return r}invariant(e,r){if(!e){throw new Error(this.formatMessage(r))}}formatMessage(e){return`${this.descriptor}: ${e}`}}r.OptionValidator=OptionValidator},1340:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=wrapFunction;var s=t(2528);var a=t(789);var n=t(8622);const{blockStatement:o,callExpression:i,functionExpression:l,isAssignmentPattern:c,isFunctionDeclaration:d,isRestElement:u,returnStatement:p,isCallExpression:f}=n;const y=a.default.expression(`\n (function () {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })()\n`);const g=a.default.expression(`\n (function () {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })()\n`);const h=a.default.statements(`\n function NAME(PARAMS) { return REF.apply(this, arguments); }\n function REF() {\n REF = FUNCTION;\n return REF.apply(this, arguments);\n }\n`);function classOrObjectMethod(e,r){const t=e.node;const s=t.body;const a=l(null,[],o(s.body),true);s.body=[p(i(i(r,[a]),[]))];t.async=false;t.generator=false;e.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment()}function plainFunction(e,r,t,a){let n=e;let o;let l=null;const p=e.node.params;if(n.isArrowFunctionExpression()){{var b;n=(b=n.arrowFunctionToExpression({noNewArrows:t}))!=null?b:n}o=n.node}else{o=n.node}const x=d(o);let v=o;if(!f(o)){l=o.id;o.id=null;o.type="FunctionExpression";v=i(r,[o])}const j=[];for(const e of p){if(c(e)||u(e)){break}j.push(n.scope.generateUidIdentifier("x"))}const w={NAME:l||null,REF:n.scope.generateUidIdentifier(l?l.name:"ref"),FUNCTION:v,PARAMS:j};if(x){const e=h(w);n.replaceWith(e[0]);n.insertAfter(e[1])}else{let e;if(l){e=g(w)}else{e=y(w);const r=e.callee.body.body[1].argument;(0,s.default)({node:r,parent:n.parent,scope:n.scope});l=r.id}if(l||!a&&j.length){n.replaceWith(e)}else{n.replaceWith(v)}}}function wrapFunction(e,r,t=true,s=false){if(e.isMethod()){classOrObjectMethod(e,r)}else{plainFunction(e,r,t,s)}}},5771:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var s=t(8874);var a=t(5018);var n=_interopRequireWildcard(t(1437),true);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var s={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(s,n,o):s[n]=e[n]}return s.default=e,t&&t.set(e,s),s}const o=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,n.createColors)(false):n.default;const compose=(e,r)=>t=>e(r(t));const i=new Set(["as","async","from","get","of","set"]);function getDefs(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.gray,invalid:compose(compose(e.white,e.bgRed),e.bold)}}const l=/\r\n|[\n\r\u2028\u2029]/;const c=/^[()[\]{}]$/;let d;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(r,t,s){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||i.has(r.value)){return"keyword"}if(e.test(r.value)&&(s[t-1]==="<"||s.slice(t-2,t)==="r(e))).join("\n")}else{t+=a}}return t}function shouldHighlight(e){return o.isColorSupported||e.forceColor}let u=undefined;function getColors(e){if(e){var r;(r=u)!=null?r:u=(0,n.createColors)(true);return u}return o}function highlight(e,r={}){if(e!==""&&shouldHighlight(r)){const t=getDefs(getColors(r.forceColor));return highlightTokens(t,e)}else{return e}}{let e,s;r.getChalk=({forceColor:r})=>{var a;(a=e)!=null?a:e=t(6148);if(r){var n;(n=s)!=null?n:s=new e.constructor({enabled:true,level:1});return s}return e}}},3636:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(5389);function shouldTransform(e){const{node:r}=e;const t=r.id;if(!t)return false;const s=t.name;const a=e.scope.getOwnBinding(s);if(a===undefined){return false}if(a.kind!=="param"){return false}if(a.identifier===a.path.node){return false}return s}var a=s.declare((e=>{e.assertVersion("^7.16.0");return{name:"plugin-bugfix-safari-id-destructuring-collision-in-function-expression",visitor:{FunctionExpression(e){const r=shouldTransform(e);if(r){const{scope:t}=e;const s=t.generateUid(r);t.rename(r,s)}}}}}));r["default"]=a},3257:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(5389);var a=t(8220);var n=t(9769);var o=t(8304);function matchAffectedArguments(e){const r=e.findIndex((e=>o.types.isSpreadElement(e)));return r>=0&&r!==e.length-1}function shouldTransform(e){let r=e;const t=[];for(;;){if(r.isOptionalMemberExpression()){t.push(r.node);r=n.skipTransparentExprWrappers(r.get("object"))}else if(r.isOptionalCallExpression()){t.push(r.node);r=n.skipTransparentExprWrappers(r.get("callee"))}else{break}}for(let e=0;e{var r,t;e.assertVersion(7);const s=(r=e.assumption("noDocumentAll"))!=null?r:false;const n=(t=e.assumption("pureGetters"))!=null?t:false;return{name:"bugfix-v8-spread-parameters-in-optional-chaining",visitor:{"OptionalCallExpression|OptionalMemberExpression"(e){if(shouldTransform(e)){a.transform(e,{noDocumentAll:s,pureGetters:n})}}}}}));r["default"]=i},5806:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6770);var a=t(7953);var n=(0,s.declare)(((e,r)=>{e.assertVersion(7);return(0,a.createClassFeaturePlugin)({name:"proposal-class-properties",api:e,feature:a.FEATURES.fields,loose:r.loose,manipulateOptions(e,r){r.plugins.push("classProperties","classPrivateProperties")}})}));r["default"]=n},4578:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6770);var a=t(301);var n=t(8304);var o=(0,s.declare)((e=>{e.assertVersion(7);return{name:"proposal-export-namespace-from",inherits:a.default,visitor:{ExportNamedDeclaration(e){var r;const{node:t,scope:s}=e;const{specifiers:a}=t;const o=n.types.isExportDefaultSpecifier(a[0])?1:0;if(!n.types.isExportNamespaceSpecifier(a[o]))return;const i=[];if(o===1){i.push(n.types.exportNamedDeclaration(null,[a.shift()],t.source))}const l=a.shift();const{exported:c}=l;const d=s.generateUidIdentifier((r=c.name)!=null?r:c.value);i.push(n.types.importDeclaration([n.types.importNamespaceSpecifier(d)],n.types.cloneNode(t.source)),n.types.exportNamedDeclaration(null,[n.types.exportSpecifier(n.types.cloneNode(d),c)]));if(t.specifiers.length>=1){i.push(t)}const[u]=e.replaceWithMultiple(i);e.scope.registerDeclaration(u)}}}}));r["default"]=o},4206:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(6770);var a=t(4100);function remover({node:e}){var r;const{extra:t}=e;if(t!=null&&(r=t.raw)!=null&&r.includes("_")){t.raw=t.raw.replace(/_/g,"")}}var n=(0,s.declare)((e=>{e.assertVersion(7);return{name:"proposal-numeric-separator",inherits:a.default,visitor:{NumericLiteral:remover,BigIntLiteral:remover}}}));r["default"]=n},9050:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=t(6770);var a=t(3322);var n=t(8304);var o=t(7255);var i=t(8522);var l=t(8626);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var c=_interopDefaultLegacy(l);const{isObjectProperty:d,isArrayPattern:u,isObjectPattern:p,isAssignmentPattern:f,isRestElement:y,isIdentifier:g}=n.types;function shouldStoreRHSInTemporaryVariable(e){if(u(e)){const r=e.elements.filter((e=>e!==null));if(r.length>1)return true;else return shouldStoreRHSInTemporaryVariable(r[0])}else if(p(e)){const{properties:r}=e;if(r.length>1)return true;else if(r.length===0)return false;else{const e=r[0];if(d(e)){return shouldStoreRHSInTemporaryVariable(e.value)}else{return shouldStoreRHSInTemporaryVariable(e)}}}else if(f(e)){return shouldStoreRHSInTemporaryVariable(e.left)}else if(y(e)){if(g(e.argument))return true;return shouldStoreRHSInTemporaryVariable(e.argument)}else{return false}}const{isAssignmentPattern:h,isObjectProperty:b}=n.types;{const e=n.types.identifier("a");const r=n.types.objectProperty(n.types.identifier("key"),e);const t=n.types.objectPattern([r]);var x=n.types.isReferenced(e,r,t)?1:0}var v=s.declare(((e,r)=>{var t,s,l,d;e.assertVersion(7);const u=e.targets();const p=!i.isRequired("es6.object.assign",u,{compatData:c["default"]});const{useBuiltIns:f=p,loose:y=false}=r;if(typeof y!=="boolean"){throw new Error(".loose must be a boolean, or undefined")}const g=(t=e.assumption("ignoreFunctionLength"))!=null?t:y;const v=(s=e.assumption("objectRestNoSymbols"))!=null?s:y;const j=(l=e.assumption("pureGetters"))!=null?l:y;const w=(d=e.assumption("setSpreadProperties"))!=null?d:y;function getExtendsHelper(e){return f?n.types.memberExpression(n.types.identifier("Object"),n.types.identifier("assign")):e.addHelper("extends")}function hasRestElement(e){let r=false;visitRestElements(e,(e=>{r=true;e.stop()}));return r}function hasObjectPatternRestElement(e){let r=false;visitRestElements(e,(e=>{if(e.parentPath.isObjectPattern()){r=true;e.stop()}}));return r}function visitRestElements(e,r){e.traverse({Expression(e){const{parent:r,key:t}=e;if(h(r)&&t==="right"||b(r)&&r.computed&&t==="key"){e.skip()}},RestElement:r})}function hasSpread(e){for(const r of e.properties){if(n.types.isSpreadElement(r)){return true}}return false}function extractNormalizedKeys(e){const r=e.properties;const t=[];let s=true;let a=false;for(const e of r){if(n.types.isIdentifier(e.key)&&!e.computed){t.push(n.types.stringLiteral(e.key.name))}else if(n.types.isTemplateLiteral(e.key)){t.push(n.types.cloneNode(e.key));a=true}else if(n.types.isLiteral(e.key)){t.push(n.types.stringLiteral(String(e.key.value)))}else{t.push(n.types.cloneNode(e.key));s=false}}return{keys:t,allLiteral:s,hasTemplateLiteral:a}}function replaceImpureComputedKeys(e,r){const t=[];for(const s of e){const e=s.get("key");if(s.node.computed&&!e.isPure()){const s=r.generateUidBasedOnNode(e.node);const a=n.types.variableDeclarator(n.types.identifier(s),e.node);t.push(a);e.replaceWith(n.types.identifier(s))}}return t}function removeUnusedExcludedKeys(e){const r=e.getOuterBindingIdentifierPaths();Object.keys(r).forEach((t=>{const s=r[t].parentPath;if(e.scope.getBinding(t).references>x||!s.isObjectProperty()){return}s.remove()}))}function createObjectRest(e,r,t){const s=e.get("properties");const a=s[s.length-1];n.types.assertRestElement(a.node);const o=n.types.cloneNode(a.node);a.remove();const i=replaceImpureComputedKeys(e.get("properties"),e.scope);const{keys:l,allLiteral:c,hasTemplateLiteral:d}=extractNormalizedKeys(e.node);if(l.length===0){return[i,o.argument,n.types.callExpression(getExtendsHelper(r),[n.types.objectExpression([]),n.types.sequenceExpression([n.types.callExpression(r.addHelper("objectDestructuringEmpty"),[n.types.cloneNode(t)]),n.types.cloneNode(t)])])]}let u;if(!c){u=n.types.callExpression(n.types.memberExpression(n.types.arrayExpression(l),n.types.identifier("map")),[r.addHelper("toPropertyKey")])}else{u=n.types.arrayExpression(l);if(!d&&!n.types.isProgram(e.scope.block)){const r=e.findParent((e=>e.isProgram()));const t=e.scope.generateUidIdentifier("excluded");r.scope.push({id:t,init:u,kind:"const"});u=n.types.cloneNode(t)}}return[i,o.argument,n.types.callExpression(r.addHelper(`objectWithoutProperties${v?"Loose":""}`),[n.types.cloneNode(t),u])]}function replaceRestElement(e,r,t){if(r.isAssignmentPattern()){replaceRestElement(e,r.get("left"),t);return}if(r.isArrayPattern()&&hasRestElement(r)){const s=r.get("elements");for(let r=0;re.skip(),"ReferencedIdentifier|BindingIdentifier":IdentifierHandler},e.scope)}}}if(!a){for(let s=0;se>=n-1||t.has(e);o.convertFunctionParams(e,g,shouldTransformParam,replaceRestElement)}},VariableDeclarator(e,r){if(!e.get("id").isObjectPattern()){return}let t=e;const s=e;visitRestElements(e.get("id"),(e=>{if(!e.parentPath.isObjectPattern()){return}if(shouldStoreRHSInTemporaryVariable(s.node.id)&&!n.types.isIdentifier(s.node.init)){const r=e.scope.generateUidIdentifierBasedOnNode(s.node.init,"ref");s.insertBefore(n.types.variableDeclarator(r,s.node.init));s.replaceWith(n.types.variableDeclarator(s.node.id,n.types.cloneNode(r)));return}let a=s.node.init;const o=[];let i;e.findParent((e=>{if(e.isObjectProperty()){o.unshift(e)}else if(e.isVariableDeclarator()){i=e.parentPath.node.kind;return true}}));const l=replaceImpureComputedKeys(o,e.scope);o.forEach((e=>{const{node:r}=e;a=n.types.memberExpression(a,n.types.cloneNode(r.key),r.computed||n.types.isLiteral(r.key))}));const c=e.findParent((e=>e.isObjectPattern()));const[d,u,p]=createObjectRest(c,r,a);if(j){removeUnusedExcludedKeys(c)}n.types.assertIdentifier(u);t.insertBefore(d);t.insertBefore(l);t=t.insertAfter(n.types.variableDeclarator(u,p))[0];e.scope.registerBinding(i,t);if(c.node.properties.length===0){c.findParent((e=>e.isObjectProperty()||e.isVariableDeclarator())).remove()}}))},ExportNamedDeclaration(e){const r=e.get("declaration");if(!r.isVariableDeclaration())return;const t=r.get("declarations").some((e=>hasObjectPatternRestElement(e.get("id"))));if(!t)return;const s=[];for(const r of Object.keys(e.getOuterBindingIdentifiers(true))){s.push(n.types.exportSpecifier(n.types.identifier(r),n.types.identifier(r)))}e.replaceWith(r.node);e.insertAfter(n.types.exportNamedDeclaration(null,s))},CatchClause(e){const r=e.get("param");replaceRestElement(e,r)},AssignmentExpression(e,r){const t=e.get("left");if(t.isObjectPattern()&&hasRestElement(t)){const s=[];const a=e.scope.generateUidBasedOnNode(e.node.right,"ref");s.push(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.identifier(a),e.node.right)]));const[o,i,l]=createObjectRest(t,r,n.types.identifier(a));if(o.length>0){s.push(n.types.variableDeclaration("var",o))}const c=n.types.cloneNode(e.node);c.right=n.types.identifier(a);s.push(n.types.expressionStatement(c));s.push(n.types.expressionStatement(n.types.assignmentExpression("=",i,l)));s.push(n.types.expressionStatement(n.types.identifier(a)));e.replaceWithMultiple(s)}},ForXStatement(e){const{node:r,scope:t}=e;const s=e.get("left");const a=r.left;if(!hasObjectPatternRestElement(s)){return}if(!n.types.isVariableDeclaration(a)){const s=t.generateUidIdentifier("ref");r.left=n.types.variableDeclaration("var",[n.types.variableDeclarator(s)]);e.ensureBlock();const o=e.node.body;if(o.body.length===0&&e.isCompletionRecord()){o.body.unshift(n.types.expressionStatement(t.buildUndefinedNode()))}o.body.unshift(n.types.expressionStatement(n.types.assignmentExpression("=",a,n.types.cloneNode(s))))}else{const s=a.declarations[0].id;const o=t.generateUidIdentifier("ref");r.left=n.types.variableDeclaration(a.kind,[n.types.variableDeclarator(o,null)]);e.ensureBlock();const i=r.body;i.body.unshift(n.types.variableDeclaration(r.left.kind,[n.types.variableDeclarator(s,n.types.cloneNode(o))]))}},ArrayPattern(e){const r=[];visitRestElements(e,(e=>{if(!e.parentPath.isObjectPattern()){return}const t=e.parentPath;const s=e.scope.generateUidIdentifier("ref");r.push(n.types.variableDeclarator(t.node,s));t.replaceWith(n.types.cloneNode(s));e.skip()}));if(r.length>0){const t=e.getStatementParent();const s=t.node;const a=s.type==="VariableDeclaration"?s.kind:"var";t.insertAfter(n.types.variableDeclaration(a,r))}},ObjectExpression(e,r){if(!hasSpread(e.node))return;let t;if(w){t=getExtendsHelper(r)}else{try{t=r.addHelper("objectSpread2")}catch(e){this.file.declarations["objectSpread2"]=null;t=r.addHelper("objectSpread")}}let s=null;let a=[];function make(){const e=a.length>0;const r=n.types.objectExpression(a);a=[];if(!s){s=n.types.callExpression(t,[r]);return}if(j){if(e){s.arguments.push(r)}return}s=n.types.callExpression(n.types.cloneNode(t),[s,...e?[n.types.objectExpression([]),r]:[]])}for(const r of e.node.properties){if(n.types.isSpreadElement(r)){make();s.arguments.push(r.argument)}else{a.push(r)}}if(a.length)make();e.replaceWith(s)}}}}));r["default"]=v},5579:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-import-assertions",manipulateOptions(e,r){r.plugins.push("importAssertions")}}}));r["default"]=a},4810:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)(((e,{deprecatedAssertSyntax:r})=>{e.assertVersion("^7.22.0");if(r!=null&&typeof r!=="boolean"){throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified.")}return{name:"syntax-import-attributes",manipulateOptions({parserOpts:e,generatorOpts:t}){var s;(s=t.importAttributesKeyword)!=null?s:t.importAttributesKeyword="with";e.plugins.push(["importAttributes",{deprecatedAssertSyntax:Boolean(r)}])}}}));r["default"]=a},6085:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-jsx",manipulateOptions(e,r){{if(r.plugins.some((e=>(Array.isArray(e)?e[0]:e)==="typescript"))){return}}r.plugins.push("jsx")}}}));r["default"]=a},6141:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(8863);{var removePlugin=function(e,r){const t=[];e.forEach(((e,s)=>{const a=Array.isArray(e)?e[0]:e;if(a===r){t.unshift(s)}}));for(const r of t){e.splice(r,1)}}}var a=(0,s.declare)(((e,r)=>{e.assertVersion(7);const{disallowAmbiguousJSXLike:t,dts:s}=r;{var{isTSX:a}=r}return{name:"syntax-typescript",manipulateOptions(e,r){{const{plugins:e}=r;removePlugin(e,"flow");removePlugin(e,"jsx");e.push("objectRestSpread","classProperties");if(a){e.push("jsx")}}r.plugins.push(["typescript",{disallowAmbiguousJSXLike:t,dts:s}])}}}));r["default"]=a},6237:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(2269);var a=t(8863);var n=(0,a.declare)((e=>{e.assertVersion(7);return(0,s.createRegExpFeaturePlugin)({name:"syntax-unicode-sets-regex",feature:"unicodeSetsFlag_syntax",manipulateOptions(e,r){r.plugins.push("regexpUnicodeSets")}})}));r["default"]=n},3628:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=(0,s.declare)(((e,r)=>{var t;e.assertVersion(7);const s=(t=e.assumption("noNewArrows"))!=null?t:!r.spec;return{name:"transform-arrow-functions",visitor:{ArrowFunctionExpression(e){if(!e.isArrowFunctionExpression())return;{e.arrowFunctionToExpression({allowInsertArrow:false,noNewArrows:s,specCompliant:!s})}}}}}));r["default"]=a},1971:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;var s=t(8304);const a=(0,s.template)(`\n async function wrapper() {\n var ITERATOR_ABRUPT_COMPLETION = false;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY;\n ITERATOR_ABRUPT_COMPLETION = !(STEP_KEY = await ITERATOR_KEY.next()).done;\n ITERATOR_ABRUPT_COMPLETION = false\n ) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (ITERATOR_ABRUPT_COMPLETION && ITERATOR_KEY.return != null) {\n await ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n`);function _default(e,{getAsyncIterator:r}){const{node:t,scope:n,parent:o}=e;const i=n.generateUidIdentifier("step");const l=s.types.memberExpression(i,s.types.identifier("value"));const c=t.left;let d;if(s.types.isIdentifier(c)||s.types.isPattern(c)||s.types.isMemberExpression(c)){d=s.types.expressionStatement(s.types.assignmentExpression("=",c,l))}else if(s.types.isVariableDeclaration(c)){d=s.types.variableDeclaration(c.kind,[s.types.variableDeclarator(c.declarations[0].id,l)])}let u=a({ITERATOR_HAD_ERROR_KEY:n.generateUidIdentifier("didIteratorError"),ITERATOR_ABRUPT_COMPLETION:n.generateUidIdentifier("iteratorAbruptCompletion"),ITERATOR_ERROR_KEY:n.generateUidIdentifier("iteratorError"),ITERATOR_KEY:n.generateUidIdentifier("iterator"),GET_ITERATOR:r,OBJECT:t.right,STEP_KEY:s.types.cloneNode(i)});u=u.body.body;const p=s.types.isLabeledStatement(o);const f=u[3].block.body;const y=f[0];if(p){f[0]=s.types.labeledStatement(o.label,y)}return{replaceParent:p,node:u,declar:d,loop:y}}},4766:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(322);var n=t(8304);var o=t(1971);var i=t(8552);var l=(0,s.declare)((e=>{e.assertVersion(7);const r=n.traverse.visitors.merge([{ArrowFunctionExpression(e){e.skip()},YieldExpression({node:e},r){if(!e.delegate)return;const t=n.types.callExpression(r.addHelper("asyncIterator"),[e.argument]);e.argument=n.types.callExpression(r.addHelper("asyncGeneratorDelegate"),[t,r.addHelper("awaitAsyncGenerator")])}},i.default]);const s=n.traverse.visitors.merge([{ArrowFunctionExpression(e){e.skip()},ForOfStatement(e,{file:r}){const{node:t}=e;if(!t.await)return;const s=(0,o.default)(e,{getAsyncIterator:r.addHelper("asyncIterator")});const{declar:a,loop:i}=s;const l=i.body;e.ensureBlock();if(a){l.body.push(a);if(e.node.body.body.length){l.body.push(n.types.blockStatement(e.node.body.body))}}else{l.body.push(...e.node.body.body)}n.types.inherits(i,t);n.types.inherits(i.body,t.body);const c=s.replaceParent?e.parentPath:e;c.replaceWithMultiple(s.node);c.scope.parent.crawl()}},i.default]);const l={Function(e,t){if(!e.node.async)return;e.traverse(s,t);if(!e.node.generator)return;e.traverse(r,t);(0,a.default)(e,{wrapAsync:t.addHelper("wrapAsyncGenerator"),wrapAwait:t.addHelper("awaitAsyncGenerator")})}};return{name:"transform-async-generator-functions",inherits:t(3975)["default"],visitor:{Program(e,r){e.traverse(l,r)}}}}));r["default"]=l},3055:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(322);var n=t(3380);var o=t(8304);var i=(0,s.declare)(((e,r)=>{var t,s;e.assertVersion(7);const{method:i,module:l}=r;const c=(t=e.assumption("noNewArrows"))!=null?t:true;const d=(s=e.assumption("ignoreFunctionLength"))!=null?s:false;if(i&&l){return{name:"transform-async-to-generator",visitor:{Function(e,r){if(!e.node.async||e.node.generator)return;let t=r.methodWrapper;if(t){t=o.types.cloneNode(t)}else{t=r.methodWrapper=(0,n.addNamed)(e,i,l)}(0,a.default)(e,{wrapAsync:t},c,d)}}}}return{name:"transform-async-to-generator",visitor:{Function(e,r){if(!e.node.async||e.node.generator)return;(0,a.default)(e,{wrapAsync:r.addHelper("asyncToGenerator")},c,d)}}}}));r["default"]=i},1242:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(8304);var n=(0,s.declare)((e=>{e.assertVersion(7);function transformStatementList(e){for(const r of e){if(!r.isFunctionDeclaration())continue;const e=r.node;const t=a.types.variableDeclaration("let",[a.types.variableDeclarator(e.id,a.types.toExpression(e))]);t._blockHoist=2;e.id=null;r.replaceWith(t)}}return{name:"transform-block-scoped-functions",visitor:{BlockStatement(e){const{node:r,parent:t}=e;if(a.types.isFunction(t,{body:r})||a.types.isExportDeclaration(t)){return}transformStatementList(e.get("body"))},SwitchCase(e){transformStatementList(e.get("consequent"))}}}}));r["default"]=n},4700:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.annexB33FunctionsVisitor=void 0;r.isVarScope=isVarScope;var s=t(8304);const a={VariableDeclaration(e){if(isStrict(e))return;if(e.node.kind!=="var")return;const r=e.scope.getFunctionParent()||e.scope.getProgramParent();r.path.traverse(n,{names:Object.keys(e.getBindingIdentifiers())})},BlockStatement(e){if(isStrict(e))return;if(s.types.isFunction(e.parent,{body:e.node}))return;transformStatementList(e.get("body"))},SwitchCase(e){if(isStrict(e))return;transformStatementList(e.get("consequent"))}};r.annexB33FunctionsVisitor=a;function transformStatementList(e){e:for(const r of e){if(!r.isFunctionDeclaration())continue;if(r.node.async||r.node.generator)return;const{scope:e}=r.parentPath;if(isVarScope(e))return;const{name:t}=r.node.id;let s=e;do{if(s.parent.hasOwnBinding(t))continue e;s=s.parent}while(!isVarScope(s));maybeTransformBlockScopedFunction(r)}}function maybeTransformBlockScopedFunction(e){const{node:r,parentPath:{scope:t}}=e;const{id:a}=r;t.removeOwnBinding(a.name);r.id=null;const n=s.types.variableDeclaration("var",[s.types.variableDeclarator(a,s.types.toExpression(r))]);n._blockHoist=2;const[o]=e.replaceWith(n);t.registerDeclaration(o)}const n={Scope(e,{names:r}){for(const t of r){const r=e.scope.getOwnBinding(t);if(r&&r.kind==="hoisted"){maybeTransformBlockScopedFunction(r.path)}}},"Expression|Declaration"(e){e.skip()}};function isVarScope(e){return e.path.isFunctionParent()||e.path.isProgram()}function isStrict(e){return!!e.find((({node:e})=>{var r;if(s.types.isProgram(e)){if(e.sourceType==="module")return true}else if(s.types.isClass(e)){return true}else if(!s.types.isBlockStatement(e)){return false}return(r=e.directives)==null?void 0:r.some((e=>e.value.value==="use strict"))}))}},6383:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var s=t(5389);var a=t(8304);var n=t(6713);var o=t(8643);var i=t(4700);var l=(0,s.declare)(((e,r)=>{e.assertVersion(7);const{throwIfClosureRequired:t=false,tdz:s=false}=r;if(typeof t!=="boolean"){throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`)}if(typeof s!=="boolean"){throw new Error(`.tdz must be a boolean, or undefined`)}return{name:"transform-block-scoping",visitor:a.traverse.visitors.merge([i.annexB33FunctionsVisitor,{Loop(e,r){const a=e.isForStatement();const o=a?e.get("init"):e.isForXStatement()?e.get("left"):null;let i=false;const markNeedsBodyWrap=()=>{if(t){throw e.buildCodeFrameError("Compiling let/const in this block would add a closure "+"(throwIfClosureRequired).")}i=true};const l=e.get("body");let c;if(l.isBlockStatement()){c=l.scope;const r=(0,n.getLoopBodyBindings)(e);for(const t of r){const{capturedInClosure:r}=(0,n.getUsageInBody)(t,e);if(r)markNeedsBodyWrap()}}const d=[];const u=new Map;if(o&&isBlockScoped(o.node)){const r=Object.keys(o.getBindingIdentifiers());const t=o.scope;for(let s of r){var p;if((p=c)!=null&&p.hasOwnBinding(s))continue;let r=t.getOwnBinding(s);if(!r){t.crawl();r=t.getOwnBinding(s)}const{usages:o,capturedInClosure:i,hasConstantViolations:l}=(0,n.getUsageInBody)(r,e);if(t.parent.hasBinding(s)||t.parent.hasGlobal(s)){const e=t.generateUid(s);t.rename(s,e);s=e}if(i){markNeedsBodyWrap();d.push(s)}if(a&&l){u.set(s,o)}}}if(i){const t=(0,n.wrapLoopBody)(e,d,u);if(o!=null&&o.isVariableDeclaration()){transformBlockScopedVariable(o,r,s)}t.get("declarations.0.init").unwrapFunctionEnvironment()}},VariableDeclaration(e,r){transformBlockScopedVariable(e,r,s)},ClassDeclaration(e){const{id:r}=e.node;if(!r)return;const{scope:t}=e.parentPath;if(!(0,i.isVarScope)(t)&&t.parent.hasBinding(r.name,{noUids:true})){e.scope.rename(r.name)}}}])}}));r["default"]=l;const c={Scope(e,{names:r}){for(const t of r){const r=e.scope.getOwnBinding(t);if(r&&r.kind==="hoisted"){e.scope.rename(t)}}},"Expression|Declaration"(e){e.skip()}};function transformBlockScopedVariable(e,r,t){if(!isBlockScoped(e.node))return;const s=(0,o.validateUsage)(e,r,t);e.node.kind="var";const i=Object.keys(e.getBindingIdentifiers());for(const r of i){const t=e.scope.getOwnBinding(r);if(!t)continue;t.kind="var"}if(isInLoop(e)&&!(0,n.isVarInLoopHead)(e)||s.length>0){for(const r of e.node.declarations){var l;(l=r.init)!=null?l:r.init=e.scope.buildUndefinedNode()}}const d=e.scope;const u=d.getFunctionParent()||d.getProgramParent();if(u!==d){for(const e of i){let r=e;if(d.parent.hasBinding(e,{noUids:true})||d.parent.hasGlobal(e)){r=d.generateUid(e);d.rename(e,r)}d.moveBindingTo(r,u)}}d.path.traverse(c,{names:i});for(const t of s){e.scope.push({id:a.types.identifier(t),init:r.addHelper("temporalUndefined")})}}function isLetOrConst(e){return e==="let"||e==="const"}function isInLoop(e){if(!e.parentPath)return false;if(e.parentPath.isLoop())return true;if(e.parentPath.isFunctionParent())return false;return isInLoop(e.parentPath)}function isBlockScoped(e){if(!a.types.isVariableDeclaration(e))return false;if(e[a.types.BLOCK_SCOPED_SYMBOL]){return true}if(!isLetOrConst(e.kind)&&e.kind!=="using"){return false}return true}},6713:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getLoopBodyBindings=getLoopBodyBindings;r.getUsageInBody=getUsageInBody;r.isVarInLoopHead=isVarInLoopHead;r.wrapLoopBody=wrapLoopBody;var s=t(8304);const a={"Expression|Declaration|Loop"(e){e.skip()},Scope(e,r){if(e.isFunctionParent())e.skip();const{bindings:t}=e.scope;for(const e of Object.keys(t)){const s=t[e];if(s.kind==="let"||s.kind==="const"||s.kind==="hoisted"){r.blockScoped.push(s)}}}};function getLoopBodyBindings(e){const r={blockScoped:[]};e.traverse(a,r);return r.blockScoped}function getUsageInBody(e,r){const t=new WeakSet;let s=false;const a=filterMap(e.constantViolations,(e=>{const{inBody:a,inClosure:n}=relativeLoopLocation(e,r);if(!a)return null;s||(s=n);const o=e.isUpdateExpression()?e.get("argument"):e.isAssignmentExpression()?e.get("left"):null;if(o)t.add(o.node);return o}));const n=filterMap(e.referencePaths,(e=>{if(t.has(e.node))return null;const{inBody:a,inClosure:n}=relativeLoopLocation(e,r);if(!a)return null;s||(s=n);return e}));return{capturedInClosure:s,hasConstantViolations:a.length>0,usages:n.concat(a)}}function relativeLoopLocation(e,r){const t=r.get("body");let s=false;for(let a=e;a;a=a.parentPath){if(a.isFunction()||a.isClass()||a.isMethod()){s=true}if(a===t){return{inBody:true,inClosure:s}}else if(a===r){return{inBody:false,inClosure:s}}}throw new Error("Internal Babel error: path is not in loop. Please report this as a bug.")}const n={Function(e){e.skip()},LabeledStatement:{enter({node:e},r){r.labelsStack.push(e.label.name)},exit({node:e},r){const t=r.labelsStack.pop();if(t!==e.label.name){throw new Error("Assertion failure. Please report this bug to Babel.")}}},Loop:{enter(e,r){r.labellessContinueTargets++;r.labellessBreakTargets++},exit(e,r){r.labellessContinueTargets--;r.labellessBreakTargets--}},SwitchStatement:{enter(e,r){r.labellessBreakTargets++},exit(e,r){r.labellessBreakTargets--}},"BreakStatement|ContinueStatement"(e,r){const{label:t}=e.node;if(t){if(r.labelsStack.includes(t.name))return}else if(e.isBreakStatement()?r.labellessBreakTargets>0:r.labellessContinueTargets>0){return}r.breaksContinues.push(e)},ReturnStatement(e,r){r.returns.push(e)},VariableDeclaration(e,r){if(e.parent===r.loopNode&&isVarInLoopHead(e))return;if(e.node.kind==="var")r.vars.push(e)}};function wrapLoopBody(e,r,t){const a=e.node;const o={breaksContinues:[],returns:[],labelsStack:[],labellessBreakTargets:0,labellessContinueTargets:0,vars:[],loopNode:a};e.traverse(n,o);const i=[];const l=[];const c=[];for(const[r,a]of t){i.push(s.types.identifier(r));const t=e.scope.generateUid(r);l.push(s.types.identifier(t));c.push(s.types.assignmentExpression("=",s.types.identifier(r),s.types.identifier(t)));for(const e of a)e.replaceWith(s.types.identifier(t))}for(const e of r){if(t.has(e))continue;i.push(s.types.identifier(e));l.push(s.types.identifier(e))}const d=e.scope.generateUid("loop");const u=s.types.functionExpression(null,l,s.types.toBlock(a.body));let p=s.types.callExpression(s.types.identifier(d),i);const f=e.findParent((e=>e.isFunction()));if(f){const{async:e,generator:r}=f.node;u.async=e;u.generator=r;if(r)p=s.types.yieldExpression(p,true);else if(e)p=s.types.awaitExpression(p)}const y=c.length>0?s.types.expressionStatement(s.types.sequenceExpression(c)):null;if(y)u.body.body.push(y);const[g]=e.insertBefore(s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.identifier(d),u)]));const h=[];const b=[];for(const e of o.vars){const r=[];for(const t of e.node.declarations){b.push(...Object.keys(s.types.getBindingIdentifiers(t.id)));if(t.init){r.push(s.types.assignmentExpression("=",t.id,t.init))}}if(r.length>0){let t=r.length===1?r[0]:s.types.sequenceExpression(r);if(!s.types.isForStatement(e.parent,{init:e.node})&&!s.types.isForXStatement(e.parent,{left:e.node})){t=s.types.expressionStatement(t)}e.replaceWith(t)}else{e.remove()}}if(b.length){g.pushContainer("declarations",b.map((e=>s.types.variableDeclarator(s.types.identifier(e)))))}const x=o.breaksContinues.length;const v=o.returns.length;if(x+v===0){h.push(s.types.expressionStatement(p))}else if(x===1&&v===0){for(const e of o.breaksContinues){const{node:r}=e;const{type:t,label:a}=r;let n=t==="BreakStatement"?"break":"continue";if(a)n+=" "+a.name;e.replaceWith(s.types.addComment(s.types.returnStatement(s.types.numericLiteral(1)),"trailing"," "+n,true));if(y)e.insertBefore(s.types.cloneNode(y));h.push(s.template.statement.ast` if (${p}) ${r} `)}}else{const r=e.scope.generateUid("ret");if(g.isVariableDeclaration()){g.pushContainer("declarations",[s.types.variableDeclarator(s.types.identifier(r))]);h.push(s.types.expressionStatement(s.types.assignmentExpression("=",s.types.identifier(r),p)))}else{h.push(s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.identifier(r),p)]))}const t=[];for(const e of o.breaksContinues){const{node:a}=e;const{type:n,label:o}=a;let i=n==="BreakStatement"?"break":"continue";if(o)i+=" "+o.name;let l=t.indexOf(i);const c=l!==-1;if(!c){t.push(i);l=t.length-1}e.replaceWith(s.types.addComment(s.types.returnStatement(s.types.numericLiteral(l)),"trailing"," "+i,true));if(y)e.insertBefore(s.types.cloneNode(y));if(c)continue;h.push(s.template.statement.ast` if (${s.types.identifier(r)} === ${s.types.numericLiteral(l)}) ${a}