From 9a961de8fd2770410d84d0ea7abb3b23512d7565 Mon Sep 17 00:00:00 2001 From: Mike Ammerlaan Date: Mon, 14 Oct 2024 07:34:36 -0700 Subject: [PATCH] Editor multi sample (#240) * Editor sample updates --- editor-multi/.env | 3 + editor-multi/.prettierrc.json | 10 + editor-multi/.vscode/extensions.json | 7 + editor-multi/.vscode/launch.json | 15 + editor-multi/.vscode/settings.json | 48 + editor-multi/.vscode/tasks.json | 15 + editor-multi/README.md | 69 + .../behavior_packs/editor-multi/manifest.json | 39 + .../behavior_packs/editor-multi/pack_icon.png | Bin 0 -> 561 bytes editor-multi/eslint.config.mjs | 20 + editor-multi/just.config.ts | 83 + editor-multi/package-lock.json | 4644 +++++++++++++++++ editor-multi/package.json | 42 + .../resource_packs/editor-multi/manifest.json | 25 + .../resource_packs/editor-multi/pack_icon.png | Bin 0 -> 1105 bytes .../editor-multi/texts/en_US.lang | 86 + .../editor-multi/textures/dye-brush.png | Bin 0 -> 698 bytes .../editor-multi/textures/farm-generator.png | Bin 0 -> 1302 bytes .../editor-multi/textures/goto-mark.png | Bin 0 -> 1435 bytes .../textures/portal-generator.png | Bin 0 -> 1942 bytes .../editor-multi/textures/tree-generator.png | Bin 0 -> 1073 bytes editor-multi/scripts/camera-grapple.ts | 145 + editor-multi/scripts/dye-brush.ts | 366 ++ editor-multi/scripts/farm-generator.ts | 431 ++ editor-multi/scripts/goto-mark.ts | 473 ++ editor-multi/scripts/main.ts | 17 + editor-multi/scripts/portal-generator.ts | 570 ++ editor-multi/scripts/simple-locate-biome.ts | 326 ++ editor-multi/scripts/star-brush-shape.ts | 140 + editor-multi/scripts/tree-generator.ts | 449 ++ editor-multi/tasks/BuildSnippets.ts | 162 + editor-multi/tsconfig.json | 31 + 32 files changed, 8216 insertions(+) create mode 100644 editor-multi/.env create mode 100644 editor-multi/.prettierrc.json create mode 100644 editor-multi/.vscode/extensions.json create mode 100644 editor-multi/.vscode/launch.json create mode 100644 editor-multi/.vscode/settings.json create mode 100644 editor-multi/.vscode/tasks.json create mode 100644 editor-multi/README.md create mode 100644 editor-multi/behavior_packs/editor-multi/manifest.json create mode 100644 editor-multi/behavior_packs/editor-multi/pack_icon.png create mode 100644 editor-multi/eslint.config.mjs create mode 100644 editor-multi/just.config.ts create mode 100644 editor-multi/package-lock.json create mode 100644 editor-multi/package.json create mode 100644 editor-multi/resource_packs/editor-multi/manifest.json create mode 100644 editor-multi/resource_packs/editor-multi/pack_icon.png create mode 100644 editor-multi/resource_packs/editor-multi/texts/en_US.lang create mode 100644 editor-multi/resource_packs/editor-multi/textures/dye-brush.png create mode 100644 editor-multi/resource_packs/editor-multi/textures/farm-generator.png create mode 100644 editor-multi/resource_packs/editor-multi/textures/goto-mark.png create mode 100644 editor-multi/resource_packs/editor-multi/textures/portal-generator.png create mode 100644 editor-multi/resource_packs/editor-multi/textures/tree-generator.png create mode 100644 editor-multi/scripts/camera-grapple.ts create mode 100644 editor-multi/scripts/dye-brush.ts create mode 100644 editor-multi/scripts/farm-generator.ts create mode 100644 editor-multi/scripts/goto-mark.ts create mode 100644 editor-multi/scripts/main.ts create mode 100644 editor-multi/scripts/portal-generator.ts create mode 100644 editor-multi/scripts/simple-locate-biome.ts create mode 100644 editor-multi/scripts/star-brush-shape.ts create mode 100644 editor-multi/scripts/tree-generator.ts create mode 100644 editor-multi/tasks/BuildSnippets.ts create mode 100644 editor-multi/tsconfig.json diff --git a/editor-multi/.env b/editor-multi/.env new file mode 100644 index 0000000..b40a965 --- /dev/null +++ b/editor-multi/.env @@ -0,0 +1,3 @@ +PROJECT_NAME="editor-multi" +MINECRAFT_PRODUCT="PreviewUWP" +CUSTOM_DEPLOYMENT_PATH="" \ No newline at end of file diff --git a/editor-multi/.prettierrc.json b/editor-multi/.prettierrc.json new file mode 100644 index 0000000..8856048 --- /dev/null +++ b/editor-multi/.prettierrc.json @@ -0,0 +1,10 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": true, + "singleQuote": false, + "bracketSpacing": true, + "arrowParens": "always", + "printWidth": 120, + "endOfLine": "auto" +} \ No newline at end of file diff --git a/editor-multi/.vscode/extensions.json b/editor-multi/.vscode/extensions.json new file mode 100644 index 0000000..9f46a1b --- /dev/null +++ b/editor-multi/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "esbenp.prettier-vscode", + "blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension", + "mojang-studios.minecraft-debugger" + ] + } \ No newline at end of file diff --git a/editor-multi/.vscode/launch.json b/editor-multi/.vscode/launch.json new file mode 100644 index 0000000..7805a7d --- /dev/null +++ b/editor-multi/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "minecraft-js", + "request": "attach", + "name": "Debug with Minecraft", + "mode": "listen", + "preLaunchTask": "build", + "sourceMapRoot": "${workspaceFolder}/dist/debug/", + "generatedSourceRoot": "${workspaceFolder}/dist/scripts/", + "port": 19144 + } + ] + } \ No newline at end of file diff --git a/editor-multi/.vscode/settings.json b/editor-multi/.vscode/settings.json new file mode 100644 index 0000000..d383c7f --- /dev/null +++ b/editor-multi/.vscode/settings.json @@ -0,0 +1,48 @@ +{ + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "git.ignoreLimitWarning": true, + "editor.formatOnSave": true, + "search.exclude": { + "**/.git": true, + "**/node_modules": true, + "**/dist": true, + "**/lib": true + }, + "files.exclude": { + "**/.git": true, + "**/dist": true, + "**/lib": true, + "**/.DS_Store": true, + "**/node_modules": true + }, + "cSpell.words": [ + "Elytra", + "Equippable", + "gametest", + "gametests", + "knockback", + "mcaddon", + "mcui", + "minecart", + "molang", + "onfire", + "samplelibrary", + "scriptevent", + "shulker", + "skelly", + "zoglin" + ], + "editor.tabSize": 2, + "eslint.experimental.useFlatConfig": true +} diff --git a/editor-multi/.vscode/tasks.json b/editor-multi/.vscode/tasks.json new file mode 100644 index 0000000..efc57f8 --- /dev/null +++ b/editor-multi/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "npm run build" + }, + { + "label": "deploy", + "type": "shell", + "command": "npm run local-deploy" + } + ] +} diff --git a/editor-multi/README.md b/editor-multi/README.md new file mode 100644 index 0000000..5054b4d --- /dev/null +++ b/editor-multi/README.md @@ -0,0 +1,69 @@ +--- +page_type: sample +author: mammerla +description: A comprehensive gallery of different examples of Minecraft Editor plugins. Based on https://github.com/Mojang/minecraft-editor-extension-starter-kit +ms.author: mikeam@microsoft.com +ms.date: 08/24/2024 +languages: + - typescript +products: + - minecraft +--- + +# Minecraft Editor Multiple Plugin Gallery + +This sample contains many code snippets that show how you can manipulate basic Minecraft behaviors. Based on https://github.com/Mojang/minecraft-editor-extension-starter-kit. + +## Prerequisites + +**Install Node.js tools, if you haven't already** + +We're going to use the package manager [npm](https://www.npmjs.com/package/npm) to get more tools to make the process of building our project easier. + +Visit [https://nodejs.org/](https://nodejs.org). + +Download the version with "LTS" next to the number and install it. (LTS stands for Long Term Support, if you're curious.) In the Node.js Windows installer, accept the installation defaults. You do not need to install any additional tools for Native compilation. + +**Install Visual Studio Code, if you haven't already** + +Visit the [Visual Studio Code website](https://code.visualstudio.com) and install Visual Studio Code. + +## Getting Started + +1. Use npm to install dependent modules: + + ```powershell + npm i + ``` + +1. Use this shortcut command to open the project in Visual Studio Code: + + ```powershell + code . + ``` + +### Chapter 2. Let's test the parts of our project + +Within the root folder (howto-gallery) of this sample, run this command: + +```powershell +Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass +``` + +Run this one to deploy in the game. + +```powershell +npm run local-deploy +``` + +Create an addon file to share. + +```powershell +npm run mcaddon +``` + +## Manifest + +- [just.config.ts](https://github.com/microsoft/minecraft-scripting-samples/blob/main/howto-gallery/just.config.ts): This file contains build instructions for just-scripts, for building out TypeScript code. +- [scripts](https://github.com/microsoft/minecraft-scripting-samples/blob/main/howto-gallery/scripts): This contains Editor Plugin TypeScript files, that will be compiled and built into your projects. +- [behavior_packs](https://github.com/microsoft/minecraft-scripting-samples/blob/main/howto-gallery/behavior_packs): This contains resources and JSON files that define your behavior pack. diff --git a/editor-multi/behavior_packs/editor-multi/manifest.json b/editor-multi/behavior_packs/editor-multi/manifest.json new file mode 100644 index 0000000..781453e --- /dev/null +++ b/editor-multi/behavior_packs/editor-multi/manifest.json @@ -0,0 +1,39 @@ +{ + "format_version": 2, + "header": { + "name": "Minecraft Editor Multiple Plugin", + "description": "A gallery of editor code snippets", + "uuid": "2fb88d39-e589-4e49-a69f-f575f8705e5c", + "version": [1, 0, 0], + "min_engine_version": [1, 20, 0] + }, + "modules": [ + { + "description": "Script resources", + "type": "script", + "language": "javascript", + "uuid": "df6523d1-4442-45c2-b33a-1c882d388683", + "version": [1, 0, 0], + "entry": "scripts/main.js" + } + ], + "capabilities": ["editorExtension"], + "dependencies": [ + { + "uuid": "b3d35b27-1827-4bff-bdf5-694942cfdd25", + "version": [1, 0, 0] + }, + { + "module_name": "@minecraft/server-editor", + "version": "0.1.0-beta" + }, + { + "module_name": "@minecraft/server", + "version": "1.15.0-beta" + }, + { + "module_name": "@minecraft/server-ui", + "version": "1.4.0-beta" + } + ] +} diff --git a/editor-multi/behavior_packs/editor-multi/pack_icon.png b/editor-multi/behavior_packs/editor-multi/pack_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e5b8039f0d4ab806723c9931862e211ddc36a2c9 GIT binary patch literal 561 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSoCO|{#S9FLSs=_%h!H$cLzW7Z7MbGFrn-KS??&wTOtXU)E&U+caxKZ#*& z&}N8Xe89yJ&ai{&fGEQ{h61?I_rhjPPN-#;Dq5r#N+EAt+K^nWWD{vF>mJw}!h?0mnwj3-+2 z-FP2loYt#d+y}CCit+;E|I%Iz?z_%Z+Furg`S-fekK*ZZzub^rhU$IP5SjDI?ZVo7 zk8TD-ZHKF!Q^ap@>sK}7_Wkx5&>&(upy~Y}zg{KlTlw}Vp4pfo8_rn?ihxGfp@;BSn-mJFJv|X@J4g)z4*}Q$iB}@}=0.10.0" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", + "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz", + "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz", + "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz", + "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz", + "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz", + "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz", + "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz", + "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz", + "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz", + "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz", + "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz", + "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz", + "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz", + "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz", + "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz", + "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", + "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", + "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", + "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz", + "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz", + "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz", + "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz", + "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "dev": true + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@microsoft/api-extractor": { + "version": "7.42.3", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.42.3.tgz", + "integrity": "sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==", + "dev": true, + "dependencies": { + "@microsoft/api-extractor-model": "7.28.13", + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "4.0.2", + "@rushstack/rig-package": "0.5.2", + "@rushstack/terminal": "0.10.0", + "@rushstack/ts-command-line": "4.19.1", + "lodash": "~4.17.15", + "minimatch": "~3.0.3", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "source-map": "~0.6.1", + "typescript": "5.3.3" + }, + "bin": { + "api-extractor": "bin/api-extractor" + } + }, + "node_modules/@microsoft/api-extractor-model": { + "version": "7.28.13", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.28.13.tgz", + "integrity": "sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==", + "dev": true, + "dependencies": { + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "~0.16.1", + "@rushstack/node-core-library": "4.0.2" + } + }, + "node_modules/@microsoft/api-extractor-model/node_modules/@rushstack/node-core-library": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-4.0.2.tgz", + "integrity": "sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==", + "dev": true, + "dependencies": { + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "z-schema": "~5.0.2" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@microsoft/api-extractor/node_modules/@rushstack/node-core-library": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-4.0.2.tgz", + "integrity": "sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==", + "dev": true, + "dependencies": { + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "z-schema": "~5.0.2" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@microsoft/api-extractor/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@microsoft/tsdoc": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", + "dev": true + }, + "node_modules/@microsoft/tsdoc-config": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz", + "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==", + "dev": true, + "dependencies": { + "@microsoft/tsdoc": "0.14.2", + "ajv": "~6.12.6", + "jju": "~1.4.0", + "resolve": "~1.19.0" + } + }, + "node_modules/@microsoft/tsdoc-config/node_modules/resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", + "dev": true, + "dependencies": { + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/@minecraft/common": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@minecraft/common/-/common-1.2.0.tgz", + "integrity": "sha512-JdmEq4P3Z/FtoBzhLijFgMSVFnFRrUoLwY8DHHrgtFo0mfLTOLTB1RErYjLMsA6b7BGVNxkX/pfFRiH7QZ0XwQ==" + }, + "node_modules/@minecraft/core-build-tasks": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@minecraft/core-build-tasks/-/core-build-tasks-1.1.3.tgz", + "integrity": "sha512-gjNYm9XNYP0eAirUuo3LfKLpZKQG+PLaFbpwXIvi/lCiN0rctOlC450POV8GdyOP4vkJKbKE0iwjhVpD+03XVw==", + "dev": true, + "dependencies": { + "@microsoft/api-extractor": "^7.38.3", + "@rushstack/node-core-library": "^3.59.6", + "dotenv": "^16.0.2", + "esbuild": "^0.20.1", + "just-scripts": "^2.2.1", + "prettier": "^2.8.2", + "rimraf": "^3.0.2", + "vitest": "^0.34.6", + "zip-lib": "^0.7.3" + } + }, + "node_modules/@minecraft/math": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@minecraft/math/-/math-1.4.0.tgz", + "integrity": "sha512-syh24zBVPDIh/Xf+XxuPUUp98rvgcrycPjkNDdwcC7yWSLIGjyaBeaw88a2JsW3e8qoVQfjzTMQhRl5dJ01OkQ==", + "peerDependencies": { + "@minecraft/server": "^1.6.0" + } + }, + "node_modules/@minecraft/server": { + "version": "1.15.0-beta.1.21.30-preview.24", + "resolved": "https://registry.npmjs.org/@minecraft/server/-/server-1.15.0-beta.1.21.30-preview.24.tgz", + "integrity": "sha512-ca/gcNMqddNAGBntFUM12FAP56Zen1Qsy3DrZKUge9ftuF85exdvBwtHoXwE+eLiK9QCapK97aNKkIjLnx+KFg==", + "dependencies": { + "@minecraft/common": "^1.1.0" + } + }, + "node_modules/@minecraft/server-editor": { + "version": "0.1.0-beta.1.21.30-preview.24", + "resolved": "https://registry.npmjs.org/@minecraft/server-editor/-/server-editor-0.1.0-beta.1.21.30-preview.24.tgz", + "integrity": "sha512-mg9J4zpsM+60XnX8P4fGzMPHTVfome7ZPaJeqyPgYHWq2P8HRl5A+RQ6TLRJI9o78w9icDaP/FTgf2NLN9riTQ==", + "dependencies": { + "@minecraft/common": "^1.0.0", + "@minecraft/server": "^1.15.0-beta.1.21.30-preview.24" + } + }, + "node_modules/@minecraft/server-ui": { + "version": "1.4.0-beta.1.21.30-preview.24", + "resolved": "https://registry.npmjs.org/@minecraft/server-ui/-/server-ui-1.4.0-beta.1.21.30-preview.24.tgz", + "integrity": "sha512-bknRa9JcU1NgOrIakK+wbPlSwg5nf8GJPiLtRRYNfSS5dqcLhAoigWhm6p9LyBWa7HHYXzbi48IWddgYXvtv4Q==", + "dependencies": { + "@minecraft/common": "^1.0.0", + "@minecraft/server": "^1.8.0" + } + }, + "node_modules/@minecraft/vanilla-data": { + "version": "1.21.20", + "resolved": "https://registry.npmjs.org/@minecraft/vanilla-data/-/vanilla-data-1.21.20.tgz", + "integrity": "sha512-4dDfZ4onn8oGAsTpS6KNMjH7mgeRHP9uEJRov9kTxJQCnRZwygp4gZE5qZqC+1p5gvyuM7GBA37IJhNj4rXSzg==" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.13.0.tgz", + "integrity": "sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.13.0.tgz", + "integrity": "sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.13.0.tgz", + "integrity": "sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.13.0.tgz", + "integrity": "sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.13.0.tgz", + "integrity": "sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.13.0.tgz", + "integrity": "sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.13.0.tgz", + "integrity": "sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.13.0.tgz", + "integrity": "sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.13.0.tgz", + "integrity": "sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.13.0.tgz", + "integrity": "sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.13.0.tgz", + "integrity": "sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.13.0.tgz", + "integrity": "sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.13.0.tgz", + "integrity": "sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rushstack/node-core-library": { + "version": "3.66.1", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-3.66.1.tgz", + "integrity": "sha512-ker69cVKAoar7MMtDFZC4CzcDxjwqIhFzqEnYI5NRN/8M3om6saWCVx/A7vL2t/jFCJsnzQplRDqA7c78pytng==", + "dev": true, + "dependencies": { + "colors": "~1.2.1", + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "z-schema": "~5.0.2" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/package-deps-hash": { + "version": "4.1.39", + "resolved": "https://registry.npmjs.org/@rushstack/package-deps-hash/-/package-deps-hash-4.1.39.tgz", + "integrity": "sha512-uIP1drAVJk/njhACBnD/kPI7vyM8mVbSBs+igiRiedeR9cf5Dp7ChLOfaBq5pJFHOHrLVtXVIjECZxrX5WeQRQ==", + "dev": true, + "dependencies": { + "@rushstack/node-core-library": "4.0.2" + } + }, + "node_modules/@rushstack/package-deps-hash/node_modules/@rushstack/node-core-library": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-4.0.2.tgz", + "integrity": "sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==", + "dev": true, + "dependencies": { + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "z-schema": "~5.0.2" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/rig-package": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.5.2.tgz", + "integrity": "sha512-mUDecIJeH3yYGZs2a48k+pbhM6JYwWlgjs2Ca5f2n1G2/kgdgP9D/07oglEGf6mRyXEnazhEENeYTSNDRCwdqA==", + "dev": true, + "dependencies": { + "resolve": "~1.22.1", + "strip-json-comments": "~3.1.1" + } + }, + "node_modules/@rushstack/terminal": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.10.0.tgz", + "integrity": "sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==", + "dev": true, + "dependencies": { + "@rushstack/node-core-library": "4.0.2", + "supports-color": "~8.1.1" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/terminal/node_modules/@rushstack/node-core-library": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-4.0.2.tgz", + "integrity": "sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==", + "dev": true, + "dependencies": { + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "z-schema": "~5.0.2" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/ts-command-line": { + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.19.1.tgz", + "integrity": "sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==", + "dev": true, + "dependencies": { + "@rushstack/terminal": "0.10.0", + "@types/argparse": "1.0.38", + "argparse": "~1.0.9", + "string-argv": "~0.3.1" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/argparse": { + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", + "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==", + "dev": true + }, + "node_modules/@types/chai": { + "version": "4.3.12", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.12.tgz", + "integrity": "sha512-zNKDHG/1yxm8Il6uCCVsm+dRdEsJlFoDu73X17y09bId6UwoYww+vFBsAcRzl8knM1sab3Dp1VRikFQwDOtDDw==", + "dev": true + }, + "node_modules/@types/chai-subset": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/chai-subset/-/chai-subset-1.3.5.tgz", + "integrity": "sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==", + "dev": true, + "dependencies": { + "@types/chai": "*" + } + }, + "node_modules/@types/chokidar": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@types/chokidar/-/chokidar-2.1.3.tgz", + "integrity": "sha512-6qK3xoLLAhQVTucQGHTySwOVA1crHRXnJeLwqK6KIFkkKa2aoMFXh+WEi8PotxDtvN6MQJLyYN9ag9P6NLV81w==", + "deprecated": "This is a stub types definition. chokidar provides its own type definitions, so you do not need this installed.", + "dev": true, + "dependencies": { + "chokidar": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.11.28", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.28.tgz", + "integrity": "sha512-M/GPWVS2wLkSkNHVeLkrF2fD5Lx5UC4PxA0uZcKc6QqbIQUJyW1jVjueJYi1z8n0I5PxYrtpnPnWglE+y9A0KA==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/semver": { + "version": "7.5.8", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", + "dev": true + }, + "node_modules/@types/undertaker": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@types/undertaker/-/undertaker-1.2.11.tgz", + "integrity": "sha512-j1Z0V2ByRHr8ZK7eOeGq0LGkkdthNFW0uAZGY22iRkNQNL9/vAV0yFPr1QN3FM/peY5bxs9P+1f0PYJTQVa5iA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/undertaker-registry": "*", + "async-done": "~1.3.2" + } + }, + "node_modules/@types/undertaker-registry": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/undertaker-registry/-/undertaker-registry-1.0.4.tgz", + "integrity": "sha512-tW77pHh2TU4uebWXWeEM5laiw8BuJ7pyJYDh6xenOs75nhny2kVgwYbegJ4BoLMYsIrXaBpKYaPdYO3/udG+hg==", + "dev": true + }, + "node_modules/@types/yargs-parser": { + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.5.tgz", + "integrity": "sha512-pAJfNtUhU/xDwMKb3rR8MnEUSqHIfsmo3vw09baYY0rEp6AzM6Mb5ZzTuZbe/YXiYL04E6coxe+3qhVOVG98dA==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.3.0.tgz", + "integrity": "sha512-e65ii0Y/jkqX3GXSBM7v9qt9ufxd4omcWyPVVC/msq/hP+hYC6CddLRvlvclni+u7UcaNYT/QhBYlaMHaR2ixw==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "7.3.0", + "@typescript-eslint/type-utils": "7.3.0", + "@typescript-eslint/utils": "7.3.0", + "@typescript-eslint/visitor-keys": "7.3.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.3.0.tgz", + "integrity": "sha512-OZcvH8zipGILuxJmtFgzjAJ+bOpWidzEppIRsT2P4ZUrizU0EsPt4hhzDn3lNfM1Hv7slZPTEQGKjUEn/ftQYA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "7.3.0", + "@typescript-eslint/types": "7.3.0", + "@typescript-eslint/typescript-estree": "7.3.0", + "@typescript-eslint/visitor-keys": "7.3.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.3.0.tgz", + "integrity": "sha512-KlG7xH3J/+nHpZRcYeskO5QVJCnnssxYKBlrj3MoyMONihn3P4xu5jIelrS5YWvBjbytgHmFkzjDApranoYkNA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.3.0", + "@typescript-eslint/visitor-keys": "7.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.3.0.tgz", + "integrity": "sha512-TyQ19ydo248eFjTfHFSvZbxalFUOxU9o2M6SUk3wOA0yRF1ZiB2VP5iaoLrGKcg7TyUxS4knYIHnE55ih82Cfg==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "7.3.0", + "@typescript-eslint/utils": "7.3.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.3.0.tgz", + "integrity": "sha512-oYCBkD0xVxzmZZmYiIWVewyy/q/ugq7PPm4pHhE1IgcT062i96G0Ww3gd8BvUYpk2yvg95q00Hj2CHRLjAuZBA==", + "dev": true, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.3.0.tgz", + "integrity": "sha512-UF85+bInQZ3olhI/zxv0c2b2SMuymn3t6/lkRkSB239HHxFmPSlmcggOKAjYzqRCdtqhPDftpsV1LlDH66AXrA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.3.0", + "@typescript-eslint/visitor-keys": "7.3.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.3.0.tgz", + "integrity": "sha512-7PKIDoe2ppR1SK56TLv7WQXrdHqEiueVwLVIjdSR4ROY2LprmJenf4+tT8iJIfxrsPzjSJGNeQ7GVmfoYbqrhw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "7.3.0", + "@typescript-eslint/types": "7.3.0", + "@typescript-eslint/typescript-estree": "7.3.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.3.0.tgz", + "integrity": "sha512-Gz8Su+QjOI5qP8UQ74VqKaTt/BLy23IhCCHLbYxhmNzHCGFHrvfgq4hISZvuqQ690ubkD0746qLcWC647nScuQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.3.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/@vitest/expect": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.34.6.tgz", + "integrity": "sha512-QUzKpUQRc1qC7qdGo7rMK3AkETI7w18gTCUrsNnyjjJKYiuUB9+TQK3QnR1unhCnWRC0AbKv2omLGQDF/mIjOw==", + "dev": true, + "dependencies": { + "@vitest/spy": "0.34.6", + "@vitest/utils": "0.34.6", + "chai": "^4.3.10" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.34.6.tgz", + "integrity": "sha512-1CUQgtJSLF47NnhN+F9X2ycxUP0kLHQ/JWvNHbeBfwW8CzEGgeskzNnHDyv1ieKTltuR6sdIHV+nmR6kPxQqzQ==", + "dev": true, + "dependencies": { + "@vitest/utils": "0.34.6", + "p-limit": "^4.0.0", + "pathe": "^1.1.1" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner/node_modules/p-limit": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^1.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@vitest/runner/node_modules/yocto-queue": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", + "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@vitest/snapshot": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-0.34.6.tgz", + "integrity": "sha512-B3OZqYn6k4VaN011D+ve+AA4whM4QkcwcrwaKwAbyyvS/NB1hCWjFIBQxAQQSQir9/RtyAAGuq+4RJmbn2dH4w==", + "dev": true, + "dependencies": { + "magic-string": "^0.30.1", + "pathe": "^1.1.1", + "pretty-format": "^29.5.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.34.6.tgz", + "integrity": "sha512-xaCvneSaeBw/cz8ySmF7ZwGvL0lBjfvqc1LpQ/vcdHEvpLn3Ff1vAvjw+CoGn0802l++5L/pxb7whwcWAw+DUQ==", + "dev": true, + "dependencies": { + "tinyspy": "^2.1.1" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.34.6.tgz", + "integrity": "sha512-IG5aDD8S6zlvloDsnzHw0Ut5xczlF+kv2BOTo+iXfPr54Yhi5qbVOgGB1hZaVq4iJ4C/MZ2J0y15IlsV/ZcI0A==", + "dev": true, + "dependencies": { + "diff-sequences": "^29.4.3", + "loupe": "^2.3.6", + "pretty-format": "^29.5.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/arr-filter": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/arr-filter/-/arr-filter-1.1.2.tgz", + "integrity": "sha512-A2BETWCqhsecSvCkWAeVBFLH6sXEUGASuzkpjL3GR1SlL/PWL6M3J8EAAld2Uubmh39tvkJTqC9LeLHCUKmFXA==", + "dev": true, + "dependencies": { + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/arr-map/-/arr-map-2.0.2.tgz", + "integrity": "sha512-tVqVTHt+Q5Xb09qRkbu+DidW1yYzz5izWS2Xm2yFm7qJnmUfz4HPzNxbHkdRJbz2lrqI7S+z17xNYdFcBBO8Hw==", + "dev": true, + "dependencies": { + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", + "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-initial": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz", + "integrity": "sha512-BC4Yl89vneCYfpLrs5JU2aAu9/a+xWbeKhvISg9PT7eWFB9UlRvI+rKEtk6mgxWr3dSkk9gQ8hCrdqt06NXPdw==", + "dev": true, + "dependencies": { + "array-slice": "^1.0.0", + "is-number": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-initial/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-last": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array-last/-/array-last-1.3.0.tgz", + "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", + "dev": true, + "dependencies": { + "is-number": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-last/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-slice": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", + "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/async-done": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/async-done/-/async-done-1.3.2.tgz", + "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.2", + "process-nextick-args": "^2.0.0", + "stream-exhaust": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/async-settle": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/async-settle/-/async-settle-2.0.0.tgz", + "integrity": "sha512-Obu/KE8FurfQRN6ODdHN9LuXqwC+JFIM9NRyZqJJ4ZfLJmIYN9Rg0/kb+wF70VV5+fJusTMQlJ1t5rF7J/ETdg==", + "dev": true, + "dependencies": { + "async-done": "^2.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/async-settle/node_modules/async-done": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/async-done/-/async-done-2.0.0.tgz", + "integrity": "sha512-j0s3bzYq9yKIVLKGE/tWlCpa3PfFLcrDZLTSVdnnCTGagXuXBJO4SsY9Xdk/fQBirCkH4evW5xOeJXqlAQFdsw==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.4.4", + "once": "^1.4.0", + "stream-exhaust": "^1.0.2" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/bach": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bach/-/bach-2.0.1.tgz", + "integrity": "sha512-A7bvGMGiTOxGMpNupYl9HQTf0FFDNF4VCmks4PJpFyN1AX2pdKuxuwdvUz2Hu388wcgp+OvGFNsumBfFNkR7eg==", + "dev": true, + "dependencies": { + "async-done": "^2.0.0", + "async-settle": "^2.0.0", + "now-and-later": "^3.0.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/bach/node_modules/async-done": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/async-done/-/async-done-2.0.0.tgz", + "integrity": "sha512-j0s3bzYq9yKIVLKGE/tWlCpa3PfFLcrDZLTSVdnnCTGagXuXBJO4SsY9Xdk/fQBirCkH4evW5xOeJXqlAQFdsw==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.4.4", + "once": "^1.4.0", + "stream-exhaust": "^1.0.2" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chai": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", + "dev": true, + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/check-error": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/collection-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-map/-/collection-map-1.0.0.tgz", + "integrity": "sha512-5D2XXSpkOnleOI21TG7p3T0bGAsZ/XknZpKBmGYyluO8pw4zA3K8ZlrBIbC4FXg3m6z/RNFiUFfT2sQK01+UHA==", + "dev": true, + "dependencies": { + "arr-map": "^2.0.2", + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/colors": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.2.5.tgz", + "integrity": "sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==", + "dev": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "optional": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dev": true, + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", + "dev": true, + "dependencies": { + "type-detect": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/default-resolution": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/default-resolution/-/default-resolution-2.0.0.tgz", + "integrity": "sha512-2xaP6GiwVwOEbXCGoJ4ufgC76m8cj805jrghScewJC2ZDsb9U0b4BIrba+xt/Uytyd0HvQ6+WymSRTfnYj59GQ==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-match-patch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", + "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==", + "dev": true + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dev": true, + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dev": true, + "dependencies": { + "d": "^1.0.2", + "ext": "^1.7.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dev": true, + "dependencies": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/esbuild": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", + "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.20.2", + "@esbuild/android-arm": "0.20.2", + "@esbuild/android-arm64": "0.20.2", + "@esbuild/android-x64": "0.20.2", + "@esbuild/darwin-arm64": "0.20.2", + "@esbuild/darwin-x64": "0.20.2", + "@esbuild/freebsd-arm64": "0.20.2", + "@esbuild/freebsd-x64": "0.20.2", + "@esbuild/linux-arm": "0.20.2", + "@esbuild/linux-arm64": "0.20.2", + "@esbuild/linux-ia32": "0.20.2", + "@esbuild/linux-loong64": "0.20.2", + "@esbuild/linux-mips64el": "0.20.2", + "@esbuild/linux-ppc64": "0.20.2", + "@esbuild/linux-riscv64": "0.20.2", + "@esbuild/linux-s390x": "0.20.2", + "@esbuild/linux-x64": "0.20.2", + "@esbuild/netbsd-x64": "0.20.2", + "@esbuild/openbsd-x64": "0.20.2", + "@esbuild/sunos-x64": "0.20.2", + "@esbuild/win32-arm64": "0.20.2", + "@esbuild/win32-ia32": "0.20.2", + "@esbuild/win32-x64": "0.20.2" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-minecraft-linting": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-minecraft-linting/-/eslint-plugin-minecraft-linting-1.2.2.tgz", + "integrity": "sha512-ILEZXCJfRk4xWqwRYkx0Ns6ND4WOYGDVeEjmxvDUm//EIPoVroGloHNrb8Fk/2VJMhtpiWJtBjAGA8PEJ+tWyg==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "^7.2.0", + "@typescript-eslint/parser": "^7.2.0", + "@typescript-eslint/utils": "^7.2.0", + "eslint": "^8.53.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dev": true, + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dev": true, + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dev": true, + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", + "dev": true, + "dependencies": { + "for-in": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/js-yaml/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/jsonc-parser": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", + "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==", + "dev": true + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/just-scripts": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/just-scripts/-/just-scripts-2.2.3.tgz", + "integrity": "sha512-hL/Xx5zuQRWBWwlFFBZfjKCzhG/gPs3s8HWFPbwa56ieGdvbANkLE0XPpqV1lTDgftg6qKc8mfPGeaCibKwskA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-match-patch": "1.0.5", + "fs-extra": "^11.0.0", + "glob": "^7.1.3", + "just-scripts-utils": "^2.0.1", + "just-task": ">=1.9.0 <2.0.0", + "prompts": "^2.4.0", + "run-parallel-limit": "^1.0.6", + "semver": "^7.0.0", + "supports-color": "^8.1.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "just-scripts": "bin/just-scripts.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/just-scripts-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/just-scripts-utils/-/just-scripts-utils-2.0.1.tgz", + "integrity": "sha512-1w/XxLA/m90Dx7xZu1+TnBm16wZxOe55Izsi/fH3EIaNOutAYMPwmZiKUrjEAk9qgZUj3t+QMU0Geap0zaM4/g==", + "dev": true, + "dependencies": { + "fs-extra": "^11.0.0", + "just-task-logger": ">=1.2.1 <2.0.0", + "semver": "^7.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/just-scripts-utils/node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/just-scripts-utils/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/just-scripts-utils/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/just-scripts/node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/just-scripts/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/just-scripts/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/just-task": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/just-task/-/just-task-1.9.0.tgz", + "integrity": "sha512-L04cusZ4XAoCRTwARF1CksFM07geurx2M6ccOtxROc9D/OiXsoOXyV2KMsMHmxVIPbFP8wRRVGf2z68UsrBX0g==", + "dev": true, + "dependencies": { + "@rushstack/package-deps-hash": "^4.0.0", + "@types/chokidar": "^2.1.3", + "@types/undertaker": "^1.2.8", + "@types/yargs-parser": "^20.2.2", + "bach": "^2.0.0", + "chalk": "^4.0.0", + "chokidar": "^3.5.2", + "fs-extra": "^11.0.0", + "just-task-logger": ">=1.2.1 <2.0.0", + "resolve": "^1.19.0", + "undertaker": "^1.3.0", + "undertaker-registry": "^2.0.0", + "yargs-parser": "^20.2.3" + }, + "bin": { + "just": "bin/just.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/just-task-logger": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/just-task-logger/-/just-task-logger-1.2.1.tgz", + "integrity": "sha512-OnVvMTqOC44cDzIrQ3F43FCYY3OyBscanV6GzKvm3SlaUj0Pvc2F39jNMARrstg7ILIdWkeNg1+iWRxsOfKxeA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "yargs-parser": "^20.2.3" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/just-task/node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/just-task/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/just-task/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/last-run": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/last-run/-/last-run-1.1.1.tgz", + "integrity": "sha512-U/VxvpX4N/rFvPzr3qG5EtLKEnNI0emvIQB3/ecEwv+8GHaUKbIB8vxv1Oai5FAF0d0r7LXHhLLe5K/yChm5GQ==", + "dev": true, + "dependencies": { + "default-resolution": "^2.0.0", + "es6-weak-map": "^2.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/local-pkg": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz", + "integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "dev": true + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/loupe": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/magic-string": { + "version": "0.30.8", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.8.tgz", + "integrity": "sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/make-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", + "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", + "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mlly": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.6.1.tgz", + "integrity": "sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==", + "dev": true, + "dependencies": { + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.0.3", + "ufo": "^1.3.2" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/now-and-later": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-3.0.0.tgz", + "integrity": "sha512-pGO4pzSdaxhWTGkfSfHx3hVzJVslFPwBp2Myq9MYN/ChfJZF87ochMAXnvz6/58RJSf5ik2q9tXprBBrk2cpcg==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/object.defaults": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", + "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", + "dev": true, + "dependencies": { + "array-each": "^1.0.1", + "array-slice": "^1.0.0", + "for-own": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.reduce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.reduce/-/object.reduce-1.0.1.tgz", + "integrity": "sha512-naLhxxpUESbNkRqc35oQ2scZSJueHGQNUfMW/0U37IgN6tE2dgDWg3whf+NEliy3F/QysrO48XKUz/nGPe+AQw==", + "dev": true, + "dependencies": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true + }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.3.tgz", + "integrity": "sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==", + "dev": true, + "dependencies": { + "jsonc-parser": "^3.2.0", + "mlly": "^1.2.0", + "pathe": "^1.1.0" + } + }, + "node_modules/postcss": { + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.13.0.tgz", + "integrity": "sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.13.0", + "@rollup/rollup-android-arm64": "4.13.0", + "@rollup/rollup-darwin-arm64": "4.13.0", + "@rollup/rollup-darwin-x64": "4.13.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.13.0", + "@rollup/rollup-linux-arm64-gnu": "4.13.0", + "@rollup/rollup-linux-arm64-musl": "4.13.0", + "@rollup/rollup-linux-riscv64-gnu": "4.13.0", + "@rollup/rollup-linux-x64-gnu": "4.13.0", + "@rollup/rollup-linux-x64-musl": "4.13.0", + "@rollup/rollup-win32-arm64-msvc": "4.13.0", + "@rollup/rollup-win32-ia32-msvc": "4.13.0", + "@rollup/rollup-win32-x64-msvc": "4.13.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/run-parallel-limit": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/run-parallel-limit/-/run-parallel-limit-1.1.0.tgz", + "integrity": "sha512-jJA7irRNM91jaKc3Hcl1npHsFLOXOoTkPCUL1JEa1R82O2miplXXRaGdjW/KM/98YQWDhJLiSs793CnXfblJUw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true + }, + "node_modules/std-env": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", + "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", + "dev": true + }, + "node_modules/stream-exhaust": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stream-exhaust/-/stream-exhaust-1.0.2.tgz", + "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==", + "dev": true + }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "engines": { + "node": ">=0.6.19" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-literal": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-1.3.0.tgz", + "integrity": "sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==", + "dev": true, + "dependencies": { + "acorn": "^8.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tinybench": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.6.0.tgz", + "integrity": "sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==", + "dev": true + }, + "node_modules/tinypool": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.7.0.tgz", + "integrity": "sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz", + "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "dev": true, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.2.tgz", + "integrity": "sha512-eiutMaL0J2MKdhcOM1tUy13pIrYnyR87fEd8STJQFrrAwImwvlXkxlZEjaKah8r2viPohld08lt73QfLG1NxMg==", + "dev": true + }, + "node_modules/undertaker": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/undertaker/-/undertaker-1.3.0.tgz", + "integrity": "sha512-/RXwi5m/Mu3H6IHQGww3GNt1PNXlbeCuclF2QYR14L/2CHPz3DFZkvB5hZ0N/QUkiXWCACML2jXViIQEQc2MLg==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "bach": "^1.0.0", + "collection-map": "^1.0.0", + "es6-weak-map": "^2.0.1", + "fast-levenshtein": "^1.0.0", + "last-run": "^1.1.0", + "object.defaults": "^1.0.0", + "object.reduce": "^1.0.0", + "undertaker-registry": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker-registry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/undertaker-registry/-/undertaker-registry-2.0.0.tgz", + "integrity": "sha512-+hhVICbnp+rlzZMgxXenpvTxpuvA67Bfgtt+O9WOE5jo7w/dyiF1VmoZVIHvP2EkUjsyKyTwYKlLhA+j47m1Ew==", + "dev": true, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/undertaker/node_modules/async-settle": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-settle/-/async-settle-1.0.0.tgz", + "integrity": "sha512-VPXfB4Vk49z1LHHodrEQ6Xf7W4gg1w0dAPROHngx7qgDjqmIQ+fXmwgGXTW/ITLai0YLSvWepJOP9EVpMnEAcw==", + "dev": true, + "dependencies": { + "async-done": "^1.2.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker/node_modules/bach": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", + "integrity": "sha512-bZOOfCb3gXBXbTFXq3OZtGR88LwGeJvzu6szttaIzymOTS4ZttBNOWSv7aLZja2EMycKtRYV0Oa8SNKH/zkxvg==", + "dev": true, + "dependencies": { + "arr-filter": "^1.1.1", + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "array-each": "^1.0.0", + "array-initial": "^1.0.0", + "array-last": "^1.1.1", + "async-done": "^1.2.2", + "async-settle": "^1.0.0", + "now-and-later": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker/node_modules/fast-levenshtein": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-1.1.4.tgz", + "integrity": "sha512-Ia0sQNrMPXXkqVFt6w6M1n1oKo3NfKs+mvaV811Jwir7vAk9a6PVV9VPYf6X3BU97QiLEmuW3uXH9u87zDFfdw==", + "dev": true + }, + "node_modules/undertaker/node_modules/now-and-later": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.1.tgz", + "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==", + "dev": true, + "dependencies": { + "once": "^1.3.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker/node_modules/undertaker-registry": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/undertaker-registry/-/undertaker-registry-1.0.1.tgz", + "integrity": "sha512-UR1khWeAjugW3548EfQmL9Z7pGMlBgXteQpr1IZeZBtnkCJQJIJ1Scj0mb9wQaPvUZ9Q17XqW6TIaPchJkyfqw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/validator": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.11.0.tgz", + "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vite": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.8.tgz", + "integrity": "sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==", + "dev": true, + "dependencies": { + "esbuild": "^0.20.1", + "postcss": "^8.4.38", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.34.6.tgz", + "integrity": "sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==", + "dev": true, + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.4", + "mlly": "^1.4.0", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "vite": "^3.0.0 || ^4.0.0 || ^5.0.0-0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": ">=v14.18.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vitest": { + "version": "0.34.6", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.34.6.tgz", + "integrity": "sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==", + "dev": true, + "dependencies": { + "@types/chai": "^4.3.5", + "@types/chai-subset": "^1.3.3", + "@types/node": "*", + "@vitest/expect": "0.34.6", + "@vitest/runner": "0.34.6", + "@vitest/snapshot": "0.34.6", + "@vitest/spy": "0.34.6", + "@vitest/utils": "0.34.6", + "acorn": "^8.9.0", + "acorn-walk": "^8.2.0", + "cac": "^6.7.14", + "chai": "^4.3.10", + "debug": "^4.3.4", + "local-pkg": "^0.4.3", + "magic-string": "^0.30.1", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "std-env": "^3.3.3", + "strip-literal": "^1.0.1", + "tinybench": "^2.5.0", + "tinypool": "^0.7.0", + "vite": "^3.1.0 || ^4.0.0 || ^5.0.0-0", + "vite-node": "0.34.6", + "why-is-node-running": "^2.2.2" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": ">=v14.18.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@vitest/browser": "*", + "@vitest/ui": "*", + "happy-dom": "*", + "jsdom": "*", + "playwright": "*", + "safaridriver": "*", + "webdriverio": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "playwright": { + "optional": true + }, + "safaridriver": { + "optional": true + }, + "webdriverio": { + "optional": true + } + } + }, + "node_modules/webpack-merge": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", + "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "flat": "^5.0.2", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.2.2.tgz", + "integrity": "sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==", + "dev": true, + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/yazl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", + "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/z-schema": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz", + "integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==", + "dev": true, + "dependencies": { + "lodash.get": "^4.4.2", + "lodash.isequal": "^4.5.0", + "validator": "^13.7.0" + }, + "bin": { + "z-schema": "bin/z-schema" + }, + "engines": { + "node": ">=8.0.0" + }, + "optionalDependencies": { + "commander": "^9.4.1" + } + }, + "node_modules/zip-lib": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/zip-lib/-/zip-lib-0.7.3.tgz", + "integrity": "sha512-hp40KYzTJvoaCRr2t6hztlPnVmHYqDUDiIn0hlfAFwVBs3/jwkLy8aZ7NVGHECeWH2Tv8WPwWyR6QuWYarIjJQ==", + "dev": true, + "dependencies": { + "yauzl": "^2.10.0", + "yazl": "^2.5.1" + }, + "engines": { + "node": ">=8" + } + } + } +} diff --git a/editor-multi/package.json b/editor-multi/package.json new file mode 100644 index 0000000..051eb10 --- /dev/null +++ b/editor-multi/package.json @@ -0,0 +1,42 @@ +{ + "name": "editor-multi", + "version": "0.1.0", + "productName": "Minecraft Multiple Editor Add-on", + "description": "Minecraft Multiple Editor Add-on", + "private": true, + "devDependencies": { + "@minecraft/core-build-tasks": "^1.1.3", + "eslint-plugin-minecraft-linting": "^1.2.2", + "source-map": "^0.7.4", + "ts-node": "^10.9.1", + "typescript": "^5.5.4" + }, + "scripts": { + "lint": "just-scripts lint", + "build": "just-scripts build", + "clean": "just-scripts clean", + "local-deploy": "just-scripts local-deploy", + "buildsnippets": "just-scripts buildSnippets", + "mcaddon": "just-scripts mcaddon", + "enablemcloopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-1958404141-86561845-1752920682-3514627264-368642714-62675701-733520436", + "enablemcpreviewloopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-424268864-5579737-879501358-346833251-474568803-887069379-4040235476" + }, + "dependencies": { + "@minecraft/math": "^1.4.0", + "@minecraft/server": "^1.15.0-beta.1.21.30-preview.24", + "@minecraft/server-editor": "^0.1.0-beta.1.21.30-preview.24", + "@minecraft/server-ui": "^1.4.0-beta.1.21.30-preview.24", + "@minecraft/vanilla-data": "^1.21.20" + }, + "overrides": { + "@minecraft/math": { + "@minecraft/server": "$@minecraft/server" + }, + "@minecraft/server-gametest": { + "@minecraft/server": "$@minecraft/server" + }, + "@minecraft/server-ui": { + "@minecraft/server": "$@minecraft/server" + } + } +} diff --git a/editor-multi/resource_packs/editor-multi/manifest.json b/editor-multi/resource_packs/editor-multi/manifest.json new file mode 100644 index 0000000..0a9f125 --- /dev/null +++ b/editor-multi/resource_packs/editor-multi/manifest.json @@ -0,0 +1,25 @@ +{ + "format_version": 2, + "header": { + "name": "Minecraft Editor Multiple Plugin", + "description": "A simple list of editor code snippets.", + "uuid": "b3d35b27-1827-4bff-bdf5-694942cfdd25", + "version": [1, 0, 0], + "min_engine_version": [1, 20, 0] + }, + "capabilities": ["editorExtension"], + "modules": [ + { + "description": "Editor Basics", + "type": "resources", + "uuid": "9f6d66d2-5373-4798-a729-3bc154d4a81b", + "version": [1, 0, 0] + } + ], + "dependencies": [ + { + "uuid": "2fb88d39-e589-4e49-a69f-f575f8705e5c", + "version": [1, 0, 0] + } + ] +} diff --git a/editor-multi/resource_packs/editor-multi/pack_icon.png b/editor-multi/resource_packs/editor-multi/pack_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b1e893d016462816fde1c6637e0a6a707da1f4fc GIT binary patch literal 1105 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K5893O0R7}x|GzJD12~QWtkP61PcQ@wV4iIs; zxV}NULU47V)YNl9QV!lnm(B`_I=0uSkx^aV=x^b9$pZ|WA08ciRBy9qzwO=QeSXg$ zS1ft`)a=`nU(a^zJO0bCL5H!yfH<__@Ef}Z_xaP=?96uiA7EifWFi{1Kc9YmWi7*j zT|Nu~YDA-Ly*qBtzu){w{%b9Z8Uu$g(dhJh<{6>({&v;#?%TE1&crYrXkCu=+r(yU%WLy7J$)o1eenvf4_X{Xz=X_<8!B(W3u6*T1i| zv)A7WPQa!Hl07#3nckRiY_VBZ?YH;m_8DfNs@#zKZGXo;ZHCuIXnxJ!61&yI0^cDNbNf!QkoY K=d#Wzp$Pz?-cM!# literal 0 HcmV?d00001 diff --git a/editor-multi/resource_packs/editor-multi/texts/en_US.lang b/editor-multi/resource_packs/editor-multi/texts/en_US.lang new file mode 100644 index 0000000..a5f91f4 --- /dev/null +++ b/editor-multi/resource_packs/editor-multi/texts/en_US.lang @@ -0,0 +1,86 @@ +## Comments can be added anywhere on a valid line by starting with '##' +## +## Note, trailing spaces will NOT be trimmed. If you want room between the end of the string and the start of a +## comment on the same line, use TABs. +sample.cameragrapple.title=Camera Base Grapple +sample.cameragrapple.keyBinding.flyToCursor=Fly To Cursor +sample.cameragrapple.keyBinding.flyToSelection=Fly To Selection +sample.dyebrush.tool.title=Dye Brush +sample.dyebrush.tool.tooltip=Change the color of entity color components. The updated color is applied when entity simulation resumes. +sample.dyebrush.pane.colordropdown.title=Color +sample.farmgenerator.tool.title=Farm Generator +sample.farmgenerator.tool.tooltip=Quickly create a custom farm +sample.farmgenerator.pane.title=Farm Generator +sample.farmgenerator.pane.length=Length +sample.farmgenerator.pane.width=Width +sample.farmgenerator.pane.fence=Fence +sample.farmgenerator.pane.irrigation=Add Irrigation +sample.farmgenerator.pane.irrigation.tooltip=Adds water blocks in the farm to irrigate crops. +sample.farmgenerator.pane.crops.title=Crops +sample.farmgenerator.pane.crops.wheat=Wheat +sample.farmgenerator.pane.crops.potato=Potato +sample.farmgenerator.pane.crops.beets=Beetroot +sample.farmgenerator.pane.crops.pumpkin=Pumpkin +sample.farmgenerator.pane.crops.carrot=Carrot +sample.farmgenerator.pane.animals.title=Animals +sample.farmgenerator.pane.animals.cow=Cow +sample.farmgenerator.pane.animals.sheep=Sheep +sample.farmgenerator.pane.animals.pig=Pig +sample.farmgenerator.keyBinding.toggleTool=Toggle Farm Generator Tool +sample.farmgenerator.keyBinding.place=Place Farm At Cursor +sample.gotomark.tool.title=Goto Mark +sample.gotomark.tool.tooltip=Set or Jump to a stored location +sample.gotomark.pane.title=Goto Mark +sample.gotomark.pane.location=Player Location +sample.gotomark.pane.button.teleport=Teleport to location +sample.gotomark.pane.button.setspawn=Set Spawn Point to current +sample.gotomark.pane.button.gotospawn=Goto Spawn Point +sample.gotomark.pane.locationpane.title=Stored Locations +sample.gotomark.pane.locationpane.button.teleport=Teleport to Stored Location %1$s +sample.gotomark.pane.locationpane.button.delete=Delete Stored Location +sample.gotomark.pane.locationpane.input.name=New Name +sample.gotomark.pane.locationpane.button.store=Store Current Location As... +sample.gotomark.pane.locationpane.dropdownLabel=Stored Location +sample.portalgenerator.title=Portal Generator +sample.portalgenerator.tooltip=Create Portals with a single click +sample.portalgenerator.pane.title=Portal Generator +sample.portalgenerator.pane.replacefloor=Replace Floor +sample.portalgenerator.pane.portaltype=Portal Type +sample.portalgenerator.pane.portaltype.nether=Nether Portal +sample.portalgenerator.pane.portaltype.end=End Portal +sample.portalgenerator.pane.nether.pane.title=Nether Portal +sample.portalgenerator.pane.nether.pane.orientation=Portal Orientation +sample.portalgenerator.pane.nether.pane.orientation.x=X-Axis +sample.portalgenerator.pane.nether.pane.orientation.y=Y-Axis +sample.portalgenerator.pane.nether.pane.width=Block Width +sample.portalgenerator.pane.nether.pane.height=Block Height +sample.portalgenerator.pane.nether.pane.corners=Corners +sample.portalgenerator.pane.nether.pane.corners.tooltip=Adds corner blocks to the portal. +sample.portalgenerator.pane.nether.pane.percentage=Percentage Complete +sample.portalgenerator.pane.end.pane.title=End Portal +sample.portalgenerator.pane.end.pane.filledcount=Filled 'Eye of Ender' count +sample.portalgenerator.keyBinding.toggleTool=Toggle Portal Generator Tool +sample.simplelocate.tool.title=Locate +sample.simplelocate.tool.locatetype.title=Locate Type +sample.simplelocate.tool.locatetype.biome.title=Locate Biome +sample.simplelocate.tool.locatetype.biome=Biome +sample.simplelocate.tool.locatetype.structure.title=Locate Structure +sample.simplelocate.tool.locatetype.structure=Structure +sample.simplelocate.tool.biome.title=Biome +sample.simplelocate.tool.biome.find=Find Biome +sample.simplelocate.tool.structure.title=Structure +sample.simplelocate.tool.structure.message=Structure searching is not currently supported +sample.simplelocate.tool.results.title=Results +sample.simplelocate.tool.results.foundat.title=Found at +sample.simplelocate.tool.results.foundat=Found at +sample.simplelocate.tool.results.notfound.title=No Results +sample.simplelocate.tool.results.notfound=No Results Found +sample.simplelocate.tool.keyBinding.toggleTool=Toggle Locate Biome Tool +sample.treegenerator.tool.title=Tree Generator +sample.treegenerator.tool.tooltip=Single Click to place whole trees +sample.treegenerator.pane.title=Tree Generator +sample.treegenerator.pane.type=Tree Type +sample.treegenerator.pane.height=Tree Height +sample.treegenerator.pane.variance=Tree Height Random Variance +sample.treegenerator.keyBinding.place=Place Tree At Cursor +sample.treegenerator.keyBinding.toggleTool=Toggle Tree Generator Tool \ No newline at end of file diff --git a/editor-multi/resource_packs/editor-multi/textures/dye-brush.png b/editor-multi/resource_packs/editor-multi/textures/dye-brush.png new file mode 100644 index 0000000000000000000000000000000000000000..94cb7fbbfcf1ef6de37b9de8a82600b54a62c76f GIT binary patch literal 698 zcmV;r0!96aP)Kl}k($Q51&Hboz`;TQt$wmS_lUOeC(Tff!cCglSSR zEL@2|#E7UXLkKYvg9`+8W1?apE zn3N$Gaf{a*kGz^0|9)196D=P&dPZpo`sKwW+P5v=KO zLqqen0$7%{%*N+anVbwU^An5TzsV-E*}iRnCsUIF00@R=5EMcHfT?FsUvCSbyQk+O z08EDk2(c)HSQOJ?0RV8OtE;~pfKjTLVHhGJ;y7+kd~snpE6bG0WY*&Vh~qdi==J2< z@2Hk#SuDjjO7obGj*Z>2?y4e5lGe>j1&E?ZyKQzFxiK=X<)PYv!{Mlj%*N&xl1VBS z3W^^a42Gc1YPBD5)ig?y6yH(@XM215OnL+TUR_nKE|<>@+p4(9uI}#ZYB`Dkx7&TR z)x&ozOCsrX>buD5*mG(5*PT`m?{0LvPgM+PJK5gsbh+x%>9nf(nw+U0DSd5i?IGU7 zHz_6Pm4aSx+rfN3uQ@i>v{Wb*_7cMo&-43~5)?Z~iK)ENXsiTq1wcs8vLuR<;?Gh9 zJh*rNJ&HxyVzFqM`-$i+XSLqWX0!BgV&b`CmfB6eIX-q50KN*L^&9-xx-7(^G#wV2 z0AO%vXjIipYgD}Z_#pxSk@-1Wk}FH?0Px~fAgEca7QkdOnIHLm zZ%Sjj2)qO^0AOh)E#d0$HD9^i(40jj9cyVh;cfGFI9;yea#pVX^7&KXvClt{NF;=f gfK6WiAN_Lr0}diJB?(v)PXGV_07*qoM6N<$f>xzGwg3PC literal 0 HcmV?d00001 diff --git a/editor-multi/resource_packs/editor-multi/textures/farm-generator.png b/editor-multi/resource_packs/editor-multi/textures/farm-generator.png new file mode 100644 index 0000000000000000000000000000000000000000..caaa8d425f48d149bcfd677c52487ed0743080a7 GIT binary patch literal 1302 zcmV+x1?l>UP)FT7VnSgs2ot8lXr&u-RHQ%bVuDg;H)_}5MTIe2m8FZKt^G45F0nz4 zKPNxuyu0X5IcAA$um|3Y^L^j@ywCf5@A(*>=OIZFSeC`^-MhhY9CSJz^m;uKi3Db5 zX0W`xjFOTPlh5ZnH#s>OZEI`mG8hannM}}VG!O&<27>`bMMZe=;sxgB=Ac%q0RS9w zfMr>TqKN0upJQcZ1yxm5Z`aq?pK~}Ijisffi=rr6{eJ&2zf$rqk(kZ*Ol`PfyR+gM)+PX0sUw4<1A) z6hb&0e$xSCGMNAXq9}rhuyf~5)YjIXId$q()BgSY%Vk0$TCYr@cwk`Q$G*P4%VT3> zgVWQ~&}y|%sZ_6X%w{v>A}uW~pN7NXm!yCsNt6qcB>iLW(W6JddORK{%d*(9V+Xcx z-wwuZw<8=5qqes8SYKb?V76k0VUWpW#0L)^e4fc<5-iICKxt)VWkdEk8C$n*)g=-M z!DuuB7K;S{5DW%?S1MB~OeT{;TU#4CIyz8RR)*upkH4GUiL#qZmo9w)09LE@b;Y{6 zx?{N#-+0RZ53yK6Q&pGu`tHk(bW)oQ`AEDN8{*OBWYm17$S1k}UB z!?0Sdu-ol9$6Mx5sZ^@w=H|}?K>)m7Z(Tk$a)_cR&CJY1W@l$Zu~;m$yuAD>-&v(q zd-m+H6|}aterd5-)M~Xl4qycUpRI~v7>4KhLZi`W((CmmwOXyq*8zYi!!UEAD5i*L z2?q`wP`9_YgNQ&xdpA<{FXKZZLU(sJ4jnqA<06qrYH@M#jon$wHxRnscjc76s;;hv$KyeNe?P8WyN0T& zDtJ7e!e`H({Wdf-^m8y698e6&X-SemL`bDlP?Cd)%H#=XZf>sJv}qGNIyxFyU0o%& z+x-y$Xfzu5e7(|fPY&PiidR)AC z(HoD)=Q=w(yZwIu-6v0;{NZ#uD|I>@Zr!?tWHQu z?=>|weEhr{tsGMQYQo}PZWYuB#5E|<$i zMD+0C!=b{$LVaUnBZ#OcUx9UFsYECgTDfrH!pDBUfB4FkE8iYIeE2Ps$uv1WKK|3b zefzkDg#{rP4E{+(?@dfh%;w`^vSzr9h{gb5X=!PZ=Xt)py}kba{rlfnS65rMZQG`k zBniP_@YTr3h~V{lFS}f>^U-KDR$N?M{P%dD0dQm8PojtlQa}&{T3cJAd{|gm$hCY{ z$;qWsDP;%q0Dh4_IF3^l6cnf_&nwIGJf+iVfrup85dc#gS@gf-FMt6#y$ojdHvj+t M07*qoM6N<$f|%=Tp8x;= literal 0 HcmV?d00001 diff --git a/editor-multi/resource_packs/editor-multi/textures/goto-mark.png b/editor-multi/resource_packs/editor-multi/textures/goto-mark.png new file mode 100644 index 0000000000000000000000000000000000000000..cc132e849c809f63385828576abb647e5bfad44c GIT binary patch literal 1435 zcmV;M1!Ve(P)l+3V<6(S*G#kWxQK?BIZu8bvA zYAJ!U4{*EE)nq%#NuGP3obx;9`JX%wLqq@ofj|Hvf?BPHPN&1-;v!N~Qev~SvyUYt zBz(YeTrAe@<;$1P?RI-xcX#*KR;%^7LZN`u>BP{`5EzER>gpXV|N@5$E5%NyLa!l78Dc+Wir`@LVbAyJIKt;+}6|6b7%AB&5?6+ za}&M2y`Rp^%yca-E_$b?rl3-(uw}~@Rw|X|=jG*np;RhW9*^e_lgX6c)z$Shumc}} zVHl{@>gdtYQ9H+R(%#Ll*{FD&z?OitgEYQ)a&*7+}zy4vuDqi z0Qm7=BHL`X+eAeB_wP>u0F%iS+Sk`tV6|FnUc7i=^A~n`d3l9jA3uKlJpkCVXU|R| zq9;$D^!tnKuQ<)m&oAuTw-4L5Z^!uf_z0iG^go47+yiistupI-MdYfMFQ4wYAj} z5naE2{aXNFSr+N(=}1gWM0t66A`y|zW*YzityYV;xH!K0W+I~2*4D-VUH|z|tJTo! z^cylTnz?;&aZmqYXSUiSYKcN84=Ow z=;&bJ#2q+rz<1^X!Ps=xuI(qbIF#yP9GH@Ih9KfR;P|NF?$(%d-50yv-j~etv#N;M5q6M#FkB8$2jLAP{VD{*A7xswyKQ znwXfdD-;U(m^)+0G^vsX zlau2KXt17IJYwO9MG!<=>ao~|3Ox^PeF#OcPd-WljhhrCf59?#Ge(U@5ef$?i2*KI2XVKo?4vM0n)9EleI*Q)jUI0LQ zdpkNhIuMJ+(A3ma8w!PbtE;O&0f2>tg@=zGJ^Jd}wQKVhi_4M?#sHzHiEW>FMe0&6_tr<#~Rqq@=`s;lhQVtEvi*#{-keguQ$B;>eLB+W=XXcl6gZ z4OXia<>lpQZEZbu^5n^{vf1p|ty{N_E-x=*X=#ZHhr@`+!2s^z@*rs%l#zhr`jXY1+>uNm3+9k}{c$+}74sVzb#=#>U1F4u>=4<>kLO znN0PvET4)*B3X;Yg68IC@I3z*z~w+7P}9=VQZX?xvE13&iJF=k^!N8~1A@WeF;Ntc z$+8Te&xf_OH53;YV`XIpLqkKTtgP&Gxm=y|^YdX*6tjXL;LxE%*t2I3BuQGzWHSG; z+wIMvQ0RcgVp*=OtwlDQg{rFC64~u`WV2ZiLXgkrF)}iO#l=M^ih{bjIusQZfu?Ch zqtV|E4GrP->(_8N94IL%fz@iwilX>m0I098Kj8IxAks6buXijEszEOG`_T zWf_@F280m2KM0=Zv9huPkH@nR3yWQSfTwIJ)Dut$| zCJ2InrKKep3OtSkk9(lm{sD2mBsGFVtxKqwTlGXT)m)*WNuC6X{90#7~AxV>xF!(dc#;t*)-ZXf%T3IIOI!z~yp5uh&D8BoIQtvh3e%HXAfe zgQjUnrBcu|4YDl5Y&OH|_4)u{Vq!v@oScNq<$|VZP!xqQ06+)<&-19SugBcn90Wmt z&*wvZeLbE%d-n3llP3{_!2ns7LDMuYUAhF9%LP#svAMYklgadbP18UK(bd(}p-?D* zVHgw_7gG!Xcsw2|olYa4&+oLP)9J*^moKqv*RH=CjYg=d3PBK1T3QNC)3Ca_`r(x* zEiG*ihr_Z?r_L_0idp~j^a2DGcz+FgurUGVr*;-i;Ihh#bN`= zWD==V3d_sOu-R+?fP6lW_4Re=_4-x-6FKXK>IomrZuZ&y}Uj!TjRRaN13yW#bEp{gnz4hIs61OkD;B>+M! z77NofT{AZ~2e;e(p+U9*JkNhC2*S61zaOVhpAH5BffJW6UtXACUQzUW02qeB znKNe~Nm5vnB*JmrApljPD7HU%@BoUUz~yr7#N)@05ekL=2mp8Q-j$NcWYycZZ-CmzZf%jICR z*^tZSu(h=XLP%!czI{KTD9Us1-n~l~FJ63Zv)L$~=O<~J_B)-?@{{8#Q+uGXxoX_Wv#^dp;CX?w4yWRdJfc*0Ea&s&en=zZsNTpJs>5tqO z!24f?)9Kual9Cbx0s#nufPsO5A4rn)YmVc3cJJQ(Z=225r6@{oB9X8uiZa7-+|EUW ckpBz#A8L_(b8xFQZ~y=R07*qoM6N<$f_;Ip(EtDd literal 0 HcmV?d00001 diff --git a/editor-multi/resource_packs/editor-multi/textures/tree-generator.png b/editor-multi/resource_packs/editor-multi/textures/tree-generator.png new file mode 100644 index 0000000000000000000000000000000000000000..c35c161f4c55324bbf43f31364e432df4fe4b520 GIT binary patch literal 1073 zcmV-11kU@3P))|AU-?%cUU5CoW}34pOx0H9nhGdw)} z(#ex2-|Fx0Kb1u5zpS;6#^do<`}_OfJaOX0sUQgKVzIbz z_wHTSwrxZNtu-xi_Uzfywr!W>8BwWJis#RtKMkOi!Y~XB!vNDXX=`f(V0d_V@L7qQ zas2r4Hvrn(+lj?usAI>DQLR>4US4K$a`LBaHapZhw(a5m{rkU+jEoF*cXtzy$I-6q z5{4m}OomJ*^V&|x0S+BH^!mWS0IuueILG(C0Px^?T*j*gCpqYpS1z78bLQQhrluLGRH}Q|u3ZsTtJPK`k;p60TL7R|tCf|A z$PRe~*aRYg(Xb(8 zUa3?v)oS%pGMUTy|CcQl@FX5R1h&fMsAeJpAg42)^%^7Zw(N(^`A` z_wQc>eg}Nu67VB+=hf9!^7%Yr7)Ivj=Z&$kG4lC5_wLFE#aN2}Fp zpNC=Cv$V8iUA}yosi~=kX!9@uwAMr-5tLGH7={2?mWAUu6bgmv%*+hEy}jm^-2SPQ zDkPIhy1Ke(bZrZm%?86T&{|{LHtBSlm6a7nMn>4PXHQH-P)ad3H}~Sq%nZ?Jl+Dde z5{bn21w;hT^N2(u#N%=H?c3MTuD8tW?5te4aDjsd53;ebK{OiWz<~oT1s;2LN~ID# zJv|NLEf?DGH4H<7AfQsIP%f7_ckUe5uV3F@1bg@HrLV7#=BHFC)e!JJPYxeGOg5Xv zFbtNKmKYlwdAQ92{);xvq=v`;Uhp zA{2{7=I7@Lf&kz534)+8JkK*6$N9?leZO9&wrxKs7K`6LYQ!g&XroN)X!R$cwN|ES rrh(hQDu88KyDiJ=6Op#&R5s&ZVe=-@TsqNf00000NkvXXu0mjf0sRY* literal 0 HcmV?d00001 diff --git a/editor-multi/scripts/camera-grapple.ts b/editor-multi/scripts/camera-grapple.ts new file mode 100644 index 0000000..9cbffc8 --- /dev/null +++ b/editor-multi/scripts/camera-grapple.ts @@ -0,0 +1,145 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { Vector3Utils } from "@minecraft/math"; +import { + ActionTypes, + CursorControlMode, + EditorInputContext, + IPlayerUISession, + KeyboardKey, + registerEditorExtension, +} from "@minecraft/server-editor"; +import { EasingType, TicksPerSecond, Vector3, system } from "@minecraft/server"; + +interface GrappleStorage { + latestRunId?: number; +} + +type GrappleSession = IPlayerUISession; + +function flyCameraToTarget(uiSession: GrappleSession, viewTarget: Vector3, radius: number) { + if (uiSession.scratchStorage) { + const player = uiSession.extensionContext.player; + // This is imperfect and causes a visible pop. Would be better if we could get the player's exact eye height + const eyeHeight = Vector3Utils.subtract(player.getHeadLocation(), player.location); + const viewVector = player.getViewDirection(); + radius = Math.max(radius, 1); + // FOV in first_person.json is 66 degrees + const halfFOV = 66 / 2; + // Compute adjacent side of triangle (distance) when opposite side is radius + const distanceAway = radius / Math.tan((halfFOV * Math.PI) / 180); + const destCameraLocation = Vector3Utils.subtract(viewTarget, Vector3Utils.scale(viewVector, distanceAway)); + const destPlayerLocation = Vector3Utils.subtract(destCameraLocation, eyeHeight); + const easeTimeInSeconds = 1.5; + // Unhook camera and have it start moving to the new location + player.camera.setCamera("minecraft:free", { + rotation: { x: player.getRotation().x, y: player.getRotation().y }, + location: { x: destCameraLocation.x, y: destCameraLocation.y, z: destCameraLocation.z }, + easeOptions: { + easeTime: easeTimeInSeconds, + easeType: EasingType.InOutQuad, + }, + }); + uiSession.scratchStorage.latestRunId = system.runTimeout(() => { + // Move the player to the final location and re-hook the camera to it + player.teleport(destPlayerLocation); + player.camera.clear(); + }, easeTimeInSeconds * TicksPerSecond); + } +} +/** + * Provides a "Grapple" extension for quickly moving the player around the world + * @beta + */ +export function registerCameraGrapple() { + registerEditorExtension( + "camera-grapple-sample", + (uiSession: GrappleSession) => { + uiSession.log.debug(`Initializing extension [${uiSession.extensionContext.extensionInfo.name}]`); + + const grappleAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + // don't execute if there is already a command running as this can be visually disorienting + if (uiSession.scratchStorage?.latestRunId) { + return; + } + let destBlockLoc: Vector3 | undefined = undefined; + const cursor = uiSession.extensionContext.cursor; + + // Fixed cursor mode will default to the player view direction + if (cursor.isVisible && cursor.getProperties().controlMode !== CursorControlMode.Fixed) { + destBlockLoc = cursor.getPosition(); + } else { + const result = uiSession.extensionContext.player.getBlockFromViewDirection(); + if (!result) { + uiSession.log.warning("No Block Found. Aborting Grapple"); + return; + } + destBlockLoc = result?.block.location; + } + + // Location of the center of the block + const viewTarget = Vector3Utils.add(destBlockLoc, { x: 0.5, y: 0.5, z: 0.5 }); + flyCameraToTarget(uiSession, viewTarget, 2); + }, + }); + + const frameAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + // don't execute if there is already a command running as this can be visually disorienting + if (uiSession.scratchStorage?.latestRunId) { + return; + } + const selection = uiSession.extensionContext.selectionManager.selection; + if (selection.isEmpty) { + return; + } + + const bounds = selection.getBoundingBox(); + bounds.max = Vector3Utils.add(bounds.max, { x: 1, y: 1, z: 1 }); + const halfSize = Vector3Utils.scale(Vector3Utils.subtract(bounds.max, bounds.min), 0.5); + const viewTarget = Vector3Utils.add(bounds.min, halfSize); + const radius = Math.sqrt(halfSize.x * halfSize.x + halfSize.y * halfSize.y + halfSize.z * halfSize.z); + + flyCameraToTarget(uiSession, viewTarget, radius); + }, + }); + + uiSession.inputManager.registerKeyBinding( + EditorInputContext.GlobalToolMode, + grappleAction, + { key: KeyboardKey.KEY_Y }, + { + uniqueId: "editorSamples:grapple:flyToCursor", + label: "sample.cameragrapple.keyBinding.flyToCursor", + } + ); + uiSession.inputManager.registerKeyBinding( + EditorInputContext.GlobalToolMode, + frameAction, + { key: KeyboardKey.KEY_H }, + { + uniqueId: "editorSamples:grapple:flyToSelection", + label: "sample.cameragrapple.keyBinding.flyToSelection", + } + ); + + return []; + }, + (uiSession: GrappleSession) => { + uiSession.log.debug( + `Shutting down extension [${uiSession.extensionContext.extensionInfo.name}] for player [${uiSession.extensionContext.player.name}]` + ); + if (uiSession.scratchStorage?.latestRunId) { + system.clearRun(uiSession.scratchStorage.latestRunId); + uiSession.scratchStorage.latestRunId = undefined; + } + }, + { + description: '"Camera Grapple" Sample Extension', + notes: "by Jonas", + } + ); +} diff --git a/editor-multi/scripts/dye-brush.ts b/editor-multi/scripts/dye-brush.ts new file mode 100644 index 0000000..0e15ded --- /dev/null +++ b/editor-multi/scripts/dye-brush.ts @@ -0,0 +1,366 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { + ActionTypes, + ColorPickerPropertyItemVariant, + CursorTargetMode, + IDropdownItem, + IModalTool, + IObservable, + IPlayerUISession, + makeObservable, + ModalToolLifecycleEventPayload, + MouseActionType, + MouseInputType, + MouseProps, + registerEditorExtension, + Selection, +} from "@minecraft/server-editor"; +import { + BlockVolume, + BoundingBox, + BoundingBoxUtils, + RGBA, + CompoundBlockVolumeAction, + Dimension, + Direction, + EntityColorComponent, + Player, + Vector3, + RGB, +} from "@minecraft/server"; +import { Vector3Utils, VECTOR3_UP } from "@minecraft/math"; + +// Color identifiers expected by EntityColorComponent +enum EntityColor { + White = 0, + Orange = 1, + Magenta = 2, + LightBlue = 3, + Yellow = 4, + LightGreen = 5, + Pink = 6, + Gray = 7, + Silver = 8, + Cyan = 9, + Purple = 10, + Blue = 11, + Brown = 12, + Green = 13, + Red = 14, + Black = 15, +} + +const directionLookup: Record = { + [Direction.North]: { x: 0, y: 0, z: 1 }, + [Direction.East]: { x: -1, y: 0, z: 0 }, + [Direction.South]: { x: 0, y: 0, z: -1 }, + [Direction.West]: { x: 1, y: 0, z: 0 }, + [Direction.Up]: { x: 0, y: 1, z: 0 }, + [Direction.Down]: { x: 0, y: -1, z: 0 }, +}; + +const directionToQuadrant: Record = { + [Direction.North]: 0, + [Direction.East]: 1, + [Direction.South]: 2, + [Direction.West]: 3, + [Direction.Up]: 4, + [Direction.Down]: 5, +}; + +const quadrantToDirection: Record = { + [0]: Direction.North, + [1]: Direction.East, + [2]: Direction.South, + [3]: Direction.West, + [4]: Direction.Up, + [5]: Direction.Down, +}; + +export function getRotationCorrectedDirection(rotationY: number, realDirection: Direction): Direction { + if (realDirection === Direction.Up || realDirection === Direction.Down) { + return realDirection; + } + const quadrant = directionToQuadrant[realDirection]; + const rotatedQuadrant = Math.floor(((rotationY + 405 + quadrant * 90) % 360) / 90); + const rotatedDirection = quadrantToDirection[rotatedQuadrant]; + return rotatedDirection; +} + +export function getRotationCorrectedDirectionVector(rotationY: number, realDirection: Direction): Vector3 { + const relativeDirection = getRotationCorrectedDirection(rotationY, realDirection); + return directionLookup[relativeDirection]; +} + +// Calculate nearest entity color to an RGBA color +function findClosestColor(targetColor: RGBA, colorPalette: Map): EntityColor { + let minDistance = Number.MAX_VALUE; + let closestColor: EntityColor = EntityColor.White; + + colorPalette.forEach((paletteColor, color) => { + const distance = Math.sqrt( + Math.pow(targetColor.red - paletteColor.red, 2) + + Math.pow(targetColor.green - paletteColor.green, 2) + + Math.pow(targetColor.blue - paletteColor.blue, 2) + ); + if (distance < minDistance) { + minDistance = distance; + closestColor = color; + } + }); + + return closestColor; +} + +const colorPalette = new Map([ + [EntityColor.White, { red: 1, green: 1, blue: 1 }], + [EntityColor.Orange, { red: 0.95, green: 0.459, blue: 0 }], + [EntityColor.Magenta, { red: 0.94, green: 0, blue: 0.9 }], + [EntityColor.LightBlue, { red: 0, green: 0.85, blue: 0.95 }], + [EntityColor.Yellow, { red: 0.85, green: 0.95, blue: 0 }], + [EntityColor.LightGreen, { red: 0, green: 0.95, blue: 0.6 }], + [EntityColor.Pink, { red: 0.9, green: 0.65, blue: 0.85 }], + [EntityColor.Gray, { red: 0.6, green: 0.6, blue: 0.6 }], + [EntityColor.Silver, { red: 0.75, green: 0.75, blue: 0.75 }], + [EntityColor.Cyan, { red: 0, green: 0.9, blue: 0.9 }], + [EntityColor.Purple, { red: 0.45, green: 0, blue: 0.9 }], + [EntityColor.Blue, { red: 0, green: 0, blue: 1 }], + [EntityColor.Brown, { red: 0.8, green: 0.5, blue: 0.1 }], + [EntityColor.Green, { red: 0, green: 1, blue: 0 }], + [EntityColor.Red, { red: 1, green: 0, blue: 0 }], + [EntityColor.Black, { red: 0, green: 0, blue: 0 }], +]); + +interface DyeBrushStorage { + previewSelection: Selection; + lastVolumePlaced?: BoundingBox; + currentColor: EntityColor; + brushColor: IObservable; + brushSize: number; +} + +type DyeBrushSession = IPlayerUISession; + +function onColorUpdated(newColor: RGBA, uiSession: DyeBrushSession) { + if (uiSession.scratchStorage) { + uiSession.scratchStorage.previewSelection.setFillColor(newColor); + uiSession.scratchStorage.previewSelection.setOutlineColor({ ...newColor, alpha: 1 }); + const cursorProps = uiSession.extensionContext.cursor.getProperties(); + cursorProps.outlineColor = { ...newColor, alpha: 1 }; + cursorProps.targetMode = CursorTargetMode.Face; + uiSession.extensionContext.cursor.setProperties(cursorProps); + } +} + +function addDyeBrushPane(uiSession: DyeBrushSession, tool: IModalTool) { + if (!uiSession.scratchStorage) { + throw Error("UI Session storage should exist"); + } + const brushColor = uiSession.scratchStorage.brushColor; + const brushSize = uiSession.scratchStorage.brushSize; + + const pane = uiSession.createPropertyPane({ + title: "sample.dyeBrush.pane.title", + }); + + const entityBrush = makeObservable(EntityColor.White); + + onColorUpdated(brushColor.value, uiSession); + + pane.addDropdown(entityBrush, { + title: "Brush", + entries: Object.values(EntityColor).reduce((list, dye, index) => { + if (typeof dye === "string") { + list.push({ + label: dye, + value: index, + }); + } + return list; + }, []), + onChange: (newVal: number) => { + if (newVal in EntityColor) { + const foundColor = colorPalette.get(newVal); + if (foundColor) { + brushColor.set({ ...foundColor, alpha: brushColor.value.alpha }); + } + onColorUpdated(brushColor.value, uiSession); + } + }, + }); + + pane.addColorPicker(brushColor, { + variant: ColorPickerPropertyItemVariant.Expanded, + onChange: (color: RGBA) => { + entityBrush.set(findClosestColor(color, colorPalette)); + onColorUpdated(brushColor.value, uiSession); + }, + }); + + tool.bindPropertyPane(pane); + + const onExecuteBrush = () => { + if (uiSession.scratchStorage === undefined) { + uiSession.log.error("Storage was not initialized."); + return; + } + + const previewSelection = uiSession.scratchStorage.previewSelection; + + const player = uiSession.extensionContext.player; + const targetBlock = player.dimension.getBlock(uiSession.extensionContext.cursor.getPosition()); + if (targetBlock === undefined) { + return; + } + + const rotationY = uiSession.extensionContext.player.getRotation().y; + const directionRight = getRotationCorrectedDirectionVector(rotationY, Direction.East); + const directionForward = getRotationCorrectedDirectionVector(rotationY, Direction.South); + const relativeDirection = Vector3Utils.add(Vector3Utils.add(directionRight, directionForward), VECTOR3_UP); + + const sizeHalf = Math.floor(brushSize / 2); + let fromOffset = Vector3Utils.scale(relativeDirection, -sizeHalf); + const toOffset = Vector3Utils.scale(relativeDirection, brushSize - 1); + + const isEven = brushSize % 2 === 0; + if (isEven) { + fromOffset = Vector3Utils.add(fromOffset, VECTOR3_UP); + } + + const location = targetBlock.location; + const from: Vector3 = { + x: location.x + fromOffset.x, + y: location.y + fromOffset.y, + z: location.z + fromOffset.z, + }; + const to: Vector3 = { x: from.x + toOffset.x, y: from.y + toOffset.y, z: from.z + toOffset.z }; + + const blockVolume = new BlockVolume(from, to); + const bounds = blockVolume.getBoundingBox(); + if (uiSession.scratchStorage.lastVolumePlaced) { + if (BoundingBoxUtils.equals(uiSession.scratchStorage.lastVolumePlaced, bounds)) { + return; + } + } + + previewSelection.pushVolume({ action: CompoundBlockVolumeAction.Add, volume: blockVolume }); + uiSession.scratchStorage.lastVolumePlaced = bounds; + }; + + const mouseButtonAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.MouseRayCastAction, + onExecute: (_, mouseProps: MouseProps) => { + if (uiSession.scratchStorage === undefined) { + uiSession.log.error("Storage was not initialized."); + return; + } + + if (mouseProps.mouseAction === MouseActionType.LeftButton) { + if (mouseProps.inputType === MouseInputType.ButtonDown) { + uiSession.scratchStorage.previewSelection.clear(); + onExecuteBrush(); + } else if (mouseProps.inputType === MouseInputType.ButtonUp) { + const player: Player = uiSession.extensionContext.player; + const dimension: Dimension = player.dimension; + const iterator = uiSession.scratchStorage.previewSelection.getBlockLocationIterator(); + for (const pos of iterator) { + const entities = dimension.getEntities({ location: pos, closest: 1 }); + for (const entity of entities) { + const colorComp = entity.getComponent("minecraft:color") as EntityColorComponent; + if (colorComp) { + colorComp.value = entityBrush.value; + } + } + } + uiSession.scratchStorage.previewSelection.clear(); + } + } + }, + }); + tool.registerMouseButtonBinding(mouseButtonAction); + + const executeBrushRayAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.MouseRayCastAction, + onExecute: (_, mouseProps: MouseProps) => { + if (mouseProps.inputType === MouseInputType.Drag) { + onExecuteBrush(); + } + }, + }); + tool.registerMouseDragBinding(executeBrushRayAction); + + // Example for adding mouse wheel + const executeBrushSizeAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.MouseRayCastAction, + onExecute: (_, mouseProps: MouseProps) => { + if (mouseProps.mouseAction === MouseActionType.Wheel) { + if (mouseProps.inputType === MouseInputType.WheelOut) { + if (entityBrush.value > 0) { + entityBrush.set(entityBrush.value - 1); + } + } else if (mouseProps.inputType === MouseInputType.WheelIn) { + if (entityBrush.value < 15) { + entityBrush.set(entityBrush.value + 1); + } + } + onColorUpdated(brushColor.value, uiSession); + } + }, + }); + tool.registerMouseWheelBinding(executeBrushSizeAction); + + tool.onModalToolActivation.subscribe((evt: ModalToolLifecycleEventPayload) => { + if (evt.isActiveTool) { + onColorUpdated(brushColor.value, uiSession); + } + uiSession.scratchStorage?.previewSelection?.clear(); + }); + + pane.hide(); +} + +export function addDyeBrushTool(uiSession: DyeBrushSession) { + const tool = uiSession.toolRail.addTool({ + title: "sample.dyebrush.tool.title", + tooltip: "sample.dyebrush.tool.tooltip", + icon: "pack://textures/dye-brush.png", + }); + + return tool; +} + +export function registerDyeBrushExtension() { + registerEditorExtension( + "dye-brush-sample", + + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Initializing extension [${uiSession.extensionContext.extensionInfo.name}]`); + + const previewSelection = uiSession.extensionContext.selectionManager.create(); + previewSelection.visible = true; + + const storage: DyeBrushStorage = { + previewSelection: previewSelection, + currentColor: EntityColor.White, + brushColor: makeObservable({ red: 1, green: 1, blue: 1, alpha: 0.5 }), + brushSize: 4, + }; + uiSession.scratchStorage = storage; + + const cubeBrushTool = addDyeBrushTool(uiSession); + + addDyeBrushPane(uiSession, cubeBrushTool); + + return []; + }, + + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Shutting down extension [${uiSession.extensionContext.extensionInfo.name}] `); + }, + { + description: '"Dye Brush" Sample Extension', + notes: "By Eser", + } + ); +} diff --git a/editor-multi/scripts/farm-generator.ts b/editor-multi/scripts/farm-generator.ts new file mode 100644 index 0000000..38d549e --- /dev/null +++ b/editor-multi/scripts/farm-generator.ts @@ -0,0 +1,431 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { VECTOR3_ZERO } from "@minecraft/math"; +import { + ActionTypes, + EditorInputContext, + IModalTool, + IObservable, + IPlayerUISession, + InputModifier, + KeyboardKey, + MouseActionType, + MouseInputType, + MouseProps, + Ray, + makeObservable, + registerEditorExtension, +} from "@minecraft/server-editor"; +import { Player, Vector3 } from "@minecraft/server"; +import { MinecraftBlockTypes, MinecraftEntityTypes } from "@minecraft/vanilla-data"; + +type CommonSettingsType = { + farmWidth: IObservable; + farmLength: IObservable; + irrigation: IObservable; + fenceType: IObservable; +}; + +type CropSettingsType = { + wheat: IObservable; + pumpkin: IObservable; + potato: IObservable; + carrot: IObservable; + beetroot: IObservable; +}; + +type AnimalSettingsType = { + pig: IObservable; + sheep: IObservable; + cow: IObservable; +}; + +function getRandomInt(upper: number) { + return Math.floor(Math.random() * (upper + 1)); +} + +function fenceTypeToBlockType(fenceType: number): string { + switch (fenceType) { + case 0: + return MinecraftBlockTypes.OakFence; + case 1: + return MinecraftBlockTypes.BirchFence; + case 2: + return MinecraftBlockTypes.AcaciaFence; + case 3: + return MinecraftBlockTypes.BambooFence; + case 4: + return MinecraftBlockTypes.CherryFence; + case 5: + return MinecraftBlockTypes.JungleFence; + case 6: + return MinecraftBlockTypes.SpruceFence; + case 7: + return MinecraftBlockTypes.WarpedFence; + case 8: + return MinecraftBlockTypes.CrimsonFence; + default: + return MinecraftBlockTypes.OakFence; + } +} + +const buildFarm = ( + targetCorner: Vector3, + x: number, + z: number, + length: number, + width: number, + possibleAnimals: MinecraftEntityTypes[], + possibleCrops: string[], + player: Player, + commonSettings: CommonSettingsType +) => { + let didPlaceAnimal = false; + for (let i = 0; i < width; i++) { + for (let j = length - 1; j > -1; j--) { + const xOffset = i * x; + const zOffset = z * j; + const location: Vector3 = { x: targetCorner.x + xOffset, y: targetCorner.y, z: targetCorner.z + zOffset }; + const locationAbove: Vector3 = { + x: targetCorner.x + xOffset, + y: targetCorner.y + 1, + z: targetCorner.z + zOffset, + }; + const block = player.dimension.getBlock(location); + const blockAbove = player.dimension.getBlock(locationAbove); + const isBorder = i === 0 || i === width - 1 || j === 0 || j === length - 1; + if (xOffset % 3 === 0 && !isBorder && commonSettings.irrigation.value) { + block?.setType(MinecraftBlockTypes.Water); + } else { + block?.setType(MinecraftBlockTypes.Farmland); + } + if (isBorder) { + blockAbove?.setType(fenceTypeToBlockType(commonSettings.fenceType.value)); + } else if (possibleAnimals.length > 0 && getRandomInt(5) === 5) { + const animal = getRandomInt(possibleAnimals.length - 1); + const entityType = possibleAnimals[animal]; + player.dimension.spawnEntity(entityType, blockAbove?.location ?? VECTOR3_ZERO, { + initialPersistence: true, + }); + didPlaceAnimal = true; + } else if (!block?.isLiquid && possibleCrops.length > 0) { + const crop = getRandomInt(possibleCrops.length - 1); + const blockType = possibleCrops[crop]; + blockAbove?.setType(blockType); + } + } + } + + // Guarantee there is at least one animal spawned if we haven't placed one yet and there is room to place one + if (!didPlaceAnimal && possibleAnimals.length > 0 && width > 2 && length > 2) { + const locationAbove: Vector3 = { + x: targetCorner.x + x, + y: targetCorner.y + 1, + z: targetCorner.z + z, + }; + const blockAbove = player.dimension.getBlock(locationAbove); + const animal = getRandomInt(possibleAnimals.length - 1); + const entityType = possibleAnimals[animal]; + player.dimension.spawnEntity(entityType, blockAbove?.location ?? VECTOR3_ZERO, { initialPersistence: true }); + } +}; + +function addFarmGeneratorSettingsPane(uiSession: IPlayerUISession, tool: IModalTool) { + const windowPane = uiSession.createPropertyPane({ + title: "sample.farmgenerator.pane.title", + }); + const cropPane = windowPane.createSubPane({ + title: "sample.farmgenerator.pane.crops.title", + }); + const animalPane = windowPane.createSubPane({ + title: "sample.farmgenerator.pane.animals.title", + }); + + const commonSettings: CommonSettingsType = { + farmWidth: makeObservable(10), + farmLength: makeObservable(10), + irrigation: makeObservable(false), + fenceType: makeObservable(0), + }; + + const cropSettings: CropSettingsType = { + wheat: makeObservable(false), + pumpkin: makeObservable(false), + potato: makeObservable(false), + carrot: makeObservable(false), + beetroot: makeObservable(false), + }; + + const animalSettings: AnimalSettingsType = { + pig: makeObservable(false), + sheep: makeObservable(false), + cow: makeObservable(false), + }; + + const onExecuteGenerator = (ray?: Ray) => { + const player: Player = uiSession.extensionContext.player; + + // Use the mouse ray if it is available + const raycastResult = + ray !== undefined + ? player.dimension.getBlockFromRay(ray.location, ray.direction) + : player.getBlockFromViewDirection(); + + if (!raycastResult) { + uiSession.log.error("No block from view vector"); + return; + } + const targetBlock = raycastResult.block; + + let targetCorner: Vector3 = { x: targetBlock.location.x, y: targetBlock.location.y, z: targetBlock.location.z }; + const possibleCrops: string[] = []; + if (cropSettings.beetroot.value) { + possibleCrops.push(MinecraftBlockTypes.Beetroot); + } + if (cropSettings.carrot.value) { + possibleCrops.push(MinecraftBlockTypes.Carrots); + } + if (cropSettings.pumpkin.value) { + possibleCrops.push(MinecraftBlockTypes.Pumpkin); + } + if (cropSettings.wheat.value) { + possibleCrops.push(MinecraftBlockTypes.Wheat); + } + if (cropSettings.potato.value) { + possibleCrops.push(MinecraftBlockTypes.Potatoes); + } + const possibleAnimals: MinecraftEntityTypes[] = []; + if (animalSettings.sheep.value) { + possibleAnimals.push(MinecraftEntityTypes.Sheep); + } + if (animalSettings.cow.value) { + possibleAnimals.push(MinecraftEntityTypes.Cow); + } + if (animalSettings.pig.value) { + possibleAnimals.push(MinecraftEntityTypes.Pig); + } + let x = 1; + let z = 1; + let length = commonSettings.farmLength.value; + let width = commonSettings.farmWidth.value; + if (Math.round(player.getViewDirection().z) === -1) { + targetCorner = { + x: targetCorner.x + (commonSettings.farmWidth.value / 2 - 1), + y: targetCorner.y, + z: targetCorner.z - (commonSettings.farmLength.value / 2 - 1), + }; + uiSession.log.info("Facing north"); + x = -1; + } else if (Math.round(player.getViewDirection().x) === 1) { + targetCorner = { + x: targetCorner.x + (commonSettings.farmWidth.value / 2 - 1), + y: targetCorner.y, + z: targetCorner.z + (commonSettings.farmLength.value / 2 - 1), + }; + uiSession.log.info("Facing east"); + length = commonSettings.farmWidth.value; + width = commonSettings.farmLength.value; + x = -1; + z = -1; + } + if (Math.round(player.getViewDirection().z) === 1) { + targetCorner = { + x: targetCorner.x - (commonSettings.farmWidth.value / 2 - 1), + y: targetCorner.y, + z: targetCorner.z + (commonSettings.farmLength.value / 2 - 1), + }; + uiSession.log.info("Facing south"); + z = -1; + } else if (Math.round(player.getViewDirection().x) === -1) { + targetCorner = { + x: targetCorner.x - (commonSettings.farmWidth.value / 2 - 1), + y: targetCorner.y, + z: targetCorner.z - (commonSettings.farmLength.value / 2 - 1), + }; + uiSession.log.info("Facing west"); + length = commonSettings.farmWidth.value; + width = commonSettings.farmLength.value; + } + buildFarm(targetCorner, x, z, length, width, possibleAnimals, possibleCrops, player, commonSettings); + }; + + // Create an action that will be executed on left mouse click + const executeMouseAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.MouseRayCastAction, + onExecute: (mouseRay: Ray, mouseProps: MouseProps) => { + if (mouseProps.mouseAction === MouseActionType.LeftButton && mouseProps.inputType === MouseInputType.ButtonDown) { + onExecuteGenerator(mouseRay); + } + }, + }); + + // Create and an action that will be executed on CTRL + P + const executeKeyAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + onExecuteGenerator(); + }, + }); + + // Register actions as input bindings to tool context + tool.registerKeyBinding( + executeKeyAction, + { key: KeyboardKey.KEY_P, modifier: InputModifier.Control }, + { + uniqueId: "editorSamples:farmGenerator:place", + label: "sample.farmgenerator.keyBinding.place", + } + ); + + tool.registerMouseButtonBinding(executeMouseAction); + + windowPane.addNumber(commonSettings.farmLength, { + title: "sample.farmgenerator.pane.length", + min: 2, + max: 20, + isInteger: true, + }); + windowPane.addNumber(commonSettings.farmWidth, { + title: "sample.farmgenerator.pane.width", + min: 2, + max: 20, + isInteger: true, + }); + windowPane.addDropdown(commonSettings.fenceType, { + title: "sample.farmgenerator.pane.fence", + enable: true, + entries: [ + { + label: "Oak", + value: 0, + }, + { + label: "Birch", + value: 1, + }, + { + label: "Acacia", + value: 2, + }, + { + label: "Bamboo", + value: 3, + }, + { + label: "Cherry", + value: 4, + }, + { + label: "Jungle", + value: 5, + }, + { + label: "Spruce", + value: 6, + }, + { + label: "Warped", + value: 7, + }, + { + label: "Crimson", + value: 8, + }, + ], + }); + + windowPane.addBool(commonSettings.irrigation, { + title: "sample.farmgenerator.pane.irrigation", + tooltip: "sample.farmgenerator.pane.irrigation.tooltip", + }); + cropPane.addBool(cropSettings.wheat, { + title: "sample.farmgenerator.pane.crops.wheat", + }); + cropPane.addBool(cropSettings.potato, { + title: "sample.farmgenerator.pane.crops.potato", + }); + cropPane.addBool(cropSettings.beetroot, { + title: "sample.farmgenerator.pane.crops.beets", + }); + cropPane.addBool(cropSettings.pumpkin, { + title: "sample.farmgenerator.pane.crops.pumpkin", + }); + cropPane.addBool(cropSettings.carrot, { + title: "sample.farmgenerator.pane.crops.carrot", + }); + animalPane.addBool(animalSettings.cow, { + title: "sample.farmgenerator.pane.animals.cow", + }); + animalPane.addBool(animalSettings.sheep, { + title: "sample.farmgenerator.pane.animals.sheep", + }); + animalPane.addBool(animalSettings.pig, { + title: "sample.farmgenerator.pane.animals.pig", + }); + + tool.bindPropertyPane(windowPane); +} + +/** + * Create a new tool rail item for farm generator + */ +function addFarmGeneratorTool(uiSession: IPlayerUISession) { + // Create action + const toolToggleAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + uiSession.toolRail.setSelectedToolId(tool.id); + }, + }); + + const tool = uiSession.toolRail.addTool( + { + title: "sample.farmgenerator.tool.title", + icon: "pack://textures/farm-generator.png", + tooltip: "sample.farmgenerator.tool.tooltip", + inputContextId: "editorSamples:farmGenerator", + inputContextLabel: "sample.farmgenerator.tool.title", + }, + toolToggleAction + ); + + // Register a global shortcut (CTRL + SHIFT + P) to select the tool + uiSession.inputManager.registerKeyBinding( + EditorInputContext.GlobalToolMode, + toolToggleAction, + { key: KeyboardKey.KEY_F, modifier: InputModifier.Control | InputModifier.Shift }, + { + uniqueId: "editorSamples:farmGenerator:toggleTool", + label: "sample.farmgenerator.keyBinding.toggleTool", + } + ); + + return tool; +} + +/** + * Register Farm Generator extension + */ +export function registerFarmGeneratorExtension() { + registerEditorExtension( + "FarmGenerator-sample", + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Initializing [${uiSession.extensionContext.extensionInfo.name}] extension`); + + // Add tool to tool rail + const farmGeneratorTool = addFarmGeneratorTool(uiSession); + + // Create settings pane/window + addFarmGeneratorSettingsPane(uiSession, farmGeneratorTool); + + return []; + }, + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Initializing [${uiSession.extensionContext.extensionInfo.name}] extension`); + }, + { + description: '"Farm Generator" Sample Extension', + notes: "by Molly", + } + ); +} diff --git a/editor-multi/scripts/goto-mark.ts b/editor-multi/scripts/goto-mark.ts new file mode 100644 index 0000000..5ff29a0 --- /dev/null +++ b/editor-multi/scripts/goto-mark.ts @@ -0,0 +1,473 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { + ActionTypes, + IButtonPropertyItem, + IDropdownItem, + IDropdownPropertyItem, + IModalTool, + IObservable, + IPlayerUISession, + IPropertyPane, + UserDefinedTransactionHandle, + bindDataSource, + makeObservable, + registerEditorExtension, + registerUserDefinedTransactionHandler, +} from "@minecraft/server-editor"; +import { Vector3, system } from "@minecraft/server"; + +const storedLocationDynamicPropertyName = "goto-mark:storedLocations"; // The key of the stored location dynamic property +const storedLocationNameMaxLength = 16; // This is the maximum length of the name of a stored location +const storedLocationsMax = 9; // The maximum number of stored locations + +type GotoTeleportTransactionPayload = { + current: Vector3; + destination: Vector3; +}; + +// The stored location data structure that represents each of the stored locations +// this is also the JSON format that is stored in the dynamic property +type LocationData = { + location: Vector3; + name: string; +}; + +// UI Pane data for the whole extension pane +type ParentPaneDataSourceType = { + playerLocation: Vector3; +}; + +// UI Pane data for the sub pane with the stored locations +type LocationPaneDataSourceType = { + newName: IObservable; +}; + +// Extension storage data which is pertinent to the the player's context of this extension +type ExtensionStorage = { + tool?: IModalTool; // The tool handle for the extension + previousLocation: Vector3; // The players last recorded position + + updateHandle?: number; // The handle for the repeating interval that updates the player position + + parentPaneDataSource?: ParentPaneDataSourceType; // The data source for the parent pane + parentPane?: IPropertyPane; // The parent pane + dropdownMenu?: IDropdownPropertyItem; // The dropdown + + locationPaneDataSource?: LocationPaneDataSourceType; // The data source for the location pane + + storedLocations: LocationData[]; // The list of stored locations + + transactionHandler: UserDefinedTransactionHandle; // The transaction handler for the extension + + teleportButton?: IButtonPropertyItem; +}; + +// Handy helper to turn a Vector3 into a pretty string +function vector3ToString(vec: Vector3): string { + return `(${vec.x}, ${vec.y}, ${vec.z})`; +} + +// Equality check for a Vector3 +function vector3Equals(vec1: Vector3, vec2: Vector3): boolean { + return vec1.x === vec2.x && vec1.y === vec2.y && vec1.z === vec2.z; +} + +// Truncate a Vector3 to the nearest block +function vector3Truncate(vec: Vector3): Vector3 { + const blockLocation: Vector3 = { x: Math.floor(vec.x), y: Math.floor(vec.y), z: Math.floor(vec.z) }; + return blockLocation; +} + +function mapDropdownItems(storage: ExtensionStorage): IDropdownItem[] { + return storage.storedLocations.map((v, index): IDropdownItem => { + const item: IDropdownItem = { + label: `${index + 1}: ${v.name} (${vector3ToString(v.location)})`, + value: index, + }; + return item; + }); +} + +function createTransaction(uiSession: IPlayerUISession, current: Vector3, destination: Vector3) { + const transactionPayload: GotoTeleportTransactionPayload = { + current, + destination, + }; + if (!uiSession.scratchStorage) { + return; + } + + uiSession.extensionContext.transactionManager.openTransaction("goto position"); + uiSession.scratchStorage.transactionHandler.addUserDefinedOperation(transactionPayload, "Goto(Teleport)"); + uiSession.extensionContext.transactionManager.commitOpenTransaction(); +} + +function teleportTo(uiSession: IPlayerUISession, destination: Vector3) { + createTransaction(uiSession, uiSession.extensionContext.player.location, destination); + uiSession.log.info(`Teleporting to location ${vector3ToString(destination)}`); + try { + uiSession.extensionContext.player.teleport(destination); + } catch (e) { + uiSession.log.error(`Teleport failed: ${e}`); + } +} + +// Add the extension to the tool rail and give it an icon +function addExtensionTool(uiSession: IPlayerUISession): IModalTool { + const tool = uiSession.toolRail.addTool({ + title: "sample.gotomark.tool.title", + icon: "pack://textures/goto-mark.png", + tooltip: "Set or Jump to a stored location", + }); + return tool; +} + +function buildParentPane(uiSession: IPlayerUISession, storage: ExtensionStorage): IPropertyPane { + const parentPane = uiSession.createPropertyPane({ + title: "sample.gotomark.pane.title", + }); + + const currentLocation = vector3Truncate(uiSession.extensionContext.player.location); + const initialPaneData: ParentPaneDataSourceType = { + playerLocation: currentLocation, + }; + storage.parentPaneDataSource = bindDataSource(parentPane, initialPaneData); + storage.previousLocation = currentLocation; + + parentPane.addVector3_deprecated(storage.parentPaneDataSource, "playerLocation", { + title: "sample.gotomark.pane.location", + }); + + // Run interval to refresh coordinate population + // Issue with refresh on tick rate with show/hide + storage.updateHandle = system.runInterval(() => { + if (!storage.parentPaneDataSource) { + return; + } + + const currentLocation = vector3Truncate(uiSession.extensionContext.player.location); + const previousLocation = vector3Truncate(storage.previousLocation); + + // Player hasn't moved - don't refresh + if (vector3Equals(currentLocation, previousLocation) || !parentPane.visible) { + return; + } + + storage.previousLocation = currentLocation; + storage.parentPaneDataSource.playerLocation = { ...currentLocation }; + }, 10); + + // Jump directly to the location specified in the Vector3 UI control + parentPane.addButton( + uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + if (!storage.parentPaneDataSource) { + uiSession.log.error("An error occurred: No UI pane datasource could be found"); + return; + } + + const panelLocation = storage.parentPaneDataSource.playerLocation; + teleportTo(uiSession, panelLocation); + }, + }), + { + title: "sample.gotomark.pane.button.teleport", + visible: true, + } + ); + + parentPane.addDivider(); + + // Set the players spawn location based on the current location (or the location typed into the + // Vector3 UI control) + parentPane.addButton( + uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + if (!storage.parentPaneDataSource) { + uiSession.log.error("An error occurred: No UI pane datasource could be found"); + return; + } + const currentLocation = storage.parentPaneDataSource.playerLocation; + uiSession.log.info(`Setting Spawn Location to ${vector3ToString(currentLocation)}`); + uiSession.extensionContext.player.setSpawnPoint({ + ...currentLocation, + dimension: uiSession.extensionContext.player.dimension, + }); + }, + }), + { + title: "sample.gotomark.pane.button.setspawn", + visible: true, + } + ); + + // Jump to the player's spawn location (stored in the entity) + parentPane.addButton( + uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + const spawnLocation = uiSession.extensionContext.player.getSpawnPoint(); + if (!spawnLocation) { + uiSession.log.error("Player Spawn Location is not yet set"); + } else { + teleportTo(uiSession, spawnLocation); + } + }, + }), + { + title: "sample.gotomark.pane.button.gotospawn", + visible: true, + } + ); + + storage.parentPane = parentPane; + + // Build/Rebuild a sub-pane with the more dynamic UI controls + buildLocationPane(uiSession, storage, 0); + + return parentPane; +} + +function buildLocationPane( + uiSession: IPlayerUISession, + storage: ExtensionStorage, + initialSelection: number +) { + if (!storage.parentPane) { + uiSession.log.error("An error occurred: No UI pane could be found"); + return; + } + + const locationPane = storage.parentPane.createSubPane({ + title: "sample.gotomark.pane.locationpane.title", + }); + + const currentSelection = makeObservable(initialSelection); + + const initialPaneData: LocationPaneDataSourceType = { + newName: makeObservable(""), + }; + storage.locationPaneDataSource = bindDataSource(locationPane, initialPaneData); + + const dropdownItems = mapDropdownItems(storage); + + storage.dropdownMenu = locationPane.addDropdown(currentSelection, { + title: "sample.gotomark.pane.locationpane.dropdownLabel", + entries: dropdownItems, + onChange: (newValue: number) => { + if (storage.teleportButton) { + storage.teleportButton.setTitle({ + id: "sample.gotomark.pane.locationpane.button.teleport", + props: [`${newValue + 1}`], + }); + } + }, + }); + + locationPane.addDivider(); + + // Jump to the stored location selected in the dropdown + storage.teleportButton = locationPane.addButton( + uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + if (!storage.locationPaneDataSource) { + uiSession.log.error("An error occurred: No UI pane datasource could be found"); + return; + } + + if (currentSelection.value < 0 || currentSelection.value >= storage.storedLocations.length) { + uiSession.log.error("No stored locations to delete"); + return; + } + + const destination = storage.storedLocations[currentSelection.value].location; + teleportTo(uiSession, destination); + }, + }), + { + title: { + id: "sample.gotomark.pane.locationpane.button.teleport", + props: [dropdownItems.length > 0 ? `${currentSelection.value + 1}` : ""], + }, + visible: true, + } + ); + // Delete the stored location selected in the dropdown + locationPane.addButton( + uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + if (!storage.locationPaneDataSource) { + uiSession.log.error("An error occurred: No UI pane datasource could be found"); + return; + } + + const selectionValue = currentSelection.value; + if (selectionValue < 0 || selectionValue >= storage.storedLocations.length) { + uiSession.log.error("No stored locations to delete"); + return; + } + const locationData = storage.storedLocations[selectionValue]; + const locationName = locationData.name; + + uiSession.log.info(`Deleting stored location name "${locationName}"`); + storage.storedLocations.splice(selectionValue, 1); + + storeLocationsToPlayer(uiSession, storage); + + const dropdownItems = mapDropdownItems(storage); + const newValue = + selectionValue >= dropdownItems.length && selectionValue > 0 ? selectionValue - 1 : selectionValue; + storage.dropdownMenu?.updateEntries(dropdownItems, newValue); + + storage.teleportButton?.setTitle({ + id: "sample.gotomark.pane.locationpane.button.teleport", + props: [dropdownItems.length > 0 ? `${newValue + 1}` : ""], + }); + }, + }), + { + title: "sample.gotomark.pane.locationpane.button.delete", + visible: true, + } + ); + + locationPane.addString(storage.locationPaneDataSource.newName, { + title: "sample.gotomark.pane.locationpane.input.name", + }); + + locationPane.addButton( + uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + if (!storage.parentPaneDataSource || !storage.locationPaneDataSource) { + uiSession.log.error("An error occurred: No UI pane datasource could be found"); + return; + } + if (storage.storedLocations.length >= storedLocationsMax) { + uiSession.log.error(`Cannot store more than ${storedLocationsMax} locations`); + return; + } + const currentLocation = vector3Truncate(storage.parentPaneDataSource.playerLocation); + const newName = storage.locationPaneDataSource.newName; + if (!newName.value) { + newName.set(`Location ${storage.storedLocations.length + 1}`); + } else { + const trimmedName = newName.value.trim(); + if (trimmedName.length > storedLocationNameMaxLength) { + newName.set(trimmedName.substring(0, storedLocationNameMaxLength)); + } + } + + uiSession.log.info(`Adding Location ${vector3ToString(currentLocation)} as "${newName.value}"`); + storage.storedLocations.push({ + name: newName.value, + location: currentLocation, + }); + + storeLocationsToPlayer(uiSession, storage); + + const newSelectionIndex = storage.storedLocations.length - 1; + + const dropdownItems = mapDropdownItems(storage); + storage.dropdownMenu?.updateEntries(dropdownItems, newSelectionIndex); + + storage.teleportButton?.setTitle({ + id: "sample.gotomark.pane.locationpane.button.teleport", + props: [`${newSelectionIndex + 1}`], + }); + }, + }), + { + title: "sample.gotomark.pane.locationpane.button.store", + } + ); +} + +function storeLocationsToPlayer(uiSession: IPlayerUISession, storage: ExtensionStorage) { + const me = uiSession.extensionContext.player; + me.setDynamicProperty(storedLocationDynamicPropertyName, JSON.stringify(storage.storedLocations)); +} + +export function registerGotoMarkExtension() { + registerEditorExtension( + "goto-mark-sample", + (uiSession) => { + uiSession.log.debug( + `Initializing extension [${uiSession.extensionContext.extensionInfo.name}] for player [${uiSession.extensionContext.player.name}]` + ); + + const storage: ExtensionStorage = { + previousLocation: uiSession.extensionContext.player.location, + storedLocations: [], + transactionHandler: registerUserDefinedTransactionHandler( + uiSession.extensionContext.transactionManager, + (payload: GotoTeleportTransactionPayload) => { + // undo handler + uiSession.log.info(`Teleporting to location ${vector3ToString(payload.current)}`); + try { + uiSession.extensionContext.player.teleport(payload.current); + } catch (e) { + uiSession.log.error(`Teleport failed: ${e}`); + } + }, + (payload: GotoTeleportTransactionPayload) => { + // redo handler + uiSession.log.info(`Teleporting to location ${vector3ToString(payload.destination)}`); + try { + uiSession.extensionContext.player.teleport(payload.destination); + } catch (e) { + uiSession.log.error(`Teleport failed: ${e}`); + } + } + ), + }; + + const me = uiSession.extensionContext.player; + try { + const fetchedLocationsString = me.getDynamicProperty(storedLocationDynamicPropertyName) as string; + if (!fetchedLocationsString) { + uiSession.log.info("No stored locations found during initialization"); + } else { + const fetchedLocationsArray = JSON.parse(fetchedLocationsString) as LocationData[]; + + if (fetchedLocationsArray) { + storage.storedLocations = fetchedLocationsArray; + } + uiSession.log.info(`Found ${storage.storedLocations.length} stored locations during initialization`); + } + } catch (e) { + uiSession.log.info("No stored locations found during initialization"); + } + + storage.tool = addExtensionTool(uiSession); + const pane = buildParentPane(uiSession, storage); + storage.tool.bindPropertyPane(pane); + + uiSession.scratchStorage = storage; + + return []; + }, + + (uiSession: IPlayerUISession) => { + uiSession.log.debug( + `Shutting down extension [${uiSession.extensionContext.extensionInfo.name}] for player [${uiSession.extensionContext.player.name}]` + ); + + if (uiSession.scratchStorage) { + // If we still have a system interval runner, then shut it down + if (uiSession.scratchStorage.updateHandle) { + system.clearRun(uiSession.scratchStorage.updateHandle); + } + } + }, + { + description: '"Go to Bookmark" Sample Extension', + notes: "by Chloe, Eser & Dave", + } + ); +} diff --git a/editor-multi/scripts/main.ts b/editor-multi/scripts/main.ts new file mode 100644 index 0000000..5ccd459 --- /dev/null +++ b/editor-multi/scripts/main.ts @@ -0,0 +1,17 @@ +import { registerCameraGrapple } from "./camera-grapple"; +import { registerDyeBrushExtension } from "./dye-brush"; +import { registerFarmGeneratorExtension } from "./farm-generator"; +import { registerGotoMarkExtension } from "./goto-mark"; +import { registerPortalGeneratorExtension } from "./portal-generator"; +import { registerSimpleLocateBiomeExtension } from "./simple-locate-biome"; +import { registerStarBrushExtension } from "./star-brush-shape"; +import { registerTreeGeneratorExtension } from "./tree-generator"; + +registerCameraGrapple(); +registerDyeBrushExtension(); +registerFarmGeneratorExtension(); +registerGotoMarkExtension(); +registerPortalGeneratorExtension(); +registerSimpleLocateBiomeExtension(); +registerStarBrushExtension(); +registerTreeGeneratorExtension(); diff --git a/editor-multi/scripts/portal-generator.ts b/editor-multi/scripts/portal-generator.ts new file mode 100644 index 0000000..ff424e6 --- /dev/null +++ b/editor-multi/scripts/portal-generator.ts @@ -0,0 +1,570 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { + BoolPropertyItemVariant, + CursorTargetMode, + IDisposable, + ImageResourceType, + IObservable, + makeObservable, + NumberPropertyItemVariant, + Ray, +} from "@minecraft/server-editor"; +import { + IPlayerUISession, + registerEditorExtension, + IModalTool, + ActionTypes, + MouseProps, + MouseActionType, + MouseInputType, + KeyboardKey, + InputModifier, + EditorInputContext, + IPropertyPane, +} from "@minecraft/server-editor"; +import { Vector3 } from "@minecraft/server"; +import { MinecraftBlockTypes } from "@minecraft/vanilla-data"; + +enum PortalType { + Nether = 0, + End = 1, +} + +enum PortalOrientation { + X = 0, + Z = 1, +} + +type ExtensionStorage = { + tool?: IModalTool; +}; + +type PortalGeneratorSession = IPlayerUISession; + +type PaneSettingsType = { + portalType: IObservable; + shouldReplaceFloor: IObservable; +}; + +interface IPortalGenerator { + set parentPane(value: IPropertyPane); + + subPane(uiSession: PortalGeneratorSession): IPropertyPane | undefined; + + activatePane(uiSession: PortalGeneratorSession): void; + deactivatePane(): void; + + generatePortal(uiSession: PortalGeneratorSession): void; +} + +class PortalGenerator implements IDisposable { + private _netherPortal: NetherPortal; + private _endPortal: EndPortal; + private _activePortal?: IPortalGenerator; + + private _pane?: IPropertyPane; + private _settings: PaneSettingsType = { + portalType: makeObservable(PortalType.Nether), + shouldReplaceFloor: makeObservable(true), + }; + + constructor() { + this._netherPortal = new NetherPortal(); + this._endPortal = new EndPortal(); + } + + public toolPane(uiSession: PortalGeneratorSession): IPropertyPane | undefined { + if (!this._pane) { + uiSession.log.error("Tool pane not initialized"); + return undefined; + } + return this._pane; + } + + initialize(uiSession: PortalGeneratorSession, storage: ExtensionStorage) { + // Create Action + const toolToggleAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + uiSession.toolRail.setSelectedToolId(tool.id); + }, + }); + + // Add the extension to the tool rail and give it an icon + const tool = uiSession.toolRail.addTool( + { + title: "sample.portalgenerator.title", + icon: "pack://textures/portal-generator.png", + tooltip: "sample.portalgenerator.tooltip", + }, + toolToggleAction + ); + + // Register a global shortcut (CTRL + SHIFT + P) to select the tool + uiSession.inputManager.registerKeyBinding( + EditorInputContext.GlobalToolMode, + toolToggleAction, + { key: KeyboardKey.KEY_P, modifier: InputModifier.Control | InputModifier.Shift }, + { + uniqueId: "editorSamples:portalGenerator:toggleTool", + label: "sample.portalgenerator.keyBinding.toggleTool", + } + ); + + // Create an action that will be executed on left mouse click + const executeMouseAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.MouseRayCastAction, + onExecute: (_mouseRay: Ray, mouseProps: MouseProps) => { + if ( + mouseProps.mouseAction === MouseActionType.LeftButton && + mouseProps.inputType === MouseInputType.ButtonDown && + this._activePortal + ) { + this._activePortal.generatePortal(uiSession); + } + }, + }); + tool.registerMouseButtonBinding(executeMouseAction); + + storage.tool = tool; + + // Build the UI components (and the sub pane with the options) + this.buildPane(uiSession); + + if (this._pane) { + tool.bindPropertyPane(this._pane); + this.activatePortalGenerator(uiSession, this._settings.portalType.value); + } + } + + teardown(): void {} + + buildPane(uiSession: PortalGeneratorSession) { + const pane = uiSession.createPropertyPane({ + title: "sample.portalgenerator.pane.title", + }); + + pane.addBool(this._settings.shouldReplaceFloor, { + title: "sample.portalgenerator.pane.replacefloor", + onChange: (current: boolean) => { + const targetMode = current ? CursorTargetMode.Block : CursorTargetMode.Face; + uiSession.extensionContext.cursor.setProperties({ targetMode }); + }, + variant: BoolPropertyItemVariant.ToggleSwitch, + }); + + pane.addDropdown(this._settings.portalType, { + title: "sample.portalgenerator.pane.portaltype", + entries: [ + { + label: "sample.portalgenerator.pane.portaltype.nether", + value: PortalType.Nether, + imageData: { path: "portal", type: ImageResourceType.Block }, + }, + { + label: "sample.portalgenerator.pane.portaltype.end", + value: PortalType.End, + imageData: { path: "enderEyeIcon", type: ImageResourceType.Icon }, + }, + ], + onChange: (newValue: number) => { + this.activatePortalGenerator(uiSession, newValue); + }, + }); + + this._pane = pane; + this._endPortal.parentPane = pane; + this._netherPortal.parentPane = pane; + } + + activatePortalGenerator(uiSession: PortalGeneratorSession, portalType: PortalType): void { + this._pane?.hide(); + + if (this._activePortal) { + this._activePortal.deactivatePane(); + } + + if (portalType === PortalType.Nether) { + this._activePortal = this._netherPortal; + } else { + this._activePortal = this._endPortal; + } + + this._activePortal.activatePane(uiSession); + + this._pane?.show(); + } +} + +class NetherPortal implements IPortalGenerator { + private _pane?: IPropertyPane; + private _parentPane?: IPropertyPane; + + // Settings + private _sizeX: IObservable = makeObservable(4); + private _sizeY: IObservable = makeObservable(5); + private _percentComplete: IObservable = makeObservable(100); + private _orientation: IObservable = makeObservable(PortalOrientation.X); + private _hasCorners: IObservable = makeObservable(true); + + constructor() {} + + public subPane(uiSession: PortalGeneratorSession): IPropertyPane | undefined { + if (!this._pane) { + uiSession.log.error("Sub pane not initialized"); + return undefined; + } + return this._pane; + } + + public set parentPane(value: IPropertyPane) { + this._parentPane = value; + } + + activatePane(uiSession: PortalGeneratorSession): void { + if (this._pane) { + this.deactivatePane(); + } + + this._pane = this.buildSubPane(uiSession); + this._pane?.show(); + } + + deactivatePane(): void { + if (this._pane) { + this._pane.hide(); + this._parentPane?.removeSubPane(this._pane); + } + + this._pane = undefined; + } + + buildSubPane(uiSession: PortalGeneratorSession): IPropertyPane | undefined { + const windowPane = this._parentPane; + if (!windowPane) { + uiSession.log.error("Failed to find window binding"); + return undefined; + } + + const subPane = windowPane.createSubPane({ + title: "sample.portalgenerator.pane.nether.pane.title", + }); + + subPane.addDropdown(this._orientation, { + title: "sample.portalgenerator.pane.nether.pane.orientation", + entries: [ + { + label: "sample.portalgenerator.pane.nether.pane.orientation.x", + value: PortalOrientation.X, + }, + { + label: "sample.portalgenerator.pane.nether.pane.orientation.y", + value: PortalOrientation.Z, + }, + ], + }); + + subPane.addNumber(this._sizeX, { + title: "sample.portalgenerator.pane.nether.pane.width", + min: 4, + max: 33, + isInteger: true, + }); + + subPane.addNumber(this._sizeY, { + title: "sample.portalgenerator.pane.nether.pane.height", + min: 5, + max: 33, + isInteger: true, + }); + + subPane.addBool(this._hasCorners, { + title: "sample.portalgenerator.pane.nether.pane.corners", + tooltip: "sample.portalgenerator.pane.nether.pane.corners.tooltip", + }); + + subPane.addNumber(this._percentComplete, { + title: "sample.portalgenerator.pane.nether.pane.percentage", + min: 0, + max: 100, + variant: NumberPropertyItemVariant.InputFieldAndSlider, + }); + + return subPane; + } + + generatePortal(uiSession: PortalGeneratorSession): void { + const me = uiSession.extensionContext.player; + const location = uiSession.extensionContext.cursor.getPosition(); + + const targetBlock = me.dimension.getBlock(location); + if (targetBlock === undefined) { + uiSession.log.warning("No block selected"); + return; + } + + if (this._percentComplete.value === 0) { + return; + } + + if (me.dimension.id.endsWith("the_end")) { + uiSession.log.warning("You cannot create a nether portal in the end"); + return; + } + + uiSession.extensionContext.transactionManager.openTransaction("Transaction group portal generator"); + + let from: Vector3 = location; + let to: Vector3 = { x: 0, y: 0, z: 0 }; + + if (this._orientation.value === PortalOrientation.X) { + to = { + x: location.x + this._sizeX.value, + y: location.y + this._sizeY.value, + z: location.z, + }; + } else if (this._orientation.value === PortalOrientation.Z) { + to = { + x: location.x, + y: location.y + this._sizeY.value, + z: location.z + this._sizeX.value, + }; + } else { + uiSession.log.error("Failed to get valid orientation"); + uiSession.extensionContext.transactionManager.discardOpenTransaction(); + return; + } + + const yEnd = this._sizeY.value - 1; + const xEnd = this._sizeX.value - 1; + uiSession.extensionContext.transactionManager.trackBlockChangeArea(from, to); + for (let y = 0; y < this._sizeY.value; ++y) { + for (let x = 0; x < this._sizeX.value; ++x) { + let block = MinecraftBlockTypes.Air; + + // Percent complete is randomized percentage + if (this._percentComplete.value !== 100) { + const randVal = getRandomInt(100); + if (this._percentComplete.value - randVal < 0) { + continue; + } + } + + // Set as obsidian for bottom, top, and edges of portal + if ( + !this._hasCorners.value && + ((y === 0 && x === 0) || (y === 0 && x === xEnd) || (y === yEnd && x === xEnd) || (y === yEnd && x === 0)) + ) { + continue; // no corners + } else if (y === 0 || y === yEnd || x === 0 || x === xEnd) { + block = MinecraftBlockTypes.Obsidian; + } else { + continue; + } + + const loc: Vector3 = + this._orientation.value === PortalOrientation.X + ? { x: location.x + x, y: location.y + y, z: location.z } + : { x: location.x, y: location.y + y, z: location.z + x }; + + me.dimension.getBlock(loc)?.setType(block); + } + } + + let ori = "x"; + if (this._orientation.value === PortalOrientation.Z) { + ori = "z"; + from = { x: location.x, y: location.y + 1, z: location.z + 1 }; + to = { + x: location.x, + y: location.y + this._sizeY.value - 2, + z: location.z + this._sizeX.value - 2, + }; + } else { + from = { x: location.x + 1, y: location.y + 1, z: location.z }; + to = { + x: location.x + this._sizeX.value - 2, + y: location.y + this._sizeY.value - 2, + z: location.z, + }; + } + + if (this._percentComplete.value === 100) { + // We must fill the portals as it must have the axis set while setting the type + // or the engine will destroy the block and the scripting API wont allow both in one operation + me.dimension.runCommand( + `FILL ${from.x} ${from.y} ${from.z} ${to.x} ${to.y} ${to.z} portal ["portal_axis":"${ori}"]` + ); + } + + uiSession.extensionContext.transactionManager.commitOpenTransaction(); + } +} + +class EndPortal implements IPortalGenerator { + private _pane?: IPropertyPane; + private _parentPane?: IPropertyPane; + + // Settings + private _filledEyeCount: IObservable = makeObservable(12); + + constructor() {} + + public subPane(uiSession: PortalGeneratorSession): IPropertyPane | undefined { + if (!this._pane) { + uiSession.log.error("Sub pane not initialized"); + return undefined; + } + return this._pane; + } + + public set parentPane(value: IPropertyPane) { + this._parentPane = value; + } + + activatePane(uiSession: PortalGeneratorSession): void { + if (this._pane) { + this.deactivatePane(); + } + + this._pane = this.buildSubPane(uiSession); + this._pane?.show(); + } + + deactivatePane(): void { + if (this._pane) { + this._pane.hide(); + this._parentPane?.removeSubPane(this._pane); + } + + this._pane = undefined; + } + + buildSubPane(uiSession: PortalGeneratorSession): IPropertyPane | undefined { + const windowPane = this._parentPane; + if (!windowPane) { + uiSession.log.error("Failed to find window pane"); + return undefined; + } + + const subPane = windowPane.createSubPane({ + title: "sample.portalgenerator.pane.end.pane.title", + }); + + subPane.addNumber(this._filledEyeCount, { + title: "sample.portalgenerator.pane.end.pane.filledcount", + min: 0, + max: 12, + variant: NumberPropertyItemVariant.InputFieldAndSlider, + isInteger: true, + }); + + return subPane; + } + + generatePortal(uiSession: PortalGeneratorSession): void { + const me = uiSession.extensionContext.player; + const location = uiSession.extensionContext.cursor.getPosition(); + + const targetBlock = me.dimension.getBlock(location); + if (targetBlock === undefined) { + uiSession.log.error("No block selected"); + return; + } + + uiSession.extensionContext.transactionManager.openTransaction("Transaction group portal generator"); + + const from: Vector3 = { x: location.x, y: location.y, z: location.z }; + const to: Vector3 = { x: location.x + 4, y: location.y, z: location.z + 4 }; + + let eyesToUse: boolean[] = [false, false, false, false, false, false, false, false, false, false, false, false]; + if (this._filledEyeCount.value === 12) { + eyesToUse = [true, true, true, true, true, true, true, true, true, true, true, true]; + } else if (this._filledEyeCount.value !== 0) { + const possibleEyeLocs = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; + for (let i = 0; i < this._filledEyeCount.value; ++i) { + const rand = Math.floor(Math.random() * possibleEyeLocs.length); + eyesToUse[possibleEyeLocs[rand]] = true; + possibleEyeLocs.splice(rand, 1); + } + } + + let i = 0; + uiSession.extensionContext.transactionManager.trackBlockChangeArea(from, to); + + for (let z = 0; z < 5; ++z) { + for (let x = 0; x < 5; ++x) { + let rot = 0; + let blockType = MinecraftBlockTypes.Air; + if (x === 0 && z !== 0 && z !== 4) { + // west edge + blockType = MinecraftBlockTypes.EndPortalFrame; + rot = 3; + } else if (x === 4 && z !== 0 && z !== 4) { + // east edge + blockType = MinecraftBlockTypes.EndPortalFrame; + rot = 1; + } else if (z === 0 && x !== 0 && x !== 4) { + // south edge + blockType = MinecraftBlockTypes.EndPortalFrame; + rot = 0; + } else if (z === 4 && x !== 0 && x !== 4) { + // north edge + blockType = MinecraftBlockTypes.EndPortalFrame; + rot = 2; + } else if (this._filledEyeCount.value === 12 && x >= 1 && z >= 1 && x <= 3 && z <= 3) { + // center + blockType = MinecraftBlockTypes.EndPortal; + } else { + continue; + } + + const block = me.dimension.getBlock({ x: location.x + x, y: location.y, z: location.z + z }); + + if (block) { + block.setType(blockType); + if (blockType === MinecraftBlockTypes.EndPortalFrame) { + const perm = block.permutation.withState("direction", rot).withState("end_portal_eye_bit", eyesToUse[i]); + block.setPermutation(perm); + i += 1; + } + } else { + uiSession.log.error("Failed to get block"); + } + } + } + + uiSession.extensionContext.transactionManager.commitOpenTransaction(); + } +} + +function getRandomInt(upper: number) { + return Math.ceil(Math.random() * (upper + 1)); +} + +/** + * Register Portal Generator extension + */ +export function registerPortalGeneratorExtension() { + registerEditorExtension( + "portal-generator-sample", + (uiSession) => { + uiSession.log.debug(`Initializing [${uiSession.extensionContext.extensionInfo.name}] extension`); + + uiSession.scratchStorage = {}; + + const generator = new PortalGenerator(); + generator.initialize(uiSession, uiSession.scratchStorage); + + return [generator]; + }, + (uiSession) => { + uiSession.log.debug(`Shutting down [${uiSession.extensionContext.extensionInfo.name}] extension`); + }, + { + description: '"Portal Generator" Sample Extension', + notes: "by Andrew", + } + ); +} diff --git a/editor-multi/scripts/simple-locate-biome.ts b/editor-multi/scripts/simple-locate-biome.ts new file mode 100644 index 0000000..9403144 --- /dev/null +++ b/editor-multi/scripts/simple-locate-biome.ts @@ -0,0 +1,326 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { VECTOR3_ZERO, Vector3Utils } from "@minecraft/math"; +import { + ActionTypes, + IDropdownItem, + IObservable, + IPlayerUISession, + ISimpleToolOptions, + ISimpleToolPaneComponent, + InputModifier, + KeyboardKey, + SimpleToolWrapper, + makeObservable, + registerEditorExtension, +} from "@minecraft/server-editor"; +import { BiomeTypes, Player, Vector3 } from "@minecraft/server"; + +enum LocateMode { + Biome = 0, + Structure, +} + +type LocateSelectorType = { + locateMode: IObservable; +}; + +type LocateBiomeSourceType = { + biomeId: IObservable; + biomePos: Vector3; +}; + +type ResultsType = { + foundType: string; + foundPos: Vector3; +}; + +// Implementation of a simple tool that allows the player to locate a biome +// This tool demonstrates the use of the SimpleToolWrapper class (and the associated +// ISimpleToolOptions interfaces) +export class SimpleLocate extends SimpleToolWrapper { + private _results: ResultsType = { + foundType: "", + foundPos: VECTOR3_ZERO, + }; + + // Activate the results pane with the found biome/structure and position in the + // world. This uses the SimpleToolWrapper's showPane method to display the results + // in a pre-constructed pane which is generally hidden until results are valid. + activateResultsPane(biome: string, pos: Vector3): void { + this.simpleTool.logInfo(`Found ${biome} at ${Vector3Utils.toString(pos)}`); + + this._results.foundType = biome; + this._results.foundPos = pos; + + // Hopefully, we'll be able to get rid of this function in the near future. + // reconstructing the pane is a last-resort hack to get the pane to update + // certain UI components which do not currently support dynamic data binding. + // It's a necessary evil for now, but we're working on a better solution. + // We certainly don't recommend doing this more than necessary - it causes a + // lot of classes to be re-created and can be very slow, especially if there + // are a lot of child panes and UI components. + const foundPane = this.simpleTool.pane.findPane("results-found"); + foundPane?.reconstructPane(); + + // Show the results pane (this will cause the other sibling panes + // (like 'results-notfound') to be hidden because they're flagged as mutually + // exclusive) + this.simpleTool.showPane("results-found"); + } + + activateNoResultsPane(): void { + // Show the results-notfound pane (this will cause the other sibling panes + // (like 'results-found') to be hidden because they're flagged as mutually + // exclusive) + this.simpleTool.showPane("results-notfound"); + } + + hideResultsPane(): void { + // Hide the results pane + // We generally do this when we're changing options or don't have a valid set + // of results to display. + // Note that this will hide both the `results-found` and `results-notfound` panes + // because they're child panes of this one + this.simpleTool.hidePane("results"); + } + + // The 'typeSelector' pane is the initial pane that allows the player to select the + // type of 'thing' they want to locate (biome or structure). This function builds + // a dropdown containing the two options. + // The onChange event handler is used to show the appropriate sub-pane based on the + // selection. + buildTypeSelectionPane(component: ISimpleToolPaneComponent): void { + const actualPane = component.pane; + + // We create a data binding between this pane/server script and the client-side + // UI component. This binding allows changes here to be reflected in the UI and + // changes made to the UI to be reflected here. + // It creates a bi-directional networking link between the client and server. + // We use this to ensure that the selected type is always up-to-date. + const locatorType: LocateSelectorType = { + locateMode: makeObservable(LocateMode.Biome), + }; + + // Create a dropdown with two options: Biome and Structure + // and an event handler to show the appropriate sub-pane when the selection changes + actualPane.addDropdown(locatorType.locateMode, { + title: "sample.simplelocate.tool.locatetype.title", + entries: [ + { + label: "sample.simplelocate.tool.locatetype.biome", + value: LocateMode.Biome, + }, + { + label: "sample.simplelocate.tool.locatetype.structure", + value: LocateMode.Structure, + }, + ], + onChange: (newValue: number) => { + const mode = newValue as LocateMode; + if (mode === LocateMode.Biome) { + component.simpleTool.showPane("type-biome"); + } else { + component.simpleTool.showPane("type-structure"); + } + component.simpleTool.hidePane("results"); + }, + }); + } + + buildBiomeSearchPane(component: ISimpleToolPaneComponent): void { + const actualPane = component.pane; + + const biomeType: LocateBiomeSourceType = { + biomeId: makeObservable(0), + biomePos: VECTOR3_ZERO, + }; + + const listOfBiomes = BiomeTypes.getAll().map((v, i) => { + const names = v.id; + const item: IDropdownItem = { + label: names.replace("minecraft:", "").replace("_", " "), + value: i, + }; + return item; + }); + + actualPane.addDropdown(biomeType.biomeId, { + title: "sample.simplelocate.tool.biome.title", + entries: listOfBiomes, + onChange: () => { + component.simpleTool.hidePane("results"); + }, + }); + + const locateBiomeAction = component.session.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + const biome = BiomeTypes.getAll()[biomeType.biomeId.value].id; + const player: Player = component.session.extensionContext.player; + const biomePos = player.dimension.findClosestBiome(player.location, biome); + if (biomePos) { + this.activateResultsPane(biome, biomePos); + } else { + this.activateNoResultsPane(); + } + }, + }); + + actualPane.addButton(locateBiomeAction, { + title: "sample.simplelocate.tool.biome.find", + visible: true, + icon: "pinIcon", + }); + } + + buildStructurePane(component: ISimpleToolPaneComponent): void { + const actualPane = component.pane; + actualPane.addText("sample.simplelocate.tool.structure.message", { + border: true, + }); + } + + buildResultsPane(component: ISimpleToolPaneComponent): void { + const actualPane = component.pane; + actualPane.addText(`Found ${this._results.foundType}`); + + actualPane.addVector3_deprecated(this._results, "foundPos", { + title: "sample.simplelocate.tool.results.foundat", + enable: false, + visible: true, + }); + + actualPane.addButton( + component.session.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + const pos = this._results.foundPos; + component.session.extensionContext.player.teleport(pos); + }, + }), + { + title: "sample.simplelocate.tool.results.goto", + } + ); + } + + buildNoResultsPane(component: ISimpleToolPaneComponent): void { + const actualPane = component.pane; + actualPane.addText("sample.simplelocate.tool.results.notfound", { + border: true, + }); + } + + constructor(session: IPlayerUISession) { + super(); + + const toolOptions: ISimpleToolOptions = { + name: "Simple Locate Biome", + activationKeyBinding: { + binding: { + key: KeyboardKey.KEY_L, + modifier: InputModifier.Control | InputModifier.Shift, + }, + info: { + uniqueId: "editorSample:locateBiomeToolKeyBinding:toggleTool", + label: "sample.simplelocate.tool.keyBinding.toggleTool", + }, + }, + + propertyPaneOptions: { + id: "pane", + title: "sample.simplelocate.tool.title", + + childPaneInitiallyVisible: "typeSelector", + + // There are 2 sub-panes in the root window, and 2 sub-panes in the first sub-pane + // 1 typeSelector - The Locate Type Selector + // 1-1 type-biome - The Biome Locator + // 1-2 type-structure - The Structure Locator + // 2 results - The results + // 2-1 results-found - Actual Results + // 2-2 results-notfound - Not Found warning + childPanes: [ + { + id: "typeSelector", + title: "sample.simplelocate.tool.locatetype.title", + + onBeginFinalize: (component) => this.buildTypeSelectionPane(component), + + childPaneInitiallyVisible: "type-biome", + childPanesMutuallyExclusive: true, + + childPanes: [ + { + id: "type-biome", + title: "sample.simplelocate.tool.locatetype.biome.title", + onBeginFinalize: (component) => this.buildBiomeSearchPane(component), + }, + { + id: "type-structure", + title: "sample.simplelocate.tool.locatetype.structure.title", + onBeginFinalize: (component) => this.buildStructurePane(component), + }, + ], + }, + { + id: "results", + title: "sample.simplelocate.tool.results.title", + + childPanesMutuallyExclusive: true, + + childPanes: [ + { + id: "results-found", + title: "sample.simplelocate.tool.results.foundat.title", + + onBeginFinalize: (component) => this.buildResultsPane(component), + }, + { + id: "results-notfound", + title: "sample.simplelocate.tool.results.notfound.title", + + onBeginFinalize: (component) => this.buildNoResultsPane(component), + }, + ], + }, + ], + }, + }; + + this.setupSimpleTool(session, toolOptions); + } +} + +/** + * Provides a "Simple Biome Locate" extension to demonstrate the new Simple Tool wrapper system + * @beta + */ +export function registerSimpleLocateBiomeExtension() { + registerEditorExtension( + "simple-locate-sample", + (uiSession) => { + uiSession.log.debug(`Initializing extension [${uiSession.extensionContext.extensionInfo.name}]`); + + // Just instantiate the tool and return it to the editor - the editor will deal with cleaning up + // and shutting down the tool when it's no longer required + const simpleLocateTool = new SimpleLocate(uiSession); + + // Return an array of things for the editor to clean up. + // If you wanted to, you can create many individual tools in this single register function + // and return them all in the array, and the editor will clean them all up when the extension + // is unloaded + return [simpleLocateTool]; + }, + (uiSession) => { + uiSession.log.debug( + `Shutting down extension [${uiSession.extensionContext.extensionInfo.name}] for player [${uiSession.extensionContext.player.name}]` + ); + }, + { + description: '"Simple Locate Biome Tool" Sample Extension', + notes: "by Dave & Mitch", + } + ); +} diff --git a/editor-multi/scripts/star-brush-shape.ts b/editor-multi/scripts/star-brush-shape.ts new file mode 100644 index 0000000..28b9b87 --- /dev/null +++ b/editor-multi/scripts/star-brush-shape.ts @@ -0,0 +1,140 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { + BlockVolume, + CompoundBlockVolume, + CompoundBlockVolumeAction, + CompoundBlockVolumePositionRelativity, +} from '@minecraft/server'; +import { IPlayerUISession, registerEditorExtension, SettingsUIElement } from '@minecraft/server-editor'; + +type Settings = { + radius: number; + includeVertical: boolean; +}; + +const MIN_RADIUS = 1; +const MAX_RADIUS = 12; + +/** + * Register Star Brush extension + */ +export function registerStarBrushExtension() { + registerEditorExtension( + 'StarBrush', + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Initializing ${uiSession.extensionContext.extensionInfo.name}`); + + const settings: Settings = { + radius: 3, + includeVertical: true, + }; + + const rebuildStar = () => { + const compoundVolume = new CompoundBlockVolume(); + + // center + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 0 }), + }); + + if (settings.radius > 1) { + const r = settings.radius; + + // left + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: -r, y: 0, z: 0 }, { x: 0, y: 0, z: 0 }), + }); + + // right + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: 0, y: 0, z: 0 }, { x: r, y: 0, z: 0 }), + }); + + // front + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: r }), + }); + + // back + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: 0, y: 0, z: -r }, { x: 0, y: 0, z: 0 }), + }); + + if (settings.includeVertical) { + // up + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: 0, y: 0, z: 0 }, { x: 0, y: r, z: 0 }), + }); + + // down + compoundVolume.pushVolume({ + action: CompoundBlockVolumeAction.Add, + locationRelativity: CompoundBlockVolumePositionRelativity.Relative, + volume: new BlockVolume({ x: 0, y: 0, z: 0 }, { x: 0, y: -r, z: 0 }), + }); + } + } + + return compoundVolume; + }; + + const getStarUISettings = (): SettingsUIElement[] => { + return [ + new SettingsUIElement( + 'Radius', + settings.radius, + arg => { + if (arg !== undefined && typeof arg === 'number') { + settings.radius = arg; + } + }, + { + min: MIN_RADIUS, + max: MAX_RADIUS, + } + ), + new SettingsUIElement( + 'includeVertical', + settings.includeVertical, + arg => { + if (arg !== undefined && typeof arg === 'boolean') { + settings.includeVertical = arg; + } + }, + { refreshOnChange: true } + ), + new SettingsUIElement('Vector3', { x: 1, y: 2, z: 3 }, _value => {}), + ]; + }; + + uiSession.extensionContext.brushShapeManager.registerBrushShape( + 'Star-sample', + 'star', + rebuildStar, + getStarUISettings + ); + + return []; + }, + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Uninitializing ${uiSession.extensionContext.extensionInfo.name}`); + }, + { + description: 'Star brush shape sample extension', + notes: 'An example of registering a custom brush shape.', + } + ); +} diff --git a/editor-multi/scripts/tree-generator.ts b/editor-multi/scripts/tree-generator.ts new file mode 100644 index 0000000..b737d55 --- /dev/null +++ b/editor-multi/scripts/tree-generator.ts @@ -0,0 +1,449 @@ +// Copyright (c) Mojang AB. All rights reserved. + +import { + ActionTypes, + EditorInputContext, + IDropdownPropertyItemEntry, + IModalTool, + IObservable, + IPlayerUISession, + InputModifier, + KeyboardKey, + MouseActionType, + MouseInputType, + MouseProps, + NumberPropertyItemVariant, + Ray, + makeObservable, + registerEditorExtension, +} from "@minecraft/server-editor"; +import { BlockPermutation, Vector3 } from "@minecraft/server"; +import { MinecraftBlockTypes } from "@minecraft/vanilla-data"; + +interface TreeToolSettings { + height: IObservable; + randomHeightVariance: IObservable; + treeType: IObservable; +} + +interface TreeBlockChangeData { + location: Vector3; + newBlock: BlockPermutation; +} + +interface ITree { + place(location: Vector3, settings: TreeToolSettings): TreeBlockChangeData[]; +} + +export class SimpleTree implements ITree { + logType: BlockPermutation; + leafType: BlockPermutation; + + constructor(logType: BlockPermutation, leafType: BlockPermutation) { + this.logType = logType; + this.leafType = leafType; + } + + place(location: Vector3, settings: TreeToolSettings): TreeBlockChangeData[] { + const result: TreeBlockChangeData[] = []; + + const heightOffset = + Math.floor(Math.random() * settings.randomHeightVariance.value) - settings.randomHeightVariance.value / 2; + const calculatedHeight = settings.height.value + heightOffset; + + /// + // Trunk + /// + for (let y = 0; y <= calculatedHeight; ++y) { + const offsetLocation: Vector3 = { + x: location.x, + y: location.y + y, + z: location.z, + }; + result.push({ + location: offsetLocation, + newBlock: this.logType, + }); + } + + /// + // Leaves + /// + + /// + // Plus sign on top + /// + const leafBlocks = [ + { x: 0, y: 1, z: 0 }, + { x: 1, y: 1, z: 0 }, + { x: -1, y: 1, z: 0 }, + { x: 0, y: 1, z: 1 }, + { x: 0, y: 1, z: -1 }, + + { x: 1, y: 0, z: 0 }, + { x: -1, y: 0, z: 0 }, + { x: 0, y: 0, z: 1 }, + { x: 0, y: 0, z: -1 }, + ]; + + const randomPlusBlocks = [ + { x: 1, y: 0, z: 1 }, + { x: -1, y: 0, z: 1 }, + { x: -1, y: 0, z: -1 }, + { x: 1, y: 0, z: -1 }, + ]; + randomPlusBlocks.forEach((randBlock) => { + if (Math.random() > 0.5) { + leafBlocks.push(randBlock); + } + }); + + /// + // Fat bottom + /// + leafBlocks.push( + ...[ + { x: 1, y: -1, z: -1 }, + { x: 1, y: -1, z: 0 }, + { x: 1, y: -1, z: 1 }, + + { x: 0, y: -1, z: 1 }, + { x: 0, y: -1, z: -1 }, + + { x: -1, y: -1, z: -1 }, + { x: -1, y: -1, z: 1 }, + { x: -1, y: -1, z: 0 }, + ] + ); + + if (calculatedHeight > 4) { + leafBlocks.push( + ...[ + { x: 1, y: -2, z: -1 }, + { x: 1, y: -2, z: 0 }, + { x: 1, y: -2, z: 1 }, + + { x: 0, y: -2, z: 1 }, + { x: 0, y: -2, z: -1 }, + + { x: -1, y: -2, z: -1 }, + { x: -1, y: -2, z: 1 }, + { x: -1, y: -2, z: 0 }, + + // Outer + { x: -2, y: -1, z: -1 }, + { x: -2, y: -1, z: 0 }, + { x: -2, y: -1, z: 1 }, + + { x: -1, y: -1, z: -2 }, + { x: -1, y: -1, z: -1 }, + { x: -1, y: -1, z: 0 }, + { x: -1, y: -1, z: 1 }, + { x: -1, y: -1, z: 2 }, + + { x: 0, y: -1, z: -2 }, + { x: 0, y: -1, z: -1 }, + { x: 0, y: -1, z: 1 }, + { x: 0, y: -1, z: 2 }, + + { x: 1, y: -1, z: -2 }, + { x: 1, y: -1, z: -1 }, + { x: 1, y: -1, z: 0 }, + { x: 1, y: -1, z: 1 }, + { x: 1, y: -1, z: 2 }, + + { x: 2, y: -1, z: -1 }, + { x: 2, y: -1, z: 0 }, + { x: 2, y: -1, z: 1 }, + + { x: -2, y: -2, z: -1 }, + { x: -2, y: -2, z: 0 }, + { x: -2, y: -2, z: 1 }, + + { x: -1, y: -2, z: -2 }, + { x: -1, y: -2, z: -1 }, + { x: -1, y: -2, z: 0 }, + { x: -1, y: -2, z: 1 }, + { x: -1, y: -2, z: 2 }, + + { x: 0, y: -2, z: -2 }, + { x: 0, y: -2, z: -1 }, + { x: 0, y: -2, z: 1 }, + { x: 0, y: -2, z: 2 }, + + { x: 1, y: -2, z: -2 }, + { x: 1, y: -2, z: -1 }, + { x: 1, y: -2, z: 0 }, + { x: 1, y: -2, z: 1 }, + { x: 1, y: -2, z: 2 }, + + { x: 2, y: -2, z: -1 }, + { x: 2, y: -2, z: 0 }, + { x: 2, y: -2, z: 1 }, + ] + ); + } + + const randomFatBottomBlocks = [ + { x: -2, y: -1, z: -2 }, + { x: -2, y: -1, z: 2 }, + + { x: 2, y: -1, z: -2 }, + { x: 2, y: -1, z: 2 }, + ]; + + if (calculatedHeight > 4) { + randomFatBottomBlocks.push( + ...[ + { x: -2, y: -2, z: -2 }, + { x: -2, y: -2, z: 2 }, + + { x: 2, y: -2, z: -2 }, + { x: 2, y: -2, z: 2 }, + ] + ); + } + + leafBlocks.forEach((block) => { + const offsetLocation: Vector3 = { + x: location.x + block.x, + y: location.y + calculatedHeight + block.y, + z: location.z + block.z, + }; + result.push({ + location: offsetLocation, + newBlock: this.leafType, + }); + }); + + return result; + } +} + +const TreeTypes = [ + { + name: "Oak", + type: new SimpleTree( + BlockPermutation.resolve(MinecraftBlockTypes.OakLog), + BlockPermutation.resolve(MinecraftBlockTypes.OakLeaves) + ), + }, + { + name: "Spruce", + type: new SimpleTree( + BlockPermutation.resolve(MinecraftBlockTypes.SpruceLog), + BlockPermutation.resolve(MinecraftBlockTypes.SpruceLeaves) + ), + }, + { + name: "Birch", + type: new SimpleTree( + BlockPermutation.resolve(MinecraftBlockTypes.BirchLog), + BlockPermutation.resolve(MinecraftBlockTypes.BirchLeaves) + ), + }, + { + name: "Jungle", + type: new SimpleTree( + BlockPermutation.resolve(MinecraftBlockTypes.JungleLog), + BlockPermutation.resolve(MinecraftBlockTypes.JungleLeaves) + ), + }, + + { + name: "Acacia", + type: new SimpleTree( + BlockPermutation.resolve(MinecraftBlockTypes.AcaciaLog), + BlockPermutation.resolve(MinecraftBlockTypes.AcaciaLeaves) + ), + }, + { + name: "Dark Oak", + type: new SimpleTree( + BlockPermutation.resolve(MinecraftBlockTypes.DarkOakLog), + BlockPermutation.resolve(MinecraftBlockTypes.DarkOakLeaves) + ), + }, +]; + +function addToolSettingsPane(uiSession: IPlayerUISession, tool: IModalTool) { + // Create a pane that will be shown when the tool is selected + const pane = uiSession.createPropertyPane({ + title: "sample.treegenerator.pane.title", + }); + + // Settings + const settings: TreeToolSettings = { + height: makeObservable(5), + randomHeightVariance: makeObservable(0), + treeType: makeObservable(0), + }; + + const onExecuteTool = (ray?: Ray) => { + const player = uiSession.extensionContext.player; + + let location: Vector3; + + // Try finding a valid block to place a tree + if (ray) { + const raycastResult = player.dimension.getBlockFromRay(ray.location, ray.direction); + if (!raycastResult) { + uiSession.log.warning("Invalid target block!"); + return; + } + location = raycastResult.block.location; + } else { + const targetBlock = player.dimension.getBlock(uiSession.extensionContext.cursor.getPosition()); + if (!targetBlock) { + uiSession.log.warning("Invalid target block!"); + return; + } + location = targetBlock.location; + } + + // Begin transaction + uiSession.extensionContext.transactionManager.openTransaction("Tree Tool"); + + const selectedTreeType = TreeTypes[settings.treeType.value]; + const affectedBlocks = selectedTreeType.type.place(location, settings); + + // Track changes + uiSession.extensionContext.transactionManager.trackBlockChangeList(affectedBlocks.map((x) => x.location)); + + // Apply changes + let invalidBlockCount = 0; + affectedBlocks.forEach((item) => { + const block = player.dimension.getBlock(item.location); + if (block) { + block.setPermutation(item.newBlock); + } else { + ++invalidBlockCount; + } + }); + + if (invalidBlockCount > 0) { + uiSession.log.warning(`There were ${invalidBlockCount} invalid blocks while placing a tree!`); + } + + // End transaction + uiSession.extensionContext.transactionManager.commitOpenTransaction(); + }; + + // Add a dropdown for available tree types + pane.addDropdown(settings.treeType, { + title: "sample.treegenerator.pane.type", + enable: true, + entries: TreeTypes.map((tree, index): IDropdownPropertyItemEntry => { + return { + label: tree.name, + value: index, + }; + }, []), + }); + + pane.addNumber(settings.height, { + title: "sample.treegenerator.pane.height", + min: 1, + max: 16, + variant: NumberPropertyItemVariant.InputFieldAndSlider, + isInteger: true, + }); + + pane.addNumber(settings.randomHeightVariance, { + title: "sample.treegenerator.pane.variance", + min: 0, + max: 5, + variant: NumberPropertyItemVariant.InputFieldAndSlider, + isInteger: true, + }); + + // Create and an action that will be executed on key press + const executeAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: onExecuteTool, + }); + + // Register the action as a keyboard shortcut + tool.registerKeyBinding( + executeAction, + { key: KeyboardKey.KEY_T }, + { uniqueId: "editorSamples:treeGenerator:place", label: "sample.treegenerator.keyBinding.place" } + ); + tool.bindPropertyPane(pane); + + pane.hide(); + // Create an action that will be executed on left mouse click + const executeMouseAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.MouseRayCastAction, + onExecute: (mouseRay: Ray, mouseProps: MouseProps) => { + if (mouseProps.mouseAction === MouseActionType.LeftButton && mouseProps.inputType === MouseInputType.ButtonDown) { + onExecuteTool(mouseRay); + } + }, + }); + // Register the action for mouse button + tool.registerMouseButtonBinding(executeMouseAction); + + return settings; +} + +/** + * Create a new tool rail item for tree generator + */ +function addTool(uiSession: IPlayerUISession) { + // Create action + const toolToggleAction = uiSession.actionManager.createAction({ + actionType: ActionTypes.NoArgsAction, + onExecute: () => { + uiSession.toolRail.setSelectedToolId(tool.id); + }, + }); + + const tool = uiSession.toolRail.addTool( + { + title: "sample.treegenerator.tool.title", + icon: "pack://textures/tree-generator.png", + tooltip: "sample.treegenerator.tool.tooltip", + inputContextId: "editorSamples:treeGenerator", + inputContextLabel: "sample.treegenerator.tool.title", + }, + toolToggleAction + ); + + // Register a global shortcut to select the tool + uiSession.inputManager.registerKeyBinding( + EditorInputContext.GlobalToolMode, + toolToggleAction, + { key: KeyboardKey.KEY_T, modifier: InputModifier.Control | InputModifier.Shift }, + { uniqueId: "editorSamples:treeGenerator:toggleTool", label: "sample.treegenerator.keyBinding.toggleTool" } + ); + + return tool; +} + +/** + * Register Tree Generator extension + */ +export function registerTreeGeneratorExtension() { + registerEditorExtension( + "TreeGenerator-sample", + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Initializing [${uiSession.extensionContext.extensionInfo.name}] extension`); + + // Add extension tool to tool rail + const tool = addTool(uiSession); + + // Create settings pane/window for the extension + addToolSettingsPane(uiSession, tool); + + return []; + }, + (uiSession: IPlayerUISession) => { + uiSession.log.debug(`Shutting down [${uiSession.extensionContext.extensionInfo.name}] extension`); + }, + { + description: '"Tree Generator" Sample Extension', + notes: "by Jake", + } + ); +} diff --git a/editor-multi/tasks/BuildSnippets.ts b/editor-multi/tasks/BuildSnippets.ts new file mode 100644 index 0000000..dfe4680 --- /dev/null +++ b/editor-multi/tasks/BuildSnippets.ts @@ -0,0 +1,162 @@ +import fs from "fs"; +import path from "path"; + +export class BuildSnippetsParameters { + scriptPaths: string[]; + targetFolderPath: string; +} + +class CodeSnippet { + name: string; + description: string; + codeSampleFull: string; +} + +class SnippetsBuilder { + _targetFolderPath: string; + _snippets: CodeSnippet[] = []; + _scriptLibraryMainCode = ""; + _libraryCode: object = {}; + + constructor(targetFolderPath: string) { + if (!targetFolderPath.endsWith("/") && !targetFolderPath.endsWith("\\")) { + targetFolderPath += "/"; + } + + this._targetFolderPath = path.join(path.resolve(targetFolderPath)); + } + + processFolder(folderPath: string, depth?: number) { + if (!fs.existsSync(folderPath)) { + return; + } + + console.log("Processing folder '" + folderPath + "'"); + + if (!depth) { + depth = 1; + } + + const results = fs.readdirSync(folderPath); + + results.forEach((fileName: string) => { + const filePath = path.join(folderPath, fileName); + + const stat = fs.statSync(filePath); + if (stat.isDirectory() && depth < 4) { + this.processFolder(filePath, depth + 1); + } else if (stat.isFile() && fileName.endsWith(".ts") && !fileName.startsWith("main")) { + const content = fs.readFileSync(filePath, { encoding: "utf8" }); + this.resolve(fileName, content); + } + }); + } + + resolve(fileName: string, content: string) { + const scriptLibraryMainCode = this.stripLinesContaining(content, "import * as mc from "); + + let cs = new CodeSnippet(); + cs.name = fileName; + cs.description = fileName; + cs.codeSampleFull; + cs.codeSampleFull = scriptLibraryMainCode; + + this._snippets.push(cs); + } + + writeCatalogFiles() { + let jsonMarkup = "{" + "\r\n"; + + for (const snippet of this._snippets) { + if (jsonMarkup.length > 10) { + jsonMarkup += ",\r\n"; + } + + let sample = '["' + this.getQuoteSafeContent(snippet.codeSampleFull).replace(/\r\n/g, '",\r\n"') + '"\r\n]'; + + jsonMarkup += + '"' + + snippet.name + + '": {\r\n "description": "' + + (snippet.description ? snippet.description + " " : "") + + '",\r\n "prefix": ["mc"],\r\n "body": ' + + sample + + "}"; + } + + jsonMarkup += "\r\n}"; + + this.writeFile("samplejson/editor-samples.json", jsonMarkup); + } + + getQuoteSafeContent(content: string) { + var newContent = ""; + + for (const chr of content) { + if (chr === "\\") { + newContent += "/"; + } else if (chr === '"') { + newContent += "'"; + } else { + newContent += chr; + } + } + + newContent = newContent.replace(/ /g, ""); + + // eslint-disable-next-line no-control-regex + newContent = newContent.replace(/[\r\n\x0B\x0C\u0085\u2028\u2029]+/g, '",\n"'); + return newContent; + } + + stripLinesContaining(content: string, containing: string) { + let i = content.indexOf(containing); + + while (i >= 0) { + let previousNewLine = content.lastIndexOf("\n", i); + + let nextNewLine = content.indexOf("\n", i); + + if (previousNewLine < 0) { + previousNewLine = 0; + } + + if (previousNewLine > 0 && content[previousNewLine - 1] === "\r") { + previousNewLine--; + } + + if (nextNewLine < 0) { + nextNewLine = content.length - 1; + } + + content = content.substring(0, previousNewLine) + content.substring(nextNewLine + 1, content.length); + i = content.indexOf(containing, previousNewLine); + } + + return content; + } + + writeFile(relativePath: string, contents: string) { + const fullPath = path.join(this._targetFolderPath, relativePath); + const dirName = path.dirname(fullPath); + + if (!fs.existsSync(dirName)) { + fs.mkdirSync(dirName, { recursive: true }); + } + + fs.writeFileSync(fullPath, contents); + } +} + +export function buildSnippets(params: BuildSnippetsParameters) { + return () => { + const snippetsBuilder = new SnippetsBuilder(params.targetFolderPath); + + for (const scriptPath of params.scriptPaths) { + console.log("Processing " + scriptPath); + snippetsBuilder.processFolder(scriptPath); + } + + snippetsBuilder.writeCatalogFiles(); + }; +} diff --git a/editor-multi/tsconfig.json b/editor-multi/tsconfig.json new file mode 100644 index 0000000..77c4b8f --- /dev/null +++ b/editor-multi/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions":{ + "target":"es6", + "moduleResolution":"Node", + "module": "ES2020", + "declaration":false, + "noLib":false, + "emitDecoratorMetadata":true, + "experimentalDecorators":true, + "sourceMap":true, + "pretty":true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "allowUnreachableCode":true, + "allowUnusedLabels":true, + "noImplicitAny":true, + "noImplicitReturns":false, + "noImplicitUseStrict":false, + "outDir":"lib", + "rootDir": ".", + "baseUrl":"behavior_packs/", + "listFiles":false, + "noEmitHelpers":true, + "skipLibCheck": true + }, + "include":[ + "scripts/**/*" + ], + "exclude": ["lib", "dist", "node_modules"], + "compileOnSave":false + } \ No newline at end of file